@simple-parlay/components 1.30.6-pre.3 → 1.30.6-pre.5
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 +289 -294
- package/dist/react/components/MultiLegTable.d.ts +3 -1
- package/dist/react/components/PlaceEntryProvider.d.ts +4 -1
- package/dist/react/components/PropositionFilters.d.ts +3 -1
- package/dist/react/components/SportRail.d.ts +0 -4
- package/dist/react/components/SportSelector.d.ts +1 -1
- package/dist/react/components/_primitives/index.d.ts +4 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +289 -294
- package/dist/react/utils/index.d.ts +1 -1
- package/dist/react-native/components/LoadingIndicators.d.ts +1 -1
- package/dist/react-native/components/MultiLegTable.d.ts +3 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +4 -1
- package/dist/react-native/components/PropositionFilters.d.ts +3 -1
- package/dist/react-native/components/SportRail.d.ts +6 -4
- package/dist/react-native/components/SportSelector.d.ts +2 -2
- package/dist/react-native/components/_primitives/index.d.ts +5 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +376 -379
- package/dist/react-native/utils/index.d.ts +1 -1
- package/dist/shared/date-filters.d.ts +5 -4
- package/dist/shared/game-flow.d.ts +12 -1
- package/dist/shared/game-set-bet.d.ts +0 -1
- package/dist/shared/hooks.d.ts +1 -1
- package/dist/shared/menu-placement.d.ts +26 -0
- package/dist/shared/mirror.d.ts +5 -3
- package/dist/shared/picker-brand.d.ts +2 -0
- package/dist/shared/selection-actions.d.ts +9 -4
- package/dist/shared/selection-caps.d.ts +0 -1
- package/dist/shared/types.d.ts +7 -0
- package/dist/shared/utils.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import e,{createContext as t,useCallback as n,useContext as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as g,Image as f,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as v}from"react-native";import{Fragment as F,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as L,Defs as R,Ellipse as D,Line as M,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#C9CDD2";function U(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function q(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").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%3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nKB6Wpl%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%3C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xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%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},De={light:We,dark:ze},Me={light:Te,dark:Fe},Pe={light:Ae,dark:Le};function He(e){return{default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae}[e]||Be}function Oe(e){return{default:Re,green:De,gold:Me,yesno:Pe}[e]||Re}var Ie={default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae},Ee={default:Re,green:De,gold:Me,yesno:Pe};function je(e,t="light"){return Se(e,t)}function Ne(e){return e.fonts?.body??"System"}function Ge(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ye="game-icon:",Ve={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_double:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Double Mirror.\n The Mirror mark reaching one slot further in: two reflected squares per side\n stepping toward the seam, the deeper pair dimmed because the near-miss tier\n pays less than the clean sweep.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="4" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="20" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="70" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="54" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_triple:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Triple Mirror.\n The Mirror mark reaching two slots in: three reflected squares per side\n stepping toward the seam, each dimmer than the last because each tier\n further from the edge pays less.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="2" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="13" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="24" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="76" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="65" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="54" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",straightmirror:"mirror",doublemirror:"mirror_double",triplemirror:"mirror_triple",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},qe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",double_mirror:"mirror_double",triple_mirror:"mirror_triple",same_game_multi:"same_game_multi",six_again:"six_again"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=qe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function Ze(e){return`${Ye}${Ke(e)}`}function Xe(e){if(!function(e){return e.startsWith(Ye)}(e))return null;const t=e.slice(10);return Ve[t]??Ve.unknown}var Qe={text:"YES",tone:"yes"},Je={text:"NO",tone:"no"},$e=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],_e=["zero","one","two","three","four","five","six","seven","eight"],et=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],tt=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],nt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Qe," or ",Je," across your legs, every leg has to land, and one perfect card takes the prize."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Qe," or ",Je," on each matchup, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Qe," or ",Je," on each total, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Qe," and ",Je," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Qe," or ",Je," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:tt("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Qe," or ",Je," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:tt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Qe," or ",Je," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:tt("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Qe," or ",Je," on every leg — land them all and the entry pays the dividend you picked."],steps:tt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Qe," or ",Je," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:tt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Qe," or ",Je," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Qe," or ",Je," across the game — land every leg and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ot(e){if(!e)return null;const t=Ke(e),n=nt[t];if(!n)return null;const{min:o,max:r,demo:i}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let r=3;return n>0&&(r=Math.max(r,n)),o>0&&(r=Math.min(r,o)),{min:n,max:o,demo:Math.min(Math.max(r,2),$e.length)}}(e),l=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:l(e.detail)})),demoLegs:$e.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,_e[i-1]??String(i-1)).replace(/\{n\}/g,_e[i]??String(i))}}function rt(e,t,n=!0){const o=e.current;o&&("web"!==m.OS?o.scrollTo?.({x:t,y:0,animated:n}):"function"==typeof o.scroll?o.scroll({left:t}):"number"==typeof o.scrollLeft&&(o.scrollLeft=t))}function it(e,t){return{onMouseEnter:e,onMouseLeave:t}}function lt({theme:t,variant:n="primary",size:o="md",disabled:r,block:i,radius:l="md",onPress:a,onLongPress:c,style:s,children:d,accessibilityLabel:h}){const u=ae(t),g=t.colors,f={sm:{h:36,px:u.space.md,fs:u.fontSize.sm},md:{h:u.touchTarget.min,px:u.space.lg,fs:u.fontSize.md},lg:{h:52,px:u.space.xl,fs:u.fontSize.lg}},p={sm:u.radius.sm,md:u.radius.md,lg:u.radius.lg,pill:u.radius.pill},y={primary:{bg:g.buttonPrimary,bgPressed:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgPressed:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgPressed:ne(g.text,u.isDark?.1:.06),fg:g.text,border:"transparent"},danger:{bg:g.error,bgPressed:ne(g.error,.85),fg:"#ffffff",border:g.error}}[n],[m,w]=e.useState(!1);/* @__PURE__ */
|
|
2
|
-
return W(b,{accessibilityRole:"button",accessibilityLabel:h,accessibilityState:{disabled:!!r},disabled:r,onPress:a,onLongPress:c,onHoverIn:()=>w(!0),onHoverOut:()=>w(!1),style:({pressed:e})=>[{minHeight:f[o].h,paddingHorizontal:f[o].px,borderRadius:p[l],backgroundColor:!e&&!m||r?y.bg:y.bgPressed,borderColor:y.border,borderWidth:1,alignSelf:i?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:r?.5:1,transform:[{scale:e&&!r?.985:1}]},s],children:"string"==typeof d?/* @__PURE__ */W(S,{style:{color:y.fg,fontSize:f[o].fs,fontWeight:"500"},children:d}):d})}var
|
|
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:
|
|
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:
|
|
5
|
-
return W(h.View,{style:[n,{transform:r}],children:o})}var
|
|
6
|
-
return W(S,{style:[
|
|
1
|
+
import e,{createContext as t,useCallback as n,useContext as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as g,Image as f,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as v}from"react-native";import{Fragment as F,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as L,Defs as R,Ellipse as D,Line as M,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#C9CDD2";function U(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function q(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").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%2CiVBORw0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xpnZKcAj%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%3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zSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%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},De={light:We,dark:ze},Me={light:Te,dark:Fe},Pe={light:Ae,dark:Le};function He(e){return{default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae}[e]||Be}function Oe(e){return{default:Re,green:De,gold:Me,yesno:Pe}[e]||Re}var Ie={default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae},Ee={default:Re,green:De,gold:Me,yesno:Pe};function je(e,t="light"){return Se(e,t)}function Ne(e){return e.fonts?.body??"System"}function Ge(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ye="game-icon:",Ve={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_double:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Double Mirror.\n The Mirror mark reaching one slot further in: two reflected squares per side\n stepping toward the seam, the deeper pair dimmed because the near-miss tier\n pays less than the clean sweep.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="4" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="20" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="70" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="54" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_triple:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Triple Mirror.\n The Mirror mark reaching two slots in: three reflected squares per side\n stepping toward the seam, each dimmer than the last because each tier\n further from the edge pays less.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="2" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="13" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="24" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="76" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="65" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="54" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",straightmirror:"mirror",doublemirror:"mirror_double",triplemirror:"mirror_triple",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},qe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",double_mirror:"mirror_double",triple_mirror:"mirror_triple",same_game_multi:"same_game_multi",six_again:"six_again"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=qe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function Ze(e){return`${Ye}${Ke(e)}`}function Xe(e){if(!function(e){return e.startsWith(Ye)}(e))return null;const t=e.slice(10);return Ve[t]??Ve.unknown}var Qe={text:"YES",tone:"yes"},Je={text:"NO",tone:"no"},$e=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],_e=["zero","one","two","three","four","five","six","seven","eight"],et=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],tt=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],nt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Qe," or ",Je," across your legs, every leg has to land, and one perfect card takes the prize."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Qe," or ",Je," on each matchup, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Qe," or ",Je," on each total, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Qe," and ",Je," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Qe," or ",Je," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:tt("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Qe," or ",Je," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:tt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Qe," or ",Je," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:tt("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Qe," or ",Je," on every leg — land them all and the entry pays the dividend you picked."],steps:tt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Qe," or ",Je," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:tt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Qe," or ",Je," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Qe," or ",Je," across the game — land every leg and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ot(e){if(!e)return null;const t=Ke(e),n=nt[t];if(!n)return null;const{min:o,max:r,demo:i}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let r=3;return n>0&&(r=Math.max(r,n)),o>0&&(r=Math.min(r,o)),{min:n,max:o,demo:Math.min(Math.max(r,2),$e.length)}}(e),l=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:l(e.detail)})),demoLegs:$e.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,_e[i-1]??String(i-1)).replace(/\{n\}/g,_e[i]??String(i))}}function rt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function it(e){return(e.description??e.proposition??"").trim()}var lt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function at(e){return"composite_and"===(t=rt(e))||"composite_or"===t;var t}function ct(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 st(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 dt(e,t){if(!at(e))return null;const n=function(e){return at(e)?("composite_and"===(t=rt(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=ct(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:it(o),eventLabel:st(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(lt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(it(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var ht="#0F4C5C",ut="#7B9DA5",gt={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"},ft={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner",prediction:"Call the outcome"};function pt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=gt[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function yt(e){return!!e.is_composite_component||!!(t=rt(e))&&t.startsWith("co_");var t}function mt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function bt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function wt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}var xt={yes:"Yes",no:"No"};function kt(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 St(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 Ct(e){return e.reduce((t,n)=>{const o=Bt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function Bt(e,t){if(e.sport)return e.sport;if(at(e)&&t)for(const n of ct(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var zt=["sports","casino","racing","prediction"];function vt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(rt(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 Ft(e){return"racing"===vt(e)}function Wt(e){const t={};for(const n of e){const e=vt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function Tt(e){const t=Wt(e);return zt.filter(e=>(t[e]?.length??0)>0)}function At(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";case"prediction":return"Choose a Market";default:return"Choose a Sport"}}function Lt(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function Rt(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 Dt(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 Mt(e,t,n){return"racing"===e||!(!t?.length||!t.every(Ft))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function Pt(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 Ht(e,t,n){const o=t?.[e];return o||Pt(e,n)}function Ot(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 It(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Et(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function jt(e,t,n){return!t||!!e&&(Et(e,t,n)||Et(t,e,n))}function Nt(e,t){return t.find(t=>t.id===e)}function Gt(e,t){let n=e;return t?.category&&(n=n.filter(e=>vt(e)===t.category)),t?.sport&&(n=n.filter(n=>at(n)?function(e,t,n,o){if(jt(e.sport,t,n))return!0;if(!o)return!1;for(const r of ct(e)){const e=Nt(r,o);if(e&&jt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):jt(n.sport,t.sport,t.sportBaseKey))),n}function Yt(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t||"prediction"===t?t:"sports"}(e)===t}function Vt(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Et(t,e,n))}function Ut(e,t,n){return!(n?.category&&!Yt(e,n.category))&&!(n?.sport&&!Vt(e,n.sport,n.sportBaseKey))&&Gt(Zt(t,e),n).length>0}function qt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Yt(e,t.category)||t.sport&&!Vt(e,t.sport,t.sportBaseKey))):e}function Kt(e,t){if(e.sport||!at(e))return e;const n=Bt(e,t);return"Other"===n?e:{...e,sport:n}}function Zt(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,i=t.allowed_markets&&t.allowed_markets.length>0;return r||i?e.filter(l=>{if(yt(l))return!1;if(r)if(at(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Et(e.sport,t,n)))return!0;if(!o)return!1;for(const r of ct(e)){const e=Nt(r,o);if(e?.sport&&t.some(t=>Et(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>Et(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=rt(e);return!!o&&n.includes(o)}(l,t))}).map(t=>Kt(t,e)):e.filter(e=>!yt(e)).map(t=>Kt(t,e))}function Xt(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 Qt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Jt(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 $t(e,t,n){return Mt(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 _t(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!Ft(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 en(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 tn(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 nn(e,t){return{onMouseEnter:e,onMouseLeave:t}}function on({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 rn=e.createContext(xt),ln=rn.Provider;function an(){return e.useContext(rn)}var cn={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function sn(e,t,n,o,r,i){const l=ae(e),a=cn[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 dn({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:i,disabled:l,yesLabel:a,noLabel:c,style:s}){const d=an(),h=sn(e,"yes"===t,ue(e),r,l,i),u=sn(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:h.container,children:/* @__PURE__ */W(S,{style:h.label,children:a??d.yes})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!l},disabled:l,onPress:l?void 0:o,style:u.container,children:/* @__PURE__ */W(S,{style:u.label,children:c??d.no})})]})}function hn({theme:e,value:t,size:n="md",style:o}){const r=ae(e),i=an(),l="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:l,fontWeight:"700",letterSpacing:.04*l,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?i.yes:i.no})})}function un({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 gn=/\b(YES|NO)\b/;function fn(e,t,n){return e.split(gn).map((e,o)=>"YES"===e||"NO"===e?/* @__PURE__ */W(hn,{theme:t,value:"YES"===e?"yes":"no",size:"sm"},`${n}-${o}`):/* @__PURE__ */W(S,{children:e},`${n}-${o}`))}function pn({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
|
|
6
|
+
return W(S,{style:[mn.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?/* @__PURE__ */W(S,{children:fn(e,t,n)},n):/* @__PURE__ */W(hn,{theme:t,value:e.tone,size:"sm"},n))})}function yn({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=>[mn.segment,{backgroundColor:e?i.primary:"transparent"}],F=e=>[mn.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];/* @__PURE__ */
|
|
7
7
|
return T(z,{children:[
|
|
8
|
-
/* @__PURE__ */T(z,{style:[
|
|
8
|
+
/* @__PURE__ */T(z,{style:[mn.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[
|
|
9
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
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(
|
|
12
|
-
/* @__PURE__ */T(z,{style:[
|
|
13
|
-
/* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[
|
|
14
|
-
/* @__PURE__ */W(z,{style:
|
|
15
|
-
/* @__PURE__ */W(z,{style:
|
|
16
|
-
return T(z,{style:[
|
|
17
|
-
/* @__PURE__ */W(z,{style:[
|
|
18
|
-
/* @__PURE__ */W(z,{style:
|
|
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
|
|
11
|
+
/* @__PURE__ */W(pn,{segments:e.summary,theme:t,bodyFont:o}),
|
|
12
|
+
/* @__PURE__ */T(z,{style:[mn.steps,mn.stepsSpaced],children:[/* @__PURE__ */W(z,{pointerEvents:"none",style:[mn.rail,{backgroundColor:ne(i.primary,.25)}]}),e.steps.map((e,n)=>/* @__PURE__ */T(z,{style:mn.step,children:[/* @__PURE__ */W(z,{style:[mn.stepTile,{backgroundColor:i.primary}],children:/* @__PURE__ */W(S,{style:[mn.stepTileText,{color:l,fontFamily:r}],children:n+1})}),/* @__PURE__ */T(z,{style:mn.stepText,children:[/* @__PURE__ */W(S,{style:[mn.stepTitle,{color:i.primary,fontFamily:r}],children:e.title}),/* @__PURE__ */W(S,{style:[mn.stepDetail,{color:i.textMuted,fontFamily:o}],children:fn(e.detail,t,n)})]})]},e.title))]}),
|
|
13
|
+
/* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[mn.tryLink,{color:i.primary,fontFamily:r}],children:"Try a quick demo →"})})]}),"try"===s&&/* @__PURE__ */T(z,{style:[mn.slip,mn.slipFlush,{borderColor:i.border,backgroundColor:a}],children:[
|
|
14
|
+
/* @__PURE__ */W(z,{style:mn.slipHead,children:/* @__PURE__ */T(z,{style:mn.slipHeadRow,children:[/* @__PURE__ */W(S,{style:[mn.prompt,mn.promptGrow,{color:i.textMuted,fontFamily:o}],children:g?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */W(z,{style:[mn.counter,C?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:ne(i.border,.9),backgroundColor:"transparent"}],children:/* @__PURE__ */W(S,{style:[mn.counterText,{color:C?i.primaryText:i.textMuted,fontFamily:o}],children:k})})]})}),
|
|
15
|
+
/* @__PURE__ */W(z,{style:mn.legs,children:e.demoLegs.map((e,n)=>{const r=h[n]===e.outcome;/* @__PURE__ */
|
|
16
|
+
return T(z,{style:[mn.leg,n>0&&{borderTopWidth:1,borderTopColor:ne(i.border,.7)}],children:[/* @__PURE__ */T(z,{style:mn.legMain,children:[/* @__PURE__ */W(z,{style:[mn.pip,g?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:h[n]?i.primary:i.border}],children:/* @__PURE__ */W(S,{style:[mn.pipText,{color:g?"#fff":h[n]?i.primary:i.textMuted}],children:g?r?"✓":"✗":n+1})}),/* @__PURE__ */W(z,{style:mn.legText,children:/* @__PURE__ */W(S,{style:[mn.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),g?/* @__PURE__ */W(hn,{theme:t,size:"sm",value:e.outcome}):/* @__PURE__ */W(dn,{theme:t,size:"sm",value:h[n],onYes:()=>x(n,"yes"),onNo:()=>x(n,"no")})]},e.question)})}),
|
|
17
|
+
/* @__PURE__ */W(z,{style:[mn.perforation,{borderTopColor:ne(i.border,.9)}]}),
|
|
18
|
+
/* @__PURE__ */W(z,{style:mn.slipFoot,children:g?/* @__PURE__ */T(z,{children:[/* @__PURE__ */T(z,{style:[mn.verdict,{backgroundColor:w.won?i.successBg:i.errorBg}],children:[/* @__PURE__ */W(z,{style:[mn.stamp,{borderColor:w.won?i.successText:i.errorText}],children:/* @__PURE__ */W(S,{style:[mn.stampText,{color:w.won?i.successText:i.errorText,fontFamily:r}],children:w.won?"Winner":"No win"})}),/* @__PURE__ */W(S,{style:[mn.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:[mn.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Try again"})})]}):/* @__PURE__ */W(on,{theme:t,size:"sm",block:!0,disabled:!m,onPress:()=>f(!0),children:"Run the demo"})})]})]})}var mn=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 bn({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 wn({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 xn({rows:e}){/* @__PURE__ */
|
|
20
20
|
return W(z,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",borderWidth:1,borderColor:V,borderTopWidth:0===t?1:0},children:[
|
|
21
21
|
/* @__PURE__ */W(z,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:V},children:/* @__PURE__ */W(S,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),
|
|
22
22
|
/* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:V},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),
|
|
23
|
-
/* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function
|
|
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(
|
|
25
|
-
return T(F,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[
|
|
26
|
-
/* @__PURE__ */W(z,{style:[
|
|
27
|
-
/* @__PURE__ */W(x,{contentContainerStyle:m?void 0:{paddingHorizontal:f?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(
|
|
28
|
-
/* @__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 kn({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(bn,{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(bn,{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(bn,{text:e,colors:t})]},o))},r):"propsTable"===e.type?/* @__PURE__ */W(xn,{rows:e.rows},r):/* @__PURE__ */W(z,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function Sn({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:[Cn.iconButton,{borderColor:a.primary,backgroundColor:`${a.primary}14`}],accessibilityRole:"button",accessibilityLabel:i,children:/* @__PURE__ */W(S,{style:[Cn.iconButtonText,{color:a.primary,fontFamily:s}],children:"?"})}):/* @__PURE__ */T(B,{onPress:()=>u(!0),style:[Cn.button,{borderColor:a.primary,backgroundColor:`${a.primary}10`}],accessibilityRole:"button",accessibilityLabel:i,children:[/* @__PURE__ */W(S,{style:[Cn.buttonText,{color:a.primary,fontFamily:s}],children:i}),/* @__PURE__ */W(S,{style:[Cn.buttonText,{color:a.primary,fontFamily:s}],children:"?"})]}),/* @__PURE__ */W(p,{visible:h,animationType:"none",transparent:!0,onRequestClose:()=>u(!1),children:/* @__PURE__ */T(z,{style:[Cn.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:[Cn.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:[Cn.header,{paddingHorizontal:f?24:16,borderBottomColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Cn.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(yn,{panel:t,theme:n,dividends:o,bodyFont:s,headingFont:d}):/* @__PURE__ */T(F,{children:[m?/* @__PURE__ */W(wn,{content:e,colors:a}):/* @__PURE__ */W(kn,{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:[Cn.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})=>[Cn.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:a.primary,opacity:e?.88:t?.92:1,transform:[{scale:e?.99:1}]}],children:/* @__PURE__ */W(S,{style:[Cn.doneText,{color:a.primaryText,fontFamily:s}],children:"Got it"})})})})]})]})})]})}var Cn=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 Bn({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
|
|
29
29
|
/* @__PURE__ */W(H,{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z",fill:n}),
|
|
30
30
|
/* @__PURE__ */W(H,{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",fill:n}),
|
|
31
31
|
/* @__PURE__ */W(H,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
|
|
@@ -34,19 +34,20 @@ return T(F,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[St
|
|
|
34
34
|
/* @__PURE__ */W(H,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
|
|
35
35
|
/* @__PURE__ */W(H,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
36
36
|
/* @__PURE__ */W(H,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
37
|
-
/* @__PURE__ */W(H,{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function
|
|
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
|
|
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
|
|
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
|
|
41
|
-
return T(z,{style:[
|
|
42
|
-
/* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontSize:c,lineHeight:1.15*c,letterSpacing:-1,color:s,fontFamily:l},children:[/* @__PURE__ */W(S,{style:
|
|
43
|
-
/* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[
|
|
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
|
|
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
|
|
46
|
-
return T(z,{style:[
|
|
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:[
|
|
48
|
-
return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[
|
|
49
|
-
return W(Rt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var Mt=k.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function Pt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Ht(e){return(e.description??e.proposition??"").trim()}var Ot={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function It(e){return"composite_and"===(t=Pt(e))||"composite_or"===t;var t}function Et(e){const t=e.source_data;if(!t)return[];try{const e=JSON.parse(t)?.composite?.components;return Array.isArray(e)?e.filter(e=>"number"==typeof e&&Number.isFinite(e)):[]}catch{return[]}}function jt(e){const t=e.home_team?.trim(),n=e.away_team?.trim();if(t&&n)return`${t} vs ${n}`;if(t)return t;if(n)return n;const o=e.eventId??e.event_id;return o?.trim()?o.trim():null}function Nt(e,t){if(!It(e))return null;const n=function(e){return It(e)?("composite_and"===(t=Pt(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=Et(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Ht(o),eventLabel:jt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(Ot[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Ht(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var Gt="#0F4C5C",Yt={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},Vt={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function Ut(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Yt[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function qt(e){return!!e.is_composite_component||!!(t=Pt(e))&&t.startsWith("co_");var t}function Kt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Zt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Xt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Qt(e){const t=Number.isInteger(e);return new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)}function Jt(e){const t="string"==typeof e?new Date(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:e+"Z"):e;return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function $t(e){return e.reduce((t,n)=>{const o=_t(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function _t(e,t){if(e.sport)return e.sport;if(It(e)&&t)for(const n of Et(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var en=["sports","casino","racing","prediction"];function tn(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Pt(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function nn(e){return"racing"===tn(e)}function on(e){const t={};for(const n of e){const e=tn(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function rn(e){const t=on(e);return en.filter(e=>(t[e]?.length??0)>0)}function ln(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function an(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function cn(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,i=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(i&&i.length>0)return null!=t&&i.includes(t)?{min:t,max:t}:{min:Math.min(...i),max:Math.max(...i)};const l=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(l,o):l,max:null!=r&&a>0?Math.min(a,r):r??a}}function sn(e){const t=e.allocations?.find(e=>"jackpot"===e.allocation_type);return t&&(t.dollar_amount??0)>0?{enabled:!0,amount:t.dollar_amount,limit:e.jackpot_limit??0,progressive:!1}:!0===e.jackpot_enabled&&t&&t.percentage>0?{enabled:!0,amount:e.jackpot_amount??0,limit:e.jackpot_limit??0,progressive:!0}:!0===e.jackpot_enabled&&(e.jackpot_amount??0)>0?{enabled:!0,amount:e.jackpot_amount,limit:e.jackpot_limit??0,progressive:!1}:{enabled:!1,amount:0,limit:0,progressive:!1}}function dn(e,t,n){return"racing"===e||!(!t?.length||!t.every(nn))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function hn(e,t){const n={basketball_nba:"NBA",americanfootball_nfl:"NFL",icehockey_nhl:"NHL",baseball_mlb:"MLB",soccer_epl:"Premier League",soccer_usa_mls:"MLS",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL",aussierules_aflw:"AFLW",rugbyleague_nrlw:"NRLW","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function un(e,t,n){const o=t?.[e];return o||hn(e,n)}function gn(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function fn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function pn(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function yn(e,t,n){return!t||!!e&&(pn(e,t,n)||pn(t,e,n))}function mn(e,t){return t.find(t=>t.id===e)}function bn(e,t){let n=e;return t?.category&&(n=n.filter(e=>tn(e)===t.category)),t?.sport&&(n=n.filter(n=>It(n)?function(e,t,n,o){if(yn(e.sport,t,n))return!0;if(!o)return!1;for(const r of Et(e)){const e=mn(r,o);if(e&&yn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):yn(n.sport,t.sport,t.sportBaseKey))),n}function wn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function xn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>pn(t,e,n))}function kn(e,t,n){return!(n?.category&&!wn(e,n.category))&&!(n?.sport&&!xn(e,n.sport,n.sportBaseKey))&&bn(Bn(t,e),n).length>0}function Sn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!wn(e,t.category)||t.sport&&!xn(e,t.sport,t.sportBaseKey))):e}function Cn(e,t){if(e.sport||!It(e))return e;const n=_t(e,t);return"Other"===n?e:{...e,sport:n}}function Bn(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,i=t.allowed_markets&&t.allowed_markets.length>0;return r||i?e.filter(l=>{if(qt(l))return!1;if(r)if(It(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>pn(e.sport,t,n)))return!0;if(!o)return!1;for(const r of Et(e)){const e=mn(r,o);if(e?.sport&&t.some(t=>pn(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>pn(l.sport,e,n)))return!1;return!(i&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Pt(e);return!!o&&n.includes(o)}(l,t))}).map(t=>Cn(t,e)):e.filter(e=>!qt(e)).map(t=>Cn(t,e))}function zn(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var vn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Fn(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,i,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*i+.0722*l>.4?n:t}function Wn(e,t,n){return dn(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Tn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!nn(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],r=null===e?null:t.find(t=>t.key===e);r?r.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function An(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function Ln(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const i of n)Math.random()<.5?o.push(i):r.push(i);return{yesPicks:o,noPicks:r}}var Rn=/* @__PURE__ */new Map,Dn=/* @__PURE__ */new Map;function Mn(e,t,n){let o=e;return t&&(o=o.replace(/currentColor/g,t)),n?o=o.replace(/var\(\s*--icon-accent\s*(?:,[^)]*)?\)/g,n):(o=o.replace(/var\(\s*--icon-accent\s*,\s*([^)]+)\)/g,"$1"),o=o.replace(/var\(\s*--icon-accent\s*\)/g,"currentColor")),o}function Pn({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Xe(t),[c,s]=e.useState(()=>a??Rn.get(t)??null);return e.useEffect(()=>{const e=Xe(t);if(e)return void s(e);if(Rn.has(t))return void s(Rn.get(t));let n=!1;return function(e){const t=Rn.get(e);if(void 0!==t)return Promise.resolve(t);const n=Dn.get(e);if(n)return n;const o=fetch(e).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(Rn.set(e,t),Dn.delete(e),t)).catch(t=>{throw Dn.delete(e),t});return Dn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:Mn(c,r,i),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(f,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function Hn({iconUrl:t,gameName:n,onPress:o,size:r=120,brandColor:i="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:c,captionColor:s="#14687C",accessibilityLabel:d}){const[u,g]=e.useState(!1),[f,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=r/360,k=a??l,S=pe(i,c,k),C=e.useRef(new h.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:i,opacity:e}),v=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),F=!!o&&(u||f);e.useEffect(()=>{h.timing(C,{toValue:F?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[F,C]);const L=()=>/* @__PURE__ */T(z,{style:[On.container,{width:r,height:r}],children:[
|
|
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 zn({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 vn({size:e=20,color:t="currentColor"}){/* @__PURE__ */
|
|
39
|
+
return T(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M5 11h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M8 11V7a4 4 0 1 1 8 0v4",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Fn({size:e=20,color:t="currentColor"}){/* @__PURE__ */
|
|
40
|
+
return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Wn({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:[Tn.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:Tn.yes,children:"YES"}),/* @__PURE__ */W(S,{style:Tn.no,children:"NO"})]}),
|
|
43
|
+
/* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Tn.pill,{width:1.6*c,height:.85*c,borderRadius:.425*c,backgroundColor:d,transform:[{translateY:.02*-c}]}],children:n??/* @__PURE__ */W(Bn,{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 Tn=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 An({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 Ln({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));tn(i,t)},m=r.background??"#fff";/* @__PURE__ */
|
|
46
|
+
return T(z,{style:[Rn.wrap,n],children:[
|
|
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:[Rn.content,t],children:o}),h&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll left",onPress:()=>y(-1),style:[Rn.nav,Rn.navLeft,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(z,{style:Rn.navFlip,children:/* @__PURE__ */W(zn,{size:14,color:r.primary})})}),g&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll right",onPress:()=>y(1),style:[Rn.nav,Rn.navRight,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(zn,{size:14,color:r.primary})})]})}var Rn=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 Dn(e,t){return Array.isArray(e)?null==t?0===e.length:e.includes(t):t===e}function Mn({groups:t,theme:n,bodyFont:o}){const r=n.colors,i=r.background??"#fff";return 0===t.length?null:/* @__PURE__ */W(Ln,{theme:n,contentContainerStyle:{gap:6},children:t.map((t,n)=>/* @__PURE__ */T(e.Fragment,{children:[n>0&&/* @__PURE__ */W(z,{style:[On.divider,{backgroundColor:r.border}]}),t.label?/* @__PURE__ */W(S,{style:[On.groupLabel,{color:r.textMuted,fontFamily:o}],children:t.label}):null,t.options.map(e=>{const n=Dn(t.value,e.value);/* @__PURE__ */
|
|
48
|
+
return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[On.chip,{borderColor:n?r.primary:r.border,backgroundColor:n?r.primary:i}],children:/* @__PURE__ */W(S,{style:[On.chipText,{color:n?r.primaryText:r.primary,fontFamily:o}],children:e.label})},e.value??"__all")})]},t.label??n))})}function Pn({groups:e,theme:t,bodyFont:n}){const o=t.colors,r=o.background??"#fff";return 0===e.length?null:/* @__PURE__ */W(z,{style:{gap:10},children:e.map((e,t)=>/* @__PURE__ */T(z,{style:{gap:6},children:[e.label?/* @__PURE__ */W(S,{style:[On.groupLabel,{color:o.textMuted,fontFamily:n}],children:e.label}):null,/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:6},children:e.options.map(t=>{const i=Dn(e.value,t.value);/* @__PURE__ */
|
|
49
|
+
return W(B,{onPress:()=>e.onChange(t.value),activeOpacity:.8,style:[On.chip,{borderColor:i?o.primary:o.border,backgroundColor:i?o.primary:r}],children:/* @__PURE__ */W(S,{style:[On.chipText,{color:i?o.primaryText:o.primary,fontFamily:n}],children:t.label})},t.value??"__all")})})]},e.label??t))})}function Hn({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){/* @__PURE__ */
|
|
50
|
+
return W(Mn,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var On=k.create({groupLabel:{fontSize:9,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.1,flexShrink:0},divider:{width:1,height:16,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:10,paddingVertical:4,flexShrink:0},chipText:{fontSize:11,fontWeight:"700",letterSpacing:-.12}}),In=/* @__PURE__ */new Map,En=/* @__PURE__ */new Map;function jn(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 Nn({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Xe(t),[c,s]=e.useState(()=>a??In.get(t)??null);return e.useEffect(()=>{const e=Xe(t);if(e)return void s(e);if(In.has(t))return void s(In.get(t));let n=!1;return function(e){const t=In.get(e);if(void 0!==t)return Promise.resolve(t);const n=En.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=>(In.set(e,t),En.delete(e),t)).catch(t=>{throw En.delete(e),t});return En.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:jn(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 Gn({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:[Yn.container,{width:r,height:r}],children:[
|
|
50
51
|
/* @__PURE__ */T(A,{viewBox:"0 0 360 360",width:r,height:r,children:[
|
|
51
52
|
/* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:i,strokeWidth:4}),
|
|
52
53
|
/* @__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,395 +55,391 @@ return W(Rt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i}
|
|
|
54
55
|
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.3),v(50)]}),
|
|
55
56
|
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.55),v(25)]}),
|
|
56
57
|
/* @__PURE__ */W(z,{pointerEvents:"none",style:B(1)}),
|
|
57
|
-
/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(
|
|
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
|
|
59
|
-
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function
|
|
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(
|
|
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:
|
|
62
|
-
/* @__PURE__ */W(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */W(
|
|
67
|
-
/* @__PURE__ */W(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
return
|
|
72
|
-
return T(z,{style:{
|
|
73
|
-
return
|
|
74
|
-
return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:En(e),overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:6},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:4},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function Qn({colors:e,rows:t=2}){/* @__PURE__ */
|
|
75
|
-
return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(Zn,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(Xn,{colors:e},n))})]})}function Jn({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:r=3,categoryCount:i=2,showTierTabs:l=!1}){const a=n?.trim()||"Loading",c=(()=>{switch(o){case"sport":/* @__PURE__ */return W(Gn,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return W(Yn,{colors:e});case"games":/* @__PURE__ */return W(qn,{colors:e,count:r,showTierTabs:l});case"propositions":/* @__PURE__ */return W(Kn,{colors:e});case"entries":/* @__PURE__ */return W(Qn,{colors:e,rows:2});default:/* @__PURE__ */return W(Nn,{colors:e,count:i})}})();/* @__PURE__ */
|
|
76
|
-
return T(z,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?/* @__PURE__ */W(S,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,c]})}function $n(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function _n(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function eo(e){if(!e||e.quick_pick_only)return!1;const t=_n(e.selection_scope);if("samegamemulti"===_n(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(_n);return n.includes("samegame")||n.includes("samegamemulti")}function to(e){return(e.eventId??e.event_id)?.trim()||null}function no(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!lo(n))continue;const e=to(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=oo(o.homeTeam,n.home_team),o.awayTeam=oo(o.awayTeam,n.away_team),o.sport=oo(o.sport,n.sport),o.league=oo(o.league,n.league),o.commenceTime=io(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=ro(e.commenceTime),o=ro(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function oo(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function ro(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function io(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=ro(e),r=ro(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function lo(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function ao(e,t){return t?e.filter(e=>lo(e)&&to(e)===t):[]}function co(e,t){return!!t&&e.length>0&&e.every(e=>lo(e)&&to(e)===t)}var so={signature:1,premier:2,exclusive:3},ho=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function uo(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function go(e,t){return e.filter(e=>uo(e)===t)}function fo(e){const t=new Set(e.map(uo));return ho.filter(e=>t.has(e.level))}function po(e){return fo(e)[0]?.id??"signature"}var yo=.21875,mo=[1,5,10,20,50],bo=[4,12];function wo(e){return(e??"").trim().toLowerCase()}var xo={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function ko(e){if(!e||e.quick_pick_only)return!1;const t=wo(e.rule);return Object.values(xo).includes(t)}function So(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,i=Math.round(Math.pow(2,t)),l=Math.pow(r,t)+Math.pow(1-r,t),a=Math.round(1/l),c=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*c*100)/100,multiple:c,totalOutcomes:i,winningOutcomes:2,oddsOneIn:a}}function Co(e){if(!ko(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??bo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??bo[1],o=zo(function(e){const t=wo(e?.rule);return Object.keys(xo).find(e=>xo[e]===t)??"straight"}(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const i=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=mo.filter(e=>e>=i&&(null===l||e<=l));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,i),l??20),minStake:i,maxStake:l,quickStakes:a,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Bo=[{id:"straight",name:"Straight Mirror",depth:1,minLegs:4,waysToWin:"2 ways to win",description:"All or nothing. Get every call right, or every call wrong. Both pay the same.",tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",tierNames:["Perfect"]},{id:"double",name:"Double Mirror",depth:2,minLegs:6,waysToWin:"4 ways to win",description:"Perfect, or one off, at either edge. All right or all wrong, plus the near miss on each side.",tagline:"Perfect, or one off, at either edge — four ways to land a win.",tierNames:["Perfect","Near"]},{id:"triple",name:"Triple Mirror",depth:3,minLegs:9,waysToWin:"6 ways to win",description:"Within two of a clean sweep, either way. Longer legs only, so you still miss the middle.",tagline:"Within two of a clean sweep, either way — six ways to land a win.",tierNames:["Perfect","Near","Third"]}];function zo(e){return Bo.find(t=>t.id===e)??Bo[0]}function vo(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let r=0;r<n;r++)o=o*(e-r)/(r+1);return Math.round(o)}var Fo=4,Wo=6,To=[4,12],Ao=[5,10,20,50];function Lo(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Ro(e){const t=e.payout_structure;return{margin:e.operator_margin??0,perLegProbability:t?.per_leg_probability??.5,perfectMultiple:t?.perfect_prize?.stake_multiple??25,perfectBaseLegs:t?.perfect_prize?.base_legs??6,nearMissBudgetFraction:t?.near_miss?.budget_fraction??.5,roundTo:t?.round_to??5}}function Do(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Mo(e,t){if(t<0||t>e)return 0;let n=1;for(let o=0;o<t;o+=1)n=n*(e-o)/(o+1);return Math.round(n)}function Po(e,t,n,o){const r=Math.max(0,Math.min(n,t)),i=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),l=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,a=Math.pow(1/o.perLegProbability,t),c=[];let s=Mo(t,0);for(let d=1;d<=r;d+=1)s+=Mo(t,d),c.push(Do(l*a/s,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:i,nearMiss:c,sweep:i+c.reduce((e,t)=>e+t,0)}}function Ho(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Oo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function Io(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Eo(e,t){const n=Io(t);return e.permitted_rules?.find(e=>Io(e.name??"").includes(n))??null}function jo(e,t,n){const o=t?.min_propositions??n,r=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==r||e<=r))}function No(e){if(!Lo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??To[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??To[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),r=Eo(e,"Extra Shot"),i=Eo(e,"Double Shot"),l=jo(o,r,4).filter(e=>e>1),a=jo(o,i,6).filter(e=>e>2);if(0===l.length)return null;const c=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:l,defaultLegs:Oo(l),ruleId:r?.id??null}],s=!e.permitted_rules?.length||!!i;a.length>0&&s&&c.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Oo(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=Ao.filter(e=>null===h||e<=h);return{modes:c,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(20,d),h??20),minStake:d,maxStake:h,quickAdds:u,tagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",pricing:Ro(e)}}function Go(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Yo(e,t,n){const o=Math.max(0,e-t),r=Po(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(Ho(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function Vo(e,t){return[{id:"net-1",label:"Extra Shot",stat:"Bigger payout",detail:["One wrong wins a prize","Perfect wins both","Miss twice and the ticket does not pay"],dividends:Yo(e,e-1,t),expectedCorrect:e-1},{id:"net-2",label:"Double Shot",stat:"Safer play",detail:["Two wrong wins a prize","One wrong wins two","Perfect wins all three"],dividends:Yo(e,e-2,t),expectedCorrect:e-2}]}function Uo(e,t){if(!e||e.quick_pick_only)return null;const n=function(e){return(e??"").trim().toLowerCase()}(e.rule),o=t??e.num_propositions??e.min_propositions??e.allowed_propositions?.[0]??0;return"safety_net"===n&&o>0?function(e,t){return{mode:"selection",kind:"safety_net",title:"Choose your safety net",headline:"2 Ways to PLAY, more ways to PAY",heroTagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",legCount:t,options:Vo(t,Ro(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:Go(t),continueLabel:"Continue to picks"}}(0,o):"pick"===n&&o>0?function(e,t){return{mode:"description",kind:"pick",title:"How it plays",headline:"Every hit PLAYS, every hit PAYS",heroTagline:"No all-or-nothing — your multiplier climbs with every correct pick.",legCount:t,highlights:["Make your yes/no picks across the available markets","Each correct pick pushes your multiplier higher","Land fewer than the full card and you can still cash"],continueLabel:"Continue to picks"}}(0,o):null}function qo(e){return null!=Uo(e)}var Ko=[500,1e3,2500,5e3,7500,1e4,12500,15e3],Zo=[12,11,10,9,8,7,6];function Xo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function Qo(e){return Math.round(100*e)/100}function Jo(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=Qo(r),a=i?r:Qo(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function $o(e,t=Zo){return{dividend:e,rungs:t.map(t=>Jo(e,t))}}function _o(e,t){if(!Xo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Zo.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??Ko;return{dividends:i.map(e=>$o(e,r)),defaultDividend:i.includes(1e4)?1e4:i[Math.floor(i.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}function er(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,i=0===n.length&&null!==o&&null!==r&&r>0,l=n.length>0?n:i?An(o,r):[],a=/* @__PURE__ */new Map;for(const p of t?.top_payouts??[]){const e=Number(p.proposition_count),t=Number(p.net_payout),n=Number(p.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const p of l){const e=Number(p);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const c=Array.from(a.values()).sort((e,t)=>e.count-t.count),s=l.length>0?Math.max(...l.map(Number)):0,d=Xo(e)?_o(e):null,h=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,u=d?[]:c.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),g=Uo(e,s),f="safety_net"===g?.kind?(g.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:l.map(Number),maxLegCount:s,tiers:u,modes:f,pydDividends:h,hasGenericDividends:(n.length>0||i)&&u.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function tr({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:i=null,colors:l,bodyFont:a,headingFont:s}){const d=e=>Math.min(Math.max(e,r),i??1/0),[h,u]=c(()=>String(d(20))),g=parseFloat(h),f=d(Number.isFinite(g)&&g>0?g:20),p=f/20,y=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),m=!!t?.length;if(!y)return null;const b=/* @__PURE__ */T(z,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
|
|
58
|
+
/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(Nn,{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 Yn=k.create({container:{position:"relative"}});function Vn({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__ */
|
|
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 Un(e){return e.selectionCard??e.backgroundAlt}function qn({color:e,style:t}){/* @__PURE__ */
|
|
60
|
+
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Kn({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=Un(t);/* @__PURE__ */
|
|
61
|
+
return W(z,{onLayout:e=>a(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */T(z,{style:{width:c,minHeight: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(qn,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */W(qn,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function Zn({colors:e,count:t=4}){const{width:n}=v(),o=n>=640,r=Un(e);/* @__PURE__ */
|
|
62
|
+
return W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexBasis:"48%",flexGrow:1,minWidth:0,flexDirection:"column",alignItems:"center",gap:8,borderRadius:16,borderWidth:1,paddingHorizontal:o?12:8,paddingVertical:o?16:12,backgroundColor:r,borderColor:e.border},children:[/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:o?64:56,width:o?64:56,borderRadius:12}}),/* @__PURE__ */T(z,{style:{minWidth:0,alignItems:"center",gap:6},children:[/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:14,width:80}}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:10,width:48}})]})]},n))})}function Xn({colors:e,count:t=3}){const n=Un(e);/* @__PURE__ */
|
|
63
|
+
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(qn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function Qn({colors:e,tileSize:t=116,width:n}){/* @__PURE__ */
|
|
64
|
+
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:Un(e)},children:[
|
|
65
|
+
/* @__PURE__ */W(qn,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),
|
|
66
|
+
/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),
|
|
67
|
+
/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),
|
|
68
|
+
/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function Jn({colors:e}){/* @__PURE__ */
|
|
69
|
+
return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function $n({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__ */
|
|
70
|
+
return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[r&&/* @__PURE__ */W(Jn,{colors:t}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */W(Qn,{colors:t,tileSize:o,width:a},n))})]})}function _n({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=v(),r=o>=640;/* @__PURE__ */
|
|
71
|
+
return T(z,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[/* @__PURE__ */W(qn,{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:Un(e),overflow:"hidden"},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),/* @__PURE__ */W(qn,{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(qn,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function eo({colors:e}){/* @__PURE__ */
|
|
72
|
+
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(qn,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function to({colors:e}){/* @__PURE__ */
|
|
73
|
+
return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:Un(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(qn,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(qn,{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(qn,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(qn,{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(qn,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(qn,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function no({colors:e,rows:t=2}){/* @__PURE__ */
|
|
74
|
+
return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(eo,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(to,{colors:e},n))})]})}function oo({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(Zn,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return W(Xn,{colors:e});case"games":/* @__PURE__ */return W($n,{colors:e,count:r,showTierTabs:l});case"propositions":/* @__PURE__ */return W(_n,{colors:e});case"entries":/* @__PURE__ */return W(no,{colors:e,rows:2});default:/* @__PURE__ */return W(Kn,{colors:e,count:i})}})();/* @__PURE__ */
|
|
75
|
+
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 ro(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function io(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function lo(e){if(!e||e.quick_pick_only)return!1;const t=io(e.selection_scope);if("samegamemulti"===io(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(io);return n.includes("samegame")||n.includes("samegamemulti")}function ao(e){return(e.eventId??e.event_id)?.trim()||null}function co(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!go(n))continue;const e=ao(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=so(o.homeTeam,n.home_team),o.awayTeam=so(o.awayTeam,n.away_team),o.sport=so(o.sport,n.sport),o.league=so(o.league,n.league),o.commenceTime=uo(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=ho(e.commenceTime),o=ho(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function so(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function ho(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function uo(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=ho(e),r=ho(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function go(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function fo(e,t){return t?e.filter(e=>go(e)&&ao(e)===t):[]}function po(e,t){return!!t&&e.length>0&&e.every(e=>go(e)&&ao(e)===t)}var yo={signature:1,premier:2,exclusive:3},mo=[{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 bo(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function wo(e,t){return e.filter(e=>bo(e)===t)}function xo(e){const t=new Set(e.map(bo));return mo.filter(e=>t.has(e.level))}function ko(e){return xo(e)[0]?.id??"signature"}var So=.21875;function Co(e){return null==e||Math.abs(e-.21875)<5e-5?So:e}var Bo=[1,5,10,20,50],zo=[4,12];function vo(e){return(e??"").trim().toLowerCase()}var Fo={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function Wo(e){if(!e||e.quick_pick_only)return!1;const t=vo(e.rule);return Object.values(Fo).includes(t)}function To(e){const t=vo(e?.rule);return Object.keys(Fo).find(e=>Fo[e]===t)??"straight"}function Ao(e,t,n){const o=Co(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 Lo(e){if(!Wo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??zo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??zo[1],o=Do(To(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=Bo.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:Co(e.operator_margin),perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Ro=[{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 Do(e){return Ro.find(t=>t.id===e)??Ro[0]}function Mo(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 Po(e,t,n,o){const r=Do(e),i=t*(1-Co(o?.operatorMargin)),l=Math.round(Math.pow(2,n)),a=[];let c=0;for(let s=0;s<r.depth;s++){const e=Mo(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 Ho=4,Oo=6,Io=[4,12],Eo=[5,10,20,50];function jo(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function No(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 Go(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Yo(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 Vo(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=Yo(t,0);for(let d=1;d<=r;d+=1)s+=Yo(t,d),c.push(Go(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 Uo(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 qo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function Ko(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Zo(e,t){const n=Ko(t);return e.permitted_rules?.find(e=>Ko(e.name??"").includes(n))??null}function Xo(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 Qo(e){if(!jo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Io[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Io[1],o=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=Zo(e,"Extra Shot"),i=Zo(e,"Double Shot"),l=Xo(o,r,4).filter(e=>e>1),a=Xo(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:qo(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:qo(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=Eo.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:No(e)}}function Jo(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function $o(e,t,n){const o=Math.max(0,e-t),r=Vo(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(Uo(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function _o(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:$o(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:$o(e,e-2,t),expectedCorrect:e-2}]}function er(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:_o(t,No(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:Jo(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 tr(e){return null!=er(e)}var nr=[1,5,10,20,50,100],or=[4,12];function rr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function ir(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 lr(e){if(!rr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??or[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??or[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=nr.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 ar=[500,1e3,2500,5e3,7500,1e4,12500,15e3],cr=[12,11,10,9,8,7,6];function sr(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function dr(e){return Math.round(100*e)/100}function hr(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=dr(r),a=i?r:dr(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function ur(e,t=cr){return{dividend:e,rungs:t.map(t=>hr(e,t))}}function gr(e,t){if(!sr(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=cr.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??ar;return{dividends:i.map(e=>ur(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 fr=50,pr=[25,50,75,100],yr=[{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 mr(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function br(e,t){return Math.round(e*t/50)}function wr(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:br(o,t),cumulative:br(n,t)}))}function xr(e,t){return br(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function kr(e,t,n){return br(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Sr(e){if(!mr(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=yr.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??pr[0],l=e.max_bet??pr[pr.length-1],a=pr.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:pr,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var Cr=.21875,Br=6,zr=5,vr=1,Fr=2;function Wr(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Tr={golden_point:!1,captains_challenge:!1};function Ar(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),i=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:i,perfect:r+i,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:Lr(t,n)}}function Lr(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function Rr(e,t){const n=Ar(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function Dr(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Mr(e){if(!Wr(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=Dr(e,e=>e.includes("challenge")&&!e.includes("golden")),l=Dr(e,e=>e.includes("challenge")&&e.includes("golden")),a=Dr(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 Pr(e){return e?.quick_pick_only?"quick_pick":rr(e)?"game_set":sr(e)?"pick_your_dividend":mr(e)?"ladder":Wo(e)?"mirror":jo(e)?"safety_net":Wr(e)?"six_again":lo(e)?"selections":tr(e)?"rule_setup":"selections"}function Hr(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(lo(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 Or(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||lo(e)||Hr(e))}function Ir(e){switch(Pr(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 Er(e,t){return jr(e)&&t&&t>0?t:null}function jr(e){switch(Pr(e)){case"game_set":case"pick_your_dividend":case"ladder":case"mirror":case"safety_net":case"six_again":return!0;default:return Hr(e)}}function Nr(e){const t=Pr(e);return"six_again"===t||"pick_your_dividend"===t}function Gr(e){return"six_again"===Pr(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function Yr(e,t,n,o){if(!e||t<=0||n<=0)return 0;switch(Pr(e)){case"game_set":return Vr(ir(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e);case"mirror":return Vr(Po(To(e),n,t,{operatorMargin:e.operator_margin??void 0}).tiers[0]?.prize??0,e);case"pick_your_dividend":return function(e,t,n=ar){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(hr(o,e).stake-t)<.005)return o;return 0}(t,n);case"ladder":{const o=yr.find(e=>e.legs===t);return o?Vr(xr(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 Vr(Vo(n,t,r,No(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 Vr(o,e);const r=e.payout_structure?.expression??e.payout_structure?.formula??"";return/2\s*\^/.test(r)?Vr(ir(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e):0}}}function Vr(e,t){return!1===t?.round_payouts?e:Go(e,t?.payout_structure?.round_to??1)}function Ur(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?en(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=sr(e)?gr(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?Vr(t.payout/t.betAmount*20,e):Yr(e,t.count,20)})),g=er(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 qr({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:[
|
|
77
76
|
/* @__PURE__ */W(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"Example values for a"}),
|
|
78
77
|
/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:l.textMuted,fontFamily:a},children:"$"}),
|
|
79
78
|
/* @__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}}),
|
|
80
|
-
/* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=i?` (${
|
|
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:
|
|
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:
|
|
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?
|
|
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
|
|
79
|
+
/* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=i?` (${kt(r)}–${kt(i)})`:` (min ${kt(r)})`,"."]})]});/* @__PURE__ */
|
|
80
|
+
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:kt(e.payout20*p)})]},e.label))]},e.id)):/* @__PURE__ */T(F,n?.length?{children:[
|
|
81
|
+
/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Dividend"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:kt(e.dividend)}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:a},children:kt(e.stakeFrom)})]},e.dividend)),
|
|
82
|
+
/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[/* @__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?kt(e.payout20*p):"—"})]},e.count))]})]})]})}function Kr({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__ */
|
|
83
|
+
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 Zr={scrollSnapType:"x mandatory"},Xr={scrollSnapAlign:"center"};function Qr({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
|
|
85
84
|
return T(z,{style:{position:"relative",width:t,height:t},children:[/* @__PURE__ */T(A,{viewBox:"30 -5 280 280",width:t,height:t,children:[
|
|
86
85
|
/* @__PURE__ */W(I,{x:90,y:55,width:210,height:210,rx:42,fill:n,opacity:.3}),
|
|
87
86
|
/* @__PURE__ */W(I,{x:65,y:30,width:210,height:210,rx:42,fill:n,opacity:.55}),
|
|
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(
|
|
87
|
+
/* @__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(Nn,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function Jr({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:g,legOptions:f,onPick:p,colors:y,menuShadow:b}){const[w,x]=c(!1),[k,C]=c(null),v=a(null),A=a(null),[L,R]=c(null),[D,M]=c(!1),[P,H]=c(null),O="web"===m.OS,I=40+40*f.length+12;i(()=>{if(!w||!O)return;const e=v.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0,r=window.innerHeight-t.bottom,i=t.top,l=r<I&&i>r;R({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[w,O,I]),r(()=>{if(!w)return;if(O){const e=e=>{const t=v.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||A.current&&A.current.contains(n)||x(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=v.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);M(r<I&&t>r),H({x:e,y:t,width:n,height:o})})},[w,O,I]);const E=/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:y.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:y.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:g},children:"How many picks?"})}),f.map((e,t)=>/* @__PURE__ */T(B,{onPress:()=>{x(!1),C(null),p(e)},onMouseEnter:()=>C(e),onMouseLeave:()=>C(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:y.border,backgroundColor:k===e?y.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:y.text,fontFamily:g},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:ne(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:g},children:"QP"})]},e))]});/* @__PURE__ */
|
|
89
88
|
return T(z,{ref:v,style:{position:"relative"},children:[
|
|
90
|
-
/* @__PURE__ */W(
|
|
91
|
-
/* @__PURE__ */W(
|
|
92
|
-
return T(z,{style:[
|
|
89
|
+
/* @__PURE__ */W(Gn,{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),
|
|
90
|
+
/* @__PURE__ */W(Vn,{visible:w&&!O,anchor:P,onClose:()=>x(!1),flipUp:D,align:"right",children:/* @__PURE__ */W(z,{style:{elevation:6,backgroundColor:y.background,borderRadius:8,borderWidth:1,borderColor:y.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:E})})]})}function $r({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:g=!1,onPropositionCountChange:f,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=je(s,d),w=b.colors,k=be(b),C=Ne(b),v=Ge(b),A=se(b),L=ce(b),R=fe(b),D="dark"===b.colorScheme,M=l(()=>function(e){const t=new Set(e.filter(e=>Wo(e)&&vo(e.rule)===Fo.straight).map(bo));return e.filter(e=>!(Wo(e)&&vo(e.rule)!==Fo.straight&&t.has(bo(e))))}(e),[e]),P=l(()=>xo(M),[M]),[H,O]=c(()=>ko(M));r(()=>{0!==P.length&&(P.some(e=>e.id===H)||O(P[0].id))},[P,H]);const I=l(()=>!g||P.length<=1?M:wo(M,yo[H]),[M,g,P.length,H]),E=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,j=(e,t)=>{e.quick_pick_only&&y&&t>0?y(e,t):(t>0&&!lo(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));tn(_,t*Q),te(t)};r(()=>{tn(_,0,!1),te(0)},[H]);const re={shadowColor:"#000",shadowOpacity:D?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W($n,{colors:ke(b),count:Math.min(Math.max(M.length,2),4),showTierTabs:g&&P.length>1}):i?/* @__PURE__ */W(z,{style:_r.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===M.length?/* @__PURE__ */W(z,{style:_r.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(Kr,{tabs:P,active:H,onChange:O,colors:w,bodyFont:C,useShortLabel:U}),0===I.length?/* @__PURE__ */W(z,{style:_r.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:Zr,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=Xt(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Qt[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=Dt(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:g,tiers:f,modes:x,pydDividends:B,hasGenericDividends:F,minBet:D,maxBet:M}=Ur(e,m?.[e.id]),P=Ze(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
|
|
91
|
+
return T(z,{style:[_r.gameCard,Xr,{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(Jr,{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(Gn,{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
92
|
/* @__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(
|
|
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=
|
|
96
|
-
return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===ee,disabled:!n},onPress:()=>(e=>{j(e,er(e,m?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===ee?w.primary:"transparent",opacity:n?1:.5,width:K},children:[/* @__PURE__ */W(ir,{iconUrl:Ze(e),size:Y?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:R}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===ee?w.primary:A,fontFamily:v},children:E(e)})]},e.id)})})]})]})}var cr=k.create({centerContainer:{alignItems:"center",justifyContent:"center",padding:32,gap:8},gameCard:{flexDirection:"column",alignItems:"center",borderWidth:1,borderRadius:24,paddingHorizontal:20,paddingTop:22,paddingBottom:20},jackpotBadge:{alignSelf:"center",flexDirection:"row",alignItems:"center",gap:2,paddingHorizontal:8,paddingVertical:2,borderRadius:999},jackpotBadgeText:{fontSize:10,fontWeight:"700"},tagsRow:{flexDirection:"row",flexWrap:"wrap",gap:4},tag:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},tagText:{fontSize:12}}),sr=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),i="GET"===r,l=i,a=!i&&!n?.idempotent,c=`${r} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[i,l]of Object.entries(o.payload||{}))r[Number(i)]=l;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function dr(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[g,f]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),f(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:g,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function hr(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getPropositions(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,g]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function ur(e,t){const[o,i]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,u=n(async()=>{if(!h)try{a(!0),d(null),i(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return r(()=>{u()},[u]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await u()},[e,u])}}function gr(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getGameEntries(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,g]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function fr(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,g=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!g.current.has(e.id));if(0===n.length)return;for(const e of n)g.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:i,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function pr(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{createEntry:async t=>{try{o(!0),i(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const n=await e.createGameEntry(t);return a(n),n}catch(n){const e=n instanceof Error?n.message:"Failed to create entry";throw i(e),new Error(e)}finally{o(!1)}},loading:t,error:r,entry:l,clearSubmitError:n(()=>i(null),[])}}function yr(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[i,l]=c({}),[a,s]=c(null);return{step:t,selectedGame:o,selections:i,placedEntry:a,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),l({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),l({}))},reset:()=>{n("game"),r(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function mr(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{evaluate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.evaluateRule(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to evaluate rule";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function br(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{calculate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.calculatePayout(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to calculate payout";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function wr(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{preview:n(async(t,n)=>{try{o(!0),i(null);const r=await e.getEntryPreview(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to preview entry";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}var xr=["totals","spread","player"],kr={totals:"Total",spread:"Spread",player:"Player"},Sr={totals:"One total per match — the match total, a quarter or a half all count",spread:"One result per match — the line, the margin or the head-to-head all count",player:"One player prop per match"};function Cr(e,t){return t?`${Sr[e]} (taken)`:Sr[e]}var Br=/racing|greyhound|harness|trots/,zr=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function vr(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return Br.test(o)||Br.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":zr.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function Fr(e){return vr(Pt(e)??"",Ht(e),e.sport??"")}function Wr(e,t){if(It(e)){const n=Nt(e,t),o=/* @__PURE__ */new Set;for(const t of n?.legs??[]){const n=t.prop?Fr(t.prop):vr("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=Fr(e);return n?[n]:[]}function Tr(e){return to(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var Ar=/* @__PURE__ */new Set;function Lr(e,t,n){const o=/* @__PURE__ */new Map;for(const i of e){if(!(i.id in t))continue;const e=Tr(i);if(e)for(const t of Wr(i,n)){const n=o.get(e)??/* @__PURE__ */new Map;n.has(t)||n.set(t,i.id),o.set(e,n)}}const r=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):Ar};return{isCapped:e=>{const t=Tr(e);if(!t)return!1;const r=o.get(t);return!!r&&Wr(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:r,slotsFor:e=>{const t=r(e);return xr.map(e=>({family:e,label:kr[e],filled:t.has(e)}))}}}var Rr=[1,5,10,20,50,100],Dr=[4,12];function Mr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Pr(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,i=Math.round(Math.pow(1/r,t)),l=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*l*100)/100,multiple:l,oddsOneIn:i}}function Hr(e){if(!Mr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Dr[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Dr[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),i=e.max_bet??null,l=Rr.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Or=50,Ir=[25,50,75,100],Er=[{legs:4,firstPayingTier:3,tiers50:[[3,60],[4,340]]},{legs:6,firstPayingTier:4,tiers50:[[4,40],[5,110],[6,850]]},{legs:8,firstPayingTier:5,tiers50:[[5,30],[6,70],[7,300],[8,2100]]},{legs:9,firstPayingTier:5,tiers50:[[5,10],[6,40],[7,100],[8,350],[9,4500]]},{legs:10,firstPayingTier:6,tiers50:[[6,15],[7,45],[8,140],[9,800],[10,1e4]]}];function jr(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Nr(e,t){return Math.round(e*t/50*100)/100}function Gr(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Nr(o,t),cumulative:Nr(n,t)}))}function Yr(e,t){return Nr(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Vr(e,t,n){return Nr(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Ur(e){if(!jr(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Er.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===r.length)return null;const i=e.min_bet??Ir[0],l=e.max_bet??Ir[Ir.length-1],a=Ir.filter(e=>e>=i&&e<=l);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:Ir,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var qr=.21875,Kr=6,Zr=5,Xr=1,Qr=2;function Jr(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var $r={golden_point:!1,captains_challenge:!1};function _r(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),i=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:i,perfect:r+i,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:ei(t,n)}}function ei(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function ti(e,t){const n=_r(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function ni(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function oi(e){if(!Jr(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),i=ni(e,e=>e.includes("challenge")&&!e.includes("golden")),l=ni(e,e=>e.includes("challenge")&&e.includes("golden")),a=ni(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:i?.id??null,goldenChallenge:l?.id??null}}}function ri(e){return e?.quick_pick_only?"quick_pick":Mr(e)?"game_set":Xo(e)?"pick_your_dividend":jr(e)?"ladder":ko(e)?"mirror":Lo(e)?"safety_net":Jr(e)?"six_again":eo(e)?"selections":qo(e)?"rule_setup":"selections"}function ii(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(eo(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function li(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||eo(e)||ii(e))}function ai(e){switch(ri(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function ci(e){const t=ri(e);return"six_again"===t||"pick_your_dividend"===t}function si(e){return"six_again"===ri(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function di(e,t,n){if(!e||t<=0||n<=0)return 0;switch(ri(e)){case"game_set":return Pr(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return So(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=Ko){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(Jo(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var hi=t(null),ui={};function gi(){const e=o(hi);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function fi({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:g,colorScheme:f,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:v,disableQuickPick:F=!1,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:D,onEntryPlaced:M,onBeforeSubmit:P,onCancel:H,onShare:O,onRecharge:I,onClearEventFilter:E,screenSize:j="desktop",howToPlayMarkdown:N,sportDisplayNames:G,categoryDisplayNames:Y}){const V=je(g,f),U=Ne(V),q=Ge(V),K=!(!p||!y),Z=l(()=>new sr({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[X,Q]=c(0),J=a(0),[$,_]=c(0),[ee,te]=c([]),[ne,oe]=c({}),[re,ie]=c({}),[le,ae]=c(void 0),[ce,se]=c(null),[de,he]=c(void 0),ue=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&he(e)}catch(e){}},[h]);r(()=>{h?ue():he(void 0)},[h,ue]);const ge=a(null),fe=a(null),[pe,ye]=c(null),[me,be]=c(C??null),[we,xe]=c(B??null);r(()=>{C&&be(C)},[C]),r(()=>{xe(B??null)},[B]);const[ke,Se]=c(B),Ce=a(!1);r(()=>{if(!B)return Se(void 0),void(Ce.current=!1);Ce.current||Se(B)},[B]);const Be=w??pe??void 0,ze=fn(me??S??C??void 0,v),ve=fn(S,v)??S,Fe=me??void 0,{games:We,howToPlayMarkdown:Te,loading:Ae,error:Le}=dr(Z,{category:Be,jurisdiction:x,sport:ze},{skip:K}),{propositions:Re,loading:De,error:Me}=hr(Z,{category:Be,sport:ve,event_id:ke},{skip:K}),{sports:Pe,loading:He}=ur(Z,{skip:K}),{createEntry:Oe,loading:Ie,error:Ee,clearSubmitError:Ye}=pr(Z),{preview:Ve}=wr(Z),Ue=l(()=>Sn((K?p:We)??[],{category:Be,sport:ze??Fe,sportBaseKey:v}),[K,p,We,Be,ze,Fe,v]),qe=N??Te??null,{maxPayouts:Ke,refetchGame:Ze}=fr(Z,Ue??[],{skip:K,betAmount:20}),Xe=K?b??ui:Ke,Qe=K?y:Re,Je=S?(Qe??[]).filter(e=>e.sport===S):Qe,$e=l(()=>rn(Je??[]),[Je]),_e=l(()=>Be||(1===$e.length?$e[0]:void 0),[Be,$e]),et=l(()=>{const e=Je??[];return _e?bn(e,{category:_e,sportBaseKey:v}):e},[Je,_e,v]),tt=l(()=>Fe?bn(et,{sport:Fe,sportBaseKey:v}):et,[et,Fe,v]),nt=l(()=>({category:_e,sport:Fe,sportBaseKey:v}),[_e,Fe,v]),ot=l(()=>{const e=(Ue??[]).filter(e=>e.active);if(!_e&&$e.length>1)return[];const t=_e?Sn(e,nt):e;return _e||Fe?function(e,t,n){return n?.category||n?.sport?e.filter(e=>kn(e,t,n)):e}(t,tt,nt):t},[Ue,tt,nt,_e,Fe,$e.length]),{step:rt,selectedGame:it,selections:lt,placedEntry:at,setGameOnly:ct,clearSelectedGame:st,goToSportSelection:dt,goToConfirmation:ht,goToSuccess:ut,goBack:gt,reset:ft,toggleSelection:pt}=yr(k),yt=e.useCallback(()=>{Ce.current=!0,Se(void 0),ft(),E?.()},[ft,E]),mt=!!ke,bt=mt?z:void 0,wt=!K&&(Ae||De||!!it&&He),xt=K?null:it?Le||Me:Le,kt=l(()=>it?Bn(tt,it,v):tt,[it,tt,v]),St=l(()=>{const e=it?Bn(et,it,v):et,t=it?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const r=_t(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[it,et,v]),Ct=l(()=>St.map(e=>e.key),[St]),Bt=l(()=>it?kt:et,[it,kt,et]),zt=l(()=>bn(it?kt:et,{category:_e}),[it,kt,et,_e]),vt=l(()=>{const e=new Set(Ct);return Pe.filter(t=>e.has(t.key))},[Pe,Ct]),Ft=l(()=>bn(kt,{category:_e,sport:me}),[kt,_e,me]),Wt=l(()=>{if(!it||!eo(it))return[];const{min:e}=cn(it,le),t=le??e;return no(Ft).filter(e=>e.propositionCount>=t)},[it,le,Ft]),Tt=l(()=>eo(it)?ao(Ft,we):Ft,[it,Ft,we]),At=function(e,t){const[n,o]=c([]),i=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(It(n))for(const e of Et(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(K?null:Z,l(()=>[...Je??[],...Tt],[Je,Tt])),Lt=l(()=>Lr(kt,lt,At),[kt,lt,At]),Rt=n((e,t)=>{if(!(e in lt)){const t=kt.find(t=>t.id===e);if(t&&Lt.isCapped(t))return}pt(e,t)},[lt,kt,Lt,pt]),Dt=Object.keys(lt).map(Number),Mt=Dt.length,Pt=l(()=>Ft.filter(e=>Dt.includes(e.id)),[Ft,Dt]);r(()=>{w||pe||1===$e.length&&ye($e[0])},[w,pe,$e]),r(()=>{if(!it)return;const e=kt,t=new Set(e.map(tn));let n=pe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==pe&&ye(n));const o=n?e.filter(e=>tn(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=_t(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=it.allowed_sports;be(e=>e&&r.has(e)&&(!i?.length||i.includes(e))?e:1===i?.length&&r.has(i[0])?i[0]:1===r.size?Array.from(r)[0]:(()=>{const e=/* @__PURE__ */new Map;for(const r of o){const t=_t(r,o);"Other"!==t&&(i?.length&&!i.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[it?.id,kt,pe]),r(()=>{Ye()},[it?.id,rt,Ye]),r(()=>{it&&_e&&(wn(it,_e)||st())},[it,_e,st]),r(()=>{it&&(kn(it,tt,{category:_e,sport:me,sportBaseKey:v})||st())},[it,_e,me,v,tt,st]),r(()=>{if(it){const e=ge.current,t=fe.current!==it.id;if(fe.current=it.id,null!=e?.stake&&e.stake>0?_(e.stake):t&&_(Math.max(20,it.min_bet??0)),e){const{count:t}=e;return ge.current=null,ae(t),void Q(t)}if(it.allowed_propositions&&it.allowed_propositions.length>0){const e=le;null!=e&&it.allowed_propositions.includes(e)?Q(e):(ae(void 0),Q(0))}else ae(void 0),Q(it.num_propositions||it.max_propositions||0)}},[it]);const Ht=(e,t,n)=>{const o=(Xe[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,i=o&&r>0?o.net_payout/r*n:0;return i>0?i:di((Ue??[]).find(t=>t.id===e)??(it?.id===e?it:null),t,n)};r(()=>{if("sport"!==rt&&"confirm"!==rt||!it||K)return;const e=eo(it)&&we?Tt.length:Number.MAX_SAFE_INTEGER;let t;if(it.allowed_propositions&&it.allowed_propositions.length>0){const n=it.allowed_propositions?[...it.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ie({});const o=le??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ie({});t=[o,...r]}else{const{min:n,max:o}=cn(it),r=Math.min(o,e);if(n<=0||r<=n)return void ie({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ht(it.id,o,20);ie(n)},[rt,it,le,we,Tt.length,K,Xe]),r(()=>{if("confirm"!==rt||!it)return;const e=Dt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ht(it.id,r,$);oe(n),e!==J.current?(J.current=e,Q(e)):(X>e||X<=0&&e>0)&&Q(e);const o=$>0?$:Math.max(it.min_bet??20,.01);return(async()=>{try{const n=await Ve(it.id,{actual:X,predicted:X,total:e,bet_amount:o,rule_id:ce});if(t)return;if(te(n.winning_counts),$>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Ht(it.id,n,$)}oe(e)}}catch{t||te([])}})(),()=>{t=!0}},[rt,it,Dt.length,X,$,Ve,Xe,ce]);const Ot=l(()=>{return t=ce,(e=it)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[it,ce]),jt=!eo(it)||co(Pt,we),Nt=it?cn(it,void 0,Ot):null,Gt=!(!it||!jt)&&(it.allowed_propositions&&it.allowed_propositions.length>0?null!=le&&Mt===le&&an(Mt,Nt?.min,Nt?.max):an(Mt,Nt?.min,Nt?.max)),Yt=it?.min_bet??0,Vt=Math.max(Yt,.01),Ut=null==de||$<=de,qt=!Ie&&$>=Vt&&Gt&&Ut,Kt=e=>{ae(e),Q(e);for(const t of Object.keys(lt))pt(Number(t),lt[Number(t)])},Zt=e=>{ae(e),Q(e)},Xt=e=>{xe(eo(e)?B??null:null),ct(e)},Qt=e=>{if(e!==we){for(const e of Object.keys(lt)){const t=Number(e);pt(t,lt[t])}xe(e)}},Jt=(e,t,n)=>{ge.current={count:t,stake:n},ct(e),Ze(e.id);const o=e.allowed_sports??[];let r=null;me&&o.some(e=>pn(me,e,v))?r=me:1===o.length&&(r=o[0]),be(r);for(const c of Object.keys(lt)){const e=Number(c);pt(e,lt[e])}let i=bn(Bn(Je??[],e,v),{category:_e,sport:r,sportBaseKey:v});const l=Math.max(0,Math.min(t,i.length)),a=function(e,t,n){const o=[],r=/* @__PURE__ */new Map;for(const i of e){if(o.length>=t)break;const e=Tr(i),l=e?Wr(i,n):[];if(e&&l.length>0){const t=r.get(e)??/* @__PURE__ */new Set;if(l.some(e=>t.has(e)))continue;for(const e of l)t.add(e);r.set(e,t)}o.push(i)}return o}([...i].sort(()=>Math.random()-.5),l,At);for(const c of a)pt(c.id,Math.random()<.5?"yes":"no");ht()},$t=a(!1),en=async()=>{if(it&&Gt&&!$t.current){if(K){const e={id:Math.floor(1e4*Math.random()),game_id:it.id,user_id:d,proposition_ids:Dt,selections:lt,pending:!0,expected_correct:X,bet_amount:$};return M?.(e),ut(e),void ue()}$t.current=!0;try{P&&await P($);const e=await Oe({game_id:it.id,user_id:d,proposition_ids:Dt,selections:lt,stake:$,rule_id:Ot?.id??null});M?.(e),ut(e),ue()}catch(e){}finally{$t.current=!1}}},nn=n(e=>G?.[e]??vt.find(t=>t.key===e)?.label??un(e,void 0,v),[G,vt,v]),on=n(e=>gn(e,Y),[Y]),ln=l(()=>({theme:V,bodyFont:U,headingFont:q,games:ot,propositions:Tt,compositeComponentById:At,propositionsForCategoryPicker:Bt,sportsForSelectedGame:Ct,sportOptions:St,propositionsForSportPicker:zt,sportSummaries:vt,loading:wt,error:xt,step:rt,selectedGame:it,selections:lt,placedEntry:at,selectedPropositionIds:Dt,selectedPropositions:Pt,selectionValid:Gt,selectedRuleId:ce,setSelectedRuleId:se,selectedRule:Ot,answeredCount:Mt,betAmount:$,setBetAmount:_,expectedCorrect:X,setExpectedCorrect:Q,selectedPropositionCount:le,handlePropositionCountChange:Kt,upgradePropositionCount:Zt,winningCounts:ee,payouts:ne,overloadPayouts:re,submitting:Ie,submitError:Ee,canSubmit:qt,gamePrice:Yt,userBalance:de,hasSufficientBalance:Ut,refreshUserBalance:ue,handleSubmit:en,selectGame:Xt,goToSportSelection:dt,goToConfirmation:ht,goBack:gt,reset:ft,clearSelectedGame:st,toggleSelection:Rt,quickPickGame:Jt,selectedCategory:pe,setSelectedCategory:ye,selectedSport:me,setSelectedSport:be,selectedEventId:we,sameGameMultiEvents:Wt,selectSameGameMultiEvent:Qt,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:F,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:D,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:v,gameCategory:w,eventFilterActive:mt,eventFilterLabel:bt,clearEventFilter:yt,screenSize:j,displaySportName:nn,displayCategoryName:on,maxPayouts:Xe??{},howToPlayMarkdown:qe,onEntryPlaced:M,onCancel:H,onShare:O,onRecharge:I,demoEntries:m,demoGames:p,demoPropositions:y}),[V,U,q,ot,Tt,At,Bt,zt,Ct,St,vt,wt,xt,rt,it,lt,at,Dt,Pt,Gt,Mt,$,X,le,ce,Ot,ee,ne,re,Ie,Ee,qt,Yt,t,o,d,de,i,s,F,T,A,L,R,D,S,C,B,v,w,j,mt,bt,yt,pe,me,we,Wt,Xe,qe,M,H,O,I,E,m,p,y,Kt,nn,on]);/* @__PURE__ */
|
|
97
|
-
return W(
|
|
98
|
-
return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-
|
|
93
|
+
/* @__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(Sn,{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(qr,{tiers:F?f:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>j(e,t):void 0,minBet:D,maxBet:M,colors:w,bodyFont:C,headingFont:v}),colors:w,bodyFont:C,headingFont:v})]}),s?/* @__PURE__ */W(S,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:w.primary,textAlign:"center",fontFamily:C},children:s}):null,c?/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:w.textMuted,textAlign:"center",fontFamily:C},children:c}):null,a.enabled&&/* @__PURE__ */W(z,{style:[_r.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[_r.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?kt(a.amount):a.limit>0?`Up to ${kt(a.limit)}`:"Jackpot":kt(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[_r.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[_r.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[_r.tagText,{color:de(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[_r.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[_r.tagText,{color:de(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[_r.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[_r.tagText,{color:de(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[_r.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[_r.tagText,{color:de(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(on,{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__ */
|
|
94
|
+
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=Xt(e);/* @__PURE__ */
|
|
95
|
+
return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===ee,disabled:!n},onPress:()=>(e=>{j(e,Ur(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(Qr,{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 _r=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}`,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 ti(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 ni(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 oi(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 ri(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 ii(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 li(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 ai(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=>{o?.id!==e.id&&l({}),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 ci(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 si(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 di(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 hi=["totals","spread","player"],ui={totals:"Total",spread:"Spread",player:"Player"},gi={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 fi(e,t){return t?`${gi[e]} (taken)`:gi[e]}var pi=/racing|greyhound|harness|trots/,yi=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function mi(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return pi.test(o)||pi.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":yi.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function bi(e){return mi(rt(e)??"",it(e),e.sport??"")}function wi(e,t){if(at(e)){const n=dt(e,t),o=/* @__PURE__ */new Set;for(const t of n?.legs??[]){const n=t.prop?bi(t.prop):mi("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=bi(e);return n?[n]:[]}function xi(e){return ao(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var ki=/* @__PURE__ */new Set;function Si(e,t,n){const o=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map;for(const l of e){const e=xi(l);if(!e)continue;const i=wi(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()):ki};return{isCapped:e=>{const t=xi(e);if(!t)return!1;const r=o.get(t);return!!r&&wi(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 hi.filter(e=>t.has(e)).map(e=>({family:e,label:ui[e],filled:n.has(e)}))}}}function Ci(e,t,n){const o=[],r=/* @__PURE__ */new Map;for(const i of e){if(o.length>=t)break;const e=xi(i),l=e?wi(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 Bi=t(null),zi={};function vi(){const e=o(Bi);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Fi({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:g,colorScheme:f,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:v,disableQuickPick:F=!1,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:D,yesNoLabels:M,onEntryPlaced:P,onBeforeSubmit:H,onCancel:O,onShare:I,onRecharge:E,onClearEventFilter:j,screenSize:N="desktop",howToPlayMarkdown:G,sportDisplayNames:Y,categoryDisplayNames:V}){const U=je(g,f),q=Ne(U),K=Ge(U),Z=!(!p||!y),X=l(()=>new ei({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[Q,J]=c(0),$=a(0),[_,ee]=c(0),[te,ne]=c([]),[oe,re]=c({}),[ie,le]=c({}),[ae,ce]=c(void 0),[se,de]=c(null),[he,ue]=c(void 0),ge=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&ue(e)}catch(e){}},[h]);r(()=>{h?ge():ue(void 0)},[h,ge]);const fe=a(null),pe=a(null),[ye,me]=c(null),[be,we]=c(C??null),[xe,ke]=c(B??null);r(()=>{C&&we(C)},[C]),r(()=>{ke(B??null)},[B]);const[Se,Ce]=c(B),Be=a(!1);r(()=>{if(!B)return Ce(void 0),void(Be.current=!1);Be.current||Ce(B)},[B]);const ze=w??ye??void 0,ve=It(be??S??C??void 0,v),Fe=It(S,v)??S,We=be??void 0,{games:Te,howToPlayMarkdown:Ae,loading:Le,error:Re}=ti(X,{category:ze,jurisdiction:x,sport:ve},{skip:Z}),{propositions:De,loading:Me,error:Pe}=ni(X,{category:ze,sport:Fe,event_id:Se},{skip:Z}),{sports:He,loading:Oe}=oi(X,{skip:Z}),{createEntry:Ie,loading:Ee,error:Ye,clearSubmitError:Ve}=li(X),{preview:Ue}=di(X),qe=l(()=>qt((Z?p:Te)??[],{category:ze,sport:ve??We,sportBaseKey:v}),[Z,p,Te,ze,ve,We,v]),Ke=G??Ae??null,{maxPayouts:Ze,refetchGame:Xe}=ii(X,qe??[],{skip:Z,betAmount:20}),Qe=Z?b??zi:Ze,Je=Z?y:De,$e=S?(Je??[]).filter(e=>e.sport===S):Je,_e=l(()=>Tt($e??[]),[$e]),et=l(()=>ze||(1===_e.length?_e[0]:void 0),[ze,_e]),tt=l(()=>{const e=$e??[];return et?Gt(e,{category:et,sportBaseKey:v}):e},[$e,et,v]),nt=l(()=>We?Gt(tt,{sport:We,sportBaseKey:v}):tt,[tt,We,v]),ot=l(()=>({category:et,sport:We,sportBaseKey:v}),[et,We,v]),rt=l(()=>{const e=(qe??[]).filter(e=>e.active);if(!et&&_e.length>1)return[];const t=et?qt(e,ot):e;return et||We?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Ut(e,t,n)):e}(t,nt,ot):t},[qe,nt,ot,et,We,_e.length]),{step:it,selectedGame:lt,selections:st,placedEntry:dt,setGameOnly:ht,clearSelectedGame:ut,goToSportSelection:gt,goToConfirmation:ft,goToSuccess:pt,goBack:yt,reset:mt,toggleSelection:bt}=ai(k),wt=e.useCallback(()=>{Be.current=!0,Ce(void 0),mt(),j?.()},[mt,j]),kt=!!Se,St=kt?z:void 0,Ct=!Z&&(Le||Me||!!lt&&Oe),zt=Z?null:lt?Re||Pe:Re,Ft=l(()=>lt?Zt(nt,lt,v):nt,[lt,nt,v]),Wt=l(()=>{const e=lt?Zt(tt,lt,v):tt,t=lt?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const r=Bt(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[lt,tt,v]),At=l(()=>Wt.map(e=>e.key),[Wt]),Dt=l(()=>lt?Ft:tt,[lt,Ft,tt]),Mt=l(()=>Gt(lt?Ft:tt,{category:et??"sports"}),[lt,Ft,tt,et]),Pt=l(()=>{const e=new Set(At);return He.filter(t=>e.has(t.key))},[He,At]),jt=l(()=>Gt(Ft,{category:et,sport:be}),[Ft,et,be]),Nt=l(()=>{if(!lt||!lo(lt))return[];const{min:e}=Rt(lt,ae),t=ae??e;return co(jt).filter(e=>e.propositionCount>=t)},[lt,ae,jt]),Vt=l(()=>lo(lt)?fo(jt,xe):jt,[lt,jt,xe]),Kt=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(at(n))for(const e of ct(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}(Z?null:X,l(()=>[...$e??[],...Vt],[$e,Vt])),Xt=l(()=>Si(Ft,st,Kt),[Ft,st,Kt]),Qt=n((e,t)=>{if(!(e in st)){const t=Ft.find(t=>t.id===e);if(t&&Xt.isCapped(t))return}bt(e,t)},[st,Ft,Xt,bt]),Jt=Object.keys(st).map(Number),$t=Jt.length,_t=l(()=>jt.filter(e=>Jt.includes(e.id)),[jt,Jt]);r(()=>{w||ye||1===_e.length&&me(_e[0])},[w,ye,_e]),r(()=>{if(!lt)return;const e=Ft,t=new Set(e.map(vt));let n=ye;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==ye&&me(n));const o=n?e.filter(e=>vt(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Bt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=lt.allowed_sports;we(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=Bt(r,o);"Other"!==t&&(i?.length&&!i.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[lt?.id,Ft,ye]),r(()=>{Ve()},[lt?.id,it,Ve]),r(()=>{lt&&et&&(Yt(lt,et)||ut())},[lt,et,ut]),r(()=>{lt&&(Ut(lt,nt,{category:et,sport:be,sportBaseKey:v})||ut())},[lt,et,be,v,nt,ut]),r(()=>{if(lt){const e=fe.current,t=pe.current!==lt.id;if(pe.current=lt.id,null!=e?.stake&&e.stake>0?ee(e.stake):t&&ee(Math.max(20,lt.min_bet??0)),e){const{count:t}=e;return fe.current=null,ce(t),void J(t)}if(!t)return;if(lt.allowed_propositions&<.allowed_propositions.length>0){const e=ae;null!=e&<.allowed_propositions.includes(e)?J(e):(ce(void 0),J(0))}else ce(void 0),J(lt.num_propositions||lt.max_propositions||0)}},[lt]);const en=(e,t,n)=>{const o=(qe??[]).find(t=>t.id===e)??(lt?.id===e?lt:null),r=(Qe[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?Vr(r.net_payout/i*n,o):0;return l>0?l:Yr(o,t,n)};r(()=>{if("sport"!==it&&"confirm"!==it||!lt||Z)return;const e=lo(lt)&&xe?Vt.length:Number.MAX_SAFE_INTEGER;let t;if(lt.allowed_propositions&<.allowed_propositions.length>0){const n=lt.allowed_propositions?[...lt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void le({});const o=ae??n[0],r=n.filter(e=>e>o);if(0===r.length)return void le({});t=[o,...r]}else{const{min:n,max:o}=Rt(lt),r=Math.min(o,e);if(n<=0||r<=n)return void le({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=en(lt.id,o,20);le(n)},[it,lt,ae,xe,Vt.length,Z,Qe]),r(()=>{if("confirm"!==it||!lt)return;const e=Jt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=en(lt.id,r,_);re(n),e!==$.current?($.current=e,J(e)):(Q>e||Q<=0&&e>0)&&J(e);const o=_>0?_:Math.max(lt.min_bet??20,.01);return(async()=>{try{const n=await Ue(lt.id,{actual:Q,predicted:Q,total:e,bet_amount:o,rule_id:se});if(t)return;if(ne(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?Vr(o,lt):en(lt.id,n,_)}re(e)}}catch{t||ne([])}})(),()=>{t=!0}},[it,lt,Jt.length,Q,_,Ue,Qe,se]);const tn=l(()=>{return t=se,(e=lt)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[lt,se]),nn=!lo(lt)||po(_t,xe),on=lt?Rt(lt,void 0,tn):null,rn=!(!lt||!nn)&&(lt.allowed_propositions&<.allowed_propositions.length>0?null!=ae&&$t===ae&&Lt($t,on?.min,on?.max):Lt($t,on?.min,on?.max)),an=lt?.min_bet??0,cn=Math.max(an,.01),sn=null==he||_<=he,dn=!Ee&&_>=cn&&rn&&sn,hn=e=>{ce(e),J(e);for(const t of Object.keys(st))bt(Number(t),st[Number(t)])},un=e=>{ce(e),J(e)},gn=e=>{ke(lo(e)?B??null:null),ht(e)},fn=e=>{if(e!==xe){for(const e of Object.keys(st)){const t=Number(e);bt(t,st[t])}ke(e)}},pn=e=>{for(const n of Object.keys(st)){const e=Number(n);bt(e,st[e])}const t=Ci([...Vt].sort(()=>Math.random()-.5),Math.max(0,e),Kt);for(const n of t)bt(n.id,Math.random()<.5?"yes":"no");return t.length},yn=(e,t,n)=>{const o=e.allowed_sports??[];let r=null;be&&(0===o.length||o.some(e=>Et(be,e,v)))?r=be:1===o.length&&(r=o[0]);const i=Gt(Zt($e??[],e,v),{category:et,sportBaseKey:v});if(0===i.length)return;const l=e=>{return Ci((n=e?Gt(i,{sport:e,sportBaseKey:v}):i,[...n].sort(()=>Math.random()-.5)),Math.max(0,t),Kt);var n},a=/* @__PURE__ */new Map;for(const u of i){const e=Bt(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=lt?.id===e.id;fe.current=h?null:{count:t,stake:n},ht(e),Xe(e.id),we(r),h&&(ce(t),J(t),null!=n&&n>0&&ee(n));for(const u of Object.keys(st)){const e=Number(u);bt(e,st[e])}for(const u of d)bt(u.id,Math.random()<.5?"yes":"no");ft()},mn=a(!1),bn=async()=>{if(lt&&rn&&!mn.current){if(Z){const e={id:Math.floor(1e4*Math.random()),game_id:lt.id,user_id:d,proposition_ids:Jt,selections:st,pending:!0,expected_correct:Q,bet_amount:_};return P?.(e),pt(e),void ge()}mn.current=!0;try{H&&await H(_);const e=await Ie({game_id:lt.id,user_id:d,proposition_ids:Jt,selections:st,stake:_,rule_id:tn?.id??null});P?.(e),pt(e),ge()}catch(e){}finally{mn.current=!1}}},wn=n(e=>function(e,t){const{overrides:n,summaryLabel:o,sportBaseKey:r}=t,i=n?.[e];return i||(r&&e.startsWith(`${r}_`)?Ht(e,void 0,r):o||Ht(e,void 0,r))}(e,{overrides:Y,summaryLabel:Pt.find(t=>t.key===e)?.label,sportBaseKey:v}),[Y,Pt,v]),xn=n(e=>Ot(e,V),[V]),kn=l(()=>({theme:U,bodyFont:q,headingFont:K,games:rt,propositions:Vt,compositeComponentById:Kt,propositionsForCategoryPicker:Dt,sportsForSelectedGame:At,sportOptions:Wt,propositionsForSportPicker:Mt,sportSummaries:Pt,loading:Ct,error:zt,step:it,selectedGame:lt,selections:st,placedEntry:dt,selectedPropositionIds:Jt,selectedPropositions:_t,selectionValid:rn,selectedRuleId:se,setSelectedRuleId:de,selectedRule:tn,answeredCount:$t,betAmount:_,setBetAmount:ee,expectedCorrect:Q,setExpectedCorrect:J,selectedPropositionCount:ae,handlePropositionCountChange:hn,upgradePropositionCount:un,winningCounts:te,payouts:oe,overloadPayouts:ie,submitting:Ee,submitError:Ye,canSubmit:dn,gamePrice:an,userBalance:he,hasSufficientBalance:sn,refreshUserBalance:ge,handleSubmit:bn,selectGame:gn,goToSportSelection:gt,goToConfirmation:ft,goBack:yt,reset:mt,clearSelectedGame:ut,toggleSelection:Qt,quickPickGame:yn,quickPickSelections:pn,selectedCategory:ye,setSelectedCategory:me,selectedSport:be,setSelectedSport:we,selectedEventId:xe,sameGameMultiEvents:Nt,selectSameGameMultiEvent:fn,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:F,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:D,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:v,gameCategory:w,eventFilterActive:kt,eventFilterLabel:St,clearEventFilter:wt,screenSize:N,displaySportName:wn,displayCategoryName:xn,maxPayouts:Qe??{},howToPlayMarkdown:Ke,onEntryPlaced:P,onCancel:O,onShare:I,onRecharge:E,demoEntries:m,demoGames:p,demoPropositions:y}),[U,q,K,rt,Vt,Kt,Dt,Mt,At,Wt,Pt,Ct,zt,it,lt,st,dt,Jt,_t,rn,$t,_,Q,ae,se,tn,te,oe,ie,Ee,Ye,dn,an,t,o,d,he,i,s,F,T,A,L,R,D,S,C,B,v,w,N,kt,St,wt,ye,be,xe,Nt,Qe,Ke,P,O,I,E,j,m,p,y,hn,wn,xn]),Sn=e.useMemo(()=>({yes:M?.yes??xt.yes,no:M?.no??xt.no}),[M?.yes,M?.no]);/* @__PURE__ */
|
|
96
|
+
return W(Bi.Provider,{value:kn,children:/* @__PURE__ */W(ln,{value:Sn,children:u})})}function Wi({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(Bi),d=c??s?.theme??Be,h=ae(d),u=d.colors,g=an(),f=i??ue(d),p=l??ge(d),y="sm"===r,m=y?h.space.xs:h.space.sm,b=y?6:8,w=y?h.fontSize.sm:h.fontSize.md,x=y?8.5:10,C=a(0);/* @__PURE__ */
|
|
97
|
+
return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-C.current<300?(C.current=0,t()):C.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[Ti.container,{borderColor:ne(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:Ti.topRow,children:[
|
|
99
98
|
/* @__PURE__ */T(A,{style:k.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[
|
|
100
|
-
/* @__PURE__ */W(O,{points:"0,0 53,0 47,100 0,100",fill:
|
|
101
|
-
/* @__PURE__ */W(O,{points:"53,0 100,0 100,100 47,100",fill:
|
|
99
|
+
/* @__PURE__ */W(O,{points:"0,0 53,0 47,100 0,100",fill:f}),
|
|
100
|
+
/* @__PURE__ */W(O,{points:"53,0 100,0 100,100 47,100",fill:p}),
|
|
102
101
|
/* @__PURE__ */W(M,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),
|
|
103
|
-
/* @__PURE__ */W(z,{style:[
|
|
104
|
-
/* @__PURE__ */W(z,{style:[
|
|
105
|
-
return W(h.View,{style:[k.absoluteFill,{zIndex:3-i,transform:[{translateY:
|
|
106
|
-
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[
|
|
107
|
-
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[
|
|
108
|
-
return T(z,{style:[
|
|
109
|
-
/* @__PURE__ */W(z,{style:[
|
|
110
|
-
/* @__PURE__ */W(S,{style:[
|
|
111
|
-
/* @__PURE__ */T(z,{style:[
|
|
102
|
+
/* @__PURE__ */W(z,{style:[Ti.half,{paddingHorizontal:m,paddingVertical:b}],children:/* @__PURE__ */W(S,{style:[Ti.halfLabel,{fontSize:w}],numberOfLines:1,children:g.yes})}),
|
|
103
|
+
/* @__PURE__ */W(z,{style:[Ti.half,{paddingHorizontal:m,paddingVertical:b}],children:/* @__PURE__ */W(S,{style:[Ti.halfLabel,{fontSize:w}],numberOfLines:1,children:g.no})})]}),/* @__PURE__ */W(z,{style:[Ti.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Ti.labelText,{color:u.buttonSecondaryText,fontSize:x,letterSpacing:.14*x,fontFamily:d.fonts?.mono??Ne(d)}],numberOfLines:1,children:n})})]})}var Ti=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}}),Ai=3;function Li(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 Ri(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(Li(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[...Li(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 Di=g.bezier(.32,0,.67,0),Mi=g.bezier(.22,1,.36,1),Pi={stiffness:420,damping:34},Hi={stiffness:280,damping:28},Oi="#00C853",Ii="#E53935",Ei=e=>"web"===m.OS?{userSelect:"none",cursor:e?"grabbing":"grab"}:null;function ji(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Ni(e,t,n){return n&&-t>Math.abs(e)}function Gi({prop:e,theme:t,depth:i=0,enterFrom:s,canSkip:d=!1,onResolve:u,registerApi:g,onDragStateChange:f,children:p}){const m=o(Bi),b=t??m?.theme??Be,w=Ge(b),x=an(),C=b.colors.productYes??Oi,B=b.colors.productNo??Ii,v=0===i,[A,L]=c(!1),R=a(!1),D=a({x:0,y:0}),M=a({x:0,y:0}),P=a(null),H=a(0),O=a(null),I=a(null),E=a(null),j=a(d);j.current=d;const N=a(f);N.current=f;const G=a(new h.ValueXY({x:0,y:0})).current,Y=a(new h.Value(0)).current,V=n(()=>{G.setValue({x:D.current.x,y:D.current.y}),Y.setValue(Ni(D.current.x,D.current.y,j.current)?1:0)},[Y,G]),U=n(()=>{null!=O.current&&(cancelAnimationFrame(O.current),O.current=null),I.current&&(I.current.stop(),I.current=null)},[]),q=n(e=>{U();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=D.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,V(),void(O.current=null);V(),O.current=requestAnimationFrame(n)};O.current=requestAnimationFrame(n)},[V,U]),K=n(t=>{if(R.current)return;if("up"===t&&!j.current)return;R.current=!0,U();const n="right"===t?"yes":"left"===t?"no":null,o=ji(t);D.current={...o},Y.setValue("up"===t?1:0),I.current=h.timing(G,{toValue:o,duration:260,easing:Di,useNativeDriver:!1}),I.current.start(),E.current=setTimeout(()=>u(e.id,n),260)},[u,e.id,U,Y,G]);r(()=>()=>{E.current&&clearTimeout(E.current),null!=O.current&&cancelAnimationFrame(O.current),I.current?.stop(),P.current&&N.current?.(!1)},[]),r(()=>{if(!s)return U(),D.current={x:0,y:0},M.current={x:0,y:0},void V();const e=ji(s);D.current={x:e.x,y:e.y},M.current={x:0,y:0},V(),q(Hi)},[s,V,q,U]),r(()=>{if(v&&g)return g({fly:K}),()=>g(null)},[K,v,g]);const Z=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!R.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||j.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{U(),P.current={x:D.current.x,y:D.current.y},M.current={x:0,y:0},H.current=Date.now(),L(!0),N.current?.(!0)},onPanResponderMove:(e,t)=>{if(R.current||!P.current)return;if(t.numberActiveTouches>1)return;const n=P.current.x+t.dx,o=Math.min(P.current.y+t.dy,0),r=e.nativeEvent.timestamp??Date.now(),i=r-H.current;if(i>0){const e=1-Math.exp(-i/40);M.current.x+=((n-D.current.x)/i*1e3-M.current.x)*e,M.current.y+=((o-D.current.y)/i*1e3-M.current.y)*e,H.current=r}D.current.x=n,D.current.y=o,V()},onPanResponderRelease:e=>{if(!P.current)return;if(P.current=null,L(!1),N.current?.(!1),R.current)return;(e.nativeEvent.timestamp??Date.now())-H.current>90&&(M.current={x:0,y:0});const t=D.current,n=M.current;if(Ni(t.x,t.y,j.current)){if(t.y<-110||n.y<-620)return K("up")}else{if(t.x>110||n.x>620)return K("right");if(t.x<-110||n.x<-620)return K("left")}q(Pi)},onPanResponderTerminate:()=>{P.current=null,M.current={x:0,y:0},L(!1),N.current?.(!1),R.current||q(Pi)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[K,V,q,U]),X=G.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),Q=h.subtract(1,Y),J=h.multiply(Q,G.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),$=h.multiply(Q,G.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),_=h.multiply(Y,G.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),ee=a(new h.Value(i)).current;r(()=>{const e=h.timing(ee,{toValue:i,duration:240,easing:Mi,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,ee]);const te=ee.interpolate({inputRange:[0,3],outputRange:[0,36]}),ne=ee.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
|
|
104
|
+
return W(h.View,{style:[k.absoluteFill,{zIndex:3-i,transform:[{translateY:te},{scale:ne}]}],pointerEvents:v?"auto":"none",children:/* @__PURE__ */T(h.View,{style:[{flex:1,transform:[{translateX:G.x},{translateY:G.y},{rotate:X}]},v&&Ei(A)],...v?Z.panHandlers:{},children:[p,v&&/* @__PURE__ */T(F,{children:[
|
|
105
|
+
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ui.stamp,Ui.stampLeft,{opacity:J,borderColor:C,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[Ui.stampText,{color:C,fontFamily:w}],children:x.yes})}),
|
|
106
|
+
/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ui.stamp,Ui.stampRight,{opacity:$,borderColor:B,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Ui.stampText,{color:B,fontFamily:w}],children:x.no})}),d&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ui.skipPillWrap,{opacity:_}],children:/* @__PURE__ */W(z,{style:[Ui.skipPill,{borderColor:b.colors.border,backgroundColor:b.colors.background}],children:/* @__PURE__ */W(S,{style:[Ui.skipPillText,{color:b.colors.primary}],children:"Skip"})})})]})]})})}function Yi({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,renderPropositionSilk:r,displaySportName:i,gameCategory:l,compositeComponentById:a}=vi(),c=t.colors,{height:s}=v(),d=s<700?12:24,h=dt(e,a),u=rt(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)||dl(t??e,o,g.join(" vs "))||null;/* @__PURE__ */
|
|
107
|
+
return T(z,{style:[Ui.face,{backgroundColor:be(t),borderColor:c.border}],children:[
|
|
108
|
+
/* @__PURE__ */W(z,{style:[Ui.matchupBand,{backgroundColor:we(t)}],children:g.length>0?g.map((e,n)=>/* @__PURE__ */T(z,{style:Ui.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Ui.matchupVs,{color:me(t)}],children:"vs"}),o?.(e),
|
|
109
|
+
/* @__PURE__ */W(S,{style:[Ui.matchupName,{color:ye(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Ui.matchupName,{color:ye(t)}],children:e.league??i(e.sport??"")})}),
|
|
110
|
+
/* @__PURE__ */T(z,{style:[Ui.faceBody,{paddingVertical:d,gap:12===d?12:16}],children:[/* @__PURE__ */T(z,{style:Ui.propositionRow,children:[!h&&f(e,32),h?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[Ui.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:Ui.compositeLeg,children:[
|
|
112
111
|
/* @__PURE__ */W(S,{style:{color:c.primary,fontWeight:"700"},children:"OR"===h.operator?"/":"+"}),f(e.prop,24),
|
|
113
|
-
/* @__PURE__ */T(z,{style:
|
|
114
|
-
/* @__PURE__ */T(z,{style:[
|
|
115
|
-
return T(z,{style:
|
|
116
|
-
/* @__PURE__ */W(S,{style:[
|
|
117
|
-
/* @__PURE__ */W(S,{style:[
|
|
118
|
-
/* @__PURE__ */W(B,{onPress:()=>
|
|
119
|
-
/* @__PURE__ */W(B,{onPress:()=>
|
|
120
|
-
return W(p,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:o,children:/* @__PURE__ */W(z,{style:
|
|
121
|
-
/* @__PURE__ */T(z,{style:
|
|
122
|
-
/* @__PURE__ */W(z,{style:
|
|
123
|
-
/* @__PURE__ */T(z,{style:
|
|
124
|
-
/* @__PURE__ */W(S,{style:[
|
|
112
|
+
/* @__PURE__ */T(z,{style:Ui.compositeLegBody,children:[e.eventLabel?/* @__PURE__ */W(S,{style:[Ui.compositeLegEvent,{color:c.textMuted}],children:e.eventLabel}):null,/* @__PURE__ */W(S,{style:[Ui.compositeLegText,{color:he(t),fontFamily:n}],children:e.text})]})]},o))})]}):/* @__PURE__ */W(S,{style:[Ui.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:[Ui.outcome,{color:c.textMuted}],children:e.outcome_description})]}),
|
|
113
|
+
/* @__PURE__ */T(z,{style:[Ui.faceFooter,{borderTopColor:c.borderSubtle??c.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Ui.sportChip,{backgroundColor:c.infoBg}],children:/* @__PURE__ */W(S,{style:[Ui.sportChipText,{color:c.infoText}],children:i(e.sport)})}):null,u?/* @__PURE__ */W(S,{style:[Ui.footerMeta,{color:c.textMuted}],children:u.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Ui.footerMeta,Ui.footerDate,{color:c.textMuted}],children:St(e.commence_time)}):null]})]})}function Vi({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}=vi(),A=c.colors,L=an(),R=A.productYes??Oi,D=A.productNo??Ii,{height:M}=v(),P=Math.max(224,Math.min(.44*M,416)),H=a(null);r(()=>{g||(b(),e?.())},[b,e,g]);const O=l(()=>Si(d,h,C),[d,h,C]),I=n(e=>O.isCapped(e),[O]),{visible:E,canSkip:j,canUndo:N,restored:G,resolve:Y,undo:V}=Ri(d,h,u,I),U=g?Rt(g,f??void 0,k):{min:0,max:0},q=U.max,K=q>0&&p>=q,Z=g?U.min>0&&U.min===U.max?U.min:Er(g,f)??(q>0?q:null):null,X=a(p);r(()=>{const e=X.current;if(X.current=p,null==Z||e>=Z||p!==Z)return;const n=setTimeout(()=>{m(),t?.()},420);return()=>clearTimeout(n)},[p,m,t,Z]);const Q=!K&&E.length>0,J=n(e=>{H.current=e},[]);if(!g)return null;const $=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Ui.circleButton,{borderColor:A.border,backgroundColor:A.background},o&&Ui.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:A.textMuted},children:t})});/* @__PURE__ */
|
|
114
|
+
return T(z,{style:Ui.container,children:[o?/* @__PURE__ */W(z,{style:Ui.viewSwitchRow,children:o}):null,w?/* @__PURE__ */W(S,{style:[Ui.loadingText,{color:A.textMuted}],children:"Loading…"}):x?/* @__PURE__ */W(z,{style:[Ui.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:Ui.deckArea,children:Q?/* @__PURE__ */W(z,{style:[Ui.deck,{height:P}],children:E.map((e,t)=>/* @__PURE__ */W(Gi,{prop:e,depth:t,canSkip:j,enterFrom:G?.id===e.id?G.from:null,onResolve:Y,registerApi:0===t?J:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Yi,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Ui.emptyState,{backgroundColor:be(c),borderColor:A.border}],children:[
|
|
115
|
+
/* @__PURE__ */W(S,{style:[Ui.emptyTitle,{color:se(c),fontFamily:s}],children:K?"Card full":"That’s the last one"}),
|
|
116
|
+
/* @__PURE__ */W(S,{style:[Ui.emptyBody,{color:A.textMuted}],children:K?`You've picked all ${q} 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${U.min>0?` — this game needs at least ${U.min}`:""}. Undo a swipe or head back to widen the pool.`}),N&&/* @__PURE__ */W(B,{onPress:V,style:[Ui.emptyUndo,{borderColor:A.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:A.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:[Ui.buttonArea,{backgroundColor:be(c),borderColor:A.border}],children:[/* @__PURE__ */T(z,{style:Ui.buttonRow,children:[$("Undo last swipe","↺",V,!N),
|
|
117
|
+
/* @__PURE__ */W(B,{onPress:()=>H.current?.fly("left"),disabled:!Q,style:[Ui.answerButton,{backgroundColor:D},!Q&&Ui.disabled],children:/* @__PURE__ */W(S,{style:[Ui.answerButtonText,{fontFamily:s}],children:L.no})}),
|
|
118
|
+
/* @__PURE__ */W(B,{onPress:()=>H.current?.fly("right"),disabled:!Q,style:[Ui.answerButton,{backgroundColor:R},!Q&&Ui.disabled],children:/* @__PURE__ */W(S,{style:[Ui.answerButtonText,{fontFamily:s}],children:L.yes})}),$("Skip this proposition","↑",()=>H.current?.fly("up"),!Q||!j)]}),/* @__PURE__ */W(S,{style:[Ui.gestureHint,{color:A.textMuted}],children:`Swipe right for ${L.yes}, left for ${L.no}${j?" · ↑ to skip":""}`})]})]})]})}var Ui=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,textTransform:"uppercase",color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function qi({propositions:e,title:t,onClose:o}){const{theme:r,selections:i,toggleSelection:c,compositeComponentById:s}=vi(),d=r.colors,{height:h}=v(),u=l(()=>Si(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}=Ri(e,i,c,g),k=a(null),C=n(e=>{k.current=e},[]),F=Ge(r),A=me(r),L=f.length>0,R=be(r),D=Math.max(224,Math.min(.44*h,416)),M=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Ki.circle,{borderColor:d.border,backgroundColor:d.background},o&&Ki.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:d.textMuted},children:t})}),P=an(),H=(e,t,n)=>/* @__PURE__ */W(B,{onPress:()=>k.current?.fly(e),disabled:!L,style:[Ki.answer,{backgroundColor:n},!L&&Ki.disabled],children:/* @__PURE__ */W(S,{style:[Ki.answerText,{fontFamily:F}],children:t.toUpperCase()})});/* @__PURE__ */
|
|
119
|
+
return W(p,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:o,children:/* @__PURE__ */W(z,{style:Ki.backdrop,children:/* @__PURE__ */T(z,{style:[Ki.panel,{backgroundColor:R,borderColor:d.border}],children:[
|
|
120
|
+
/* @__PURE__ */T(z,{style:Ki.header,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Ki.title,{color:ye(r),fontFamily:F}],children:t}),/* @__PURE__ */W(B,{onPress:o,accessibilityLabel:"Close",accessibilityRole:"button",style:[Ki.close,{borderColor:d.border}],children:/* @__PURE__ */W(S,{style:{fontSize:16,color:A},children:"×"})})]}),
|
|
121
|
+
/* @__PURE__ */W(z,{style:Ki.deckArea,children:L?/* @__PURE__ */W(z,{style:[Ki.deck,{height:D}],children:f.map((e,t)=>/* @__PURE__ */W(Gi,{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(Yi,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Ki.empty,{borderColor:d.border}],children:[/* @__PURE__ */W(S,{style:[Ki.emptyTitle,{color:se(r),fontFamily:F}],children:"That’s the last one"}),/* @__PURE__ */W(S,{style:[Ki.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."})]})}),
|
|
122
|
+
/* @__PURE__ */T(z,{style:Ki.buttonRow,children:[M("Undo last swipe","↺",x,!m),H("left",P.no,ge(r)),H("right",P.yes,ue(r)),M("Skip this proposition","↑",()=>k.current?.fly("up"),!L||!y)]}),
|
|
123
|
+
/* @__PURE__ */W(S,{style:[Ki.hint,{color:d.textMuted}],children:`Swipe right for ${P.yes}, left for ${P.no}${y?" · ↑ to skip":""}`})]})})})}var Ki=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}}),Zi=["split","split-inline","compact"];function Xi(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Qi(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Ji(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function $i(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function _i(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function el(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(_i),i=t.map($i).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:_i(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:Xi(a.date),events:[a]})}const l=[...i.values()];return r.length>0&&l.push({key:"undated",label:"",events:r}),l}var tl={split:{fontSize:13,fontWeight:"400",lineHeight:18},compact:{fontSize:11,fontWeight:"400",lineHeight:15}};function nl({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:i,theme:a,renderTeamLogo:s,componentById:d,disableEventSwipe:h=!1}){const u=a.colors,g=be(a),f=we(a),p=u.borderSubtle??u.border,y=ye(a),m=me(a),b=he(a),w=de(a),x=se(a),k=Ge(a),{width:C}=v(),[A,L]=c(null),[R,D]=c(/* @__PURE__ */new Set),[M,P]=c(/* @__PURE__ */new Set),H=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),O=H(D),I=H(P),E=l(()=>el(t,n),[t,n]),{width:j}=v(),N=l(()=>Si(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(xi(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:fi(e,n),style:[il.slotChip,{borderColor:n?y:p,borderStyle:n?"solid":"dashed"}],children:/* @__PURE__ */W(S,{style:[il.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(dn,{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:il.question,children:[n?dl(e,s,null):null,/* @__PURE__ */W(yl,{prop:e,colors:u,componentById:d,renderTeamLogo:s,textStyle:tl[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:[il.swipePill,{borderColor:p}],children:[/* @__PURE__ */W(ol,{color:y}),/* @__PURE__ */W(S,{style:[il.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:[il.foldButton,{borderColor:p}],children:/* @__PURE__ */W(z,{style:{transform:[{rotate:t?"0deg":"-90deg"}]},children:/* @__PURE__ */W(rl,{color:w})})}),Q=e=>{if(!e.home&&!e.away)/* @__PURE__ */return W(S,{numberOfLines:1,style:[il.shortLabel,{color:y}],children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=M.has(e.key);/* @__PURE__ */
|
|
125
124
|
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:[
|
|
127
|
-
/* @__PURE__ */W(S,{style:[
|
|
128
|
-
/* @__PURE__ */W(S,{style:[
|
|
129
|
-
/* @__PURE__ */W(S,{numberOfLines:1,style:[
|
|
130
|
-
/* @__PURE__ */W(S,{style:[
|
|
131
|
-
/* @__PURE__ */W(S,{numberOfLines:1,style:[
|
|
132
|
-
/* @__PURE__ */W(z,{style:{marginLeft:"auto"},children:Z(e)})]}),e.props.map(e=>/* @__PURE__ */T(z,{style:[
|
|
133
|
-
return T(z,n?{style:[
|
|
134
|
-
/* @__PURE__ */T(z,{style:[
|
|
135
|
-
/* @__PURE__ */W(S,{style:[
|
|
125
|
+
/* @__PURE__ */W(S,{style:[il.shortLabel,{color:y,fontFamily:k}],children:n?e.home:Ji(e.home)}),
|
|
126
|
+
/* @__PURE__ */W(S,{style:[il.vs,{color:m}],children:"v"}),
|
|
127
|
+
/* @__PURE__ */W(S,{style:[il.shortLabel,{color:y,fontFamily:k}],children:n?e.away:Ji(e.away)})]})},J=e=>e.racing||!e.home?/* @__PURE__ */W(S,{numberOfLines:1,style:[il.shortLabel,{color:y,fontFamily:k}],children:e.title}):/* @__PURE__ */T(z,{style:{maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[
|
|
128
|
+
/* @__PURE__ */W(S,{numberOfLines:1,style:[il.shortLabel,{color:y,fontFamily:k}],children:Ji(e.home)}),
|
|
129
|
+
/* @__PURE__ */W(S,{style:[il.vs,{color:m}],children:"v"}),
|
|
130
|
+
/* @__PURE__ */W(S,{numberOfLines:1,style:[il.shortLabel,{color:y,fontFamily:k}],children:Ji(e.away)})]}),$=t=>"compact"===e?(e=>/* @__PURE__ */T(z,{style:[il.compactCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[il.compactHeader,{backgroundColor:f}],children:[!e.racing&&U(e.home,18),Q(e),!e.racing&&U(e.away,18),e.date&&/* @__PURE__ */W(S,{style:[il.compactTime,{color:m}],children:Qi(e.date)}),
|
|
131
|
+
/* @__PURE__ */W(z,{style:{marginLeft:"auto"},children:Z(e)})]}),e.props.map(e=>/* @__PURE__ */T(z,{style:[il.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__ */
|
|
132
|
+
return T(z,n?{style:[il.splitCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[il.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:[il.time,{color:m}],children:Qi(e.date)}),Z(e)]}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:[il.splitCountRow,{borderBottomColor:p}],children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[il.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:il.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:[il.foldedStrip,{borderColor:u.border,backgroundColor:g}],children:[
|
|
133
|
+
/* @__PURE__ */T(z,{style:[il.foldedStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(F,{children:[U(e.home,16),U(e.away,16)]}),Q(e)]}),
|
|
134
|
+
/* @__PURE__ */W(S,{style:[il.count,il.foldedCount,{color:m}],children:o}),
|
|
136
135
|
/* @__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:
|
|
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
|
|
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
|
|
140
|
-
return W(B,{onPress:o,disabled:n,activeOpacity:.85,...
|
|
141
|
-
return T(z,l?{style:
|
|
142
|
-
return W(z,{style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:4,rowGap:2,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:C.map((o,r)=>{const i=o.prop?.home_team?.trim(),l=o.prop?.away_team?.trim(),c=a
|
|
143
|
-
return T(e.Fragment,{children:[r>0&&/* @__PURE__ */W(
|
|
136
|
+
return T(z,{style:{paddingBottom:16},children:[E.map(e=>{/* @__PURE__ */return T(z,{children:[e.label?(t=e.label,/* @__PURE__ */T(z,{style:il.dayHeader,children:[/* @__PURE__ */W(S,{style:[il.dayLabel,{color:x,fontFamily:k}],children:t}),/* @__PURE__ */W(z,{style:[il.rule,{backgroundColor:p}]})]})):null,e.events.map($)]},e.key);var t}),A&&/* @__PURE__ */W(qi,{propositions:A.props.filter(e=>!G(e)),title:A.title,onClose:()=>L(null)})]})}function ol({color:e}){/* @__PURE__ */
|
|
137
|
+
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 rl({color:e}){/* @__PURE__ */
|
|
138
|
+
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 il=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}}),ll={today:"Today",weekend:"This weekend",next7:"Next 7 days"},al=["today","weekend","next7"];function cl(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function sl(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:cl(n,1)};case"weekend":{const e=n.getDay(),t=cl(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:cl(t,2)}}case"next7":return{start:n,end:cl(n,7)}}}(t,n);return o>=r&&o<i}function dl(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 hl=640,ul=12;function gl({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__ */
|
|
139
|
+
return W(B,{onPress:o,disabled:n,activeOpacity:.85,...nn(()=>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 fl({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=v(),l=i>=hl,[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:bl.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__ */
|
|
140
|
+
return T(z,l?{style:bl.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:bl.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function pl({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 yl({prop:t,colors:n,size:o="sm",componentById:r,textStyle:i,textColor:l,renderTeamLogo:a}){const{width:s}=v(),d=s>=hl,h=dt(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__ */
|
|
141
|
+
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__ */
|
|
142
|
+
return T(e.Fragment,{children:[r>0&&/* @__PURE__ */W(pl,{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
143
|
/* @__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(
|
|
146
|
-
return T(z,{style:{gap:
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */W(
|
|
149
|
-
/* @__PURE__ */W(
|
|
150
|
-
|
|
151
|
-
return T(z,{style:
|
|
152
|
-
return
|
|
153
|
-
return W(
|
|
144
|
+
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(pl,{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 ml({game:t,propositions:i,selections:a,onToggleSelection:s,onNext:d,onBack:h,loading:u,error:g,theme:f,colorScheme:p,hideActions:y=!1,initialSport:m,renderTeamLogo:b,disableQuickPick:w=!1,selectedPropositionCount:x,onPropositionCountChange:k,gameCategory:L,headerExtra:R,railSlot:D,variant:M,disableEventSwipe:P}){const O=o(Bi),I=O?.sportBaseKey,E=O?.compositeComponentById,j=M??O?.selectionVariant,N=P??O?.disableEventSwipe??!1,G=je(f,p),Y=G.colors,V=be(G),U=xe(G),q=Y.matchupHeader??(t.color?ne(t.color,.14):we(G)),K=Y.textAlt??Y.text;Ge(G);const Z=Ne(G);se(G);const{width:X}=v(),Q=X>=hl,J=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(G),$=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:_,max:ee}=Rt(t,x),te=_,oe=ee,[re,ie]=e.useState(()=>new Set(Object.keys($t(i,L,I))));e.useEffect(()=>{const e=$t(i,L,I),t=Object.keys(e);t.length>0&&ie(e=>t.every(t=>e.has(t))?e:new Set(t))},[i]);const le=te>0&&te===oe,ae=te||1,ce=oe||i.length,de=oe||te||i.length,[he,ue]=e.useState(de),ge=Object.keys(a).length,fe=oe>0&&ge>=oe,pe=$?null!=x&&ge===x:Lt(ge,t.min_propositions,t.max_propositions);t.min_bet,oe>0?Math.max(2,2*oe):Math.max(2,2*ge);const ye=e.useRef(ge),me=$?null!=x&&ge===x:oe>0&&ge===oe;r(()=>{me&&ge>ye.current&&d?.(),ye.current=ge},[ge,me]);const Se=l(()=>Si(i,a,E),[i,a,E]),Ce=l(()=>i.some(e=>null!==bi(e)),[i]),Be=(e,t)=>{if(e in a)return void s(e,t);if(fe)return;const n=i.find(t=>t.id===e);n&&Se.isCapped(n)||s(e,t)},ze=e=>{if(!Ce||0===e.length)return null;const t=Se.slotsFor(xi(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:fi(e,n),style:[bl.slotChip,{borderColor:n?K:Y.border,borderStyle:n?"solid":"dashed"}],children:/* @__PURE__ */W(S,{style:[bl.slotChipText,{color:n?K:Y.textMuted}],children:t})},e))})};r(()=>{const e=oe||i.length,t=te||1;ue(n=>le?oe:Math.max(t,Math.min(n,e)))},[i.length,te,oe,le]);const ve=l(()=>/* @__PURE__ */new Date,[]),Fe=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 al){let e=0,i=0;for(const o of n)sl(o.commence_time,r,t)?e+=1:i+=1;e>0&&o.push({id:r,partitions:i>0})}return o.some(e=>e.partitions)?o.map(({id:e})=>({id:e,label:ll[e]})):[]}(i,ve),[i,ve]),[We,Te]=c(null);r(()=>{We&&!Fe.some(e=>e.id===We)&&Te(null)},[Fe,We]);const Ae=l(()=>function(e,t,n){return t?e.filter(e=>sl(e.commence_time,t,n)):e.slice()}(i,We,ve),[i,We,ve]),Le=l(()=>Mt(L,Ae,I),[L,Ae,I]),Re=l(()=>$t(Ae,L,I),[Ae,L,I]),De=l(()=>{const e=/* @__PURE__ */new Set;for(const t of Ae){const n=rt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[Ae]),[Me,Pe]=c([]),He=n(e=>{Pe(t=>null==e?[]:t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),[Oe,Ie]=c(!1);r(()=>{Pe(e=>{const t=e.filter(e=>De.includes(e));return t.length===e.length?e:t})},[De]);const Ee=l(()=>{if(0===Me.length)return Re;const e={};for(const[t,n]of Object.entries(Re)){const o=n.filter(e=>{const t=rt(e);return!!t&&Me.includes(t)});o.length>0&&(e[t]=o)}return e},[Re,Me]),Ye=Object.keys(Ee);if(u)/* @__PURE__ */return W(_n,{colors:ke(G)});if(g)/* @__PURE__ */return W(z,{style:bl.centered,children:/* @__PURE__ */W(S,{style:{color:Y.error},children:g})});const Ve=!w&&i.length>0,Ue=Fe.length>0||De.length>1,qe=(null!=We?1:0)+Me.length,Ke=[...Fe.length>0?[{label:"When",options:[{value:null,label:"All dates"},...Fe.map(e=>({value:e.id,label:e.label}))],value:We,onChange:e=>Te(e)}]:[],...De.length>1?[{label:"Market",options:[{value:null,label:"All markets"},...De.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Me,onChange:He}]:[]];/* @__PURE__ */
|
|
145
|
+
return T(z,{style:{gap:Q?24:16,paddingBottom:64,zIndex:Oe?1:0},children:[Ue||R||D?/* @__PURE__ */T(z,{style:bl.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:D}),/* @__PURE__ */T(z,{style:[bl.filterToggleRow,Q?null:bl.filterToggleColumn],children:[Ue?/* @__PURE__ */W(F,{children:/* @__PURE__ */T(z,{style:bl.filterAnchor,children:[
|
|
146
|
+
/* @__PURE__ */T(B,{onPress:()=>Ie(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[bl.filterToggle,{borderColor:qe>0?Y.primary:Y.border,backgroundColor:qe>0?Y.primary:Y.background??"#fff"}],children:[
|
|
147
|
+
/* @__PURE__ */W(Fn,{size:13,color:qe>0?Y.primaryText:Y.text}),
|
|
148
|
+
/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:qe>0?Y.primaryText:Y.text},children:"Filter"}),qe>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:Y.primaryText},children:["· ",qe]}),
|
|
149
|
+
/* @__PURE__ */W(z,{style:{transform:[{rotate:Oe?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(zn,{size:13,color:qe>0?Y.primaryText:Y.text})})]}),Oe&&/* @__PURE__ */W(z,{style:[bl.filterDropdown,wl(G),{borderColor:Y.border,backgroundColor:Y.background??"#fff"}],children:/* @__PURE__ */W(Pn,{groups:Ke,theme:G,bodyFont:Z})}),qe>0&&/* @__PURE__ */W(B,{onPress:()=>{Te(null),Pe([])},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:Y.textMuted},children:"Clear"})})]})}):null,R]})]}):null,Ve&&/* @__PURE__ */W(z,{style:[bl.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[bl.quickPickRow,{gap:Q?8:6}],children:[!le&&/* @__PURE__ */T(z,{style:bl.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(he),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||ue(Math.max(ae,Math.min(ce,t)))},style:[bl.quickPickInput,{width:Q?56:40,paddingHorizontal:Q?8:4,paddingVertical:Q?6:4,fontSize:Q?14:12,color:K,backgroundColor:Y.backgroundAlt,borderColor:Y.border}]}),/* @__PURE__ */T(S,{style:{color:Y.textMuted,fontSize:12},children:["/ ",i.length]})]}),/* @__PURE__ */W(Wi,{onPress:()=>{const e=le?oe:he;for(const o of Object.keys(a)){const e=Number(o);s(e,a[e])}const{yesPicks:t,noPicks:n}=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}}(i,e);for(const o of t)s(o.id,"yes");for(const o of n)s(o.id,"no");d?.()}})]})}),i.length>0&&j?/* @__PURE__ */W(nl,{variant:j,groups:Ee,racing:Le,selections:a,onToggleSelection:Be,atMax:fe,theme:G,renderTeamLogo:b,componentById:E,disableEventSwipe:N}):null,i.length>0&&!j&&/* @__PURE__ */W(z,{style:bl.matchupList,children:Ye.every(e=>1===Ee[e].length)?/* @__PURE__ */W(z,{style:[bl.matchupCard,{borderColor:Y.border,backgroundColor:V},J],children:Ye.map((e,t)=>{const n=Ee[e][0],o="yes"===a[n.id],r="no"===a[n.id],i=n.id in a,l=fe&&!i||Se.isCapped(n),c=0===t,s=t===Ye.length-1;/* @__PURE__ */
|
|
150
|
+
return T(z,{style:{borderTopColor:Y.border,borderTopWidth:c?0:1,opacity:l?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:Q?12:10,backgroundColor:q,borderTopLeftRadius:c?ul:0,borderTopRightRadius:c?ul:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(fl,{matchup:e,renderTeamLogo:b,altText:K,mutedColor:Y.textAltMuted??Y.textMuted??K})}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[n.commence_time&&/* @__PURE__ */W(S,{style:{color:Y.textAltMuted??Y.textMuted,fontSize:11,opacity:.7},children:St(n.commence_time)}),ze([n])]})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:Q?14:12,backgroundColor:U,borderTopWidth:1,borderTopColor:Y.border,borderBottomLeftRadius:s?ul:0,borderBottomRightRadius:s?ul:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[dl(n,b,e),/* @__PURE__ */W(yl,{prop:n,colors:Y,componentById:E,renderTeamLogo:b})]}),/* @__PURE__ */W(dn,{theme:G,size:"sm",value:o?"yes":r?"no":null,onYes:()=>Be(n.id,"yes"),onNo:()=>Be(n.id,"no"),disabled:l})]})]},n.id)})}):Ye.map(e=>{const t=Ee[e],n=re.has(e),o=t.filter(e=>e.id in a).length,r=t[0]?.commence_time;/* @__PURE__ */
|
|
151
|
+
return T(z,{style:[bl.matchupCard,{borderColor:Y.border,backgroundColor:V},J],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,ie(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[bl.matchupHeader,{backgroundColor:q,borderTopLeftRadius:ul,borderTopRightRadius:ul,borderBottomLeftRadius:n?0:ul,borderBottomRightRadius:n?0:ul}],children:[/* @__PURE__ */T(z,{style:bl.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:Y.textAltMuted??Y.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:bl.matchupTeamWrapper,children:[/* @__PURE__ */W(fl,{matchup:e,renderTeamLogo:b,altText:K,mutedColor:Y.textAltMuted??Y.textMuted??K,size:"md"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[r&&/* @__PURE__ */W(S,{style:{color:Y.textAltMuted??Y.textMuted,fontSize:12,opacity:.7,textAlign:"left"},children:St(r)}),ze(t)]})]})]}),/* @__PURE__ */W(z,{style:bl.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[bl.answeredBadge,{backgroundColor:Y.successBg}],children:/* @__PURE__ */T(S,{style:{color:Y.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"===a[n.id],i="no"===a[n.id],l=n.id in a,c=fe&&!l||Se.isCapped(n),s=o===t.length-1;/* @__PURE__ */
|
|
152
|
+
return W(z,{style:{paddingHorizontal:16,paddingVertical:Q?14:12,backgroundColor:U,borderTopColor:Y.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?ul:0,borderBottomRightRadius:s?ul:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:Q?16:8,rowGap:Q?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[dl(n,b,e),/* @__PURE__ */W(yl,{prop:n,colors:Y,size:"md",componentById:E,renderTeamLogo:b})]}),/* @__PURE__ */W(dn,{theme:G,size:"sm",value:r?"yes":i?"no":null,onYes:()=>Be(n.id,"yes"),onNo:()=>Be(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===i.length&&/* @__PURE__ */W(z,{style:bl.centered,children:/* @__PURE__ */W(S,{style:{color:Y.textMuted},children:"No propositions available at this time"})}),!y&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:Y.border,backgroundColor:V,marginHorizontal:Q?-24:-16,paddingHorizontal:Q?24:16,paddingVertical:Q?16:12},children:[/* @__PURE__ */W(gl,{theme:G,variant:"secondary",onPress:h,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:Q?12:8},children:/* @__PURE__ */W(gl,{theme:G,variant:"primary",disabled:!pe,onPress:d,children:"Wager"})})]})]})}var bl=k.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},filterHeaderRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:12},filterToggleRow:{flexDirection:"row",alignItems:"center",gap:8},filterAnchor:{position:"relative",flexDirection:"row",alignItems:"center",gap:8,zIndex:4,elevation:4},filterDropdown:{position:"absolute",right:0,top:"100%",marginTop:8,width:248,borderWidth:1,borderRadius:16,padding:12,zIndex:2},filterToggleColumn:{flexDirection:"column",alignItems:"flex-end"},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:ul,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 wl(e){return{shadowColor:"#0f172a",shadowOffset:{width:0,height:12},shadowOpacity:"dark"===e.colorScheme?.5:.18,shadowRadius:24,elevation:8}}function xl({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,...nn(()=>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 kl({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,allowAnswerToggle:d=!0,gameName:h,potentialPayout:u,defaultExpanded:g=!1,componentById:f,addMorePicks:p}){const y=je(i,l),m=y.colors,b=be(y),w=Ge(y),x=se(y),k=m.textAlt??m.text,{width:C}=v(),F=C>=640,L=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(y),[R,D]=c(null),[M,P]=c(g),O=e.filter(e=>e.id in t),I=O.length,E=_t(O),j=m.matchupHeader??we(y),N=xe(y),G=F?16:12;/* @__PURE__ */
|
|
154
154
|
return T(z,{style:{gap:F?24:16,paddingBottom:64},children:[
|
|
155
|
-
/* @__PURE__ */T(z,{style:[
|
|
156
|
-
/* @__PURE__ */T(B,{onPress:()=>P(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:M},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:M?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:F?18:16,fontWeight:"600",color:x,fontFamily:w},children:"Your Selections"}),/* @__PURE__ */W(z,{style:{backgroundColor:m.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */W(S,{style:{color:m.primaryText,fontSize:12,fontWeight:"600"},children:I})})]}),h&&/* @__PURE__ */W(S,{numberOfLines:1,style:{color:m.textMuted,fontSize:14,marginTop:2},children:h})]})]}),null!=u&&u>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */W(S,{style:{color:m.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */W(S,{style:{color:x,fontSize:14,fontWeight:"700"},children:
|
|
155
|
+
/* @__PURE__ */T(z,{style:[Sl.section,{padding:F?24:16,backgroundColor:b,borderColor:m.border},L],children:[
|
|
156
|
+
/* @__PURE__ */T(B,{onPress:()=>P(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:M},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:M?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:F?18:16,fontWeight:"600",color:x,fontFamily:w},children:"Your Selections"}),/* @__PURE__ */W(z,{style:{backgroundColor:m.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */W(S,{style:{color:m.primaryText,fontSize:12,fontWeight:"600"},children:I})})]}),h&&/* @__PURE__ */W(S,{numberOfLines:1,style:{color:m.textMuted,fontSize:14,marginTop:2},children:h})]})]}),null!=u&&u>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */W(S,{style:{color:m.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */W(S,{style:{color:x,fontSize:14,fontWeight:"700"},children:kt(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
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:
|
|
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:[
|
|
160
|
-
/* @__PURE__ */W(z,{style:[
|
|
161
|
-
return T(z,{style:{gap:Q?16:12,paddingBottom:64},children:[
|
|
162
|
-
/* @__PURE__ */T(z,{style:[
|
|
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(
|
|
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:[
|
|
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:
|
|
158
|
+
/* @__PURE__ */W(S,{style:{color:x,fontWeight:"700"},children:kt(p.potentialPayout)})," ","with ",p.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>p.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:m.buttonPrimary},children:/* @__PURE__ */W(S,{style:{color:m.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),M&&(0===O.length?/* @__PURE__ */W(z,{style:[Sl.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(fl,{matchup:e.key,renderTeamLogo:s,altText:k,mutedColor:m.textAltMuted??m.textMuted??k}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[Sl.propTime,{color:m.textAltMuted??m.textMuted}],children:St(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:[dl(o,s,e.key),/* @__PURE__ */W(yl,{prop:o,colors:m,componentById:f??void 0,renderTeamLogo:s,textStyle:{fontSize:14,fontWeight:"400",lineHeight:19},textColor:k})]}),/* @__PURE__ */T(z,{style:Sl.rightControls,children:[d?/* @__PURE__ */W(dn,{theme:y,size:"sm",value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(hn,{theme:y,size:"sm",value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...nn(()=>D(o.id),()=>D(e=>e===o.id?null:e)),style:[Sl.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:[Sl.section,{padding:F?24:16,backgroundColor:b,borderColor:m.border},L],children:/* @__PURE__ */T(z,{style:Sl.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(xl,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(xl,{theme:y,variant:"primary",disabled:0===O.length,onPress:o,children:"Place bet"})]})]})}var Sl=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 Cl({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:g,onBetAmountChange:f,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,componentById:L,showCustomAmount:R=!1,betAmountLocked:D=!1,betAmountLockedNote:M,canSubmit:P,authenticated:O=!0,userBalance:I,onRecharge:E,boostBanner:j}){const N=je(p,y),G=N.colors,Y=be(N),V=Ge(N),U=se(N),q=de(N),K=he(N),Z=G.textAlt??G.text,{width:X}=v(),Q=X>=640,J="dark"===N.colorScheme,$=n.length,_=t.min_bet??0,ee=Math.max(_,.01),te=t.max_bet??null,ne=[5,10,20,50,100,200,500].filter(e=>e>=ee&&(null===te||e<=te)).slice(0,4),oe={};for(let e=0;e<=$;e++)oe[e]=g*e;const re=x??oe,ie=re[h]??0,le=Dt(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=_t(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:[
|
|
162
|
+
/* @__PURE__ */T(z,{style:[Bl.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(fl,{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:St(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:[dl(t,k,e.key),/* @__PURE__ */W(yl,{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(dn,{theme:N,size:"xs",value:a?"yes":c?"no":null,onYes:()=>r(t.id,"yes"),onNo:()=>r(t.id,"no")}):l?/* @__PURE__ */W(hn,{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)},...nn(()=>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}`))})]}),j,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:[Bl.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:kt(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 ",kt(g)," exceeds your available ",kt(I),"."]}),E&&/* @__PURE__ */W(B,{onPress:E,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:G.error},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:G.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),/* @__PURE__ */T(z,D?{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:G.backgroundAlt,borderWidth:1,borderColor:G.border},children:[/* @__PURE__ */W(S,{style:{fontSize:12,color:G.textMuted,flex:1},children:M??"Stake is set for this ticket."}),/* @__PURE__ */W(S,{style:{fontSize:18,fontWeight:"700",color:U,fontFamily:V},children:kt(g)})]}:{style:{gap:16},children:[R&&/* @__PURE__ */T(z,{children:[
|
|
166
166
|
/* @__PURE__ */W(S,{style:{fontSize:Q?14:12,fontWeight:"600",color:q,marginBottom:8},children:"Entry amount"}),
|
|
167
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: ",
|
|
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:["+",
|
|
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:
|
|
168
|
+
/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:G.textMuted},children:["Minimum bet: ",kt(ee),null!==te?` · Maximum: ${kt(te)}`:""]}),g>0&&g<ee&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:G.error},children:["Bet amount must be at least ",kt(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:["+",kt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[Bl.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:kt(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:kt(ie)}),ae&&/* @__PURE__ */W(S,{style:{color:G.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),le.enabled&&/* @__PURE__ */T(z,{style:[Bl.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?kt(le.amount):le.limit>0?`Up to ${kt(le.limit)}`:"Progressive":kt(le.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
|
|
171
171
|
/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:t}),
|
|
172
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:
|
|
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:kt(g)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[Bl.section,Te,{padding:Q?24:16,backgroundColor:Y,borderColor:G.border}],children:[
|
|
174
174
|
/* @__PURE__ */W(S,{style:{fontSize:Q?18:16,fontWeight:"600",color:U,fontFamily:V},children:"Log in to place this entry"}),
|
|
175
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:[
|
|
177
|
-
return T(B,{onPress:g,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:f,accessibilityState:{disabled:!m,selected:i},...
|
|
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:
|
|
179
|
-
return T(z,{style:
|
|
180
|
-
/* @__PURE__ */W(S,{style:[
|
|
181
|
-
/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:
|
|
182
|
-
/* @__PURE__ */W(S,{style:[
|
|
183
|
-
/* @__PURE__ */W(z,{style:[
|
|
184
|
-
return W(
|
|
185
|
-
/* @__PURE__ */T(S,{style:[
|
|
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:[Bl.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(on,{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 (${kt(g)})`})})]})]})}var Bl=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}}),zl="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 vl({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},...nn(()=>y(!0),()=>y(!1)),style:[Wl.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&&Wl.circleWinning,m&&p&&Wl.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:zl,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:kt(u)})]})}function Fl({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=Dt(e),y=u?48:40,[m,b]=c({width:0,height:0});/* @__PURE__ */
|
|
179
|
+
return T(z,{style:Wl.container,children:[
|
|
180
|
+
/* @__PURE__ */W(S,{style:[Wl.title,{color:d.textMuted}],children:"Payout Visualization"}),p.enabled&&/* @__PURE__ */T(z,{style:[Wl.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:zl,fill:d.warning})}),
|
|
182
|
+
/* @__PURE__ */W(S,{style:[Wl.jackpotText,{color:d.warning}],children:p.progressive?p.amount>0?`Progressive Jackpot: ${kt(p.amount)}${p.limit>0?` (up to ${kt(p.limit)})`:""} for a perfect pick!`:p.limit>0?`Progressive Jackpot — up to ${kt(p.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${kt(p.amount)} for a perfect pick!`})]}),
|
|
183
|
+
/* @__PURE__ */W(z,{style:[Wl.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 ${kt(p.amount)})`:""}${p.limit>0?` up to ${kt(p.limit)}`:""} plus ${kt(l)}`:`${r} correct wins jackpot ${kt(p.amount)} plus ${kt(l)}`:i?`${r} correct wins ${kt(l)}`:l>0?`${r} correct pays ${kt(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
|
|
184
|
+
return W(vl,{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:[Wl.expectedText,{color:d.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:Wl.expectedBold,children:[n," correct"]})]})]})}var Wl=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 Tl({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:[
|
|
186
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"})]}),
|
|
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(
|
|
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
|
|
189
|
-
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function
|
|
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(
|
|
191
|
-
/* @__PURE__ */W(z,{style:[
|
|
192
|
-
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(Nn,{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 Al({color:e,style:t}){/* @__PURE__ */
|
|
189
|
+
return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Ll({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(Al,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Al,{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(Al,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Al,{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(Al,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Al,{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(Al,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Al,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Al,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Rl({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 ei({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:R,loading:D,error:M,refetch:P}=ri(L,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=ti(L,void 0,{skip:b}),{propositions:j,loading:N,error:G}=ni(L,void 0,{skip:b}),Y=b?s:R,V=b?d:O,U=b?h:j,q=!b&&(D||I||N),K=b?null:M||E||G,Z=l(()=>Y.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[Y]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of Z)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of v)e.set(t.id,t);return e},[U,Z,v]),J=a(/* @__PURE__ */new Set);r(()=>{if(q||b)return;const e=[];for(const n of Z)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await L.getPropositionsByIds(e);!t&&n.length>0&&F(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[Z,Q,q,b,L]);const $=l(()=>y?Z.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):Z,[Z,y,Q]),_=l(()=>$.filter(e=>wt(e.pending)),[$]),ee=l(()=>$.filter(e=>!wt(e.pending)),[$]),te="pending"===k?_:ee;return q?/* @__PURE__ */W(z,{style:Ml.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(Ll,{colors:ke(m)})}):K?/* @__PURE__ */W(z,{style:Ml.container,children:/* @__PURE__ */T(z,{style:[Ml.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:Ml.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:Ml.container,children:[
|
|
191
|
+
/* @__PURE__ */W(z,{style:[Ml.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:[Ml.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[Ml.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[Ml.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Ml.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:Ml.emptyState,children:[
|
|
193
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"})})}),
|
|
194
|
-
/* @__PURE__ */W(S,{style:[
|
|
195
|
-
/* @__PURE__ */W(S,{style:[
|
|
196
|
-
/* @__PURE__ */W(z,{style:
|
|
197
|
-
/* @__PURE__ */T(z,{style:
|
|
198
|
-
/* @__PURE__ */W(z,{style:[
|
|
199
|
-
return T(z,{style:[
|
|
200
|
-
return T(z,{style:[
|
|
201
|
-
/* @__PURE__ */T(z,{style:
|
|
202
|
-
/* @__PURE__ */T(z,{style:
|
|
203
|
-
/* @__PURE__ */T(z,{style:
|
|
204
|
-
return T(z,{style:[
|
|
205
|
-
/* @__PURE__ */W(S,{style:[
|
|
206
|
-
/* @__PURE__ */W(S,{style:[
|
|
207
|
-
/* @__PURE__ */W(S,{style:[
|
|
208
|
-
return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...
|
|
209
|
-
return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...
|
|
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,...
|
|
211
|
-
return T(z,{style:d&&
|
|
212
|
-
return T(z,{style:
|
|
213
|
-
/* @__PURE__ */W(
|
|
214
|
-
/* @__PURE__ */W(z,{style:
|
|
215
|
-
return T(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
/* @__PURE__ */W(
|
|
220
|
-
/* @__PURE__ */W(
|
|
221
|
-
/* @__PURE__ */W(
|
|
194
|
+
/* @__PURE__ */W(S,{style:[Ml.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
|
|
195
|
+
/* @__PURE__ */W(S,{style:[Ml.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
|
|
196
|
+
/* @__PURE__ */W(z,{style:Ml.entryList,children:te.map(e=>/* @__PURE__ */W(Dl,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function Dl({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=wt(e.pending),L=!v&&bt(e.winning)>0,R=e.payout_status,D="fulfilled"===R&&L,M=v?"Pending":D?"Won — pay due":"paid_out"===R&&L?"Paid":L?"Won":"Lost",P=v||D?a.warningBg:L?a.successBg:a.errorBg,O=v||D?a.warningText:L?a.successText:a.errorText,I=C&&x>0?`${k}/${f} correct`:f>0?`${f} pick${1!==f?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:Ml.cardHeader,children:[/* @__PURE__ */T(z,{style:Ml.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(Tl,{iconUrl:Ze(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[Ml.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:Ml.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[Ml.metaText,{color:a.textMuted}],children:St(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(S,{style:[Ml.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[Ml.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:Ml.cardHeaderRight,children:[
|
|
197
|
+
/* @__PURE__ */T(z,{style:Ml.amounts,children:[bt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[Ml.betLabel,{color:a.textMuted}],children:kt(bt(e.bet_amount))}),!v&&bt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[Ml.winAmount,{color:a.success}],children:kt(bt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",kt(bt(e.payout_jackpot))," jackpot"]})]})]}),
|
|
198
|
+
/* @__PURE__ */W(z,{style:[Ml.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[Ml.statusText,{color:O}],children:M})}),m&&/* @__PURE__ */W(z,{style:{transform:[{rotate:p?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:a.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});/* @__PURE__ */
|
|
199
|
+
return T(z,{style:[Ml.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:[Ml.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:Ml.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(hn,{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=Ft(o)?void 0:o.home_team;/* @__PURE__ */
|
|
200
|
+
return T(z,{style:[Ml.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
|
|
201
|
+
/* @__PURE__ */T(z,{style:Ml.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:Ml.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[Ml.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[Ml.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[Ml.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:St(o.commence_time)})]}),
|
|
202
|
+
/* @__PURE__ */T(z,{style:Ml.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Ml.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(hn,{theme:r,size:"sm",value:"yes"===l?"yes":"no"}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
|
|
203
|
+
/* @__PURE__ */T(z,{style:Ml.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Ml.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 Ml=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 Pl({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=vi(),{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:[Hl.container,s&&Hl.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:Hl.textBlock,children:[
|
|
205
|
+
/* @__PURE__ */W(S,{style:[Hl.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
|
|
206
|
+
/* @__PURE__ */W(S,{style:[Hl.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:g}),
|
|
207
|
+
/* @__PURE__ */W(S,{style:[Hl.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...nn(()=>h(!0),()=>h(!1)),style:[Hl.button,s&&Hl.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[Hl.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var Hl=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 Ol({onBack:t,title:n="Go back"}){const{theme:o}=vi(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
|
|
208
|
+
return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...nn(()=>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 Il({onBack:t,label:n="Games"}){const{theme:o}=vi(),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,...nn(()=>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 El({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=vi(),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,...nn(()=>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(Ol,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}function jl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=vi(),c=n.colors,{width:s}=v(),d=s>=640,h=s>=768;/* @__PURE__ */
|
|
211
|
+
return T(z,{style:d&&Yl.headerWide,children:[/* @__PURE__ */T(z,{style:Yl.titleRow,children:[/* @__PURE__ */W(S,{style:[Yl.title,d&&Yl.titleWide,h&&Yl.titleDesktop,{color:se(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:Yl.howToPlayWrap,children:/* @__PURE__ */W(Sn,{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(El,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function Nl({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=vi(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[Yl.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[Yl.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Yl.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function Gl({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=vi(),{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:Yl.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(jl,{onBack:d,hideActions:u})}),
|
|
213
|
+
/* @__PURE__ */W(Pl,{}),
|
|
214
|
+
/* @__PURE__ */W(z,{style:Yl.content,children:/* @__PURE__ */W($r,{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"===Pr(e)&&Or(e)&&!g)return p.goToSportSelection(),void t?.();const s=Pr(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 Yl=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 Vl({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=pt(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l),c=!o;/* @__PURE__ */
|
|
215
|
+
return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[/* @__PURE__ */T(F,c?{children:[
|
|
216
|
+
/* @__PURE__ */W(I,{x:90,y:90,width:260,height:260,rx:52,fill:ut}),
|
|
217
|
+
/* @__PURE__ */W(I,{x:55,y:55,width:260,height:260,rx:52,fill:"#4B7985"}),
|
|
218
|
+
/* @__PURE__ */W(I,{x:20,y:20,width:260,height:260,rx:52,fill:ht,stroke:ut,strokeWidth:6})]}:{children:[
|
|
219
|
+
/* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:ht,strokeWidth:4}),
|
|
220
|
+
/* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:ht,opacity:.3}),
|
|
221
|
+
/* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:ht,opacity:.55}),
|
|
222
|
+
/* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:ht})]}),
|
|
223
|
+
/* @__PURE__ */W(N,{x:c?150:180,y:c?180: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:ht,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:ht,children:"TM"})]})]})}var Ul="yesno:favourite-sport",ql=null;function Kl(){try{return globalThis.localStorage??null}catch{return null}}var Zl="Your stake",Xl="Clear bet";function Ql(e,t,n){const o=n?.stake&&n.stake>0?n.stake:20;if(sr(n?.game)){const e=Yr(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:Yr(n?.game??null,t,o,{expectedCorrect:n?.expectedCorrect})/o*20}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}=vi(),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=Kl()?.getItem(Ul);if(e)return e}catch{}return ql}():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,A=Object.keys(u).length>0;/* @__PURE__ */
|
|
224
|
+
return T(z,{style:[_l.wrap,r],children:[t?/* @__PURE__ */W(S,{style:[_l.label,{color:w,fontFamily:b}],children:t}):null,A?/* @__PURE__ */T(z,{style:_l.lockRow,children:[/* @__PURE__ */W(S,{style:[_l.hint,{color:p.textMuted,fontFamily:m,marginBottom:0}],children:"One sport per bet."}),/* @__PURE__ */W(B,{accessibilityRole:"button",onPress:()=>{for(const e of Object.keys(u)){const t=Number(e);g(t,u[t])}},children:/* @__PURE__ */W(S,{style:[_l.hint,{color:p.primary,fontFamily:m,fontWeight:"600",marginBottom:0,textDecorationLine:"underline"}],children:Xl})})]}):F?/* @__PURE__ */W(S,{style:[_l.hint,{color:p.textMuted,fontFamily:m}],children:F}):null,
|
|
225
|
+
/* @__PURE__ */W(Ln,{theme:i,contentContainerStyle:_l.shelf,children:v.map(({key:e})=>{const t=a.find(t=>t.key===e)?.games_today??0,n=c===e,r=k===e,l=h(e);/* @__PURE__ */
|
|
226
|
+
return T(z,{style:_l.slot,children:[/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:n},activeOpacity:.85,disabled:A&&!n,onPress:()=>{return t=e,void(A||t===c||s(t));var t},style:[_l.card,$l(i),{opacity:A&&!n?.45:1,backgroundColor:y,borderColor:n?p.primary:p.border,borderWidth:n?2:1,paddingTop:(f?26:12)-(n?1:0),paddingBottom:n?7:8}],children:[/* @__PURE__ */T(z,{style:_l.tile,children:[o?o(e):/* @__PURE__ */W(Vl,{gameKey:e,size:40,footer:null,sportBaseKey:d,title:`${l} button`}),t>0&&/* @__PURE__ */W(z,{style:[_l.liveDot,{backgroundColor:p.success,borderColor:y}]})]}),/* @__PURE__ */W(S,{numberOfLines:2,style:[_l.name,{color:n?w:p.text,fontFamily:b}],children:l})]}),f&&/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityState:{selected:r},accessibilityLabel:r?`Unpin ${l}`:`Pin ${l} to the front`,activeOpacity:.7,onPress:()=>(e=>{const t=k===e?null:e;C(t),function(e){ql=e;try{e?Kl()?.setItem(Ul,e):Kl()?.removeItem(Ul)}catch{}}(t)})(e),style:_l.starHit,children:/* @__PURE__ */W(z,{style:[_l.star,{backgroundColor:r?ne(x,.22):y,borderColor:r?x:p.border}],children:/* @__PURE__ */W(An,{size:12,filled:r,color:r?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},lockRow:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:6},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({onBack:e,hideActions:t}={}){const{theme:n}=vi(),o=Ge(n),r=n.colors,{width:i}=v(),l=i>=640;/* @__PURE__ */
|
|
227
|
+
return T(z,{style:l&&oa.headerWide,children:[/* @__PURE__ */W(S,{style:[oa.sectionTitle,l&&oa.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t})]})}function ta({onCancel:e}){const{theme:t,screenSize:n}=vi(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:oa.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[oa.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[oa.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function na({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}=vi(),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%";Wt(c);const L=Tt(c);return s?/* @__PURE__ */W(z,{style:oa.container,children:/* @__PURE__ */W(oo,{colors:ke(a),bodyFont:y,variant:"category",categoryCount:L.length>0?L.length:2})}):/* @__PURE__ */T(z,{style:oa.container,children:[!o&&/* @__PURE__ */W(z,{style:oa.titleWrap,children:/* @__PURE__ */W(ea,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:oa.content,children:/* @__PURE__ */W(z,{style:[oa.grid,b&&oa.gridWide],onLayout:e=>F(e.nativeEvent.layout.width),children:L.map(e=>{const n=l?.(e)??function(e){return ft[e]??""}(e),o=x===e;/* @__PURE__ */
|
|
228
|
+
return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...nn(()=>k(e),()=>k(t=>t===e?null:t)),style:[oa.card,b&&oa.cardWide,{width:A,backgroundColor:p,borderColor:o?f.primary:f.border},o&&oa.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(Wn,{label:g(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[oa.tagline,b&&oa.taglineWide,{color:f.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var oa=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 ra(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 ia({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[aa.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
|
|
229
|
+
return T(z,{style:aa.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:aa.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[aa.teamName,i&&aa.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function la({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=vi(),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:aa.container,children:/* @__PURE__ */W(oo,{colors:ke(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:aa.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[aa.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:[aa.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[aa.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[aa.list,f&&aa.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
|
|
230
|
+
return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${ro(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,...nn(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[aa.card,f&&aa.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&aa.cardHovered],children:[/* @__PURE__ */T(z,{style:aa.cardMain,children:[/* @__PURE__ */T(z,{style:[aa.matchup,f&&aa.matchupWide,{backgroundColor:u}],children:[
|
|
231
|
+
/* @__PURE__ */W(ia,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f}),
|
|
232
|
+
/* @__PURE__ */W(S,{style:[aa.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
|
|
233
|
+
/* @__PURE__ */W(ia,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f})]}),/* @__PURE__ */T(S,{style:[aa.meta,f&&aa.metaWide,{color:c.textMuted,fontFamily:s}],children:[ra(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(zn,{size:22,color:c.textMuted})})]},e.id)})})]})}var aa=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 ca({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,g]=c(!1),[f,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,v]=c(null),[A,L]=c(null),R="web"===m.OS,D=36+36*e.length+12,M="up"===s||f?"up":"down";i(()=>{if(!h||!R)return 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:D,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,D,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<D&&t>r),L({x:e,y:t,width:n,height:o})})},[h,R,D]);const P=/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */T(B,{onPress:()=>{t(e),g(!1)},accessibilityRole:"menuitem",...nn(()=>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__ */
|
|
222
234
|
return T(z,{ref:x,style:{position:"relative",flexShrink:0},children:[
|
|
223
|
-
/* @__PURE__ */W(
|
|
224
|
-
/* @__PURE__ */W(
|
|
225
|
-
return
|
|
226
|
-
|
|
227
|
-
/* @__PURE__ */W(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
return T(z,{style:
|
|
234
|
-
return W(
|
|
235
|
-
return T(z,{style:[Jl.block,h&&Jl.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[Jl.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
|
|
236
|
-
/* @__PURE__ */W(pl,{iconUrl:t,gameName:n,height:s?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:i.brand?.accent,compact:s}),o?/* @__PURE__ */W(S,{style:[Jl.tagline,h&&Jl.taglineWide,{color:a.textMuted}],children:o}):null]})}var Jl=k.create({block:{alignItems:"center",marginBottom:16},blockWide:{marginBottom:28},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:20,textAlign:"center"},tagline:{marginTop:8,fontSize:13,lineHeight:18,textAlign:"center",maxWidth:384},taglineWide:{marginTop:12,fontSize:15,lineHeight:24}});function $l({ariaLabel:e,children:t}){const{width:n}=v();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:ea.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:ea.rail,children:t})}function _l(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var ea=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function ta({legs:e,prizeBall:t=!0}){const{theme:n}=gi(),o=n.colors.primary,r=fe(n);/* @__PURE__ */
|
|
237
|
-
return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function na({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=gi(),a=l.colors,s=Ge(l),d=se(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:g}=v(),f=g>=640,[p,y]=c(!1);/* @__PURE__ */
|
|
238
|
-
return T(z,{...it(()=>y(!0),()=>y(!1)),style:[oa.card,f&&oa.cardWide,{backgroundColor:u,borderColor:p?h:a.border,shadowColor:p?h:"#000",shadowOpacity:p?.28:.08,shadowRadius:p?14:10,shadowOffset:{width:0,height:p?12:8},elevation:p?4:1,transform:[{translateY:p?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:r,activeOpacity:.85,style:[oa.cardMain,f&&oa.cardMainWide],children:[e,
|
|
239
|
-
/* @__PURE__ */T(z,{style:[oa.cardText,f&&oa.cardTextWide],children:[/* @__PURE__ */T(z,{style:oa.titleRow,children:[/* @__PURE__ */W(S,{style:[oa.cardTitle,f&&oa.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[oa.statChip,{backgroundColor:Zl(h,.12)}],children:/* @__PURE__ */W(S,{style:[oa.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:oa.detailBlock,children:(f?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[oa.detailLine,f&&oa.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
|
|
240
|
-
/* @__PURE__ */W(z,{style:[oa.chevron,{transform:[{translateX:p?2:0}]}],children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:h,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?/* @__PURE__ */W(z,{style:[oa.childrenWrap,{borderTopColor:Zl(d,.08)}],children:i}):null]})}var oa=k.create({card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardMainWide:{gap:16},cardText:{flex:1,minWidth:0,gap:4},cardTextWide:{gap:6},titleRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4},cardTitle:{fontSize:16,fontWeight:"800",letterSpacing:-.4},cardTitleWide:{fontSize:20,letterSpacing:-.5},statChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},statChipText:{fontSize:9,fontWeight:"700",letterSpacing:.72},detailBlock:{gap:2},detailLine:{fontSize:12,lineHeight:17},detailLineWide:{fontSize:13,lineHeight:18},chevron:{alignSelf:"center",flexShrink:0},childrenWrap:{marginTop:12,paddingTop:12,borderTopWidth:1}});function ra({style:e}){/* @__PURE__ */
|
|
241
|
-
return W(Ul,{style:[{marginBottom:16},e]})}function ia({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selections:c,toggleSelection:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,goToConfirmation:g,selectedEventId:f,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=gi(),x=o.colors,k=ot(l),C=er(l??{},l?w?.[l.id]:void 0),{width:B}=v(),F=B>=640,A=eo(l)&&!f,L=p.find(e=>e.id===f),R=l?cn(l,d,m):{min:0,max:0},D=R.min,M=eo(l)&&f?Math.min(R.max,a.length):R.max,P=D>0&&D===M,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&D>0&&M>D,O=P?M:M||a.length,I=e=>{const t=Math.max(0,Math.min(e??O,a.length));for(const i of Object.keys(c)){const e=Number(i);s(e,c[e])}const n=[...a].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const i of n)Math.random()<.5?o.push(i):r.push(i);for(const i of o)s(i.id,"yes");for(const i of r)s(i.id,"no")},E=!h&&a.length>0,j=H?Array.from({length:M-D+1},(e,t)=>D+t).filter(e=>e<=a.length):[],N=u>0?u:D||O;/* @__PURE__ */
|
|
242
|
-
return T(z,{style:[ha.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ha.title,{fontSize:F?24:20,color:se(o),fontFamily:r}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(zl,{onBack:f?()=>y(null):e,hideActions:n,label:L?$n(L):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(kt,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(tr,{tiers:C.hasGenericDividends?C.tiers:[],modes:C.modes,pydDividends:C.pydDividends,minBet:C.minBet,maxBet:C.maxBet,colors:x,bodyFont:i,headingFont:r}),colors:{text:x.text,textMuted:x.textMuted,border:x.border,background:x.background,backgroundAlt:x.backgroundAlt,primary:x.primary,primaryText:x.primaryText},bodyFont:i,headingFont:r}):null})]}),E&&(j.length>1?/* @__PURE__ */W(Il,{counts:j,onPick:e=>{I(e),g(),t?.()},onDoubleAction:()=>{I(N),g(),t?.()},colors:x,menuShadow:ce(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(pi,{onPress:()=>{I(),g(),t?.()}})}))]})}function la({number:e,color:t,size:n=34,label:o,selected:r,onSelect:i}){const l=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});/* @__PURE__ */
|
|
243
|
-
return W(ht,{children:/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityLabel:o,onPress:i,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[
|
|
235
|
+
/* @__PURE__ */W(Wi,{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),
|
|
236
|
+
/* @__PURE__ */W(Vn,{visible:h&&!R,anchor:A,onClose:()=>g(!1),flipUp:"up"===M,align:l,children:/* @__PURE__ */W(z,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:P})})]})}function sa(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 da({iconUrl:e,size:t=56}){const{theme:n}=vi(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=pe(r,fe(n),i);/* @__PURE__ */
|
|
237
|
+
return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:sa(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Nn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function ha({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=vi(),a=i.colors,c=Ge(i),s="mobile"===l,{width:d}=v(),h=d>=640;/* @__PURE__ */
|
|
238
|
+
return T(z,{style:[ua.block,h&&ua.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[ua.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
|
|
239
|
+
/* @__PURE__ */W(Tl,{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:[ua.tagline,h&&ua.taglineWide,{color:a.textMuted}],children:o}):null]})}var ua=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 ga({ariaLabel:e,children:t}){const{width:n}=v();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:pa.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:pa.rail,children:t})}function fa(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var pa=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function ya({legs:e,prizeBall:t=!0}){const{theme:n}=vi(),o=n.colors.primary,r=fe(n);/* @__PURE__ */
|
|
240
|
+
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 ma({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=vi(),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__ */
|
|
241
|
+
return T(z,{...nn(()=>y(!0),()=>y(!1)),style:[ba.card,f&&ba.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:[ba.cardMain,f&&ba.cardMainWide],children:[e,
|
|
242
|
+
/* @__PURE__ */T(z,{style:[ba.cardText,f&&ba.cardTextWide],children:[/* @__PURE__ */T(z,{style:ba.titleRow,children:[/* @__PURE__ */W(S,{style:[ba.cardTitle,f&&ba.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[ba.statChip,{backgroundColor:sa(h,.12)}],children:/* @__PURE__ */W(S,{style:[ba.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:ba.detailBlock,children:(f?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[ba.detailLine,f&&ba.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
|
|
243
|
+
/* @__PURE__ */W(z,{style:[ba.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:[ba.childrenWrap,{borderTopColor:sa(d,.08)}],children:i}):null]})}var ba=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 wa({style:e}){/* @__PURE__ */
|
|
244
|
+
return W(Jl,{style:[{marginBottom:16},e]})}function xa({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}=vi(),w=o.colors,x=ot(l),k=Ur(l??{},l?b?.[l.id]:void 0),{width:C}=v(),B=C>=640,F=lo(l)&&!g,A=f.find(e=>e.id===g),L=l?Rt(l,c,y):{min:0,max:0},R=L.min,D=lo(l)&&g?Math.min(L.max,a.length):L.max,M=R>0&&R===D,P=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),H=Er(l,c),O=!jr(l)&&!P&&R>0&&D>R,I=H??(M?D:D||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:D-R+1},(e,t)=>R+t).filter(e=>e<=a.length):[],G=d>0?d:R||I;/* @__PURE__ */
|
|
245
|
+
return T(z,{style:[va.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[va.title,{fontSize:B?24:20,color:se(o),fontFamily:r}],children:F?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(El,{onBack:g?()=>p(null):e,hideActions:n,label:A?ro(A):l.game_name,children:x||m?.trim()?/* @__PURE__ */W(Sn,{variant:"icon",content:m,panel:x,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(qr,{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(ca,{counts:N,onPick:e=>E(e),onDoubleAction:()=>E(G),colors:w,menuShadow:ce(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(Wi,{onPress:()=>E()})}))]})}function ka({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__ */
|
|
246
|
+
return W(un,{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
247
|
/* @__PURE__ */W(z,{style:l(.44*n,.3)}),
|
|
245
248
|
/* @__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
|
|
249
|
+
/* @__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 Sa({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}=vi(),w=r.colors,k=l?Rt(l,a,h):{min:0,max:0},B=Er(l,a),v=B??k.min,A=B??(lo(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 D=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:kt(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}),M=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=Nr(l),[j,N]=e.useState(null),G=D.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__ */
|
|
247
250
|
return T(z,{children:[
|
|
248
|
-
/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===
|
|
249
|
-
/* @__PURE__ */W(S,{style:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,fontSize:10,fontWeight:"700",textTransform:"uppercase",backgroundColor:"yes"===
|
|
250
|
-
/* @__PURE__ */W(S,{numberOfLines:2,style:{flex:1,fontSize:12,color:
|
|
251
|
-
/* @__PURE__ */W(
|
|
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:[
|
|
253
|
-
return T(B,{accessibilityRole:"button",onPress:()=>t(r),style:[
|
|
254
|
-
return T(z,{style:
|
|
255
|
-
/* @__PURE__ */W(z,{style:
|
|
256
|
-
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[
|
|
257
|
-
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[
|
|
258
|
-
return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>
|
|
259
|
-
return T(z,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[
|
|
260
|
-
/* @__PURE__ */W(S,{style:{color:
|
|
261
|
-
/* @__PURE__ */W(S,{style:{color:
|
|
262
|
-
return T(z,{style:[
|
|
263
|
-
return T(z,{style:
|
|
264
|
-
/* @__PURE__ */W(
|
|
265
|
-
/* @__PURE__ */W(z,{style:
|
|
266
|
-
/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:N.textMuted,marginBottom:4},children:"How you win"}),le&&/* @__PURE__ */W(S,{style:{fontSize:Y?14:12,color:N.text},children:le}),ae>0&&/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.textMuted,marginTop:6},children:[`${ce} `/* @__PURE__ */,W(S,{style:{fontWeight:"700",color:se(c)},children:Qt(ae)})]})]}),re&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.warning}40`,backgroundColor:`${N.warning}10`,flexDirection:Y?"row":"column",alignItems:Y?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.text,flexShrink:1},children:["You have ",
|
|
267
|
-
/* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[Z," pick",1!==Z?"s":""]}),`. ${de}`]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:te,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonSecondary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonSecondaryText},children:"Add a pick"})}),null!=ne&&/* @__PURE__ */W(B,{onPress:()=>I(ne),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:ie.switchTierLabel(ne)})})]})]}),_&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.primary}30`,backgroundColor:`${N.primary}08`},children:$?(()=>{const e=f??Z,t=R[e],n=b>0?b:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===D.legs.length?/* @__PURE__ */W(S,{style:{fontSize:13,color:w.textMuted},children:"Tap Yes or No to start building your multi."}):D.legs.map(e=>/* @__PURE__ */W(ka,{number:e.number,color:"yes"===e.side?M:P,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===j,onSelect:()=>N(t=>t===e.id?null:e.id)},e.id))}),D.legs.length>0?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},children:[G?/* @__PURE__ */T(F,{children:[
|
|
252
|
+
/* @__PURE__ */W(S,{style:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,fontSize:10,fontWeight:"700",textTransform:"uppercase",backgroundColor:"yes"===G.side?M:P,color:"#fff"},children:G.side}),
|
|
253
|
+
/* @__PURE__ */W(S,{numberOfLines:2,style:{flex:1,fontSize:12,color:w.text},children:Y}),
|
|
254
|
+
/* @__PURE__ */W(on,{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(on,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{N(null);for(const e of D.legs)b(e.id,e.side)},children:Xl})]}):null,
|
|
255
|
+
/* @__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:Zl}),/* @__PURE__ */T(z,E?{accessibilityLabel:`${Zl}. ${Gr(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:kt(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:Zl,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:D.dividendText})]})]}),!o&&/* @__PURE__ */W(on,{theme:r,block:!0,size:"md",radius:"lg",disabled:D.ctaDisabled,onPress:()=>{d(),t?.()},children:D.ctaLabel})]})}function Ca({view:e,onChange:t}){const{theme:n}=vi(),o=n.colors,r="list"===e?"swipe":"list",i="swipe"===r;/* @__PURE__ */
|
|
256
|
+
return T(B,{accessibilityRole:"button",onPress:()=>t(r),style:[Ba.button,{borderColor:o.primary,backgroundColor:sa(o.primary,.1)}],children:[/* @__PURE__ */W(S,{style:[Ba.glyph,{color:o.primary}],children:i?"⇆":"☰"}),/* @__PURE__ */W(S,{style:[Ba.label,{color:o.primary}],children:i?"Swipe cards":"List view"})]})}var Ba=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 za({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=vi(),{selectedRule:h}=d,{theme:u,selectedGame:g,propositions:f,selections:p,toggleSelection:y,loading:m,error:b,disableQuickPick:w,renderTeamLogo:x,filterSport:k,initialSport:S,gameCategory:C,selectedPropositionCount:B,handlePropositionCountChange:v,goToConfirmation:F,goBack:A,selectedCategory:L,setSelectedCategory:R,selectedSport:D,selectedEventId:M,propositionsForCategoryPicker:P,answeredCount:H}=d,[O,I]=e.useState(i),E=l??O,j=e.useCallback(e=>{void 0===l&&I(e),a?.(e)},[l,a]);e.useEffect(()=>{g||(d.goToSportSelection(),n?.())},[g,d,n]);const N=e.useMemo(()=>{if(!g)return null;const{min:e,max:t}=Rt(g,B??void 0,h);return e>0&&e===t?e:Er(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(()=>Tt(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&&lo(g)&&!M,q=(()=>{if(!lo(g)||!M)return g;const e=Math.min(g.max_propositions??f.length,f.length);return{...g,max_propositions:e,allowed_propositions:g.allowed_propositions?.filter(t=>t<=e)}})(),K=()=>{A(),n?.()};/* @__PURE__ */
|
|
257
|
+
return T(z,{style:va.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(xa,{onBack:r?K:void 0,onNext:r?t:void 0,hideActions:r})}),!lo(g)&&/* @__PURE__ */W(Pl,{}),
|
|
258
|
+
/* @__PURE__ */W(z,{style:va.content,children:V?/* @__PURE__ */W(na,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>R(e)}):U?/* @__PURE__ */W(la,{}):"swipe"===E?/* @__PURE__ */W(Vi,{onBack:K,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W(Ca,{view:E,onChange:j}),onDragStateChange:s}):/* @__PURE__ */W(ml,{game:q,propositions:f,selections:p,onToggleSelection:y,onNext:()=>{F(),t?.()},onBack:K,loading:m,error:b,theme:u,hideActions:!0,initialSport:k??S,renderTeamLogo:x,disableQuickPick:!0,selectedPropositionCount:B,onPropositionCountChange:v,gameCategory:C,headerExtra:c?void 0:/* @__PURE__ */W(Ca,{view:E,onChange:j}),railSlot:/* @__PURE__ */W(Jl,{})})}),!r&&!V&&!U&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(Sa,{onNext:t,onBack:n})})]})}var va=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function Fa({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),D=k&&R>0?Vr(R*(l/20),t):R,M=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:M},children:[/* @__PURE__ */W(ca,{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?Vr(n*(l/20),t):null;/* @__PURE__ */
|
|
259
|
+
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?kt(o??n):"—"})})]},String(e))})})]}):d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:M},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?kt(k?Vr(n*(l/20),t):n):"—";/* @__PURE__ */
|
|
260
|
+
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?Vr(c*(l/20),t):null;/* @__PURE__ */
|
|
261
|
+
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:kt(d)})}):/* @__PURE__ */W(z,{style:[Wa.tableCell,{backgroundColor:`${r.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[Wa.tableCellText,{color:r.primary}],children:kt(c)})})]})]},String(e))})]});/* @__PURE__ */
|
|
262
|
+
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 ",
|
|
263
|
+
/* @__PURE__ */W(S,{style:{color:r.heading??r.text??r.primary},children:kt(D)}),
|
|
264
|
+
/* @__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 Ta(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function Aa({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}=vi(),g=n.colors,{width:f}=v(),p=f>=640,y=r?Rt(r,s,u):{min:0,max:0},m=y.min,b=lo(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=Er(r,s),C=!jr(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__ */
|
|
265
|
+
return T(z,{style:[Da.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[Da.title,{fontSize:p?24:20,color:se(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:r.game_name})]}),A&&(L.length>1?/* @__PURE__ */W(ca,{counts:L,onPick:e=>F(e),onDoubleAction:()=>F(R),colors:g,menuShadow:ce(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(Wi,{onPress:()=>F()})}))]})}function La({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=vi(),{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=Dt(l),x=a===g.length,k=w?.enabled&&x,C=e&&"mobile"!==f;/* @__PURE__ */
|
|
266
|
+
return T(z,{style:Da.footer,children:[C&&/* @__PURE__ */W(on,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:Da.footerRight,children:[d?/* @__PURE__ */W(S,{style:[Da.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:Da.payoutInfo,children:[/* @__PURE__ */W(S,{style:[Da.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[Da.payoutAmount,{color:p.heading??p.text}],children:[kt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
|
|
267
|
+
/* @__PURE__ */W(on,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(Ta(r))},children:n?s?"Placing…":`Place Entry (${kt(c)})`:"Log in to place entry"})]})]})}function Ra({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=vi(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,compositeComponentById:u,propositions:g,selectedPropositionCount:f,selectedEventId:p,expectedCorrect:y,setExpectedCorrect:m,betAmount:b,setBetAmount:w,submitting:x,submitError:k,canSubmit:C,winningCounts:A,payouts:L,overloadPayouts:R,renderTeamLogo:D,userBalance:M,onRecharge:P,goBack:H,toggleSelection:O,upgradePropositionCount:I,goToSportSelection:E,selectedRule:j}=a,N=c.colors,{width:G}=v(),Y=G>=640;if(r(()=>{s||(E(),e?.())},[s,E,e]),!s)return null;const V=!!(s.allowed_propositions&&s.allowed_propositions.length>0),U=Rt(s,f,j),q=Er(s,f),K=q??U.min,Z=q??(lo(s)&&p?Math.min(U.max,g.length):U.max),X=Object.keys(h).length,Q=K>0&&X<K,J=!jr(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||_;N.textAlt??N.text;const te=()=>{H(),e?.()},ne=(V?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===X&&e<(f??1/0)),oe=V&&X<Math.min(...s.allowed_propositions??[1/0]),re=V&&Q&&!oe,ie=Ir(s),le=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const i=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===i.length||n<=0)return null;const l=i[0];if(l>=n)return"Get every pick right to win.";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),ae=L[X]||Yr(s,X,b),ce=(A??[]).length>1?"Top prize":"That pays",de=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),he=null!=ne?ie.belowRequiredHint(ne,f??K):ie.belowRequiredAddOnlyHint(f??K);return r(()=>{!Q||V&&!oe||te()},[Q,V,oe]),/* @__PURE__ */T(z,{style:Da.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Aa,{onBack:e,hideActions:l})}),
|
|
268
|
+
/* @__PURE__ */W(z,{style:Da.content,children:/* @__PURE__ */W(Cl,{componentById:u,game:s,propositions:d,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(Ta(a))},onBack:te,loading:x,error:k,expectedCorrect:y,onExpectedCorrectChange:m,betAmount:b,onBetAmountChange:w,theme:c,showCustomAmount:!0,betAmountLocked:Nr(s),betAmountLockedNote:Gr(s),hideActions:!0,winningCounts:A,payouts:L,renderTeamLogo:D,canSubmit:C,authenticated:n,userBalance:M,onRecharge:P,boostBanner:/* @__PURE__ */T(F,{children:[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?Vr(t*(n/20),s):null;/* @__PURE__ */
|
|
268
269
|
return T(z,{children:[
|
|
269
270
|
/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:N.primary,marginBottom:4},children:ie.overloadTitle}),null!=o&&/* @__PURE__ */T(S,{style:{fontSize:12,color:N.textMuted,marginBottom:8},children:["Currently winning up to ",
|
|
270
|
-
/* @__PURE__ */W(S,{style:{color:N.heading??N.text,fontWeight:"700"},children:
|
|
271
|
-
/* @__PURE__ */W(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
/* @__PURE__ */T(
|
|
275
|
-
|
|
271
|
+
/* @__PURE__ */W(S,{style:{color:N.heading??N.text,fontWeight:"700"},children:kt(o)}),` with ${e} picks`]}),
|
|
272
|
+
/* @__PURE__ */W(Fa,{game:s,tiers:$.map(e=>({count:e,payout20:R[e]??0})),selectedCount:void 0,onSelect:e=>{I(e),te()},colors:N,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ie.tableColumnLabel,buttonLabel:ie.tierButtonLabel})]})})():/* @__PURE__ */W(B,{onPress:te,style:{paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:N.buttonPrimary,alignItems:"center"},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:"Add more picks"})})}),re&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.warning}40`,backgroundColor:`${N.warning}10`,flexDirection:Y?"row":"column",alignItems:Y?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.text,flexShrink:1},children:["You have ",
|
|
273
|
+
/* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[X," pick",1!==X?"s":""]}),`. ${he}`]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:te,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonSecondary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonSecondaryText},children:"Add a pick"})}),null!=ne&&/* @__PURE__ */W(B,{onPress:()=>I(ne),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:ie.switchTierLabel(ne)})})]})]}),(le||ae>0)&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.primary}30`,backgroundColor:`${N.primary}08`},children:[le&&/* @__PURE__ */W(S,{style:{fontSize:Y?14:12,color:N.text},children:le}),de.length>0?/* @__PURE__ */W(z,{style:{marginTop:8,gap:4},children:de.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:kt(e.prize)})]},e.count))}):ae>0&&/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.textMuted,marginTop:6},children:[`${ce} `/* @__PURE__ */,W(S,{style:{fontWeight:"700",color:se(c)},children:kt(ae)})]})]})]})})}),l&&k?/* @__PURE__ */W(z,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */W(S,{style:[Da.errorText,{color:N.error}],children:k})}):null]})}var Da=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"}}),Ma=m.select({ios:"Menlo",default:"monospace"});function Pa({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=vi(),l=n.colors,{width:a}=v(),c=a>=640;/* @__PURE__ */
|
|
274
|
+
return T(z,{style:Ia.titleRow,children:[/* @__PURE__ */T(z,{style:Ia.titleText,children:[/* @__PURE__ */W(S,{style:[Ia.title,c&&Ia.titleWide,{color:se(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[Ia.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */T(F,{children:["Entry"," ",
|
|
275
|
+
/* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:Ma},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[Ia.checkCircle,c&&Ia.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 Ha({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=vi();return o.colors,/* @__PURE__ */T(z,{style:Ia.footer,children:[/* @__PURE__ */W(on,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(on,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function Oa({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=vi(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:g,selectedPropositionIds:f,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=be(c),k=w.textAlt??w.text,{width:C}=v(),B=C>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},L=u?.proposition_ids?u.proposition_ids.length:f.length,R=m[L]??null,D=e.useRef(!1);return e.useEffect(()=>{u&&h?D.current=!1:(a.goToSportSelection(),D.current||(D.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:Ia.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Pa,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[Ia.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[Ia.summaryCard,B&&Ia.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:Ia.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(Tl,{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:[Ia.summaryHeading,B&&Ia.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:Ia.statsGrid,children:[
|
|
276
|
+
/* @__PURE__ */T(z,{style:[Ia.statCell,B&&Ia.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ia.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[Ia.statValue,{color:k,fontFamily:s}],children:L})]}),g>0&&/* @__PURE__ */T(z,{style:[Ia.statCell,B&&Ia.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ia.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[Ia.statValue,{color:k,fontFamily:s}],children:kt(g)})]}),null!=R&&R>0&&/* @__PURE__ */T(z,{style:[Ia.statCell,B&&Ia.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ia.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[Ia.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:kt(R)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[Ia.summaryCard,B&&Ia.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[Ia.summaryHeading,B&&Ia.summaryHeadingWide,{color:se(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:Ia.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
|
|
277
|
+
return T(z,{style:[Ia.pickRow,{backgroundColor:w.backgroundAlt}],children:[
|
|
276
278
|
/* @__PURE__ */W(z,{style:{width:20,height:20,borderRadius:10,backgroundColor:w.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:/* @__PURE__ */W(S,{style:{color:w.primaryText,fontSize:10,fontWeight:"700",fontFamily:s},children:t+1})}),
|
|
277
|
-
/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(S,{numberOfLines:1,style:{color:k,fontSize:B?14:12,fontWeight:"500",fontFamily:s},children:[
|
|
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(
|
|
279
|
-
return T(z,{style:
|
|
280
|
-
return T(z,{style:
|
|
281
|
-
return T(z,{style:c&&
|
|
282
|
-
return T(B,{onPress:()=>{g(e),f(),t?.(e)},...
|
|
283
|
-
/* @__PURE__ */T(z,{style:
|
|
284
|
-
/* @__PURE__ */W(z,{style:Aa.gridChevron,children:/* @__PURE__ */W(Bt,{size:20,color:b.textMuted})})]},e)}),c?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??Ut(e.key,y));/* @__PURE__ */
|
|
285
|
-
return T(z,{style:[Aa.gridCard,A&&Aa.gridCardWide,{backgroundColor:ne(b.backgroundAlt,.4),borderColor:ne(b.border,.7)}],children:[
|
|
286
|
-
/* @__PURE__ */W(z,{style:Aa.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Nl,{gameKey:e.key,short:e.short,size:L,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
|
|
287
|
-
/* @__PURE__ */T(z,{style:Aa.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Aa.gridName,A&&Aa.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[Aa.gridMeta,Aa.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
|
|
288
|
-
/* @__PURE__ */T(z,{style:[Aa.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(zt,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[Aa.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var Aa=k.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap:12},gridCard:{flexBasis:"100%",flexGrow:1,minWidth:0,flexDirection:"row",alignItems:"center",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:12,paddingVertical:12},gridCardWide:{flexBasis:"48%",gap:14,paddingHorizontal:16,paddingVertical:16},gridCardRaised:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:2},gridText:{flexDirection:"column",alignItems:"flex-start",minWidth:0,flexShrink:1,flexGrow:1},gridName:{fontSize:14,fontWeight:"800",letterSpacing:-.35,lineHeight:18,maxWidth:"100%"},gridNameWide:{fontSize:16,lineHeight:20},gridTaglineRow:{marginTop:4,flexDirection:"row",alignItems:"center",gap:6,minWidth:0},gridMeta:{fontSize:9.3,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.1,flexShrink:1},gridMetaSpaced:{marginTop:4},liveDot:{width:6,height:6,borderRadius:3},gridChevron:{marginLeft:"auto"},comingSoonLogo:{opacity:.6},soonPill:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:4,borderRadius:999,paddingHorizontal:8,paddingVertical:4},soonPillText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function La(e,t){const n=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function Ra({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
|
|
279
|
+
/* @__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:[Ft(e)?null:/* @__PURE__ */T(F,{children:[e.home_team," ",
|
|
280
|
+
/* @__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(hn,{theme:c,size:"sm",value:o?"yes":"no",style:{alignSelf:"center",flexShrink:0}})]},e.id)})})]})]})]}):null}var Ia=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 Ea({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=vi(),{width:r}=v(),i=r>=640;/* @__PURE__ */
|
|
281
|
+
return T(z,{style:Na.header,children:[/* @__PURE__ */W(S,{style:[Na.title,{fontSize:i?24:20,color:se(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t})]})}function ja({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}=vi();/* @__PURE__ */
|
|
282
|
+
return T(z,{style:Na.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Ea,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:Na.content,children:/* @__PURE__ */W(Rl,{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 Na=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function Ga({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=vi(),i=o.colors,l=Ge(o),{width:a}=v(),c=a>=640;/* @__PURE__ */
|
|
283
|
+
return T(z,{style:c&&Ua.headerWide,children:[/* @__PURE__ */W(S,{style:[Ua.sectionTitle,c&&Ua.sectionTitleWide,{color:i.primary,fontFamily:l}],children:At(r)}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Ya({onCancel:e}){const{theme:t,screenSize:n}=vi(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Ua.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Ua.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Ua.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Va({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}=vi(),b=s.colors,w=be(s),x=Ge(s),k=Ne(s),C=se(s),{width:F}=v(),A=F>=640,L=A?64:56,[R,D]=e.useState(null),M=Ct(d),P=Object.keys(M);return u?/* @__PURE__ */W(z,{style:Ua.container,children:/* @__PURE__ */W(oo,{colors:ke(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:Ua.container,children:[!o&&/* @__PURE__ */W(z,{style:Ua.titleWrap,children:/* @__PURE__ */W(Ga,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:Ua.content,children:/* @__PURE__ */T(z,{style:Ua.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??M[e].length,r=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,p));var a,c;const s=m(e),d=R===e;/* @__PURE__ */
|
|
284
|
+
return T(B,{onPress:()=>{g(e),f(),t?.(e)},...nn(()=>D(e),()=>D(t=>t===e?null:t)),style:[Ua.gridCard,A&&Ua.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},Ua.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Vl,{gameKey:e,size:L,footer:null,sportBaseKey:y,title:`${s} button`}),/* @__PURE__ */T(z,{style:Ua.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:2,style:[Ua.gridName,A&&Ua.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */W(z,{style:Ua.gridTaglineRow,children:/* @__PURE__ */W(S,{numberOfLines:2,style:[Ua.gridMeta,{color:b.primary,fontFamily:k}],children:r})})]})]},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??pt(e.key,y));/* @__PURE__ */
|
|
285
|
+
return T(z,{style:[Ua.gridCard,A&&Ua.gridCardWide,{backgroundColor:ne(b.backgroundAlt,.4),borderColor:ne(b.border,.7)}],children:[/* @__PURE__ */W(z,{style:Ua.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Vl,{gameKey:e.key,short:e.short,size:L,footer:null,sportBaseKey:y,title:`${e.label} button`})}),/* @__PURE__ */T(z,{style:Ua.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:2,style:[Ua.gridName,A&&Ua.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */T(z,{style:Ua.gridTaglineRow,children:[/* @__PURE__ */W(vn,{size:11,color:b.textMuted}),/* @__PURE__ */W(S,{numberOfLines:2,style:[Ua.gridMeta,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]})]})]},e.key);var o})]})})]})}var Ua=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:"48%",flexGrow:1,minWidth:0,flexDirection:"column",alignItems:"center",gap:8,borderRadius:16,borderWidth:1,paddingHorizontal:8,paddingVertical:12},gridCardWide:{paddingHorizontal:12,paddingVertical:16},gridCardRaised:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:2},gridText:{flexDirection:"column",alignItems:"center",alignSelf:"stretch",minWidth:0},gridName:{fontSize:14,fontWeight:"800",letterSpacing:-.35,lineHeight:18,maxWidth:"100%",textAlign:"center"},gridNameWide:{fontSize:16,lineHeight:20},gridTaglineRow:{marginTop:4,flexDirection:"row",alignItems:"flex-start",justifyContent:"center",gap:6,minWidth:0,alignSelf:"stretch"},gridMeta:{fontSize:9.3,fontWeight:"700",textTransform:"uppercase",letterSpacing:.93,lineHeight:13,flexShrink:1,textAlign:"center"},comingSoonLogo:{opacity:.6},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function qa(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 Ka({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
|
|
289
286
|
return T(A,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[
|
|
290
287
|
/* @__PURE__ */W(M,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
|
|
291
288
|
/* @__PURE__ */W(H,{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",opacity:.9}),
|
|
292
289
|
/* @__PURE__ */W(H,{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"}),
|
|
293
|
-
/* @__PURE__ */W(D,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(L,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function
|
|
290
|
+
/* @__PURE__ */W(D,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(L,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function Za({ink:e,ball:t,size:n}){/* @__PURE__ */
|
|
294
291
|
return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
|
|
295
292
|
/* @__PURE__ */W(L,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
|
|
296
293
|
/* @__PURE__ */W(L,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
|
|
297
294
|
/* @__PURE__ */W(L,{cx:"50",cy:"50",r:"8",fill:t}),
|
|
298
295
|
/* @__PURE__ */W(M,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
|
|
299
|
-
/* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function
|
|
296
|
+
/* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function Xa({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
|
|
300
297
|
return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
|
|
301
298
|
/* @__PURE__ */W(M,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>/* @__PURE__ */W(I,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),
|
|
302
299
|
/* @__PURE__ */W(H,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
|
|
303
|
-
/* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function
|
|
304
|
-
return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:
|
|
305
|
-
return T(z,{style:
|
|
300
|
+
/* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Qa({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(Ka,{...n,balls:t}):/* @__PURE__ */W("pick"===e?Xa:Za,{...n})}function Ja({kind:e,size:t=56,balls:n}){const{theme:o}=vi(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=fe(o);/* @__PURE__ */
|
|
301
|
+
return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:qa(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(Qa,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function $a({option:e,renderDividends:t}){const{theme:n}=vi(),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:ic.dividends,children:[/* @__PURE__ */T(z,{style:ic.dividendRow,children:[/* @__PURE__ */W(S,{style:[ic.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[ic.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
|
|
302
|
+
return T(z,{style:ic.dividendTierRow,children:[/* @__PURE__ */T(z,{style:ic.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[ic.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:ic.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[ic.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[ic.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[ic.dividendMult,{color:i,fontFamily:r}],children:kt(t.payout20)})]},t.misses)})]})}function _a({option:e,renderDividends:t}){const{theme:o}=vi(),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?kt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
|
|
306
303
|
return T(z,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[d>0?/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:l.text},children:["Win up to ",
|
|
307
|
-
/* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:
|
|
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(
|
|
309
|
-
return T(z,{...
|
|
310
|
-
/* @__PURE__ */W(
|
|
311
|
-
/* @__PURE__ */T(z,{style:
|
|
312
|
-
/* @__PURE__ */W(S,{style:[
|
|
313
|
-
/* @__PURE__ */W(z,{style:
|
|
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:[
|
|
315
|
-
return W(z,{...
|
|
316
|
-
/* @__PURE__ */W(
|
|
317
|
-
/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:
|
|
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
|
|
319
|
-
return T(z,{style:[
|
|
320
|
-
return T(z,{style:[
|
|
321
|
-
/* @__PURE__ */T(z,{style:
|
|
322
|
-
/* @__PURE__ */W(
|
|
323
|
-
/* @__PURE__ */W(
|
|
324
|
-
return T(z,{style:[
|
|
325
|
-
return T(z,{style:[
|
|
326
|
-
/* @__PURE__ */W(
|
|
327
|
-
/* @__PURE__ */W(
|
|
328
|
-
/* @__PURE__ */T(z,{style:[
|
|
329
|
-
/* @__PURE__ */W(z,{style:
|
|
330
|
-
return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[
|
|
331
|
-
/* @__PURE__ */T(z,{style:
|
|
332
|
-
/* @__PURE__ */T(z,{style:
|
|
333
|
-
/* @__PURE__ */T(z,{style:[
|
|
334
|
-
/* @__PURE__ */W(z,{style:
|
|
335
|
-
return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[
|
|
336
|
-
/* @__PURE__ */T(z,{style:[
|
|
337
|
-
/* @__PURE__ */T(z,{style:
|
|
338
|
-
/* @__PURE__ */T(z,{style:
|
|
339
|
-
/* @__PURE__ */T(S,{style:[
|
|
340
|
-
/* @__PURE__ */W(S,{style:[
|
|
341
|
-
/* @__PURE__ */T(z,{style:[
|
|
342
|
-
return T(z,{style:
|
|
343
|
-
return T(z,{style:
|
|
344
|
-
/* @__PURE__ */W(
|
|
345
|
-
/* @__PURE__ */W(
|
|
346
|
-
/* @__PURE__ */T(z,{style:[
|
|
347
|
-
/* @__PURE__ */W(
|
|
348
|
-
return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...
|
|
349
|
-
/* @__PURE__ */W(S,{style:[
|
|
350
|
-
/* @__PURE__ */T(z,{style:[
|
|
351
|
-
/* @__PURE__ */T(z,{style:
|
|
352
|
-
/* @__PURE__ */W(z,{style:
|
|
353
|
-
return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...
|
|
354
|
-
/* @__PURE__ */W(S,{style:[
|
|
355
|
-
/* @__PURE__ */T(z,{style:[
|
|
356
|
-
return T(z,{style:
|
|
357
|
-
return T(z,{style:[
|
|
358
|
-
/* @__PURE__ */W(
|
|
359
|
-
/* @__PURE__ */W(
|
|
360
|
-
/* @__PURE__ */T(z,{style:[
|
|
361
|
-
/* @__PURE__ */W(z,{style:
|
|
362
|
-
return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[
|
|
363
|
-
/* @__PURE__ */W(S,{style:[
|
|
364
|
-
/* @__PURE__ */T(z,{style:
|
|
365
|
-
return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...
|
|
366
|
-
/* @__PURE__ */T(S,{style:[
|
|
367
|
-
/* @__PURE__ */W(S,{style:[
|
|
368
|
-
/* @__PURE__ */T(S,{style:[
|
|
369
|
-
/* @__PURE__ */T(z,{style:[
|
|
370
|
-
/* @__PURE__ */T(S,{style:[
|
|
371
|
-
/* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:
|
|
372
|
-
/* @__PURE__ */T(z,{style:
|
|
373
|
-
/* @__PURE__ */W(z,{style:
|
|
374
|
-
return T(z,{style:
|
|
375
|
-
/* @__PURE__ */T(S,{style:[
|
|
376
|
-
/* @__PURE__ */T(z,{style:[
|
|
377
|
-
return W(z,{style:
|
|
378
|
-
return W(z,{style:[
|
|
304
|
+
/* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:kt(d)}),
|
|
305
|
+
/* @__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(Vn,{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 ec({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=vi(),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__ */
|
|
306
|
+
return T(z,{...nn(()=>m(!0),()=>m(!1)),style:[ic.card,u&&ic.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:ic.cardMain,children:[
|
|
307
|
+
/* @__PURE__ */W(Ja,{kind:e,balls:g,size:60}),
|
|
308
|
+
/* @__PURE__ */T(z,{style:ic.cardText,children:[
|
|
309
|
+
/* @__PURE__ */W(S,{style:[ic.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[ic.statChip,{backgroundColor:qa(s,.12)}],children:/* @__PURE__ */W(S,{style:[ic.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
|
|
310
|
+
/* @__PURE__ */W(z,{style:ic.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[ic.detailLine,{color:i.textMuted}],children:e},e))})]}),
|
|
311
|
+
/* @__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:[ic.dividendsWrap,{borderTopColor:qa(a,.08)}],children:/* @__PURE__ */W(p?$a:_a,{option:t,renderDividends:o})}):null]})}function tc({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=vi(),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__ */
|
|
312
|
+
return W(z,{...nn(()=>f(!0),()=>f(!1)),style:[ic.card,u&&ic.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:ic.cardMain,children:[
|
|
313
|
+
/* @__PURE__ */W(Ja,{kind:e,size:60}),
|
|
314
|
+
/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:ic.bulletRow,children:[/* @__PURE__ */W(z,{style:[ic.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[ic.bulletText,{color:l}],children:e})]},e))}),
|
|
315
|
+
/* @__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 nc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=vi(),i=Ge(n),l=n.colors,a=er(o,r),{width:c}=v(),s=c<640;/* @__PURE__ */
|
|
316
|
+
return T(z,{style:[ic.header,s&&ic.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[ic.sectionTitle,s&&ic.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function oc({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=vi(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:ic.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[ic.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[ic.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function rc({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}=vi(),f=a.colors,p=Ge(a),y="mobile"===g,{width:m}=v(),b=m>=640,w=l(()=>o??er(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__ */
|
|
317
|
+
return T(z,{style:[ic.container,{backgroundColor:f.background}],children:[t?/* @__PURE__ */W(z,{style:ic.backRow,children:/* @__PURE__ */W(Il,{onBack:t,label:i})}):null,/* @__PURE__ */T(un,{style:ic.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[ic.sectionTitle,ic.sectionTitleInBody,{color:f.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
|
|
318
|
+
/* @__PURE__ */T(z,{style:ic.headerBlock,children:[
|
|
319
|
+
/* @__PURE__ */W(Tl,{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:[ic.pickSubtitle,{color:f.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[ic.tagline,{color:f.textMuted}],children:w.heroTagline??B}):null]}),
|
|
320
|
+
/* @__PURE__ */W(wa,{}),x.length>0?/* @__PURE__ */W(z,{style:[ic.cardList,b&&x.length>1&&ic.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?ic.cardCell:void 0,children:/* @__PURE__ */W(ec,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(tc,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:F}):null]})]})}var ic=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 lc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
|
|
321
|
+
return T(z,{style:[cc.header,a&&cc.headerCompact],children:[/* @__PURE__ */W(S,{style:[cc.sectionTitle,a&&cc.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function ac({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}=vi(),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??lr(s),[r,s]),[D,M]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,H]=c(()=>R?.defaultStake??20);if(!s||!rr(s)||!R)/* @__PURE__ */return W(z,{style:[cc.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=ir(P,D,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),I=Vr(O.prize,s),E=P>=R.minStake,j=(e,t)=>/* @__PURE__ */T(z,{style:cc.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[cc.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[cc.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
|
|
322
|
+
return T(z,{style:[cc.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:cc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:cc.inner,children:[
|
|
323
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:"The fastest multi",iconUrl:Ze(s),gameName:s.game_name,tagline:R.tagline}),
|
|
324
|
+
/* @__PURE__ */W(wa,{}),
|
|
325
|
+
/* @__PURE__ */T(z,{style:[cc.ticket,F&&cc.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[j("Legs",`${D} legs`),
|
|
326
|
+
/* @__PURE__ */W(z,{style:cc.chipRow,children:R.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
|
|
327
|
+
return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[cc.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[cc.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
|
|
328
|
+
/* @__PURE__ */T(z,{style:cc.hintRow,children:[/* @__PURE__ */W(S,{style:[cc.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[cc.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
|
|
329
|
+
/* @__PURE__ */T(z,{style:cc.stakeBlock,children:[j("Stake",kt(P)),
|
|
330
|
+
/* @__PURE__ */T(z,{style:[cc.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[cc.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:[cc.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
|
|
331
|
+
/* @__PURE__ */W(z,{style:cc.chipRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
|
|
332
|
+
return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[cc.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[cc.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!E&&P>0?/* @__PURE__ */T(S,{style:[cc.errorText,{color:y.error}],children:["Minimum stake is ",kt(R.minStake),"."]}):null]}),
|
|
333
|
+
/* @__PURE__ */T(z,{style:[cc.dividendBlock,{borderTopColor:sa(w,.08)}],children:[
|
|
334
|
+
/* @__PURE__ */T(z,{style:cc.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[cc.dividendCaption,{color:y.textMuted}],children:["If all ",D," land"]}),/* @__PURE__ */T(S,{style:[cc.dividendCaption,{color:y.textMuted}],children:[kt(P)," returns"]})]}),
|
|
335
|
+
/* @__PURE__ */T(z,{style:cc.dividendMainRow,children:[/* @__PURE__ */T(z,{style:cc.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[cc.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(ya,{legs:D})]}),/* @__PURE__ */W(S,{style:[cc.prize,F&&cc.prizeWide,{color:y.primary,fontFamily:b}],children:kt(I)})]}),
|
|
336
|
+
/* @__PURE__ */T(S,{style:[cc.multipleLine,{color:y.textMuted}],children:[(N=O.multiple,`×${(Math.round(10*N)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
|
|
337
|
+
/* @__PURE__ */W(S,{style:[cc.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
|
|
338
|
+
/* @__PURE__ */T(z,{style:[cc.modeCards,F&&cc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:F?cc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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(D),u(D),g(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:F?cc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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(D),g(P),f(s,D,P),e?.())}})})]})]})]});var N}var cc=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 sc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
339
|
+
return T(z,{style:hc.titleWrap,children:[/* @__PURE__ */W(S,{style:[hc.eyebrow,hc.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function dc({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}=vi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=v(),C=k>=640,[F,A]=c(null),[L,R]=c(null),D=l(()=>r??gr(s),[r,s]),[M,P]=c(()=>D?.defaultDividend??1e4),[H,O]=c(()=>{const e=D?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=d&&e.includes(d)?d:D?.defaultLegs??9});if(!s||!sr(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No dividend series available."})});const I=D.dividends.find(e=>e.dividend===M)??D.dividends[0],E=I.rungs.find(e=>e.legs===H)??I.rungs[0],j=Math.max(...I.rungs.map(e=>e.legs)),N=Math.min(...I.rungs.map(e=>e.legs));/* @__PURE__ */
|
|
340
|
+
return T(z,{style:hc.container,children:[n?/* @__PURE__ */W(z,{style:hc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:hc.inner,children:[
|
|
341
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:"Pick your dividend",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
|
|
342
|
+
/* @__PURE__ */W(wa,{}),
|
|
343
|
+
/* @__PURE__ */T(z,{style:[hc.ticket,C&&hc.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=kt(I.dividend),/* @__PURE__ */T(z,{style:hc.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[hc.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[hc.sectionValueText,{color:w}],children:G}):null]})),
|
|
344
|
+
/* @__PURE__ */W(ga,{ariaLabel:"Set dividend",children:D.dividends.map(e=>{const t=e.dividend===M,n=F===e.dividend;/* @__PURE__ */
|
|
345
|
+
return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...nn(()=>A(e.dividend),()=>A(null)),style:[hc.dividendTile,fa(C),{backgroundColor:t?sa(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[hc.dividendValue,C&&hc.dividendValueWide,{color:w,fontFamily:b}],children:kt(e.dividend)}),/* @__PURE__ */T(S,{style:[hc.dividendFrom,{color:y.textMuted}],children:["from ",kt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
|
|
346
|
+
/* @__PURE__ */W(S,{style:[hc.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
|
|
347
|
+
/* @__PURE__ */T(z,{style:[hc.ladderDivider,{borderTopColor:sa(w,.08)}],children:[
|
|
348
|
+
/* @__PURE__ */T(z,{style:hc.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[hc.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[hc.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
|
|
349
|
+
/* @__PURE__ */W(z,{style:hc.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=L===e.legs;/* @__PURE__ */
|
|
350
|
+
return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...nn(()=>R(e.legs),()=>R(null)),style:[hc.rungRow,{backgroundColor:t?sa(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:hc.rungLeft,children:[/* @__PURE__ */T(S,{style:[hc.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(ya,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[hc.rungStake,C&&hc.rungStakeWide,{color:y.primary,fontFamily:b}],children:kt(e.stake)})]},e.legs)})}),
|
|
351
|
+
/* @__PURE__ */W(S,{style:[hc.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
|
|
352
|
+
/* @__PURE__ */T(z,{style:[hc.cardList,C&&hc.cardListWide],children:[/* @__PURE__ */W(z,{style:C?hc.cardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${kt(E.stake)} chasing the ${kt(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),g(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?hc.cardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${kt(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),g(E.stake),f(s,E.legs,E.stake),e?.()}})})]})]})]});var G}var hc=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 uc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
353
|
+
return T(z,{style:fc.titleWrap,children:[/* @__PURE__ */W(S,{style:[fc.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function gc({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}=vi(),b=a.colors,w="mobile"===y,x=Ge(a),k=se(a),C=fe(a),F=be(a),{width:A}=v(),L=A>=640,[R,D]=c(null),M=l(()=>r??Sr(s),[r,s]),[P,H]=c(()=>M?null!=d&&M.ladders.some(e=>e.legs===d)?d:M.defaultLegs:8),[O,I]=c(()=>M?.defaultStake??50),[E,j]=c(!1);if(!s||!mr(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:m},children:"No ladders available."})});const N=M.ladders.find(e=>e.legs===P)??M.ladders[0],G=wr(N,O),Y=xr(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:fc.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[fc.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[fc.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
|
|
354
|
+
return T(z,{style:[fc.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:fc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:fc.inner,children:[
|
|
355
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
|
|
356
|
+
/* @__PURE__ */W(wa,{}),
|
|
357
|
+
/* @__PURE__ */T(z,{style:[fc.builder,L&&fc.builderWide,{backgroundColor:F,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",kt(O)),
|
|
358
|
+
/* @__PURE__ */W(z,{style:fc.betRow,children:M.stakes.map(e=>{const t=e===O;/* @__PURE__ */
|
|
359
|
+
return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[fc.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[fc.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
|
|
360
|
+
/* @__PURE__ */W(S,{style:[fc.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
|
|
361
|
+
/* @__PURE__ */T(z,{style:fc.laddersBlock,children:[K(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */W(ga,{ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===P,n=R===e.legs;/* @__PURE__ */
|
|
362
|
+
return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...nn(()=>D(e.legs),()=>D(null)),style:[fc.ladderTile,fa(L,"17%"),{backgroundColor:t?sa(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
|
|
363
|
+
/* @__PURE__ */T(S,{style:[fc.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
|
|
364
|
+
/* @__PURE__ */W(S,{style:[fc.ladderTilePrize,{color:k,fontFamily:x}],children:kt(xr(e,O))}),
|
|
365
|
+
/* @__PURE__ */T(S,{style:[fc.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
|
|
366
|
+
/* @__PURE__ */T(z,{style:[fc.stackTable,{borderTopColor:sa(k,.08)}],children:[
|
|
367
|
+
/* @__PURE__ */T(S,{style:[fc.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
|
|
368
|
+
/* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:kt(Y)})," Full Stack Prize."]}),
|
|
369
|
+
/* @__PURE__ */T(z,{style:fc.rungHeader,children:[/* @__PURE__ */W(S,{style:[fc.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:fc.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[fc.rungHeaderCaption,fc.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[fc.rungHeaderCaption,fc.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
|
|
370
|
+
/* @__PURE__ */W(z,{style:fc.rungList,children:q.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
|
|
371
|
+
return T(z,{style:fc.rungRow,children:[/* @__PURE__ */T(z,{style:fc.rungLeft,children:[/* @__PURE__ */T(z,{style:fc.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[fc.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&L?/* @__PURE__ */W(z,{style:[fc.fullStackChip,{backgroundColor:sa(C,.35)}],children:/* @__PURE__ */W(S,{style:[fc.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(ya,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:fc.rungRight,children:[/* @__PURE__ */W(S,{style:[fc.rungPrize,fc.rungColPrice,{color:b.textMuted}],children:kt(e.prize)}),/* @__PURE__ */W(S,{style:[fc.rungCumulative,fc.rungColTotal,L&&fc.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:kt(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[fc.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[fc.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
|
|
372
|
+
/* @__PURE__ */T(S,{style:[fc.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
|
|
373
|
+
/* @__PURE__ */T(z,{style:[fc.modeCards,L&&fc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:L?fc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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?fc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${kt(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),g(O),f(s,N.legs,O),e?.()}})})]})]})]})}var fc=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 pc({depth:e,theme:t}){const n=t.colors,o=fe(t);/* @__PURE__ */
|
|
374
|
+
return W(z,{style:wc.variantEdgeBar,children:Array.from({length:9}).map((t,r)=>{const i=Math.min(r,8-r)<e;/* @__PURE__ */
|
|
375
|
+
return W(z,{style:[wc.variantEdgeSlot,i?{backgroundColor:r<4.5?n.primary:o}:{borderWidth:1,borderColor:n.border}]},r)})})}function yc({legs:e,correct:t}){const{theme:n}=vi(),o=n.colors.primary;/* @__PURE__ */
|
|
379
376
|
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:
|
|
381
|
-
return T(z,{style:
|
|
382
|
-
/* @__PURE__ */W(
|
|
383
|
-
/* @__PURE__ */W(
|
|
384
|
-
/* @__PURE__ */W(z,{style:[
|
|
385
|
-
return W(z,{style:L?
|
|
386
|
-
return T(z,{style:
|
|
387
|
-
/* @__PURE__ */W(
|
|
388
|
-
/* @__PURE__ */W(
|
|
389
|
-
/* @__PURE__ */T(z,{style:
|
|
390
|
-
/* @__PURE__ */W(
|
|
391
|
-
/* @__PURE__ */T(z,{style:
|
|
392
|
-
/* @__PURE__ */W(S,{style:[
|
|
393
|
-
/* @__PURE__ */W(S,{style:[
|
|
394
|
-
/* @__PURE__ */W(S,{style:[
|
|
395
|
-
/* @__PURE__ */T(z,{style:[
|
|
396
|
-
/* @__PURE__ */W(z,{style:
|
|
397
|
-
return W(B,{onPress:()=>H(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[
|
|
398
|
-
/* @__PURE__ */T(z,{style:
|
|
399
|
-
/* @__PURE__ */T(z,{style:
|
|
400
|
-
/* @__PURE__ */T(z,{style:[
|
|
401
|
-
/* @__PURE__ */W(z,{style:
|
|
402
|
-
return W(B,{onPress:()=>I(e),style:[
|
|
403
|
-
/* @__PURE__ */T(z,{style:[
|
|
404
|
-
/* @__PURE__ */T(z,{style:
|
|
405
|
-
/* @__PURE__ */W(z,{style:
|
|
406
|
-
/* @__PURE__ */W(S,{style:[
|
|
407
|
-
/* @__PURE__ */T(z,{style:[
|
|
408
|
-
return T(z,{style:[
|
|
409
|
-
return T(z,{style:[
|
|
410
|
-
/* @__PURE__ */W(
|
|
411
|
-
/* @__PURE__ */W(
|
|
412
|
-
/* @__PURE__ */T(z,{style:[
|
|
413
|
-
/* @__PURE__ */W(z,{style:
|
|
414
|
-
/* @__PURE__ */W(S,{style:[
|
|
415
|
-
/* @__PURE__ */T(z,{style:
|
|
416
|
-
/* @__PURE__ */W(z,{style:
|
|
417
|
-
/* @__PURE__ */T(z,{style:
|
|
418
|
-
/* @__PURE__ */T(z,{style:
|
|
419
|
-
/* @__PURE__ */T(z,{style:[
|
|
420
|
-
/* @__PURE__ */W(z,{style:
|
|
421
|
-
/* @__PURE__ */T(z,{style:[
|
|
422
|
-
/* @__PURE__ */T(z,{style:
|
|
423
|
-
/* @__PURE__ */T(z,{style:
|
|
424
|
-
/* @__PURE__ */W(S,{style:[
|
|
425
|
-
/* @__PURE__ */T(S,{style:[
|
|
426
|
-
/* @__PURE__ */T(z,{style:[
|
|
427
|
-
return T(z,{style:[
|
|
428
|
-
return T(z,{style:[
|
|
429
|
-
/* @__PURE__ */W(
|
|
430
|
-
/* @__PURE__ */W(
|
|
431
|
-
/* @__PURE__ */T(z,{style:[
|
|
432
|
-
/* @__PURE__ */T(z,{style:[
|
|
433
|
-
/* @__PURE__ */T(z,{style:
|
|
434
|
-
/* @__PURE__ */T(z,{style:
|
|
435
|
-
/* @__PURE__ */W(S,{style:[
|
|
436
|
-
/* @__PURE__ */T(z,{style:
|
|
437
|
-
return T(B,{onPress:()=>{return t=e.id,M(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[
|
|
438
|
-
/* @__PURE__ */T(z,{style:[
|
|
439
|
-
return T(z,{style:
|
|
440
|
-
return T(z,{style:
|
|
441
|
-
/* @__PURE__ */W(
|
|
442
|
-
/* @__PURE__ */W(
|
|
443
|
-
/* @__PURE__ */T(z,{style:[
|
|
377
|
+
return W(S,{style:{width:14,marginRight:2,fontSize:14,lineHeight:16,fontWeight:"700",textAlign:"center",color:r?o:sa(o,.45)},children:r?"✓":"✕"},n)})})}function mc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
378
|
+
return T(z,{style:wc.header,children:[/* @__PURE__ */W(S,{style:[wc.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function bc({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}=vi(),b=a.colors,w=Ne(a),x=Ge(a),k=se(a),F=be(a),{width:A}=v(),L=A>=640,[R,D]=c(!1),M=l(()=>r??Lo(s),[r,s]),[P,H]=c(()=>M?null!=d&&M.legOptions.includes(d)?d:M.defaultLegs:8),[O,I]=c(()=>M?.defaultStake??20),[E,j]=c(!1);if(!s||!Wo(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:w},children:"No mirror available."})});const N=M.variant,G=M.legOptions,Y=G.includes(P)?P:G[0],V=function(e){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})))}(Po(N.id,O,Y,{operatorMargin:M.operatorMargin})),U=function(e,t){if(!t)return[];const n=bo(t);return n<yo.premier?[]:Ro.flatMap(t=>{const o=e.find(e=>Wo(e)&&vo(e.rule)===Fo[t.id]&&bo(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:wc.container,children:[n?/* @__PURE__ */W(z,{style:wc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:wc.inner,children:[
|
|
379
|
+
/* @__PURE__ */W(ha,{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."}),
|
|
380
|
+
/* @__PURE__ */W(wa,{}),
|
|
381
|
+
/* @__PURE__ */W(z,{style:[wc.modeCards,L&&wc.modeCardsWide],children:U.map(({variant:e,game:t})=>{const n=Lo(t)?.legOptions??[];/* @__PURE__ */
|
|
382
|
+
return W(z,{style:L?wc.modeCardCell:void 0,children:/* @__PURE__ */T(ma,{tile:/* @__PURE__ */W(da,{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(pc,{depth:e.depth,theme:a}),/* @__PURE__ */T(z,{style:wc.variantEdgeLabels,children:[/* @__PURE__ */W(S,{style:[wc.variantEdgeText,{color:b.textMuted}],children:"All wrong"}),/* @__PURE__ */W(S,{style:[wc.variantEdgeText,{color:b.textMuted}],children:"All right"})]})]})},t.id)})})]})]});const K=O>=M.minStake,Z=(e,t)=>/* @__PURE__ */T(z,{style:wc.controlLabel,children:[/* @__PURE__ */W(S,{style:[wc.controlLabelText,{color:b.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[wc.controlValueText,{color:k}],children:t})]});/* @__PURE__ */
|
|
383
|
+
return T(z,{style:wc.container,children:[U.length>1?/* @__PURE__ */W(z,{style:wc.backRow,children:/* @__PURE__ */W(Il,{onBack:()=>j(!1),label:"Mirrors"})}):n?/* @__PURE__ */W(z,{style:wc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:wc.inner,children:[
|
|
384
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:"All right, or all wrong",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
|
|
385
|
+
/* @__PURE__ */W(wa,{}),
|
|
386
|
+
/* @__PURE__ */T(z,{style:wc.variantBlock,children:[Z(N.name,N.waysToWin),
|
|
387
|
+
/* @__PURE__ */W(pc,{depth:N.depth,theme:a}),
|
|
388
|
+
/* @__PURE__ */T(z,{style:wc.variantEdgeLabels,children:[
|
|
389
|
+
/* @__PURE__ */W(S,{style:[wc.variantEdgeText,{color:b.textMuted}],children:"All wrong"}),
|
|
390
|
+
/* @__PURE__ */W(S,{style:[wc.variantEdgeText,{color:b.textMuted}],children:`${G[0]}–${G[G.length-1]} legs`}),
|
|
391
|
+
/* @__PURE__ */W(S,{style:[wc.variantEdgeText,{color:b.textMuted}],children:"All right"})]})]}),
|
|
392
|
+
/* @__PURE__ */T(z,{style:[wc.ticket,L&&wc.ticketWide,{backgroundColor:F,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[Z("Legs",`${Y} legs`),
|
|
393
|
+
/* @__PURE__ */W(z,{style:wc.chipRow,children:G.map(e=>{const t=e===Y;/* @__PURE__ */
|
|
394
|
+
return W(B,{onPress:()=>H(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[wc.legChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */W(S,{style:[wc.chipText,{color:t?b.primaryText:b.textMuted}],children:e})},e)})}),
|
|
395
|
+
/* @__PURE__ */T(z,{style:wc.hintRow,children:[/* @__PURE__ */W(S,{style:[wc.hintText,{color:b.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[wc.hintText,{color:b.textMuted}],children:"Bigger prize"})]}),
|
|
396
|
+
/* @__PURE__ */T(z,{style:wc.stakeBlock,children:[Z("Stake",kt(O)),
|
|
397
|
+
/* @__PURE__ */T(z,{style:[wc.inputWrap,{borderColor:R?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[wc.inputPrefix,{color:b.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>D(!0),onBlur:()=>D(!1),value:O?String(O):"",onChangeText:e=>{if(""===e)return void I(0);const t=Number(e);Number.isFinite(t)&&I((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==M.maxStake?Math.min(t,M.maxStake):t})(t))},style:[wc.input,{color:b.textAlt??b.text,fontFamily:w}]})]}),
|
|
398
|
+
/* @__PURE__ */W(z,{style:wc.quickStakeRow,children:M.quickStakes.map(e=>{const t=e===O;/* @__PURE__ */
|
|
399
|
+
return W(B,{onPress:()=>I(e),style:[wc.stakeChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */W(S,{style:[wc.chipText,{color:t?b.primaryText:b.textMuted}],children:`$${e}`})},e)})}),!K&&O>0?/* @__PURE__ */W(S,{style:[wc.errorText,{color:b.error}],children:`Minimum stake is ${kt(M.minStake)}.`}):null]}),
|
|
400
|
+
/* @__PURE__ */T(z,{style:[wc.winSection,{borderTopColor:sa(k,.08)}],children:[
|
|
401
|
+
/* @__PURE__ */T(z,{style:wc.winHeader,children:[/* @__PURE__ */W(S,{style:[wc.winHeaderText,{color:b.textMuted}],children:"What it pays"}),/* @__PURE__ */W(S,{style:[wc.waysChip,{backgroundColor:sa(b.primary,.12),color:b.primary}],children:N.waysToWin})]}),
|
|
402
|
+
/* @__PURE__ */W(z,{style:wc.winRows,children:V.map(e=>/* @__PURE__ */T(z,{style:wc.winRow,children:[/* @__PURE__ */T(z,{style:wc.winRowLeft,children:[/* @__PURE__ */W(S,{style:[wc.winRowLabel,{color:b.text}],children:e.label}),/* @__PURE__ */W(yc,{legs:Y,correct:e.correct})]}),/* @__PURE__ */W(S,{style:[wc.winRowPrize,L&&wc.winRowPrizeWide,{color:b.primary,fontFamily:x}],children:kt(e.prize)})]},e.correct))}),
|
|
403
|
+
/* @__PURE__ */W(S,{style:[wc.splitNote,{color:b.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
|
|
404
|
+
/* @__PURE__ */T(z,{style:[wc.cardList,L&&wc.cardListWide],children:[/* @__PURE__ */W(z,{style:L?wc.cardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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?wc.cardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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 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:{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 xc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
|
|
405
|
+
return T(z,{style:[Sc.header,a&&Sc.headerCompact],children:[/* @__PURE__ */W(S,{style:[Sc.sectionTitle,a&&Sc.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function kc({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}=vi(),m=a.colors,b=Ne(a),w=Ge(a),x=se(a),k=be(a),{width:F}=v(),A=F>=640,[L,R]=c(!1),D=l(()=>r??Qo(s),[r,s]),[M,P]=c(()=>D?.defaultModeId??"extra_shot"),[H,O]=c(()=>{const e=D?.modes.find(e=>e.id===(D?.defaultModeId??"extra_shot"));return e?null!=d&&e.legOptions.includes(d)?d:e.defaultLegs:8}),[I,E]=c(()=>D?.defaultStake??20);if(!s||!jo(s)||!D)/* @__PURE__ */return W(z,{style:[Sc.container,{backgroundColor:m.background}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted,fontFamily:b},children:"No safety net available."})});const j=D.modes.find(e=>e.id===M)??D.modes[0],N=Vo(I,H,j.allowedMisses,D.pricing),G=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==D.maxStake?Math.min(t,D.maxStake):t},Y=I>=D.minStake,V=(e,t)=>/* @__PURE__ */T(z,{style:Sc.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Sc.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Sc.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[Sc.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[Sc.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__ */
|
|
406
|
+
return T(z,{style:[Sc.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:Sc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:Sc.inner,children:[
|
|
407
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:"Choose your safety net",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
|
|
408
|
+
/* @__PURE__ */W(wa,{}),
|
|
409
|
+
/* @__PURE__ */T(z,{style:[Sc.ticket,A&&Sc.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),
|
|
410
|
+
/* @__PURE__ */W(z,{style:Sc.chipRow,children:D.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=D.modes.find(t=>t.id===e);t&&(P(e),f(t.ruleId),t.legOptions.includes(H)||O(t.legOptions.reduce((e,t)=>Math.abs(t-H)<Math.abs(e-H)?t:e,t.legOptions[0])))})(e.id)))}),
|
|
411
|
+
/* @__PURE__ */W(S,{style:[Sc.modeExplain,A&&Sc.modeExplainWide,{color:m.textMuted}],children:j.explain}),
|
|
412
|
+
/* @__PURE__ */T(z,{style:Sc.legsBlock,children:[V("Legs",`${H} legs`),
|
|
413
|
+
/* @__PURE__ */W(z,{style:Sc.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
|
|
414
|
+
/* @__PURE__ */T(z,{style:Sc.hintRow,children:[/* @__PURE__ */W(S,{style:[Sc.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Sc.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
|
|
415
|
+
/* @__PURE__ */T(z,{style:Sc.stakeBlock,children:[V("Stake",kt(I)),
|
|
416
|
+
/* @__PURE__ */T(z,{style:[Sc.inputWrap,{borderColor:L?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Sc.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:[Sc.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
|
|
417
|
+
/* @__PURE__ */W(z,{style:Sc.chipRow,children:D.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[Sc.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[Sc.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[Sc.errorText,{color:m.error}],children:["Minimum stake is ",kt(D.minStake),"."]}):null]}),
|
|
418
|
+
/* @__PURE__ */T(z,{style:[Sc.prizeBlock,{borderTopColor:sa(x,.08)}],children:[
|
|
419
|
+
/* @__PURE__ */T(z,{style:Sc.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[Sc.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[Sc.prizeCaption,{color:m.textMuted}],children:[kt(I)," returns"]})]}),
|
|
420
|
+
/* @__PURE__ */T(z,{style:Sc.prizeRows,children:[q.map(e=>/* @__PURE__ */T(z,{style:Sc.prizeRow,children:[/* @__PURE__ */W(S,{style:[Sc.prizeRowLabel,A&&Sc.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[Sc.prizeRowAmount,A&&Sc.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:kt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[Sc.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:Sc.sweepLeft,children:[/* @__PURE__ */W(S,{style:[Sc.sweepLabel,A&&Sc.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[Sc.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[Sc.sweepAmount,A&&Sc.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:kt(Math.round(N.sweep))})]})]}),
|
|
421
|
+
/* @__PURE__ */W(S,{style:[Sc.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
|
|
422
|
+
/* @__PURE__ */T(S,{style:[Sc.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
|
|
423
|
+
/* @__PURE__ */T(z,{style:[Sc.modeCards,A&&Sc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?Sc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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?Sc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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 Sc=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},chip:{flexGrow:1,minWidth:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},stakeChip:{flexGrow:1,minWidth:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},modeExplain:{fontSize:12,lineHeight:17,marginTop:8},modeExplainWide:{fontSize:13,lineHeight:18},legsBlock:{marginTop:16},hintRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginTop:8},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12,marginBottom:8},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},prizeBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},prizeCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},prizeCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},prizeRows:{marginTop:6,gap:6},prizeRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},prizeRowLabel:{fontSize:12},prizeRowLabelWide:{fontSize:13},prizeRowAmount:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},prizeRowAmountWide:{fontSize:16},sweepRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:12,paddingHorizontal:12,paddingVertical:10,marginTop:4},sweepLeft:{flex:1,minWidth:0,gap:2},sweepLabel:{fontSize:14,fontWeight:"800"},sweepLabelWide:{fontSize:15},sweepSub:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.6,opacity:.75},sweepAmount:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},sweepAmountWide:{fontSize:24},stakeNote:{fontSize:11,marginTop:6},missNote:{fontSize:11,fontStyle:"italic",marginTop:4},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Cc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
|
|
424
|
+
return T(z,{style:[zc.header,a&&zc.headerCompact],children:[/* @__PURE__ */W(S,{style:[zc.sectionTitle,a&&zc.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Set your play"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function Bc({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}=vi(),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??Mr(s),[r,s]),[L,R]=c(()=>A?.defaultUnit??10),[D,M]=c(Tr);if(!s||!Wr(s)||!A)/* @__PURE__ */return W(z,{style:[zc.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No card available."})});const P=Ar(L,D,A),H=1*L,O=L>A.unitMin,I=L<A.unitMax,E=e=>R(t=>Math.min(A.unitMax,Math.max(A.unitMin,t+e*A.unitStep))),j=()=>{g(P.ruleId),h(P.lowestWinningCount),u(P.stake)},N=(e,t)=>/* @__PURE__ */T(z,{style:zc.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[zc.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[zc.controlValueText,{color:w}],children:t})]}),G=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:!t,accessibilityRole:"button",accessibilityLabel:o,activeOpacity:.8,style:[zc.stepButton,{backgroundColor:y.primary,opacity:t?1:.35}],children:/* @__PURE__ */W(S,{style:[zc.stepButtonText,{color:y.primaryText}],children:e})}),Y={golden_point:`Go for the decider. Double your win to ${kt(L*A.baseMultiple*A.goldenPointFactor)}.`,captains_challenge:`Collect ${kt(L*A.challengeMultiple)} whenever you land ${A.legs-A.challengeMisses} or ${A.legs} of ${A.legs}. Stacks on a winning slip.`};/* @__PURE__ */
|
|
425
|
+
return T(z,{style:[zc.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:zc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:i})}):null,/* @__PURE__ */T(un,{style:zc.inner,children:[
|
|
426
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:"Set your play",iconUrl:Ze(s),gameName:s.game_name,tagline:A.tagline}),
|
|
427
|
+
/* @__PURE__ */W(wa,{}),
|
|
428
|
+
/* @__PURE__ */T(z,{style:[zc.ticket,F&&zc.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[
|
|
429
|
+
/* @__PURE__ */T(z,{style:[zc.playCard,{backgroundColor:y.primary}],children:[/* @__PURE__ */T(z,{style:zc.playCardSide,children:[/* @__PURE__ */W(S,{style:[zc.playCardKey,{color:y.primaryText}],children:"Total stake"}),/* @__PURE__ */W(S,{style:[zc.playCardStake,{color:y.primaryText,fontFamily:b}],children:kt(P.stake)})]}),/* @__PURE__ */T(z,{style:[zc.playCardSide,zc.playCardRight],children:[/* @__PURE__ */W(S,{style:[zc.playCardKey,{color:y.primaryText}],children:"To win"}),/* @__PURE__ */T(z,{style:zc.playCardWinRow,children:[/* @__PURE__ */W(S,{style:[zc.playCardWin,{color:k,fontFamily:b}],children:kt(P.base)}),P.challenge>0?/* @__PURE__ */T(S,{style:[zc.playCardChip,{backgroundColor:k,color:w}],children:["+",kt(P.challenge)]}):null]})]})]}),
|
|
430
|
+
/* @__PURE__ */T(z,{style:zc.stakeBlock,children:[N("Your stake",`steps of ${kt(A.unitStep)}`),/* @__PURE__ */T(z,{style:zc.stepRow,children:[G("−",O,()=>E(-1),"Lower stake"),
|
|
431
|
+
/* @__PURE__ */T(z,{style:zc.stepMid,children:[/* @__PURE__ */W(S,{style:[zc.stepValue,{color:w,fontFamily:b}],children:kt(L)}),/* @__PURE__ */W(S,{style:[zc.stepCaption,{color:y.textMuted}],children:"per play"})]}),G("+",I,()=>E(1),"Raise stake")]})]}),
|
|
432
|
+
/* @__PURE__ */W(S,{style:[zc.playNote,{color:y.primary}],children:P.challenge>0?`Captain's Challenge pays ${kt(P.challenge)} on ${A.legs-A.challengeMisses} or ${A.legs} of ${A.legs}.`:""}),
|
|
433
|
+
/* @__PURE__ */T(z,{style:zc.boostBlock,children:[N("Boost your card",`${kt(H)} each`),/* @__PURE__ */W(z,{style:zc.boostRows,children:A.boosts.map(e=>{const t=D[e.id];/* @__PURE__ */
|
|
434
|
+
return T(B,{onPress:()=>{return t=e.id,M(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[zc.boostRow,{backgroundColor:t?sa(y.primary,.08):"transparent",borderColor:t?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:zc.boostBody,children:[/* @__PURE__ */T(z,{style:zc.boostTitleRow,children:[/* @__PURE__ */W(S,{style:[zc.boostLabel,F&&zc.boostLabelWide,{color:w,fontFamily:b}],children:e.label}),/* @__PURE__ */W(z,{style:[zc.boostAmt,{backgroundColor:sa(y.primary,.12)}],children:/* @__PURE__ */T(S,{style:[zc.boostAmtText,{color:y.primary}],children:["+",kt(H*e.costUnits)]})})]}),/* @__PURE__ */W(S,{style:[zc.boostSub,F&&zc.boostSubWide,{color:y.textMuted}],children:Y[e.id]})]}),/* @__PURE__ */W(z,{style:[zc.toggle,{backgroundColor:t?y.primary:y.border}],children:/* @__PURE__ */W(z,{style:[zc.toggleKnob,{backgroundColor:y.background,transform:[{translateX:t?20:0}]}]})})]},e.id)})})]})]}),
|
|
435
|
+
/* @__PURE__ */T(z,{style:[zc.modeCards,F&&zc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:F?zc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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?zc.modeCardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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 zc=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 vc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vi(),r=Ge(n),i=n.colors;/* @__PURE__ */
|
|
436
|
+
return T(z,{style:Wc.header,children:[/* @__PURE__ */W(S,{style:[Wc.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(El,{onBack:e,hideActions:t,label:o?.game_name})]})}function Fc({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}=vi(),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}=Rt(a);return en(e,t)},[a]),w=Or(a),x=b[0]??0,k=b[b.length-1]??0,[C]=c(()=>null!=s&&b.includes(s)?s:k),B=l(()=>er(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__ */
|
|
437
|
+
return T(z,{style:Wc.container,children:[n?/* @__PURE__ */W(z,{style:Wc.backRow,children:/* @__PURE__ */W(Il,{onBack:n,label:r})}):null,/* @__PURE__ */T(un,{style:Wc.inner,children:[
|
|
438
|
+
/* @__PURE__ */W(ha,{eyebrow:o?null:B.title,iconUrl:Ze(a),gameName:a.game_name,tagline:B.heroTagline}),
|
|
439
|
+
/* @__PURE__ */W(wa,{}),
|
|
440
|
+
/* @__PURE__ */T(z,{style:[Wc.cardList,m&&Wc.cardListWide],children:[/* @__PURE__ */W(z,{style:m?Wc.cardCell:void 0,children:/* @__PURE__ */W(ma,{tile:/* @__PURE__ */W(da,{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(ma,{tile:/* @__PURE__ */W(da,{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 Tc({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=vi(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(Pr(l)){case"game_set":/* @__PURE__ */return W(ac,{...s});case"pick_your_dividend":/* @__PURE__ */return W(dc,{...s});case"ladder":/* @__PURE__ */return W(gc,{...s});case"mirror":/* @__PURE__ */return W(bc,{...s});case"safety_net":/* @__PURE__ */return W(kc,{...s});case"six_again":/* @__PURE__ */return W(Bc,{...s});case"rule_setup":return"exact"===er(l)?.kind?/* @__PURE__ */W(Fc,{...s}):/* @__PURE__ */W(rc,{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 Ac({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=vi(),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__ */
|
|
444
441
|
return T(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[
|
|
445
|
-
/* @__PURE__ */W(
|
|
442
|
+
/* @__PURE__ */W(Nn,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
|
|
446
443
|
/* @__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"})]}),
|
|
447
444
|
/* @__PURE__ */W(z,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c}}),
|
|
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{
|
|
445
|
+
/* @__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{ei as BladeApiClient,Ac as BrandLockup,vr as CHALLENGE_MISSES,zr as CHALLENGE_MULTIPLE,Bn as CategoryIcon,na as CategoryPickerPage,ta as CategoryPickerPageActions,ea as CategoryPickerPageTitle,zn as ChevronRightIcon,Ra as ConfirmPage,La as ConfirmPageActions,Aa as ConfirmPageTitle,Oo as DOUBLE_SHOT_MIN_LEGS,Ho as EXTRA_SHOT_MIN_LEGS,ja as EntriesPage,Ea as EntriesPageTitle,Cl as EntrySubmission,Pl as EventFilterBanner,la as EventPickerPage,qi as EventSwipeModal,Mn as FilterChipCarousel,Hn as FilterChipRow,yo as GAME_TIER_LEVEL,mo as GAME_TIER_TABS,Fr as GOLDEN_POINT_FACTOR,Rl as GameEntries,Vl as GameLogo,Gl as GamePage,Nl as GamePageActions,jl as GamePageTitle,$r as GameSelector,ac as GameSetBetPage,lc as GameSetBetPageTitle,Tc as GameSetupPage,Sn as HowToPlayButton,yn as HowToPlayPanel,yr as LADDER_FAMILY,fr as LADDER_REFERENCE_BET,pr as LADDER_STAKES,gc as LadderPage,uc as LadderPageTitle,vn as LockIcon,So as MIRROR_STANDARD_MARGIN,bc as MirrorPage,mc as MirrorPageTitle,Tr as NO_BOOSTS,cr as PYD_LEG_RUNGS,ar as PYD_RETAIL_DIVIDENDS,Fl as PayoutCircles,Fc as PerfectPickPage,vc as PerfectPickPageTitle,dc as PickYourDividendPage,sc as PickYourDividendPageTitle,Fi as PlaceEntryProvider,Wi as QuickPickButton,rc as RuleSetupPage,oc as RuleSetupPageActions,nc as RuleSetupPageTitle,Zi as SELECTION_VARIANTS,Br as SIX_AGAIN_LEGS,Cr as SIX_AGAIN_MARGIN,kc as SafetyNetPage,xc as SafetyNetPageTitle,Ln as ScrollShelf,kl as SelectionReview,nl as SelectionVariantList,za as SelectionsPage,Sa as SelectionsPageActions,xa as SelectionsPageTitle,Bc as SixAgainPage,Cc as SixAgainPageTitle,Va as SportPickerPage,Ya as SportPickerPageActions,Ga as SportPickerPageTitle,Jl as SportRail,An as StarIcon,Oa as SuccessPage,Ha as SuccessPageActions,Pa as SuccessPageTitle,Gi as SwipeCard,Yi as SwipeCardFace,Vi as SwipeDeck,Ai as VISIBLE_DEPTH,Wn as YesNoCategoryLabel,xo as availableGameTierTabs,Jt as contrastTextColour,ve as darkTheme,ko as defaultGameTierId,Be as defaultTheme,Re as defaultThemeSet,wo as filterGamesByTierLevel,fo as filterPropositionsToEvent,kt as formatCurrency,St as formatDate,ro as formatSameGameMultiEventLabel,xr as fullStackPrize,tr as gameNeedsRuleSetup,ir as gameSetPrize,Ir as getConfirmBoostCopy,Pr as getGameFlow,lr as getGameSetBetConfig,Dt as getJackpotInfo,Sr as getLadderConfig,Lo as getMirrorConfig,gr as getPickYourDividendConfig,ao as getPropositionEventId,er as getRuleSetupConfig,Qo as getSafetyNetConfig,No as getSafetyNetPricing,Mr as getSixAgainConfig,Pt as getSportDisplayName,He as getTheme,Oe as getThemeSet,Te as goldLightTheme,Fe as goldTheme,Me as goldThemeSet,We as greenLightTheme,ze as greenTheme,De as greenThemeSet,Ct as groupPropositionsBySport,co as groupSameGameMultiEvents,el as groupSelectionDays,Hr as isFixedCardExactGame,rr as isGameSetBetGame,mr as isLadderGame,Wo as isMirrorGame,Or as isOpenExactMultiGame,sr as isPickYourDividendGame,jo as isSafetyNetGame,lo as isSameGameMultiGame,go as isSelectableSameGameMultiProposition,Wr as isSixAgainGame,Ce as isThemeSet,Lt as isValidSelectionCount,kr as ladderCollectAt,wr as ladderTiers,Ao as mirrorPrize,po as propositionsBelongToEvent,ur as pydLadder,hr as pydRung,Ot as resolveCategoryDisplayName,bo as resolveGameTierLevel,mt as resolvePrice,Ht as resolveSportDisplayName,Se as resolveTheme,Go as roundDividendAmount,Uo as safetyNetCollect,Vo as safetyNetTicket,Lr as sixAgainRuleId,Rr as sixAgainStakeMultiples,Ar as sixAgainTicket,fe as themeAccent,Ne as themeBodyFont,se as themeHeading,Ge as themeHeadingFont,de as themeLabel,Ee as themeSets,ye as themeTextAlt,me as themeTextAltMuted,he as themeValue,Ie as themes,si as useCalculatePayout,li as useCreateGameEntry,di as useEntryPreview,ci as useEvaluateRule,ri as useGameEntries,ii as useGameMaxPayouts,ti as useGames,vi as usePlaceEntry,ai as usePlaceEntryFlow,ni as usePropositions,je as useResolvedTheme,oi as useSports,Ri as useSwipeDeck,an as useYesNoLabels};
|