@simple-parlay/components 1.30.6-pre.2 → 1.30.6-pre.4
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 +318 -317
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/GameSelector.d.ts +1 -1
- package/dist/react/components/MultiLegTable.d.ts +3 -1
- package/dist/react/components/PlaceEntryProvider.d.ts +3 -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 +318 -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/MultiLegTable.d.ts +3 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +3 -2
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SportSelector.d.ts +7 -2
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +411 -407
- package/dist/shared/api-client.d.ts +2 -2
- package/dist/shared/game-flow.d.ts +12 -1
- package/dist/shared/game-icons.d.ts +1 -1
- package/dist/shared/game-set-bet.d.ts +0 -1
- package/dist/shared/hooks.d.ts +2 -2
- package/dist/shared/menu-placement.d.ts +26 -0
- package/dist/shared/mirror.d.ts +43 -3
- package/dist/shared/picker-brand.d.ts +0 -6
- package/dist/shared/selection-actions.d.ts +14 -4
- package/dist/shared/selection-caps.d.ts +51 -0
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/types.d.ts +20 -2
- package/dist/shared/utils.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,444 +1,448 @@
|
|
|
1
|
-
import e,{createContext as t,useCallback as n,useContext as o,useEffect as i,useLayoutEffect as r,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as g,Image as f,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as F}from"react-native";import{Fragment as v,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as R,Defs as L,Ellipse as D,Line as M,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#C9CDD2";function U(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function q(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").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 K='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function Z(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var X=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,Q=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function J(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function $(e){const t=e.trim();if(!t)return"";if(J(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8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DNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAz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OGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=U(t[o]);if(e){const i=[e];let r=o+1;for(;r<t.length;){const e=U(t[r]);if(!e)break;i.push(e),r+=1}n.push(q(i)),o=r;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",i=0;const r=[],l=()=>{0!==r.length&&(o+=q([...r]),r.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(i,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>U(e));a.length>0&&a.every(e=>null!==e)?r.push(...a):(l(),o+=n[0]),i=t.lastIndex}return l(),o+=e.slice(i),o}(e))}(function(e){const t=Z(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${K}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}var _=/^(#{1,3})\s+(.+)$/,ee=/^[-*]\s+(.+)$/,te=/^-{3,}$/;function ne(e,t){if(!e)return e;const n=Math.max(0,Math.min(1,t));if("transparent"===e)return e;if(e.startsWith("#")){const t=e.slice(1);let o=0,i=0,r=0;if(3===t.length)o=parseInt(t[0]+t[0],16),i=parseInt(t[1]+t[1],16),r=parseInt(t[2]+t[2],16);else if(6===t.length)o=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16);else{if(8!==t.length)return e;o=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16)}return`rgba(${o}, ${i}, ${r}, ${n})`}const o=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return o?`rgba(${o[1]}, ${o[2]}, ${o[3]}, ${n})`:e}var oe={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},ie={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},re={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},le={min:44};function ae(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...oe},radius:{...ie},fontSize:{...re},touchTarget:{...le},motion:{durationFast:e.motion?.durationFast??160,durationStd:e.motion?.durationStd??220,easing:e.motion?.easing??"cubic-bezier(0.2, 0, 0, 1)"},surface:{background:n.background,surface:n.selectionCard??n.surface??n.backgroundAlt,surfaceElevated:n.surfaceElevated??n.selectionCard??n.surface??n.backgroundAlt,borderSubtle:n.borderSubtle??ne(n.border,t?.6:.5)},isDark:t}}function ce(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -28px rgba(0,0,0,0.7)":"0 1px 0 rgba(255,255,255,0.7) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}function se(e){return e.colors.heading??e.colors.text}function de(e){return e.colors.label??e.colors.text}function he(e){return e.colors.value??e.colors.text}function ue(e){return e.colors.productYes??"#00C853"}function ge(e){return e.colors.productNo??"#E53935"}function fe(e){return e.brand?.accent??e.colors.primary}function pe(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function ye(e){return e.colors.textAlt??e.colors.text}function me(e){return e.colors.textAltMuted??e.colors.textMuted}function be(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function we(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function xe(e){return e.colors.selectionProp??e.colors.background}function ke(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:be(e)}}function Se(e,t="light"){return e?Ce(e)?"dark"===t?e.dark:e.light:e:Be}function Ce(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Be={name:"default",colorScheme:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#10b981",successBg:"#dcfce7",successText:"#166534",error:"#ef4444",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#3b82f6",infoBg:"#dbeafe",infoText:"#1e3a8a",border:"#d1d5db",borderFocus:"#3b82f6",background:"#ffffff",backgroundAlt:"#f9fafb",selectionCard:"#f9fafb",matchupHeader:"#eff6ff",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#3b82f6",buttonPrimaryHover:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},ze={name:"green",colorScheme:"dark",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#00E676",primaryHover:"#00C853",primaryText:"#0a0a0a",payoutWinning:"#34d399",payoutNone:"#3f3f46",success:"#00E676",successBg:"#0d2818",successText:"#a7f3d0",error:"#ff5252",errorBg:"#2d1215",errorText:"#fca5a5",warning:"#ffab40",warningBg:"#2d1f0a",warningText:"#fde68a",info:"#40c4ff",infoBg:"#0a1e2d",infoText:"#bae6fd",border:"#2a2a2e",borderFocus:"#00E676",background:"#121214",backgroundAlt:"#1a1a1e",selectionCard:"#1e1e22",matchupHeader:"#0f2419",selectionProp:"#161618",text:"#e4e4e7",textAlt:"#e4e4e7",textAltMuted:"#a1a1aa",textMuted:"#71717a",heading:"#ffffff",label:"#a1a1aa",value:"#00E676",buttonPrimary:"#00E676",buttonPrimaryHover:"#00C853",buttonPrimaryText:"#0a0a0a",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#e4e4e7"},brand:{accent:"#DFFF1A"}},Fe={name:"dark",colorScheme:"dark",colors:{primary:"#60a5fa",primaryHover:"#3b82f6",primaryText:"#ffffff",payoutWinning:"#16a34a",payoutNone:"#374151",success:"#34d399",successBg:"#064e3b",successText:"#d1fae5",error:"#f87171",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#fbbf24",warningBg:"#78350f",warningText:"#fef3c7",info:"#60a5fa",infoBg:"#1e3a8a",infoText:"#dbeafe",border:"#4b5563",borderFocus:"#60a5fa",background:"#1f2937",backgroundAlt:"#111827",selectionCard:"#374151",matchupHeader:"#1e3a5f",selectionProp:"#1f2937",text:"#f9fafb",textAlt:"#f9fafb",textAltMuted:"#6b7280",textMuted:"#9ca3af",buttonPrimary:"#60a5fa",buttonPrimaryHover:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"#374151",buttonSecondaryHover:"#4b5563",buttonSecondaryText:"#f9fafb"}},ve={name:"gold",colorScheme:"dark",colors:{primary:"#f59e0b",primaryHover:"#d97706",primaryText:"#000000",payoutWinning:"#facc15",payoutNone:"#1f2937",success:"#eab308",successBg:"#713f12",successText:"#fef08a",error:"#dc2626",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#f97316",warningBg:"#7c2d12",warningText:"#fed7aa",info:"#f59e0b",infoBg:"#78350f",infoText:"#fef3c7",border:"#d97706",borderFocus:"#f59e0b",background:"#18181b",backgroundAlt:"#09090b",selectionCard:"#27272a",matchupHeader:"#292019",selectionProp:"#1c1917",text:"#fafaf9",textAlt:"#fafaf9",textAltMuted:"#78716c",textMuted:"#a8a29e",buttonPrimary:"#f59e0b",buttonPrimaryHover:"#d97706",buttonPrimaryText:"#000000",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#fafaf9"}},We={name:"green-light",colorScheme:"light",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#16a34a",primaryHover:"#15803d",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#16a34a",successBg:"#dcfce7",successText:"#166534",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#0ea5e9",infoBg:"#e0f2fe",infoText:"#0c4a6e",border:"#d1d5db",borderFocus:"#16a34a",background:"#ffffff",backgroundAlt:"#f0fdf4",selectionCard:"#f0fdf4",matchupHeader:"#dcfce7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",heading:"#111827",label:"#374151",value:"#16a34a",buttonPrimary:"#16a34a",buttonPrimaryHover:"#15803d",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"},brand:{accent:"#f97316"}},Te={name:"gold-light",colorScheme:"light",colors:{primary:"#d97706",primaryHover:"#b45309",primaryText:"#ffffff",payoutWinning:"#eab308",payoutNone:"#e5e7eb",success:"#eab308",successBg:"#fef9c3",successText:"#713f12",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f97316",warningBg:"#ffedd5",warningText:"#7c2d12",info:"#d97706",infoBg:"#fef3c7",infoText:"#78350f",border:"#d1d5db",borderFocus:"#d97706",background:"#ffffff",backgroundAlt:"#fffbeb",selectionCard:"#fffbeb",matchupHeader:"#fef3c7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#d97706",buttonPrimaryHover:"#b45309",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},Ae={name:"yesno-light",colorScheme:"light",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#0F4C5C",primaryHover:"#0C3E4B",primaryText:"#FAFAF7",payoutWinning:"#0F4C5C",payoutNone:"#DDD9D2",success:"#15803D",successBg:"#DCFCE7",successText:"#14532D",error:"#DC2626",errorBg:"#FEE2E2",errorText:"#991B1B",productYes:"#00C853",productNo:"#E53935",warning:"#D97706",warningBg:"#FEF3C7",warningText:"#92400E",info:"#14687C",infoBg:"#E0F0F3",infoText:"#0F4C5C",border:"#DDD9D2",borderFocus:"#0F4C5C",background:"#FAFAF7",backgroundAlt:"#F0EDE6",selectionCard:"#FFFFFF",matchupHeader:"#EAF1F2",selectionProp:"#FFFFFF",text:"#123B45",textAlt:"#123B45",textAltMuted:"#8A9AA0",textMuted:"#647C83",heading:"#0F4C5C",label:"#14687C",value:"#0F4C5C",buttonPrimary:"#0F4C5C",buttonPrimaryHover:"#0C3E4B",buttonPrimaryText:"#DFFF1A",buttonSecondary:"#DDD9D2",buttonSecondaryHover:"#CDC8BF",buttonSecondaryText:"#0F4C5C"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#0F4C5C",icon:"#FAFAF7"}},Re={name:"yesno",colorScheme:"dark",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#4FB3C9",primaryHover:"#6FC4D6",primaryText:"#06303A",payoutWinning:"#DFFF1A",payoutNone:"#1E5E6E",success:"#4ADE80",successBg:"#0E3A2A",successText:"#BBF7D0",error:"#FB7185",errorBg:"#3A1418",errorText:"#FECDD3",productYes:"#00C853",productNo:"#E53935",warning:"#FBBF24",warningBg:"#3A2A0A",warningText:"#FDE68A",info:"#4FB3C9",infoBg:"#0C3B47",infoText:"#CFF0F6",border:"#1E5E6E",borderFocus:"#4FB3C9",background:"#0C3B47",backgroundAlt:"#0F4C5C",selectionCard:"#124E5E",matchupHeader:"#103F4C",selectionProp:"#0C3B47",text:"#EAF3F4",textAlt:"#EAF3F4",textAltMuted:"#6E959E",textMuted:"#90B4BC",heading:"#FAFAF7",label:"#9FD9E6",value:"#DFFF1A",buttonPrimary:"#4FB3C9",buttonPrimaryHover:"#6FC4D6",buttonPrimaryText:"#06303A",buttonSecondary:"#124E5E",buttonSecondaryHover:"#186072",buttonSecondaryText:"#EAF3F4"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#FAFAF7",icon:"#FAFAF7"}},Le={light:Be,dark:Fe},De={light:We,dark:ze},Me={light:Te,dark:ve},Pe={light:Ae,dark:Re};function He(e){return{default:Be,green:ze,"green-light":We,dark:Fe,gold:ve,"gold-light":Te,yesno:Re,"yesno-light":Ae}[e]||Be}function Oe(e){return{default:Le,green:De,gold:Me,yesno:Pe}[e]||Le}var Ie={default:Be,green:ze,"green-light":We,dark:Fe,gold:ve,"gold-light":Te,yesno:Re,"yesno-light":Ae},Ee={default:Le,green:De,gold:Me,yesno:Pe};function je(e,t="light"){return Se(e,t)}function Ne(e){return e.fonts?.body??"System"}function Ge(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ye="game-icon:",Ve={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},qe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi",six_again:"six_again"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=qe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function Ze(e){return`${Ye}${Ke(e)}`}function Xe(e){if(!function(e){return e.startsWith(Ye)}(e))return null;const t=e.slice(10);return Ve[t]??Ve.unknown}var Qe={text:"YES",tone:"yes"},Je={text:"NO",tone:"no"},$e=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],_e=["zero","one","two","three","four","five","six","seven","eight"],et=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],tt=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],nt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Qe," or ",Je," across your legs, every leg has to land, and one perfect card takes the prize."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Qe," or ",Je," on each matchup, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Qe," or ",Je," on each total, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Qe," and ",Je," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Qe," or ",Je," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:tt("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Qe," or ",Je," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:tt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Qe," or ",Je," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:tt("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Qe," or ",Je," on every leg — land them all and the entry pays the dividend you picked."],steps:tt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Qe," or ",Je," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:tt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Qe," or ",Je," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Qe," or ",Je," across the game — land every leg and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ot(e){if(!e)return null;const t=Ke(e),n=nt[t];if(!n)return null;const{min:o,max:i,demo:r}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let i=3;return n>0&&(i=Math.max(i,n)),o>0&&(i=Math.min(i,o)),{min:n,max:o,demo:Math.min(Math.max(i,2),$e.length)}}(e),l=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(i>0?i:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:l(e.detail)})),demoLegs:$e.slice(0,r),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,_e[r-1]??String(r-1)).replace(/\{n\}/g,_e[r]??String(r))}}function it(e,t,n=!0){const o=e.current;o&&("web"!==m.OS?o.scrollTo?.({x:t,y:0,animated:n}):"function"==typeof o.scroll?o.scroll({left:t}):"number"==typeof o.scrollLeft&&(o.scrollLeft=t))}function rt(e,t){return{onMouseEnter:e,onMouseLeave:t}}function lt({theme:e,level:t="flat",padding:n="md",radius:o="md",style:i,children:r}){const l=ae(e),a={none:0,sm:l.space.sm,md:l.space.lg,lg:l.space.xl},c={none:0,sm:l.radius.sm,md:l.radius.md,lg:l.radius.lg,pill:l.radius.pill},s="elevated"===t?l.surface.surfaceElevated:l.surface.surface,d="flat"===t?{}:"raised"===t?{shadowColor:"#000",shadowOpacity:l.isDark?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}:{shadowColor:"#000",shadowOpacity:l.isDark?.5:.16,shadowRadius:24,shadowOffset:{width:0,height:12},elevation:6};/* @__PURE__ */
|
|
2
|
-
return W(
|
|
3
|
-
return
|
|
4
|
-
return
|
|
5
|
-
return W(
|
|
6
|
-
return W(
|
|
7
|
-
return W(S,{style:[mt.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?/* @__PURE__ */W(S,{children:ft(e,t,n)},n):/* @__PURE__ */W(ht,{theme:t,value:e.tone,size:"sm"},n))})}function yt({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:i}){const r=t.colors,l=t.brand?.accent??r.primaryText,a=be(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[g,f]=c(!1),p=e.demoLegs.length,y=h.filter(e=>null!=e).length,m=y===p,b=e.demoLegs.filter((e,t)=>h[t]===e.outcome).length,w=function(e,t,n){const o=t===n,i=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${i} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${i} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${i} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${i} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${i} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${i} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${i} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${i} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${i} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,b,p),x=(e,t)=>{g||u(n=>n.map((n,o)=>o===e?t:n))},k=g?"Settled":`${y} of ${p} called`,C=!g&&m,F=e=>[mt.segment,{backgroundColor:e?r.primary:"transparent"}],v=e=>[mt.segmentText,{color:e?r.primaryText:r.textMuted,fontFamily:i}];/* @__PURE__ */
|
|
1
|
+
import e,{createContext as t,useCallback as n,useContext as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as g,Image as f,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as v}from"react-native";import{Fragment as F,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as L,Defs as R,Ellipse as M,Line as D,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#C9CDD2";function U(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function q(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 K='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function Z(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var X=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,Q=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function J(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function $(e){const t=e.trim();if(!t)return"";if(J(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI9ALnw4LAKtNcVgaWAZYGlqJ86OmE14CngCeBJ4CHgQeAB4GHcorjOzSuiEhjOB%2BWA9YEVqW8Rk%2F9uqRhrP8AD1WXv1df78sp%2FsMwU62peBURERkk58NiwAbTXNYH3mYaasYmA%2F8Ebgduqy5%2FVUErIr3M%2BTAfsCGwCfDO6rK4aajBeR64FbgFuBm4Laf4sm2kelDxKiIiMgvOh6WBzarL%2ByhH65tqIuVD0e%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8VAsM7Rogtyiju344qcD1of18dyin3%2F2j8r1QehTYCPVpfVbRN11MvAb4ErgJRTfMk4T9cYvRZ%2BNqd4ucG4gs1jrtfcznA%2BOGBLSsH6YWAR20Rd9SL%2FK2R%2FnVMcY5yna%2Fr%2Bl8n5sARljvkC1llaMAXYJKd4q3WQXuB82JgyFaMJvwcvA6vkFJ9px5WpeO1v%2BiA1Y86H2YH3A9tSCtZ%2B%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ToZ8DP3c%2BLARsRSlmtwLeYpmty8YCv6HslfvrqqdDXxhhHUBERKTunA%2FzU87EbkVp%2FrKibaK2egG4CbgR%2BBNwW05xsm0kEZHWOR9mBzYBPkJ5nV6L3po5M5nSa%2BBaSsF6Y07xddtINlS8ioiIDJLzYRnKB6Wpl%2FVoxpnZKcAj%2FK9YvRF4IKc4xTSViEgbVQccN6K8Pr8T2JhmTRkfA9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkUFZNlkHOR9ebTi%2BjIYlwMzSRYiIiAzKek3WycbjS485H7alarJEREQ6x7rJOsL5sK9xhvTX0cBOpYsQEREZjyauLjypgQzpGefDVsDy0nWIiIiMVxNN1pHOh70ayJF%2BeRuwW%2BkiRERExquJJmsKsKKBHOkJ58MkYGXpOkRERCaiqR3fFzkf%2FiqneHdDedJtbwReXLoIEZFh0rmPo6epHd%2BnY7SZpPSSZrFERKTzmjxW5131xpIim%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pNpgUmRjNIslIiK90XSTBbDc%2BTCtQK60mPPhRcAbStchIiIyLCWarF2BowrkSrutpMzrUURExESpP2ornQ%2F6gyoAOB92BULpOkRERIapVKMzB5hfKFvaZzmwVekiREREhqnkbJIOjhacD7oYQkREeqlkk%2FVy58OhBfOlHZYC2tZDRER6p%2FS6KF2yP8LqPdOOK12HiIiIhdJN1kHOhwMK1yDlLAZmlS5CRETEQukmCzSbN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BznV4e6%2Fm1O0WEcpMiE5xXU5xeOBNwD3lK1GxkNNlpGc4v1UHxtO1AX1WCITklN8KKe4GPhd4Ael6ynsM8BLcorn6pgcabuc4meBF1P9TdHrtUPUZNlaA0xkfccTwGlDqkUEgJzitcBc4H8zekfxXAf8Xk7xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=U(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=U(t[i]);if(!e)break;r.push(e),i+=1}n.push(q(r)),o=i;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const i=[],l=()=>{0!==i.length&&(o+=q([...i]),i.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>U(e));a.length>0&&a.every(e=>null!==e)?i.push(...a):(l(),o+=n[0]),r=t.lastIndex}return l(),o+=e.slice(r),o}(e))}(function(e){const t=Z(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${K}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}var _=/^(#{1,3})\s+(.+)$/,ee=/^[-*]\s+(.+)$/,te=/^-{3,}$/;function ne(e,t){if(!e)return e;const n=Math.max(0,Math.min(1,t));if("transparent"===e)return e;if(e.startsWith("#")){const t=e.slice(1);let o=0,r=0,i=0;if(3===t.length)o=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),i=parseInt(t[2]+t[2],16);else if(6===t.length)o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);else{if(8!==t.length)return e;o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16)}return`rgba(${o}, ${r}, ${i}, ${n})`}const o=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return o?`rgba(${o[1]}, ${o[2]}, ${o[3]}, ${n})`:e}var oe={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},re={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},ie={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},le={min:44};function ae(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...oe},radius:{...re},fontSize:{...ie},touchTarget:{...le},motion:{durationFast:e.motion?.durationFast??160,durationStd:e.motion?.durationStd??220,easing:e.motion?.easing??"cubic-bezier(0.2, 0, 0, 1)"},surface:{background:n.background,surface:n.selectionCard??n.surface??n.backgroundAlt,surfaceElevated:n.surfaceElevated??n.selectionCard??n.surface??n.backgroundAlt,borderSubtle:n.borderSubtle??ne(n.border,t?.6:.5)},isDark:t}}function ce(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -28px rgba(0,0,0,0.7)":"0 1px 0 rgba(255,255,255,0.7) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}function se(e){return e.colors.heading??e.colors.text}function de(e){return e.colors.label??e.colors.text}function he(e){return e.colors.value??e.colors.text}function ue(e){return e.colors.productYes??"#00C853"}function ge(e){return e.colors.productNo??"#E53935"}function fe(e){return e.brand?.accent??e.colors.primary}function pe(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function ye(e){return e.colors.textAlt??e.colors.text}function me(e){return e.colors.textAltMuted??e.colors.textMuted}function be(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function we(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function xe(e){return e.colors.selectionProp??e.colors.background}function ke(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:be(e)}}function Se(e,t="light"){return e?Ce(e)?"dark"===t?e.dark:e.light:e:Be}function Ce(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Be={name:"default",colorScheme:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#10b981",successBg:"#dcfce7",successText:"#166534",error:"#ef4444",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#3b82f6",infoBg:"#dbeafe",infoText:"#1e3a8a",border:"#d1d5db",borderFocus:"#3b82f6",background:"#ffffff",backgroundAlt:"#f9fafb",selectionCard:"#f9fafb",matchupHeader:"#eff6ff",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#3b82f6",buttonPrimaryHover:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},ze={name:"green",colorScheme:"dark",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#00E676",primaryHover:"#00C853",primaryText:"#0a0a0a",payoutWinning:"#34d399",payoutNone:"#3f3f46",success:"#00E676",successBg:"#0d2818",successText:"#a7f3d0",error:"#ff5252",errorBg:"#2d1215",errorText:"#fca5a5",warning:"#ffab40",warningBg:"#2d1f0a",warningText:"#fde68a",info:"#40c4ff",infoBg:"#0a1e2d",infoText:"#bae6fd",border:"#2a2a2e",borderFocus:"#00E676",background:"#121214",backgroundAlt:"#1a1a1e",selectionCard:"#1e1e22",matchupHeader:"#0f2419",selectionProp:"#161618",text:"#e4e4e7",textAlt:"#e4e4e7",textAltMuted:"#a1a1aa",textMuted:"#71717a",heading:"#ffffff",label:"#a1a1aa",value:"#00E676",buttonPrimary:"#00E676",buttonPrimaryHover:"#00C853",buttonPrimaryText:"#0a0a0a",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#e4e4e7"},brand:{accent:"#DFFF1A"}},ve={name:"dark",colorScheme:"dark",colors:{primary:"#60a5fa",primaryHover:"#3b82f6",primaryText:"#ffffff",payoutWinning:"#16a34a",payoutNone:"#374151",success:"#34d399",successBg:"#064e3b",successText:"#d1fae5",error:"#f87171",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#fbbf24",warningBg:"#78350f",warningText:"#fef3c7",info:"#60a5fa",infoBg:"#1e3a8a",infoText:"#dbeafe",border:"#4b5563",borderFocus:"#60a5fa",background:"#1f2937",backgroundAlt:"#111827",selectionCard:"#374151",matchupHeader:"#1e3a5f",selectionProp:"#1f2937",text:"#f9fafb",textAlt:"#f9fafb",textAltMuted:"#6b7280",textMuted:"#9ca3af",buttonPrimary:"#60a5fa",buttonPrimaryHover:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"#374151",buttonSecondaryHover:"#4b5563",buttonSecondaryText:"#f9fafb"}},Fe={name:"gold",colorScheme:"dark",colors:{primary:"#f59e0b",primaryHover:"#d97706",primaryText:"#000000",payoutWinning:"#facc15",payoutNone:"#1f2937",success:"#eab308",successBg:"#713f12",successText:"#fef08a",error:"#dc2626",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#f97316",warningBg:"#7c2d12",warningText:"#fed7aa",info:"#f59e0b",infoBg:"#78350f",infoText:"#fef3c7",border:"#d97706",borderFocus:"#f59e0b",background:"#18181b",backgroundAlt:"#09090b",selectionCard:"#27272a",matchupHeader:"#292019",selectionProp:"#1c1917",text:"#fafaf9",textAlt:"#fafaf9",textAltMuted:"#78716c",textMuted:"#a8a29e",buttonPrimary:"#f59e0b",buttonPrimaryHover:"#d97706",buttonPrimaryText:"#000000",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#fafaf9"}},We={name:"green-light",colorScheme:"light",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#16a34a",primaryHover:"#15803d",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#16a34a",successBg:"#dcfce7",successText:"#166534",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#0ea5e9",infoBg:"#e0f2fe",infoText:"#0c4a6e",border:"#d1d5db",borderFocus:"#16a34a",background:"#ffffff",backgroundAlt:"#f0fdf4",selectionCard:"#f0fdf4",matchupHeader:"#dcfce7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",heading:"#111827",label:"#374151",value:"#16a34a",buttonPrimary:"#16a34a",buttonPrimaryHover:"#15803d",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"},brand:{accent:"#f97316"}},Te={name:"gold-light",colorScheme:"light",colors:{primary:"#d97706",primaryHover:"#b45309",primaryText:"#ffffff",payoutWinning:"#eab308",payoutNone:"#e5e7eb",success:"#eab308",successBg:"#fef9c3",successText:"#713f12",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f97316",warningBg:"#ffedd5",warningText:"#7c2d12",info:"#d97706",infoBg:"#fef3c7",infoText:"#78350f",border:"#d1d5db",borderFocus:"#d97706",background:"#ffffff",backgroundAlt:"#fffbeb",selectionCard:"#fffbeb",matchupHeader:"#fef3c7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#d97706",buttonPrimaryHover:"#b45309",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},Ae={name:"yesno-light",colorScheme:"light",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#0F4C5C",primaryHover:"#0C3E4B",primaryText:"#FAFAF7",payoutWinning:"#0F4C5C",payoutNone:"#DDD9D2",success:"#15803D",successBg:"#DCFCE7",successText:"#14532D",error:"#DC2626",errorBg:"#FEE2E2",errorText:"#991B1B",productYes:"#00C853",productNo:"#E53935",warning:"#D97706",warningBg:"#FEF3C7",warningText:"#92400E",info:"#14687C",infoBg:"#E0F0F3",infoText:"#0F4C5C",border:"#DDD9D2",borderFocus:"#0F4C5C",background:"#FAFAF7",backgroundAlt:"#F0EDE6",selectionCard:"#FFFFFF",matchupHeader:"#EAF1F2",selectionProp:"#FFFFFF",text:"#123B45",textAlt:"#123B45",textAltMuted:"#8A9AA0",textMuted:"#647C83",heading:"#0F4C5C",label:"#14687C",value:"#0F4C5C",buttonPrimary:"#0F4C5C",buttonPrimaryHover:"#0C3E4B",buttonPrimaryText:"#DFFF1A",buttonSecondary:"#DDD9D2",buttonSecondaryHover:"#CDC8BF",buttonSecondaryText:"#0F4C5C"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#0F4C5C",icon:"#FAFAF7"}},Le={name:"yesno",colorScheme:"dark",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#4FB3C9",primaryHover:"#6FC4D6",primaryText:"#06303A",payoutWinning:"#DFFF1A",payoutNone:"#1E5E6E",success:"#4ADE80",successBg:"#0E3A2A",successText:"#BBF7D0",error:"#FB7185",errorBg:"#3A1418",errorText:"#FECDD3",productYes:"#00C853",productNo:"#E53935",warning:"#FBBF24",warningBg:"#3A2A0A",warningText:"#FDE68A",info:"#4FB3C9",infoBg:"#0C3B47",infoText:"#CFF0F6",border:"#1E5E6E",borderFocus:"#4FB3C9",background:"#0C3B47",backgroundAlt:"#0F4C5C",selectionCard:"#124E5E",matchupHeader:"#103F4C",selectionProp:"#0C3B47",text:"#EAF3F4",textAlt:"#EAF3F4",textAltMuted:"#6E959E",textMuted:"#90B4BC",heading:"#FAFAF7",label:"#9FD9E6",value:"#DFFF1A",buttonPrimary:"#4FB3C9",buttonPrimaryHover:"#6FC4D6",buttonPrimaryText:"#06303A",buttonSecondary:"#124E5E",buttonSecondaryHover:"#186072",buttonSecondaryText:"#EAF3F4"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#FAFAF7",icon:"#FAFAF7"}},Re={light:Be,dark:ve},Me={light:We,dark:ze},De={light:Te,dark:Fe},Pe={light:Ae,dark:Le};function He(e){return{default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae}[e]||Be}function Oe(e){return{default:Re,green:Me,gold:De,yesno:Pe}[e]||Re}var Ie={default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae},Ee={default:Re,green:Me,gold:De,yesno:Pe};function je(e,t="light"){return Se(e,t)}function Ne(e){return e.fonts?.body??"System"}function Ge(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ye="game-icon:",Ve={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_double:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Double Mirror.\n The Mirror mark reaching one slot further in: two reflected squares per side\n stepping toward the seam, the deeper pair dimmed because the near-miss tier\n pays less than the clean sweep.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="4" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="20" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="70" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="54" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_triple:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Triple Mirror.\n The Mirror mark reaching two slots in: three reflected squares per side\n stepping toward the seam, each dimmer than the last because each tier\n further from the edge pays less.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="2" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="13" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="24" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="76" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="65" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="54" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",straightmirror:"mirror",doublemirror:"mirror_double",triplemirror:"mirror_triple",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},qe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",double_mirror:"mirror_double",triple_mirror:"mirror_triple",same_game_multi:"same_game_multi",six_again:"six_again"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=qe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function Ze(e){return`${Ye}${Ke(e)}`}function Xe(e){if(!function(e){return e.startsWith(Ye)}(e))return null;const t=e.slice(10);return Ve[t]??Ve.unknown}var Qe={text:"YES",tone:"yes"},Je={text:"NO",tone:"no"},$e=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],_e=["zero","one","two","three","four","five","six","seven","eight"],et=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],tt=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],nt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Qe," or ",Je," across your legs, every leg has to land, and one perfect card takes the prize."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Qe," or ",Je," on each matchup, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Qe," or ",Je," on each total, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Qe," and ",Je," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Qe," or ",Je," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:tt("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Qe," or ",Je," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:tt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Qe," or ",Je," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:tt("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Qe," or ",Je," on every leg — land them all and the entry pays the dividend you picked."],steps:tt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Qe," or ",Je," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:tt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Qe," or ",Je," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Qe," or ",Je," across the game — land every leg and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ot(e){if(!e)return null;const t=Ke(e),n=nt[t];if(!n)return null;const{min:o,max:r,demo:i}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let r=3;return n>0&&(r=Math.max(r,n)),o>0&&(r=Math.min(r,o)),{min:n,max:o,demo:Math.min(Math.max(r,2),$e.length)}}(e),l=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:l(e.detail)})),demoLegs:$e.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,_e[i-1]??String(i-1)).replace(/\{n\}/g,_e[i]??String(i))}}function rt(e,t,n=!0){const o=e.current;o&&("web"!==m.OS?o.scrollTo?.({x:t,y:0,animated:n}):"function"==typeof o.scroll?o.scroll({left:t}):"number"==typeof o.scrollLeft&&(o.scrollLeft=t))}function it(e,t){return{onMouseEnter:e,onMouseLeave:t}}function lt({theme:t,variant:n="primary",size:o="md",disabled:r,block:i,radius:l="md",onPress:a,onLongPress:c,style:s,children:d,accessibilityLabel:h}){const u=ae(t),g=t.colors,f={sm:{h:36,px:u.space.md,fs:u.fontSize.sm},md:{h:u.touchTarget.min,px:u.space.lg,fs:u.fontSize.md},lg:{h:52,px:u.space.xl,fs:u.fontSize.lg}},p={sm:u.radius.sm,md:u.radius.md,lg:u.radius.lg,pill:u.radius.pill},y={primary:{bg:g.buttonPrimary,bgPressed:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgPressed:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgPressed:ne(g.text,u.isDark?.1:.06),fg:g.text,border:"transparent"},danger:{bg:g.error,bgPressed:ne(g.error,.85),fg:"#ffffff",border:g.error}}[n],[m,w]=e.useState(!1);/* @__PURE__ */
|
|
2
|
+
return W(b,{accessibilityRole:"button",accessibilityLabel:h,accessibilityState:{disabled:!!r},disabled:r,onPress:a,onLongPress:c,onHoverIn:()=>w(!0),onHoverOut:()=>w(!1),style:({pressed:e})=>[{minHeight:f[o].h,paddingHorizontal:f[o].px,borderRadius:p[l],backgroundColor:!e&&!m||r?y.bg:y.bgPressed,borderColor:y.border,borderWidth:1,alignSelf:i?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:r?.5:1,transform:[{scale:e&&!r?.985:1}]},s],children:"string"==typeof d?/* @__PURE__ */W(S,{style:{color:y.fg,fontSize:f[o].fs,fontWeight:"500"},children:d}):d})}var at={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function ct(e,t,n,o,r,i){const l=ae(e),a=at[o];return{container:{paddingVertical:a.paddingVertical,paddingHorizontal:a.paddingHorizontal,borderRadius:l.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1,...i?{flex:1}:null},label:{fontSize:a.fontSize,fontWeight:"600",lineHeight:1.2*a.fontSize,color:t?"#ffffff":e.colors.text}}}function st({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:i,disabled:l,yesLabel:a="Yes",noLabel:c="No",style:s}){const d=ct(e,"yes"===t,ue(e),r,l,i),h=ct(e,"no"===t,ge(e),r,l,i);/* @__PURE__ */
|
|
3
|
+
return T(z,{style:[{flexDirection:"row",gap:8,flexShrink:0},i?{alignSelf:"stretch"}:null,s],children:[/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!l},disabled:l,onPress:l?void 0:n,style:d.container,children:/* @__PURE__ */W(S,{style:d.label,children:a})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!l},disabled:l,onPress:l?void 0:o,style:h.container,children:/* @__PURE__ */W(S,{style:h.label,children:c})})]})}function dt({theme:e,value:t,size:n="md",style:o}){const r=ae(e),i="sm"===n?10:11;/* @__PURE__ */
|
|
4
|
+
return W(z,{style:[{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",paddingVertical:"sm"===n?2:3,paddingHorizontal:"sm"===n?8:10,borderRadius:r.radius.sm,backgroundColor:"yes"===t?ue(e):ge(e)},o],children:/* @__PURE__ */W(S,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function ht({delay:t=0,style:n,children:o}){const{transform:r}=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:g.bezier(.2,.8,.2,1),useNativeDriver:"web"!==m.OS}).start())},r=s.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=s.addEventListener?.("reduceMotionChanged",e=>{e&&n.setValue(1)});return()=>{e=!0,i?.remove?.()}},[t,n]),{opacity:n,transform:[{translateY:n.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(t);/* @__PURE__ */
|
|
5
|
+
return W(h.View,{style:[n,{transform:r}],children:o})}var ut=/\b(YES|NO)\b/;function gt(e,t,n){return e.split(ut).map((e,o)=>"YES"===e||"NO"===e?/* @__PURE__ */W(dt,{theme:t,value:"YES"===e?"yes":"no",size:"sm"},`${n}-${o}`):/* @__PURE__ */W(S,{children:e},`${n}-${o}`))}function ft({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
|
|
6
|
+
return W(S,{style:[yt.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?/* @__PURE__ */W(S,{children:gt(e,t,n)},n):/* @__PURE__ */W(dt,{theme:t,value:e.tone,size:"sm"},n))})}function pt({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,a=be(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[g,f]=c(!1),p=e.demoLegs.length,y=h.filter(e=>null!=e).length,m=y===p,b=e.demoLegs.filter((e,t)=>h[t]===e.outcome).length,w=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,b,p),x=(e,t)=>{g||u(n=>n.map((n,o)=>o===e?t:n))},k=g?"Settled":`${y} of ${p} called`,C=!g&&m,v=e=>[yt.segment,{backgroundColor:e?i.primary:"transparent"}],F=e=>[yt.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];/* @__PURE__ */
|
|
8
7
|
return T(z,{children:[
|
|
9
|
-
/* @__PURE__ */T(z,{style:[
|
|
10
|
-
/* @__PURE__ */W(B,{onPress:()=>d("learn"),accessibilityRole:"tab",accessibilityState:{selected:"learn"===s},style:
|
|
11
|
-
/* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"tab",accessibilityState:{selected:"try"===s},style:
|
|
12
|
-
/* @__PURE__ */W(
|
|
13
|
-
/* @__PURE__ */T(z,{style:[
|
|
14
|
-
/* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[
|
|
15
|
-
/* @__PURE__ */W(z,{style:
|
|
16
|
-
/* @__PURE__ */W(z,{style:
|
|
17
|
-
return T(z,{style:[
|
|
18
|
-
/* @__PURE__ */W(z,{style:[
|
|
19
|
-
/* @__PURE__ */W(z,{style:
|
|
20
|
-
return W(S,{children:n.map((e,n)=>/* @__PURE__ */W(S,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function
|
|
8
|
+
/* @__PURE__ */T(z,{style:[yt.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[
|
|
9
|
+
/* @__PURE__ */W(B,{onPress:()=>d("learn"),accessibilityRole:"tab",accessibilityState:{selected:"learn"===s},style:v("learn"===s),children:/* @__PURE__ */W(S,{style:F("learn"===s),children:"How it works"})}),
|
|
10
|
+
/* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"tab",accessibilityState:{selected:"try"===s},style:v("try"===s),children:/* @__PURE__ */W(S,{style:F("try"===s),children:"Quick demo"})}),n?/* @__PURE__ */W(B,{onPress:()=>d("pay"),accessibilityRole:"tab",accessibilityState:{selected:"pay"===s},style:v("pay"===s),children:/* @__PURE__ */W(S,{style:F("pay"===s),children:"Dividends"})}):null]}),"pay"===s?n:null,"learn"===s&&/* @__PURE__ */T(z,{children:[
|
|
11
|
+
/* @__PURE__ */W(ft,{segments:e.summary,theme:t,bodyFont:o}),
|
|
12
|
+
/* @__PURE__ */T(z,{style:[yt.steps,yt.stepsSpaced],children:[/* @__PURE__ */W(z,{pointerEvents:"none",style:[yt.rail,{backgroundColor:ne(i.primary,.25)}]}),e.steps.map((e,n)=>/* @__PURE__ */T(z,{style:yt.step,children:[/* @__PURE__ */W(z,{style:[yt.stepTile,{backgroundColor:i.primary}],children:/* @__PURE__ */W(S,{style:[yt.stepTileText,{color:l,fontFamily:r}],children:n+1})}),/* @__PURE__ */T(z,{style:yt.stepText,children:[/* @__PURE__ */W(S,{style:[yt.stepTitle,{color:i.primary,fontFamily:r}],children:e.title}),/* @__PURE__ */W(S,{style:[yt.stepDetail,{color:i.textMuted,fontFamily:o}],children:gt(e.detail,t,n)})]})]},e.title))]}),
|
|
13
|
+
/* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[yt.tryLink,{color:i.primary,fontFamily:r}],children:"Try a quick demo →"})})]}),"try"===s&&/* @__PURE__ */T(z,{style:[yt.slip,yt.slipFlush,{borderColor:i.border,backgroundColor:a}],children:[
|
|
14
|
+
/* @__PURE__ */W(z,{style:yt.slipHead,children:/* @__PURE__ */T(z,{style:yt.slipHeadRow,children:[/* @__PURE__ */W(S,{style:[yt.prompt,yt.promptGrow,{color:i.textMuted,fontFamily:o}],children:g?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */W(z,{style:[yt.counter,C?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:ne(i.border,.9),backgroundColor:"transparent"}],children:/* @__PURE__ */W(S,{style:[yt.counterText,{color:C?i.primaryText:i.textMuted,fontFamily:o}],children:k})})]})}),
|
|
15
|
+
/* @__PURE__ */W(z,{style:yt.legs,children:e.demoLegs.map((e,n)=>{const r=h[n]===e.outcome;/* @__PURE__ */
|
|
16
|
+
return T(z,{style:[yt.leg,n>0&&{borderTopWidth:1,borderTopColor:ne(i.border,.7)}],children:[/* @__PURE__ */T(z,{style:yt.legMain,children:[/* @__PURE__ */W(z,{style:[yt.pip,g?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:h[n]?i.primary:i.border}],children:/* @__PURE__ */W(S,{style:[yt.pipText,{color:g?"#fff":h[n]?i.primary:i.textMuted}],children:g?r?"✓":"✗":n+1})}),/* @__PURE__ */W(z,{style:yt.legText,children:/* @__PURE__ */W(S,{style:[yt.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),g?/* @__PURE__ */W(dt,{theme:t,size:"sm",value:e.outcome}):/* @__PURE__ */W(st,{theme:t,size:"sm",value:h[n],onYes:()=>x(n,"yes"),onNo:()=>x(n,"no")})]},e.question)})}),
|
|
17
|
+
/* @__PURE__ */W(z,{style:[yt.perforation,{borderTopColor:ne(i.border,.9)}]}),
|
|
18
|
+
/* @__PURE__ */W(z,{style:yt.slipFoot,children:g?/* @__PURE__ */T(z,{children:[/* @__PURE__ */T(z,{style:[yt.verdict,{backgroundColor:w.won?i.successBg:i.errorBg}],children:[/* @__PURE__ */W(z,{style:[yt.stamp,{borderColor:w.won?i.successText:i.errorText}],children:/* @__PURE__ */W(S,{style:[yt.stampText,{color:w.won?i.successText:i.errorText,fontFamily:r}],children:w.won?"Winner":"No win"})}),/* @__PURE__ */W(S,{style:[yt.verdictText,{color:w.won?i.successText:i.errorText,fontFamily:o}],children:w.message})]}),/* @__PURE__ */W(B,{onPress:()=>{u(e.demoLegs.map(()=>null)),f(!1)},accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[yt.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Try again"})})]}):/* @__PURE__ */W(lt,{theme:t,size:"sm",block:!0,disabled:!m,onPress:()=>f(!0),children:"Run the demo"})})]})]})}var yt=k.create({summary:{fontSize:15,lineHeight:23},segments:{flexDirection:"row",gap:2,borderWidth:1,borderRadius:10,padding:2,marginBottom:14},segment:{flex:1,borderRadius:8,paddingVertical:6,alignItems:"center"},segmentText:{fontSize:11,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.1},tryLink:{marginTop:6,paddingLeft:50,fontSize:12.5,fontWeight:"700"},stepsSpaced:{marginTop:12},slipFlush:{marginTop:0},promptGrow:{flex:1,minWidth:0,marginTop:0},steps:{position:"relative"},rail:{position:"absolute",left:17,top:16,bottom:16,width:1},step:{justifyContent:"center",gap:2,paddingVertical:8,paddingLeft:50,minHeight:52},stepTile:{position:"absolute",left:0,top:"50%",marginTop:-18,width:36,height:36,borderRadius:10,alignItems:"center",justifyContent:"center"},stepTileText:{fontSize:16,fontWeight:"800"},stepText:{gap:2},stepTitle:{fontSize:14.5,fontWeight:"700",lineHeight:19},stepDetail:{fontSize:13,lineHeight:18},slip:{marginTop:16,borderWidth:1,borderRadius:12,overflow:"hidden"},slipHead:{paddingHorizontal:14,paddingTop:12},slipHeadRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10},counter:{borderWidth:1,borderRadius:999,paddingHorizontal:8,paddingVertical:2},counterText:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1,fontVariant:["tabular-nums"]},prompt:{fontSize:12.5,marginTop:4},legs:{paddingHorizontal:14,marginTop:6},leg:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingVertical:10},legMain:{flexDirection:"row",alignItems:"flex-start",gap:10,flex:1,minWidth:0},pip:{marginTop:2,width:18,height:18,borderRadius:9,alignItems:"center",justifyContent:"center"},pipText:{fontSize:10,fontWeight:"800",lineHeight:13},legText:{flex:1,minWidth:0},legQuestion:{fontSize:13,fontWeight:"600",lineHeight:18},perforation:{marginHorizontal:14,borderTopWidth:1.5,borderStyle:"dashed"},slipFoot:{paddingHorizontal:14,paddingTop:12,paddingBottom:14},verdict:{flexDirection:"row",alignItems:"center",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10},stamp:{borderWidth:2,borderRadius:6,paddingHorizontal:6,paddingVertical:2,transform:[{rotate:"-3deg"}],flexShrink:0},stampText:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4},verdictText:{flex:1,fontSize:12.5,fontWeight:"600",lineHeight:17},tryAgain:{marginTop:8,fontSize:11.5,fontWeight:"700"}});function mt({text:e,colors:t}){const n=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);/* @__PURE__ */
|
|
19
|
+
return W(S,{children:n.map((e,n)=>/* @__PURE__ */W(S,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function bt({content:e,colors:t}){const n=$(e);let o=null;try{o=Y("react-native-webview").WebView}catch{o=null}return o?/* @__PURE__ */W(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):/* @__PURE__ */W(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted},children:"This guide uses HTML. Install react-native-webview in the host app to display it on native."})}function wt({rows:e}){/* @__PURE__ */
|
|
21
20
|
return W(z,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",borderWidth:1,borderColor:V,borderTopWidth:0===t?1:0},children:[
|
|
22
21
|
/* @__PURE__ */W(z,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:V},children:/* @__PURE__ */W(S,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),
|
|
23
22
|
/* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:V},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),
|
|
24
|
-
/* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function
|
|
25
|
-
return W(z,{style:{gap:14},children:
|
|
26
|
-
return T(
|
|
27
|
-
/* @__PURE__ */W(z,{style:[
|
|
28
|
-
/* @__PURE__ */W(x,{contentContainerStyle:m?void 0:{paddingHorizontal:f?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(
|
|
29
|
-
/* @__PURE__ */W(w,{style:[
|
|
23
|
+
/* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function xt({content:e,colors:t,bodyFont:n,headingFont:o}){const r=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const i=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>U(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},l=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const a of t){const e=a.trim();if(!e){l(),i();continue}const t=e.match(_);if(t){l(),i(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(te.test(e)){l(),i(),n.push({type:"hr"});continue}const c=e.match(ee);c?(i(),r.push(c[1].trim())):(l(),o.push(e))}return l(),i(),n}(e);/* @__PURE__ */
|
|
24
|
+
return W(z,{style:{gap:14},children:r.map((e,r)=>"heading"===e.type?/* @__PURE__ */W(S,{style:{fontSize:{1:20,2:18,3:16}[e.level],fontWeight:"800",color:t.text,textTransform:1===e.level?"uppercase":"none",fontFamily:o??n},children:/* @__PURE__ */W(mt,{text:e.text,colors:t})},r):"paragraph"===e.type?/* @__PURE__ */W(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:/* @__PURE__ */W(mt,{text:e.text,colors:t})},r):"list"===e.type?/* @__PURE__ */W(z,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>/* @__PURE__ */T(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",/* @__PURE__ */W(mt,{text:e,colors:t})]},o))},r):"propsTable"===e.type?/* @__PURE__ */W(wt,{rows:e.rows},r):/* @__PURE__ */W(z,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function kt({content:e,panel:t,theme:n,extra:o,title:r="How to Play",label:i="How to Play",variant:l="pill",colors:a,bodyFont:s,headingFont:d}){const[h,u]=c(!1),{width:g}=v(),f=g>=640,y=!(!t||!n);if(!e?.trim()&&!y&&!o)return null;const m=!y&&!!e&&function(e){const t=e.trim();if(!t)return!1;if(J(t))return!0;const n=Z(t);return!!X.test(n)||Q.test(t)}(e);/* @__PURE__ */
|
|
25
|
+
return T(F,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[St.iconButton,{borderColor:a.primary,backgroundColor:`${a.primary}14`}],accessibilityRole:"button",accessibilityLabel:i,children:/* @__PURE__ */W(S,{style:[St.iconButtonText,{color:a.primary,fontFamily:s}],children:"?"})}):/* @__PURE__ */T(B,{onPress:()=>u(!0),style:[St.button,{borderColor:a.primary,backgroundColor:`${a.primary}10`}],accessibilityRole:"button",accessibilityLabel:i,children:[/* @__PURE__ */W(S,{style:[St.buttonText,{color:a.primary,fontFamily:s}],children:i}),/* @__PURE__ */W(S,{style:[St.buttonText,{color:a.primary,fontFamily:s}],children:"?"})]}),/* @__PURE__ */W(p,{visible:h,animationType:"none",transparent:!0,onRequestClose:()=>u(!1),children:/* @__PURE__ */T(z,{style:[St.overlay,f?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:()=>u(!1)}),/* @__PURE__ */T(z,{style:[St.sheet,f?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:a.background,borderColor:a.border}],children:[
|
|
26
|
+
/* @__PURE__ */W(z,{style:[St.header,{paddingHorizontal:f?24:16,borderBottomColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[St.title,{color:a.text,fontFamily:d??s}],children:r})}),
|
|
27
|
+
/* @__PURE__ */W(x,{contentContainerStyle:m?void 0:{paddingHorizontal:f?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(pt,{panel:t,theme:n,dividends:o,bodyFont:s,headingFont:d}):/* @__PURE__ */T(F,{children:[m?/* @__PURE__ */W(bt,{content:e,colors:a}):/* @__PURE__ */W(xt,{content:e??"",colors:a,bodyFont:s,headingFont:d}),o?/* @__PURE__ */W(z,{style:m?{paddingHorizontal:f?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),
|
|
28
|
+
/* @__PURE__ */W(w,{style:[St.footer,{borderTopColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(z,{style:{paddingVertical:16,paddingHorizontal:f?24:16},children:/* @__PURE__ */W(b,{onPress:()=>u(!1),style:({pressed:e,hovered:t})=>[St.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:a.primary,opacity:e?.88:t?.92:1,transform:[{scale:e?.99:1}]}],children:/* @__PURE__ */W(S,{style:[St.doneText,{color:a.primaryText,fontFamily:s}],children:"Got it"})})})})]})]})})]})}var St=k.create({button:{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},buttonText:{fontSize:12,fontWeight:"600"},iconButton:{width:21,height:21,borderRadius:11,borderWidth:1,alignItems:"center",justifyContent:"center",flexShrink:0},iconButtonText:{fontSize:12,fontWeight:"800",lineHeight:15},overlay:{flex:1,backgroundColor:"rgba(0,0,0,0.55)"},sheet:{width:"100%",borderWidth:1,overflow:"hidden",shadowColor:"#000",shadowOffset:{width:0,height:25},shadowOpacity:.25,shadowRadius:25,elevation:24},header:{paddingTop:12,paddingBottom:16,borderBottomWidth:1},title:{fontSize:18,fontWeight:"700"},footer:{borderTopWidth:1},doneButton:{borderRadius:999,paddingVertical:14,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"800",letterSpacing:1.1,textTransform:"uppercase"}});function Ct({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
|
|
30
29
|
/* @__PURE__ */W(H,{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z",fill:n}),
|
|
31
30
|
/* @__PURE__ */W(H,{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",fill:n}),
|
|
32
|
-
/* @__PURE__ */W(H,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:
|
|
33
|
-
/* @__PURE__ */W(H,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:
|
|
34
|
-
/* @__PURE__ */W(H,{d:"M12 14v7",stroke:o,strokeWidth:
|
|
35
|
-
/* @__PURE__ */W(H,{d:"M9 18h6",stroke:o,strokeWidth:
|
|
36
|
-
/* @__PURE__ */W(H,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:
|
|
37
|
-
/* @__PURE__ */W(H,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:
|
|
38
|
-
/* @__PURE__ */W(H,{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",stroke:o,strokeWidth:
|
|
39
|
-
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function
|
|
31
|
+
/* @__PURE__ */W(H,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
|
|
32
|
+
/* @__PURE__ */W(H,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
33
|
+
/* @__PURE__ */W(H,{d:"M12 14v7",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
34
|
+
/* @__PURE__ */W(H,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
|
|
35
|
+
/* @__PURE__ */W(H,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
36
|
+
/* @__PURE__ */W(H,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
37
|
+
/* @__PURE__ */W(H,{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function Bt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
|
|
38
|
+
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function zt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
|
|
40
39
|
return T(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M5 11h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M8 11V7a4 4 0 1 1 8 0v4",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})]})}function vt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
|
|
41
|
-
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function
|
|
42
|
-
return T(z,{style:[
|
|
43
|
-
/* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontSize:c,lineHeight:1.15*c,letterSpacing:-1,color:s,fontFamily:l},children:[/* @__PURE__ */W(S,{style:
|
|
44
|
-
/* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[
|
|
45
|
-
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontWeight:"500",fontSize:c,lineHeight:1.15*c,flexShrink:1,minWidth:0,color:s,fontFamily:l,includeFontPadding:!1},children:e}),/* @__PURE__ */W(S,{style:{fontSize:.3*c,lineHeight:.3*c,fontWeight:"600",marginLeft:.06*c,color:s,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var
|
|
46
|
-
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z",fill:n?t:"none",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function
|
|
40
|
+
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ft({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=Ge(o),{width:a}=v(),c=a>=480?20:a>=400?18:16,s=r?i.textMuted:i.textAlt??i.text,d=r?i.border:o.brand?.chip??i.primary,h=r?i.textMuted:o.brand?.icon??i.primaryText??i.buttonPrimaryText;/* @__PURE__ */
|
|
41
|
+
return T(z,{style:[Wt.row,{gap:.25*c}],children:[
|
|
42
|
+
/* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontSize:c,lineHeight:1.15*c,letterSpacing:-1,color:s,fontFamily:l},children:[/* @__PURE__ */W(S,{style:Wt.yes,children:"YES"}),/* @__PURE__ */W(S,{style:Wt.no,children:"NO"})]}),
|
|
43
|
+
/* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Wt.pill,{width:1.6*c,height:.85*c,borderRadius:.425*c,backgroundColor:d,transform:[{translateY:.02*-c}]}],children:n??/* @__PURE__ */W(Ct,{category:t,size:.6*c,color:h})}),
|
|
44
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontWeight:"500",fontSize:c,lineHeight:1.15*c,flexShrink:1,minWidth:0,color:s,fontFamily:l,includeFontPadding:!1},children:e}),/* @__PURE__ */W(S,{style:{fontSize:.3*c,lineHeight:.3*c,fontWeight:"600",marginLeft:.06*c,color:s,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Wt=k.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function Tt({size:e=20,color:t="currentColor",filled:n=!1}){/* @__PURE__ */
|
|
45
|
+
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z",fill:n?t:"none",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function At({theme:e,contentContainerStyle:t,style:n,children:o}){const r=e.colors,i=a(null),l=a(0),s=a(0),d=a(0),[h,u]=c(!1),[g,f]=c(!1),p=()=>{const e=d.current-s.current;u(l.current>2),f(l.current<e-2)},y=e=>{const t=Math.max(0,l.current+e*Math.round(.7*s.current));rt(i,t)},m=r.background??"#fff";/* @__PURE__ */
|
|
47
46
|
return T(z,{style:[Lt.wrap,n],children:[
|
|
48
|
-
/* @__PURE__ */W(x,{ref:
|
|
49
|
-
return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[
|
|
50
|
-
return W(Dt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:i,bodyFont:r})}var Pt=k.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function Ht(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Ot(e){return(e.description??e.proposition??"").trim()}var It={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function Et(e){return"composite_and"===(t=Ht(e))||"composite_or"===t;var t}function jt(e){const t=e.source_data;if(!t)return[];try{const e=JSON.parse(t)?.composite?.components;return Array.isArray(e)?e.filter(e=>"number"==typeof e&&Number.isFinite(e)):[]}catch{return[]}}function Nt(e){const t=e.home_team?.trim(),n=e.away_team?.trim();if(t&&n)return`${t} vs ${n}`;if(t)return t;if(n)return n;const o=e.eventId??e.event_id;return o?.trim()?o.trim():null}function Gt(e,t){if(!Et(e))return null;const n=function(e){return Et(e)?("composite_and"===(t=Ht(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=jt(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Ot(o),eventLabel:Nt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const i=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(It[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Ot(e),n);return i?{operator:n,legs:i.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var Yt="#0F4C5C",Vt={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},Ut={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function qt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Vt[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function Kt(e,t){return e>0?`${e} today`:t>0?`${t} picks`:"No picks"}function Zt(e){return!!e.is_composite_component||!!(t=Ht(e))&&t.startsWith("co_");var t}function Xt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Qt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Jt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function $t(e){const t=Number.isInteger(e);return new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)}function _t(e){const t="string"==typeof e?new Date(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:e+"Z"):e;return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function en(e){return e.reduce((t,n)=>{const o=tn(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function tn(e,t){if(e.sport)return e.sport;if(Et(e)&&t)for(const n of jt(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var nn=["sports","casino","racing"];function on(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Ht(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function rn(e){return"racing"===on(e)}function ln(e){const t={};for(const n of e){const e=on(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function an(e){const t=ln(e);return nn.filter(e=>(t[e]?.length??0)>0)}function cn(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function sn(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function dn(e,t,n){const o=n?.min_propositions??null,i=n?.max_propositions??null,r=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==i||e<=i));if(r&&r.length>0)return null!=t&&r.includes(t)?{min:t,max:t}:{min:Math.min(...r),max:Math.max(...r)};const l=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(l,o):l,max:null!=i&&a>0?Math.min(a,i):i??a}}function hn(e){const t=e.allocations?.find(e=>"jackpot"===e.allocation_type);return t&&(t.dollar_amount??0)>0?{enabled:!0,amount:t.dollar_amount,limit:e.jackpot_limit??0,progressive:!1}:!0===e.jackpot_enabled&&t&&t.percentage>0?{enabled:!0,amount:e.jackpot_amount??0,limit:e.jackpot_limit??0,progressive:!0}:!0===e.jackpot_enabled&&(e.jackpot_amount??0)>0?{enabled:!0,amount:e.jackpot_amount,limit:e.jackpot_limit??0,progressive:!1}:{enabled:!1,amount:0,limit:0,progressive:!1}}function un(e,t,n){return"racing"===e||!(!t?.length||!t.every(rn))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function gn(e,t){const n={basketball_nba:"NBA Basketball",americanfootball_nfl:"NFL Football",icehockey_nhl:"NHL Hockey",baseball_mlb:"MLB Baseball",soccer_epl:"Premier League",soccer_usa_mls:"MLS Soccer",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function fn(e,t,n){const o=t?.[e];return o||gn(e,n)}function pn(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function yn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function mn(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function bn(e,t,n){return!t||!!e&&(mn(e,t,n)||mn(t,e,n))}function wn(e,t){return t.find(t=>t.id===e)}function xn(e,t){let n=e;return t?.category&&(n=n.filter(e=>on(e)===t.category)),t?.sport&&(n=n.filter(n=>Et(n)?function(e,t,n,o){if(bn(e.sport,t,n))return!0;if(!o)return!1;for(const i of jt(e)){const e=wn(i,o);if(e&&bn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):bn(n.sport,t.sport,t.sportBaseKey))),n}function kn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function Sn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>mn(t,e,n))}function Cn(e,t,n){return!(n?.category&&!kn(e,n.category))&&!(n?.sport&&!Sn(e,n.sport,n.sportBaseKey))&&xn(Fn(t,e),n).length>0}function Bn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!kn(e,t.category)||t.sport&&!Sn(e,t.sport,t.sportBaseKey))):e}function zn(e,t){if(e.sport||!Et(e))return e;const n=tn(e,t);return"Other"===n?e:{...e,sport:n}}function Fn(e,t,n){const o=t.allowed_sports,i=o&&o.length>0,r=t.allowed_markets&&t.allowed_markets.length>0;return i||r?e.filter(l=>{if(Zt(l))return!1;if(i)if(Et(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>mn(e.sport,t,n)))return!0;if(!o)return!1;for(const i of jt(e)){const e=wn(i,o);if(e?.sport&&t.some(t=>mn(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>mn(l.sport,e,n)))return!1;return!(r&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Ht(e);return!!o&&n.includes(o)}(l,t))}).map(t=>zn(t,e)):e.filter(e=>!Zt(e)).map(t=>zn(t,e))}function vn(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var Wn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Tn(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[i,r,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*i+.7152*r+.0722*l>.4?n:t}function An(e,t,n){return un(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Rn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!rn(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],i=null===e?null:t.find(t=>t.key===e);i?i.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function Ln(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function Dn(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],i=[];for(const r of n)Math.random()<.5?o.push(r):i.push(r);return{yesPicks:o,noPicks:i}}var Mn=/* @__PURE__ */new Map,Pn=/* @__PURE__ */new Map;function Hn(e,t,n){let o=e;return t&&(o=o.replace(/currentColor/g,t)),n?o=o.replace(/var\(\s*--icon-accent\s*(?:,[^)]*)?\)/g,n):(o=o.replace(/var\(\s*--icon-accent\s*,\s*([^)]+)\)/g,"$1"),o=o.replace(/var\(\s*--icon-accent\s*\)/g,"currentColor")),o}function On({iconUrl:t,width:n,height:o,iconColor:i,accentColor:r,accessibilityLabel:l}){const a=Xe(t),[c,s]=e.useState(()=>a??Mn.get(t)??null);return e.useEffect(()=>{const e=Xe(t);if(e)return void s(e);if(Mn.has(t))return void s(Mn.get(t));let n=!1;return function(e){const t=Mn.get(e);if(void 0!==t)return Promise.resolve(t);const n=Pn.get(e);if(n)return n;const o=fetch(e).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(Mn.set(e,t),Pn.delete(e),t)).catch(t=>{throw Pn.delete(e),t});return Pn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:Hn(c,i,r),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(f,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function In({iconUrl:t,gameName:n,onPress:o,size:i=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:c,captionColor:s="#14687C",accessibilityLabel:d}){const[u,g]=e.useState(!1),[f,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=i/360,k=a??l,S=pe(r,c,k),C=e.useRef(new h.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:r,opacity:e}),F=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),v=!!o&&(u||f);e.useEffect(()=>{h.timing(C,{toValue:v?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[v,C]);const R=()=>/* @__PURE__ */T(z,{style:[En.container,{width:i,height:i}],children:[
|
|
51
|
-
/* @__PURE__ */T(A,{viewBox:"0 0 360 360",width:
|
|
52
|
-
/* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:
|
|
53
|
-
/* @__PURE__ */W(N,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:
|
|
47
|
+
/* @__PURE__ */W(x,{ref:i,horizontal:!0,showsHorizontalScrollIndicator:!1,onScroll:e=>{l.current=e.nativeEvent.contentOffset.x,p()},onLayout:e=>{s.current=e.nativeEvent.layout.width,p()},onContentSizeChange:e=>{d.current=e,p()},scrollEventThrottle:32,contentContainerStyle:[Lt.content,t],children:o}),h&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll left",onPress:()=>y(-1),style:[Lt.nav,Lt.navLeft,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(z,{style:Lt.navFlip,children:/* @__PURE__ */W(Bt,{size:14,color:r.primary})})}),g&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll right",onPress:()=>y(1),style:[Lt.nav,Lt.navRight,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(Bt,{size:14,color:r.primary})})]})}var Lt=k.create({wrap:{position:"relative",minWidth:0},content:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},nav:{position:"absolute",top:"50%",marginTop:-13,width:26,height:26,borderRadius:13,borderWidth:1,alignItems:"center",justifyContent:"center",shadowColor:"#0F4C5C",shadowOpacity:.35,shadowRadius:5,shadowOffset:{width:0,height:4},elevation:3},navLeft:{left:-2},navRight:{right:-2},navFlip:{transform:[{rotate:"180deg"}]}});function Rt({groups:t,theme:n,bodyFont:o}){const r=n.colors,i=r.background??"#fff";return 0===t.length?null:/* @__PURE__ */W(At,{theme:n,children:t.map((t,n)=>/* @__PURE__ */T(e.Fragment,{children:[n>0&&/* @__PURE__ */W(z,{style:[Dt.divider,{backgroundColor:r.border}]}),t.label?/* @__PURE__ */W(S,{style:[Dt.groupLabel,{color:r.textMuted,fontFamily:o}],children:t.label}):null,t.options.map(e=>{const n=e.value===t.value;/* @__PURE__ */
|
|
48
|
+
return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[Dt.chip,{borderColor:n?r.primary:r.border,backgroundColor:n?r.primary:i}],children:/* @__PURE__ */W(S,{style:[Dt.chipText,{color:n?r.primaryText:r.primary,fontFamily:o}],children:e.label})},e.value??"__all")})]},t.label??n))})}function Mt({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){/* @__PURE__ */
|
|
49
|
+
return W(Rt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var Dt=k.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function Pt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Ht(e){return(e.description??e.proposition??"").trim()}var Ot={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function It(e){return"composite_and"===(t=Pt(e))||"composite_or"===t;var t}function Et(e){const t=e.source_data;if(!t)return[];try{const e=JSON.parse(t)?.composite?.components;return Array.isArray(e)?e.filter(e=>"number"==typeof e&&Number.isFinite(e)):[]}catch{return[]}}function jt(e){const t=e.home_team?.trim(),n=e.away_team?.trim();if(t&&n)return`${t} vs ${n}`;if(t)return t;if(n)return n;const o=e.eventId??e.event_id;return o?.trim()?o.trim():null}function Nt(e,t){if(!It(e))return null;const n=function(e){return It(e)?("composite_and"===(t=Pt(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=Et(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Ht(o),eventLabel:jt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(Ot[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Ht(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var Gt="#0F4C5C",Yt={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",prediction:"PRD",roulette:"RLT",dice:"DCE",cointrio:"CT3"},Vt={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner",prediction:"Call the outcome"};function Ut(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Yt[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function qt(e){return!!e.is_composite_component||!!(t=Pt(e))&&t.startsWith("co_");var t}function Kt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Zt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Xt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Qt(e){const t=Number.isInteger(e);return new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)}function Jt(e){const t="string"==typeof e?new Date(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:e+"Z"):e;return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function $t(e){return e.reduce((t,n)=>{const o=_t(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function _t(e,t){if(e.sport)return e.sport;if(It(e)&&t)for(const n of Et(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var en=["sports","casino","racing","prediction"];function tn(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Pt(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"prediction"===t||n.startsWith("prediction")?"prediction":"sports"}function nn(e){return"racing"===tn(e)}function on(e){const t={};for(const n of e){const e=tn(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function rn(e){const t=on(e);return en.filter(e=>(t[e]?.length??0)>0)}function ln(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function an(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function cn(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,i=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(i&&i.length>0)return null!=t&&i.includes(t)?{min:t,max:t}:{min:Math.min(...i),max:Math.max(...i)};const l=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(l,o):l,max:null!=r&&a>0?Math.min(a,r):r??a}}function sn(e){const t=e.allocations?.find(e=>"jackpot"===e.allocation_type);return t&&(t.dollar_amount??0)>0?{enabled:!0,amount:t.dollar_amount,limit:e.jackpot_limit??0,progressive:!1}:!0===e.jackpot_enabled&&t&&t.percentage>0?{enabled:!0,amount:e.jackpot_amount??0,limit:e.jackpot_limit??0,progressive:!0}:!0===e.jackpot_enabled&&(e.jackpot_amount??0)>0?{enabled:!0,amount:e.jackpot_amount,limit:e.jackpot_limit??0,progressive:!1}:{enabled:!1,amount:0,limit:0,progressive:!1}}function dn(e,t,n){return"racing"===e||!(!t?.length||!t.every(nn))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function hn(e,t){const n={basketball_nba:"NBA",americanfootball_nfl:"NFL",icehockey_nhl:"NHL",baseball_mlb:"MLB",soccer_epl:"Premier League",soccer_usa_mls:"MLS",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL",aussierules_aflw:"AFLW",rugbyleague_nrlw:"NRLW","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function un(e,t,n){const o=t?.[e];return o||hn(e,n)}function gn(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function fn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function pn(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function yn(e,t,n){return!t||!!e&&(pn(e,t,n)||pn(t,e,n))}function mn(e,t){return t.find(t=>t.id===e)}function bn(e,t){let n=e;return t?.category&&(n=n.filter(e=>tn(e)===t.category)),t?.sport&&(n=n.filter(n=>It(n)?function(e,t,n,o){if(yn(e.sport,t,n))return!0;if(!o)return!1;for(const r of Et(e)){const e=mn(r,o);if(e&&yn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):yn(n.sport,t.sport,t.sportBaseKey))),n}function wn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t||"prediction"===t?t:"sports"}(e)===t}function xn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>pn(t,e,n))}function kn(e,t,n){return!(n?.category&&!wn(e,n.category))&&!(n?.sport&&!xn(e,n.sport,n.sportBaseKey))&&bn(Bn(t,e),n).length>0}function Sn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!wn(e,t.category)||t.sport&&!xn(e,t.sport,t.sportBaseKey))):e}function Cn(e,t){if(e.sport||!It(e))return e;const n=_t(e,t);return"Other"===n?e:{...e,sport:n}}function Bn(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,i=t.allowed_markets&&t.allowed_markets.length>0;return r||i?e.filter(l=>{if(qt(l))return!1;if(r)if(It(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>pn(e.sport,t,n)))return!0;if(!o)return!1;for(const r of Et(e)){const e=mn(r,o);if(e?.sport&&t.some(t=>pn(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>pn(l.sport,e,n)))return!1;return!(i&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Pt(e);return!!o&&n.includes(o)}(l,t))}).map(t=>Cn(t,e)):e.filter(e=>!qt(e)).map(t=>Cn(t,e))}function zn(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var vn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Fn(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,i,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*i+.0722*l>.4?n:t}function Wn(e,t,n){return dn(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=t.home_team&&!t.away_team?t.home_team:`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Tn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!nn(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],r=null===e?null:t.find(t=>t.key===e);r?r.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function An(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}var Ln=/* @__PURE__ */new Map,Rn=/* @__PURE__ */new Map;function Mn(e,t,n){let o=e;return t&&(o=o.replace(/currentColor/g,t)),n?o=o.replace(/var\(\s*--icon-accent\s*(?:,[^)]*)?\)/g,n):(o=o.replace(/var\(\s*--icon-accent\s*,\s*([^)]+)\)/g,"$1"),o=o.replace(/var\(\s*--icon-accent\s*\)/g,"currentColor")),o}function Dn({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Xe(t),[c,s]=e.useState(()=>a??Ln.get(t)??null);return e.useEffect(()=>{const e=Xe(t);if(e)return void s(e);if(Ln.has(t))return void s(Ln.get(t));let n=!1;return function(e){const t=Ln.get(e);if(void 0!==t)return Promise.resolve(t);const n=Rn.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=>(Ln.set(e,t),Rn.delete(e),t)).catch(t=>{throw Rn.delete(e),t});return Rn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:Mn(c,r,i),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(f,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function Pn({iconUrl:t,gameName:n,onPress:o,size:r=120,brandColor:i="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:c,captionColor:s="#14687C",accessibilityLabel:d}){const[u,g]=e.useState(!1),[f,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=r/360,k=a??l,S=pe(i,c,k),C=e.useRef(new h.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:i,opacity:e}),v=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),F=!!o&&(u||f);e.useEffect(()=>{h.timing(C,{toValue:F?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[F,C]);const L=()=>/* @__PURE__ */T(z,{style:[Hn.container,{width:r,height:r}],children:[
|
|
50
|
+
/* @__PURE__ */T(A,{viewBox:"0 0 360 360",width:r,height:r,children:[
|
|
51
|
+
/* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:i,strokeWidth:4}),
|
|
52
|
+
/* @__PURE__ */W(N,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:i,children:"PRESS TO PLAY"}),
|
|
54
53
|
/* @__PURE__ */W(N,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:s,children:y})]}),
|
|
55
|
-
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.3),
|
|
56
|
-
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.55),
|
|
54
|
+
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.3),v(50)]}),
|
|
55
|
+
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.55),v(25)]}),
|
|
57
56
|
/* @__PURE__ */W(z,{pointerEvents:"none",style:B(1)}),
|
|
58
|
-
/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(
|
|
59
|
-
return T(p,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:n}),/* @__PURE__ */W(z,{style:{position:"absolute",...c,...s},onStartShouldSetResponder:()=>!0,children:l})]})}function
|
|
60
|
-
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function
|
|
61
|
-
return W(z,{onLayout:e=>a(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */T(z,{style:{width:c,minHeight:
|
|
62
|
-
return W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexBasis:"48%",flexGrow:1,minWidth:0,flexDirection:o?"row":"column",alignItems:"center",gap:o?14:8,borderRadius:16,borderWidth:1,paddingHorizontal:o?16:12,paddingVertical:o?16:12,backgroundColor:
|
|
63
|
-
/* @__PURE__ */W(
|
|
64
|
-
/* @__PURE__ */T(z,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[/* @__PURE__ */W(
|
|
65
|
-
return W(z,{style:{gap:10,width:"100%"},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,backgroundColor:n,borderColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */W(z,{style:{borderRadius:12,paddingHorizontal:12,paddingVertical:10,backgroundColor:e.backgroundAlt},children:/* @__PURE__ */W(
|
|
66
|
-
return T(z,{style:{width:n??"100%",alignItems:"center",borderRadius:18,borderWidth:1,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4,borderColor:e.border,backgroundColor:
|
|
67
|
-
/* @__PURE__ */W(
|
|
68
|
-
/* @__PURE__ */W(
|
|
69
|
-
/* @__PURE__ */W(
|
|
70
|
-
/* @__PURE__ */W(
|
|
71
|
-
return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(
|
|
72
|
-
return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[
|
|
73
|
-
return T(z,{style:{gap:
|
|
74
|
-
return W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(
|
|
75
|
-
return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:
|
|
76
|
-
return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(
|
|
77
|
-
return T(z,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?/* @__PURE__ */W(S,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,c]})}function eo(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function to(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function no(e){if(!e||e.quick_pick_only)return!1;const t=to(e.selection_scope);if("samegamemulti"===to(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(to);return n.includes("samegame")||n.includes("samegamemulti")}function oo(e){return(e.eventId??e.event_id)?.trim()||null}function io(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!co(n))continue;const e=oo(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=ro(o.homeTeam,n.home_team),o.awayTeam=ro(o.awayTeam,n.away_team),o.sport=ro(o.sport,n.sport),o.league=ro(o.league,n.league),o.commenceTime=ao(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=lo(e.commenceTime),o=lo(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function ro(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function lo(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function ao(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=lo(e),i=lo(n);return i!==o?i<o?n:e:e.localeCompare(n)<=0?e:n}function co(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function so(e,t){return t?e.filter(e=>co(e)&&oo(e)===t):[]}function ho(e,t){return!!t&&e.length>0&&e.every(e=>co(e)&&oo(e)===t)}var uo={signature:1,premier:2,exclusive:3},go=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function fo(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function po(e,t){return e.filter(e=>fo(e)===t)}function yo(e){const t=new Set(e.map(fo));return go.filter(e=>t.has(e.level))}function mo(e){return yo(e)[0]?.id??"signature"}var bo=4,wo=6,xo=[4,12],ko=[5,10,20,50];function So(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Co(e){const t=e.payout_structure;return{margin:e.operator_margin??0,perLegProbability:t?.per_leg_probability??.5,perfectMultiple:t?.perfect_prize?.stake_multiple??25,perfectBaseLegs:t?.perfect_prize?.base_legs??6,nearMissBudgetFraction:t?.near_miss?.budget_fraction??.5,roundTo:t?.round_to??5}}function Bo(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function zo(e,t){if(t<0||t>e)return 0;let n=1;for(let o=0;o<t;o+=1)n=n*(e-o)/(o+1);return Math.round(n)}function Fo(e,t,n,o){const i=Math.max(0,Math.min(n,t)),r=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),l=i>0?e*(1-o.margin)*o.nearMissBudgetFraction/i:0,a=Math.pow(1/o.perLegProbability,t),c=[];let s=zo(t,0);for(let d=1;d<=i;d+=1)s+=zo(t,d),c.push(Bo(l*a/s,o.roundTo));return{legs:t,stake:e,allowedMisses:i,perfect:r,nearMiss:c,sweep:r+c.reduce((e,t)=>e+t,0)}}function vo(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Wo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function To(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Ao(e,t){const n=To(t);return e.permitted_rules?.find(e=>To(e.name??"").includes(n))??null}function Ro(e,t,n){const o=t?.min_propositions??n,i=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==i||e<=i))}function Lo(e){if(!So(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??xo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??xo[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),i=Ao(e,"Extra Shot"),r=Ao(e,"Double Shot"),l=Ro(o,i,4).filter(e=>e>1),a=Ro(o,r,6).filter(e=>e>2);if(0===l.length)return null;const c=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:l,defaultLegs:Wo(l),ruleId:i?.id??null}],s=!e.permitted_rules?.length||!!r;a.length>0&&s&&c.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Wo(a),ruleId:r?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=ko.filter(e=>null===h||e<=h);return{modes:c,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(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:Co(e)}}function Do(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Mo(e,t,n){const o=Math.max(0,e-t),i=Fo(20,e,o,n),r=[];for(let l=0;l<=o;l+=1){const t=Math.round(vo(i,l));r.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return r}function Po(e,t){return[{id:"net-1",label:"Extra Shot",stat:"Bigger payout",detail:["One wrong wins a prize","Perfect wins both","Miss twice and the ticket does not pay"],dividends:Mo(e,e-1,t),expectedCorrect:e-1},{id:"net-2",label:"Double Shot",stat:"Safer play",detail:["Two wrong wins a prize","One wrong wins two","Perfect wins all three"],dividends:Mo(e,e-2,t),expectedCorrect:e-2}]}function Ho(e,t){if(!e||e.quick_pick_only)return null;const n=function(e){return(e??"").trim().toLowerCase()}(e.rule),o=t??e.num_propositions??e.min_propositions??e.allowed_propositions?.[0]??0;return"safety_net"===n&&o>0?function(e,t){return{mode:"selection",kind:"safety_net",title:"Choose your safety net",headline:"2 Ways to PLAY, more ways to PAY",heroTagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",legCount:t,options:Po(t,Co(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:Do(t),continueLabel:"Continue to picks"}}(0,o):"pick"===n&&o>0?function(e,t){return{mode:"description",kind:"pick",title:"How it plays",headline:"Every hit PLAYS, every hit PAYS",heroTagline:"No all-or-nothing — your multiplier climbs with every correct pick.",legCount:t,highlights:["Make your yes/no picks across the available markets","Each correct pick pushes your multiplier higher","Land fewer than the full card and you can still cash"],continueLabel:"Continue to picks"}}(0,o):null}function Oo(e){return null!=Ho(e)}var Io=[500,1e3,2500,5e3,7500,1e4,12500,15e3],Eo=[12,11,10,9,8,7,6];function jo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function No(e){return Math.round(100*e)/100}function Go(e,t,n=.21875){const o=Math.pow(2,t),i=e/(1-n)/o,r=Number.isInteger(i),l=No(i),a=r?i:No(.96*i);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!r}}function Yo(e,t=Eo){return{dividend:e,rungs:t.map(t=>Go(e,t))}}function Vo(e,t){if(!jo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,i=Eo.filter(e=>e>=n&&e<=o);if(0===i.length)return null;const r=t?.dividends??Io;return{dividends:r.map(e=>Yo(e,i)),defaultDividend:r.includes(1e4)?1e4:r[Math.floor(r.length/2)],defaultLegs:i.includes(9)?9:i[Math.floor(i.length/2)],tagline:"The dividend is set. The win is yours to build."}}function Uo(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,i=e.max_propositions??e.num_propositions??null,r=0===n.length&&null!==o&&null!==i&&i>0,l=n.length>0?n:r?Ln(o,i):[],a=/* @__PURE__ */new Map;for(const p of t?.top_payouts??[]){const e=Number(p.proposition_count),t=Number(p.net_payout),n=Number(p.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const p of l){const e=Number(p);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const c=Array.from(a.values()).sort((e,t)=>e.count-t.count),s=l.length>0?Math.max(...l.map(Number)):0,d=jo(e)?Vo(e):null,h=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,u=d?[]:c.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),g=Ho(e,s),f="safety_net"===g?.kind?(g.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:l.map(Number),maxLegCount:s,tiers:u,modes:f,pydDividends:h,hasGenericDividends:(n.length>0||r)&&u.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function qo({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:i=1,maxBet:r=null,colors:l,bodyFont:a,headingFont:s}){const d=e=>Math.min(Math.max(e,i),r??1/0),[h,u]=c(()=>String(d(20))),g=parseFloat(h),f=d(Number.isFinite(g)&&g>0?g:20),p=f/20,y=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),m=!!t?.length;if(!y)return null;const b=/* @__PURE__ */T(z,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
|
|
57
|
+
/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(Dn,{iconUrl:t,width:w*x,height:w*x,iconColor:k,accentColor:S})})]});return o?/* @__PURE__ */W(b,{onPress:o,onPressIn:()=>p(!0),onPressOut:()=>p(!1),onHoverIn:"web"===m.OS?()=>g(!0):void 0,onHoverOut:"web"===m.OS?()=>g(!1):void 0,accessibilityRole:"button",accessibilityLabel:d??`Press to play ${n}`,style:{width:r,height:r,borderRadius:r/360*78,transform:[{scale:f?.96:1}]},children:L()}):L()}var Hn=k.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=u.get("window"),c=o?{bottom:Math.max(0,a.height-t.y+i)}:{top:t.y+t.height+i},s="right"===r?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};/* @__PURE__ */
|
|
58
|
+
return T(p,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:n}),/* @__PURE__ */W(z,{style:{position:"absolute",...c,...s},onStartShouldSetResponder:()=>!0,children:l})]})}function In(e){return e.selectionCard??e.backgroundAlt}function En({color:e,style:t}){/* @__PURE__ */
|
|
59
|
+
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function jn({colors:t,count:n=2}){const{width:o}=v(),r=o>=400,i=o>=640,[l,a]=e.useState(0),c=r?l>0?(l-12)/2:"48%":"100%",s=In(t);/* @__PURE__ */
|
|
60
|
+
return W(z,{onLayout:e=>a(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */T(z,{style:{width:c,minHeight:i?140:112,borderRadius:16,borderWidth:1,padding:i?20:14,gap:i?12:8,justifyContent:"center",alignItems:"flex-start",backgroundColor:s,borderColor:t.border},children:[/* @__PURE__ */W(En,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */W(En,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function Nn({colors:e,count:t=4}){const{width:n}=v(),o=n>=640,r=In(e);/* @__PURE__ */
|
|
61
|
+
return W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexBasis:"48%",flexGrow:1,minWidth:0,flexDirection:o?"row":"column",alignItems:"center",gap:o?14:8,borderRadius:16,borderWidth:1,paddingHorizontal:o?16:12,paddingVertical:o?16:12,backgroundColor:r,borderColor:e.border},children:[
|
|
62
|
+
/* @__PURE__ */W(En,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),
|
|
63
|
+
/* @__PURE__ */T(z,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:14,width:80}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:10,width:48}})]}),o&&/* @__PURE__ */W(En,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function Gn({colors:e,count:t=3}){const n=In(e);/* @__PURE__ */
|
|
64
|
+
return W(z,{style:{gap:10,width:"100%"},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,backgroundColor:n,borderColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */W(z,{style:{borderRadius:12,paddingHorizontal:12,paddingVertical:10,backgroundColor:e.backgroundAlt},children:/* @__PURE__ */W(En,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function Yn({colors:e,tileSize:t=116,width:n}){/* @__PURE__ */
|
|
65
|
+
return T(z,{style:{width:n??"100%",alignItems:"center",borderRadius:18,borderWidth:1,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4,borderColor:e.border,backgroundColor:In(e)},children:[
|
|
66
|
+
/* @__PURE__ */W(En,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),
|
|
67
|
+
/* @__PURE__ */W(En,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),
|
|
68
|
+
/* @__PURE__ */W(En,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),
|
|
69
|
+
/* @__PURE__ */W(En,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function Vn({colors:e}){/* @__PURE__ */
|
|
70
|
+
return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(En,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function Un({colors:t,count:n=3,tileSize:o=116,showTierTabs:r=!1}){const[i,l]=e.useState(0),a=i>=420?(i-12)/2:"100%";/* @__PURE__ */
|
|
71
|
+
return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[r&&/* @__PURE__ */W(Vn,{colors:t}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */W(Yn,{colors:t,tileSize:o,width:a},n))})]})}function qn({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=v(),r=o>=640;/* @__PURE__ */
|
|
72
|
+
return T(z,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:28,width:72,borderRadius:999}}),/* @__PURE__ */W(z,{style:{gap:16},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{borderRadius:12,borderWidth:1,borderColor:e.border,backgroundColor:In(e),overflow:"hidden"},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:12,width:96}})]}),Array.from({length:n}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:r?14:12,borderTopWidth:1,borderTopColor:e.border},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function Kn({colors:e}){/* @__PURE__ */
|
|
73
|
+
return W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function Zn({colors:e}){/* @__PURE__ */
|
|
74
|
+
return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:In(e),overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:6},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:4},children:[/* @__PURE__ */W(En,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(En,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function Xn({colors:e,rows:t=2}){/* @__PURE__ */
|
|
75
|
+
return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(Kn,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(Zn,{colors:e},n))})]})}function Qn({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:r=3,categoryCount:i=2,showTierTabs:l=!1}){const a=n?.trim()||"Loading",c=(()=>{switch(o){case"sport":/* @__PURE__ */return W(Nn,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return W(Gn,{colors:e});case"games":/* @__PURE__ */return W(Un,{colors:e,count:r,showTierTabs:l});case"propositions":/* @__PURE__ */return W(qn,{colors:e});case"entries":/* @__PURE__ */return W(Xn,{colors:e,rows:2});default:/* @__PURE__ */return W(jn,{colors:e,count:i})}})();/* @__PURE__ */
|
|
76
|
+
return T(z,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?/* @__PURE__ */W(S,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,c]})}function Jn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function $n(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function _n(e){if(!e||e.quick_pick_only)return!1;const t=$n(e.selection_scope);if("samegamemulti"===$n(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map($n);return n.includes("samegame")||n.includes("samegamemulti")}function eo(e){return(e.eventId??e.event_id)?.trim()||null}function to(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!io(n))continue;const e=eo(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=no(o.homeTeam,n.home_team),o.awayTeam=no(o.awayTeam,n.away_team),o.sport=no(o.sport,n.sport),o.league=no(o.league,n.league),o.commenceTime=ro(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=oo(e.commenceTime),o=oo(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function no(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function oo(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function ro(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=oo(e),r=oo(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function io(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function lo(e,t){return t?e.filter(e=>io(e)&&eo(e)===t):[]}function ao(e,t){return!!t&&e.length>0&&e.every(e=>io(e)&&eo(e)===t)}var co={signature:1,premier:2,exclusive:3},so=[{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 ho(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function uo(e,t){return e.filter(e=>ho(e)===t)}function go(e){const t=new Set(e.map(ho));return so.filter(e=>t.has(e.level))}function fo(e){return go(e)[0]?.id??"signature"}var po=.21875;function yo(e){return null==e||Math.abs(e-.21875)<5e-5?po:e}var mo=[1,5,10,20,50],bo=[4,12];function wo(e){return(e??"").trim().toLowerCase()}var xo={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function ko(e){if(!e||e.quick_pick_only)return!1;const t=wo(e.rule);return Object.values(xo).includes(t)}function So(e){const t=wo(e?.rule);return Object.keys(xo).find(e=>xo[e]===t)??"straight"}function Co(e,t,n){const o=yo(n?.operatorMargin),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),multiple:c,totalOutcomes:i,winningOutcomes:2,oddsOneIn:a}}function Bo(e){if(!ko(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??bo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??bo[1],o=vo(So(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const i=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=mo.filter(e=>e>=i&&(null===l||e<=l));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,i),l??20),minStake:i,maxStake:l,quickStakes:a,tagline:o.tagline,operatorMargin:yo(e.operator_margin),perLegProbability:e.payout_structure?.per_leg_probability??.5}}var zo=[{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 vo(e){return zo.find(t=>t.id===e)??zo[0]}function Fo(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 Wo(e,t,n,o){const r=vo(e),i=t*(1-yo(o?.operatorMargin)),l=Math.round(Math.pow(2,n)),a=[];let c=0;for(let s=0;s<r.depth;s++){const e=Fo(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)),outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:a,totalOutcomes:l,winningOutcomes:c,oddsOneIn:Math.round(l/c*1e4)/1e4}}var To=4,Ao=6,Lo=[4,12],Ro=[5,10,20,50];function Mo(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Do(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 Po(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Ho(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 Oo(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=Ho(t,0);for(let d=1;d<=r;d+=1)s+=Ho(t,d),c.push(Po(l*a/s,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:i,nearMiss:c,sweep:i+c.reduce((e,t)=>e+t,0)}}function Io(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Eo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function jo(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function No(e,t){const n=jo(t);return e.permitted_rules?.find(e=>jo(e.name??"").includes(n))??null}function Go(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 Yo(e){if(!Mo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Lo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Lo[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=No(e,"Extra Shot"),i=No(e,"Double Shot"),l=Go(o,r,4).filter(e=>e>1),a=Go(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:Eo(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:Eo(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=Ro.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:Do(e)}}function Vo(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Uo(e,t,n){const o=Math.max(0,e-t),r=Oo(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(Io(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function qo(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:Uo(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:Uo(e,e-2,t),expectedCorrect:e-2}]}function Ko(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:qo(t,Do(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:Vo(t),continueLabel:"Continue to picks"}}(0,o):"pick"===n&&o>0?function(e,t){return{mode:"description",kind:"pick",title:"How it plays",headline:"Every hit PLAYS, every hit PAYS",heroTagline:"No all-or-nothing — your multiplier climbs with every correct pick.",legCount:t,highlights:["Make your yes/no picks across the available markets","Each correct pick pushes your multiplier higher","Land fewer than the full card and you can still cash"],continueLabel:"Continue to picks"}}(0,o):null}function Zo(e){return null!=Ko(e)}var Xo=[1,5,10,20,50,100],Qo=[4,12];function Jo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function $o(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 _o(e){if(!Jo(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=Xo.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 er=[500,1e3,2500,5e3,7500,1e4,12500,15e3],tr=[12,11,10,9,8,7,6];function nr(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function or(e){return Math.round(100*e)/100}function rr(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=or(r),a=i?r:or(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function ir(e,t=tr){return{dividend:e,rungs:t.map(t=>rr(e,t))}}function lr(e,t){if(!nr(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=tr.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??er;return{dividends:i.map(e=>ir(e,r)),defaultDividend:i.includes(1e4)?1e4:i[Math.floor(i.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}var ar=50,cr=[25,50,75,100],sr=[{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 dr(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function hr(e,t){return Math.round(e*t/50)}function ur(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:hr(o,t),cumulative:hr(n,t)}))}function gr(e,t){return hr(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function fr(e,t,n){return hr(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function pr(e){if(!dr(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=sr.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??cr[0],l=e.max_bet??cr[cr.length-1],a=cr.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:cr,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var yr=.21875,mr=6,br=5,wr=1,xr=2;function kr(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Sr={golden_point:!1,captains_challenge:!1};function Cr(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:Br(t,n)}}function Br(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function zr(e,t){const n=Cr(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function vr(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Fr(e){if(!kr(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=vr(e,e=>e.includes("challenge")&&!e.includes("golden")),l=vr(e,e=>e.includes("challenge")&&e.includes("golden")),a=vr(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 Wr(e){return e?.quick_pick_only?"quick_pick":Jo(e)?"game_set":nr(e)?"pick_your_dividend":dr(e)?"ladder":ko(e)?"mirror":Mo(e)?"safety_net":kr(e)?"six_again":_n(e)?"selections":Zo(e)?"rule_setup":"selections"}function Tr(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(_n(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 Ar(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||_n(e)||Tr(e))}function Lr(e){switch(Wr(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 Rr(e,t){return Mr(e)&&t&&t>0?t:null}function Mr(e){switch(Wr(e)){case"game_set":case"pick_your_dividend":case"ladder":case"mirror":case"safety_net":case"six_again":return!0;default:return Tr(e)}}function Dr(e){const t=Wr(e);return"six_again"===t||"pick_your_dividend"===t}function Pr(e){return"six_again"===Wr(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function Hr(e,t,n,o){if(!e||t<=0||n<=0)return 0;switch(Wr(e)){case"game_set":return Or($o(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e);case"mirror":return Or(Wo(So(e),n,t,{operatorMargin:e.operator_margin??void 0}).tiers[0]?.prize??0,e);case"pick_your_dividend":return function(e,t,n=er){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(rr(o,e).stake-t)<.005)return o;return 0}(t,n);case"ladder":{const o=sr.find(e=>e.legs===t);return o?Or(gr(o,n),e):0}case"safety_net":{const r=null!=o?.expectedCorrect&&o.expectedCorrect>0?Math.min(2,Math.max(0,t-o.expectedCorrect)):1;return Or(Oo(n,t,r,Do(e)).sweep,e)}default:{if("exact"!==(e.rule??"").trim().toLowerCase())return 0;const o=function(e,t,n){const o=e.payout_structure;if(!o)return 0;const r=o.results??o.values;if(!r)return 0;const i=r[String(t)];return void 0!==i?i*n:0}(e,t,n);if(o>0)return Or(o,e);const r=e.payout_structure?.expression??e.payout_structure?.formula??"";return/2\s*\^/.test(r)?Or($o(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e):0}}}function Or(e,t){return!1===t?.round_payouts?e:Po(e,t?.payout_structure?.round_to??1)}function Ir(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,i=0===n.length&&null!==o&&null!==r&&r>0,l=n.length>0?n:i?An(o,r):[],a=/* @__PURE__ */new Map;for(const p of t?.top_payouts??[]){const e=Number(p.proposition_count),t=Number(p.net_payout),n=Number(p.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const p of l){const e=Number(p);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const c=Array.from(a.values()).sort((e,t)=>e.count-t.count),s=l.length>0?Math.max(...l.map(Number)):0,d=nr(e)?lr(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(t=>({count:t.count,payout20:t.payout>0&&t.betAmount>0?Or(t.payout/t.betAmount*20,e):Hr(e,t.count,20)})),g=Ko(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 Er({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:i=null,colors:l,bodyFont:a,headingFont:s}){const d=e=>Math.min(Math.max(e,r),i??1/0),[h,u]=c(()=>String(d(20))),g=parseFloat(h),f=d(Number.isFinite(g)&&g>0?g:20),p=f/20,y=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),m=!!t?.length;if(!y)return null;const b=/* @__PURE__ */T(z,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
|
|
78
77
|
/* @__PURE__ */W(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"Example values for a"}),
|
|
79
78
|
/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:l.textMuted,fontFamily:a},children:"$"}),
|
|
80
79
|
/* @__PURE__ */W(C,{value:h,onChangeText:u,onBlur:()=>u(String(f)),keyboardType:"numeric",accessibilityLabel:"Example bet amount",style:{width:64,paddingVertical:2,paddingHorizontal:5,borderRadius:6,borderWidth:1,borderColor:l.border,backgroundColor:l.background??"#fff",color:l.text,fontSize:11,fontWeight:"600",fontFamily:a}}),
|
|
81
|
-
/* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=
|
|
82
|
-
return T(z,{style:{width:"100%"},children:[m?/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",letterSpacing:1.4,textTransform:"uppercase",color:l.textMuted,fontFamily:a,marginBottom:6},children:"Compare dividends"}):null,/* @__PURE__ */T(z,{style:{paddingHorizontal:14,paddingVertical:12},children:[n?.length?null:b,t?.length?t.map((e,t)=>/* @__PURE__ */T(z,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:s},children:e.label}),e.tiers.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[/* @__PURE__ */T(S,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:a},children:[e.label," correct"]}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children
|
|
83
|
-
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Dividend"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children
|
|
84
|
-
/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Legs played"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Payout"})]}),e.map(e=>/* @__PURE__ */T(o?B:z,{...o?{onPress:()=>o(e.count),accessibilityRole:"button"}:{},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:o?6:4},children:[/* @__PURE__ */T(S,{style:{fontWeight:"600",color:o?l.primary:l.text,fontSize:12,fontFamily:a},children:[e.count," legs"]}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:a},children:e.payout20>0
|
|
85
|
-
return W(B,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:/* @__PURE__ */W(S,{numberOfLines:1,style:{fontFamily:
|
|
80
|
+
/* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=i?` (${Qt(r)}–${Qt(i)})`:` (min ${Qt(r)})`,"."]})]});/* @__PURE__ */
|
|
81
|
+
return T(z,{style:{width:"100%"},children:[m?/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",letterSpacing:1.4,textTransform:"uppercase",color:l.textMuted,fontFamily:a,marginBottom:6},children:"Compare dividends"}):null,/* @__PURE__ */T(z,{style:{paddingHorizontal:14,paddingVertical:12},children:[n?.length?null:b,t?.length?t.map((e,t)=>/* @__PURE__ */T(z,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:s},children:e.label}),e.tiers.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[/* @__PURE__ */T(S,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:a},children:[e.label," correct"]}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:Qt(e.payout20*p)})]},e.label))]},e.id)):/* @__PURE__ */T(F,n?.length?{children:[
|
|
82
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Dividend"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:Qt(e.dividend)}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:a},children:Qt(e.stakeFrom)})]},e.dividend)),
|
|
83
|
+
/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Legs played"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Payout"})]}),e.map(e=>/* @__PURE__ */T(o?B:z,{...o?{onPress:()=>o(e.count),accessibilityRole:"button"}:{},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:o?6:4},children:[/* @__PURE__ */T(S,{style:{fontWeight:"600",color:o?l.primary:l.text,fontSize:12,fontFamily:a},children:[e.count," legs"]}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:a},children:e.payout20>0?Qt(e.payout20*p):"—"})]},e.count))]})]})]})}function jr({tabs:e,active:t,onChange:n,colors:o,bodyFont:r,useShortLabel:i}){return e.length<=1?null:/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;/* @__PURE__ */
|
|
84
|
+
return W(B,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:/* @__PURE__ */W(S,{numberOfLines:1,style:{fontFamily:r,fontSize:10,fontWeight:"700",letterSpacing:-.1,color:l?o.primaryText:o.primary},children:i?e.shortLabel:e.label})},e.id)})})}var Nr={scrollSnapType:"x mandatory"},Gr={scrollSnapAlign:"center"};function Yr({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
|
|
86
85
|
return T(z,{style:{position:"relative",width:t,height:t},children:[/* @__PURE__ */T(A,{viewBox:"30 -5 280 280",width:t,height:t,children:[
|
|
87
86
|
/* @__PURE__ */W(I,{x:90,y:55,width:210,height:210,rx:42,fill:n,opacity:.3}),
|
|
88
87
|
/* @__PURE__ */W(I,{x:65,y:30,width:210,height:210,rx:42,fill:n,opacity:.55}),
|
|
89
|
-
/* @__PURE__ */W(I,{x:40,y:5,width:210,height:210,rx:42,fill:n})]}),/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:.107*t,top:.107*t,width:.607*t,height:.607*t},children:/* @__PURE__ */W(
|
|
90
|
-
return T(z,{ref:
|
|
91
|
-
/* @__PURE__ */W(
|
|
92
|
-
/* @__PURE__ */W(
|
|
93
|
-
return T(z,{style:[
|
|
94
|
-
/* @__PURE__ */T(S,{style:{marginTop:8,fontFamily:
|
|
95
|
-
/* @__PURE__ */T(z,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[/* @__PURE__ */W(S,{style:{fontFamily:
|
|
96
|
-
return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>
|
|
97
|
-
return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===_,disabled:!n},onPress:()=>(e=>{E(e,Uo(e,m?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===_?w.primary:"transparent",opacity:n?1:.5,width:q},children:[/* @__PURE__ */W(Qo,{iconUrl:Ze(e),size:G?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:L}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===_?w.primary:A,fontFamily:F},children:I(e)})]},e.id)})})]})]})}var _o=k.create({centerContainer:{alignItems:"center",justifyContent:"center",padding:32,gap:8},gameCard:{flexDirection:"column",alignItems:"center",borderWidth:1,borderRadius:24,paddingHorizontal:20,paddingTop:22,paddingBottom:20},jackpotBadge:{alignSelf:"center",flexDirection:"row",alignItems:"center",gap:2,paddingHorizontal:8,paddingVertical:2,borderRadius:999},jackpotBadgeText:{fontSize:10,fontWeight:"700"},tagsRow:{flexDirection:"row",flexWrap:"wrap",gap:4},tag:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},tagText:{fontSize:12}}),ei=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,i=(t?.method??"GET").toUpperCase(),r="GET"===i,l=r,a=!r&&!n?.idempotent,c=`${i} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(i){throw i}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",i=await this.request(o);return{games:i.payload||[],howToPlayMarkdown:i.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),i={};for(const[r,l]of Object.entries(o.payload||{}))i[Number(r)]=l;return i}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function ti(e,t,o){const[r,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[g,f]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),f(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return i(()=>{b()},[b]),{games:r,howToPlayMarkdown:s,loading:h,error:g,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function ni(e,t,o){const[r,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getPropositions(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,g]);return i(()=>{y()},[y]),{propositions:r,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function oi(e,t){const[o,r]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,u=n(async()=>{if(!h)try{a(!0),d(null),r(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return i(()=>{u()},[u]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await u()},[e,u])}}function ii(e,t,o){const[r,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getGameEntries(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,g]);return i(()=>{y()},[y]),{entries:r,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function ri(e,t,o){const[r,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,g=a(/* @__PURE__ */new Set);return i(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in r)&&!g.current.has(e.id));if(0===n.length)return;for(const e of n)g.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:r,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function li(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{createEntry:async t=>{try{o(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const n=await e.createGameEntry(t);return a(n),n}catch(n){const e=n instanceof Error?n.message:"Failed to create entry";throw r(e),new Error(e)}finally{o(!1)}},loading:t,error:i,entry:l,clearSubmitError:n(()=>r(null),[])}}function ai(e){const[t,n]=c(e?"sport":"game"),[o,i]=c(null),[r,l]=c({}),[a,s]=c(null);return{step:t,selectedGame:o,selections:r,placedEntry:a,setGameOnly:e=>{i(e)},clearSelectedGame:()=>{i(null),l({})},goToSportSelection:e=>{e&&i(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),i(null),l({}))},reset:()=>{n("game"),i(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function ci(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{evaluate:n(async(t,n)=>{try{o(!0),r(null);const i=await e.evaluateRule(t,n);return a(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:i,result:l}}function si(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{calculate:n(async(t,n)=>{try{o(!0),r(null);const i=await e.calculatePayout(t,n);return a(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:i,result:l}}function di(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{preview:n(async(t,n)=>{try{o(!0),r(null);const i=await e.getEntryPreview(t,n);return a(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to preview entry";throw r(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:i,result:l}}var hi=[1,5,10,20,50,100],ui=[4,12];function gi(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function fi(e,t,n){const o=n?.operatorMargin??.2,i=n?.perLegProbability??.5,r=Math.round(Math.pow(1/i,t)),l=(1-o)*Math.pow(1/i,t);return{legs:t,stake:e,prize:Math.round(e*l*100)/100,multiple:l,oddsOneIn:r}}function pi(e){if(!gi(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??ui[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??ui[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const i=Math.max(e.min_bet??1,.01),r=e.max_bet??null,l=hi.filter(e=>e>=i&&(null===r||e<=r));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,i),r??20),minStake:i,maxStake:r,quickStakes:l,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var yi=50,mi=[25,50,75,100],bi=[{legs:4,firstPayingTier:3,tiers50:[[3,60],[4,340]]},{legs:6,firstPayingTier:4,tiers50:[[4,40],[5,110],[6,850]]},{legs:8,firstPayingTier:5,tiers50:[[5,30],[6,70],[7,300],[8,2100]]},{legs:9,firstPayingTier:5,tiers50:[[5,10],[6,40],[7,100],[8,350],[9,4500]]},{legs:10,firstPayingTier:6,tiers50:[[6,15],[7,45],[8,140],[9,800],[10,1e4]]}];function wi(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function xi(e,t){return Math.round(e*t/50*100)/100}function ki(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:xi(o,t),cumulative:xi(n,t)}))}function Si(e,t){return xi(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Ci(e,t,n){return xi(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Bi(e){if(!wi(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,i=bi.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===i.length)return null;const r=e.min_bet??mi[0],l=e.max_bet??mi[mi.length-1],a=mi.filter(e=>e>=r&&e<=l);return{ladders:i,defaultLegs:i.some(e=>8===e.legs)?8:i[Math.floor(i.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:mi,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var zi=.21875,Fi=[1,5,10,20,50],vi=[4,12];function Wi(e){return(e??"").trim().toLowerCase()}var Ti={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function Ai(e){if(!e||e.quick_pick_only)return!1;const t=Wi(e.rule);return Object.values(Ti).includes(t)}function Ri(e,t,n){const o=n?.operatorMargin??.21875,i=n?.perLegProbability??.5,r=Math.round(Math.pow(2,t)),l=Math.pow(i,t)+Math.pow(1-i,t),a=Math.round(1/l),c=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*c*100)/100,multiple:c,totalOutcomes:r,winningOutcomes:2,oddsOneIn:a}}function Li(e){if(!Ai(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??vi[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??vi[1],o=Mi(function(e){const t=Wi(e?.rule);return Object.keys(Ti).find(e=>Ti[e]===t)??"straight"}(e)),i=(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===i.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=Fi.filter(e=>e>=r&&(null===l||e<=l));return{variant:o,legOptions:i,defaultLegs:i.includes(8)?8:i[Math.floor(i.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:a,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Di=[{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 Mi(e){return Di.find(t=>t.id===e)??Di[0]}function Pi(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let i=0;i<n;i++)o=o*(e-i)/(i+1);return Math.round(o)}var Hi=.21875,Oi=6,Ii=5,Ei=1,ji=2;function Ni(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Gi={golden_point:!1,captains_challenge:!1};function Yi(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),i=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),r=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:i,challenge:r,perfect:i+r,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:Vi(t,n)}}function Vi(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function Ui(e,t){const n=Yi(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function qi(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Ki(e){if(!Ni(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),i=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),r=qi(e,e=>e.includes("challenge")&&!e.includes("golden")),l=qi(e,e=>e.includes("challenge")&&e.includes("golden")),a=qi(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:i,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:r?.id??null,goldenChallenge:l?.id??null}}}function Zi(e){return e?.quick_pick_only?"quick_pick":gi(e)?"game_set":jo(e)?"pick_your_dividend":wi(e)?"ladder":Ai(e)?"mirror":So(e)?"safety_net":Ni(e)?"six_again":no(e)?"selections":Oo(e)?"rule_setup":"selections"}function Xi(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(no(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function Qi(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||no(e)||Xi(e))}function Ji(e){switch(Zi(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 $i(e){const t=Zi(e);return"six_again"===t||"pick_your_dividend"===t}function _i(e){return"six_again"===Zi(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function er(e,t,n){if(!e||t<=0||n<=0)return 0;switch(Zi(e)){case"game_set":return fi(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return Ri(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=Io){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(Go(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var tr=t(null),nr={};function or(){const e=o(tr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function ir({apiUrl:t,apiKey:o,fetchImpl:r,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:g,colorScheme:f,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:F,disableQuickPick:v=!1,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:R,disableEventSwipe:L,enableSportFavourites:D,onEntryPlaced:M,onBeforeSubmit:P,onCancel:H,onShare:O,onRecharge:I,onClearEventFilter:E,screenSize:j="desktop",howToPlayMarkdown:N,sportDisplayNames:G,categoryDisplayNames:Y}){const V=je(g,f),U=Ne(V),q=Ge(V),K=!(!p||!y),Z=l(()=>new ei({apiUrl:t,apiKey:o,fetchImpl:r,getAuthHeaders:s}),[t,o,r,s]),[X,Q]=c(0),J=a(0),[$,_]=c(0),[ee,te]=c([]),[ne,oe]=c({}),[ie,re]=c({}),[le,ae]=c(void 0),[ce,se]=c(null),[de,he]=c(void 0),ue=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&he(e)}catch(e){}},[h]);i(()=>{h?ue():he(void 0)},[h,ue]);const ge=a(null),fe=a(null),[pe,ye]=c(null),[me,be]=c(C??null),[we,xe]=c(B??null);i(()=>{C&&be(C)},[C]),i(()=>{xe(B??null)},[B]);const[ke,Se]=c(B),Ce=a(!1);i(()=>{if(!B)return Se(void 0),void(Ce.current=!1);Ce.current||Se(B)},[B]);const Be=w??pe??void 0,ze=yn(me??S??C??void 0,F),Fe=yn(S,F)??S,ve=me??void 0,{games:We,howToPlayMarkdown:Te,loading:Ae,error:Re}=ti(Z,{category:Be,jurisdiction:x,sport:ze},{skip:K}),{propositions:Le,loading:De,error:Me}=ni(Z,{category:Be,sport:Fe,event_id:ke},{skip:K}),{sports:Pe,loading:He}=oi(Z,{skip:K}),{createEntry:Oe,loading:Ie,error:Ee,clearSubmitError:Ye}=li(Z),{preview:Ve}=di(Z),Ue=l(()=>Bn((K?p:We)??[],{category:Be,sport:ze??ve,sportBaseKey:F}),[K,p,We,Be,ze,ve,F]),qe=N??Te??null,{maxPayouts:Ke,refetchGame:Ze}=ri(Z,Ue??[],{skip:K,betAmount:20}),Xe=K?b??nr:Ke,Qe=K?y:Le,Je=S?(Qe??[]).filter(e=>e.sport===S):Qe,$e=l(()=>an(Je??[]),[Je]),_e=l(()=>Be||(1===$e.length?$e[0]:void 0),[Be,$e]),et=l(()=>{const e=Je??[];return _e?xn(e,{category:_e,sportBaseKey:F}):e},[Je,_e,F]),tt=l(()=>ve?xn(et,{sport:ve,sportBaseKey:F}):et,[et,ve,F]),nt=l(()=>({category:_e,sport:ve,sportBaseKey:F}),[_e,ve,F]),ot=l(()=>{const e=(Ue??[]).filter(e=>e.active);if(!_e&&$e.length>1)return[];const t=_e?Bn(e,nt):e;return _e||ve?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Cn(e,t,n)):e}(t,tt,nt):t},[Ue,tt,nt,_e,ve,$e.length]),{step:it,selectedGame:rt,selections:lt,placedEntry:at,setGameOnly:ct,clearSelectedGame:st,goToSportSelection:dt,goToConfirmation:ht,goToSuccess:ut,goBack:gt,reset:ft,toggleSelection:pt}=ai(k),yt=e.useCallback(()=>{Ce.current=!0,Se(void 0),ft(),E?.()},[ft,E]),mt=!!ke,bt=mt?z:void 0,wt=!K&&(Ae||De||!!rt&&He),xt=K?null:rt?Re||Me:Re,kt=l(()=>rt?Fn(tt,rt,F):tt,[rt,tt,F]),St=l(()=>{const e=rt?Fn(et,rt,F):et,t=rt?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const i=tn(o,e);"Other"!==i&&(t?.length&&!t.includes(i)||n.set(i,(n.get(i)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[rt,et,F]),Ct=l(()=>St.map(e=>e.key),[St]),Bt=l(()=>rt?kt:et,[rt,kt,et]),zt=l(()=>xn(rt?kt:et,{category:_e}),[rt,kt,et,_e]),Ft=l(()=>{const e=new Set(Ct);return Pe.filter(t=>e.has(t.key))},[Pe,Ct]),vt=l(()=>xn(kt,{category:_e,sport:me}),[kt,_e,me]),Wt=l(()=>{if(!rt||!no(rt))return[];const{min:e}=dn(rt,le),t=le??e;return io(vt).filter(e=>e.propositionCount>=t)},[rt,le,vt]),Tt=l(()=>no(rt)?so(vt,we):vt,[rt,vt,we]),At=function(e,t){const[n,o]=c([]),r=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(Et(n))for(const e of jt(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return i(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(K?null:Z,Tt),Rt=Object.keys(lt).map(Number),Lt=Rt.length,Dt=l(()=>vt.filter(e=>Rt.includes(e.id)),[vt,Rt]);i(()=>{w||pe||1===$e.length&&ye($e[0])},[w,pe,$e]),i(()=>{if(!rt)return;const e=kt,t=new Set(e.map(on));let n=pe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==pe&&ye(n));const o=n?e.filter(e=>on(e)===n):e,i=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=tn(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),r=rt.allowed_sports;be(e=>e&&i.has(e)&&(!r?.length||r.includes(e))?e:1===r?.length&&i.has(r[0])?r[0]:1===i.size?Array.from(i)[0]:(()=>{const e=/* @__PURE__ */new Map;for(const i of o){const t=tn(i,o);"Other"!==t&&(r?.length&&!r.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,i]of e)i>n&&(t=o,n=i);return t})())},[rt?.id,kt,pe]),i(()=>{Ye()},[rt?.id,it,Ye]),i(()=>{rt&&_e&&(kn(rt,_e)||st())},[rt,_e,st]),i(()=>{rt&&(Cn(rt,tt,{category:_e,sport:me,sportBaseKey:F})||st())},[rt,_e,me,F,tt,st]),i(()=>{if(rt){const e=ge.current,t=fe.current!==rt.id;if(fe.current=rt.id,null!=e?.stake&&e.stake>0?_(e.stake):t&&_(Math.max(20,rt.min_bet??0)),e){const{count:t}=e;return ge.current=null,ae(t),void Q(t)}if(rt.allowed_propositions&&rt.allowed_propositions.length>0){const e=le;null!=e&&rt.allowed_propositions.includes(e)?Q(e):(ae(void 0),Q(0))}else ae(void 0),Q(rt.num_propositions||rt.max_propositions||0)}},[rt]);const Mt=(e,t,n)=>{const o=(Xe[e]?.top_payouts??[]).find(e=>e.proposition_count===t),i=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,r=o&&i>0?o.net_payout/i*n:0;return r>0?r:er((Ue??[]).find(t=>t.id===e)??(rt?.id===e?rt:null),t,n)};i(()=>{if("sport"!==it&&"confirm"!==it||!rt||K)return;const e=no(rt)&&we?Tt.length:Number.MAX_SAFE_INTEGER;let t;if(rt.allowed_propositions&&rt.allowed_propositions.length>0){const n=rt.allowed_propositions?[...rt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void re({});const o=le??n[0],i=n.filter(e=>e>o);if(0===i.length)return void re({});t=[o,...i]}else{const{min:n,max:o}=dn(rt),i=Math.min(o,e);if(n<=0||i<=n)return void re({});t=Array.from({length:i-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Mt(rt.id,o,20);re(n)},[it,rt,le,we,Tt.length,K,Xe]),i(()=>{if("confirm"!==it||!rt)return;const e=Rt.length;if(0===e)return;let t=!1;const n={};for(let i=0;i<=e;i++)n[i]=Mt(rt.id,i,$);oe(n),e!==J.current?(J.current=e,Q(e)):(X>e||X<=0&&e>0)&&Q(e);const o=$>0?$:Math.max(rt.min_bet??20,.01);return(async()=>{try{const n=await Ve(rt.id,{actual:X,predicted:X,total:e,bet_amount:o,rule_id:ce});if(t)return;if(te(n.winning_counts),$>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Mt(rt.id,n,$)}oe(e)}}catch{t||te([])}})(),()=>{t=!0}},[it,rt,Rt.length,X,$,Ve,Xe,ce]);const Pt=l(()=>{return t=ce,(e=rt)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[rt,ce]),Ht=!no(rt)||ho(Dt,we),Ot=rt?dn(rt,void 0,Pt):null,It=!(!rt||!Ht)&&(rt.allowed_propositions&&rt.allowed_propositions.length>0?null!=le&&Lt===le&&sn(Lt,Ot?.min,Ot?.max):sn(Lt,Ot?.min,Ot?.max)),Nt=rt?.min_bet??0,Gt=Math.max(Nt,.01),Yt=null==de||$<=de,Vt=!Ie&&$>=Gt&&It&&Yt,Ut=e=>{ae(e),Q(e);for(const t of Object.keys(lt))pt(Number(t),lt[Number(t)])},qt=e=>{ae(e),Q(e)},Kt=e=>{xe(no(e)?B??null:null),ct(e)},Zt=e=>{if(e!==we){for(const e of Object.keys(lt)){const t=Number(e);pt(t,lt[t])}xe(e)}},Xt=(e,t,n)=>{ge.current={count:t,stake:n},ct(e),Ze(e.id);const o=e.allowed_sports??[];let i=null;me&&o.some(e=>mn(me,e,F))?i=me:1===o.length&&(i=o[0]),be(i);for(const c of Object.keys(lt)){const e=Number(c);pt(e,lt[e])}let r=xn(Fn(Je??[],e,F),{category:_e,sport:i,sportBaseKey:F});const l=Math.max(0,Math.min(t,r.length)),a=[...r].sort(()=>Math.random()-.5).slice(0,l);for(const c of a)pt(c.id,Math.random()<.5?"yes":"no");ht()},Qt=a(!1),Jt=async()=>{if(rt&&It&&!Qt.current){if(K){const e={id:Math.floor(1e4*Math.random()),game_id:rt.id,user_id:d,proposition_ids:Rt,selections:lt,pending:!0,expected_correct:X,bet_amount:$};return M?.(e),ut(e),void ue()}Qt.current=!0;try{P&&await P($);const e=await Oe({game_id:rt.id,user_id:d,proposition_ids:Rt,selections:lt,stake:$,rule_id:Pt?.id??null});M?.(e),ut(e),ue()}catch(e){}finally{Qt.current=!1}}},$t=n(e=>G?.[e]??Ft.find(t=>t.key===e)?.label??fn(e,void 0,F),[G,Ft,F]),_t=n(e=>pn(e,Y),[Y]),en=l(()=>({theme:V,bodyFont:U,headingFont:q,games:ot,propositions:Tt,compositeComponentById:At,propositionsForCategoryPicker:Bt,sportsForSelectedGame:Ct,sportOptions:St,propositionsForSportPicker:zt,sportSummaries:Ft,loading:wt,error:xt,step:it,selectedGame:rt,selections:lt,placedEntry:at,selectedPropositionIds:Rt,selectedPropositions:Dt,selectionValid:It,selectedRuleId:ce,setSelectedRuleId:se,selectedRule:Pt,answeredCount:Lt,betAmount:$,setBetAmount:_,expectedCorrect:X,setExpectedCorrect:Q,selectedPropositionCount:le,handlePropositionCountChange:Ut,upgradePropositionCount:qt,winningCounts:ee,payouts:ne,overloadPayouts:ie,submitting:Ie,submitError:Ee,canSubmit:Vt,gamePrice:Nt,userBalance:de,hasSufficientBalance:Yt,refreshUserBalance:ue,handleSubmit:Jt,selectGame:Kt,goToSportSelection:dt,goToConfirmation:ht,goBack:gt,reset:ft,clearSelectedGame:st,toggleSelection:pt,quickPickGame:Xt,selectedCategory:pe,setSelectedCategory:ye,selectedSport:me,setSelectedSport:be,selectedEventId:we,sameGameMultiEvents:Wt,selectSameGameMultiEvent:Zt,apiUrl:t,apiKey:o,fetchImpl:r,getAuthHeaders:s,userId:d,disableQuickPick:v,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:R,disableEventSwipe:L,enableSportFavourites:D,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:F,gameCategory:w,eventFilterActive:mt,eventFilterLabel:bt,clearEventFilter:yt,screenSize:j,displaySportName:$t,displayCategoryName:_t,maxPayouts:Xe??{},howToPlayMarkdown:qe,onEntryPlaced:M,onCancel:H,onShare:O,onRecharge:I,demoEntries:m,demoGames:p,demoPropositions:y}),[V,U,q,ot,Tt,At,Bt,zt,Ct,St,Ft,wt,xt,it,rt,lt,at,Rt,Dt,It,Lt,$,X,le,ce,Pt,ee,ne,ie,Ie,Ee,Vt,Nt,t,o,d,de,r,s,v,T,A,R,L,D,S,C,B,F,w,j,mt,bt,yt,pe,me,we,Wt,Xe,qe,M,H,O,I,E,m,p,y,Ut,$t,_t]);/* @__PURE__ */
|
|
98
|
-
return W(
|
|
99
|
-
return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-x.current<300?(x.current=0,t()):x.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[
|
|
88
|
+
/* @__PURE__ */W(I,{x:40,y:5,width:210,height:210,rx:42,fill:n})]}),/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:.107*t,top:.107*t,width:.607*t,height:.607*t},children:/* @__PURE__ */W(Dn,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function Vr({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:g,legOptions:f,onPick:p,colors:y,menuShadow:b}){const[w,x]=c(!1),[k,C]=c(null),v=a(null),A=a(null),[L,R]=c(null),[M,D]=c(!1),[P,H]=c(null),O="web"===m.OS,I=40+40*f.length+12;i(()=>{if(!w||!O)return;const e=v.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0,r=window.innerHeight-t.bottom,i=t.top,l=r<I&&i>r;R({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[w,O,I]),r(()=>{if(!w)return;if(O){const e=e=>{const t=v.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||A.current&&A.current.contains(n)||x(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=v.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);D(r<I&&t>r),H({x:e,y:t,width:n,height:o})})},[w,O,I]);const E=/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:y.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:y.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:g},children:"How many picks?"})}),f.map((e,t)=>/* @__PURE__ */T(B,{onPress:()=>{x(!1),C(null),p(e)},onMouseEnter:()=>C(e),onMouseLeave:()=>C(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:y.border,backgroundColor:k===e?y.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:y.text,fontFamily:g},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:ne(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:g},children:"QP"})]},e))]});/* @__PURE__ */
|
|
89
|
+
return T(z,{ref:v,style:{position:"relative"},children:[
|
|
90
|
+
/* @__PURE__ */W(Pn,{iconUrl:e,gameName:t,onPress:()=>x(e=>!e),size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h}),w&&O&&L&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:A,style:{position:"absolute",top:L.flipUp?void 0:L.bottom+6,bottom:L.flipUp&&"undefined"!=typeof window?window.innerHeight-L.top+6:void 0,left:L.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:y.background,border:`1px solid ${y.border}`,borderRadius:8,minWidth:180,boxShadow:b,overflow:"hidden",fontFamily:g},children:E}),document.body),
|
|
91
|
+
/* @__PURE__ */W(On,{visible:w&&!O,anchor:P,onClose:()=>x(!1),flipUp:M,align:"right",children:/* @__PURE__ */W(z,{style:{elevation:6,backgroundColor:y.background,borderRadius:8,borderWidth:1,borderColor:y.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:E})})]})}function Ur({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:g=!1,onPropositionCountChange:f,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=je(s,d),w=b.colors,k=be(b),C=Ne(b),v=Ge(b),A=se(b),L=ce(b),R=fe(b),M="dark"===b.colorScheme,D=l(()=>function(e){const t=new Set(e.filter(e=>ko(e)&&wo(e.rule)===xo.straight).map(ho));return e.filter(e=>!(ko(e)&&wo(e.rule)!==xo.straight&&t.has(ho(e))))}(e),[e]),P=l(()=>go(D),[D]),[H,O]=c(()=>fo(D));r(()=>{0!==P.length&&(P.some(e=>e.id===H)||O(P[0].id))},[P,H]);const I=l(()=>!g||P.length<=1?D:uo(D,co[H]),[D,g,P.length,H]),E=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,j=(e,t)=>{e.quick_pick_only&&y&&t>0?y(e,t):(t>0&&!_n(e)&&f?.(t),n(e),p?.())},[N,G]=c(0),Y=N>0&&N<400,V=Y?108:124,U=N>0&&N<380,q=function(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}(I.length,N),K=N>0?(N-4*(q-1))/q:void 0,Z=N>0?Math.min(.86*N,380):0,X=Z>0?Math.max((N-Z)/2,4):4,Q=Z+14,J=I.length>1,$=J&&X>=48,_=a(null),[ee,te]=c(0),oe=e=>{const t=Math.max(0,Math.min(e,I.length-1));rt(_,t*Q),te(t)};r(()=>{rt(_,0,!1),te(0)},[H]);const re={shadowColor:"#000",shadowOpacity:M?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(Un,{colors:ke(b),count:Math.min(Math.max(D.length,2),4),showTierTabs:g&&P.length>1}):i?/* @__PURE__ */W(z,{style:qr.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===D.length?/* @__PURE__ */W(z,{style:qr.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games available"})}):/* @__PURE__ */T(z,{style:{flexDirection:"column"},onLayout:e=>G(e.nativeEvent.layout.width),children:[g&&/* @__PURE__ */W(jr,{tabs:P,active:H,onChange:O,colors:w,bodyFont:C,useShortLabel:U}),0===I.length?/* @__PURE__ */W(z,{style:qr.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games in this collection"})}):/* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(x,{ref:_,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:Q>0?Q:void 0,snapToAlignment:"start",style:Nr,scrollEventThrottle:16,onScroll:e=>{if(Q<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/Q);te(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:X,paddingRight:X,paddingBottom:8},children:I.map(e=>{const o=zn(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>vn[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),i=t?.id===e.id,l=String(e.id),a=sn(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:g,tiers:f,modes:x,pydDividends:B,hasGenericDividends:F,minBet:M,maxBet:D}=Ir(e,m?.[e.id]),P=Ze(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
|
|
92
|
+
return T(z,{style:[qr.gameCard,Gr,{width:Z||void 0,flexGrow:0,flexShrink:0,borderColor:i?w.primary:w.border,backgroundColor:i?w.infoBg:w.background??k,opacity:o?1:.5},re],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&y&&d.length>1?/* @__PURE__ */W(Vr,{iconUrl:P,gameName:E(e),size:V,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:R,captionColor:w.textMuted,bodyFont:C,legOptions:d.map(Number),onPick:t=>j(e,t),colors:w,menuShadow:L}):/* @__PURE__ */W(Pn,{iconUrl:P,gameName:E(e),onPress:()=>j(e,g),size:V,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:R,captionColor:w.primary}),
|
|
93
|
+
/* @__PURE__ */T(S,{style:{marginTop:8,fontFamily:v,fontSize:13,letterSpacing:-.52,lineHeight:13},children:[/* @__PURE__ */W(S,{style:{fontWeight:"800",color:w.primary},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:ne(w.primary,.85)},children:"NO"})]}),
|
|
94
|
+
/* @__PURE__ */T(z,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[/* @__PURE__ */W(S,{style:{fontFamily:v,fontWeight:"600",fontSize:Y?19:21,color:A,letterSpacing:-.19,lineHeight:1.2*(Y?19:21),textAlign:"center",paddingHorizontal:4},children:E(e)}),/* @__PURE__ */W(kt,{variant:"icon",panel:ot(e),content:c||"Pick outcomes and land the payout for this game.",theme:b,title:E(e),label:`How to play ${E(e)}`,extra:/* @__PURE__ */W(Er,{tiers:F?f:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>j(e,t):void 0,minBet:M,maxBet:D,colors:w,bodyFont:C,headingFont:v}),colors:w,bodyFont:C,headingFont:v})]}),s?/* @__PURE__ */W(S,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:w.primary,textAlign:"center",fontFamily:C},children:s}):null,c?/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:w.textMuted,textAlign:"center",fontFamily:C},children:c}):null,a.enabled&&/* @__PURE__ */W(z,{style:[qr.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[qr.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?Qt(a.amount):a.limit>0?`Up to ${Qt(a.limit)}`:"Jackpot":Qt(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[qr.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[qr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[qr.tagText,{color:de(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[qr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[qr.tagText,{color:de(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[qr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[qr.tagText,{color:de(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[qr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[qr.tagText,{color:de(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(lt,{theme:b,variant:"primary",size:"sm",onPress:()=>{n(e),p?.()},children:"Select game"})}),H?/* @__PURE__ */W(z,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */W(S,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:w.text,textAlign:"center",fontFamily:C},children:H})}):null]},l)})}),$&&/* @__PURE__ */W(F,{children:[-1,1].map(e=>{const t=e<0?ee>0:ee<I.length-1;/* @__PURE__ */
|
|
95
|
+
return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>oe(ee+e),disabled:!t,style:{position:"absolute",top:"38%",left:e<0?2:void 0,right:e>0?2:void 0,width:44,height:44,borderRadius:22,borderWidth:1,borderColor:w.border,backgroundColor:ne(w.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...re},children:/* @__PURE__ */W(S,{style:{fontSize:18,lineHeight:20,color:w.primary,fontFamily:C},children:e<0?"‹":"›"})},e)})})]}),I.length>0&&J&&/* @__PURE__ */W(z,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:I.map((e,t)=>/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityLabel:`Go to ${E(e)}`,onPress:()=>oe(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(z,{style:{width:t===ee?22:7,height:7,borderRadius:999,backgroundColor:t===ee?w.primary:ne(w.primary,.25)}})},e.id))}),I.length>0&&J&&/* @__PURE__ */T(z,{style:{borderTopWidth:1,borderTopColor:w.border,paddingTop:10,marginTop:2},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:w.textMuted,fontFamily:v,marginBottom:8},children:"All games"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:I.map((e,t)=>{const n=zn(e);/* @__PURE__ */
|
|
96
|
+
return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===ee,disabled:!n},onPress:()=>(e=>{j(e,Ir(e,m?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===ee?w.primary:"transparent",opacity:n?1:.5,width:K},children:[/* @__PURE__ */W(Yr,{iconUrl:Ze(e),size:Y?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:R}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===ee?w.primary:A,fontFamily:v},children:E(e)})]},e.id)})})]})]})}var qr=k.create({centerContainer:{alignItems:"center",justifyContent:"center",padding:32,gap:8},gameCard:{flexDirection:"column",alignItems:"center",borderWidth:1,borderRadius:24,paddingHorizontal:20,paddingTop:22,paddingBottom:20},jackpotBadge:{alignSelf:"center",flexDirection:"row",alignItems:"center",gap:2,paddingHorizontal:8,paddingVertical:2,borderRadius:999},jackpotBadgeText:{fontSize:10,fontWeight:"700"},tagsRow:{flexDirection:"row",flexWrap:"wrap",gap:4},tag:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},tagText:{fontSize:12}}),Kr=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),i="GET"===r,l=i,a=!i&&!n?.idempotent,c=`${r} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[i,l]of Object.entries(o.payload||{}))r[Number(i)]=l;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function Zr(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[g,f]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),f(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:g,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function Xr(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getPropositions(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,g]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function Qr(e,t){const[o,i]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,u=n(async()=>{if(!h)try{a(!0),d(null),i(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return r(()=>{u()},[u]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await u()},[e,u])}}function Jr(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getGameEntries(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,g]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function $r(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,g=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!g.current.has(e.id));if(0===n.length)return;for(const e of n)g.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:i,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function _r(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{createEntry:async t=>{try{o(!0),i(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const n=await e.createGameEntry(t);return a(n),n}catch(n){const e=n instanceof Error?n.message:"Failed to create entry";throw i(e),new Error(e)}finally{o(!1)}},loading:t,error:r,entry:l,clearSubmitError:n(()=>i(null),[])}}function ei(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[i,l]=c({}),[a,s]=c(null);return{step:t,selectedGame:o,selections:i,placedEntry:a,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),l({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),l({}))},reset:()=>{n("game"),r(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function ti(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{evaluate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.evaluateRule(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to evaluate rule";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function ni(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{calculate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.calculatePayout(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to calculate payout";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function oi(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{preview:n(async(t,n)=>{try{o(!0),i(null);const r=await e.getEntryPreview(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to preview entry";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}var ri=["totals","spread","player"],ii={totals:"Total",spread:"Spread",player:"Player"},li={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 ai(e,t){return t?`${li[e]} (taken)`:li[e]}var ci=/racing|greyhound|harness|trots/,si=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function di(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return ci.test(o)||ci.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":si.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function hi(e){return di(Pt(e)??"",Ht(e),e.sport??"")}function ui(e,t){if(It(e)){const n=Nt(e,t),o=/* @__PURE__ */new Set;for(const t of n?.legs??[]){const n=t.prop?hi(t.prop):di("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=hi(e);return n?[n]:[]}function gi(e){return eo(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var fi=/* @__PURE__ */new Set;function pi(e,t,n){const o=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map;for(const l of e){const e=gi(l);if(!e)continue;const i=ui(l,n);if(i.length>0){const t=r.get(e)??/* @__PURE__ */new Set;for(const e of i)t.add(e);r.set(e,t)}if(l.id in t)for(const t of i){const n=o.get(e)??/* @__PURE__ */new Map;n.has(t)||n.set(t,l.id),o.set(e,n)}}const i=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):fi};return{isCapped:e=>{const t=gi(e);if(!t)return!1;const r=o.get(t);return!!r&&ui(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:i,slotsFor:e=>{const t=e?r.get(e):void 0;if(!t)return[];const n=i(e);return ri.filter(e=>t.has(e)).map(e=>({family:e,label:ii[e],filled:n.has(e)}))}}}function yi(e,t,n){const o=[],r=/* @__PURE__ */new Map;for(const i of e){if(o.length>=t)break;const e=gi(i),l=e?ui(i,n):[];if(e&&l.length>0){const t=r.get(e)??/* @__PURE__ */new Set;if(l.some(e=>t.has(e)))continue;for(const e of l)t.add(e);r.set(e,t)}o.push(i)}return o}var mi=t(null),bi={};function wi(){const e=o(mi);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function xi({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:g,colorScheme:f,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:v,disableQuickPick:F=!1,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:M,onEntryPlaced:D,onBeforeSubmit:P,onCancel:H,onShare:O,onRecharge:I,onClearEventFilter:E,screenSize:j="desktop",howToPlayMarkdown:N,sportDisplayNames:G,categoryDisplayNames:Y}){const V=je(g,f),U=Ne(V),q=Ge(V),K=!(!p||!y),Z=l(()=>new Kr({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[X,Q]=c(0),J=a(0),[$,_]=c(0),[ee,te]=c([]),[ne,oe]=c({}),[re,ie]=c({}),[le,ae]=c(void 0),[ce,se]=c(null),[de,he]=c(void 0),ue=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&he(e)}catch(e){}},[h]);r(()=>{h?ue():he(void 0)},[h,ue]);const ge=a(null),fe=a(null),[pe,ye]=c(null),[me,be]=c(C??null),[we,xe]=c(B??null);r(()=>{C&&be(C)},[C]),r(()=>{xe(B??null)},[B]);const[ke,Se]=c(B),Ce=a(!1);r(()=>{if(!B)return Se(void 0),void(Ce.current=!1);Ce.current||Se(B)},[B]);const Be=w??pe??void 0,ze=fn(me??S??C??void 0,v),ve=fn(S,v)??S,Fe=me??void 0,{games:We,howToPlayMarkdown:Te,loading:Ae,error:Le}=Zr(Z,{category:Be,jurisdiction:x,sport:ze},{skip:K}),{propositions:Re,loading:Me,error:De}=Xr(Z,{category:Be,sport:ve,event_id:ke},{skip:K}),{sports:Pe,loading:He}=Qr(Z,{skip:K}),{createEntry:Oe,loading:Ie,error:Ee,clearSubmitError:Ye}=_r(Z),{preview:Ve}=oi(Z),Ue=l(()=>Sn((K?p:We)??[],{category:Be,sport:ze??Fe,sportBaseKey:v}),[K,p,We,Be,ze,Fe,v]),qe=N??Te??null,{maxPayouts:Ke,refetchGame:Ze}=$r(Z,Ue??[],{skip:K,betAmount:20}),Xe=K?b??bi:Ke,Qe=K?y:Re,Je=S?(Qe??[]).filter(e=>e.sport===S):Qe,$e=l(()=>rn(Je??[]),[Je]),_e=l(()=>Be||(1===$e.length?$e[0]:void 0),[Be,$e]),et=l(()=>{const e=Je??[];return _e?bn(e,{category:_e,sportBaseKey:v}):e},[Je,_e,v]),tt=l(()=>Fe?bn(et,{sport:Fe,sportBaseKey:v}):et,[et,Fe,v]),nt=l(()=>({category:_e,sport:Fe,sportBaseKey:v}),[_e,Fe,v]),ot=l(()=>{const e=(Ue??[]).filter(e=>e.active);if(!_e&&$e.length>1)return[];const t=_e?Sn(e,nt):e;return _e||Fe?function(e,t,n){return n?.category||n?.sport?e.filter(e=>kn(e,t,n)):e}(t,tt,nt):t},[Ue,tt,nt,_e,Fe,$e.length]),{step:rt,selectedGame:it,selections:lt,placedEntry:at,setGameOnly:ct,clearSelectedGame:st,goToSportSelection:dt,goToConfirmation:ht,goToSuccess:ut,goBack:gt,reset:ft,toggleSelection:pt}=ei(k),yt=e.useCallback(()=>{Ce.current=!0,Se(void 0),ft(),E?.()},[ft,E]),mt=!!ke,bt=mt?z:void 0,wt=!K&&(Ae||Me||!!it&&He),xt=K?null:it?Le||De:Le,kt=l(()=>it?Bn(tt,it,v):tt,[it,tt,v]),St=l(()=>{const e=it?Bn(et,it,v):et,t=it?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const r=_t(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[it,et,v]),Ct=l(()=>St.map(e=>e.key),[St]),Bt=l(()=>it?kt:et,[it,kt,et]),zt=l(()=>bn(it?kt:et,{category:_e}),[it,kt,et,_e]),vt=l(()=>{const e=new Set(Ct);return Pe.filter(t=>e.has(t.key))},[Pe,Ct]),Ft=l(()=>bn(kt,{category:_e,sport:me}),[kt,_e,me]),Wt=l(()=>{if(!it||!_n(it))return[];const{min:e}=cn(it,le),t=le??e;return to(Ft).filter(e=>e.propositionCount>=t)},[it,le,Ft]),Tt=l(()=>_n(it)?lo(Ft,we):Ft,[it,Ft,we]),At=function(e,t){const[n,o]=c([]),i=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(It(n))for(const e of Et(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(K?null:Z,l(()=>[...Je??[],...Tt],[Je,Tt])),Lt=l(()=>pi(kt,lt,At),[kt,lt,At]),Rt=n((e,t)=>{if(!(e in lt)){const t=kt.find(t=>t.id===e);if(t&&Lt.isCapped(t))return}pt(e,t)},[lt,kt,Lt,pt]),Mt=Object.keys(lt).map(Number),Dt=Mt.length,Pt=l(()=>Ft.filter(e=>Mt.includes(e.id)),[Ft,Mt]);r(()=>{w||pe||1===$e.length&&ye($e[0])},[w,pe,$e]),r(()=>{if(!it)return;const e=kt,t=new Set(e.map(tn));let n=pe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==pe&&ye(n));const o=n?e.filter(e=>tn(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=_t(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=it.allowed_sports;be(e=>e&&r.has(e)&&(!i?.length||i.includes(e))?e:1===i?.length&&r.has(i[0])?i[0]:1===r.size?Array.from(r)[0]:(()=>{const e=/* @__PURE__ */new Map;for(const r of o){const t=_t(r,o);"Other"!==t&&(i?.length&&!i.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[it?.id,kt,pe]),r(()=>{Ye()},[it?.id,rt,Ye]),r(()=>{it&&_e&&(wn(it,_e)||st())},[it,_e,st]),r(()=>{it&&(kn(it,tt,{category:_e,sport:me,sportBaseKey:v})||st())},[it,_e,me,v,tt,st]),r(()=>{if(it){const e=ge.current,t=fe.current!==it.id;if(fe.current=it.id,null!=e?.stake&&e.stake>0?_(e.stake):t&&_(Math.max(20,it.min_bet??0)),e){const{count:t}=e;return ge.current=null,ae(t),void Q(t)}if(!t)return;if(it.allowed_propositions&&it.allowed_propositions.length>0){const e=le;null!=e&&it.allowed_propositions.includes(e)?Q(e):(ae(void 0),Q(0))}else ae(void 0),Q(it.num_propositions||it.max_propositions||0)}},[it]);const Ht=(e,t,n)=>{const o=(Ue??[]).find(t=>t.id===e)??(it?.id===e?it:null),r=(Xe[e]?.top_payouts??[]).find(e=>e.proposition_count===t),i=r&&r.bet_amount&&r.bet_amount>0?r.bet_amount:20,l=r&&i>0?Or(r.net_payout/i*n,o):0;return l>0?l:Hr(o,t,n)};r(()=>{if("sport"!==rt&&"confirm"!==rt||!it||K)return;const e=_n(it)&&we?Tt.length:Number.MAX_SAFE_INTEGER;let t;if(it.allowed_propositions&&it.allowed_propositions.length>0){const n=it.allowed_propositions?[...it.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ie({});const o=le??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ie({});t=[o,...r]}else{const{min:n,max:o}=cn(it),r=Math.min(o,e);if(n<=0||r<=n)return void ie({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ht(it.id,o,20);ie(n)},[rt,it,le,we,Tt.length,K,Xe]),r(()=>{if("confirm"!==rt||!it)return;const e=Mt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ht(it.id,r,$);oe(n),e!==J.current?(J.current=e,Q(e)):(X>e||X<=0&&e>0)&&Q(e);const o=$>0?$:Math.max(it.min_bet??20,.01);return(async()=>{try{const n=await Ve(it.id,{actual:X,predicted:X,total:e,bet_amount:o,rule_id:ce});if(t)return;if(te(n.winning_counts),$>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?Or(o,it):Ht(it.id,n,$)}oe(e)}}catch{t||te([])}})(),()=>{t=!0}},[rt,it,Mt.length,X,$,Ve,Xe,ce]);const Ot=l(()=>{return t=ce,(e=it)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[it,ce]),jt=!_n(it)||ao(Pt,we),Nt=it?cn(it,void 0,Ot):null,Gt=!(!it||!jt)&&(it.allowed_propositions&&it.allowed_propositions.length>0?null!=le&&Dt===le&&an(Dt,Nt?.min,Nt?.max):an(Dt,Nt?.min,Nt?.max)),Yt=it?.min_bet??0,Vt=Math.max(Yt,.01),Ut=null==de||$<=de,qt=!Ie&&$>=Vt&&Gt&&Ut,Kt=e=>{ae(e),Q(e);for(const t of Object.keys(lt))pt(Number(t),lt[Number(t)])},Zt=e=>{ae(e),Q(e)},Xt=e=>{xe(_n(e)?B??null:null),ct(e)},Qt=e=>{if(e!==we){for(const e of Object.keys(lt)){const t=Number(e);pt(t,lt[t])}xe(e)}},Jt=e=>{for(const n of Object.keys(lt)){const e=Number(n);pt(e,lt[e])}const t=yi([...Tt].sort(()=>Math.random()-.5),Math.max(0,e),At);for(const n of t)pt(n.id,Math.random()<.5?"yes":"no");return t.length},$t=(e,t,n)=>{const o=e.allowed_sports??[];let r=null;me&&(0===o.length||o.some(e=>pn(me,e,v)))?r=me:1===o.length&&(r=o[0]);const i=bn(Bn(Je??[],e,v),{category:_e,sportBaseKey:v});if(0===i.length)return;const l=e=>{return yi((n=e?bn(i,{sport:e,sportBaseKey:v}):i,[...n].sort(()=>Math.random()-.5)),Math.max(0,t),At);var n},a=/* @__PURE__ */new Map;for(const u of i){const e=_t(u,i);"Other"!==e&&a.set(e,(a.get(e)??0)+1)}const c=[...a.keys()].sort((e,t)=>(a.get(t)??0)-(a.get(e)??0));let s=r??c[0]??null,d=l(s);for(const u of c){if(d.length>=t)break;if(u===s)continue;const e=l(u);e.length>d.length&&(d=e,s=u)}r=s;const h=it?.id===e.id;ge.current=h?null:{count:t,stake:n},ct(e),Ze(e.id),be(r),h&&(ae(t),Q(t),null!=n&&n>0&&_(n));for(const u of Object.keys(lt)){const e=Number(u);pt(e,lt[e])}for(const u of d)pt(u.id,Math.random()<.5?"yes":"no");ht()},en=a(!1),nn=async()=>{if(it&&Gt&&!en.current){if(K){const e={id:Math.floor(1e4*Math.random()),game_id:it.id,user_id:d,proposition_ids:Mt,selections:lt,pending:!0,expected_correct:X,bet_amount:$};return D?.(e),ut(e),void ue()}en.current=!0;try{P&&await P($);const e=await Oe({game_id:it.id,user_id:d,proposition_ids:Mt,selections:lt,stake:$,rule_id:Ot?.id??null});D?.(e),ut(e),ue()}catch(e){}finally{en.current=!1}}},on=n(e=>G?.[e]??vt.find(t=>t.key===e)?.label??un(e,void 0,v),[G,vt,v]),ln=n(e=>gn(e,Y),[Y]),sn=l(()=>({theme:V,bodyFont:U,headingFont:q,games:ot,propositions:Tt,compositeComponentById:At,propositionsForCategoryPicker:Bt,sportsForSelectedGame:Ct,sportOptions:St,propositionsForSportPicker:zt,sportSummaries:vt,loading:wt,error:xt,step:rt,selectedGame:it,selections:lt,placedEntry:at,selectedPropositionIds:Mt,selectedPropositions:Pt,selectionValid:Gt,selectedRuleId:ce,setSelectedRuleId:se,selectedRule:Ot,answeredCount:Dt,betAmount:$,setBetAmount:_,expectedCorrect:X,setExpectedCorrect:Q,selectedPropositionCount:le,handlePropositionCountChange:Kt,upgradePropositionCount:Zt,winningCounts:ee,payouts:ne,overloadPayouts:re,submitting:Ie,submitError:Ee,canSubmit:qt,gamePrice:Yt,userBalance:de,hasSufficientBalance:Ut,refreshUserBalance:ue,handleSubmit:nn,selectGame:Xt,goToSportSelection:dt,goToConfirmation:ht,goBack:gt,reset:ft,clearSelectedGame:st,toggleSelection:Rt,quickPickGame:$t,quickPickSelections:Jt,selectedCategory:pe,setSelectedCategory:ye,selectedSport:me,setSelectedSport:be,selectedEventId:we,sameGameMultiEvents:Wt,selectSameGameMultiEvent:Qt,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:F,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:M,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:v,gameCategory:w,eventFilterActive:mt,eventFilterLabel:bt,clearEventFilter:yt,screenSize:j,displaySportName:on,displayCategoryName:ln,maxPayouts:Xe??{},howToPlayMarkdown:qe,onEntryPlaced:D,onCancel:H,onShare:O,onRecharge:I,demoEntries:m,demoGames:p,demoPropositions:y}),[V,U,q,ot,Tt,At,Bt,zt,Ct,St,vt,wt,xt,rt,it,lt,at,Mt,Pt,Gt,Dt,$,X,le,ce,Ot,ee,ne,re,Ie,Ee,qt,Yt,t,o,d,de,i,s,F,T,A,L,R,M,S,C,B,v,w,j,mt,bt,yt,pe,me,we,Wt,Xe,qe,D,H,O,I,E,m,p,y,Kt,on,ln]);/* @__PURE__ */
|
|
97
|
+
return W(mi.Provider,{value:sn,children:u})}function ki({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(mi),d=c??s?.theme??Be,h=ae(d),u=d.colors,g=i??ue(d),f=l??ge(d),p="sm"===r,y=p?h.space.xs:h.space.sm,m=p?6:8,b=p?h.fontSize.sm:h.fontSize.md,w=p?8.5:10,x=a(0);/* @__PURE__ */
|
|
98
|
+
return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-x.current<300?(x.current=0,t()):x.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[Si.container,{borderColor:ne(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:Si.topRow,children:[
|
|
100
99
|
/* @__PURE__ */T(A,{style:k.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[
|
|
101
100
|
/* @__PURE__ */W(O,{points:"0,0 53,0 47,100 0,100",fill:g}),
|
|
102
101
|
/* @__PURE__ */W(O,{points:"53,0 100,0 100,100 47,100",fill:f}),
|
|
103
|
-
/* @__PURE__ */W(
|
|
104
|
-
/* @__PURE__ */W(z,{style:[
|
|
105
|
-
/* @__PURE__ */W(z,{style:[
|
|
106
|
-
return W(h.View,{style:[k.absoluteFill,{zIndex:3-
|
|
107
|
-
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[
|
|
108
|
-
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[
|
|
109
|
-
return T(z,{style:[
|
|
110
|
-
/* @__PURE__ */W(z,{style:[
|
|
111
|
-
/* @__PURE__ */W(S,{style:[
|
|
112
|
-
/* @__PURE__ */T(z,{style:[
|
|
102
|
+
/* @__PURE__ */W(D,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),
|
|
103
|
+
/* @__PURE__ */W(z,{style:[Si.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[Si.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
|
|
104
|
+
/* @__PURE__ */W(z,{style:[Si.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[Si.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[Si.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Si.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ne(d)}],numberOfLines:1,children:n})})]})}var Si=k.create({container:{borderWidth:1,overflow:"hidden",flexShrink:0,flexDirection:"column",width:"100%",minWidth:92},topRow:{flexDirection:"row",flex:1,flexShrink:0},half:{flex:1,flexShrink:0,alignItems:"center",justifyContent:"center"},halfLabel:{color:"#ffffff",fontWeight:"600",letterSpacing:.2,flexShrink:0,textAlign:"center"},labelRow:{paddingTop:3,paddingBottom:4,alignItems:"center",justifyContent:"center"},labelText:{fontWeight:"700",textAlign:"center",flexShrink:0}}),Ci=3;function Bi(e,t){const n=new Set(t.map(e=>e.eventId??e.event_id).filter(e=>Boolean(e)));if(0===n.size)return e;const o=[],r=[];for(const i of e){const e=i.eventId??i.event_id;(e&&n.has(e)?r:o).push(i)}return[...o,...r]}function zi(e,t,o,i){const[s,d]=c([]),[h,u]=c([]),[g,f]=c([]),[p,y]=c([]),[m,b]=c(null),w=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),x=l(()=>e.filter(e=>null!=t[e.id]),[e,t]),k=l(()=>e.map(e=>e.id).join(","),[e]),S=a(null);r(()=>()=>{S.current=null},[]),r(()=>{if(S.current===k)return;S.current=k;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);d(n.map(e=>e.id)),u(Bi(n,o).slice(0,3).map(e=>e.id)),f([]),y([]),b(null)},[k,e,t]);const C=l(()=>i?new Set(e.filter(e=>i(e)).map(e=>e.id)):/* @__PURE__ */new Set,[e,i]),B=l(()=>{const e=new Set(g);return[...Bi(s.map(e=>w.get(e)).filter(e=>!!e&&!C.has(e.id)).filter(t=>!e.has(t.id)),x).map(e=>e.id),...g.filter(e=>s.includes(e)&&!C.has(e))]},[s,w,x,g,C]);r(()=>{u(e=>{const t=new Set(s),n=e.filter(e=>t.has(e)&&!C.has(e));if(0===p.length&&!m){const t=B.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,s.length))return n.length===e.length?e:n;const o=[...n];for(const r of B){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[s,B,p,m,C]);const z=l(()=>h.map(e=>w.get(e)).filter(e=>Boolean(e)),[h,w]),v=n((e,t)=>{b(null),t&&o(e,t),y(n=>[...n,{id:e,answer:t}]),u(t=>t.filter(t=>t!==e)),f(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),d(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[o]),F=n(()=>{const e=p[p.length-1];e&&(e.answer&&o(e.id,e.answer),b({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),y(e=>e.slice(0,-1)),f(t=>t.filter(t=>t!==e.id)),d(t=>[e.id,...t.filter(t=>t!==e.id)]),u(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[p,o]);return{visible:z,canSkip:s.filter(e=>!C.has(e)).length>1,canUndo:p.length>0,restored:m,resolve:v,undo:F}}var vi=g.bezier(.32,0,.67,0),Fi=g.bezier(.22,1,.36,1),Wi={stiffness:420,damping:34},Ti={stiffness:280,damping:28},Ai="#00C853",Li="#E53935",Ri=e=>"web"===m.OS?{userSelect:"none",cursor:e?"grabbing":"grab"}:null;function Mi(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Di(e,t,n){return n&&-t>Math.abs(e)}function Pi({prop:e,theme:t,depth:i=0,enterFrom:s,canSkip:d=!1,onResolve:u,registerApi:g,onDragStateChange:f,children:p}){const m=o(mi),b=t??m?.theme??Be,w=Ge(b),x=b.colors.productYes??Ai,C=b.colors.productNo??Li,B=0===i,[v,A]=c(!1),L=a(!1),R=a({x:0,y:0}),M=a({x:0,y:0}),D=a(null),P=a(0),H=a(null),O=a(null),I=a(null),E=a(d);E.current=d;const j=a(f);j.current=f;const N=a(new h.ValueXY({x:0,y:0})).current,G=a(new h.Value(0)).current,Y=n(()=>{N.setValue({x:R.current.x,y:R.current.y}),G.setValue(Di(R.current.x,R.current.y,E.current)?1:0)},[G,N]),V=n(()=>{null!=H.current&&(cancelAnimationFrame(H.current),H.current=null),O.current&&(O.current.stop(),O.current=null)},[]),U=n(e=>{V();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=R.current,l=M.current;if(l.x+=(-e.stiffness*i.x-e.damping*l.x)*r,l.y+=(-e.stiffness*i.y-e.damping*l.y)*r,i.x+=l.x*r,i.y+=l.y*r,Math.abs(i.x)<.5&&Math.abs(i.y)<.5&&Math.abs(l.x)<2&&Math.abs(l.y)<2)return i.x=0,i.y=0,l.x=0,l.y=0,Y(),void(H.current=null);Y(),H.current=requestAnimationFrame(n)};H.current=requestAnimationFrame(n)},[Y,V]),q=n(t=>{if(L.current)return;if("up"===t&&!E.current)return;L.current=!0,V();const n="right"===t?"yes":"left"===t?"no":null,o=Mi(t);R.current={...o},G.setValue("up"===t?1:0),O.current=h.timing(N,{toValue:o,duration:260,easing:vi,useNativeDriver:!1}),O.current.start(),I.current=setTimeout(()=>u(e.id,n),260)},[u,e.id,V,G,N]);r(()=>()=>{I.current&&clearTimeout(I.current),null!=H.current&&cancelAnimationFrame(H.current),O.current?.stop(),D.current&&j.current?.(!1)},[]),r(()=>{if(!s)return V(),R.current={x:0,y:0},M.current={x:0,y:0},void Y();const e=Mi(s);R.current={x:e.x,y:e.y},M.current={x:0,y:0},Y(),U(Ti)},[s,Y,U,V]),r(()=>{if(B&&g)return g({fly:q}),()=>g(null)},[q,B,g]);const K=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!L.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||E.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{V(),D.current={x:R.current.x,y:R.current.y},M.current={x:0,y:0},P.current=Date.now(),A(!0),j.current?.(!0)},onPanResponderMove:(e,t)=>{if(L.current||!D.current)return;if(t.numberActiveTouches>1)return;const n=D.current.x+t.dx,o=Math.min(D.current.y+t.dy,0),r=e.nativeEvent.timestamp??Date.now(),i=r-P.current;if(i>0){const e=1-Math.exp(-i/40);M.current.x+=((n-R.current.x)/i*1e3-M.current.x)*e,M.current.y+=((o-R.current.y)/i*1e3-M.current.y)*e,P.current=r}R.current.x=n,R.current.y=o,Y()},onPanResponderRelease:e=>{if(!D.current)return;if(D.current=null,A(!1),j.current?.(!1),L.current)return;(e.nativeEvent.timestamp??Date.now())-P.current>90&&(M.current={x:0,y:0});const t=R.current,n=M.current;if(Di(t.x,t.y,E.current)){if(t.y<-110||n.y<-620)return q("up")}else{if(t.x>110||n.x>620)return q("right");if(t.x<-110||n.x<-620)return q("left")}U(Wi)},onPanResponderTerminate:()=>{D.current=null,M.current={x:0,y:0},A(!1),j.current?.(!1),L.current||U(Wi)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[q,Y,U,V]),Z=N.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),X=h.subtract(1,G),Q=h.multiply(X,N.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),J=h.multiply(X,N.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),$=h.multiply(G,N.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),_=a(new h.Value(i)).current;r(()=>{const e=h.timing(_,{toValue:i,duration:240,easing:Fi,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,_]);const ee=_.interpolate({inputRange:[0,3],outputRange:[0,36]}),te=_.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
|
|
105
|
+
return W(h.View,{style:[k.absoluteFill,{zIndex:3-i,transform:[{translateY:ee},{scale:te}]}],pointerEvents:B?"auto":"none",children:/* @__PURE__ */T(h.View,{style:[{flex:1,transform:[{translateX:N.x},{translateY:N.y},{rotate:Z}]},B&&Ri(v)],...B?K.panHandlers:{},children:[p,B&&/* @__PURE__ */T(F,{children:[
|
|
106
|
+
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ii.stamp,Ii.stampLeft,{opacity:Q,borderColor:x,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[Ii.stampText,{color:x,fontFamily:w}],children:"Yes"})}),
|
|
107
|
+
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ii.stamp,Ii.stampRight,{opacity:J,borderColor:C,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Ii.stampText,{color:C,fontFamily:w}],children:"No"})}),d&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ii.skipPillWrap,{opacity:$}],children:/* @__PURE__ */W(z,{style:[Ii.skipPill,{borderColor:b.colors.border,backgroundColor:b.colors.background}],children:/* @__PURE__ */W(S,{style:[Ii.skipPillText,{color:b.colors.primary}],children:"Skip"})})})]})]})})}function Hi({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,renderPropositionSilk:r,displaySportName:i,gameCategory:l,compositeComponentById:a}=wi(),c=t.colors,{height:s}=v(),d=s<700?12:24,h=Nt(e,a),u=Pt(e),g=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),f=(t,n)=>t&&r?.(t,n)||ol(t??e,o,g.join(" vs "))||null;/* @__PURE__ */
|
|
108
|
+
return T(z,{style:[Ii.face,{backgroundColor:be(t),borderColor:c.border}],children:[
|
|
109
|
+
/* @__PURE__ */W(z,{style:[Ii.matchupBand,{backgroundColor:we(t)}],children:g.length>0?g.map((e,n)=>/* @__PURE__ */T(z,{style:Ii.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Ii.matchupVs,{color:me(t)}],children:"vs"}),o?.(e),
|
|
110
|
+
/* @__PURE__ */W(S,{style:[Ii.matchupName,{color:ye(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Ii.matchupName,{color:ye(t)}],children:e.league??i(e.sport??"")})}),
|
|
111
|
+
/* @__PURE__ */T(z,{style:[Ii.faceBody,{paddingVertical:d,gap:12===d?12:16}],children:[/* @__PURE__ */T(z,{style:Ii.propositionRow,children:[!h&&f(e,32),h?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[Ii.compositeLabel,{color:de(t)}],children:["All ","OR"===h.operator?"or any of these":"of these"]}),/* @__PURE__ */W(z,{style:{gap:8},children:h.legs.map((e,o)=>/* @__PURE__ */T(z,{style:Ii.compositeLeg,children:[
|
|
113
112
|
/* @__PURE__ */W(S,{style:{color:c.primary,fontWeight:"700"},children:"OR"===h.operator?"/":"+"}),f(e.prop,24),
|
|
114
|
-
/* @__PURE__ */T(z,{style:
|
|
115
|
-
/* @__PURE__ */T(z,{style:[
|
|
116
|
-
return T(z,{style:
|
|
117
|
-
/* @__PURE__ */W(S,{style:[
|
|
118
|
-
/* @__PURE__ */W(S,{style:[
|
|
119
|
-
/* @__PURE__ */W(B,{onPress:()=>
|
|
120
|
-
/* @__PURE__ */W(B,{onPress:()=>
|
|
121
|
-
return W(p,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:o,children:/* @__PURE__ */W(z,{style:
|
|
122
|
-
/* @__PURE__ */T(z,{style:
|
|
123
|
-
/* @__PURE__ */W(z,{style:
|
|
124
|
-
/* @__PURE__ */T(z,{style:
|
|
125
|
-
/* @__PURE__ */W(S,{style:[
|
|
126
|
-
return T(B,{onPress:()=>I(e.key),accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{selected:n},style:{minWidth:0,flexDirection:"row",alignItems:"center"},children:[
|
|
127
|
-
/* @__PURE__ */W(S,{style:[
|
|
128
|
-
/* @__PURE__ */W(S,{style:[
|
|
129
|
-
/* @__PURE__ */W(S,{style:[
|
|
130
|
-
/* @__PURE__ */W(
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */T(z,{style:[
|
|
133
|
-
/* @__PURE__ */W(
|
|
134
|
-
/* @__PURE__ */W(z,{style:{marginLeft:"auto",
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return
|
|
139
|
-
return T(
|
|
140
|
-
|
|
141
|
-
return
|
|
142
|
-
/* @__PURE__ */W(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return
|
|
147
|
-
return
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/* @__PURE__ */T(z,{style:[
|
|
151
|
-
|
|
152
|
-
/* @__PURE__ */T(
|
|
153
|
-
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
/* @__PURE__ */T(z,{style:[
|
|
158
|
-
/* @__PURE__ */T(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
/* @__PURE__ */W(S,{style:{fontSize:
|
|
162
|
-
|
|
163
|
-
/* @__PURE__ */T(
|
|
164
|
-
|
|
165
|
-
|
|
113
|
+
/* @__PURE__ */T(z,{style:Ii.compositeLegBody,children:[e.eventLabel?/* @__PURE__ */W(S,{style:[Ii.compositeLegEvent,{color:c.textMuted}],children:e.eventLabel}):null,/* @__PURE__ */W(S,{style:[Ii.compositeLegText,{color:he(t),fontFamily:n}],children:e.text})]})]},o))})]}):/* @__PURE__ */W(S,{style:[Ii.proposition,{flex:1,color:he(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */W(S,{style:[Ii.outcome,{color:c.textMuted}],children:e.outcome_description})]}),
|
|
114
|
+
/* @__PURE__ */T(z,{style:[Ii.faceFooter,{borderTopColor:c.borderSubtle??c.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Ii.sportChip,{backgroundColor:c.infoBg}],children:/* @__PURE__ */W(S,{style:[Ii.sportChipText,{color:c.infoText}],children:i(e.sport)})}):null,u?/* @__PURE__ */W(S,{style:[Ii.footerMeta,{color:c.textMuted}],children:u.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Ii.footerMeta,Ii.footerDate,{color:c.textMuted}],children:Jt(e.commence_time)}):null]})]})}function Oi({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:i}){const{theme:c,headingFont:s,propositions:d,selections:h,toggleSelection:u,selectedGame:g,selectedPropositionCount:f,answeredCount:p,selectionValid:y,goToConfirmation:m,goToSportSelection:b,loading:w,error:x,selectedRule:k,compositeComponentById:C}=wi(),A=c.colors,L=A.productYes??Ai,R=A.productNo??Li,{height:M}=v(),D=Math.max(224,Math.min(.44*M,416)),P=a(null);r(()=>{g||(b(),e?.())},[b,e,g]);const H=l(()=>pi(d,h,C),[d,h,C]),O=n(e=>H.isCapped(e),[H]),{visible:I,canSkip:E,canUndo:j,restored:N,resolve:G,undo:Y}=zi(d,h,u,O),V=g?cn(g,f??void 0,k):{min:0,max:0},U=V.max,q=U>0&&p>=U,K=g?V.min>0&&V.min===V.max?V.min:Rr(g,f)??(U>0?U:null):null,Z=a(p);r(()=>{const e=Z.current;if(Z.current=p,null==K||e>=K||p!==K)return;const n=setTimeout(()=>{m(),t?.()},420);return()=>clearTimeout(n)},[p,m,t,K]);const X=!q&&I.length>0,Q=n(e=>{P.current=e},[]);if(!g)return null;const J=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Ii.circleButton,{borderColor:A.border,backgroundColor:A.background},o&&Ii.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:A.textMuted},children:t})});/* @__PURE__ */
|
|
115
|
+
return T(z,{style:Ii.container,children:[o?/* @__PURE__ */W(z,{style:Ii.viewSwitchRow,children:o}):null,w?/* @__PURE__ */W(S,{style:[Ii.loadingText,{color:A.textMuted}],children:"Loading…"}):x?/* @__PURE__ */W(z,{style:[Ii.errorBox,{backgroundColor:A.errorBg,borderColor:A.error}],children:/* @__PURE__ */W(S,{style:{fontSize:14,color:A.errorText??A.error,textAlign:"center"},children:x})}):/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:Ii.deckArea,children:X?/* @__PURE__ */W(z,{style:[Ii.deck,{height:D}],children:I.map((e,t)=>/* @__PURE__ */W(Pi,{prop:e,depth:t,canSkip:E,enterFrom:N?.id===e.id?N.from:null,onResolve:G,registerApi:0===t?Q:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Hi,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Ii.emptyState,{backgroundColor:be(c),borderColor:A.border}],children:[
|
|
116
|
+
/* @__PURE__ */W(S,{style:[Ii.emptyTitle,{color:se(c),fontFamily:s}],children:q?"Card full":"That’s the last one"}),
|
|
117
|
+
/* @__PURE__ */W(S,{style:[Ii.emptyBody,{color:A.textMuted}],children:q?`You've picked all ${U} legs for ${g.game_name}. Undo a swipe to change one, or lock it in.`:y?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${V.min>0?` — this game needs at least ${V.min}`:""}. Undo a swipe or head back to widen the pool.`}),j&&/* @__PURE__ */W(B,{onPress:Y,style:[Ii.emptyUndo,{borderColor:A.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:A.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:[Ii.buttonArea,{backgroundColor:be(c),borderColor:A.border}],children:[/* @__PURE__ */T(z,{style:Ii.buttonRow,children:[J("Undo last swipe","↺",Y,!j),
|
|
118
|
+
/* @__PURE__ */W(B,{onPress:()=>P.current?.fly("left"),disabled:!X,style:[Ii.answerButton,{backgroundColor:R},!X&&Ii.disabled],children:/* @__PURE__ */W(S,{style:[Ii.answerButtonText,{fontFamily:s}],children:"NO"})}),
|
|
119
|
+
/* @__PURE__ */W(B,{onPress:()=>P.current?.fly("right"),disabled:!X,style:[Ii.answerButton,{backgroundColor:L},!X&&Ii.disabled],children:/* @__PURE__ */W(S,{style:[Ii.answerButtonText,{fontFamily:s}],children:"YES"})}),J("Skip this proposition","↑",()=>P.current?.fly("up"),!X||!E)]}),/* @__PURE__ */W(S,{style:[Ii.gestureHint,{color:A.textMuted}],children:E?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Ii=k.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",alignItems:"flex-start",gap:8},compositeLegBody:{flex:1,minWidth:0},compositeLegEvent:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25,lineHeight:13},compositeLegText:{fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingTop:12,paddingBottom:10},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function Ei({propositions:e,title:t,onClose:o}){const{theme:r,selections:i,toggleSelection:c,compositeComponentById:s}=wi(),d=r.colors,{height:h}=v(),u=l(()=>pi(e,i,s),[e,i,s]),g=n(e=>u.isCapped(e),[u]),{visible:f,canSkip:y,canUndo:m,restored:b,resolve:w,undo:x}=zi(e,i,c,g),k=a(null),C=n(e=>{k.current=e},[]),F=Ge(r),A=me(r),L=f.length>0,R=be(r),M=Math.max(224,Math.min(.44*h,416)),D=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[ji.circle,{borderColor:d.border,backgroundColor:d.background},o&&ji.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:d.textMuted},children:t})}),P=(e,t,n)=>/* @__PURE__ */W(B,{onPress:()=>k.current?.fly(e),disabled:!L,style:[ji.answer,{backgroundColor:n},!L&&ji.disabled],children:/* @__PURE__ */W(S,{style:[ji.answerText,{fontFamily:F}],children:t.toUpperCase()})});/* @__PURE__ */
|
|
120
|
+
return W(p,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:o,children:/* @__PURE__ */W(z,{style:ji.backdrop,children:/* @__PURE__ */T(z,{style:[ji.panel,{backgroundColor:R,borderColor:d.border}],children:[
|
|
121
|
+
/* @__PURE__ */T(z,{style:ji.header,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[ji.title,{color:ye(r),fontFamily:F}],children:t}),/* @__PURE__ */W(B,{onPress:o,accessibilityLabel:"Close",accessibilityRole:"button",style:[ji.close,{borderColor:d.border}],children:/* @__PURE__ */W(S,{style:{fontSize:16,color:A},children:"×"})})]}),
|
|
122
|
+
/* @__PURE__ */W(z,{style:ji.deckArea,children:L?/* @__PURE__ */W(z,{style:[ji.deck,{height:M}],children:f.map((e,t)=>/* @__PURE__ */W(Pi,{prop:e,depth:t,canSkip:y,enterFrom:b?.id===e.id?b.from:null,onResolve:w,registerApi:0===t?C:void 0,children:/* @__PURE__ */W(Hi,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[ji.empty,{borderColor:d.border}],children:[/* @__PURE__ */W(S,{style:[ji.emptyTitle,{color:se(r),fontFamily:F}],children:"That’s the last one"}),/* @__PURE__ */W(S,{style:[ji.emptyBody,{color:d.textMuted}],children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),
|
|
123
|
+
/* @__PURE__ */T(z,{style:ji.buttonRow,children:[D("Undo last swipe","↺",x,!m),P("left","No",ge(r)),P("right","Yes",ue(r)),D("Skip this proposition","↑",()=>k.current?.fly("up"),!L||!y)]}),
|
|
124
|
+
/* @__PURE__ */W(S,{style:[ji.hint,{color:d.textMuted}],children:y?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})})})}var ji=k.create({backdrop:{flex:1,backgroundColor:"rgba(0,0,0,0.6)",alignItems:"center",justifyContent:"center",padding:16},panel:{width:"100%",maxWidth:420,borderRadius:24,borderWidth:1,padding:16,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},title:{flex:1,minWidth:0,fontSize:14,fontWeight:"700"},close:{width:32,height:32,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},deckArea:{justifyContent:"center",paddingTop:4,paddingBottom:12},deck:{width:"100%",alignSelf:"center"},empty:{alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center"},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,paddingTop:24},circle:{width:44,height:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answer:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#fff"},hint:{marginTop:8,fontSize:11,textAlign:"center"},disabled:{opacity:.35}}),Ni=["split","split-inline","compact"];function Gi(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Yi(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Vi(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Ui(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function qi(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Ki(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(qi),i=t.map(Ui).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:qi(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:l,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),i=/* @__PURE__ */new Map;for(const a of o){const e=a.date.toDateString(),t=i.get(e);t?t.events.push(a):i.set(e,{key:e,label:Gi(a.date),events:[a]})}const l=[...i.values()];return r.length>0&&l.push({key:"undated",label:"",events:r}),l}var Zi={split:{fontSize:13,fontWeight:"400",lineHeight:18},compact:{fontSize:11,fontWeight:"400",lineHeight:15}};function Xi({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:i,theme:a,renderTeamLogo:s,componentById:d,disableEventSwipe:h=!1}){const u=a.colors,g=be(a),f=we(a),p=u.borderSubtle??u.border,y=ye(a),m=me(a),b=he(a),w=de(a),x=se(a),k=Ge(a),{width:C}=v(),[A,L]=c(null),[R,M]=c(/* @__PURE__ */new Set),[D,P]=c(/* @__PURE__ */new Set),H=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),O=H(M),I=H(P),E=l(()=>Ki(t,n),[t,n]),{width:j}=v(),N=l(()=>pi(Object.values(t).flat(),o,d),[t,o,d]),G=e=>i&&!(e.id in o)||N.isCapped(e),Y=e=>{if(j<640)return null;const t=N.slotsFor(gi(e.props[0]));return 0===t.length?null:/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:4},children:t.map(({family:e,label:t,filled:n})=>/* @__PURE__ */W(z,{accessibilityLabel:ai(e,n),style:[$i.slotChip,{borderColor:n?y:p,borderStyle:n?"solid":"dashed"}],children:/* @__PURE__ */W(S,{style:[$i.slotChipText,{color:n?y:m}],children:t})},e))})},V=(e,t)=>{G(e)||r(e.id,t)},U=(e,t)=>e?s?.(e,t)??null:null,q=(e,t,n)=>/* @__PURE__ */W(st,{theme:a,size:t,stretch:n,disabled:G(e),value:o[e.id]??null,onYes:()=>V(e,"yes"),onNo:()=>V(e,"no")}),K=(e,t)=>/* @__PURE__ */T(z,{style:$i.question,children:[n?ol(e,s,null):null,/* @__PURE__ */W(sl,{prop:e,colors:u,componentById:d,renderTeamLogo:s,textStyle:Zi[t],textColor:b})]}),Z=e=>{if(h)return null;const t=e.props.filter(e=>!G(e));return 0===t.length?null:/* @__PURE__ */T(B,{onPress:()=>L(e),accessibilityRole:"button",accessibilityLabel:`Swipe ${t.length} proposition${1===t.length?"":"s"}`,style:[$i.swipePill,{borderColor:p}],children:[/* @__PURE__ */W(Qi,{color:y}),/* @__PURE__ */W(S,{style:[$i.swipeLabel,{color:y}],children:"SWIPE"})]})},X=(e,t)=>/* @__PURE__ */W(B,{onPress:()=>O(e.key),accessibilityRole:"button",accessibilityState:{expanded:t},accessibilityLabel:`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,style:[$i.foldButton,{borderColor:p}],children:/* @__PURE__ */W(z,{style:{transform:[{rotate:t?"0deg":"-90deg"}]},children:/* @__PURE__ */W(Ji,{color:w})})}),Q=e=>{if(!e.home&&!e.away)/* @__PURE__ */return W(S,{numberOfLines:1,style:[$i.shortLabel,{color:y}],children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=D.has(e.key);/* @__PURE__ */
|
|
125
|
+
return T(B,{onPress:()=>I(e.key),accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{selected:n},style:{minWidth:0,maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[
|
|
126
|
+
/* @__PURE__ */W(S,{style:[$i.shortLabel,{color:y,fontFamily:k}],children:n?e.home:Vi(e.home)}),
|
|
127
|
+
/* @__PURE__ */W(S,{style:[$i.vs,{color:m}],children:"v"}),
|
|
128
|
+
/* @__PURE__ */W(S,{style:[$i.shortLabel,{color:y,fontFamily:k}],children:n?e.away:Vi(e.away)})]})},J=e=>e.racing||!e.home?/* @__PURE__ */W(S,{numberOfLines:1,style:[$i.shortLabel,{color:y,fontFamily:k}],children:e.title}):/* @__PURE__ */T(z,{style:{maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[
|
|
129
|
+
/* @__PURE__ */W(S,{numberOfLines:1,style:[$i.shortLabel,{color:y,fontFamily:k}],children:Vi(e.home)}),
|
|
130
|
+
/* @__PURE__ */W(S,{style:[$i.vs,{color:m}],children:"v"}),
|
|
131
|
+
/* @__PURE__ */W(S,{numberOfLines:1,style:[$i.shortLabel,{color:y,fontFamily:k}],children:Vi(e.away)})]}),$=t=>"compact"===e?(e=>/* @__PURE__ */T(z,{style:[$i.compactCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[$i.compactHeader,{backgroundColor:f}],children:[!e.racing&&U(e.home,18),Q(e),!e.racing&&U(e.away,18),e.date&&/* @__PURE__ */W(S,{style:[$i.compactTime,{color:m}],children:Yi(e.date)}),
|
|
132
|
+
/* @__PURE__ */W(z,{style:{marginLeft:"auto"},children:Z(e)})]}),e.props.map(e=>/* @__PURE__ */T(z,{style:[$i.compactRow,{borderTopColor:p,opacity:G(e)?.45:1}],children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:K(e,"compact")}),q(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!R.has(e.key),o=`${e.props.length} proposition${1===e.props.length?"":"s"}`;/* @__PURE__ */
|
|
133
|
+
return T(z,n?{style:[$i.splitCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[$i.splitStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:2},children:[U(e.home,24),U(e.away,24)]}),J(e),e.date&&/* @__PURE__ */W(S,{style:[$i.time,{color:m}],children:Yi(e.date)}),Z(e)]}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:[$i.splitCountRow,{borderBottomColor:p}],children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[$i.splitTitle,{color:y,fontFamily:k}],children:e.title}),/* @__PURE__ */T(z,{style:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:8},children:[Y(e),X(e,n)]})]}),/* @__PURE__ */W(z,{style:$i.splitBody,children:e.props.map(e=>/* @__PURE__ */T(z,{style:[t?{flexDirection:"row",alignItems:"center",gap:10}:{flexDirection:"column",gap:10},{opacity:G(e)?.45:1}],children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:K(e,"split")}),t?q(e,"xs"):q(e,"sm",!0)]},e.id))})]})]}:{style:[$i.foldedStrip,{borderColor:u.border,backgroundColor:g}],children:[
|
|
134
|
+
/* @__PURE__ */T(z,{style:[$i.foldedStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(F,{children:[U(e.home,16),U(e.away,16)]}),Q(e)]}),
|
|
135
|
+
/* @__PURE__ */W(S,{style:[$i.count,$i.foldedCount,{color:m}],children:o}),
|
|
136
|
+
/* @__PURE__ */W(z,{style:{marginLeft:"auto",paddingRight:8},children:X(e,n)})]},e.key)})(t,"split-inline"===e);/* @__PURE__ */
|
|
137
|
+
return T(z,{style:{paddingBottom:16},children:[E.map(e=>{/* @__PURE__ */return T(z,{children:[e.label?(t=e.label,/* @__PURE__ */T(z,{style:$i.dayHeader,children:[/* @__PURE__ */W(S,{style:[$i.dayLabel,{color:x,fontFamily:k}],children:t}),/* @__PURE__ */W(z,{style:[$i.rule,{backgroundColor:p}]})]})):null,e.events.map($)]},e.key);var t}),A&&/* @__PURE__ */W(Ei,{propositions:A.props.filter(e=>!G(e)),title:A.title,onClose:()=>L(null)})]})}function Qi({color:e}){/* @__PURE__ */
|
|
138
|
+
return T(A,{width:15,height:15,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(I,{x:3,y:5,width:12,height:16,rx:2,stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M8.5 3h7a2 2 0 0 1 2 2v12",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ji({color:e}){/* @__PURE__ */
|
|
139
|
+
return W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}var $i=k.create({question:{flexDirection:"row",alignItems:"flex-start",gap:8,minWidth:0,flex:1},dayHeader:{flexDirection:"row",alignItems:"center",gap:8,marginTop:16,marginBottom:8},dayLabel:{fontSize:11,fontWeight:"700",letterSpacing:.3},rule:{flex:1,height:1},shortLabel:{fontSize:11.5,fontWeight:"700",lineHeight:15},vs:{fontSize:9,fontWeight:"600",paddingHorizontal:2},swipePill:{flexDirection:"row",height:28,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center",gap:4,paddingHorizontal:4},swipeLabel:{fontSize:9,fontWeight:"700",letterSpacing:.25},foldButton:{width:24,height:24,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},count:{fontSize:10,fontWeight:"600"},splitTitle:{fontSize:11,fontWeight:"700",flexShrink:1},slotChip:{borderWidth:1,borderRadius:999,paddingHorizontal:6,paddingVertical:1},slotChipText:{fontSize:8.5,fontWeight:"700",letterSpacing:.25,textTransform:"uppercase"},foldedCount:{fontSize:11,paddingHorizontal:12},time:{fontSize:9.5,fontWeight:"500"},foldedStrip:{flexDirection:"row",alignItems:"center",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},foldedStub:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"stretch",borderRightWidth:1,paddingHorizontal:8,paddingVertical:6},splitCard:{flexDirection:"row",alignItems:"stretch",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},splitStub:{width:80,alignItems:"center",justifyContent:"center",gap:6,borderRightWidth:1,paddingHorizontal:8,paddingVertical:12},splitCountRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1},splitBody:{justifyContent:"center",gap:12,paddingHorizontal:12,paddingVertical:10},compactCard:{borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},compactHeader:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,paddingHorizontal:12,paddingVertical:8},compactTime:{fontSize:9,fontWeight:"500"},compactRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:10,borderTopWidth:1}}),_i={today:"Today",weekend:"This weekend",next7:"Next 7 days"},el=["today","weekend","next7"];function tl(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function nl(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:tl(n,1)};case"weekend":{const e=n.getDay(),t=tl(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:tl(t,2)}}case"next7":return{start:n,end:tl(n,7)}}}(t,n);return o>=r&&o<i}function ol(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 rl=640,il=12;function ll({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
|
|
140
|
+
return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function al({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=v(),l=i>=rl,[a,c=""]=e.split(" vs "),s=c.length>0,d="md"===r&&l?16:14;if(!s)/* @__PURE__ */return W(S,{style:{color:n,fontSize:d,fontWeight:"600"},children:e});const h=e=>/* @__PURE__ */T(z,{style:hl.teamLogoRowWrap,children:[t?.(e),/* @__PURE__ */W(S,{style:{color:n,fontSize:d,fontWeight:"600",flexShrink:1},children:e})]}),u=/* @__PURE__ */W(S,{style:{color:o,fontSize:12,flexShrink:0},children:"vs"});/* @__PURE__ */
|
|
141
|
+
return T(z,l?{style:hl.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:hl.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function cl({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[i,l]=c(!1);return r(()=>{n?.(i)},[i,n]),/* @__PURE__ */T(z,{style:{position:"relative",zIndex:i?9999:0,elevation:i?9999:0},children:[/* @__PURE__ */W(b,{onPress:()=>l(e=>!e),onHoverIn:()=>l(!0),onHoverOut:()=>l(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:i},children:/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:ne(t.primary,.14),borderWidth:1,borderColor:ne(t.primary,.45)},children:/* @__PURE__ */W(S,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),i&&/* @__PURE__ */W(z,{style:{position:"absolute",top:"100%",left:0,marginTop:4,minWidth:192,maxWidth:352,paddingHorizontal:10,paddingVertical:6,borderRadius:6,backgroundColor:t.backgroundAlt??"#fff",borderWidth:1,borderColor:t.border??ne(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:/* @__PURE__ */W(S,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function sl({prop:t,colors:n,size:o="sm",componentById:r,textStyle:i,textColor:l,renderTeamLogo:a}){const{width:s}=v(),d=s>=rl,h=Nt(t,r),u=t.description??t.proposition??"",g=i?.fontSize??("md"===o?d?16:14:d?14:12),f=i?.fontWeight??("md"===o?"500":"400"),p=i?.lineHeight,y=i?.textAlign,m=l??n.text,b=n.textMuted??n.textAltMuted??n.text,[w,x]=c(!1);if(!h)/* @__PURE__ */return W(S,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y,flex:1},children:u});const{operator:k,legs:C}=h;if(C.some(e=>e.eventLabel)){const t=n.backgroundAlt??"transparent";/* @__PURE__ */
|
|
142
|
+
return W(z,{style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:4,rowGap:2,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:C.map((o,r)=>{const i=o.prop?.home_team?.trim(),l=o.prop?.away_team?.trim(),c=i?a?.(i,16)??null:null,s=l?a?.(l,16)??null:null,d=c||s?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:2,flexShrink:0,backgroundColor:t,borderWidth:1,borderColor:n.border??"transparent",borderRadius:999,paddingHorizontal:4,paddingVertical:2},children:[c,c&&s?/* @__PURE__ */W(S,{style:{color:b,fontSize:9,fontWeight:"600",textTransform:"uppercase"},children:"vs"}):null,s]}):null;/* @__PURE__ */
|
|
143
|
+
return T(e.Fragment,{children:[r>0&&/* @__PURE__ */W(cl,{label:k,colors:n,onOpenChange:x}),d,!d&&o.eventLabel&&/* @__PURE__ */W(S,{style:{backgroundColor:t,color:b,fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.25,paddingHorizontal:3},children:o.eventLabel}),
|
|
144
|
+
/* @__PURE__ */W(S,{style:{flexShrink:1,color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y},children:o.text})]},r)})})}/* @__PURE__ */
|
|
145
|
+
return W(z,{style:{flex:1,minWidth:0,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:C.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(cl,{label:k,colors:n,onOpenChange:x}),/* @__PURE__ */W(S,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y},children:t.text})]},o))})})}function dl({game:t,propositions:n,selections:i,onToggleSelection:a,onNext:s,onBack:d,loading:h,error:u,theme:g,colorScheme:f,hideActions:p=!1,initialSport:y,renderTeamLogo:m,disableQuickPick:b=!1,selectedPropositionCount:w,onPropositionCountChange:x,gameCategory:k,headerExtra:L,variant:R,disableEventSwipe:M}){const D=o(mi),P=D?.sportBaseKey,O=D?.compositeComponentById,I=R??D?.selectionVariant,E=M??D?.disableEventSwipe??!1,j=je(g,f),N=j.colors,G=be(j),Y=xe(j),V=N.matchupHeader??(t.color?ne(t.color,.14):we(j)),U=N.textAlt??N.text;Ge(j);const q=Ne(j);se(j);const{width:K}=v(),Z=K>=rl,X=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(j),Q=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:J,max:$}=cn(t,w),_=J,ee=$,[te,oe]=e.useState(()=>new Set(Object.keys(Wn(n,k,P))));e.useEffect(()=>{const e=Wn(n,k,P),t=Object.keys(e);t.length>0&&oe(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const re=_>0&&_===ee,ie=_||1,le=ee||n.length,ae=ee||_||n.length,[ce,de]=e.useState(ae),he=Object.keys(i).length,ue=ee>0&&he>=ee,ge=Q?null!=w&&he===w:an(he,t.min_propositions,t.max_propositions);t.min_bet,ee>0?Math.max(2,2*ee):Math.max(2,2*he);const fe=e.useRef(he),pe=Q?null!=w&&he===w:ee>0&&he===ee;r(()=>{pe&&he>fe.current&&s?.(),fe.current=he},[he,pe]);const ye=l(()=>pi(n,i,O),[n,i,O]),me=l(()=>n.some(e=>null!==hi(e)),[n]),Se=(e,t)=>{if(e in i)return void a(e,t);if(ue)return;const o=n.find(t=>t.id===e);o&&ye.isCapped(o)||a(e,t)},Ce=e=>{if(!me||0===e.length)return null;const t=ye.slotsFor(gi(e[0]));return 0===t.length?null:/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:4},children:t.map(({family:e,label:t,filled:n})=>/* @__PURE__ */W(z,{accessibilityLabel:ai(e,n),style:[hl.slotChip,{borderColor:n?U:N.border,borderStyle:n?"solid":"dashed"}],children:/* @__PURE__ */W(S,{style:[hl.slotChipText,{color:n?U:N.textMuted}],children:t})},e))})};r(()=>{const e=ee||n.length,t=_||1;de(n=>re?ee:Math.max(t,Math.min(n,e)))},[n.length,_,ee,re]);const Be=l(()=>/* @__PURE__ */new Date,[]),ze=l(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of el){let e=0,i=0;for(const o of n)if(nl(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:_i[r]})}return o}(n,Be),[n,Be]),[ve,Fe]=c(null);r(()=>{ve&&!ze.some(e=>e.id===ve)&&Fe(null)},[ze,ve]);const We=l(()=>function(e,t,n){return t?e.filter(e=>nl(e.commence_time,t,n)):e.slice()}(n,ve,Be),[n,ve,Be]),Te=l(()=>dn(k,We,P),[k,We,P]),Ae=l(()=>Wn(We,k,P),[We,k,P]),Le=l(()=>{const e=/* @__PURE__ */new Set;for(const t of We){const n=Pt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[We]),[Re,Me]=c(null),[De,Pe]=c(!1);r(()=>{Re&&!Le.includes(Re)&&Me(null)},[Le,Re]);const He=l(()=>{if(!Re)return Ae;const e={};for(const[t,n]of Object.entries(Ae)){const o=n.filter(e=>Pt(e)===Re);o.length>0&&(e[t]=o)}return e},[Ae,Re]),Oe=Object.keys(He);if(h)/* @__PURE__ */return W(qn,{colors:ke(j)});if(u)/* @__PURE__ */return W(z,{style:hl.centered,children:/* @__PURE__ */W(S,{style:{color:N.error},children:u})});const Ie=!b&&n.length>0,Ee=ze.length>0||Le.length>1,Ye=(null!=ve?1:0)+(null!=Re?1:0);/* @__PURE__ */
|
|
146
|
+
return T(z,{style:{gap:Z?24:16,paddingBottom:64},children:[Ee||L?/* @__PURE__ */T(z,{style:hl.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:hl.filterToggleRow,children:Ee?/* @__PURE__ */T(F,{children:[/* @__PURE__ */T(B,{onPress:()=>Pe(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[hl.filterToggle,{borderColor:Ye>0?N.primary:N.border,backgroundColor:Ye>0?N.primary:N.background??"#fff"}],children:[
|
|
147
|
+
/* @__PURE__ */W(vt,{size:13,color:Ye>0?N.primaryText:N.text}),
|
|
148
|
+
/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:Ye>0?N.primaryText:N.text},children:"Filter"}),Ye>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:N.primaryText},children:["· ",Ye]}),
|
|
149
|
+
/* @__PURE__ */W(z,{style:{transform:[{rotate:De?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(Bt,{size:13,color:Ye>0?N.primaryText:N.text})})]}),Ye>0&&/* @__PURE__ */W(B,{onPress:()=>{Fe(null),Me(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:N.textMuted},children:"Clear"})})]}):null}),L]}):null,De&&Ee&&/* @__PURE__ */T(z,{style:{gap:10},children:[ze.length>0&&/* @__PURE__ */W(Mt,{label:"When",options:[{value:null,label:"All dates"},...ze.map(e=>({value:e.id,label:e.label}))],value:ve,onChange:e=>Fe(e),theme:j,bodyFont:q}),Le.length>1&&/* @__PURE__ */W(Mt,{label:"Market",options:[{value:null,label:"All markets"},...Le.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Re,onChange:Me,theme:j,bodyFont:q})]}),Ie&&/* @__PURE__ */W(z,{style:[hl.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[hl.quickPickRow,{gap:Z?8:6}],children:[!re&&/* @__PURE__ */T(z,{style:hl.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ce),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||de(Math.max(ie,Math.min(le,t)))},style:[hl.quickPickInput,{width:Z?56:40,paddingHorizontal:Z?8:4,paddingVertical:Z?6:4,fontSize:Z?14:12,color:U,backgroundColor:N.backgroundAlt,borderColor:N.border}]}),/* @__PURE__ */T(S,{style:{color:N.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(ki,{onPress:()=>{const e=re?ee:ce;for(const n of Object.keys(i)){const e=Number(n);a(e,i[e])}const{yesPicks:t,noPicks:o}=function(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}}(n,e);for(const n of t)a(n.id,"yes");for(const n of o)a(n.id,"no");s?.()}})]})}),n.length>0&&I?/* @__PURE__ */W(Xi,{variant:I,groups:He,racing:Te,selections:i,onToggleSelection:Se,atMax:ue,theme:j,renderTeamLogo:m,componentById:O,disableEventSwipe:E}):null,n.length>0&&!I&&/* @__PURE__ */W(z,{style:hl.matchupList,children:Oe.every(e=>1===He[e].length)?/* @__PURE__ */W(z,{style:[hl.matchupCard,{borderColor:N.border,backgroundColor:G},X],children:Oe.map((e,t)=>{const n=He[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ue&&!l||ye.isCapped(n),c=0===t,s=t===Oe.length-1;/* @__PURE__ */
|
|
150
|
+
return T(z,{style:{borderTopColor:N.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:Z?12:10,backgroundColor:V,borderTopLeftRadius:c?il:0,borderTopRightRadius:c?il:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(al,{matchup:e,renderTeamLogo:m,altText:U,mutedColor:N.textAltMuted??N.textMuted??U})}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[n.commence_time&&/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:11,opacity:.7},children:Jt(n.commence_time)}),Ce([n])]})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:Z?14:12,backgroundColor:Y,borderTopWidth:1,borderTopColor:N.border,borderBottomLeftRadius:s?il:0,borderBottomRightRadius:s?il:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[ol(n,m,e),/* @__PURE__ */W(sl,{prop:n,colors:N,componentById:O,renderTeamLogo:m})]}),/* @__PURE__ */W(st,{theme:j,size:"sm",value:o?"yes":r?"no":null,onYes:()=>Se(n.id,"yes"),onNo:()=>Se(n.id,"no"),disabled:a})]})]},n.id)})}):Oe.map(e=>{const t=He[e],n=te.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
|
|
151
|
+
return T(z,{style:[hl.matchupCard,{borderColor:N.border,backgroundColor:G},X],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,oe(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[hl.matchupHeader,{backgroundColor:V,borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:n?0:il,borderBottomRightRadius:n?0:il}],children:[/* @__PURE__ */T(z,{style:hl.matchupHeaderLeft,children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:n?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:N.textAltMuted??N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:hl.matchupTeamWrapper,children:[/* @__PURE__ */W(al,{matchup:e,renderTeamLogo:m,altText:U,mutedColor:N.textAltMuted??N.textMuted??U,size:"md"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[r&&/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:12,opacity:.7,textAlign:"left"},children:Jt(r)}),Ce(t)]})]})]}),/* @__PURE__ */W(z,{style:hl.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[hl.answeredBadge,{backgroundColor:N.successBg}],children:/* @__PURE__ */T(S,{style:{color:N.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(F,{children:t.map((n,o)=>{const r="yes"===i[n.id],l="no"===i[n.id],a=n.id in i,c=ue&&!a||ye.isCapped(n),s=o===t.length-1;/* @__PURE__ */
|
|
152
|
+
return W(z,{style:{paddingHorizontal:16,paddingVertical:Z?14:12,backgroundColor:Y,borderTopColor:N.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?il:0,borderBottomRightRadius:s?il:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:Z?16:8,rowGap:Z?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[ol(n,m,e),/* @__PURE__ */W(sl,{prop:n,colors:N,size:"md",componentById:O,renderTeamLogo:m})]}),/* @__PURE__ */W(st,{theme:j,size:"sm",value:r?"yes":l?"no":null,onYes:()=>Se(n.id,"yes"),onNo:()=>Se(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */W(z,{style:hl.centered,children:/* @__PURE__ */W(S,{style:{color:N.textMuted},children:"No propositions available at this time"})}),!p&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:N.border,backgroundColor:G,marginHorizontal:Z?-24:-16,paddingHorizontal:Z?24:16,paddingVertical:Z?16:12},children:[/* @__PURE__ */W(ll,{theme:j,variant:"secondary",onPress:d,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:Z?12:8},children:/* @__PURE__ */W(ll,{theme:j,variant:"primary",disabled:!ge,onPress:s,children:"Wager"})})]})]})}var hl=k.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},filterHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},filterToggleRow:{flexDirection:"row",alignItems:"center",gap:8},filterToggle:{flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},topBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},quickPickRow:{flexDirection:"row",alignItems:"center",flexShrink:0},quickPickCountRow:{flexDirection:"row",alignItems:"center",gap:4},quickPickInput:{borderRadius:8,borderWidth:2,fontWeight:"600",textAlign:"center"},matchupList:{gap:16},matchupCard:{borderRadius:il,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 ul({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
|
|
153
|
+
return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function gl({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,allowAnswerToggle:d=!0,gameName:h,potentialPayout:u,defaultExpanded:g=!1,componentById:f,addMorePicks:p}){const y=je(i,l),m=y.colors,b=be(y),w=Ge(y),x=se(y),k=m.textAlt??m.text,{width:C}=v(),F=C>=640,L=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(y),[R,M]=c(null),[D,P]=c(g),O=e.filter(e=>e.id in t),I=O.length,E=Tn(O),j=m.matchupHeader??we(y),N=xe(y),G=F?16:12;/* @__PURE__ */
|
|
154
|
+
return T(z,{style:{gap:F?24:16,paddingBottom:64},children:[
|
|
155
|
+
/* @__PURE__ */T(z,{style:[fl.section,{padding:F?24:16,backgroundColor:b,borderColor:m.border},L],children:[
|
|
156
|
+
/* @__PURE__ */T(B,{onPress:()=>P(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:D},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:D?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:F?18:16,fontWeight:"600",color:x,fontFamily:w},children:"Your Selections"}),/* @__PURE__ */W(z,{style:{backgroundColor:m.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */W(S,{style:{color:m.primaryText,fontSize:12,fontWeight:"600"},children:I})})]}),h&&/* @__PURE__ */W(S,{numberOfLines:1,style:{color:m.textMuted,fontSize:14,marginTop:2},children:h})]})]}),null!=u&&u>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */W(S,{style:{color:m.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */W(S,{style:{color:x,fontSize:14,fontWeight:"700"},children:Qt(u)})]})]}),p&&p.remaining>0&&/* @__PURE__ */T(z,{style:{marginTop:G,padding:12,borderRadius:8,borderWidth:1,borderColor:`${m.primary}30`,backgroundColor:`${m.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,color:m.textMuted,fontSize:12},children:[1===p.remaining?"Add ":"Add up to ",
|
|
157
|
+
/* @__PURE__ */T(S,{style:{color:m.primary,fontWeight:"700"},children:[p.remaining," more pick",1!==p.remaining?"s":""]}),null!=p.potentialPayout&&p.potentialPayout>0&&/* @__PURE__ */T(S,{children:[" ","to win up to"," ",
|
|
158
|
+
/* @__PURE__ */W(S,{style:{color:x,fontWeight:"700"},children:Qt(p.potentialPayout)})," ","with ",p.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>p.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:m.buttonPrimary},children:/* @__PURE__ */W(S,{style:{color:m.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),D&&(0===O.length?/* @__PURE__ */W(z,{style:[fl.emptyState,{marginTop:G}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted},children:"No selections made yet"})}):/* @__PURE__ */W(z,{style:{gap:F?12:8,marginTop:G},children:E.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:m.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:j},children:[/* @__PURE__ */W(al,{matchup:e.key,renderTeamLogo:s,altText:k,mutedColor:m.textAltMuted??m.textMuted??k}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[fl.propTime,{color:m.textAltMuted??m.textMuted}],children:Jt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
|
|
159
|
+
return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:F?12:8,paddingHorizontal:12,paddingVertical:F?12:10,backgroundColor:N,borderTopWidth:e.key||i>0?1:0,borderTopColor:m.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[ol(o,s,e.key),/* @__PURE__ */W(sl,{prop:o,colors:m,componentById:f??void 0,renderTeamLogo:s,textStyle:{fontSize:14,fontWeight:"400",lineHeight:19},textColor:k})]}),/* @__PURE__ */T(z,{style:fl.rightControls,children:[d?/* @__PURE__ */W(st,{theme:y,size:"sm",value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(dt,{theme:y,size:"sm",value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...it(()=>M(o.id),()=>M(e=>e===o.id?null:e)),style:[fl.removeButton,{backgroundColor:"transparent"}],children:/* @__PURE__ */W(A,{width:12,height:12,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:R===o.id?m.error:m.textAltMuted??m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
|
|
160
|
+
/* @__PURE__ */W(z,{style:[fl.section,{padding:F?24:16,backgroundColor:b,borderColor:m.border},L],children:/* @__PURE__ */T(z,{style:fl.summaryRow,children:[/* @__PURE__ */W(S,{style:{color:m.textMuted,fontSize:14},children:"Total Selections"}),/* @__PURE__ */W(S,{style:{color:m.text,fontSize:14,fontWeight:"600"},children:O.length})]})}),!a&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:m.border,backgroundColor:m.background,marginHorizontal:F?-24:-16,paddingHorizontal:F?24:16,paddingVertical:F?16:12},children:[/* @__PURE__ */W(ul,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(ul,{theme:y,variant:"primary",disabled:0===O.length,onPress:o,children:"Place bet"})]})]})}var fl=k.create({section:{borderRadius:12,borderWidth:1},emptyState:{alignItems:"center",paddingVertical:32},selectionInfo:{flex:1,minWidth:0},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:2},teamLogoRow:{flexDirection:"row",alignItems:"center",gap:4},teamText:{fontWeight:"600"},vsSmall:{fontSize:12,fontWeight:"400"},propDesc:{fontSize:14,marginTop:4},propTime:{fontSize:12,opacity:.7,marginTop:2},rightControls:{flexDirection:"row",alignItems:"center",gap:8},removeButton:{width:20,height:20,borderRadius:10,alignItems:"center",justifyContent:"center"},summaryRow:{flexDirection:"row",justifyContent:"space-between"}});function pl({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:g,onBetAmountChange:f,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,componentById:L,showCustomAmount:R=!1,betAmountLocked:M=!1,betAmountLockedNote:D,canSubmit:P,authenticated:O=!0,userBalance:I,onRecharge:E,boostBanner:j}){const N=je(p,y),G=N.colors,Y=be(N),V=Ge(N),U=se(N),q=de(N),K=he(N),Z=G.textAlt??G.text,{width:X}=v(),Q=X>=640,J="dark"===N.colorScheme,$=n.length,_=t.min_bet??0,ee=Math.max(_,.01),te=t.max_bet??null,ne=[5,10,20,50,100,200,500].filter(e=>e>=ee&&(null===te||e<=te)).slice(0,4),oe={};for(let e=0;e<=$;e++)oe[e]=g*e;const re=x??oe,ie=re[h]??0,le=sn(t),ae=le.enabled&&h===$,[ce,ue]=e.useState(null),[ge,fe]=e.useState(!0),[pe,ye]=e.useState(!1),me=c||g<ee||!1===P,ke=null!=I&&g>I,Se=m&&!!l&&O,Ce=o?n.filter(e=>e.id in o):n,Be=Tn(Ce),ze=G.matchupHeader??we(N),ve=xe(N),Fe=Object.entries(re).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),We=1===Fe.length?Fe[0].correct:null;e.useEffect(()=>{null!==We&&h!==We&&u(We)},[We]);const Te={shadowColor:"#000",shadowOpacity:J?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
|
|
161
|
+
return T(z,{style:{gap:Q?16:12,paddingBottom:64},children:[j,
|
|
162
|
+
/* @__PURE__ */T(z,{style:[yl.section,Te,{padding:Q?20:16,backgroundColor:Y,borderColor:G.border}],children:[
|
|
163
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>fe(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:ge},accessibilityLabel:ge?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[/* @__PURE__ */W(z,{style:{transform:[{rotate:ge?"180deg":"0deg"}]},children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:G.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),/* @__PURE__ */W(S,{style:{fontSize:Q?16:14,fontWeight:"600",color:U,fontFamily:V},children:ge?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${G.primary}15`},children:/* @__PURE__ */T(S,{style:{color:G.primary,fontSize:12,fontWeight:"600"},children:[Ce.length," pick",1!==Ce.length?"s":""]})})]}),!ge&&/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),ge&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:Be.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:G.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:ze},children:[/* @__PURE__ */W(al,{matchup:e.key,renderTeamLogo:k,altText:Z,mutedColor:G.textAltMuted??G.textMuted??Z}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:{color:G.textAltMuted??G.textMuted,fontSize:11,marginTop:2,opacity:.7},children:Jt(e.props[0].commence_time)}):null]}):null,e.props.map((t,n)=>{const l=o?.[t.id],a="yes"===l,c="no"===l,s=!!r;/* @__PURE__ */
|
|
164
|
+
return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:ve,borderTopWidth:e.key||n>0?1:0,borderTopColor:G.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[ol(t,k,e.key),/* @__PURE__ */W(sl,{prop:t,colors:G,componentById:L??void 0,renderTeamLogo:k,textStyle:{fontSize:Q?14:12,fontWeight:"400"},textColor:Z})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[s?/* @__PURE__ */W(st,{theme:N,size:"xs",value:a?"yes":c?"no":null,onYes:()=>r(t.id,"yes"),onNo:()=>r(t.id,"no")}):l?/* @__PURE__ */W(dt,{theme:N,size:"sm",value:"yes"===l?"yes":"no",style:{flexShrink:0}}):null,ge&&i&&/* @__PURE__ */W(b,{onPress:()=>{l&&r?.(t.id,l),i(t.id)},...it(()=>ue(t.id),()=>ue(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:/* @__PURE__ */W(z,{style:{width:26,height:26,borderRadius:13,alignItems:"center",justifyContent:"center",backgroundColor:ce===t.id?G.error:"transparent"},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:ce===t.id?"#fff":G.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),Se&&/* @__PURE__ */T(z,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:Q?14:12,fontWeight:"500"},children:"↓"}),/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:Q?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),O?/* @__PURE__ */T(F,{children:[/* @__PURE__ */T(z,{style:[yl.section,Te,{padding:Q?24:16,backgroundColor:Y,borderColor:G.border}],children:[
|
|
165
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:Q?16:12},children:[/* @__PURE__ */W(S,{style:{fontSize:Q?18:16,fontWeight:"600",color:U,fontFamily:V},children:"How much are you betting?"}),null!=I&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:G.textMuted},children:["Balance: ",/* @__PURE__ */W(S,{style:{color:ke?G.error:G.success},children:Qt(I)})]})]}),ke&&/* @__PURE__ */T(z,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:G.errorBg??`${G.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,fontSize:12,fontWeight:"500",color:G.errorText??G.error},children:["Insufficient balance. Your bet of ",Qt(g)," exceeds your available ",Qt(I),"."]}),E&&/* @__PURE__ */W(B,{onPress:E,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:G.error},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:G.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),/* @__PURE__ */T(z,M?{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:G.backgroundAlt,borderWidth:1,borderColor:G.border},children:[/* @__PURE__ */W(S,{style:{fontSize:12,color:G.textMuted,flex:1},children:D??"Stake is set for this ticket."}),/* @__PURE__ */W(S,{style:{fontSize:18,fontWeight:"700",color:U,fontFamily:V},children:Qt(g)})]}:{style:{gap:16},children:[R&&/* @__PURE__ */T(z,{children:[
|
|
166
|
+
/* @__PURE__ */W(S,{style:{fontSize:Q?14:12,fontWeight:"600",color:q,marginBottom:8},children:"Entry amount"}),
|
|
167
|
+
/* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(z,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{color:G.textMuted},children:"$"})}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:g?String(g):"",onChangeText:e=>{if(""===e)return void f(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);f(null!==te?Math.min(n,te):n)},onFocus:()=>ye(!0),onBlur:()=>ye(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:pe?G.borderFocus??G.primary:G.border,color:Z,backgroundColor:G.backgroundAlt},placeholderTextColor:G.textMuted})]}),
|
|
168
|
+
/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:G.textMuted},children:["Minimum bet: ",Qt(ee),null!==te?` · Maximum: ${Qt(te)}`:""]}),g>0&&g<ee&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:G.error},children:["Bet amount must be at least ",Qt(ee)]})]}),/* @__PURE__ */T(z,{children:[(R||g>0)&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[R?/* @__PURE__ */W(S,{style:{fontSize:Q?14:12,fontWeight:"600",color:q},children:"Add to bet"}):/* @__PURE__ */W(z,{}),g>0&&/* @__PURE__ */W(B,{onPress:()=>f(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:G.backgroundAlt,borderWidth:1.5,borderColor:G.border},children:/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:ne.map(e=>{const t=null!==te&&g>=te;/* @__PURE__ */
|
|
169
|
+
return W(B,{onPress:()=>{const t=g+e;f(null!==te?Math.min(t,te):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:G.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */T(S,{style:{color:Z,fontSize:14,fontWeight:"600"},children:["+",Qt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[yl.section,Te,{padding:Q?20:16,backgroundColor:Y,borderColor:G.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(F,{children:[
|
|
170
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[/* @__PURE__ */W(S,{style:{color:q,fontSize:14},children:"Bet"}),/* @__PURE__ */W(S,{style:{color:K,fontSize:14,fontWeight:"600"},children:Qt(g)})]}),ie>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:8,justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:G.border},children:[/* @__PURE__ */W(S,{style:{color:q,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center"},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:18,fontWeight:"700"},children:Qt(ie)}),ae&&/* @__PURE__ */W(S,{style:{color:G.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),le.enabled&&/* @__PURE__ */T(z,{style:[yl.jackpotBanner,{backgroundColor:`${G.warning}08`,borderColor:`${G.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:G.warning,fontSize:12,fontWeight:"600"},children:["★ ",le.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:G.warning,fontSize:14,fontWeight:"700"},children:le.progressive?le.amount>0?Qt(le.amount):le.limit>0?`Up to ${Qt(le.limit)}`:"Progressive":Qt(le.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
|
|
166
171
|
/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:t}),
|
|
167
|
-
/* @__PURE__ */W(z,{style:{width:1,alignSelf:"stretch",backgroundColor:
|
|
168
|
-
/* @__PURE__ */W(B,{onPress:l,disabled:
|
|
169
|
-
/* @__PURE__ */W(S,{style:{fontSize:
|
|
170
|
-
/* @__PURE__ */W(S,{style:{fontSize:
|
|
171
|
-
/* @__PURE__ */W(B,{onPress:l,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:
|
|
172
|
-
return T(B,{onPress:g,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:f,accessibilityState:{disabled:!m,selected:
|
|
173
|
-
/* @__PURE__ */W(S,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||
|
|
174
|
-
return T(z,{style:
|
|
175
|
-
/* @__PURE__ */W(S,{style:[
|
|
176
|
-
/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:
|
|
177
|
-
/* @__PURE__ */W(S,{style:[
|
|
178
|
-
/* @__PURE__ */W(z,{style:[
|
|
179
|
-
return W(
|
|
180
|
-
/* @__PURE__ */T(S,{style:[
|
|
172
|
+
/* @__PURE__ */W(z,{style:{width:1,alignSelf:"stretch",backgroundColor:G.border}}),
|
|
173
|
+
/* @__PURE__ */W(B,{onPress:l,disabled:me,accessibilityState:{disabled:me,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:G.buttonPrimary,opacity:me?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:c?/* @__PURE__ */T(z,{style:{alignItems:"center",gap:8},children:[/* @__PURE__ */W(d,{size:"small",color:G.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:Qt(g)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[yl.section,Te,{padding:Q?24:16,backgroundColor:Y,borderColor:G.border}],children:[
|
|
174
|
+
/* @__PURE__ */W(S,{style:{fontSize:Q?18:16,fontWeight:"600",color:U,fontFamily:V},children:"Log in to place this entry"}),
|
|
175
|
+
/* @__PURE__ */W(S,{style:{fontSize:Q?14:12,color:G.textMuted,marginTop:4,marginBottom:16},children:"Your picks are held. Log in to set your bet and confirm."}),
|
|
176
|
+
/* @__PURE__ */W(B,{onPress:l,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:G.buttonPrimary,alignItems:"center"},children:/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),s&&/* @__PURE__ */W(z,{style:[yl.errorBanner,{backgroundColor:G.errorBg,borderColor:G.error}],children:/* @__PURE__ */W(S,{style:{color:G.errorText,fontSize:14},children:s})}),!m&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:G.border,backgroundColor:G.background,marginHorizontal:Q?-24:-16,paddingHorizontal:Q?24:16,paddingVertical:Q?16:12},children:[/* @__PURE__ */W(lt,{theme:N,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:me,accessibilityState:{disabled:me,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:G.buttonPrimary,opacity:me?.5:1},children:c?/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(d,{size:"small",color:G.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${Qt(g)})`})})]})]})}var yl=k.create({section:{borderRadius:12,borderWidth:1},jackpotBanner:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:6,paddingHorizontal:8,borderRadius:4,borderWidth:1,marginTop:8},errorBanner:{padding:12,borderRadius:8,borderWidth:1}}),ml="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 bl({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:a,warning:s,primary:d,textMuted:h,payout:u,onPress:g,accessibilityLabel:f}){const[p,y]=c(!1),m=!!g,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
|
|
177
|
+
return T(B,{onPress:g,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:f,accessibilityState:{disabled:!m,selected:i},...it(()=>y(!0),()=>y(!1)),style:[xl.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:r?s:o?l:a,zIndex:i?10:r?6:o?5:1,transform:[{scale:w}]},b&&xl.circleWinning,m&&p&&xl.circleHovered],children:[r&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${s}80`}}),i&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:d}}),r&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:ml,fill:s,stroke:s,strokeWidth:1})})}),
|
|
178
|
+
/* @__PURE__ */W(S,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":h},children:e}),u>0&&/* @__PURE__ */W(S,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":h},children:Qt(u)})]})}function wl({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=Be,colorWinning:i,colorNone:l,winningCounts:a,payouts:s}){const d=r.colors,{width:h}=v(),u=h>=640,g=i??d.payoutWinning,f=l??d.payoutNone,p=sn(e),y=u?48:40,[m,b]=c({width:0,height:0});/* @__PURE__ */
|
|
179
|
+
return T(z,{style:xl.container,children:[
|
|
180
|
+
/* @__PURE__ */W(S,{style:[xl.title,{color:d.textMuted}],children:"Payout Visualization"}),p.enabled&&/* @__PURE__ */T(z,{style:[xl.jackpotBanner,{borderColor:`${d.warning}30`}],onLayout:e=>b({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[m.width>0&&/* @__PURE__ */T(A,{style:k.absoluteFill,width:m.width,height:m.height,pointerEvents:"none",children:[/* @__PURE__ */W(R,{children:/* @__PURE__ */T(P,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[/* @__PURE__ */W(E,{offset:"0%",stopColor:d.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:d.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:0,y:0,width:m.width,height:m.height,fill:"url(#payout-jackpot-grad)"})]}),
|
|
181
|
+
/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:ml,fill:d.warning})}),
|
|
182
|
+
/* @__PURE__ */W(S,{style:[xl.jackpotText,{color:d.warning}],children:p.progressive?p.amount>0?`Progressive Jackpot: ${Qt(p.amount)}${p.limit>0?` (up to ${Qt(p.limit)})`:""} for a perfect pick!`:p.limit>0?`Progressive Jackpot — up to ${Qt(p.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Qt(p.amount)} for a perfect pick!`})]}),
|
|
183
|
+
/* @__PURE__ */W(z,{style:[xl.circleGrid,{gap:u?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=a.includes(r),l=s[r]??0,c=r===t,h=p.enabled&&c,m=h?d.warning:i?g:f,b=r===n,w=h?p.progressive?`${r} correct wins progressive jackpot${p.amount>0?` (currently ${Qt(p.amount)})`:""}${p.limit>0?` up to ${Qt(p.limit)}`:""} plus ${Qt(l)}`:`${r} correct wins jackpot ${Qt(p.amount)} plus ${Qt(l)}`:i?`${r} correct wins ${Qt(l)}`:l>0?`${r} correct pays ${Qt(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
|
|
184
|
+
return W(bl,{index:r,size:y,wide:u,isWinning:i,isJackpot:h,isSelected:b,bgColor:m,borderFallback:d.border,warning:d.warning,primary:d.primary,textMuted:d.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:x},r)})}),
|
|
185
|
+
/* @__PURE__ */T(S,{style:[xl.expectedText,{color:d.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:xl.expectedBold,children:[n," correct"]})]})]})}var xl=k.create({container:{gap:16},title:{fontSize:14,fontWeight:"600",textAlign:"center"},jackpotBanner:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingVertical:10,paddingHorizontal:16,borderRadius:8,borderWidth:1,overflow:"hidden"},jackpotText:{fontSize:14,fontWeight:"600",textAlign:"center",flexShrink:1},circleGrid:{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},circle:{borderWidth:2,alignItems:"center",justifyContent:"center"},circleWinning:{elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4},circleHovered:{elevation:6,shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8},expectedText:{fontSize:12,textAlign:"center"},expectedBold:{fontWeight:"600"}});function kl({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:c=!0,compact:s=!1,onPress:d}){const h=n??l??"#0F4C5C",u=o??h,g=.85*a,f=1.8*g,p=g/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',m=a,w=f-.18*g*2,x=g-.05*g*2,k=/* @__PURE__ */T(F,{children:[
|
|
181
186
|
/* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontFamily:y,fontSize:a,lineHeight:1.15*a,letterSpacing:-1,color:u,includeFontPadding:!1},children:[/* @__PURE__ */W(S,{style:{fontWeight:"900"},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"300"},children:"NO"})]}),
|
|
182
|
-
/* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:f,height:g,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(
|
|
183
|
-
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:m,lineHeight:1.15*m,fontWeight:"500",color:u,includeFontPadding:!1,flexShrink:1},children:t}),c&&/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:.3*m,lineHeight:.3*m,fontWeight:"600",color:u,marginLeft:.06*m,includeFontPadding:!1},children:"TM"})]})]});return d?/* @__PURE__ */W(b,{onPress:d,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k}):/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k})}function
|
|
184
|
-
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function
|
|
185
|
-
return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(
|
|
186
|
-
/* @__PURE__ */W(z,{style:[
|
|
187
|
-
return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[
|
|
187
|
+
/* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:f,height:g,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(Dn,{iconUrl:e,width:w,height:x,iconColor:r,accentColor:i})}),
|
|
188
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:m,lineHeight:1.15*m,fontWeight:"500",color:u,includeFontPadding:!1,flexShrink:1},children:t}),c&&/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:.3*m,lineHeight:.3*m,fontWeight:"600",color:u,marginLeft:.06*m,includeFontPadding:!1},children:"TM"})]})]});return d?/* @__PURE__ */W(b,{onPress:d,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k}):/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k})}function Sl({color:e,style:t}){/* @__PURE__ */
|
|
189
|
+
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Cl({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
|
|
190
|
+
return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:[0,1].map(n=>/* @__PURE__ */T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,gap:6},children:[/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,gap:4},children:[/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Sl,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Bl({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:g,colorScheme:f,renderTeamLogo:p,filterSport:y}){const m=je(g,f),b=!!(s&&d&&h),w=m.colors,x=Ge(m),[k,C]=c("pending"),[v,F]=c([]),L=l(()=>new Kr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:R,loading:M,error:D,refetch:P}=Jr(L,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=Zr(L,void 0,{skip:b}),{propositions:j,loading:N,error:G}=Xr(L,void 0,{skip:b}),Y=b?s:R,V=b?d:O,U=b?h:j,q=!b&&(M||I||N),K=b?null:D||E||G,Z=l(()=>Y.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[Y]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of Z)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of v)e.set(t.id,t);return e},[U,Z,v]),J=a(/* @__PURE__ */new Set);r(()=>{if(q||b)return;const e=[];for(const n of Z)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await L.getPropositionsByIds(e);!t&&n.length>0&&F(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[Z,Q,q,b,L]);const $=l(()=>y?Z.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):Z,[Z,y,Q]),_=l(()=>$.filter(e=>Xt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Xt(e.pending)),[$]),te="pending"===k?_:ee;return q?/* @__PURE__ */W(z,{style:vl.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(Cl,{colors:ke(m)})}):K?/* @__PURE__ */W(z,{style:vl.container,children:/* @__PURE__ */T(z,{style:[vl.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:vl.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:vl.container,children:[
|
|
191
|
+
/* @__PURE__ */W(z,{style:[vl.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
|
|
192
|
+
return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[vl.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[vl.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[vl.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[vl.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:vl.emptyState,children:[
|
|
188
193
|
/* @__PURE__ */W(z,{style:{marginBottom:16},children:/* @__PURE__ */W(A,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"pending"===k?"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z":"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z",stroke:w.textMuted,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),
|
|
189
|
-
/* @__PURE__ */W(S,{style:[
|
|
190
|
-
/* @__PURE__ */W(S,{style:[
|
|
191
|
-
/* @__PURE__ */W(z,{style:
|
|
192
|
-
/* @__PURE__ */T(z,{style:
|
|
193
|
-
/* @__PURE__ */W(z,{style:[
|
|
194
|
-
return T(z,{style:[
|
|
195
|
-
return T(z,{style:[
|
|
196
|
-
/* @__PURE__ */T(z,{style:
|
|
197
|
-
/* @__PURE__ */T(z,{style:
|
|
198
|
-
/* @__PURE__ */T(z,{style:
|
|
199
|
-
return T(z,{style:[
|
|
200
|
-
/* @__PURE__ */W(S,{style:[
|
|
201
|
-
/* @__PURE__ */W(S,{style:[
|
|
202
|
-
/* @__PURE__ */W(S,{style:[
|
|
203
|
-
return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...
|
|
204
|
-
return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...
|
|
205
|
-
return T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[t&&(null!=o?/* @__PURE__ */T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...
|
|
206
|
-
return T(z,{style:d&&
|
|
207
|
-
return T(z,{style:
|
|
208
|
-
/* @__PURE__ */W(
|
|
209
|
-
/* @__PURE__ */W(z,{style:
|
|
210
|
-
return T(z,{style:l&&
|
|
211
|
-
return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...
|
|
212
|
-
return T(z,{style:
|
|
213
|
-
return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${
|
|
214
|
-
/* @__PURE__ */W(
|
|
215
|
-
/* @__PURE__ */W(S,{style:[
|
|
216
|
-
/* @__PURE__ */W(
|
|
194
|
+
/* @__PURE__ */W(S,{style:[vl.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
|
|
195
|
+
/* @__PURE__ */W(S,{style:[vl.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
|
|
196
|
+
/* @__PURE__ */W(z,{style:vl.entryList,children:te.map(e=>/* @__PURE__ */W(zl,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function zl({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=be(r),d=Ge(r),h="dark"===r.colorScheme,u=e.proposition_ids??[],g=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),f=u.length,[p,y]=c(!1),m=f>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=g.filter(e=>null!=e.result&&!e.is_voided).length,k=g.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=w(e.id);return null!=t&&t===e.result}).length,C=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),v=Xt(e.pending),L=!v&&Zt(e.winning)>0,R=e.payout_status,M="fulfilled"===R&&L,D=v?"Pending":M?"Won — pay due":"paid_out"===R&&L?"Paid":L?"Won":"Lost",P=v||M?a.warningBg:L?a.successBg:a.errorBg,O=v||M?a.warningText:L?a.successText:a.errorText,I=C&&x>0?`${k}/${f} correct`:f>0?`${f} pick${1!==f?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:vl.cardHeader,children:[/* @__PURE__ */T(z,{style:vl.cardHeaderLeft,children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?/* @__PURE__ */W(kl,{iconUrl:Ze(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[vl.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:vl.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[vl.metaText,{color:a.textMuted}],children:Jt(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(S,{style:[vl.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[vl.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:vl.cardHeaderRight,children:[
|
|
197
|
+
/* @__PURE__ */T(z,{style:vl.amounts,children:[Zt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[vl.betLabel,{color:a.textMuted}],children:Qt(Zt(e.bet_amount))}),!v&&Zt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[vl.winAmount,{color:a.success}],children:Qt(Zt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",Qt(Zt(e.payout_jackpot))," jackpot"]})]})]}),
|
|
198
|
+
/* @__PURE__ */W(z,{style:[vl.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[vl.statusText,{color:O}],children:D})}),m&&/* @__PURE__ */W(z,{style:{transform:[{rotate:p?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:a.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});/* @__PURE__ */
|
|
199
|
+
return T(z,{style:[vl.card,{borderColor:a.border,backgroundColor:s,shadowColor:"#000",shadowOpacity:h?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[/* @__PURE__ */W(B,{testID:"entry-card",onPress:()=>{m&&y(e=>!e),o?.({entry:e,game:t,propositions:g})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&f>0&&u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),l=w(t);if(!o)/* @__PURE__ */return T(z,{style:[vl.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:vl.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(dt,{theme:r,size:"sm",value:"yes"===l?"yes":"no"})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,g,f;d?(u="Void",g=`${a.textMuted}20`,f=a.textMuted):s?h?(u="Won",g=a.successBg,f=a.successText):(u="Lost",g=a.errorBg,f=a.errorText):(u="Pending",g=a.warningBg,f=a.warningText);const p=nn(o)?void 0:o.home_team;/* @__PURE__ */
|
|
200
|
+
return T(z,{style:[vl.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
|
|
201
|
+
/* @__PURE__ */T(z,{style:vl.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:vl.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[vl.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[vl.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[vl.teamName,{color:a.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:Jt(o.commence_time)})]}),
|
|
202
|
+
/* @__PURE__ */T(z,{style:vl.outcomeCol,children:[/* @__PURE__ */W(S,{style:[vl.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(dt,{theme:r,size:"sm",value:"yes"===l?"yes":"no"}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
|
|
203
|
+
/* @__PURE__ */T(z,{style:vl.outcomeCol,children:[/* @__PURE__ */W(S,{style:[vl.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:g},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:f,textTransform:"uppercase"},children:u})})]})]},t)})]})}var vl=k.create({container:{flex:1},errorBanner:{padding:16,borderRadius:8,borderWidth:1},retryButton:{marginTop:8},tabBar:{flexDirection:"row",borderBottomWidth:1,marginBottom:16},tab:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10,borderBottomWidth:2,marginBottom:-1},tabLabel:{fontSize:14,fontWeight:"500"},tabBadge:{minWidth:20,height:20,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},tabBadgeText:{fontSize:12,fontWeight:"600"},emptyState:{alignItems:"center",justifyContent:"center",paddingVertical:48,paddingHorizontal:16},emptyTitle:{fontSize:16,fontWeight:"500"},emptySubtitle:{fontSize:14,marginTop:4},entryList:{gap:12},card:{borderRadius:12,borderWidth:1,overflow:"hidden"},cardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingHorizontal:16,paddingVertical:12,gap:12},cardHeaderLeft:{flex:1,minWidth:0},cardGameName:{fontSize:16,fontWeight:"600"},metaRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2},metaText:{fontSize:12},metaDot:{fontSize:12},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},amounts:{alignItems:"flex-end"},betLabel:{fontSize:12},winAmount:{fontSize:14,fontWeight:"700"},statusPill:{paddingHorizontal:10,paddingVertical:2,borderRadius:999},statusText:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:.3},propRow:{flexDirection:"row",alignItems:"center",paddingHorizontal:16,paddingVertical:10,gap:12},propInfo:{flex:1},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:6},teamName:{fontSize:14,fontWeight:"500"},vsText:{fontSize:12,fontWeight:"400"},outcomeCol:{alignItems:"center",gap:2,flexShrink:0},outcomeLabel:{fontSize:9,fontWeight:"600",letterSpacing:.225,textTransform:"uppercase"}});function Fl({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=wi(),{width:c}=v(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const u=n.colors,g=i??("racing"===a?"This race":"This event");/* @__PURE__ */
|
|
204
|
+
return T(z,{style:[Wl.container,s&&Wl.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:Wl.textBlock,children:[
|
|
205
|
+
/* @__PURE__ */W(S,{style:[Wl.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
|
|
206
|
+
/* @__PURE__ */W(S,{style:[Wl.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:g}),
|
|
207
|
+
/* @__PURE__ */W(S,{style:[Wl.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...it(()=>h(!0),()=>h(!1)),style:[Wl.button,s&&Wl.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[Wl.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var Wl=k.create({container:{marginBottom:16,flexDirection:"column",borderWidth:1,borderRadius:12,paddingHorizontal:12,paddingVertical:10,gap:8},containerWide:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},textBlock:{minWidth:0,flexShrink:1},kicker:{fontSize:10,fontWeight:"700",letterSpacing:1.2,textTransform:"uppercase"},label:{fontSize:14,fontWeight:"600"},hint:{fontSize:12},button:{flexShrink:0,alignSelf:"flex-start",borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},buttonWide:{alignSelf:"center"},buttonText:{fontSize:12,fontWeight:"600"}});function Tl({onBack:t,title:n="Go back"}){const{theme:o}=wi(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
|
|
208
|
+
return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...it(()=>l(!0),()=>l(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:i?-2:0}]},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:i?r.text:r.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Al({onBack:t,label:n="Games"}){const{theme:o}=wi(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
|
|
209
|
+
return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...it(()=>l(!0),()=>l(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:i?-2:0}]},children:[/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:a,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:a},children:n})]})}function Ll({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=wi(),l=i.colors,{width:a}=v(),c=a>=640,[s,d]=e.useState(!1);if(!t&&null==o&&!r)return null;const h=e=>/* @__PURE__ */W(S,{style:{fontSize:c?14:12,flexShrink:1,color:e},children:o});/* @__PURE__ */
|
|
210
|
+
return T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[t&&(null!=o?/* @__PURE__ */T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...it(()=>d(!0),()=>d(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:s?-2:0}]},children:[/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:s?l.text:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),h(s?l.text:l.textMuted)]}):/* @__PURE__ */W(Tl,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}function Rl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=wi(),c=n.colors,{width:s}=v(),d=s>=640,h=s>=768;/* @__PURE__ */
|
|
211
|
+
return T(z,{style:d&&Pl.headerWide,children:[/* @__PURE__ */T(z,{style:Pl.titleRow,children:[/* @__PURE__ */W(S,{style:[Pl.title,d&&Pl.titleWide,h&&Pl.titleDesktop,{color:se(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:Pl.howToPlayWrap,children:/* @__PURE__ */W(kt,{content:i,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:r,headingFont:o})}):null]}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function Ml({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=wi(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[Pl.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[Pl.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Pl.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function Dl({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:r,onPickYourDividend:i,onLadder:l,onMirror:a,onSafetyNet:c,onQuickPick:s,onCancel:d,hideTitle:h,hideActions:u,showPerfectPickSetup:g=!1,showTierFilter:f=!1}){const p=wi(),{theme:y,games:m,loading:b,error:w,selectedGame:x,selectedPropositionCount:k,handlePropositionCountChange:S,maxPayouts:C}=p;y.colors;const B=e.useRef(x);B.current=x;const{width:F}=v(),A=F>=640;/* @__PURE__ */
|
|
212
|
+
return T(z,{style:Pl.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(Rl,{onBack:d,hideActions:u})}),
|
|
213
|
+
/* @__PURE__ */W(Fl,{}),
|
|
214
|
+
/* @__PURE__ */W(z,{style:Pl.content,children:/* @__PURE__ */W(Ur,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:f,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===Wr(e)&&Ar(e)&&!g)return p.goToSportSelection(),void t?.();const s=Wr(e);if("quick_pick"===s||"selections"===s)return p.goToSportSelection(),void t?.();n?n(s):({game_set:r,pick_your_dividend:i,ladder:l,mirror:a,safety_net:c,rule_setup:o}[s]??o)?.()},onQuickPickGame:(e,t)=>{p.quickPickGame(e,t),s?.()},maxPayouts:C})})]})}var Pl=k.create({container:{flex:1},headerWide:{paddingLeft:8},titleRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:12},title:{fontSize:18,fontWeight:"700",lineHeight:22.5},titleWide:{fontSize:20,lineHeight:25},titleDesktop:{fontSize:24,lineHeight:30},howToPlayWrap:{flexShrink:0,marginTop:2},content:{flex:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Hl({onBack:e,hideActions:t}={}){const{theme:n}=wi(),o=Ge(n),r=n.colors,{width:i}=v(),l=i>=640;/* @__PURE__ */
|
|
215
|
+
return T(z,{style:l&&El.headerWide,children:[/* @__PURE__ */W(S,{style:[El.sectionTitle,l&&El.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t})]})}function Ol({onCancel:e}){const{theme:t,screenSize:n}=wi(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:El.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[El.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[El.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Il({onSelectCategory:t,onCancel:n,hideTitle:o,hideActions:r,renderCategoryIcon:i,getCategoryTagline:l}){const{theme:a,propositionsForCategoryPicker:c,loading:s,setSelectedCategory:d,setSelectedSport:h,clearSelectedGame:u,displayCategoryName:g}=wi(),f=a.colors,p=be(a),y=Ne(a),{width:m}=v(),b=m>=640,w=m>=400,[x,k]=e.useState(null),[C,F]=e.useState(0),A=w?C>0?(C-(b?12:10))/2:"48%":"100%";on(c);const L=rn(c);return s?/* @__PURE__ */W(z,{style:El.container,children:/* @__PURE__ */W(Qn,{colors:ke(a),bodyFont:y,variant:"category",categoryCount:L.length>0?L.length:2})}):/* @__PURE__ */T(z,{style:El.container,children:[!o&&/* @__PURE__ */W(z,{style:El.titleWrap,children:/* @__PURE__ */W(Hl,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:El.content,children:/* @__PURE__ */W(z,{style:[El.grid,b&&El.gridWide],onLayout:e=>F(e.nativeEvent.layout.width),children:L.map(e=>{const n=l?.(e)??function(e){return Vt[e]??""}(e),o=x===e;/* @__PURE__ */
|
|
216
|
+
return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...it(()=>k(e),()=>k(t=>t===e?null:t)),style:[El.card,b&&El.cardWide,{width:A,backgroundColor:p,borderColor:o?f.primary:f.border},o&&El.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(Ft,{label:g(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[El.tagline,b&&El.taglineWide,{color:f.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var El=k.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap:10},gridWide:{gap:12},card:{alignItems:"flex-start",justifyContent:"center",gap:8,minHeight:112,borderRadius:16,borderWidth:1,padding:14},cardWide:{gap:12,minHeight:140,padding:20},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},tagline:{fontSize:10,fontWeight:"500",textTransform:"uppercase",letterSpacing:.8},taglineWide:{fontSize:12,letterSpacing:1.2},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function jl(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 Nl({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[Yl.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
|
|
217
|
+
return T(z,{style:Yl.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:Yl.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[Yl.teamName,i&&Yl.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Gl({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=wi(),c=n.colors,s=Ne(n),d=Ge(n),h=be(n),u=we(n),{width:g}=v(),f=g>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:Yl.container,children:/* @__PURE__ */W(Qn,{colors:ke(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:Yl.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[Yl.intro,{color:c.textMuted,fontFamily:s}],children:"All picks in your multi must come from one game."}),0===r.length?/* @__PURE__ */W(z,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Yl.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[Yl.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[Yl.list,f&&Yl.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
|
|
218
|
+
return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${Jn(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,...it(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[Yl.card,f&&Yl.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&Yl.cardHovered],children:[/* @__PURE__ */T(z,{style:Yl.cardMain,children:[/* @__PURE__ */T(z,{style:[Yl.matchup,f&&Yl.matchupWide,{backgroundColor:u}],children:[
|
|
219
|
+
/* @__PURE__ */W(Nl,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f}),
|
|
220
|
+
/* @__PURE__ */W(S,{style:[Yl.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
|
|
221
|
+
/* @__PURE__ */W(Nl,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f})]}),/* @__PURE__ */T(S,{style:[Yl.meta,f&&Yl.metaWide,{color:c.textMuted,fontFamily:s}],children:[jl(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",e.league||e.sport?` · ${e.league?.toUpperCase()??a(e.sport)}`:""]})]}),/* @__PURE__ */W(z,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:/* @__PURE__ */W(Bt,{size:22,color:c.textMuted})})]},e.id)})})]})}var Yl=k.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},intro:{fontSize:14,lineHeight:22.75,marginBottom:16},emptyState:{borderWidth:1,borderRadius:16,padding:24,alignItems:"center"},emptyText:{fontSize:14,textAlign:"center"},list:{gap:10},listWide:{gap:12},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},card:{minHeight:64,width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:16},cardMain:{flex:1,minWidth:0},matchup:{flexDirection:"column",alignItems:"flex-start",gap:4,borderRadius:12,paddingHorizontal:12,paddingVertical:10},matchupWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6},teamMark:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,maxWidth:"100%"},teamLogo:{flexShrink:0},teamName:{fontSize:14,fontWeight:"600",flexShrink:1},teamNameWide:{fontSize:16},vs:{fontSize:12,fontWeight:"400"},meta:{marginTop:8,fontSize:11,fontWeight:"500"},metaWide:{fontSize:12}});function Vl({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,g]=c(!1),[f,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,v]=c(null),[A,L]=c(null),R="web"===m.OS,M=36+36*e.length+12,D="up"===s||f?"up":"down";i(()=>{if(!h||!R)return void v(null);const e=x.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e=>{const t=k.current;if(!t)return e;const n=t.offsetHeight-t.clientHeight,o=t.firstElementChild?.getBoundingClientRect().height??0,r=t.querySelector('[role="menuitem"]')?.getBoundingClientRect().height??0,i=Math.floor((e-n-o)/r);return r>0&&i>=1?n+o+i*r:e},n=()=>{const n=k.current;v(function({trigger:e,viewport:t,wanted:n,width:o,align:r,direction:i,snap:l}){const{height:a,width:c}=t,s=a-Math.max(e.bottom,0)-6-8,d=Math.min(e.top,a)-6-8,h="up"===i||n>s&&d>s,u=h?d:s,g=Math.max(a-16,132),f=n<=u?n:Math.min(n,l?l(g):g),p=h?e.top-6-f:e.bottom+6,y="left"===r?e.left:e.right-o;return{top:Math.max(8,Math.min(p,a-8-f)),left:Math.max(8,Math.min(y,c-8-o)),maxHeight:f}}({trigger:e.getBoundingClientRect(),viewport:{width:document.documentElement.clientWidth||window.innerWidth,height:document.documentElement.clientHeight||window.innerHeight},wanted:n?n.scrollHeight+n.offsetHeight-n.clientHeight:M,width:n?.offsetWidth??160,align:l,direction:s,snap:t}))};n();const o=requestAnimationFrame(n);return window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),()=>{cancelAnimationFrame(o),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0)}},[h,R,M,l,s]),r(()=>{if(!h)return b(null),void(R||p(!1));if(R){const e=e=>{const t=x.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||k.current&&k.current.contains(n)||g(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=x.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);p(r<M&&t>r),L({x:e,y:t,width:n,height:o})})},[h,R,M]);const P=/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */T(B,{onPress:()=>{t(e),g(!1)},accessibilityRole:"menuitem",...it(()=>b(e),()=>b(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:y===e?o.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),/* @__PURE__ */W(z,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});/* @__PURE__ */
|
|
217
222
|
return T(z,{ref:x,style:{position:"relative",flexShrink:0},children:[
|
|
218
|
-
/* @__PURE__ */W(
|
|
219
|
-
/* @__PURE__ */W(
|
|
220
|
-
return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:
|
|
221
|
-
/* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:
|
|
222
|
-
/* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:
|
|
223
|
-
/* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:
|
|
224
|
-
/* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:
|
|
225
|
-
/* @__PURE__ */W(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */T(
|
|
226
|
-
return T(z,{style:[
|
|
227
|
-
/* @__PURE__ */W(
|
|
228
|
-
return T(z,{style:
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/* @__PURE__ */W(
|
|
232
|
-
return
|
|
233
|
-
return T(z,{style:[
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
|
|
236
|
-
return
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/* @__PURE__ */W(
|
|
242
|
-
/* @__PURE__ */T(z,{style:Jl.info,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Jl.name,{color:se(n),fontFamily:a}],children:o.game_name}),f?/* @__PURE__ */W(S,{numberOfLines:1,style:[Jl.sport,{color:d.textMuted}],children:f}):null]}),
|
|
243
|
-
/* @__PURE__ */W(at,{theme:n,variant:"ghost",size:"sm",radius:"pill",onPress:()=>g.length>1?u(e=>!e):t(),children:"Change"})]}),h&&g.length>1?/* @__PURE__ */W(z,{accessibilityLabel:"Choose a game",style:[Jl.menu,{backgroundColor:d.background,borderColor:d.border}],children:g.map(e=>{const t=e.id===o.id;/* @__PURE__ */
|
|
244
|
-
return T(B,{accessibilityRole:"button",accessibilityState:{selected:t},onPress:()=>(e=>{u(!1),e.id!==o.id&&s(e)})(e),style:Jl.menuRow,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Jl.menuText,{color:t?d.primary:d.text,fontWeight:t?"700":"500"}],children:e.game_name}),t?/* @__PURE__ */W(S,{style:{color:d.primary},children:"✓"}):null]},e.id)})}):null]})}var Jl=k.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 $l({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:i,bodyFont:r,selectedGame:l,propositions:a,selections:c,toggleSelection:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,goToConfirmation:g,selectedEventId:f,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=or(),x=o.colors,k=ot(l),C=Uo(l??{},l?w?.[l.id]:void 0),{width:B}=F(),v=B>=640,A=no(l)&&!f,R=p.find(e=>e.id===f),L=l?dn(l,d,m):{min:0,max:0},D=L.min,M=no(l)&&f?Math.min(L.max,a.length):L.max,P=D>0&&D===M,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&D>0&&M>D,O=P?M:M||a.length,I=e=>{const t=Math.max(0,Math.min(e??O,a.length));for(const r of Object.keys(c)){const e=Number(r);s(e,c[e])}const n=[...a].sort(()=>Math.random()-.5).slice(0,t),o=[],i=[];for(const r of n)Math.random()<.5?o.push(r):i.push(r);for(const r of o)s(r.id,"yes");for(const r of i)s(r.id,"no")},E=!h&&a.length>0,j=H?Array.from({length:M-D+1},(e,t)=>D+t).filter(e=>e<=a.length):[],N=u>0?u:D||O;/* @__PURE__ */
|
|
245
|
-
return T(z,{style:[ia.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ia.title,{fontSize:v?24:20,color:se(o),fontFamily:i}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(pl,{onBack:f?()=>y(null):e,hideActions:n,label:R?eo(R):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(St,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(qo,{tiers:C.hasGenericDividends?C.tiers:[],modes:C.modes,pydDividends:C.pydDividends,minBet:C.minBet,maxBet:C.maxBet,colors:x,bodyFont:r,headingFont:i}),colors:{text:x.text,textMuted:x.textMuted,border:x.border,background:x.background,backgroundAlt:x.backgroundAlt,primary:x.primary,primaryText:x.primaryText},bodyFont:r,headingFont:i}):null})]}),E&&(j.length>1?/* @__PURE__ */W(Wl,{counts:j,onPick:e=>{I(e),g(),t?.()},onDoubleAction:()=>{I(N),g(),t?.()},colors:x,menuShadow:ce(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(rr,{onPress:()=>{I(),g(),t?.()}})}))]})}function _l({number:e,color:t,size:n=34,label:o,onSelect:i}){const r=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});/* @__PURE__ */
|
|
246
|
-
return W(ut,{children:/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityLabel:o,onPress:i,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[
|
|
247
|
-
/* @__PURE__ */W(z,{style:r(.44*n,.3)}),
|
|
248
|
-
/* @__PURE__ */W(z,{style:r(.22*n,.55)}),
|
|
249
|
-
/* @__PURE__ */W(z,{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{color:"#fff",fontSize:n*(e>9?.42:.5),fontWeight:"800"},children:String(e)})})]})})}function ea({onNext:t,onBack:n,hideButtons:o=!1}){const{theme:i,headingFont:r,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h,maxPayouts:u,betAmount:g,setBetAmount:f,selections:p,gamePrice:y,toggleSelection:m}=or(),b=i.colors,w=l?dn(l,a,h):{min:0,max:0},k=w.min,B=no(l)&&c?Math.min(w.max,s.length):w.max,F=e.useRef(!1);e.useEffect(()=>{F.current=!1},[l?.id]),e.useEffect(()=>{g<=0&&!F.current&&f(Math.max(20,y))},[g,y,f]);const v=e.useRef([]);v.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),i=e.filter(e=>o.has(e)),r=n.filter(e=>!i.includes(e)).sort((e,t)=>e-t);return 0===r.length&&i.length===e.length?e:[...i,...r]}(v.current,p);const A=function({selections:e,order:t,minReq:n,maxReq:o,stake:i,payout20:r=0}){const l=[];for(const h of t){const t=e[h];t&&l.push({id:h,number:l.length+1,side:t})}const a=l.length,c=a>=n,s=Math.max(0,n-a),d=c?r*(i/20):0;return{legs:l,count:a,dividend:d,dividendText:$t(d),ctaLabel:c?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${s} more to continue`,ctaDisabled:!c,atMax:o>0&&a>=o}}({selections:p,order:v.current,minReq:k,maxReq:B,stake:g,payout20:l?Al(u?.[l.id],v.current.length):0}),R=ue(i),L=ge(i),D=b.primaryText,M=pe(b.primary,fe(i),b.primaryText),P={fontSize:10,fontWeight:"700",letterSpacing:.8,textTransform:"uppercase"},H=$i(l);/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */W(ki,{onPress:()=>{if(!n)return void g(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,g(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,g(e=>!e))},290)}}),h&&R&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:k,role:"menu",style:{position:"fixed",top:C?.top??0,left:C?.left??0,maxHeight:C?.maxHeight,visibility:C?"visible":"hidden",zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:d,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain"},children:P}),document.body),
|
|
224
|
+
/* @__PURE__ */W(On,{visible:h&&!R,anchor:A,onClose:()=>g(!1),flipUp:"up"===D,align:l,children:/* @__PURE__ */W(z,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:P})})]})}var Ul="Your stake";function ql(e,t,n){const o=n?.stake&&n.stake>0?n.stake:20;if(nr(n?.game)){const e=Hr(n?.game??null,t,o);if(e>0)return e/o*20}const r=e?.top_payouts?.find(e=>Number(e.proposition_count)===t),i=r?.bet_amount&&r.bet_amount>0?r.bet_amount:20,l=Number(r?.net_payout);return r&&Number.isFinite(l)&&l>0?l/i*20:Hr(n?.game??null,t,o,{expectedCorrect:n?.expectedCorrect})/o*20}function Kl({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=Ut(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
|
|
225
|
+
return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[
|
|
226
|
+
/* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:Gt,strokeWidth:4}),
|
|
227
|
+
/* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:Gt,opacity:.3}),
|
|
228
|
+
/* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:Gt,opacity:.55}),
|
|
229
|
+
/* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:Gt}),
|
|
230
|
+
/* @__PURE__ */W(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(N,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:Gt,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Gt,children:"TM"})]})]})}var Zl="yesno:favourite-sport",Xl=null;function Ql(){try{return globalThis.localStorage??null}catch{return null}}function Jl({label:t="Pick your sport",sublabel:n,renderSportLogo:o,style:r}){const{theme:i,sportOptions:l,sportSummaries:a,selectedSport:c,setSelectedSport:s,sportBaseKey:d,displaySportName:h,selections:u,toggleSelection:g,enableSportFavourites:f}=wi(),p=i.colors,y=be(i),m=Ne(i),b=Ge(i),w=se(i),x=fe(i),[k,C]=e.useState(null);if(e.useEffect(()=>{C(f?function(){try{const e=Ql()?.getItem(Zl);if(e)return e}catch{}return Xl}():null)},[f]),l.length<2)return null;const v=k?[...l].sort((e,t)=>Number(t.key===k)-Number(e.key===k)):l,F=void 0===n?f?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":n;/* @__PURE__ */
|
|
231
|
+
return T(z,{style:[_l.wrap,r],children:[t?/* @__PURE__ */W(S,{style:[_l.label,{color:w,fontFamily:b}],children:t}):null,F?/* @__PURE__ */W(S,{style:[_l.hint,{color:p.textMuted,fontFamily:m}],children:F}):null,
|
|
232
|
+
/* @__PURE__ */W(At,{theme:i,contentContainerStyle:_l.shelf,children:v.map(({key:e})=>{const t=a.find(t=>t.key===e),n=t?.games_today??0,r=c===e,l=k===e,m=t?.label??h(e);/* @__PURE__ */
|
|
233
|
+
return T(z,{style:_l.slot,children:[/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:r},activeOpacity:.85,onPress:()=>(e=>{if(e!==c){for(const e of Object.keys(u)){const t=Number(e);g(t,u[t])}s(e)}})(e),style:[_l.card,$l(i),{backgroundColor:y,borderColor:r?p.primary:p.border,borderWidth:r?2:1,paddingTop:(f?26:12)-(r?1:0),paddingBottom:r?7:8}],children:[/* @__PURE__ */T(z,{style:_l.tile,children:[o?o(e):/* @__PURE__ */W(Kl,{gameKey:e,size:40,footer:null,sportBaseKey:d,title:`${m} button`}),n>0&&/* @__PURE__ */W(z,{style:[_l.liveDot,{backgroundColor:p.success,borderColor:y}]})]}),/* @__PURE__ */W(S,{numberOfLines:2,style:[_l.name,{color:r?w:p.text,fontFamily:b}],children:m})]}),f&&/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityState:{selected:l},accessibilityLabel:l?`Unpin ${m}`:`Pin ${m} to the front`,activeOpacity:.7,onPress:()=>(e=>{const t=k===e?null:e;C(t),function(e){Xl=e;try{e?Ql()?.setItem(Zl,e):Ql()?.removeItem(Zl)}catch{}}(t)})(e),style:_l.starHit,children:/* @__PURE__ */W(z,{style:[_l.star,{backgroundColor:l?ne(x,.22):y,borderColor:l?x:p.border}],children:/* @__PURE__ */W(Tt,{size:12,filled:l,color:l?w:ne(p.textMuted,.6)})})})]},e)})})]})}function $l(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}var _l=k.create({wrap:{minWidth:0},label:{paddingLeft:2,fontSize:14,fontWeight:"800",lineHeight:18,letterSpacing:-.2},hint:{marginBottom:6,paddingLeft:2,fontSize:12,lineHeight:16},shelf:{alignItems:"stretch",gap:10,paddingHorizontal:2,paddingTop:4,paddingBottom:10},slot:{position:"relative",width:88},card:{width:88,minHeight:44,borderRadius:16,paddingHorizontal:6,alignItems:"center",gap:6},tile:{position:"relative"},liveDot:{position:"absolute",top:-2,right:-2,width:10,height:10,borderRadius:5,borderWidth:2},name:{fontSize:11,fontWeight:"800",lineHeight:13,letterSpacing:-.2,textAlign:"center"},starHit:{position:"absolute",left:0,top:0,width:32,height:32,alignItems:"center",justifyContent:"center",zIndex:1},star:{width:20,height:20,borderRadius:10,borderWidth:1,alignItems:"center",justifyContent:"center"}});function ea(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 ta({iconUrl:e,size:t=56}){const{theme:n}=wi(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=pe(r,fe(n),i);/* @__PURE__ */
|
|
234
|
+
return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:ea(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Dn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function na({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=wi(),a=i.colors,c=Ge(i),s="mobile"===l,{width:d}=v(),h=d>=640;/* @__PURE__ */
|
|
235
|
+
return T(z,{style:[oa.block,h&&oa.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[oa.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
|
|
236
|
+
/* @__PURE__ */W(kl,{iconUrl:t,gameName:n,height:s?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:i.brand?.accent,compact:s}),o?/* @__PURE__ */W(S,{style:[oa.tagline,h&&oa.taglineWide,{color:a.textMuted}],children:o}):null]})}var oa=k.create({block:{alignItems:"center",marginBottom:16},blockWide:{marginBottom:28},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:20,textAlign:"center"},tagline:{marginTop:8,fontSize:13,lineHeight:18,textAlign:"center",maxWidth:384},taglineWide:{marginTop:12,fontSize:15,lineHeight:24}});function ra({ariaLabel:e,children:t}){const{width:n}=v();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:la.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:la.rail,children:t})}function ia(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var la=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function aa({legs:e,prizeBall:t=!0}){const{theme:n}=wi(),o=n.colors.primary,r=fe(n);/* @__PURE__ */
|
|
237
|
+
return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function ca({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=wi(),a=l.colors,s=Ge(l),d=se(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:g}=v(),f=g>=640,[p,y]=c(!1);/* @__PURE__ */
|
|
238
|
+
return T(z,{...it(()=>y(!0),()=>y(!1)),style:[sa.card,f&&sa.cardWide,{backgroundColor:u,borderColor:p?h:a.border,shadowColor:p?h:"#000",shadowOpacity:p?.28:.08,shadowRadius:p?14:10,shadowOffset:{width:0,height:p?12:8},elevation:p?4:1,transform:[{translateY:p?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:r,activeOpacity:.85,style:[sa.cardMain,f&&sa.cardMainWide],children:[e,
|
|
239
|
+
/* @__PURE__ */T(z,{style:[sa.cardText,f&&sa.cardTextWide],children:[/* @__PURE__ */T(z,{style:sa.titleRow,children:[/* @__PURE__ */W(S,{style:[sa.cardTitle,f&&sa.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[sa.statChip,{backgroundColor:ea(h,.12)}],children:/* @__PURE__ */W(S,{style:[sa.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:sa.detailBlock,children:(f?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[sa.detailLine,f&&sa.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
|
|
240
|
+
/* @__PURE__ */W(z,{style:[sa.chevron,{transform:[{translateX:p?2:0}]}],children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:h,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?/* @__PURE__ */W(z,{style:[sa.childrenWrap,{borderTopColor:ea(d,.08)}],children:i}):null]})}var sa=k.create({card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardMainWide:{gap:16},cardText:{flex:1,minWidth:0,gap:4},cardTextWide:{gap:6},titleRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4},cardTitle:{fontSize:16,fontWeight:"800",letterSpacing:-.4},cardTitleWide:{fontSize:20,letterSpacing:-.5},statChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},statChipText:{fontSize:9,fontWeight:"700",letterSpacing:.72},detailBlock:{gap:2},detailLine:{fontSize:12,lineHeight:17},detailLineWide:{fontSize:13,lineHeight:18},chevron:{alignSelf:"center",flexShrink:0},childrenWrap:{marginTop:12,paddingTop:12,borderTopWidth:1}});function da({style:e}){/* @__PURE__ */
|
|
241
|
+
return W(Jl,{style:[{marginBottom:16},e]})}function ha({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selectedPropositionCount:c,disableQuickPick:s,answeredCount:d,goToConfirmation:h,quickPickSelections:u,selectedEventId:g,sameGameMultiEvents:f,selectSameGameMultiEvent:p,selectedRule:y,howToPlayMarkdown:m,maxPayouts:b}=wi(),w=o.colors,x=ot(l),k=Ir(l??{},l?b?.[l.id]:void 0),{width:C}=v(),B=C>=640,F=_n(l)&&!g,A=f.find(e=>e.id===g),L=l?cn(l,c,y):{min:0,max:0},R=L.min,M=_n(l)&&g?Math.min(L.max,a.length):L.max,D=R>0&&R===M,P=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),H=Rr(l,c),O=!Mr(l)&&!P&&R>0&&M>R,I=H??(D?M:M||a.length),E=e=>{const n=e??I;return!(u(n)<n||(h(),t?.(),0))},j=!s&&a.length>0,N=O?Array.from({length:M-R+1},(e,t)=>R+t).filter(e=>e<=a.length):[],G=d>0?d:R||I;/* @__PURE__ */
|
|
242
|
+
return T(z,{style:[ma.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ma.title,{fontSize:B?24:20,color:se(o),fontFamily:r}],children:F?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(Ll,{onBack:g?()=>p(null):e,hideActions:n,label:A?Jn(A):l.game_name,children:x||m?.trim()?/* @__PURE__ */W(kt,{variant:"icon",content:m,panel:x,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(Er,{tiers:k.hasGenericDividends?k.tiers:[],modes:k.modes,pydDividends:k.pydDividends,minBet:k.minBet,maxBet:k.maxBet,colors:w,bodyFont:i,headingFont:r}),colors:{text:w.text,textMuted:w.textMuted,border:w.border,background:w.background,backgroundAlt:w.backgroundAlt,primary:w.primary,primaryText:w.primaryText},bodyFont:i,headingFont:r}):null})]}),j&&(N.length>1?/* @__PURE__ */W(Vl,{counts:N,onPick:e=>E(e),onDoubleAction:()=>E(G),colors:w,menuShadow:ce(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(ki,{onPress:()=>E()})}))]})}function ua({number:e,color:t,size:n=34,label:o,selected:r,onSelect:i}){const l=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});/* @__PURE__ */
|
|
243
|
+
return W(ht,{children:/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityLabel:o,onPress:i,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[
|
|
244
|
+
/* @__PURE__ */W(z,{style:l(.44*n,.3)}),
|
|
245
|
+
/* @__PURE__ */W(z,{style:l(.22*n,.55)}),
|
|
246
|
+
/* @__PURE__ */W(z,{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,alignItems:"center",justifyContent:"center",borderWidth:r?2:0,borderColor:"#fff"},children:/* @__PURE__ */W(S,{style:{color:"#fff",fontSize:n*(e>9?.42:.5),fontWeight:"800"},children:String(e)})})]})})}function ga({onNext:t,onBack:n,hideButtons:o=!1}){const{theme:r,headingFont:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h,maxPayouts:u,betAmount:g,setBetAmount:f,selections:p,expectedCorrect:y,gamePrice:m,toggleSelection:b}=wi(),w=r.colors,k=l?cn(l,a,h):{min:0,max:0},B=Rr(l,a),v=B??k.min,A=B??(_n(l)&&c?Math.min(k.max,s.length):k.max),L=e.useRef(!1);e.useEffect(()=>{L.current=!1},[l?.id]),e.useEffect(()=>{g<=0&&!L.current&&f(Math.max(20,m))},[g,m,f]);const R=e.useRef([]);R.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]}(R.current,p);const M=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||o>0&&n===o?i*(r/20):0;return{legs:l,count:a,dividend:d,dividendText:Qt(d),ctaLabel:c?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${s} more to continue`,ctaDisabled:!c,atMax:o>0&&a>=o}}({selections:p,order:R.current,minReq:v,maxReq:A,stake:g,payout20:l?ql(u?.[l.id],A>0&&v===A?A:R.current.length,{game:l,expectedCorrect:y,stake:g}):0}),D=ue(r),P=ge(r),H=w.primaryText,O=pe(w.primary,fe(r),w.primaryText),I={fontSize:10,fontWeight:"700",letterSpacing:.8,textTransform:"uppercase"},E=Dr(l),[j,N]=e.useState(null),G=M.legs.find(e=>e.id===j)??null,Y=G?s.find(e=>e.id===G.id)?.description??s.find(e=>e.id===G.id)?.proposition??"":"";/* @__PURE__ */
|
|
250
247
|
return T(z,{children:[
|
|
251
|
-
/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return T(z,{style:
|
|
258
|
-
|
|
259
|
-
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(
|
|
260
|
-
return T(z,{style:{flexDirection:"column",gap:8,
|
|
261
|
-
/* @__PURE__ */W(S,{style:{color:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/* @__PURE__ */W(
|
|
266
|
-
|
|
267
|
-
/* @__PURE__ */W(
|
|
268
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===M.legs.length?/* @__PURE__ */W(S,{style:{fontSize:13,color:w.textMuted},children:"Tap Yes or No to start building your multi."}):M.legs.map(e=>/* @__PURE__ */W(ua,{number:e.number,color:"yes"===e.side?D:P,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===j,onSelect:()=>N(t=>t===e.id?null:e.id)},e.id))}),M.legs.length>0?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},children:[G?/* @__PURE__ */T(F,{children:[
|
|
249
|
+
/* @__PURE__ */W(S,{style:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,fontSize:10,fontWeight:"700",textTransform:"uppercase",backgroundColor:"yes"===G.side?D:P,color:"#fff"},children:G.side}),
|
|
250
|
+
/* @__PURE__ */W(S,{numberOfLines:2,style:{flex:1,fontSize:12,color:w.text},children:Y}),
|
|
251
|
+
/* @__PURE__ */W(lt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{N(null),b(G.id,G.side)},children:"Remove"})]}):/* @__PURE__ */W(S,{style:{flex:1,fontSize:12,color:w.textMuted},children:"Tap a leg to read it."}),/* @__PURE__ */W(lt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{N(null);for(const e of M.legs)b(e.id,e.side)},children:"Clear bet"})]}):null,
|
|
252
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:10,marginBottom:8},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:[I,{color:w.textMuted}],children:Ul}),/* @__PURE__ */T(z,E?{accessibilityLabel:`${Ul}. ${Pr(l)}`,style:{flexDirection:"row",alignItems:"center",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:w.border,backgroundColor:w.backgroundAlt},children:[/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"800",color:w.text},children:Qt(g)}),/* @__PURE__ */W(S,{style:{fontSize:10,color:w.textMuted},children:"locked"})]}:{style:{flexDirection:"row",alignItems:"center",width:108,borderRadius:10,borderWidth:1,borderColor:w.border,backgroundColor:w.background,overflow:"hidden"},children:[/* @__PURE__ */W(S,{style:{paddingLeft:11,fontSize:16,fontWeight:"800",color:w.text},children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",accessibilityLabel:Ul,value:g>0?String(g):"",onChangeText:e=>{L.current=!0,f(Math.max(0,parseFloat(e)||0))},style:{flex:1,minWidth:0,paddingVertical:8,paddingLeft:3,paddingRight:8,fontSize:15,fontWeight:"800",color:w.text,fontFamily:i}})]})]}),/* @__PURE__ */T(z,{style:{flexGrow:1,flexBasis:150,minWidth:0,flexDirection:"row",alignItems:"baseline",justifyContent:"flex-end",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:6,backgroundColor:w.primary},children:[/* @__PURE__ */W(S,{style:[I,{color:H,opacity:.7}],children:"Potential dividend"}),/* @__PURE__ */W(S,{style:{fontSize:20,fontWeight:"800",color:O},children:M.dividendText})]})]}),!o&&/* @__PURE__ */W(lt,{theme:r,block:!0,size:"md",radius:"lg",disabled:M.ctaDisabled,onPress:()=>{d(),t?.()},children:M.ctaLabel})]})}function fa({view:e,onChange:t}){const{theme:n}=wi(),o=n.colors,r="list"===e?"swipe":"list",i="swipe"===r;/* @__PURE__ */
|
|
253
|
+
return T(B,{accessibilityRole:"button",onPress:()=>t(r),style:[pa.button,{borderColor:o.primary,backgroundColor:ea(o.primary,.1)}],children:[/* @__PURE__ */W(S,{style:[pa.glyph,{color:o.primary}],children:i?"⇆":"☰"}),/* @__PURE__ */W(S,{style:[pa.label,{color:o.primary}],children:i?"Swipe cards":"List view"})]})}var pa=k.create({button:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0,borderRadius:999,borderWidth:1,paddingHorizontal:12,paddingVertical:6},glyph:{fontSize:13},label:{fontSize:11,fontWeight:"700"}});function ya({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=wi(),{selectedRule:h}=d,{theme:u,selectedGame:g,propositions:f,selections:p,toggleSelection:y,loading:m,error:b,disableQuickPick:w,renderTeamLogo:x,filterSport:k,initialSport:S,gameCategory:C,selectedPropositionCount:B,handlePropositionCountChange:v,goToConfirmation:F,goBack:A,selectedCategory:L,setSelectedCategory:R,selectedSport:M,selectedEventId:D,propositionsForCategoryPicker:P,answeredCount:H}=d,[O,I]=e.useState(i),E=l??O,j=e.useCallback(e=>{void 0===l&&I(e),a?.(e)},[l,a]);e.useEffect(()=>{g||(d.goToSportSelection(),n?.())},[g,d,n]);const N=e.useMemo(()=>{if(!g)return null;const{min:e,max:t}=cn(g,B??void 0,h);return e>0&&e===t?e:Rr(g,B)},[g,B]),G=e.useRef(H);e.useEffect(()=>{const e=G.current;G.current=H,null!=N&&e<N&&H===N&&(F(),t?.())},[H,N]);const Y=e.useMemo(()=>rn(P??[]),[P]);if(e.useEffect(()=>{g&&1===Y.length&&L!==Y[0]&&R(Y[0])},[g,Y,L,R]),!g)return null;const V=Y.length>1&&!L,U=!V&&_n(g)&&!D,q=(()=>{if(!_n(g)||!D)return g;const e=Math.min(g.max_propositions??f.length,f.length);return{...g,max_propositions:e,allowed_propositions:g.allowed_propositions?.filter(t=>t<=e)}})(),K=()=>{A(),n?.()};/* @__PURE__ */
|
|
254
|
+
return T(z,{style:ma.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ha,{onBack:r?K:void 0,onNext:r?t:void 0,hideActions:r})}),!_n(g)&&/* @__PURE__ */W(Fl,{}),
|
|
255
|
+
/* @__PURE__ */W(z,{style:ma.content,children:V?/* @__PURE__ */W(Il,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>R(e)}):U?/* @__PURE__ */W(Gl,{}):"swipe"===E?/* @__PURE__ */W(Oi,{onBack:K,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W(fa,{view:E,onChange:j}),onDragStateChange:s}):/* @__PURE__ */W(dl,{game:q,propositions:f,selections:p,onToggleSelection:y,onNext:()=>{F(),t?.()},onBack:K,loading:m,error:b,theme:u,hideActions:!0,initialSport:k??S,renderTeamLogo:x,disableQuickPick:!0,selectedPropositionCount:B,onPropositionCountChange:v,gameCategory:C,headerExtra:c?void 0:/* @__PURE__ */W(fa,{view:E,onChange:j})})}),!r&&!V&&!U&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(ga,{onNext:t,onBack:n})})]})}var ma=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function ba({tiers:e,game:t,selectedCount:n,onSelect:o,colors:r,bodyFont:i,extraBetAmount:l,buttonLabel:a,columnLabel:s="Legs",buildYourOwn:d,quickPickOnly:h,onQuickPick:u,collapsible:g,expanded:f,onExpandedChange:p,summaryTiers:y}){const[m,b]=c(!1),w=f??m,k=null!=l&&20!==l,C=k?`$${Math.round(l)} returns`:"$20 returns",v=e.some(e=>e.payout20>0),A=!!g&&!w,L=v&&!A,R=(y??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),M=k&&R>0?Or(R*(l/20),t):R,D=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,P=/* @__PURE__ */T(F,{children:[/* @__PURE__ */T(z,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[/* @__PURE__ */W(z,{style:{paddingVertical:6,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[wa.labelText,{color:r.textMuted,fontFamily:i}],children:h?"Quick Pick":s})}),L&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[wa.labelText,{color:r.textMuted,fontFamily:i}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[wa.labelText,{color:r.textMuted,fontFamily:i}],children:C})})]})]}),h?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(Vl,{counts:(y??e).map(e=>e.count),onPick:e=>u?u(e):o(e),align:"left",direction:"up",colors:{background:r.background??"#ffffff",backgroundAlt:r.backgroundAlt??"#f3f4f6",border:r.border??"#e5e7eb",text:r.text??"#111827"}}),v&&!A&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:n})=>{const o=k&&n>0?Or(n*(l/20),t):null;/* @__PURE__ */
|
|
256
|
+
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[wa.tableCellText,{color:r.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[wa.tableCellText,{color:r.primary}],children:n>0?Qt(o??n):"—"})})]},String(e))})})]}):d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(B,{onPress:()=>o(e[0]?.count??0),style:[wa.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:r.buttonPrimary??r.primary,backgroundColor:r.buttonPrimary??r.primary}],children:/* @__PURE__ */W(S,{style:[wa.optionButtonText,{color:r.buttonPrimaryText??"#ffffff",fontFamily:i}],children:"Make Your Selections"})}),v&&!A&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:n})=>{const o=n>0?Qt(k?Or(n*(l/20),t):n):"—";/* @__PURE__ */
|
|
257
|
+
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[wa.tableCellText,{color:r.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[wa.tableCellText,{color:r.primary}],children:o})})]},String(e))})})]}):e.map(({count:e,payout20:c})=>{const s=n===e,d=k&&c>0?Or(c*(l/20),t):null;/* @__PURE__ */
|
|
258
|
+
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>o(e),accessibilityState:{selected:s},style:[wa.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:s?r.buttonPrimary??r.primary:r.border??r.primary,backgroundColor:s?r.buttonPrimary??r.primary:r.buttonSecondary??r.background}],children:/* @__PURE__ */W(S,{style:[wa.optionButtonText,{color:s?r.buttonPrimaryText??"#ffffff":r.buttonSecondaryText??r.text,fontFamily:i}],numberOfLines:1,children:a?a(e):`Multi ${e}`})}),!A&&c>0&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[wa.tableCellText,{color:r.success}],children:[e,"/",e]})}),k?null!=d&&/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[wa.tableCellText,{color:r.primary}],children:Qt(d)})}):/* @__PURE__ */W(z,{style:[wa.tableCell,{backgroundColor:`${r.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[wa.tableCellText,{color:r.primary}],children:Qt(c)})})]})]},String(e))})]});/* @__PURE__ */
|
|
259
|
+
return T(z,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[h?/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:P}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:P}),g&&(v?/* @__PURE__ */T(z,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:r.text,fontFamily:i},children:["Win up to ",
|
|
260
|
+
/* @__PURE__ */W(S,{style:{color:r.heading??r.text??r.primary},children:Qt(M)}),
|
|
261
|
+
/* @__PURE__ */W(S,{style:{color:r.textMuted},children:` for $${k?Math.round(l):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!w,void 0===f&&b(e),void p?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:w},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:w?r.buttonSecondary:r.background??"#ffffff",borderWidth:1,borderColor:w?r.primary??r.border:r.border},children:/* @__PURE__ */W(S,{style:{color:r.text,fontSize:12,fontWeight:"600",fontFamily:i},children:w?"Hide dividends":"Show dividends"})})]}):/* @__PURE__ */W(z,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",fontFamily:i},children:"Show dividends"})}))]})}var wa=k.create({labelText:{fontSize:12,fontWeight:"400"},optionButton:{borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},optionButtonText:{fontSize:14,fontWeight:"600"},tableCell:{paddingHorizontal:8,paddingVertical:4,borderRadius:6,alignItems:"center",justifyContent:"center"},tableCellText:{fontSize:12,fontWeight:"700"}});function xa(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function ka({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,quickPickSelections:a,upgradePropositionCount:c,selectedPropositionCount:s,disableQuickPick:d,answeredCount:h,selectedRule:u}=wi(),g=n.colors,{width:f}=v(),p=f>=640,y=r?cn(r,s,u):{min:0,max:0},m=y.min,b=_n(r)&&i?Math.min(y.max,l.length):y.max,w=m>0&&m===b,x=!!(r?.allowed_propositions&&r.allowed_propositions.length>0),k=Rr(r,s),C=!Mr(r)&&!x&&m>0&&b>m,B=k??(w?b:b||l.length),F=e=>{c(a(e??B))},A=!d&&l.length>0,L=C?Array.from({length:b-m+1},(e,t)=>m+t):[],R=h>0?h:m||B;/* @__PURE__ */
|
|
262
|
+
return T(z,{style:[Ba.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[Ba.title,{fontSize:p?24:20,color:se(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:r.game_name})]}),A&&(L.length>1?/* @__PURE__ */W(Vl,{counts:L,onPick:e=>F(e),onDoubleAction:()=>F(R),colors:g,menuShadow:ce(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(ki,{onPress:()=>F()})}))]})}function Sa({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=wi(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:g,screenSize:f}=r,p=i.colors,{width:y}=v(),m=y>=640;if(!l)return null;const b=u[a]??0,w=sn(l),x=a===g.length,k=w?.enabled&&x,C=e&&"mobile"!==f;/* @__PURE__ */
|
|
263
|
+
return T(z,{style:Ba.footer,children:[C&&/* @__PURE__ */W(lt,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:Ba.footerRight,children:[d?/* @__PURE__ */W(S,{style:[Ba.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:Ba.payoutInfo,children:[/* @__PURE__ */W(S,{style:[Ba.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[Ba.payoutAmount,{color:p.heading??p.text}],children:[Qt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
|
|
264
|
+
/* @__PURE__ */W(lt,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(xa(r))},children:n?s?"Placing…":`Place Entry (${Qt(c)})`:"Log in to place entry"})]})]})}function Ca({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=wi(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,compositeComponentById:u,propositions:g,selectedPropositionCount:f,selectedEventId:p,expectedCorrect:y,setExpectedCorrect:m,betAmount:b,setBetAmount:w,submitting:x,submitError:k,canSubmit:C,winningCounts:A,payouts:L,overloadPayouts:R,renderTeamLogo:M,userBalance:D,onRecharge:P,goBack:H,toggleSelection:O,upgradePropositionCount:I,goToSportSelection:E,selectedRule:j}=a,N=c.colors,{width:G}=v(),Y=G>=640;if(r(()=>{s||(E(),e?.())},[s,E,e]),!s)return null;const V=!!(s.allowed_propositions&&s.allowed_propositions.length>0),U=cn(s,f,j),q=Rr(s,f),K=q??U.min,Z=q??(_n(s)&&p?Math.min(U.max,g.length):U.max),X=Object.keys(h).length,Q=K>0&&X<K,J=!Mr(s)&&!V&&K>0&&Z>K&&X>=K&&X<Z,$=V?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(f??0)):[],_=V&&$.length>0&&!Q,ee=J||_,te=Z-X;N.textAlt??N.text;const ne=()=>{H(),e?.()},oe=(V?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===X&&e<(f??1/0)),re=V&&X<Math.min(...s.allowed_propositions??[1/0]),ie=V&&Q&&!re,le=Lr(s),ae=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.";const a=i.length/2;if(i.length>=2&&i.length%2==0&&i.every((e,t)=>t<a?e===t:e===n-(i.length-1-t))){const e=a-1,t=`Get all ${n} picks right — or all ${n} wrong — to win.`;return 0===e?t:`${t} ${1===e?"One miss":`Up to ${e} misses`} either way still wins.`}if(!i.every((e,t)=>e===l+t)||i[i.length-1]!==n)return`Get exactly ${i.length>1?`${i.slice(0,-1).join(", ")} or ${i[i.length-1]}`:`${i[0]}`} of your ${n} picks right to win.`;const c=i.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(c.length===i.length&&c.length>1&&c.every((e,t)=>0===t||e>c[t-1]))return`Get at least ${l} of your ${n} picks right to win — every extra right pick grows the prize.`;const s=n-l;return`Get at least ${l} of your ${n} picks right to win — you can miss ${1===s?"one":`up to ${s}`}.`}(j,A,X,L),ce=L[X]||Hr(s,X,b),de=(A??[]).length>1?"Top prize":"That pays",he=function(e,t,n){const o=[...new Set((e??[]).filter(e=>Number.isFinite(e)))].sort((e,t)=>t-e);if(o.length<2||t<=0)return[];const r=o.map(e=>({count:e,label:e===t?`Get all ${t}`:0===e?`All ${t} wrong`:`Get ${e}`,prize:n?.[e]??0}));return r.every(e=>e.prize>0)?r:[]}(A,X,L),ue=null!=oe?le.belowRequiredHint(oe,f??K):le.belowRequiredAddOnlyHint(f??K);return r(()=>{!Q||V&&!re||ne()},[Q,V,re]),/* @__PURE__ */T(z,{style:Ba.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ka,{onBack:e,hideActions:l})}),
|
|
265
|
+
/* @__PURE__ */W(z,{style:Ba.content,children:/* @__PURE__ */W(pl,{componentById:u,game:s,propositions:d,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(xa(a))},onBack:ne,loading:x,error:k,expectedCorrect:y,onExpectedCorrectChange:m,betAmount:b,onBetAmountChange:w,theme:c,showCustomAmount:!0,betAmountLocked:Dr(s),betAmountLockedNote:Pr(s),hideActions:!0,winningCounts:A,payouts:L,renderTeamLogo:M,canSubmit:C,authenticated:n,userBalance:D,onRecharge:P,boostBanner:/* @__PURE__ */T(F,{children:[(ae||ce>0)&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.primary}30`,backgroundColor:`${N.primary}08`,marginBottom:12},children:[
|
|
266
|
+
/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:N.textMuted,marginBottom:4},children:"How you win"}),ae&&/* @__PURE__ */W(S,{style:{fontSize:Y?14:12,color:N.text},children:ae}),he.length>0?/* @__PURE__ */W(z,{style:{marginTop:8,gap:4},children:he.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */W(S,{style:{fontSize:Y?14:12,color:N.textMuted},children:e.label}),/* @__PURE__ */W(S,{style:{fontSize:Y?14:12,fontWeight:"700",color:se(c)},children:Qt(e.prize)})]},e.count))}):ce>0&&/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.textMuted,marginTop:6},children:[`${de} `/* @__PURE__ */,W(S,{style:{fontWeight:"700",color:se(c)},children:Qt(ce)})]})]}),ie&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.warning}40`,backgroundColor:`${N.warning}10`,flexDirection:Y?"row":"column",alignItems:Y?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.text,flexShrink:1},children:["You have ",
|
|
267
|
+
/* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[X," pick",1!==X?"s":""]}),`. ${ue}`]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:ne,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonSecondary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonSecondaryText},children:"Add a pick"})}),null!=oe&&/* @__PURE__ */W(B,{onPress:()=>I(oe),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:le.switchTierLabel(oe)})})]})]}),ee&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.primary}30`,backgroundColor:`${N.primary}08`},children:_?(()=>{const e=f??X,t=R[e],n=b>0?b:20,o=null!=t&&t>0?Or(t*(n/20),s):null;/* @__PURE__ */
|
|
269
268
|
return T(z,{children:[
|
|
270
|
-
/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:
|
|
271
|
-
/* @__PURE__ */W(S,{style:{color:
|
|
272
|
-
/* @__PURE__ */W(
|
|
273
|
-
return T(z,{style:
|
|
274
|
-
/* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:
|
|
275
|
-
/* @__PURE__ */T(z,{style:[
|
|
276
|
-
return T(z,{style:[
|
|
269
|
+
/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:N.primary,marginBottom:4},children:le.overloadTitle}),null!=o&&/* @__PURE__ */T(S,{style:{fontSize:12,color:N.textMuted,marginBottom:8},children:["Currently winning up to ",
|
|
270
|
+
/* @__PURE__ */W(S,{style:{color:N.heading??N.text,fontWeight:"700"},children:Qt(o)}),` with ${e} picks`]}),
|
|
271
|
+
/* @__PURE__ */W(ba,{game:s,tiers:$.map(e=>({count:e,payout20:R[e]??0})),selectedCount:void 0,onSelect:e=>{I(e),ne()},colors:N,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:le.tableColumnLabel,buttonLabel:le.tierButtonLabel})]})})():/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:12,color:N.textMuted,flex:1},children:[1===te?"Add ":"Add up to ",/* @__PURE__ */T(S,{style:{color:N.primary,fontWeight:"700"},children:[te," more pick",1!==te?"s":""]})]}),/* @__PURE__ */W(B,{onPress:ne,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:"Add picks"})})]})})]})})}),l&&k?/* @__PURE__ */W(z,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */W(S,{style:[Ba.errorText,{color:N.error}],children:k})}):null]})}var Ba=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1},footer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:16},footerRight:{flexDirection:"row",alignItems:"center",gap:12},errorText:{fontSize:12},payoutInfo:{alignItems:"flex-end"},payoutLabel:{fontSize:10,textTransform:"uppercase",letterSpacing:.25},payoutAmount:{fontSize:14,fontWeight:"700"}}),za=m.select({ios:"Menlo",default:"monospace"});function va({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=wi(),l=n.colors,{width:a}=v(),c=a>=640;/* @__PURE__ */
|
|
272
|
+
return T(z,{style:Ta.titleRow,children:[/* @__PURE__ */T(z,{style:Ta.titleText,children:[/* @__PURE__ */W(S,{style:[Ta.title,c&&Ta.titleWide,{color:se(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[Ta.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */T(F,{children:["Entry"," ",
|
|
273
|
+
/* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:za},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[Ta.checkCircle,c&&Ta.checkCircleWide,{backgroundColor:`${l.success}20`}],children:/* @__PURE__ */W(A,{width:c?28:24,height:c?28:24,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}function Fa({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=wi();return o.colors,/* @__PURE__ */T(z,{style:Ta.footer,children:[/* @__PURE__ */W(lt,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(lt,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function Wa({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=wi(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:g,selectedPropositionIds:f,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=be(c),k=w.textAlt??w.text,{width:C}=v(),B=C>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},L=u?.proposition_ids?u.proposition_ids.length:f.length,R=m[L]??null,M=e.useRef(!1);return e.useEffect(()=>{u&&h?M.current=!1:(a.goToSportSelection(),M.current||(M.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:Ta.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(va,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[Ta.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[Ta.summaryCard,B&&Ta.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:Ta.summaryHeader,children:[(()=>{const e=h?h.allowed_propositions&&h.allowed_propositions.length>0&&h.game_name.replace(/\s+\d+\s*$/,"").trim()||h.game_name:"Entry summary";return h?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:/* @__PURE__ */W(kl,{iconUrl:Ze(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[Ta.summaryHeading,B&&Ta.summaryHeadingWide,{color:se(c),fontFamily:d,flex:1}],children:e})})(),/* @__PURE__ */W(z,{style:{backgroundColor:`${w.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:/* @__PURE__ */T(S,{style:{color:w.primary,fontSize:12,fontWeight:"600",fontFamily:s},children:[L," pick",1!==L?"s":""]})})]}),/* @__PURE__ */T(z,{style:Ta.statsGrid,children:[
|
|
274
|
+
/* @__PURE__ */T(z,{style:[Ta.statCell,B&&Ta.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ta.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[Ta.statValue,{color:k,fontFamily:s}],children:L})]}),g>0&&/* @__PURE__ */T(z,{style:[Ta.statCell,B&&Ta.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ta.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[Ta.statValue,{color:k,fontFamily:s}],children:Qt(g)})]}),null!=R&&R>0&&/* @__PURE__ */T(z,{style:[Ta.statCell,B&&Ta.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ta.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[Ta.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:Qt(R)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[Ta.summaryCard,B&&Ta.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[Ta.summaryHeading,B&&Ta.summaryHeadingWide,{color:se(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:Ta.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
|
|
275
|
+
return T(z,{style:[Ta.pickRow,{backgroundColor:w.backgroundAlt}],children:[
|
|
277
276
|
/* @__PURE__ */W(z,{style:{width:20,height:20,borderRadius:10,backgroundColor:w.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:/* @__PURE__ */W(S,{style:{color:w.primaryText,fontSize:10,fontWeight:"700",fontFamily:s},children:t+1})}),
|
|
278
|
-
/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(S,{numberOfLines:1,style:{color:k,fontSize:B?14:12,fontWeight:"500",fontFamily:s},children:[
|
|
279
|
-
/* @__PURE__ */W(S,{style:{color:w.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */W(S,{numberOfLines:1,style:{color:w.textMuted,fontSize:11,fontFamily:s},children:e.description})]}),null!=n&&/* @__PURE__ */W(
|
|
280
|
-
return T(z,{style:
|
|
281
|
-
return T(z,{style:
|
|
282
|
-
return T(z,{style:c&&
|
|
283
|
-
return T(B,{onPress:()=>{g(e),f(),t?.(e)},...
|
|
284
|
-
/* @__PURE__ */T(z,{style:
|
|
285
|
-
/* @__PURE__ */W(z,{style:
|
|
286
|
-
return T(z,{style:[
|
|
287
|
-
/* @__PURE__ */W(z,{style:
|
|
288
|
-
/* @__PURE__ */T(z,{style:
|
|
289
|
-
/* @__PURE__ */T(z,{style:[
|
|
277
|
+
/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(S,{numberOfLines:1,style:{color:k,fontSize:B?14:12,fontWeight:"500",fontFamily:s},children:[nn(e)?null:/* @__PURE__ */T(F,{children:[e.home_team," ",
|
|
278
|
+
/* @__PURE__ */W(S,{style:{color:w.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */W(S,{numberOfLines:1,style:{color:w.textMuted,fontSize:11,fontFamily:s},children:e.description})]}),null!=n&&/* @__PURE__ */W(dt,{theme:c,size:"sm",value:o?"yes":"no",style:{alignSelf:"center",flexShrink:0}})]},e.id)})})]})]})]}):null}var Ta=k.create({container:{flex:1},content:{flex:1},titleRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingLeft:8},titleText:{flex:1,minWidth:0},checkCircle:{width:48,height:48,borderRadius:999,alignItems:"center",justifyContent:"center",flexShrink:0},checkCircleWide:{width:56,height:56},title:{fontSize:20,fontWeight:"700",lineHeight:28},titleWide:{fontSize:24,lineHeight:32},message:{fontSize:14},summaryCard:{width:"100%",borderRadius:12,padding:16,borderWidth:1},summaryCardWide:{padding:20},summaryHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12,gap:12},summaryHeading:{fontSize:14,fontWeight:"600"},summaryHeadingWide:{fontSize:16},statsGrid:{flexDirection:"row",flexWrap:"wrap",gap:12},statCell:{flexBasis:"45%",flexGrow:1},statCellWide:{flexBasis:"30%"},statLabel:{fontSize:10,fontWeight:"600",letterSpacing:.25,textTransform:"uppercase"},statValue:{fontSize:14,fontWeight:"600",marginTop:2},pickList:{gap:6},pickRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:8,borderRadius:4},footer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:16}});function Aa({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=wi(),{width:r}=v(),i=r>=640;/* @__PURE__ */
|
|
279
|
+
return T(z,{style:Ra.header,children:[/* @__PURE__ */W(S,{style:[Ra.title,{fontSize:i?24:20,color:se(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t})]})}function La({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,renderTeamLogo:g,filterSport:f}=wi();/* @__PURE__ */
|
|
280
|
+
return T(z,{style:Ra.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Aa,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:Ra.content,children:/* @__PURE__ */W(Bl,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,onSelectEntry:e,theme:r,renderTeamLogo:g,filterSport:f})})]})}var Ra=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function Ma({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=wi(),i=o.colors,l=Ge(o),{width:a}=v(),c=a>=640;/* @__PURE__ */
|
|
281
|
+
return T(z,{style:c&&Ha.headerWide,children:[/* @__PURE__ */W(S,{style:[Ha.sectionTitle,c&&Ha.sectionTitleWide,{color:i.primary,fontFamily:l}],children:ln(r)}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Da({onCancel:e}){const{theme:t,screenSize:n}=wi(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Ha.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Ha.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Ha.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Pa({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:i,renderSportTagline:l,backLabel:a,comingSoonSports:c}){const{theme:s,propositionsForSportPicker:d,sportSummaries:h,loading:u,setSelectedSport:g,clearSelectedGame:f,selectedCategory:p,sportBaseKey:y,displaySportName:m}=wi(),b=s.colors,w=be(s),x=Ge(s),k=Ne(s),C=se(s),{width:F}=v(),A=F>=640,L=A?48:40,[R,M]=e.useState(null),D=$t(d),P=Object.keys(D);return u?/* @__PURE__ */W(z,{style:Ha.container,children:/* @__PURE__ */W(Qn,{colors:ke(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:Ha.container,children:[!o&&/* @__PURE__ */W(z,{style:Ha.titleWrap,children:/* @__PURE__ */W(Ma,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:Ha.content,children:/* @__PURE__ */T(z,{style:Ha.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??D[e].length,r=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,p));var a,c;const s=m(e),d=R===e,u=n?n.games_today>0:o>0;/* @__PURE__ */
|
|
282
|
+
return T(B,{onPress:()=>{g(e),f(),t?.(e)},...it(()=>M(e),()=>M(t=>t===e?null:t)),style:[Ha.gridCard,A&&Ha.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},Ha.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Kl,{gameKey:e,size:L,footer:null,sportBaseKey:y,title:`${s} button`}),
|
|
283
|
+
/* @__PURE__ */T(z,{style:Ha.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Ha.gridName,A&&Ha.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */T(z,{style:Ha.gridTaglineRow,children:[u?/* @__PURE__ */W(z,{style:[Ha.liveDot,{backgroundColor:b.success}]}):null,/* @__PURE__ */W(S,{numberOfLines:1,style:[Ha.gridMeta,{color:b.primary,fontFamily:k}],children:r})]})]}),
|
|
284
|
+
/* @__PURE__ */W(z,{style:Ha.gridChevron,children:/* @__PURE__ */W(Bt,{size:20,color:b.textMuted})})]},e)}),c?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??Ut(e.key,y));/* @__PURE__ */
|
|
285
|
+
return T(z,{style:[Ha.gridCard,A&&Ha.gridCardWide,{backgroundColor:ne(b.backgroundAlt,.4),borderColor:ne(b.border,.7)}],children:[
|
|
286
|
+
/* @__PURE__ */W(z,{style:Ha.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Kl,{gameKey:e.key,short:e.short,size:L,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
|
|
287
|
+
/* @__PURE__ */T(z,{style:Ha.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Ha.gridName,A&&Ha.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[Ha.gridMeta,Ha.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
|
|
288
|
+
/* @__PURE__ */T(z,{style:[Ha.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(zt,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[Ha.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var Ha=k.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap:12},gridCard:{flexBasis:"100%",flexGrow:1,minWidth:0,flexDirection:"row",alignItems:"center",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:12,paddingVertical:12},gridCardWide:{flexBasis:"48%",gap:14,paddingHorizontal:16,paddingVertical:16},gridCardRaised:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:2},gridText:{flexDirection:"column",alignItems:"flex-start",minWidth:0,flexShrink:1,flexGrow:1},gridName:{fontSize:14,fontWeight:"800",letterSpacing:-.35,lineHeight:18,maxWidth:"100%"},gridNameWide:{fontSize:16,lineHeight:20},gridTaglineRow:{marginTop:4,flexDirection:"row",alignItems:"center",gap:6,minWidth:0},gridMeta:{fontSize:9.3,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.1,flexShrink:1},gridMetaSpaced:{marginTop:4},liveDot:{width:6,height:6,borderRadius:3},gridChevron:{marginLeft:"auto"},comingSoonLogo:{opacity:.6},soonPill:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:4,borderRadius:999,paddingHorizontal:8,paddingVertical:4},soonPillText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Oa(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 Ia({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
|
|
290
289
|
return T(A,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[
|
|
291
|
-
/* @__PURE__ */W(
|
|
290
|
+
/* @__PURE__ */W(D,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
|
|
292
291
|
/* @__PURE__ */W(H,{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",opacity:.9}),
|
|
293
292
|
/* @__PURE__ */W(H,{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
294
|
-
/* @__PURE__ */W(
|
|
293
|
+
/* @__PURE__ */W(M,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(L,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function Ea({ink:e,ball:t,size:n}){/* @__PURE__ */
|
|
295
294
|
return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
|
|
296
|
-
/* @__PURE__ */W(
|
|
297
|
-
/* @__PURE__ */W(
|
|
298
|
-
/* @__PURE__ */W(
|
|
299
|
-
/* @__PURE__ */W(
|
|
300
|
-
/* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function
|
|
295
|
+
/* @__PURE__ */W(L,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
|
|
296
|
+
/* @__PURE__ */W(L,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
|
|
297
|
+
/* @__PURE__ */W(L,{cx:"50",cy:"50",r:"8",fill:t}),
|
|
298
|
+
/* @__PURE__ */W(D,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
|
|
299
|
+
/* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function ja({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
|
|
301
300
|
return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
|
|
302
|
-
/* @__PURE__ */W(
|
|
301
|
+
/* @__PURE__ */W(D,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>/* @__PURE__ */W(I,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),
|
|
303
302
|
/* @__PURE__ */W(H,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
|
|
304
|
-
/* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function
|
|
305
|
-
return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:
|
|
306
|
-
return T(z,{style:
|
|
303
|
+
/* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Na({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(Ia,{...n,balls:t}):/* @__PURE__ */W("pick"===e?ja:Ea,{...n})}function Ga({kind:e,size:t=56,balls:n}){const{theme:o}=wi(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=fe(o);/* @__PURE__ */
|
|
304
|
+
return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:Oa(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(Na,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function Ya({option:e,renderDividends:t}){const{theme:n}=wi(),o=n.colors,r=Ge(n),i=o.primary,l=fe(n),a=e.dividends??[];return t?/* @__PURE__ */W(F,{children:t(e)}):/* @__PURE__ */T(z,{style:Qa.dividends,children:[/* @__PURE__ */T(z,{style:Qa.dividendRow,children:[/* @__PURE__ */W(S,{style:[Qa.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Qa.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
|
|
305
|
+
return T(z,{style:Qa.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Qa.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Qa.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Qa.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Qa.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Qa.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Qa.dividendMult,{color:i,fontFamily:r}],children:Qt(t.payout20)})]},t.misses)})]})}function Va({option:e,renderDividends:t}){const{theme:o}=wi(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,g]=c(!1),f=a(null),p=a(null),[y,b]=c(null),[w,x]=c(!1),[k,C]=c(null),v="web"===m.OS,A=40+36*Math.max(s.length,1)+12,L=n(()=>{const e=f.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<A&&o>n;b({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[A]);i(()=>{if(!h||!v)return void b(null);L();const e=()=>g(!1),t=()=>L();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,v,L]),r(()=>{if(!h)return;if(v){const e=e=>{const t=f.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=f.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);x(r<A&&t>r),C({x:e,y:t,width:n,height:o})})},[h,v,A]);const R=t?/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:l.border},children:/* @__PURE__ */T(S,{style:{fontSize:10,fontWeight:"700",color:l.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),s.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:l.border,gap:12},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.text,fontSize:13,flex:1},children:e.label}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:e.payout20>0?l.heading??l.text:l.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?Qt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
|
|
307
306
|
return T(z,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[d>0?/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:l.text},children:["Win up to ",
|
|
308
|
-
/* @__PURE__ */W(S,{style:{color:l.heading??l.text},children
|
|
309
|
-
/* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:f,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>g(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */W(S,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */W(
|
|
310
|
-
return T(z,{...
|
|
311
|
-
/* @__PURE__ */W(
|
|
312
|
-
/* @__PURE__ */T(z,{style:
|
|
313
|
-
/* @__PURE__ */W(S,{style:[
|
|
314
|
-
/* @__PURE__ */W(z,{style:
|
|
315
|
-
/* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f?/* @__PURE__ */W(z,{style:[
|
|
316
|
-
return W(z,{...
|
|
317
|
-
/* @__PURE__ */W(
|
|
318
|
-
/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:
|
|
319
|
-
/* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:g?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function
|
|
320
|
-
return T(z,{style:[
|
|
321
|
-
return T(z,{style:[
|
|
322
|
-
/* @__PURE__ */T(z,{style:
|
|
323
|
-
/* @__PURE__ */W(
|
|
324
|
-
/* @__PURE__ */W(
|
|
325
|
-
return T(z,{style:[
|
|
326
|
-
return T(z,{style:[
|
|
327
|
-
/* @__PURE__ */W(
|
|
328
|
-
/* @__PURE__ */W(
|
|
329
|
-
/* @__PURE__ */T(z,{style:[
|
|
330
|
-
/* @__PURE__ */W(z,{style:
|
|
331
|
-
return W(B,{onPress:()=>
|
|
332
|
-
/* @__PURE__ */T(z,{style:
|
|
333
|
-
/* @__PURE__ */T(z,{style:
|
|
334
|
-
/* @__PURE__ */T(z,{style:[
|
|
335
|
-
/* @__PURE__ */W(z,{style:
|
|
336
|
-
return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[
|
|
337
|
-
/* @__PURE__ */T(z,{style:[
|
|
338
|
-
/* @__PURE__ */T(z,{style:
|
|
339
|
-
/* @__PURE__ */T(z,{style:
|
|
340
|
-
/* @__PURE__ */T(S,{style:[
|
|
341
|
-
/* @__PURE__ */W(S,{style:[
|
|
342
|
-
/* @__PURE__ */T(z,{style:[
|
|
343
|
-
return T(z,{style:
|
|
344
|
-
return T(z,{style:
|
|
345
|
-
/* @__PURE__ */W(
|
|
346
|
-
/* @__PURE__ */W(
|
|
347
|
-
/* @__PURE__ */T(z,{style:[
|
|
348
|
-
/* @__PURE__ */W(
|
|
349
|
-
return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...
|
|
350
|
-
/* @__PURE__ */W(S,{style:[
|
|
351
|
-
/* @__PURE__ */T(z,{style:[
|
|
352
|
-
/* @__PURE__ */T(z,{style:
|
|
353
|
-
/* @__PURE__ */W(z,{style:
|
|
354
|
-
return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...
|
|
355
|
-
/* @__PURE__ */W(S,{style:[
|
|
356
|
-
/* @__PURE__ */T(z,{style:[
|
|
357
|
-
return T(z,{style:
|
|
358
|
-
return T(z,{style:[
|
|
359
|
-
/* @__PURE__ */W(
|
|
360
|
-
/* @__PURE__ */W(
|
|
361
|
-
/* @__PURE__ */T(z,{style:[
|
|
362
|
-
/* @__PURE__ */W(z,{style:
|
|
363
|
-
return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[
|
|
364
|
-
/* @__PURE__ */W(S,{style:[
|
|
365
|
-
/* @__PURE__ */T(z,{style:
|
|
366
|
-
return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...
|
|
367
|
-
/* @__PURE__ */T(S,{style:[
|
|
368
|
-
/* @__PURE__ */W(S,{style:[
|
|
369
|
-
/* @__PURE__ */T(S,{style:[
|
|
370
|
-
/* @__PURE__ */T(z,{style:[
|
|
371
|
-
/* @__PURE__ */T(S,{style:[
|
|
372
|
-
/* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children
|
|
373
|
-
/* @__PURE__ */T(z,{style:
|
|
374
|
-
/* @__PURE__ */W(z,{style:
|
|
375
|
-
return T(z,{style:
|
|
376
|
-
/* @__PURE__ */T(S,{style:[
|
|
377
|
-
/* @__PURE__ */T(z,{style:[
|
|
378
|
-
return W(z,{style:
|
|
379
|
-
return W(z,{style:[
|
|
380
|
-
return
|
|
381
|
-
return
|
|
382
|
-
return T(z,{style:
|
|
383
|
-
/* @__PURE__ */W(
|
|
384
|
-
/* @__PURE__ */W(
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
/* @__PURE__ */W(
|
|
387
|
-
|
|
388
|
-
/* @__PURE__ */W(
|
|
389
|
-
/* @__PURE__ */W(
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
-
/* @__PURE__ */
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */T(z,{style:[
|
|
397
|
-
/* @__PURE__ */W(z,{style:
|
|
398
|
-
return W(B,{onPress:()=>H(e),style:[
|
|
399
|
-
/* @__PURE__ */T(z,{style:[
|
|
400
|
-
/* @__PURE__ */T(z,{style:
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
-
/* @__PURE__ */W(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
/* @__PURE__ */W(
|
|
407
|
-
/* @__PURE__ */W(
|
|
408
|
-
/* @__PURE__ */T(z,{style:[
|
|
409
|
-
/* @__PURE__ */W(
|
|
410
|
-
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */W(
|
|
413
|
-
/* @__PURE__ */T(z,{style:
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */T(z,{style:
|
|
419
|
-
/* @__PURE__ */T(z,{style:
|
|
420
|
-
/* @__PURE__ */W(S,{style:[
|
|
421
|
-
/* @__PURE__ */T(S,{style:[
|
|
422
|
-
/* @__PURE__ */T(z,{style:[
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
/* @__PURE__ */W(
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */T(z,{style:[
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
-
/* @__PURE__ */W(
|
|
432
|
-
/* @__PURE__ */T(z,{style:
|
|
433
|
-
|
|
434
|
-
/* @__PURE__ */T(z,{style:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */W(
|
|
439
|
-
/* @__PURE__ */T(z,{style:[
|
|
307
|
+
/* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:Qt(d)}),
|
|
308
|
+
/* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:f,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>g(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */W(S,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */W(On,{visible:h&&!v,anchor:k,onClose:()=>g(!1),flipUp:w,align:"left",children:/* @__PURE__ */W(z,{style:{elevation:8,backgroundColor:l.background,borderRadius:8,borderWidth:1,borderColor:l.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:R})})]})]}),h&&v&&y&&"undefined"!=typeof document?G(/* @__PURE__ */W("div",{ref:p,style:{position:"fixed",left:y.left,top:y.top,transform:y.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:R}),document.body):null]})}function Ua({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=wi(),i=r.colors,l=Ge(r),a=se(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=v(),u=h>=640,g="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,f=!!o||(t.dividends?.length??0)>0,p=f&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
|
|
309
|
+
return T(z,{...it(()=>m(!0),()=>m(!1)),style:[Qa.card,u&&Qa.cardWide,{backgroundColor:d,borderColor:y?s:i.border,shadowColor:y?s:"#000",shadowOpacity:y?.28:.08,shadowRadius:y?14:8,shadowOffset:{width:0,height:y?12:8},elevation:y?4:1,transform:[{translateY:y?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:Qa.cardMain,children:[
|
|
310
|
+
/* @__PURE__ */W(Ga,{kind:e,balls:g,size:60}),
|
|
311
|
+
/* @__PURE__ */T(z,{style:Qa.cardText,children:[
|
|
312
|
+
/* @__PURE__ */W(S,{style:[Qa.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Qa.statChip,{backgroundColor:Oa(s,.12)}],children:/* @__PURE__ */W(S,{style:[Qa.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
|
|
313
|
+
/* @__PURE__ */W(z,{style:Qa.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Qa.detailLine,{color:i.textMuted}],children:e},e))})]}),
|
|
314
|
+
/* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f?/* @__PURE__ */W(z,{style:[Qa.dividendsWrap,{borderTopColor:Oa(a,.08)}],children:/* @__PURE__ */W(p?Ya:Va,{option:t,renderDividends:o})}):null]})}function qa({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=wi(),i=r.colors,l=se(r),a=fe(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=v(),u=h>=640,[g,f]=c(!1);/* @__PURE__ */
|
|
315
|
+
return W(z,{...it(()=>f(!0),()=>f(!1)),style:[Qa.card,u&&Qa.cardWide,{backgroundColor:d,borderColor:g?s:i.border,shadowColor:g?s:"#000",shadowOpacity:g?.28:.08,shadowRadius:g?14:8,shadowOffset:{width:0,height:g?12:8},elevation:g?4:1,transform:[{translateY:g?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Qa.cardMain,children:[
|
|
316
|
+
/* @__PURE__ */W(Ga,{kind:e,size:60}),
|
|
317
|
+
/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Qa.bulletRow,children:[/* @__PURE__ */W(z,{style:[Qa.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Qa.bulletText,{color:l}],children:e})]},e))}),
|
|
318
|
+
/* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:g?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function Ka({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=wi(),i=Ge(n),l=n.colors,a=Ko(o,r),{width:c}=v(),s=c<640;/* @__PURE__ */
|
|
319
|
+
return T(z,{style:[Qa.header,s&&Qa.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Qa.sectionTitle,s&&Qa.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function Za({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=wi(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:Qa.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Qa.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Qa.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function Xa({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:a,selectedGame:c,selectedPropositionCount:s,setExpectedCorrect:d,handlePropositionCountChange:h,bodyFont:u,screenSize:g}=wi(),f=a.colors,p=Ge(a),y="mobile"===g,{width:m}=v(),b=m>=640,w=l(()=>o??Ko(c,s),[o,c,s]),x=w?.options??[],k=t=>{null!=t?.expectedCorrect&&d(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!w)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:f.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,F=w.continueLabel??"Continue";/* @__PURE__ */
|
|
320
|
+
return T(z,{style:[Qa.container,{backgroundColor:f.background}],children:[t?/* @__PURE__ */W(z,{style:Qa.backRow,children:/* @__PURE__ */W(Al,{onBack:t,label:i})}):null,/* @__PURE__ */T(ht,{style:Qa.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Qa.sectionTitle,Qa.sectionTitleInBody,{color:f.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
|
|
321
|
+
/* @__PURE__ */T(z,{style:Qa.headerBlock,children:[
|
|
322
|
+
/* @__PURE__ */W(kl,{iconUrl:Ze(c),gameName:c.game_name,height:y?24:32,chipColor:f.primary,textColor:f.text,iconColor:f.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Qa.pickSubtitle,{color:f.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Qa.tagline,{color:f.textMuted}],children:w.heroTagline??B}):null]}),
|
|
323
|
+
/* @__PURE__ */W(da,{}),x.length>0?/* @__PURE__ */W(z,{style:[Qa.cardList,b&&x.length>1&&Qa.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Qa.cardCell:void 0,children:/* @__PURE__ */W(Ua,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(qa,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:F}):null]})]})}var Qa=k.create({container:{flex:1},backRow:{paddingHorizontal:16,marginBottom:4},inner:{flex:1,paddingHorizontal:16,maxWidth:768,width:"100%",alignSelf:"center"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:12},headerBlock:{alignItems:"center",marginBottom:24},pickSubtitle:{fontSize:13,marginTop:8},tagline:{fontSize:14,lineHeight:20,textAlign:"center",maxWidth:384,marginTop:12},cardList:{gap:12},cardGrid:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"},card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardText:{flex:1,minWidth:0,gap:5},cardTitle:{fontSize:19,fontWeight:"800",letterSpacing:-.3},statChip:{alignSelf:"flex-start",borderRadius:999,paddingHorizontal:8,paddingVertical:3},statChipText:{fontSize:9,fontWeight:"700",letterSpacing:.6},detailBlock:{minHeight:60,gap:2,justifyContent:"flex-start"},detailLine:{fontSize:13,lineHeight:18},dividendsWrap:{marginTop:12,paddingTop:12,borderTopWidth:1},dividends:{gap:5},dividendsCaption:{fontSize:9,fontWeight:"600",letterSpacing:1},dividendRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",gap:12},dividendTierRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},dividendLabelCol:{flexShrink:1,minWidth:0,gap:3},dividendLabel:{fontSize:13},tierLegs:{flexDirection:"row",alignItems:"center",gap:3},tierLegDot:{width:5,height:5,borderRadius:1.5,opacity:.85},tierLegBall:{width:7,height:7,borderRadius:999,marginLeft:2},dividendMult:{fontSize:15,fontWeight:"800",fontVariant:["tabular-nums"]},radio:{width:24,height:24,borderRadius:12,borderWidth:2,alignItems:"center",justifyContent:"center"},bulletRow:{flexDirection:"row",alignItems:"flex-start",gap:12},dot:{width:6,height:6,borderRadius:3,marginTop:7},bulletText:{flex:1,fontSize:15,lineHeight:21},footer:{flexDirection:"row",justifyContent:"flex-end",paddingTop:16,paddingHorizontal:16},smallBtn:{paddingHorizontal:20,paddingVertical:11,borderRadius:10},smallBtnText:{fontSize:14,fontWeight:"700"}});function Ja({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
|
|
324
|
+
return T(z,{style:[_a.header,a&&_a.headerCompact],children:[/* @__PURE__ */W(S,{style:[_a.sectionTitle,a&&_a.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function $a({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=wi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=v(),F=k>=640,[A,L]=c(!1),R=l(()=>r??_o(s),[r,s]),[M,D]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,H]=c(()=>R?.defaultStake??20);if(!s||!Jo(s)||!R)/* @__PURE__ */return W(z,{style:[_a.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=$o(P,M,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),I=Or(O.prize,s),E=P>=R.minStake,j=(e,t)=>/* @__PURE__ */T(z,{style:_a.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[_a.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[_a.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
|
|
325
|
+
return T(z,{style:[_a.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:_a.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:_a.inner,children:[
|
|
326
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"The fastest multi",iconUrl:Ze(s),gameName:s.game_name,tagline:R.tagline}),
|
|
327
|
+
/* @__PURE__ */W(da,{}),
|
|
328
|
+
/* @__PURE__ */T(z,{style:[_a.ticket,F&&_a.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[j("Legs",`${M} legs`),
|
|
329
|
+
/* @__PURE__ */W(z,{style:_a.chipRow,children:R.legOptions.map(e=>{const t=e===M;/* @__PURE__ */
|
|
330
|
+
return W(B,{onPress:()=>D(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[_a.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[_a.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
|
|
331
|
+
/* @__PURE__ */T(z,{style:_a.hintRow,children:[/* @__PURE__ */W(S,{style:[_a.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[_a.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
|
|
332
|
+
/* @__PURE__ */T(z,{style:_a.stakeBlock,children:[j("Stake",Qt(P)),
|
|
333
|
+
/* @__PURE__ */T(z,{style:[_a.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[_a.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>L(!0),onBlur:()=>L(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==R.maxStake?Math.min(t,R.maxStake):t})(t))},style:[_a.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
|
|
334
|
+
/* @__PURE__ */W(z,{style:_a.chipRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
|
|
335
|
+
return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[_a.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[_a.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!E&&P>0?/* @__PURE__ */T(S,{style:[_a.errorText,{color:y.error}],children:["Minimum stake is ",Qt(R.minStake),"."]}):null]}),
|
|
336
|
+
/* @__PURE__ */T(z,{style:[_a.dividendBlock,{borderTopColor:ea(w,.08)}],children:[
|
|
337
|
+
/* @__PURE__ */T(z,{style:_a.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[_a.dividendCaption,{color:y.textMuted}],children:["If all ",M," land"]}),/* @__PURE__ */T(S,{style:[_a.dividendCaption,{color:y.textMuted}],children:[Qt(P)," returns"]})]}),
|
|
338
|
+
/* @__PURE__ */T(z,{style:_a.dividendMainRow,children:[/* @__PURE__ */T(z,{style:_a.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[_a.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(aa,{legs:M})]}),/* @__PURE__ */W(S,{style:[_a.prize,F&&_a.prizeWide,{color:y.primary,fontFamily:b}],children:Qt(I)})]}),
|
|
339
|
+
/* @__PURE__ */T(S,{style:[_a.multipleLine,{color:y.textMuted}],children:[(N=O.multiple,`×${(Math.round(10*N)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
|
|
340
|
+
/* @__PURE__ */W(S,{style:[_a.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
|
|
341
|
+
/* @__PURE__ */T(z,{style:[_a.modeCards,F&&_a.modeCardsWide],children:[/* @__PURE__ */W(z,{style:F?_a.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{E&&(h(M),u(M),g(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:F?_a.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{E&&(u(M),g(P),f(s,M,P),e?.())}})})]})]})]});var N}var _a=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},chip:{flexGrow:1,minWidth:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},stakeChip:{flexGrow:1,minWidth:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginTop:8},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},dividendBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},dividendCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},dividendCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},dividendMainRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,marginTop:6},dividendMainLeft:{flex:1,minWidth:0,gap:3},perfectTicket:{fontSize:13},prize:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},prizeWide:{fontSize:24},multipleLine:{fontSize:11,marginTop:6,fontVariant:["tabular-nums"]},allOrNothing:{fontSize:11,fontStyle:"italic",marginTop:4},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function ec({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
342
|
+
return T(z,{style:nc.titleWrap,children:[/* @__PURE__ */W(S,{style:[nc.eyebrow,nc.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function tc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=wi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=v(),C=k>=640,[F,A]=c(null),[L,R]=c(null),M=l(()=>r??lr(s),[r,s]),[D,P]=c(()=>M?.defaultDividend??1e4),[H,O]=c(()=>{const e=M?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=d&&e.includes(d)?d:M?.defaultLegs??9});if(!s||!nr(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No dividend series available."})});const I=M.dividends.find(e=>e.dividend===D)??M.dividends[0],E=I.rungs.find(e=>e.legs===H)??I.rungs[0],j=Math.max(...I.rungs.map(e=>e.legs)),N=Math.min(...I.rungs.map(e=>e.legs));/* @__PURE__ */
|
|
343
|
+
return T(z,{style:nc.container,children:[n?/* @__PURE__ */W(z,{style:nc.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:nc.inner,children:[
|
|
344
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"Pick your dividend",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
|
|
345
|
+
/* @__PURE__ */W(da,{}),
|
|
346
|
+
/* @__PURE__ */T(z,{style:[nc.ticket,C&&nc.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=Qt(I.dividend),/* @__PURE__ */T(z,{style:nc.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[nc.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[nc.sectionValueText,{color:w}],children:G}):null]})),
|
|
347
|
+
/* @__PURE__ */W(ra,{ariaLabel:"Set dividend",children:M.dividends.map(e=>{const t=e.dividend===D,n=F===e.dividend;/* @__PURE__ */
|
|
348
|
+
return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>A(e.dividend),()=>A(null)),style:[nc.dividendTile,ia(C),{backgroundColor:t?ea(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[nc.dividendValue,C&&nc.dividendValueWide,{color:w,fontFamily:b}],children:Qt(e.dividend)}),/* @__PURE__ */T(S,{style:[nc.dividendFrom,{color:y.textMuted}],children:["from ",Qt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
|
|
349
|
+
/* @__PURE__ */W(S,{style:[nc.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
|
|
350
|
+
/* @__PURE__ */T(z,{style:[nc.ladderDivider,{borderTopColor:ea(w,.08)}],children:[
|
|
351
|
+
/* @__PURE__ */T(z,{style:nc.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[nc.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[nc.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
|
|
352
|
+
/* @__PURE__ */W(z,{style:nc.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=L===e.legs;/* @__PURE__ */
|
|
353
|
+
return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>R(e.legs),()=>R(null)),style:[nc.rungRow,{backgroundColor:t?ea(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:nc.rungLeft,children:[/* @__PURE__ */T(S,{style:[nc.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(aa,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[nc.rungStake,C&&nc.rungStakeWide,{color:y.primary,fontFamily:b}],children:Qt(e.stake)})]},e.legs)})}),
|
|
354
|
+
/* @__PURE__ */W(S,{style:[nc.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
|
|
355
|
+
/* @__PURE__ */T(z,{style:[nc.cardList,C&&nc.cardListWide],children:[/* @__PURE__ */W(z,{style:C?nc.cardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${Qt(E.stake)} chasing the ${Qt(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),g(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?nc.cardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${Qt(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),g(E.stake),f(s,E.legs,E.stake),e?.()}})})]})]})]});var G}var nc=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},eyebrowLeft:{textAlign:"left"},eyebrowSectionWide:{marginBottom:20},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},sectionLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},sectionLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},sectionValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},dividendGrid:{flexDirection:"row",flexWrap:"wrap",gap:6},dividendTile:{borderWidth:1,borderRadius:12,paddingHorizontal:6,paddingVertical:10,alignItems:"center"},dividendValue:{fontSize:16,fontWeight:"800",letterSpacing:-.32,fontVariant:["tabular-nums"]},dividendValueWide:{fontSize:20,letterSpacing:-.4},dividendFrom:{fontSize:10,marginTop:4},ticketNote:{fontSize:11,fontStyle:"italic",marginTop:8},ladderDivider:{marginTop:16,paddingTop:12,borderTopWidth:1},ladderHeaderRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},ladderHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},rungList:{marginTop:6,gap:6},rungRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderWidth:1,borderRadius:12,paddingHorizontal:12,paddingVertical:6},rungLeft:{flexShrink:1,minWidth:0,gap:3},rungLegs:{fontSize:13},rungStake:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungStakeWide:{fontSize:16},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function oc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
356
|
+
return T(z,{style:ic.titleWrap,children:[/* @__PURE__ */W(S,{style:[ic.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function rc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p,screenSize:y,bodyFont:m}=wi(),b=a.colors,w="mobile"===y,x=Ge(a),k=se(a),C=fe(a),F=be(a),{width:A}=v(),L=A>=640,[R,M]=c(null),D=l(()=>r??pr(s),[r,s]),[P,H]=c(()=>D?null!=d&&D.ladders.some(e=>e.legs===d)?d:D.defaultLegs:8),[O,I]=c(()=>D?.defaultStake??50),[E,j]=c(!1);if(!s||!dr(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:m},children:"No ladders available."})});const N=D.ladders.find(e=>e.legs===P)??D.ladders[0],G=ur(N,O),Y=gr(N,O),V=[...G].reverse(),U=w&&V.length>4,q=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:ic.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[ic.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[ic.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
|
|
357
|
+
return T(z,{style:[ic.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:ic.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:ic.inner,children:[
|
|
358
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
|
|
359
|
+
/* @__PURE__ */W(da,{}),
|
|
360
|
+
/* @__PURE__ */T(z,{style:[ic.builder,L&&ic.builderWide,{backgroundColor:F,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",Qt(O)),
|
|
361
|
+
/* @__PURE__ */W(z,{style:ic.betRow,children:D.stakes.map(e=>{const t=e===O;/* @__PURE__ */
|
|
362
|
+
return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[ic.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[ic.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
|
|
363
|
+
/* @__PURE__ */W(S,{style:[ic.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
|
|
364
|
+
/* @__PURE__ */T(z,{style:ic.laddersBlock,children:[K(`${D.ladders.length} ladders to choose from`),/* @__PURE__ */W(ra,{ariaLabel:"Ladder",children:D.ladders.map(e=>{const t=e.legs===P,n=R===e.legs;/* @__PURE__ */
|
|
365
|
+
return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>M(e.legs),()=>M(null)),style:[ic.ladderTile,ia(L,"17%"),{backgroundColor:t?ea(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
|
|
366
|
+
/* @__PURE__ */T(S,{style:[ic.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
|
|
367
|
+
/* @__PURE__ */W(S,{style:[ic.ladderTilePrize,{color:k,fontFamily:x}],children:Qt(gr(e,O))}),
|
|
368
|
+
/* @__PURE__ */T(S,{style:[ic.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
|
|
369
|
+
/* @__PURE__ */T(z,{style:[ic.stackTable,{borderTopColor:ea(k,.08)}],children:[
|
|
370
|
+
/* @__PURE__ */T(S,{style:[ic.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
|
|
371
|
+
/* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:Qt(Y)})," Full Stack Prize."]}),
|
|
372
|
+
/* @__PURE__ */T(z,{style:ic.rungHeader,children:[/* @__PURE__ */W(S,{style:[ic.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:ic.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[ic.rungHeaderCaption,ic.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[ic.rungHeaderCaption,ic.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
|
|
373
|
+
/* @__PURE__ */W(z,{style:ic.rungList,children:q.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
|
|
374
|
+
return T(z,{style:ic.rungRow,children:[/* @__PURE__ */T(z,{style:ic.rungLeft,children:[/* @__PURE__ */T(z,{style:ic.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[ic.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&L?/* @__PURE__ */W(z,{style:[ic.fullStackChip,{backgroundColor:ea(C,.35)}],children:/* @__PURE__ */W(S,{style:[ic.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(aa,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:ic.rungRight,children:[/* @__PURE__ */W(S,{style:[ic.rungPrize,ic.rungColPrice,{color:b.textMuted}],children:Qt(e.prize)}),/* @__PURE__ */W(S,{style:[ic.rungCumulative,ic.rungColTotal,L&&ic.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:Qt(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[ic.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[ic.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
|
|
375
|
+
/* @__PURE__ */T(S,{style:[ic.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
|
|
376
|
+
/* @__PURE__ */T(z,{style:[ic.modeCards,L&&ic.modeCardsWide],children:[/* @__PURE__ */W(z,{style:L?ic.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${N.legs} outcomes`,`Win from ${N.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(N.legs),u(N.legs),g(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:L?ic.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${Qt(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),g(O),f(s,N.legs,O),e?.()}})})]})]})]})}var ic=k.create({container:{flex:1},inner:{flex:1,paddingHorizontal:16,width:"100%"},backRow:{paddingHorizontal:16},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},pageTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,textAlign:"center",marginBottom:16},header:{alignItems:"center",marginBottom:24},headerWide:{marginBottom:28},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},builder:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},builderWide:{paddingHorizontal:20,paddingVertical:20},sectionLabelRow:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},sectionLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},sectionLabelValue:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},betRow:{flexDirection:"row",flexWrap:"wrap",gap:6},betChip:{flexGrow:1,flexBasis:52,minWidth:52,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},betChipText:{fontSize:14,fontWeight:"700"},betNote:{marginTop:8,fontSize:11,fontStyle:"italic"},laddersBlock:{marginTop:16},ladderGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},ladderTile:{flexGrow:1,borderWidth:1,borderRadius:12,paddingHorizontal:8,paddingVertical:12,alignItems:"center",justifyContent:"center"},ladderTileLabel:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},ladderTilePrize:{marginTop:4,fontSize:18,fontWeight:"800",letterSpacing:-.36,fontVariant:["tabular-nums"]},ladderTileNote:{marginTop:4,fontSize:10},stackTable:{marginTop:16,borderTopWidth:1,paddingTop:12},stackIntro:{marginBottom:8,fontSize:12,lineHeight:18},rungHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},rungHeaderRight:{flexDirection:"row",gap:10},rungColPrice:{width:64,textAlign:"right"},rungColPrize:{width:64,textAlign:"right"},rungColTotal:{width:84,textAlign:"right"},rungHeaderCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},rungList:{marginTop:6,gap:6},rungRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},rungLeft:{flex:1,minWidth:0,gap:3},rungLabelRow:{flexDirection:"row",alignItems:"center",gap:8,flexWrap:"wrap"},rungLabel:{fontSize:13},fullStackChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},fullStackChipText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},rungRight:{flexDirection:"row",alignItems:"baseline",gap:10,flexShrink:0},rungPrize:{fontSize:11,fontVariant:["tabular-nums"]},rungCumulative:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungCumulativeWide:{fontSize:16},tierToggle:{marginTop:8,borderWidth:1,borderRadius:8,paddingVertical:8,alignItems:"center"},tierToggleText:{fontSize:11,fontWeight:"700"},stackNote:{marginTop:8,fontSize:11,fontStyle:"italic"},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function lc({depth:e,theme:t}){const n=t.colors,o=fe(t);/* @__PURE__ */
|
|
377
|
+
return W(z,{style:dc.variantEdgeBar,children:Array.from({length:9}).map((t,r)=>{const i=Math.min(r,8-r)<e;/* @__PURE__ */
|
|
378
|
+
return W(z,{style:[dc.variantEdgeSlot,i?{backgroundColor:r<4.5?n.primary:o}:{borderWidth:1,borderColor:n.border}]},r)})})}function ac({legs:e,correct:t}){const{theme:n}=wi(),o=n.colors.primary;/* @__PURE__ */
|
|
379
|
+
return W(z,{style:{flexDirection:"row",alignItems:"center"},children:Array.from({length:e}).map((e,n)=>{const r=n<t;/* @__PURE__ */
|
|
380
|
+
return W(S,{style:{width:14,marginRight:2,fontSize:14,lineHeight:16,fontWeight:"700",textAlign:"center",color:r?o:ea(o,.45)},children:r?"✓":"✕"},n)})})}function cc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
381
|
+
return T(z,{style:dc.header,children:[/* @__PURE__ */W(S,{style:[dc.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function sc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p,games:y,selectGame:m}=wi(),b=a.colors,w=Ne(a),x=Ge(a),k=se(a),F=be(a),{width:A}=v(),L=A>=640,[R,M]=c(!1),D=l(()=>r??Bo(s),[r,s]),[P,H]=c(()=>D?null!=d&&D.legOptions.includes(d)?d:D.defaultLegs:8),[O,I]=c(()=>D?.defaultStake??20),[E,j]=c(!1);if(!s||!ko(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:w},children:"No mirror available."})});const N=D.variant,G=D.legOptions,Y=G.includes(P)?P:G[0],V=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})))}(Wo(N.id,O,Y,{operatorMargin:D.operatorMargin})),U=function(e,t){if(!t)return[];const n=ho(t);return n<co.premier?[]:zo.flatMap(t=>{const o=e.find(e=>ko(e)&&wo(e.rule)===xo[t.id]&&ho(e)===n);return o?[{variant:t,game:o}]:[]})}(y,s),q=Y-(N.depth-1);if(U.length>1&&!E)/* @__PURE__ */return T(z,{style:dc.container,children:[n?/* @__PURE__ */W(z,{style:dc.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:dc.inner,children:[
|
|
382
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"All right, or all wrong",iconUrl:Ze(s),gameName:"Mirror",tagline:"Land near an edge. How wide the edge is, is the mirror you pick."}),
|
|
383
|
+
/* @__PURE__ */W(da,{}),
|
|
384
|
+
/* @__PURE__ */W(z,{style:[dc.modeCards,L&&dc.modeCardsWide],children:U.map(({variant:e,game:t})=>{const n=Bo(t)?.legOptions??[];/* @__PURE__ */
|
|
385
|
+
return W(z,{style:L?dc.modeCardCell:void 0,children:/* @__PURE__ */T(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(t),size:60}),label:e.name,stat:e.waysToWin,detail:[e.description,...n.length>0?[`${n[0]}–${n[n.length-1]} legs`]:[]],onSelect:()=>{m(t),j(!0)},children:[/* @__PURE__ */W(lc,{depth:e.depth,theme:a}),/* @__PURE__ */T(z,{style:dc.variantEdgeLabels,children:[/* @__PURE__ */W(S,{style:[dc.variantEdgeText,{color:b.textMuted}],children:"All wrong"}),/* @__PURE__ */W(S,{style:[dc.variantEdgeText,{color:b.textMuted}],children:"All right"})]})]})},t.id)})})]})]});const K=O>=D.minStake,Z=(e,t)=>/* @__PURE__ */T(z,{style:dc.controlLabel,children:[/* @__PURE__ */W(S,{style:[dc.controlLabelText,{color:b.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[dc.controlValueText,{color:k}],children:t})]});/* @__PURE__ */
|
|
386
|
+
return T(z,{style:dc.container,children:[U.length>1?/* @__PURE__ */W(z,{style:dc.backRow,children:/* @__PURE__ */W(Al,{onBack:()=>j(!1),label:"Mirrors"})}):n?/* @__PURE__ */W(z,{style:dc.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:dc.inner,children:[
|
|
387
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"All right, or all wrong",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
|
|
388
|
+
/* @__PURE__ */W(da,{}),
|
|
389
|
+
/* @__PURE__ */T(z,{style:dc.variantBlock,children:[Z(N.name,N.waysToWin),
|
|
390
|
+
/* @__PURE__ */W(lc,{depth:N.depth,theme:a}),
|
|
391
|
+
/* @__PURE__ */T(z,{style:dc.variantEdgeLabels,children:[
|
|
392
|
+
/* @__PURE__ */W(S,{style:[dc.variantEdgeText,{color:b.textMuted}],children:"All wrong"}),
|
|
393
|
+
/* @__PURE__ */W(S,{style:[dc.variantEdgeText,{color:b.textMuted}],children:`${G[0]}–${G[G.length-1]} legs`}),
|
|
394
|
+
/* @__PURE__ */W(S,{style:[dc.variantEdgeText,{color:b.textMuted}],children:"All right"})]})]}),
|
|
395
|
+
/* @__PURE__ */T(z,{style:[dc.ticket,L&&dc.ticketWide,{backgroundColor:F,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[Z("Legs",`${Y} legs`),
|
|
396
|
+
/* @__PURE__ */W(z,{style:dc.chipRow,children:G.map(e=>{const t=e===Y;/* @__PURE__ */
|
|
397
|
+
return W(B,{onPress:()=>H(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[dc.legChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */W(S,{style:[dc.chipText,{color:t?b.primaryText:b.textMuted}],children:e})},e)})}),
|
|
398
|
+
/* @__PURE__ */T(z,{style:dc.hintRow,children:[/* @__PURE__ */W(S,{style:[dc.hintText,{color:b.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[dc.hintText,{color:b.textMuted}],children:"Bigger prize"})]}),
|
|
399
|
+
/* @__PURE__ */T(z,{style:dc.stakeBlock,children:[Z("Stake",Qt(O)),
|
|
400
|
+
/* @__PURE__ */T(z,{style:[dc.inputWrap,{borderColor:R?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[dc.inputPrefix,{color:b.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>M(!0),onBlur:()=>M(!1),value:O?String(O):"",onChangeText:e=>{if(""===e)return void I(0);const t=Number(e);Number.isFinite(t)&&I((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==D.maxStake?Math.min(t,D.maxStake):t})(t))},style:[dc.input,{color:b.textAlt??b.text,fontFamily:w}]})]}),
|
|
401
|
+
/* @__PURE__ */W(z,{style:dc.quickStakeRow,children:D.quickStakes.map(e=>{const t=e===O;/* @__PURE__ */
|
|
402
|
+
return W(B,{onPress:()=>I(e),style:[dc.stakeChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */W(S,{style:[dc.chipText,{color:t?b.primaryText:b.textMuted}],children:`$${e}`})},e)})}),!K&&O>0?/* @__PURE__ */W(S,{style:[dc.errorText,{color:b.error}],children:`Minimum stake is ${Qt(D.minStake)}.`}):null]}),
|
|
403
|
+
/* @__PURE__ */T(z,{style:[dc.winSection,{borderTopColor:ea(k,.08)}],children:[
|
|
404
|
+
/* @__PURE__ */T(z,{style:dc.winHeader,children:[/* @__PURE__ */W(S,{style:[dc.winHeaderText,{color:b.textMuted}],children:"What it pays"}),/* @__PURE__ */W(S,{style:[dc.waysChip,{backgroundColor:ea(b.primary,.12),color:b.primary}],children:N.waysToWin})]}),
|
|
405
|
+
/* @__PURE__ */W(z,{style:dc.winRows,children:V.map(e=>/* @__PURE__ */T(z,{style:dc.winRow,children:[/* @__PURE__ */T(z,{style:dc.winRowLeft,children:[/* @__PURE__ */W(S,{style:[dc.winRowLabel,{color:b.text}],children:e.label}),/* @__PURE__ */W(ac,{legs:Y,correct:e.correct})]}),/* @__PURE__ */W(S,{style:[dc.winRowPrize,L&&dc.winRowPrizeWide,{color:b.primary,fontFamily:x}],children:Qt(e.prize)})]},e.correct))}),
|
|
406
|
+
/* @__PURE__ */W(S,{style:[dc.splitNote,{color:b.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
|
|
407
|
+
/* @__PURE__ */T(z,{style:[dc.cardList,L&&dc.cardListWide],children:[/* @__PURE__ */W(z,{style:L?dc.cardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{K&&(h(Y),u(q),g(O),p(),t?.())}})}),/* @__PURE__ */W(z,{style:L?dc.cardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{K&&(u(q),g(O),f(s,Y,O),e?.())}})})]})]})]})}var dc=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{marginTop:12,fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},variantBlock:{marginBottom:12},variantEdgeBar:{marginTop:8,flexDirection:"row",gap:3},variantEdgeSlot:{flex:1,height:14,borderRadius:4},variantEdgeLabels:{marginTop:4,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"30%",flexGrow:1,minWidth:"30%"},variantEdgeText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlLabel:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},legChip:{minWidth:40,flexGrow:1,flexBasis:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{marginTop:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},quickStakeRow:{marginTop:8,flexDirection:"row",flexWrap:"wrap",gap:6},stakeChip:{minWidth:48,flexGrow:1,flexBasis:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},errorText:{marginTop:8,fontSize:12},winSection:{marginTop:16,borderTopWidth:1,paddingTop:12},winHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},winHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},winRows:{marginTop:6,gap:8},winRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},winRowLeft:{flex:1,minWidth:0,gap:3},waysChip:{fontSize:11,fontWeight:"800",paddingHorizontal:8,paddingVertical:2,borderRadius:999,overflow:"hidden"},winRowLabel:{fontSize:13,fontWeight:"600"},winRowPrize:{fontSize:18,fontWeight:"800",fontVariant:["tabular-nums"]},winRowPrizeWide:{fontSize:20},splitNote:{marginTop:8,fontSize:11,fontStyle:"italic"},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function hc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
|
|
408
|
+
return T(z,{style:[gc.header,a&&gc.headerCompact],children:[/* @__PURE__ */W(S,{style:[gc.sectionTitle,a&&gc.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function uc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,setSelectedRuleId:f,quickPickGame:p,goToSportSelection:y}=wi(),m=a.colors,b=Ne(a),w=Ge(a),x=se(a),k=be(a),{width:F}=v(),A=F>=640,[L,R]=c(!1),M=l(()=>r??Yo(s),[r,s]),[D,P]=c(()=>M?.defaultModeId??"extra_shot"),[H,O]=c(()=>{const e=M?.modes.find(e=>e.id===(M?.defaultModeId??"extra_shot"));return e?null!=d&&e.legOptions.includes(d)?d:e.defaultLegs:8}),[I,E]=c(()=>M?.defaultStake??20);if(!s||!Mo(s)||!M)/* @__PURE__ */return W(z,{style:[gc.container,{backgroundColor:m.background}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted,fontFamily:b},children:"No safety net available."})});const j=M.modes.find(e=>e.id===D)??M.modes[0],N=Oo(I,H,j.allowedMisses,M.pricing),G=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==M.maxStake?Math.min(t,M.maxStake):t},Y=I>=M.minStake,V=(e,t)=>/* @__PURE__ */T(z,{style:gc.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[gc.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[gc.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[gc.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[gc.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),q=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
|
|
409
|
+
return T(z,{style:[gc.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:gc.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:gc.inner,children:[
|
|
410
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"Choose your safety net",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
|
|
411
|
+
/* @__PURE__ */W(da,{}),
|
|
412
|
+
/* @__PURE__ */T(z,{style:[gc.ticket,A&&gc.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[V("Safety net",j.label),
|
|
413
|
+
/* @__PURE__ */W(z,{style:gc.chipRow,children:M.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=M.modes.find(t=>t.id===e);t&&(P(e),f(t.ruleId),t.legOptions.includes(H)||O(t.legOptions.reduce((e,t)=>Math.abs(t-H)<Math.abs(e-H)?t:e,t.legOptions[0])))})(e.id)))}),
|
|
414
|
+
/* @__PURE__ */W(S,{style:[gc.modeExplain,A&&gc.modeExplainWide,{color:m.textMuted}],children:j.explain}),
|
|
415
|
+
/* @__PURE__ */T(z,{style:gc.legsBlock,children:[V("Legs",`${H} legs`),
|
|
416
|
+
/* @__PURE__ */W(z,{style:gc.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
|
|
417
|
+
/* @__PURE__ */T(z,{style:gc.hintRow,children:[/* @__PURE__ */W(S,{style:[gc.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[gc.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
|
|
418
|
+
/* @__PURE__ */T(z,{style:gc.stakeBlock,children:[V("Stake",Qt(I)),
|
|
419
|
+
/* @__PURE__ */T(z,{style:[gc.inputWrap,{borderColor:L?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[gc.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:I?String(I):"",onChangeText:e=>{if(""===e)return void E(0);const t=Number(e);Number.isFinite(t)&&E(G(t))},style:[gc.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
|
|
420
|
+
/* @__PURE__ */W(z,{style:gc.chipRow,children:M.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[gc.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[gc.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[gc.errorText,{color:m.error}],children:["Minimum stake is ",Qt(M.minStake),"."]}):null]}),
|
|
421
|
+
/* @__PURE__ */T(z,{style:[gc.prizeBlock,{borderTopColor:ea(x,.08)}],children:[
|
|
422
|
+
/* @__PURE__ */T(z,{style:gc.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[gc.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[gc.prizeCaption,{color:m.textMuted}],children:[Qt(I)," returns"]})]}),
|
|
423
|
+
/* @__PURE__ */T(z,{style:gc.prizeRows,children:[q.map(e=>/* @__PURE__ */T(z,{style:gc.prizeRow,children:[/* @__PURE__ */W(S,{style:[gc.prizeRowLabel,A&&gc.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[gc.prizeRowAmount,A&&gc.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:Qt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[gc.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:gc.sweepLeft,children:[/* @__PURE__ */W(S,{style:[gc.sweepLabel,A&&gc.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[gc.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[gc.sweepAmount,A&&gc.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:Qt(Math.round(N.sweep))})]})]}),
|
|
424
|
+
/* @__PURE__ */W(S,{style:[gc.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
|
|
425
|
+
/* @__PURE__ */T(S,{style:[gc.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
|
|
426
|
+
/* @__PURE__ */T(z,{style:[gc.modeCards,A&&gc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?gc.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{Y&&(f(j.ruleId),h(H),u(H-j.allowedMisses),g(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?gc.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(f(j.ruleId),u(H-j.allowedMisses),g(I),p(s,H,I),e?.())}})})]})]})]})}var gc=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},chip:{flexGrow:1,minWidth:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},stakeChip:{flexGrow:1,minWidth:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},modeExplain:{fontSize:12,lineHeight:17,marginTop:8},modeExplainWide:{fontSize:13,lineHeight:18},legsBlock:{marginTop:16},hintRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginTop:8},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12,marginBottom:8},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},prizeBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},prizeCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},prizeCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},prizeRows:{marginTop:6,gap:6},prizeRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},prizeRowLabel:{fontSize:12},prizeRowLabelWide:{fontSize:13},prizeRowAmount:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},prizeRowAmountWide:{fontSize:16},sweepRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:12,paddingHorizontal:12,paddingVertical:10,marginTop:4},sweepLeft:{flex:1,minWidth:0,gap:2},sweepLabel:{fontSize:14,fontWeight:"800"},sweepLabelWide:{fontSize:15},sweepSub:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.6,opacity:.75},sweepAmount:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},sweepAmountWide:{fontSize:24},stakeNote:{fontSize:11,marginTop:6},missNote:{fontSize:11,fontStyle:"italic",marginTop:4},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function fc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
|
|
427
|
+
return T(z,{style:[yc.header,a&&yc.headerCompact],children:[/* @__PURE__ */W(S,{style:[yc.sectionTitle,a&&yc.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Set your play"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function pc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,handlePropositionCountChange:d,setExpectedCorrect:h,setBetAmount:u,setSelectedRuleId:g,quickPickGame:f,goToSportSelection:p}=wi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),k=pe(y.primary,fe(a),y.primaryText),{width:C}=v(),F=C>=640,A=l(()=>r??Fr(s),[r,s]),[L,R]=c(()=>A?.defaultUnit??10),[M,D]=c(Sr);if(!s||!kr(s)||!A)/* @__PURE__ */return W(z,{style:[yc.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No card available."})});const P=Cr(L,M,A),H=1*L,O=L>A.unitMin,I=L<A.unitMax,E=e=>R(t=>Math.min(A.unitMax,Math.max(A.unitMin,t+e*A.unitStep))),j=()=>{g(P.ruleId),h(P.lowestWinningCount),u(P.stake)},N=(e,t)=>/* @__PURE__ */T(z,{style:yc.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[yc.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[yc.controlValueText,{color:w}],children:t})]}),G=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:!t,accessibilityRole:"button",accessibilityLabel:o,activeOpacity:.8,style:[yc.stepButton,{backgroundColor:y.primary,opacity:t?1:.35}],children:/* @__PURE__ */W(S,{style:[yc.stepButtonText,{color:y.primaryText}],children:e})}),Y={golden_point:`Go for the decider. Double your win to ${Qt(L*A.baseMultiple*A.goldenPointFactor)}.`,captains_challenge:`Collect ${Qt(L*A.challengeMultiple)} whenever you land ${A.legs-A.challengeMisses} or ${A.legs} of ${A.legs}. Stacks on a winning slip.`};/* @__PURE__ */
|
|
428
|
+
return T(z,{style:[yc.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:yc.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:yc.inner,children:[
|
|
429
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:"Set your play",iconUrl:Ze(s),gameName:s.game_name,tagline:A.tagline}),
|
|
430
|
+
/* @__PURE__ */W(da,{}),
|
|
431
|
+
/* @__PURE__ */T(z,{style:[yc.ticket,F&&yc.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[
|
|
432
|
+
/* @__PURE__ */T(z,{style:[yc.playCard,{backgroundColor:y.primary}],children:[/* @__PURE__ */T(z,{style:yc.playCardSide,children:[/* @__PURE__ */W(S,{style:[yc.playCardKey,{color:y.primaryText}],children:"Total stake"}),/* @__PURE__ */W(S,{style:[yc.playCardStake,{color:y.primaryText,fontFamily:b}],children:Qt(P.stake)})]}),/* @__PURE__ */T(z,{style:[yc.playCardSide,yc.playCardRight],children:[/* @__PURE__ */W(S,{style:[yc.playCardKey,{color:y.primaryText}],children:"To win"}),/* @__PURE__ */T(z,{style:yc.playCardWinRow,children:[/* @__PURE__ */W(S,{style:[yc.playCardWin,{color:k,fontFamily:b}],children:Qt(P.base)}),P.challenge>0?/* @__PURE__ */T(S,{style:[yc.playCardChip,{backgroundColor:k,color:w}],children:["+",Qt(P.challenge)]}):null]})]})]}),
|
|
433
|
+
/* @__PURE__ */T(z,{style:yc.stakeBlock,children:[N("Your stake",`steps of ${Qt(A.unitStep)}`),/* @__PURE__ */T(z,{style:yc.stepRow,children:[G("−",O,()=>E(-1),"Lower stake"),
|
|
434
|
+
/* @__PURE__ */T(z,{style:yc.stepMid,children:[/* @__PURE__ */W(S,{style:[yc.stepValue,{color:w,fontFamily:b}],children:Qt(L)}),/* @__PURE__ */W(S,{style:[yc.stepCaption,{color:y.textMuted}],children:"per play"})]}),G("+",I,()=>E(1),"Raise stake")]})]}),
|
|
435
|
+
/* @__PURE__ */W(S,{style:[yc.playNote,{color:y.primary}],children:P.challenge>0?`Captain's Challenge pays ${Qt(P.challenge)} on ${A.legs-A.challengeMisses} or ${A.legs} of ${A.legs}.`:""}),
|
|
436
|
+
/* @__PURE__ */T(z,{style:yc.boostBlock,children:[N("Boost your card",`${Qt(H)} each`),/* @__PURE__ */W(z,{style:yc.boostRows,children:A.boosts.map(e=>{const t=M[e.id];/* @__PURE__ */
|
|
437
|
+
return T(B,{onPress:()=>{return t=e.id,D(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[yc.boostRow,{backgroundColor:t?ea(y.primary,.08):"transparent",borderColor:t?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:yc.boostBody,children:[/* @__PURE__ */T(z,{style:yc.boostTitleRow,children:[/* @__PURE__ */W(S,{style:[yc.boostLabel,F&&yc.boostLabelWide,{color:w,fontFamily:b}],children:e.label}),/* @__PURE__ */W(z,{style:[yc.boostAmt,{backgroundColor:ea(y.primary,.12)}],children:/* @__PURE__ */T(S,{style:[yc.boostAmtText,{color:y.primary}],children:["+",Qt(H*e.costUnits)]})})]}),/* @__PURE__ */W(S,{style:[yc.boostSub,F&&yc.boostSubWide,{color:y.textMuted}],children:Y[e.id]})]}),/* @__PURE__ */W(z,{style:[yc.toggle,{backgroundColor:t?y.primary:y.border}],children:/* @__PURE__ */W(z,{style:[yc.toggleKnob,{backgroundColor:y.background,transform:[{translateX:t?20:0}]}]})})]},e.id)})})]})]}),
|
|
438
|
+
/* @__PURE__ */T(z,{style:[yc.modeCards,F&&yc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:F?yc.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(s),size:60}),label:`Pick my ${A.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{j(),d(A.legs),p(),t?.()}})}),/* @__PURE__ */W(z,{style:F?yc.modeCardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${A.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{j(),f(s,A.legs,P.stake),e?.()}})})]})]})]})}var yc=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},playCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,paddingHorizontal:16,paddingVertical:14},playCardSide:{minWidth:0,flexShrink:1},playCardRight:{alignItems:"flex-end"},playCardKey:{fontSize:11,fontWeight:"600",opacity:.72},playCardStake:{fontSize:24,fontWeight:"800"},playCardWinRow:{flexDirection:"row",alignItems:"baseline",gap:6},playCardWin:{fontSize:26,fontWeight:"800",lineHeight:28},playCardChip:{fontSize:11,fontWeight:"800",borderRadius:6,paddingHorizontal:6,paddingVertical:2,overflow:"hidden"},stakeBlock:{marginTop:12},playNote:{marginTop:8,minHeight:16,fontSize:11,fontWeight:"700",textAlign:"center"},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},stepRow:{flexDirection:"row",alignItems:"center",gap:12},stepButton:{width:44,height:44,borderRadius:12,alignItems:"center",justifyContent:"center"},stepButtonText:{fontSize:24,fontWeight:"800",lineHeight:26},stepMid:{flex:1,alignItems:"center"},stepValue:{fontSize:24,fontWeight:"800",fontVariant:["tabular-nums"]},stepCaption:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},boostBlock:{marginTop:16},boostRows:{gap:8},boostRow:{flexDirection:"row",alignItems:"center",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingVertical:12},boostBody:{flex:1,minWidth:0},boostTitleRow:{flexDirection:"row",alignItems:"center",gap:8},boostLabel:{fontSize:14,fontWeight:"800"},boostLabelWide:{fontSize:15},boostAmt:{borderRadius:6,paddingHorizontal:6,paddingVertical:2},boostAmtText:{fontSize:10,fontWeight:"800",fontVariant:["tabular-nums"]},boostSub:{fontSize:11,lineHeight:15,marginTop:4},boostSubWide:{fontSize:12,lineHeight:16},toggle:{width:48,height:28,borderRadius:999,justifyContent:"center",paddingHorizontal:3},toggleKnob:{width:22,height:22,borderRadius:11},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function mc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=wi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
439
|
+
return T(z,{style:wc.header,children:[/* @__PURE__ */W(S,{style:[wc.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(Ll,{onBack:e,hideActions:t,label:o?.game_name})]})}function bc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:a,selectedPropositionCount:s,handlePropositionCountChange:d,setExpectedCorrect:h,quickPickGame:u,goToSportSelection:g}=wi(),f=i.colors,p=Ne(i),{width:y}=v(),m=y>=640,b=l(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=cn(a);return An(e,t)},[a]),w=Ar(a),x=b[0]??0,k=b[b.length-1]??0,[C]=c(()=>null!=s&&b.includes(s)?s:k),B=l(()=>Ko(a,C||void 0),[a,C]);if(!a||0===b.length||"exact"!==B?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:f.textMuted,fontFamily:p},children:"No setup available."})});const F=w?["Any yes/no props in the pool",`Pick ${x}–${k} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],A=w?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
|
|
440
|
+
return T(z,{style:wc.container,children:[n?/* @__PURE__ */W(z,{style:wc.backRow,children:/* @__PURE__ */W(Al,{onBack:n,label:r})}):null,/* @__PURE__ */T(ht,{style:wc.inner,children:[
|
|
441
|
+
/* @__PURE__ */W(na,{eyebrow:o?null:B.title,iconUrl:Ze(a),gameName:a.game_name,tagline:B.heroTagline}),
|
|
442
|
+
/* @__PURE__ */W(da,{}),
|
|
443
|
+
/* @__PURE__ */T(z,{style:[wc.cardList,m&&wc.cardListWide],children:[/* @__PURE__ */W(z,{style:m?wc.cardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:Ze(a),size:60}),label:"Pick my own",stat:"Your calls",detail:F,onSelect:()=>{w||(d(C),h(C)),g(),t?.()}})}),/* @__PURE__ */W(z,{style:m?wc.cardCell:void 0,children:/* @__PURE__ */W(ca,{tile:/* @__PURE__ */W(ta,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:A,onSelect:()=>{h(C),u(a,C),e?.()}})})]})]})]})}var wc=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function xc({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=wi(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(Wr(l)){case"game_set":/* @__PURE__ */return W($a,{...s});case"pick_your_dividend":/* @__PURE__ */return W(tc,{...s});case"ladder":/* @__PURE__ */return W(rc,{...s});case"mirror":/* @__PURE__ */return W(sc,{...s});case"safety_net":/* @__PURE__ */return W(uc,{...s});case"six_again":/* @__PURE__ */return W(pc,{...s});case"rule_setup":return"exact"===Ko(l)?.kind?/* @__PURE__ */W(bc,{...s}):/* @__PURE__ */W(Xa,{onBack:n,hideTitle:o,backLabel:r,onContinue:()=>{a(),e?.()}});default:/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:i.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})})}}function kc({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=wi(),l=se(i),a=fe(i),c=i.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(l),s=Ge(i)??"Manrope, Poppins, sans-serif",d=n&&n.length>0?n:t.split(/\s+/),h=.72*o,u=.5*o,g=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
|
|
440
444
|
return T(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[
|
|
441
|
-
/* @__PURE__ */W(
|
|
445
|
+
/* @__PURE__ */W(Dn,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
|
|
442
446
|
/* @__PURE__ */T(S,{style:{fontFamily:s,fontSize:u,letterSpacing:.045*-u,lineHeight:u,color:l,includeFontPadding:!1},children:[/* @__PURE__ */W(S,{style:{fontWeight:"800"},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"600"},children:"NO"})]}),
|
|
443
447
|
/* @__PURE__ */W(z,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c}}),
|
|
444
|
-
/* @__PURE__ */W(z,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:g,fontWeight:"500",letterSpacing:.012*-g,lineHeight:1.14*g,color:l,includeFontPadding:!1},children:e}),
|
|
448
|
+
/* @__PURE__ */W(z,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:g,fontWeight:"500",letterSpacing:.012*-g,lineHeight:1.14*g,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*g,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{Kr as BladeApiClient,kc as BrandLockup,wr as CHALLENGE_MISSES,br as CHALLENGE_MULTIPLE,Ct as CategoryIcon,Il as CategoryPickerPage,Ol as CategoryPickerPageActions,Hl as CategoryPickerPageTitle,Bt as ChevronRightIcon,Ca as ConfirmPage,Sa as ConfirmPageActions,ka as ConfirmPageTitle,Ao as DOUBLE_SHOT_MIN_LEGS,To as EXTRA_SHOT_MIN_LEGS,La as EntriesPage,Aa as EntriesPageTitle,pl as EntrySubmission,Fl as EventFilterBanner,Gl as EventPickerPage,Ei as EventSwipeModal,Rt as FilterChipCarousel,Mt as FilterChipRow,co as GAME_TIER_LEVEL,so as GAME_TIER_TABS,xr as GOLDEN_POINT_FACTOR,Bl as GameEntries,Kl as GameLogo,Dl as GamePage,Ml as GamePageActions,Rl as GamePageTitle,Ur as GameSelector,$a as GameSetBetPage,Ja as GameSetBetPageTitle,xc as GameSetupPage,kt as HowToPlayButton,pt as HowToPlayPanel,sr as LADDER_FAMILY,ar as LADDER_REFERENCE_BET,cr as LADDER_STAKES,rc as LadderPage,oc as LadderPageTitle,zt as LockIcon,po as MIRROR_STANDARD_MARGIN,sc as MirrorPage,cc as MirrorPageTitle,Sr as NO_BOOSTS,tr as PYD_LEG_RUNGS,er as PYD_RETAIL_DIVIDENDS,wl as PayoutCircles,bc as PerfectPickPage,mc as PerfectPickPageTitle,tc as PickYourDividendPage,ec as PickYourDividendPageTitle,xi as PlaceEntryProvider,ki as QuickPickButton,Xa as RuleSetupPage,Za as RuleSetupPageActions,Ka as RuleSetupPageTitle,Ni as SELECTION_VARIANTS,mr as SIX_AGAIN_LEGS,yr as SIX_AGAIN_MARGIN,uc as SafetyNetPage,hc as SafetyNetPageTitle,At as ScrollShelf,gl as SelectionReview,Xi as SelectionVariantList,ya as SelectionsPage,ga as SelectionsPageActions,ha as SelectionsPageTitle,pc as SixAgainPage,fc as SixAgainPageTitle,Pa as SportPickerPage,Da as SportPickerPageActions,Ma as SportPickerPageTitle,Jl as SportRail,Tt as StarIcon,Wa as SuccessPage,Fa as SuccessPageActions,va as SuccessPageTitle,Pi as SwipeCard,Hi as SwipeCardFace,Oi as SwipeDeck,Ci as VISIBLE_DEPTH,Ft as YesNoCategoryLabel,go as availableGameTierTabs,Fn as contrastTextColour,ve as darkTheme,fo as defaultGameTierId,Be as defaultTheme,Re as defaultThemeSet,uo as filterGamesByTierLevel,lo as filterPropositionsToEvent,Qt as formatCurrency,Jt as formatDate,Jn as formatSameGameMultiEventLabel,gr as fullStackPrize,Zo as gameNeedsRuleSetup,$o as gameSetPrize,Lr as getConfirmBoostCopy,Wr as getGameFlow,_o as getGameSetBetConfig,sn as getJackpotInfo,pr as getLadderConfig,Bo as getMirrorConfig,lr as getPickYourDividendConfig,eo as getPropositionEventId,Ko as getRuleSetupConfig,Yo as getSafetyNetConfig,Do as getSafetyNetPricing,Fr as getSixAgainConfig,hn as getSportDisplayName,He as getTheme,Oe as getThemeSet,Te as goldLightTheme,Fe as goldTheme,De as goldThemeSet,We as greenLightTheme,ze as greenTheme,Me as greenThemeSet,$t as groupPropositionsBySport,to as groupSameGameMultiEvents,Ki as groupSelectionDays,Tr as isFixedCardExactGame,Jo as isGameSetBetGame,dr as isLadderGame,ko as isMirrorGame,Ar as isOpenExactMultiGame,nr as isPickYourDividendGame,Mo as isSafetyNetGame,_n as isSameGameMultiGame,io as isSelectableSameGameMultiProposition,kr as isSixAgainGame,Ce as isThemeSet,an as isValidSelectionCount,fr as ladderCollectAt,ur as ladderTiers,Co as mirrorPrize,ao as propositionsBelongToEvent,ir as pydLadder,rr as pydRung,gn as resolveCategoryDisplayName,ho as resolveGameTierLevel,Kt as resolvePrice,un as resolveSportDisplayName,Se as resolveTheme,Po as roundDividendAmount,Io as safetyNetCollect,Oo as safetyNetTicket,Br as sixAgainRuleId,zr as sixAgainStakeMultiples,Cr as sixAgainTicket,fe as themeAccent,Ne as themeBodyFont,se as themeHeading,Ge as themeHeadingFont,de as themeLabel,Ee as themeSets,ye as themeTextAlt,me as themeTextAltMuted,he as themeValue,Ie as themes,ni as useCalculatePayout,_r as useCreateGameEntry,oi as useEntryPreview,ti as useEvaluateRule,Jr as useGameEntries,$r as useGameMaxPayouts,Zr as useGames,wi as usePlaceEntry,ei as usePlaceEntryFlow,Xr as usePropositions,je as useResolvedTheme,Qr as useSports,zi as useSwipeDeck};
|