@simple-parlay/components 1.30.2 → 1.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import e,{createContext as t,useCallback as n,useContext as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as f,Image as g,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as F}from"react-native";import{Fragment as v,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as R,Defs as L,Ellipse as D,Line as M,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#C9CDD2";function U(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function Z(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var K='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function q(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var X=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,Q=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function J(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function $(e){const t=e.trim();if(!t)return"";if(J(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI9ALnw4LAKtNcVgaWAZYGlqJ86OmE14CngCeBJ4CHgQeAB4GHcorjOzSuiEhjOB%2BWA9YEVqW8Rk%2F9uqRhrP8AD1WXv1df78sp%2FsMwU62peBURERkk58NiwAbTXNYH3mYaasYmA%2F8Ebgduqy5%2FVUErIr3M%2BTAfsCGwCfDO6rK4aajBeR64FbgFuBm4Laf4sm2kelDxKiIiMgvOh6WBzarL%2ByhH65tqIuVD0e%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8VAsM7Rogtyiju344qcD1of18dyin3%2F2j8r1QehTYCPVpfVbRN11MvAb4ErgJRTfMk4T9cYvRZ%2BNqd4ucG4gs1jrtfcznA%2BOGBLSsH6YWAR20Rd9SL%2FK2R%2FnVMcY5yna%2Fr%2Bl8n5sARljvkC1llaMAXYJKd4q3WQXuB82JgyFaMJvwcvA6vkFJ9px5WpeO1v%2BiA1Y86H2YH3A9tSCtZ%2B%2BiA01QRKIftT4PKc4jjjPB1l9Fr4HLB6TvEFg7H7norXZnM%2BzAFsDewIfITS5K7fTQKuAS4Ersopvmacp6Nmsw5grSoGjrHO0aIRwGnOB70IDlN1H55GMwpXgKPbVbiKyBs5H9Z3PpxMaXb0W8qHon4sXKF0z%2FTAD4F%2FOx%2FOcj5saJyp1ywGnG4dQqRJnA9rOh%2B%2BQ2lM9wvgE6hwnWp2SiF%2FOfC08%2BF058N6xpk6Zg7rADVxCvBlYAXrIC3YGNiO8sFChu5LlPuyCf4JnGodQqSXOB9GAp8D9gTeYRynrhywG7Cb8%2BGvwEnApVof2xbbOh8uzSn%2B0jqISF1Vyzc%2BBexHcz6zWVsY2AvYy%2FnwN%2BA79NjrdlPOOnWc8%2BGTwM%2Bsc7ToaWDVnOIr1kGayPkwP2WquGVr9MH4ZE7xynZeoaYN97d%2BnsLmfFgUGE05YLmobZpGeoJyMO28Xuh8afxa%2BDSwRk5xrGGGvqNpw%2FVXHVz8ErA%2FZcsxGZ7HKAcfv98LS0H6ftrwVDnFnwPXWedo0VLAIdYhGuxQmlO4XtfuwlWkHzkfFnU%2BnAA8Snn9VOE6NMtQPgQ96nzYz%2FnQqb1r%2B8FSlJlfIkI5ueB82J%2FyOn0uKlzbZTngu8DjzofDnA%2BjbOMMj4rXNxpNWfTcBPs6H5a3DtE0zocVgH2sc7RoEuU5KSJD5HxYwPlwHOXI8%2F7AfLaJesbCwInAP50Pu1VNVGTwdnA%2BbGUdQsSS82E258NOwMPACTTnBEPTLAocBfzD%2BbBnU1%2B3VbxOI6d4D3CedY4WjaQc%2FZbBOYly3zXBudVzUkQGyfkwwvmwPWWJwIHAvMaRetVSwFnAX50P77UO01DnOh8WtA4hYsH58D7gDuD7wBK2afrGwpQzsXc7H7a2DjNYKl7f7HBgrHWIFn3S%2BfAB6xBNUd1Xn7DO0aKxwDesQ4g0kfNhXeAW4CL0Yahb1gSudz7Eags6ad0ylLPYIn3D%2BbCC8%2BFnwB%2BAdY3j9KvVgKudD9c6H9awDtMqFa%2FTySk%2BD3zLOscgnFrtTSgDqO6jU61zDMIR1XNRRFrkfJjD%2BXA4cBvqIGzli8ADzodgHaRhdnU%2BfNA6hEinVbNi9gbuBT5pnUcA2IIye%2BbwJkwlVvE6Y98DHrIO0aK1gK9Yh2iA3Sj3VRM8SHkOikiLnA%2BrATcDR6K9%2F6yNAi52PlxRdXeW1pxfdcMX6UlV35E%2FUk4mzGMaRqY3J%2BX981bnw5rWYQai4nUGcooTgX2tcwzCkc6HhaxD1FV13zTpbPq%2BvbQfl0inOR%2B2AW4HNrTOIm%2FwKeBe58OHrIM0xHLAcdYhRNqtOtu6B3A3oLXx9bY%2BcIfz4ZC6zuxU8ToTOcVfAb%2B2ztGihWlWcdZtR1Luoyb4VU6xKc87EVPVNOGTgB%2BjLsJ1tRhwjfPhUOeD9rqcta%2Bq8ZX0EufDIsC1wBnodbop5gKOBv7sfFjGOsz0VLwObF9gonWIFu3ufFjdOkTdVPfJbtY5WtS0M%2F4iZpwPDvgN%2Bp1pgtmAbwO%2FqB43mbkRwPedD5pSKY3nfNiQ0klYsy%2BaaWPKWdharcdX8TqAnGKT1h7OgTY7n5FTKfdNE5yRU2zKWmsRM86HJYE%2FAe%2B3ziKD8lHgJufD26yD1NxKlLMeIo3lfNgFuBHQ73uzLQpc63w4qC6zZ1S8ztq3gKZ0fd3C%2BfAx6xB14Xz4OM052vc8ZXqziAzA%2BbAS8GdgbessMiSrA7dU2xnJzO3tfNjEOoTIYDkfRjofzgfOA0Za55G2mB04FvhZHfakVvE6CznFsTRrv82TnA9zWYewVt0H37HOMQiHV881EZkJ58PKwA3A8tZZZFiWBP7kfNjcOkiNzQZc4HyY2zqISKumWc6xs3UW6YhPADdUs5%2FMqHhtzbnAPdYhWrQSMNo6RA3sQ7kvmuBuyhFKEZmJaqrp74ElrLNIWywAXOV82MI6SI29HTjCOoRIK6ZZzqGGY71tbcryj1WsAqh4bUFOcRLNKggPcz4sbh3CivNhCeBQ6xyDMLp6jonIDFS%2F078Hatf1UIZlbkoTpy2tg9TYfs6HjaxDiAykmhVzE1rO0S%2BWA260em1S8dqinOJ1wJXWOVq0AGVuer86lnIfNMHPc4p%2FsA4hUlfOh3mBX9GcmRQyOFML2Kb0J%2Bi22SnTh%2Ft%2BOZDUk%2FNhA0ofguWMo0h3LQpcZ%2FHareJ1cL4OTLAO0aIdqhblfaW6zdtb52jRBGA%2F6xAiNXcRsJ51COmokcAVzgc9zjO2JnCYdQiR6VW%2Fs7%2BnFDLSf%2BanLP%2Foav8CFa%2BDkFN8hLL1ShOMAE6zDmHgNMptb4JTqueUiMyA8%2BEbwGetc0hXLAD82vmgZlwzdrA6NEudOB9WozRn0t7N%2FW0kZfbMu7s1oIrXwTsaeMY6RIve5XzY1jpEtzgfvgi8yzpHi54BjrEOIVJXVSOfI6xzSFctDlzjfHiLdZAamgO40PnQlH3LpYc5H1YAfgcsYp2ly14G%2FgM8CfwDuA%2F4a%2FX1H9X3%2F1P9XD%2BZF7ja%2BbB%2BNwbTi%2BAg5RRfdj4cAlxgnaVFxzsfrswp%2Ftc6SCdV6%2BKOs84xCAfnFPvtxU2kJc6HhYALac4sCmmfVYBLnA9b5xQnW4epmXWBg4GjjHNIH3M%2BLE2ZKryUdZY2mww8DjwIPAA8BPwbeLa6PJNTbHnpoPNhJOWA3NTLUsCqlC7iqwHL0lsnER1wrfPhfTnF%2Bzo5kIrXobkI2APYwDhHK94KHESz9qodioMpt7UJ%2FgL8wDqESI2dRe99MJLWbUkp0JrUNb5bDnM%2B%2FDyneK91EOk%2FzocFKVOFlzOO0g7PUhpNTb3cnVMc164rrwrdf1WXN6n2cF4beDewKWXmYNO3glsE%2BI3zYaOc4tOdGkRHtYeomtt9o3WOFo0DVsspPm4dpBOcD8tSjpQ1ZTP3TXOKf7YM4HyYYjm%2B2Mop1va13%2FnwOeBS6xxibgrwqZzilZ0cpKGvhbcDm2iLtaGxeMzr%2FJrbKufDbMAvgY9YZxmiycDNwM%2BBX%2BYUHzbO8ybVlkMfBT5JKWabemb2duC9OcXxnbjypt4p5qri4yfWOVo0D3CidYgO%2Bg7NKVx%2FbF24itSV82Ee4CTrHFILIyhbxDRlRk03bYQ61Uv3HUszC9ebgV2BJXOKm%2BYUT6pj4QqQU3w4p3hyTvE9wJLAlyn5m2Yj4LxOXbmK1%2BE5gHJWswk%2B63zYzDpEu1W36TPWOVo0DjjQOoRIje1Hc6b%2FS%2BctRGlS1PizVh1whPPh7dYhpD9UzT8PsM4xCC8BZwJr5xTflVM8L6f4nHWowcgpPpdTPD%2Bn%2BC7K9OIzKberKYLzYf9OXLGK12HIKT4BnGCdYxBOq6Z99ITqtjRpO6Djq%2BeMiEzH%2BbAkOrgjb7Y58DXrEDU0N%2BXMdM%2B8p0s9OR82BL5vnaNFz1PeR5bKKe6RU7zHOlA75BTvySnuQekFcSDldjbBcc6HD7f7SvWiN3wnUFpjN8E6lCkIvWJXym1qgifo7anbIsN1CDCfdQippeOqtWDyRpsAe1uHkN7lfFgA%2BCn1X5o1htLgbfmc4gk5xVetA3VCTvHVnOIJwPKU2zvGONKszAZcXB2cbuuVyjBUW9A06WzBUc6HUdYhhqu6DU3aLuDAXt%2BuSGSoqn09d7LOIbU1N3CGdYiaOtr5sJJ1COlZ36UUSnU1GTgHWDGneExO8RXrQN2QU3wlp3gMsCLl9te58dzCtHn5h4rXNsgpXgLcZJ2jRYsC37QO0QZH0JzNsW%2FKKf7YOoRIje1O2eS8100C7gEicDTwFWArYC3KB8TFgQUo29jNT9k2YWVgfUqjlH0pH1T%2BSHOmjbXLFlUnanmjeYDva12wtJvz4TPA9tY5BnAX8O6c4m45xbHWYSzkFMfmFHejdCa%2B2zrPALYE9mrXlenFrk2qNQG30Yz7dCJlEfuD1kGGompScTcwp3WWFkwB3pFT%2FIt1kGk1dHsIaZM6bdvgfJiLsjF80%2Fe3m5EJlELzN5T3hzvbNQOjKlbWBj5QXTajFL697Gng7TnFl9t1hT30WrhnTvF71iGaQFvlzJrzYWnK56y3WGeZgUmUmXdH5xRftw5TF86HOShTiQ8HZjeOMyPjgQ1yivcP94rmaEMYAXKKf3E%2B%2FJB6H6Waak7gFKDti6i75BSaUbgC%2FKBuhatIzXyU3ipcX6GsEbsK%2BG2n1l7lFKdQzjzcBZxSbXj%2Fccp70BbU88PLcE1tVnKYdZAaOs75cHVO8THrINJs1YGxH1DPwvUp4Is5xeutg9RNVch%2Fy%2FnwR%2BBHwNK2id5kbuBHzoeNc4qvDeeKVLy218HApynTvepuK%2BfDR3KKV1sHGQzng6dMs2uCVyjPCWlNkzpHS%2Ftsax2gTf5GmdL7o3aeGWxVtRn8pcClzoclKEXsPpSpyL1ktPPhjJziM9ZBamZ%2B4HxKd2aR4dgB%2BKB1iBm4Btgup9hvSyYGJad4vfNhXeBi6vd5eV3g65Q9g4esUdMYmsD5cDBwjHWOFv0dWDOnONE6SCucD3MC9wKrWGdp0cE5xeOsQ8xIHafKNW1alQyf82FB4Fnq38lyILdSftf%2FYB1kes6HeSjravennLXsFWdW20YMWx1fC4fpKznFc61D1JmmDc%2Bc82Eh4CFKf5Q6%2BR6wd05xknWQpnA%2BzE45KdCW18o2%2Bi%2BwWk7xX0O9AjVsar%2BTgUetQ7RoFZq1f97eNKdwfYQyvVlEZu5TNLdwfRj4bE7xnXUsXAFyiuNyiqcCKwD7Ab2yfcSXnQ8rWoeoqROdD8tYh5DGOpZ6Fa6Tgf1yinuqcB2cnOKknOKelBk4k63zTGNe4NThXIGK1zbLKU6gfEhoisOdD4tZh5iVKuPh1jkGYb%2FquSAiM%2BetAwzBFOB0StO7y63DtCKnOCGneBKwJnCtdZ42mBM4wDpETS0I6MyrDJrzYSPgy9Y5pvE6sE312iVDVB3A%2FCylWWtdfNL5MOQpzSpeOyCn%2BDNKh8kmcJQtG%2BruGMqbchP8Iaf4c%2BsQInVWNQV5n3WOQfo38OGc4t7VGtNGySk%2BllPcCghAts4zTNs7H3ptPW%2B7bOV82ME6hDSH82E24EzqUxe8Dnwhp3iZdZBeUNUln6NeBezpzoeRQ%2FmPdXmS9qLRlHbeTbCT82E96xAz43xYH9jROkeLJlEeexEZ2LqUzcub4n5go5xi489c5hR%2FBLwDaOR2aZWRlKUkMmOnOB%2BWtA4hjfElYEPrEJVJlI7CjZjZ0hQ5xSuBbSgHBupgZWDPofxHFa8dklO8i9L5rwlmo96dXk%2BjOc%2FV83KKdd4oWqQuPmAdYBBuAd6TU3zKOki75BT%2FDmwMNKrj%2FHR2dz40obu%2FhVHA2dYhpP6qZpjfsM4xjR1zij%2B1DtGLqjOw21GWv9TBgUN5DW9KQdBUhwNjrUO06D3Oh89bh5ie82EbYFPrHC0aS7PW5YpY2sQ6QItuAjbPKY6xDtJuOcWXgI8BZ1hnGaJRwBetQ9TYx5wPvbIVlXTOLsDy1iEqR%2BYUL7YO0ctyij%2BhPntlL8oQGseqeO2gnOJ%2FgCOtcwzCCdXWCrVQZTneOscgfEv7j4m0bG3rAC14BPhYTrFXuvS%2BSU5xck5xL8pWFE20q3WAmju9CU0ZxYbzYW7gUOsclZ8AR1iH6Ac5xWOAi6xzVPZzPrjB%2FAcVr513BmXPrCZ4G%2FXq4HggJVMTPERzP%2FyJdFV1YKruW51MpHS6fME6SJfsBZxjHWII1nc%2BbGAdosYWRu9NMnO7A0tbhwBup0wXrst01n6wK3CjdQhgIWDfwfwHFa8dllOcCHzdOscgHFCHPeKqDPtb5xiEfavHWkRmbQ3q%2F%2F5zSk7xdusQ3VJ9aNwdiNZZhqBO23vU0WecD5%2BxDiH14nyYFzjIOgfwEuVAYeM6uDdZ9Zn1C0AdlsSMdj68pdUfrvuHh56QU7wauMY6R4vmBU6wDgGcSMnSBNfkFH9lHUKkQdawDjALY4BvW4fotqqA3RVoWtO5zzsf5rIOUXPfcz40qbu3dN4OQB2mlO%2BeU3zEOkQ%2Fyik%2BCexknYOyFWbLS0BUvHbPvtSnPfWsbON8MGuSVI1du%2BZRM%2FE6sI91CJGGMZ%2FdMQtn5hRftg5hIac4DvgM5WxIU4wCtrAOUXOLAd%2B1DiH1UO2zPehGOR3ww5ziJdYh%2BllO8RfUY2nBHs6HOVr5QRWvXZJTfICyAXRTnFZtWt1V1Zh13rZnet%2FLKTZ5r0QRC0tZB5iFC6wDWMopPkxz9taeqikHPC19wfnwMesQUgsfBlY1zvBv6lFAS%2Bl385hxhrcCn2rlB1W8dtcRQFOaf6yPzYeXnaqxm%2BAF1BlPZCjqXLz%2BNaf4qHUIa9V%2BgE3aa%2FHjVedUGdjZzoeFrEOIudHWAYB9corZOoRATvG%2FlJ4H1vZu5YdUvHZRTvFF6rUR9Kwc7XxYsFuDVWMd3a3x2uDwnOJY6xAiDbSkdYAB%2FMk6QI3sD4yzDtGiBYAPWYdogCWBU6xDiB3nw%2BrY%2F65cm1O81DiDTCOneA32Byzf5XzYaFY%2FpOK1%2B84B7rUO0aLFgcO7ON43qEfzgFbcA5xrHUKkoercOOYe6wB1kVP8F%2FAd6xyD8GHrAC26w3j87Z0PTbmvpP2sp%2BpOAPYwziAztjdg3e9hr1n9gIrXLsspTqIe0zVa9TXnw8qdHqQaw%2FoFdTBGV4%2BliAzePNYBBtD3U4ancxzwlHWIFjWlINuJso%2BwpXO7ObNK6qGaWr%2BNcYyzcor%2FNM4gM5BTfAY42TjGp50P8w%2F0AypeDeQUfw%2F8wjpHi%2BaiO0%2FkU4A5uzBOO1yZU7zOOoRIg9V5baLWYE2jWgt1hnWOFi3nfHi7dYhZySneDRxjHOOtNOusurTHRwFnOP4r2D%2F3ZWAnAf8xHH9e4NMD%2FYCKVztfB16zDtEi73zYslNXXl33Rzp1%2FW02AdjPOoRIw9W5eJ1sHaCGvk957au7CcCG1iFadDT2%2B%2Bl%2B2fmwuXEG6a4vGY9%2Fck7RsjCSWai2ibM%2BwLDdQP%2Bo4tVINWXiVOscg3BKq%2FsvDUZ1nU1qHnGqpruIDNtI6wADWMQ6QN1UHzYvs84xjYnA%2FZRM36TsS7saMF9OMVoGa1VOcSKlo7%2F1%2Fu%2FnzWqKnvQG58OiwFaGEV6knNWT%2BjsT2%2BUi73c%2BLD2zf2x7MSKD8m1ge0pjpLpbDdiT9hfce1XX3QTP0KxuyCJ1NcI6wAAWtQ5QU2cCoctjTgL%2BAdw3zeVe4O9V8ddoOcU7nQ8nAgcbxliOsq55T8MM0h3bYPu5%2F9yc4kuG40uLcoqvOR9OB443ijAb8EXghBn9o4pXQznFl50Ph1CmZDXBN50PMaf4fDuuzPmwCM3aOuiQajqFiAzPROp79nV56wB1lFO82fnwGKXYabfJlEZZU4vTqYXqgznFJkxXHo5vAZ%2FA9iDuV50Pl%2BUUrzfMIJ3X7YNP05oIfNdwfBm8cyk7jljNzAjMpHjVtGF7FwF3Wodo0SjK2eJ2Obq6zia4A%2FiBdQiRHlHns2YfsA5QY78e5v%2BfAjwGXE35ULI9sAEwf05xpZzix3OKh%2BYUL8kp3tUHhSvVbdwR27XWI4DvOx%2FmNcwgHeR8WAqY5f6ZHXRZTrEpXcsFyCmOxfbk2lrOhxkeTFbxaiynOJmyr1JT7OJ8WGe4V1Jdxy5tyNMto6vHSkSGb7x1gAG8Wx%2FiZ%2BqaQfzsk8C1lDVuOwEbAwvmFJfPKfqc4oE5xR%2FmFO%2FMKY7rRNimyCnein3vhxXRsphe5rFdrmH9%2FJahOY1y0NGKn9E3NW24BnKKNzofLgU%2Bb52lBbNT1r2%2Bf5jXcxrNOXjyk5zijdYhRHrIWOrbGGkksC1wvnWQGvo9pUv%2BXNN879%2B8eU3qfVrbNmiHAx8DOr6v%2BgC%2BVk0fvskwg3TGDIuALrkrp%2FgXw%2FFliHKKjzofrgM%2BaBTBM4Pp5k0pHvrBAUBTjj6%2Fz%2FnwmaH%2BZ%2BfDZ4HN2pink8YBB1qHEOkxY6wDzMKhzoem7DvdNTnFVymvh7sD7wUWzikulVP8UE5xdE7xvJzizSpcB686%2B7wztmc5ZgMucD7UeSsrGaTq8bQqPqAsj5Pmushw7M2cD%2FNN%2F00VrzWRU%2FwXzdow%2FMShvMFV%2F2eGC7Br6sTqsRGR9ql78bocsId1iDrKKZ6aUzw7p3hDTrHuj2Oj5BRvAM4wjrEqpYmU9I4PAlZLISYCPzIaW9rjCsDqgORI4EPTf1PFa70cR1kn1ATLAfsN4f%2FtT2e6VXbCk9i1CRfpZU1o3HG88%2BFd1iGk7xxM6bxs6evOB8vmPtJellOGf1XtEy0NVc0KudQwwpuevypeaySn%2BF%2FgIOscg3DQQJsIT6%2F62SZNwT2wekxEpL2aMJthLuAK58Ny1kGkf1RTs3fBdvrw7MCFzoe5ZvmT0gSbG479E8OxpX0uMxz7TVPeVbzWzyXAzdYhWjQfgzszeUL1f5rg5pziJdYhRHrU49YBWrQE8Gfnw1rWQaR%2F5BSvA84zjrEGpYmUNJjzYXFgJaPhJwK%2FMhpb2uuPlEaLFpab%2FkSZiteaySlOoWydY3nUdTC2dT5sMqsfqn7mC13I0w5THwMR6YwHrQMMwlLAn5wPb1p3I9JB%2BwNPGGc4yPmwnnEGGZ5NDcf%2Bg5q39Yac4kTK%2FtxW3vA8VvFaQznF24GLrXO0aARwmvNhpvuHVf92GrZ7jA3GD6vHQEQ64z6ac4AOYBRwrfPheHUhlm6oPvTvahxjDsr0YT3nm8uyeL3ScGxpv58bjq3itSEOBl6xDtGijYDtB%2Fj3HaqfaYJXKPe9iHRITvEV4DHrHIM0grKl2a2tzDYRGa6c4jXYbzOyDs3qxSFvZFm8%2FtJwbGm%2FaylTwS2oeG2CnOLTwLHWOQbhWOfDAtN%2Fs%2FreMQZ5huqYnOK%2FrUOI9IFbrQMM0XqUdbAXOx%2FeZh1Get4%2BwNPGGQ5zPqxpnEEGqdofc12j4R%2FMKTahq7y0qDrobDUrca1pawwVr%2FV2MvYt81u1BHDoDL5%2FWPVvTfAo5T4Xkc670TrAMIwAAvDPqohVQyfpiJziWGA34xhzUaYPz26cQwbnHZSp3xb%2BYDSudJbV4zo7sPHUv6h4rbGc4nhK04amGO18WHHqX6o%2Fj7aLM2j75RQnWIcQ6RN%2Fsg7QBnNQiti7nQ%2FXOx92dj4saB1KektO8SrKTgSWNqRZn0fE7qwrqHjtVdcZjr3O1D%2BoeK25nOIVwPXWOVo0Ejhpmr%2BfTDli2wR%2FzCn%2BzDqESL%2FIKd6DfTfVdnovcD7wjPPhR86HLZwPeo%2BVdvka8JxxhiOcD283ziCts5oRMoWytYr0npuA8UZj%2F%2F%2FzWW%2BszbA3MNk6RIs%2B7nzY3PmwOfAx6zAtmkyzzhCL9IpkHaAD5gG2pTS3eML5cHpVyDblQJ7UUE7xBWAP4xgjgQt0UKYxrIrXh3KK%2FzEaWzqomhH6N6PhVbw2SU7xLsoR%2FaY4tbo0xXnVfSwi3XWFdYAOWwrYi1LIvuB8%2BFk1tbgpfQCkRnKKlwOXG8fYBB3srb3qAMPqRsP%2FxWhc6Q6rx3f1qevuVbw2x2FAtg7RojWqSxNk4HDrECJ96g%2FAv6xDdMn8wCcpByKfdj7c4Xw41vnwAefDSONs0hx7AC8YZ%2Fi282El4wwysJWAeY3GVvHa2%2B4wGnduYEVQ8doY1RSMo6xz9KAjNb1FxEZOcTLwA%2BscBkYA61P2z%2Fw9MMb58Gvnwz7Oh6Yc%2BBMDOcXnKOtfLc0DfN%2F5MMI4h8ycZQd0q%2BJGusPy4MRaYNdCW4bmdGBXYBXrID3i78B3rUNI4Xw41TpDQ1yTU7zGOkQbnQkcQFlP16%2FmBbaqLjgfngZ%2BO%2FVSFSwiAOQUL3E%2BfB7bvhLvpZwFPsMwg8zcakbjTsZuTaR0xwPAf7E5s786cIWK1wbJKU50PnwduMo6S4%2FYN6c40TqE%2FL%2B9rQM0xFigZ4rXnOIzzoeLgV2ss9TIUsD21WWK8%2BFu4DfV5caqaYb0t90pBeQowwzHOR%2Buzik2ZT%2F6frKc0biP5BRfMRpbuiCnOMn58BCwnsHwy4KmDTdOTjFRmn%2FI8FybU7zaOoSIAHA0oD2WZ2wEZX%2B7%2FSlnYsc4H651PuznfFhbUzf7U07xaWBf4xjz0axmkv1kOaNxHzIaV7rL6nFeDlS8NtU%2BwOvWIRrsdcp9KCI1kFN8jLIvtMzaPMAWwInAXZTmTxc7H7ZzPixpG026Kad4IfazMD7gfNjVOIO82bJG46p47Q9%2FNxpXZ16bKqf4AHCWdY4GO7O6D0WkPo4BnrEO0UBLAAH4IaWQvdv5cJLzYUvnwzzG2aTzdgVeMs5wovNhGeMMUqlmY1g9Hipe%2B4PV47yM82GEitfm%2Bib27fKb6AXgCOsQIvJG1TqpQ6xz9IC1KNNJrwFedD78zvlwgPNhPU0x7j05xScoDc8sLQica5xB%2FmcJ7BrgWZ2Rk%2B6yKl5HAkuoeG2onOKLlAJWBucb1X0nIvVzEXCLdYgeMhL4IHA8cCfwrPPhEufDDs6HpW2jSRudC1xnnGEr58OOxhmksJoyDPCI4djSPZb7sy%2Br4rXZzgbutQ7RIPcC51iHEJEZyylOoUyBfdk6S49aFPgCcCHwpPPhPufDyc6HLZwPcxtnkyGqfm92AV41jnKy82Ep4wwCbzUadwrwb6OxpbueB14zGvutKl4bLKc4CTUeGox9qvtMRGoqp%2FhPYC%2FrHH1idcp7yLXAC86Hq50PX3U%2BWH34lSGqtqs52DjGKMpBdbG1sNG4%2F9H2g%2F2hOmBmdaBiYRWvDZdT%2FB3wS%2BscDfCL6r4SkZrLKf4AuNQ6R5%2BZF9ga%2BB7whPPhL86Hbzgf1jLOJa07A7jBOMNHnQ9fNM7Q795iNO5TRuOKDavH%2By0qXnvD17E7fd8ErwH7WYcQkUHZDXWutLQB8C3gbufDg86Ho5wP61iHkpmrzobsDIwzjnKa82Fx4wz9zOrMq4rX%2FqLiVYYup%2FgP4DTrHDV2anUfiUhD5BTHAluhNVR1sCpwGPA358NDzocjnA%2BrWIeSN8spPgwcbhxjYcoZfLFhdeb1WaNxxcbzRuOqeO0h3waesw5RQ88CR1uHEJHByyk%2BRpnKqgZO9bEKpdP9Q86HO5wPX3c%2BLGEdSt7gFOBW4wyfdj581jhDv7IqXscajSs2stG4Kl57RU7xJeBQ6xw1dGh134hIA%2BUU%2FwZ8Ci2NqKP1ge9Q1she4XzYUnvJ2sspTgZ2BCYYRznD%2BbCIcYZ%2BpOJVumGs0bgqXnvMBcBfrUPUyJ2ULSFEpMGqZmtbYXekVwY2B%2BUAwzXAI86Hg50Po2wj9bec4gPAkcYxFgNON87QjxYyGnes0bhiw%2Br9eJSK1x5SHW3d2zpHjYyu7hMRabic4h%2BA96CmIHW3HHAM8Ljz4Vjnw2LGefrZCZSDuJa%2B4Hz4uHGGfmO1Z7MOLvaXsUbjzq3itcfkFG8ALrPOUQM%2Fre4LEekROcV7gE2A%2B6yzyCwtCBwEPOZ8ON35sKR1oH6TU3ydMn3Yeu%2FNs50PVmcD%2B9FcRuOqeO0vVr0o5lLx2pv2B8ZbhzA0jnIfiEiPySk%2BAWwM%2FMA6i7RkHmAv4GHnw%2BHOh3msA%2FWTnOLdlDPhlpYATjXO0E%2FmNBq3nz939iOrg2IqXntRTvFxShONfvWdnOK%2FrEOISGfkFF%2FNKe4AbAe8YhxHWjMfZQ3mQ86HoMZOXXU0cLdxhi85H7Y2ztAvrM68Wp%2Fhl%2B5S8Sptdxz9uTbsKeB46xAi0nk5xUjpeHuTdRZp2TLAxcCfnQ%2BrWYfpBznFiZTpw68bRznH%2BbCgcYZ%2BoOJVukHFq7RXTvFVynqjfnNgddtFpA%2FkFB8GNgX2ALQtVnNsAvzV%2BXCY88FqmmPfyCneCZxoHOOtwEnGGfqBilfpBhWv0hE%2FAm6xDtFFtwCXWIcQke7KKU7JKZ4JrA5cYZ1HWjYSOAq43fmwvnWYPvAt4AHjDLs4HzY3ztDrrA4GqXjtLypepf1yilMoW%2BdMsc7SBVOAvavbLCJ9KKf4VE7xM5QzsX%2B2ziMtWwe4xfmwp3WQXpZTnECZPmy9hdz5zof5jTNI%2B%2BnzV3%2BxqiGnqHjtcTnF24BonaMLLq5uq4j0uZzin3OKmwIfB%2B6yziMtmRP4rvPhYnUk7pyc4q3AKcYxlkW9KTrJ6ozYHEbjig2zM%2FwqXvvDQUAvrwN9FTjYOoSI1EtO8Zc5xXWBzYFfoTMDTRCAm50PK1gH6WGHAw8bZ9jd%2BfA%2B4wy96jWjcbV2vb9YPd6vqXjtAznFp4FjrXN00DHVbRQReZOc4u9zih8BVgNOA14wjiQDWwetg%2B2YnOI4YGdsD%2BaMoEwfntcwQ69S8SrdoOJVOu4k4DHrEB3wGHCydQgRqb%2Bc4kM5xdHAUsDngGuASaahZGbeAvzO%2BbChdZBelFO8AfiecYwVKXvQSnupeJVuUPEqnZVTHA8cYJ2jA%2FavbpuISEtyiq%2FlFC%2FLKX6Ysn3H14G%2FGseSN1sI%2BK3zYSPrID3qIOBR4wxfcz68yzhDr7Fa86ritb%2BMNBpXxWs%2FySleBvzJOkcbXZ9TvNw6hIg0V07xmZziyTnF9YG3A98A7jGOJf8zChWwHVHtib4LttOHZwMucD7MbZih11ideV3AaFyx4YzGVfHah%2FbGvk1%2BO0wGRluHEJHeUU0rPiqnuDawCuWM7B%2BB102DiQOucj4sbR2k1%2BQUrwPOM46xKnCkcYZeYjUbzaqYERujjMYdr%2BK1z%2BQU%2FwZcYJ2jDb5f3RYRkbbLKT5cnZF9P7AosA1l27HnbZP1rcWBnzkfrKaq9bL9gSeMM%2BzrfHiHcYZeMdZo3FFG44oNq4MVY1W89qdDgZesQwxDBg6zDiEi%2FSGnODaneGlOcTtKEfUu4Bi0h2y3vQM4yzpEr8kpvgTsahxjdsr04bmMc%2FQCq27qOvPaX0YZjTtGxWsfyik%2BBxxlnWMYjqpug4hIV%2BUUJ%2BcUb84pHlrtIbsMsBtwFfBf03D9YUfnw57WIXpNTvEa4CLjGGtQ1pzL8IwxGneU0bhiw%2BpghYrXPnY69puUD8XDwHetQ4iIAOQUn8wpnpNT%2FBiwMPBhyhYkj5kG623fcT683TpED9oHsN4z%2FUDnw3rGGZrOqnhdxGhcsbGE0bgqXvtVTvE1SjOSptm3yi4iUis5xfE5xWtyinvmFJennEk6kNLlXU2f2mckcJ7zYYR1kF6SUxwL7G4cYw7gQueDtl0ZOqviVQ3V%2BovV4z1mDqOBpQZyilc5H34DbGGdpUW%2FySkm6xDSGTlFfRCVnpJTvB%2B4HzjB%2BTAK2Ar4SPVVZymGZ1PKdG2tgW2jnOIvnQ%2BXANsaxlgHOBh1IB4qqzWvSxmNKzbMiledeZV9aMYZgdcpWUVEGqdq%2BvSTaZo%2BvRs1fRqu47R9Tkd8DbDuK3GY82Et4wxNZVW86nexT1SN1awOwL6g4rXPVWcGzrbO0YKzqqwiIo1WNX26SU2fhm1B4DTrEL0mp%2FgCsIdxjDkp04dnN87RRE8ajTvS%2BbCw0djSXUsCVrPlnlTxKgDfxG6NRCvGAEdYhxAR6YQZNH3aGjV9atWnnQ8bWofoNTnFy4ErjGNsQNmDVgbnccOx32Y4tnTPCoZjP67iVcgpjqEUsHX1jSqjiEhPq5o%2B%2FXqapk9roqZPs%2FJt6wA96qvYTUGd6gjnw2rGGZrmGWCC0dirGI0r3bWq0bivAc%2BoeJWp6jx1uM7ZREQ6Jqd4X07xhJziZsCiwBeACDxvm6xWtnQ%2BrGsdotdU%2B6l%2FzTjGSOAC54M%2Br7YopzgFeMJoeKuiRrrL6iDFv3KKU%2FRiIADkFGt7RD%2BnOMk6g4iINTV9GpD1Gs2elFO8hLIW29I7UcPGwbKaOqzitT9YPc6PA6h4FRERaRg1fXqTbZ0PzjpEj9oNGGuc4Sjnw8rGGZpExat0ktWZVxWvIiIivUBNn5gX%2BKR1iF6UU3wa2Nc4xjzA950P2g%2B8NY8Zjbuqpnj3NufDfNg1bFLxKiIi0mtm0fSpl5dhfM46QK%2FKKV4IXGMc4z3AnsYZmuIBo3HnR2dfe9362NWP92M4uIiIiHTBdE2flgR2B64DJtsma7vNnQ8LWofoYbsCLxtnONb5sLxxhia423DsDQzHls6zfHzvARWvIiIifSOn%2BJ%2Bc4tk5xQ9Spn59C7vOpO02J7CZdYhelVN8Avt9V%2BcDztf04Vn6BzDOaGztu9zbrB7f8ZTntYpXERGRfpRTfDyneASliN0O27M17fIB6wA97lzKWXtLH6CcBZaZyClOpppiaUBnXnub1eN7%2F9TdR1S8ioiI9LGc4us5xQisC2wL%2FNM20bC8zzpAL6v2EN0FeNU4yonOh7cZZ6i7e4zG3cD5MJfR2NJBzodFsVvTfO%2FUP6h4FREREXKKU3KKP6Y0ePo2MNE40lCs4XwYaR2il%2BUUHwUONo6xAOUssMyc1UyKeYCNjcaWzno%2FYDVl%2F%2F8Pxqh4FRERkf9XdSs%2BHHgn1RqjBpkTWMM6RB84A7jROMOWzocdjTPU2V2GY2v6fm96v%2BHY%2F%2F98VvEqIiIib5JTvJOyvul31lkGaV3rAL2umj68E3ZNgaY62fmwlHGGuroNeN1obMsiRzrH6nGdDNw69S8qXkVERGSGcoovAVsDVxpHGYyVrAP0g5ziw8DhxjFGAecYZ6ilnOIr2J19fafzYR6jsaUDnA9LY7fe9Z7qvQhQ8SoiIiIDyClOBLbBfppoq7QPaPecwjRnRIx458MXjTPUldXv7EjgQ0ZjS2d83HDsNzyPVbyKiEjPcj7M73xYz%2FnwOefDYc6HdawzNVFOcQLweeB56ywtUPHaJdWWLDsCE4yjnO58WNw4Qx1ZHnD6hOHY0n6fMBz7Dc%2FjOaxSiIiItEPVXXZFYGVglem%2BTr8ebkFsG5k0Vk7xaefDPsDF1llmYQnrAP0kp%2FiA8%2BFI4GjDGG8BzgQ%2BbZihjiyL1486H2afujenNJfzwWG7DZmKVxERaRbnw%2BzAcsy4QF2W1mcSbQUc0IGIfSGnGKsCdn3rLANY2DpAHzqBUjhaPi8%2B5Xz4XE7xp4YZaiWn%2BIzz4RFgBYPhFwE2Ba43GFvaa2tKJ3cLj%2BcUn5z2GypeRUSkFpwPI4ClmXGBugLQjo3v13I%2BLJVTfLoN19WvTgB%2BYh1iAPM7H%2BbKKb5mHaRf5BRfr7at%2BQt2H3IBznA%2BXJdTbML09m75LfAVo7E%2Fi4rXXvAFw7F%2FP%2F03VLyKiEhXOR8WZcYF6srAvF2IsDVwfhfG6VVXAhlwxjkGMgp4zjpEP8kp3u18OAb4pmGMRYHvYvthu26uxq54%2FYLz4evVmnlpIOfDYsCHDSNcPf03VLyKiEjbOR8WZMYF6iqUwsJSQMXrkOUUJzgfbgC8dZYBjLQO0KeOBj4JrG2YYRvnw6U5xSsNM9TJ7yj78VpsXfMW4GPAZQZjS3sE7OrF14DfTP9NdRsWEZG2cj4cRTkz9xfgEuBbwBeBd2BfuAK81%2FmwnHWIhqv7tjntmGIug1Rtq7Qj8LpxlLOcDwsZZ6iFnOI44DrDCDsaji3Dt73h2NdX%2BxW%2FgYpXERFpt0esA8zCCGA76xANd4t1gFlQ8Wokp3gncKJxjCWAU40z1EkyHHsL58NbDceXIXI%2BbITtLIo3TRkGFa8iItJ%2Bd1sHaMGOVQdjGZp%2FWweYhcnWAfrct4AHjDN8yfmwtXGGurAsXmcH9jIcX4ZuX%2BPxZ%2Fi8VfEqIiLtdh9Q9739lqd0wpShecE6wCyoQYyhqkHPTtgfRDi32qOyr1VbjdxhGGFX58P8huPLIDkflgE%2BYxjhvpziP2f0DypeRUSkrXKK44G%2FW%2BdowYHWARpsrHWAWVDxaiyneAtwinGMpYGTjDPURTQcexTlYIY0x97YNvad6fNVxauIiHTC7dYBWrCu88FyC4Amm9s6wCyoeK2Hw4GHjTPs7Hz4kHGGOvgxto20RjsftMtJAzgfRgG7GEaYAvxoZv%2Bo4lVERDrhT9YBWnS080HvhYO3oHWAAUymdLsWY1Wn250pH0Ytndfv01Zzis8yg21Humh5ynNB6u8AbPfx%2FmNO8YmZ%2FaPesEVEpBOaUryuh%2B0R5qZa3jrAAMbkFOu%2B5rpv5BRvAL5nHGNZ4ATjDHVwsfH433A%2BWOw3Ky1yPixBmTJsacAp7ipeRUSk7XKKD1P%2FjrRTHV1Nk5LWrWodYAD%2FsQ4gb3IQ8Khxht2cD%2B8zzmDtF8BLhuMvhX1hJAM7DJjXcPzxwOUD%2FYCKVxER6ZSmnH1dBDjOOkTDvNs6wACesw4gb5RTfBX7GQ4jgPONM5iqpnH%2F1DjGgc6HRYwzyAw4H1YBvmwc42c5xQEPsKh4FRGRTpnhBuM19RXnw8esQzTIB60DDGCG2yuIrZzidcC5xjFWNB6%2FDr5rPP4o1AG6rs4C5jLOMMvnp4pXERHplKup%2F36v0%2Fq%2B82FJ6xB153zYGFjOOscA%2FmEdQGZqf2CmjVik83KKdwPXGcf4kvPhA8YZZBrOh%2B0A68fktmqLrQGpeBURkY7IKY4BbrTOMQiLAFHbOczS7tYBZsF6axaZiWo64K7WOYRTrQMAZzsf6r7lVl9wPiwEfMc6B3BaKz%2Bk4lVERDrpl9YBBukDwNnWIerK%2BbAMsK11jlm43zqAzFxO8RrgIuscfS5hP0NhZeBo4wxSnAUsZpzhaeCyVn5QxauIiHTSFdjv8ThYOzsfDrUOUVMnAnNahxjAK8CD1iFklvahOd3Ie05OcQpwunUOYB%2Fnw9bWIfqZ82Fn4PPWOYAzc4oTW%2FlBFa8iItIxOcXHgT9Y5xiCo5wP1l0Xa8X58BHq8SFnIHfkFCdbh5CB5RTHArtZ5%2BhzFwIvGGcYAfzA%2BbCUcY6%2B5HxYlRan6nbYK8A5rf6wilcREem0C60DDMEI4Bzng%2FYkBJwPb6UZUz1vsw4grckp%2FhK4xDpHv8opvgIcb52D0mvgEudDnWd09Bznw3zApcB81lmA03OKz7f6wypeRUSk064ABty3raZGAKc6Hw6zDmLJ%2BeCAX1E%2BZNbd760DyKB8De3La%2BkM4BnrEMBmlHWX0gXOhxFABNaxzgJkBtksSsWriIh0VE5xHPBj6xzDcJTz4YJ%2B7IzpfFgYuAZYyzpLC8YDf7IOIa3LKb4A7GGdo19Vr83HWOeo7Ox8ONA6RJ84HviEdYjKyTnFFwfzH1S8iohIN5xK8xo3TWtH4M%2FOh2Wtg3SL82E54M%2FAO42jtOqG6sO4NEhO8XLK7AyxcQ7wL%2BsQlWOdD5%2BzDtHLql4O%2B1vnqIxhCNs2qXgVEZGOyyk%2BCFxtnWOY1gfucD582jpIpzkf1gduAla1zjIIV1oHkCH7KvbNg%2FpSTvE14CjrHJURlL22P2EdpBc5H7ajXlvBnVDt%2FTwoKl5FRKRb6rAJ%2BnAtDFzufPip82FR6zDt5nyYrZq6dzOwpHWeQXidFvcIlPrJKT4HqDmanQuBv1mHqMwJ%2FFQFbHs5H7alNN2rS%2B33KEPsdFyXGyAiIj0up3g9vdMN9rPA%2Fc6HHZwPPfFe6nxYkbJm9DhgLuM4g%2FW7nOJ%2FrEPI0OUUfwRcZZ2jH%2BUUJ1HOftdlacfUArbnZ7l0g%2FPhi8APqVfdt3dOcfxQ%2FmOdboSIiPS%2Bw60DtNEilDMWdzofPmQdZqicDws5H44F7gbebZ1niH5gHUDaYjdgrHWIfpRTvBm4wDrHNKYWsPtaB2ky58NBwMXA7NZZpnFVTnHIB6pUvIqISNfkFH9D721nsg7wG%2BfDb5wPH7AO0yrnw3zOh0Mp07cOAuY1jjRU%2F0YNf3pCTvFpQMWKnYMoTXTqYjbgJOfD95wPdSq%2Bas%2F5MIfz4RzgWMpa4roYxzCXCMzRpiAiIsPifDjVOkO%2FyCmONo5wIHA79XpDbYcPAR9yPtwJnARcllOcaJzpTZwP6wC7AF8EFjKO0w5n1fF%2BlqHJKV5YdZzdyjpLv8kpPu98OJjSgbhOvgqs5HwIWh4wa86HxYAfAZtbZ5mBY3OKjw7nClS8ikhdqFlH94y2HDyneIfz4VJgG8scHbQ%2B5YPD6c6HnwIxp3iTZSDnw1uBj1K2%2FNnIMkub%2FZf6fdCW4dsVuA9YwDpIHzoP2BbYzDrIdLYA7nI%2BbJdT7LXZO23jfHg%2F5f2njg337gVOGO6VqHgVEREL%2BwEfobc%2FnC4M7A7s7nx4DPg18Fvgupxi7uTAzoe5KUXq1pT7ea1OjmfojKpTrfSQnOITzof9qde2Hn0hpzjF%2BfAl4C5glHGc6S1JWaJxHHCEZlz8j%2FNhDuBQ4BvUc1noBOCLOcUJw70iFa8iItJ1OcWnnA%2BHAN%2B1ztIly1EVssAk58PfgL9Stqf4G%2FBQTvH5wV5p1el4SWBZSoG6YXVZk95%2Fj3%2BZNhzFl9o6F%2Fgc0Jh15L0ip%2Fgv58NXgUuss8zAbMAhwCecD7vnFP9kHcia82Fjyu%2FL2tZZBnBITvHudlxRr7%2BxiYhIfZ0JbAe8wzpIl80ObFBd%2Fp%2FzYTzwFPAkpWnKuGkus1EaKk29LAAsU13m7Fbwmjkhp%2FiCdQjpjOoM4C7APcB81nn6TU7xx84HT5lCXEerA9c7H34A7DeUg39N53xwwDGULt11PNs61e%2BBU9p1ZSpeRUTERE5xsvPhy5TmTU3bV7QT5gZWrC4ysH8CJ1qHkM7KKT5aNRA63TpLn%2FoqZfusZa2DDGB7ylnY04BTcopjjfN0nPNhPmBPYH%2FK8pQ6exHYPqfYtj2E61yli4hIj6umER1inUMa52vtWDsljXAGcKN1iH5Urc3fhrJesc4cZa3nY86HbzofRhnn6Qjnw7zVvrePAMdR%2F8J1CqVwfaqdV6riVURErJ1MaWYk0orLcoq%2Fsg4h3VGdsdmJMn1euiyneAvwFescLXLAEcCTzofznQ890Vnd%2BfD2ajvBpyjbsC1mm6hlh%2BUUr2r3lap4FRERU9WH0x2AZ4yjSP09R5nKKH0kp%2Fgw5cyaGMgp%2FoBykLEp5gN2Bm5zPtzpfNiz2i6sMZwPCzsfdnA%2B%2FAF4gLKd4CjbVINyaU7xmE5csda8ioiIuZzic86HL1C2ktF7k8zMV%2FqxMYsApeHLZ4CNrYP0qQOANYAtrYMM0nqUrvanOx%2FuAK4Efgnc2851mO3gfFge8MAngfdSmvs10Z2UPcU7Qh8QRESkFnKKf3Q%2B7AWcZZ1FaumsnOKV1iHERk5xkvNhJ8oH45HWefpNdf9vA9wCrGqdZwhG8L%2BtxL4NjHE%2B3ERZT%2F1n4K85xVe7Fcb5MBelY%2FKm01yW7tb4HfQM8ImcYsem%2Bat4FRGR2sgpnu18WB3YyzqL1MrtwGjrEGIrp3i%2F8%2BFI4GjrLP0opzjW%2BbAFcAPwNus8w%2FQWyllOX%2F19ivPhCeDBaS5PAc9OvQymIHM%2BzEFZm7o4sARlP%2B6VgdWqywr0Xh32IrBFTvGJTg7Sa3eaiIg03z7AKjRvepp0xvPAZ3OKr1kHkVo4Afg0sL51kH6UU%2FyX8%2BGDlAJ2Ces8bTSCUpC%2FDdhiRj%2FgfHgF%2BC%2Bl%2B%2FIEYDzwGqWempsyI2Bk9WdXXWe%2FeBnYKqd4T6cHUsMmERGplZziJMratluss4i58cDHc4qPWweResgpvk5ZTzfROku%2Fyin%2BA%2FgQMMY6S5fNTzmbugywErAm5SDK2pQDrstSCvpR9FfhOg74aE7xtm4MpuJVRERqJ6f4CvBh4C7rLGJm6h6BN1kHkXqp9ofuSCdTaU1O8V7K7JiXrLOIqdeAT%2BUUr%2B%2FWgCpeRUSklnKKYynTtx4yjiI2vpZT%2FKl1CKmto4GOT1GUmcsp%2FoXyGv2CdRYx8V%2FgkznFa7o5qIpXERGprZzic8D7gfuss0hX7Z9TPMM6hNRXTnEiZfrw69ZZ%2BllO8VZKp9yONumR2hkDfDCn%2BKtuD6ziVUREai2n%2BG%2FKnne3WmeRrjgop%2Fgd6xBSfznFO4ATrXP0u5zig8C70EHGfvEEsGlO0aQvhYpXERGpvZziGGBz4PfWWaRjJgNfySkebx1EGuVbwAPWIfpdTvFJ4D2A1qj3tvuBd%2BUUzX7nVLyKiEgjVE2ctgYuMo4i7Tce%2BFxO8VzrINIsOcUJwE6Ugx9iKKf4IuUg48XWWaQjrgbeXR2oMKPiVUREGiOn%2BFpOcUdgX2CSdR5pi6eA9%2BQUr7AOIs1UTV881TqHQE5xXE7xS8AelE600nyTgW9StsMZa5xFxauIiDRPTvEUylY6L1pnkWG5Cdiw6loqMhyHAQ9bh5Aip3gmsBnl4JQ01xjgIznFI3OKU6zDgIpXERFpqJzibykbxGuNVfNMAY4HNsspPmMdRpovpzgO2Jny3JIaqM6Irw%2F8wTqLDMkdwAbd3gpnVlS8iohIY%2BUUH6N0Ij4STSNuiqeBLXKKB%2BUUtc2JtE1O8Qbge9Y55H%2Bq7c42pyz1GGccR1ozkdIIbZPqPbZWVLyKiEij5RQn5RS%2FCbwPeMQ4jszcZEphsVpO8XfWYaRnHQQ8ah1C%2FienOLla6rEumilTd3cB78gpHlHtpVw7Kl5FRKQn5BRvBNakTEfVGb16%2BRvlKP6eOcWXrMNI78opvgrsYp1D3iyn%2BHfKdjoHUDqMS328DhwFbJRT%2FJtxlgGpeBURkZ5Rdbo8CNgAuNU6j%2FAqsB%2BlKdNt1mGkP%2BQUrwO07VINVWdhTwTWBpJ1HgHgOsra1m%2FU9WzrtFS8iohIz8kp3g28C9gRMN2Trk9NAn5ImSJ8Uk5R65Gl2%2FYHnrAOITOWU3w4p%2FhR4EPAPdZ5%2BtTDwCdyih%2Bs3jMbQcWriIj0pOoI%2F0XAKsAhQLZN1BcmAz%2BiFK3b5xRVPIiJanr6rtY5ZGDV%2Bvf1gN2A54zj9IsXKQ201sgp%2FsI6zGCpeBURkZ5WTSU%2BFliJsh5Way7bbzLwE8qHoZBT1H6bYq7a4uMi6xwysKrp3jnAypQDjc8aR%2BpVYyid%2BVfKKZ7ShCnCMzKHdQAREZFuyCk%2BDxzkfDgW2AMYDSxqGqr5xlGK1pNyivdZhxGZgX2ALYElrYPIwKqz5cc6H06hLPnYD1jBNlVPeAI4GTivamjWaDrzKiIifSWnmHOKxwDLArsDjVnrUyP3A3sDS%2BUUd1LhKnWVUxxLmZIqDZFTHJ9TPIuy5GNb4A7jSE11D%2BUgwIo5xVN7oXAFnXkVEZE%2BlVMcB5wNnO182ITyAfdzwNymweprAnA5cE5O8QbrMCKtyin%2B0vnwY%2BAL1lmkdVWjtx8DP3Y%2BrEMpxLZFM2YG8iLlPrsop3i7dZhOUPEqIiJ9L6d4M3Cz82E08Gng88D7gdktc9XAq8C1wJVAyim%2BaBtHZMj2Aj4ILGYdRAYvp3gXMNr5sD%2FgKYXsh1EtA6W7%2B28p67uvzClOsI3TWXrARUREKlVxdj5wvvNhMeAzlGJ2U2Auy2xd9BxwFfAL4Lc5xfHGeUSGLaf4gvNhD%2BAy6ywydFWToZ8DP3c%2BLARsRSlmtwLeYpmty8YCv6HslfvrqqdDXxhhHUBERKTunA%2FzU87EbkVp%2FrKibaK2egG4CbgR%2BBNwW05xsm0kEZHWOR9mBzYBPkJ5nV6L3po5M5nSa%2BBaSsF6Y07xddtINlS8ioiIDJLzYRnKB6Wpl%2FVoxpnZKcAj%2FK9YvRF4IKc4xTSViEgbVQccN6K8Pr8T2JhmTRkfA9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkUFZNlkHOR9ebTi%2BjIYlwMzSRYiIiAzKek3WycbjS485H7alarJEREQ6x7rJOsL5sK9xhvTX0cBOpYsQEREZjyauLjypgQzpGefDVsDy0nWIiIiMVxNN1pHOh70ayJF%2BeRuwW%2BkiRERExquJJmsKsKKBHOkJ58MkYGXpOkRERCaiqR3fFzkf%2FiqneHdDedJtbwReXLoIEZFh0rmPo6epHd%2BnY7SZpPSSZrFERKTzmjxW5131xpIim%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pNpgUmRjNIslIiK90XSTBbDc%2BTCtQK60mPPhRcAbStchIiIyLCWarF2BowrkSrutpMzrUURExESpP2ornQ%2F6gyoAOB92BULpOkRERIapVKMzB5hfKFvaZzmwVekiREREhqnkbJIOjhacD7oYQkREeqlkk%2FVy58OhBfOlHZYC2tZDRER6p%2FS6KF2yP8LqPdOOK12HiIiIhdJN1kHOhwMK1yDlLAZmlS5CRETEQukmCzSbNZLqvdJ0aLiIiPTW1NIFAEc4H%2FbNKd5QuhBp1FHA7NJFiIjI6MopTrIcvw0zWaArDUdKvUfaitJ1iIiIWGpLk3Wk82Gv0kVIY94E%2FHrpIkRERCy1pcmagmY2RolmLkVEpPfa0mQBLHI%2BPL90EWLL%2BfCHwCtK1yEiImKtTU3WdKrjVaTfNIslIiIjoU1NFsBi54P2Teop58NvA68pXYeIiEgT2tZkzUQ7gPeZ9kQTEZGR0bYmC2BpfdyK9Ijz4SXA60vXISIi0pQ2Nlk7AseULkKGbiVguumbiIhIm7SxyQJYXh%2B7Ij3gfNgdeGvpOkRERJrU1iZrNtWxK9IPJ9COI5xEREQa09YmC2BlffyKdJjz4bnAO0vXISIi0rQ2NzFzgPmli5AJew%2BwbekiREREmtbmJgt0yX%2BnOR%2B2A44tXYeIiEgJbW%2By5jofDi1dhIzbu4AdShchIiJSQtubLICTSxcgg3M%2BTAfeW7oOERGRUrrQZB3ofDigdBEysEWADvwWEZGR1YUmC7Q2q1Pqq0JPLF2HiIhISV1pso5wPuxXuggZswXA3qWLEBERKakrTRbASaULkDHTcyUiIiOvS03WAufDXqWLkM1zPhwGzC1dh4iISGldarKmACtKFyFbpFksERERutVkASxyPuxSugjZOOfDq4GDStchIiLSBl1rsqYDy0oXIZukq0BFRERqXWuyABY7H2aVLkKeyfnwMuCI0nWIiIi0xdTSBYzDTOA44P2lC5FnOAmYVLqILnM%2BrLccP6eo52eC9Bz1g%2FXzWEoH79f%2Fyin%2BVckCrB%2BzLs5kASx1PswoXYRUnA97AG8uXYeIiEibdLXJ2hE4pnQR8isn0s1ZURERETNdbbIAljsfppUuYtQ5H3YG3lG6DhERkbaxbrJ%2BbDj2bGCh4fgyNscDWxuOb%2FkaEhERMWPdZK0xHn9FfRixFOB8eA5wrHHMqcbji4iImLBuUC4C7jUcfw4w33B82bxjAWc4%2Fr3AxYbji4iImDFtsnKKjwJnWWagDTCLcD5sDbzHOObM%2BjUkIiLSOU181PYB4GHD8efWhxJLs94OPM9w%2FIeBcw3HFxERMWXeZOUU1wLnG8doNqtBzocpVNs2WDqvfu2IiIh0UlOLxk8DHjcc%2F0DnwwGG48szvRnY03D8x6leMyIiIp3VSJOVU7wTuNQ45mTj8eW%2FrDQeP%2BYU7zLOEBERMdXk9gerAMszgg53PuxnOL4AzocjgH0NI9YDqw3HFxERaURjTVZO8SbgCuOYk4zHF%2Fv1b39fv1ZEREQ6remNPE8xHn%2BB82Ev44yR5Xw4ELBe%2B2b9GhEREWlEo01WTvEbwLWGEVOwXy80yqxnCr%2BaU%2FymcYaIiEgjShxJ8%2F%2BNx1%2FkfNjFOGPk1OvdDjeOsX5tiIiINKbxJiuneCVwo2HENGCZ4fijynoW68ac4lXGGSIiIo0pdbjyKuPxFzsfZhlnjAznwwuBBcYxmsUSEZFeKdVkXQbcbjj%2BTGCJ4fijZgXVejcrtwEfNxxfRESkcVNLhOYUn3A%2BrMH28OilzodTc4q%2FMMzoPefD84A%2FNo5Zk1N8wjhDRASAnOKkErnOB8u9IovdL9m0UjNZABcC9xmOPws4xnD8UfFeYLrh%2BPcBFxmOLyIiUkSxJiun%2BAhwjnHMcufDNOOM3nI%2BbA%2B8yzjm7Pq1ICIi0islZ7IAzgYsP86bDSw0HL%2Fv3g08x3D8X2DfaIuIiBRRtMnKKT4AXGAcs8L5ULqZ7BznwzbAUuOY8%2BvXgIiISO%2B0ofk4DXjccPw5wHzD8fvqncDOhuM%2FTvXci4iI9FLxJiun%2BBPgY8Yx1oca94rzYSqw3DjmoznFO4wzREREiineZNVWAZaXts51PhxmOH7fvAXYw3D89cBqw%2FFFRESKa0WTlVP8HnClcYxms8bA%2BTAJ%2B0O2U%2F2ci4iI9FYrmqzaKcbjH%2Bh8mGec0QevA15qnKEjdEREpPda02TlFL8GfM04RrNZW2Z9EPQ%2F1c%2B1iIhIr7WmyapZz3Ac7nzYzzijs5wPvwf8jnGMZrFERGQktK3JSoD1Wh3rmZous35svov92jsREZFWaFWTlVNcT3WloaUFzoe9jTM6x%2FnwcuAQ45hV9XMsIiLSe61qsmofAyz3T5oCrDAcv6us16s1sR%2BaiIhIa7SuycopNrET%2BCLnwy7GGZ3hfJgD%2FJFxzGk5xSeMM0RERFqjdU1W7XzA8ky7adjvaN4lK7B9LdyP%2FRmVIiIirdLKJiun%2BAvgHOOYY5wPs4wzWq%2Be0TvKOOac%2BjkVEREZGa1ssmpnA48Yjj8TWGI4flcsA6Ybjv8I9g2ziIhI67S2ycop3gdcaByz1PkwwzijtZwPOwCLjWMuqJ9LERGRkdLaJqu2BrBcLD0L%2ByajzY6jmtGz8gT2FzGIiIi0UqubrJzi7cDHjWOWOR%2BmGWe0jvNhW2Cpccxl9XMoIiIyclrdZNWsj2GZDSw0zmijo4GdDMdfj47QERGREdb6JiuneCNwlXHMCudD6x%2BLYXE%2BbEW14N3SVTnF7xpniIiItFZXGgvrGZE5wALjjDZ5G7C7cYZmsUREZKR1osnKKX4V%2BIZxzEgcHO18mIT9sULfyClea5whIiLSap1osmrWMyNznQ%2BHGWe0wRuAfYwzTjEeX0REpPW61GT9PXCTccbJxuO3gfWM3U3AFcYZIiIirdeZJiunuB5YbRwzz%2FkwzzijGOfDwcD%2BxjGr6udKRERkpHWmyapF4E7jjPcZj1%2BS9SzWncClxhkiIiKd0KkmK6f4OHC6cczhzof9jDMa53x4BfD7xjGn1c%2BRiIjIyOtUk1U7D1hrnNHH2Szr%2B7QWON84Q0REpDM612TlFB8GPmAcM9%2F5sLdxRmOcDy8C3mgcc0793IiIiAgdbLJqZwGPGo4%2FBfu9pJq0Etvn%2BlHgbMPxRUREOqeTTVZO8V7gYuOYRc6H2cYZ5pwPu1Lt8G7povo5ERERkVonm6zaqcCThuNPw%2F58vyYsp7ovVp6kei5ERERkA51tsnKKPwY%2BYRxzjPNhlnGGmbr2o41jPp5TvM04Q0REpHM622TVrI%2FamQksMc6wtBSYYZyxynh8ERGRTup0k5VT%2FDfgauOYpc6HmcYZQ%2Bd8mIF9g%2Fi5%2BjkQERGRZ%2Bl0k1Wzns2aBRxjnGFhMVXtlqwfexERkc7qfJOVU%2FwycJ1xzDLng%2BXi8aGqa32vccx1OcWvGGeIiIh0VuebrJr1jMpsYJFxxjAdBexqnHGK8fgiIiKd1pcm67PAvxtnrHA%2BTDHOmDDnw2TgROOYH1A95iIiIrIJvWiycopPAauNY%2FYG5htnDMObgBcZZ6zOKa43zhAREem0XjRZtUuAnxpndOHg6JOMx78LiMYZIiIindebJiunuA443ThmP%2BfD4cYZ4%2BZ8%2BAPgFcYxp9ePtYiIiGxGb5qs2oeBB40z2jybZV3bg8B5xhkiIiK90KsmK6f4EPBB45h5zod5xhkDcz7sD7zGOObc%2BjEWERGRLehVk1U7A3jMOKONs1nWNT0GnGmcISIi0hu9a7JyivcAf2Mcc7jzYa5xxpg5H%2FYB%2FodxzMX1YysiIiJj0Lsmq3Yq8KRxhvVVfIM4CZhkOP6TVI%2BpiIiIjFEvm6yc4o%2BATxrHLHA%2B7G2csUXOh92BtxjHXJ5TvNU4Q0REpFd62WTVrI%2FamQysNM4YixOArYwzVhmPLyIi0ju9bbJyit8GvmAcs9D5MNs4Y5OcDzsB7zSO%2BYf6sRQREZEB9LbJqlkfYjwNWGacsTnvAbY1ztBB0D3hfJhaugYRkVHS6yYrp3gN8C%2FGMYudD7OMM%2F4b58NM4N3GMdfnFL9knCHNmVa6ABGRUdLrJqtmvTZrBrDUOGNj3gXsYJxh%2FdhJs6zX7omIyAZGocn6NHCLccaSemapEc6H6cB7jWNuBv7OOEOapZksEZEG9b7Jyik%2BBaw2jpkFHGOcsaFFwC7GGavrx076Q03WBNRvbkRExqz3TVbtI8DdxhnLnQ%2Fmf8ScD5OBE41j7gYuMc6Q5m1XuoCOU5MlIgMZiSYrp%2FhL7M%2Fd24VqhsnaAsB6E9Qz6sdM%2BmXH0gV03NalCxCRbhmJJqv2QSAbZ6xwPkwxzrA%2BzicDHzLOkDIavwq2Z9RkichARqbJyin%2BHPvmYW9gvtXgzodDgblW49c%2BWD9W0rzHjcfXTNbE6ONCERnIyDRZtTMA64%2FB3tfRsaF6bKw%2FVpVNW2c8vmayJkZNlogMZKSarJzifwB%2Faxyzn%2FPh8GEP6nz4HeCgYY%2F7LH9TP0ZShnWT9Xzj8ftup9IFiEi3jFSTVVsNWG9NYDHjZD2L9RRwqnGGbN5jxuO%2FwHj8vnte6QJEpFtGrsnKKf6QaoNSS%2FOcD%2FOGNZjz4aWAH9Z4m%2FCp%2BrGRcqzXwu1uPH7fqckSkYGMXJNVa%2BLQ45OHONZJwKQhjrcxOkKnvAeMx9dM1sSoyRKRgYxkk5VT%2FBbwj8Yxhzkf5k50EOfDHsD%2FnHA1m%2FfF%2BjGRstYaj%2F9rzgdtQzB%2BarJEZCAj2WTVmpi5GcaeVicCU4cwzuZoFqsdrJusScAc44w%2B04UDIjKQkW2ycopfAP7VOGaB82Hcf9ScDzsDbx9iPRvzrZziF40zZGzuaSDjZQ1k9NU%2BpQsQkW4Z2SarZj2DMxlYMYHvPx7YZjilbJJmsdrjzgYy1GSNg%2FNhO2C30nWISLeMepP1KcD6irqFzofZg36T8%2BE5wLEG9Wzoh1SPgbTDXQ1kqMkaHz1uIjKwkW6ycopPYr831DRg2Ti%2B708BN%2BRanm11TtF6zzAZuyZmsn6jgYw%2BemnpAkSke0a6yar9LfAz44zFzocxnxtXXwF2vF05ADSx%2B70M5o4GMvas1%2FrJYNRkicjARr7Jyik%2Bhv15fTOAJQN8%2Fduxv1z8zJyi9TmOMpg7sT9bE2BoG%2BWOkFeVLkBEumfkm6zaudjvtr3E%2BTBzS1%2FkfJgCnGBcy8%2BBDxpnyIDqj25%2F1EDUgQ1k9Eb9c%2FvK0nWISPeoyQJyihn4sHHMLGDxGL7uzcALjWv5UH2fpX1uaSBDTdZgDsR%2BrzoR6SE1Wf%2FlDGCdccYy58O0LXzNSuMa1lHdV2mnJpqsuc4H64sq%2BuS1pQsQkW5Sk1XLKf4UuMQ4Zhdg0ab%2Bo%2FPhCGBf4xo%2BklO82zhDxu%2F7DWRMAV7XQE5fvKZ0ASLSTWqynmkVYL2lwYp63dXGvM84%2BylgtXGGTMy3G8qZ31BOpzkfdgN%2Bs3QdItJNarI2kFO8GfiMcczewIJn%2F0vnwzzgAOPsv6vvo7TX92jmCsNDxnIhhvAWqjMfRUQGpibrvyt1cLT1LBboCJ3Wyyk%2BTtVoWdsa8A3kdN1bSxcgIt2lJutZcor%2FDHzJOGY%2F58PhT%2F8f58O%2BwOGb%2BfphuCaneL1xhgzHtxrK2eT6QAHnwz7AfqXrEJHuUpO1cU3M%2BGw4c7Wxma1h0yxWd3y9oZxDnA97N5TVRQtLFyAi3aYmayNyip8HvmMcM8%2F5cKDz4YXAkcZZ384p%2FoNxhgzPPzaUMwl4d0NZnVKvVxvLvnYiIpukJmvTmprNWkF1Sb0lzWJ1SE7xDprZ%2BR3g7c6HGQ1ldcnRwA6lixAZhH6W20dN1qZdDtxqnHEY8A7jjFuBTxpnyPBd01COA%2F6koaxOcD5Mxf6AdhEL25UuQJ5JTdYm5BSfBNY0ELWV8fin1vdFuqWpjwwB%2FkzbOTzD24DdSxchMg46yaFl1GRt3kXAPaWLmIB7gItLFyHjcjX2xzw97bnA8oayWq1uNv%2B6dB0i4zSndAHyTGqyNiOn%2BBhwVuk6JuDM%2Bj5Ix9QHeDf1kSHAcufDTg3mtdVfUh1%2FJdJFLytdgDyTmqwtOxd4qHQR4%2FAQVe3SXZ9uMGs74P82mNc6zocXA%2B8pXYfIBGhft5ZRk7UFOcW1wHml6xiHD%2BcUHyxdhEzIZ7E%2FS3NDxzgfDmkwrzXq80TPx36NpIw26%2FWxf7CZs3GlADVZY3M6za2PGYZ1wBmli5CJySneA3y54dgLnA%2FbN5zZBv8PmFe6COk963NJd8T%2BDFwZgJqsMcgp3gVcWrqOAcS6Zum%2Bpi9c2JVur0McmPPhdcAJpeuQkfDzBjJCAxkyRmqyxm4VsL50EWOwHlhduggZmk8BueHMo5wPSxrOLML58OvAR6h2vxex9rMGMhY6H57fQI6MgZqsMcop%2FoBqjUzbfaauVXogp%2FgocFmB6DOcD28qkNsY58OeVPuRbV%2B4FBkdTXzCMB3NzLaGmqzBdOF4mi7UKIO5sEDmZOBS50Mv13c4H3aj2iJj19K1yEi5uaGcJc6HfRvKks1QkzWAnOI3ga%2BWrmMzvpJTvK50ETJcOcXrga8XiN4auKJvjVZ9KPs1wB6FS5HRc1NDOVtRXcQytaE82QQ1WYM7pXQBm9Hm2mRiSs1Q7gB80flwZKH8oXI%2BHAxcD%2BxduhYZSf%2FSYNZvMWIXsbSRmqwB5RQ%2FB9xQuo6NuCGneHXpIsTMFcD3C2VvDVzmfDixUP5QOB%2BWAp8HZpWuRUbWDcAjDeb9qfNBG%2BwWpCZrfFaVLmAjtBarx3KK6yn7upsErHI%2BfML58NyCdQzM%2BbCb8%2BEK4ExAGzVKMTnFJ4BrG449w%2FmghfCFqMkan48Dt5UuYgO3UdUk%2FfZR4EeFa1gAfM%2F5sKBwHVvkfJhcz159H%2FCl6xGplfjEYbXz4QPOh%2BkFskeamqxxqN%2BNrCldxwZOzSlaH9cgheUUH6cdl2Y%2FF%2FiE8%2BFy58MLShfzbHVzNR%2F4V6rZq5mFSxLZUKmtgI4FrnM%2B%2FGah%2FJGkJmv8LgTuLV0EVQ0XlS5CmpFT%2FAzVlXFtMB%2B42flwVhuaLefDVs6Ho4DvApejw3KlhXKKP6a6%2BKKE%2FYDrnQ8X1%2FvEiTFd3jlOOcVHnQ9nA%2B8vXMpZ9YaVMjqOB75NO9YXTQOWAMfW654uBq7OKTZy1qfzYRLVmYNvpfooc8cmckUm6BKqq%2F9KmAz8MdXO8FcBFwBfyCk2uSB%2FZKjJmpgPACuBGYXyH65rkBGSU7zR%2BfAh4N2la9nAFOAN9e3B%2Bpf3F4Frcoq3DzOonjU7sL4dCuw%2BzPFFGnAJ1ZY72xasYTLVWkUPPOZ8%2BArwTeDfqGaDf5JTnNCB1s6HyVTLC3atb7sBewJ7UW2jcklOsdcXbanJmoCc4gPOh%2FOpZhZKOD%2BnuLZQtpR1EnAY8MLShWzE9lQzS28FcD7cQ7U%2B6ntUC%2Fd%2FTHWG233AWmDd0zNfzodtqN60zKxvu1L9Qn769nKqX9QinZVTfND58FHgT0rXUtsaOKS%2BPW298%2BFe4G6qn9O1wEPAOuCXwFNUb66mUM1oP%2F0zux3VjPJO9T83tyxpm6HeixZSkzVxa6hmFLZqOPdx4LSGM6UlcooPOx8WUp1A0Pa1lTtTzTgduqkvcD5Adbh5Fw5qfopqk8fjC9ch3bYaeAft%2FfmdRPWzu3PpQrqsrU9uZ%2BQU76S6tL5pl9bZMqJyil%2Bj%2BkXdF11osKBah%2FmV0kVIt%2BUUbwY%2BWboOsaUmazhWUb0Lb8p6%2BvXHVcbvL6gWwUszPkn5i12kP06m%2BvhNekpN1hDkFL8PpAYjr6gzZcTVa5neSDu2E%2Bm7fwYW1rvvi0xYTvFHVHu5SU%2BpyRqeJg9n1kHQ8iv11XvzqdbpiY3bgddruxQx8H6qi0Gkh9RkDUlO8evAPzUQdW1O8RsN5EiH5BS%2FChxXuo6eugN4bU7xZ6ULkf7JKT5MtW%2FVU4VLEQNqsoarif0%2Ber2niIxfTvE84PTSdfTMXcBrcoq3li5E%2Bqt%2Bk6RPKHpITdZwXUm1iZuVG3OKVxqOLx2XU1yGNqgdljuoGqzSh3LLaPhz4HOli5DhUpM1RPWC2FWGEZZjS0%2FkFI8Dzi1dR8d9B3hVTvGW0oXIaMgpPkW1ge%2BNpWuR4VGTNXwfA35iMO7twGUG40o%2FqdEav6uBA3OKPy1diIyWnOKDwO8D%2F164FBkSNVlDllN8gmoX%2BGFbU48tskX1rOpxVB9BaEHt2K0BXlcvRhZpXE7xHuBgqmOopOPUZNm4ALh%2FiOPdD1w4xPFkBOQU1%2BcU%2Fw%2FweiCXrqflHqDaouEEvZmR0nKKdwHz0MkCnacmy0BO8RHgnCEOeXY9psjA6osl9gduKl1LS10LvDyneEXpQkSeVn90%2BIdos9JOU5Nl52xgGI3RLxhuwyYjqD4n7beB82j2CKg2%2BznV4e6%2Fm1O0WEcpMiE5xXU5xeOBNwD3lK1GxkNNlpGc4v1UHxtO1AX1WCITklN8KKe4GPhd4Ael6ynsM8BLcorn6pgcabuc4meBF1P9TdHrtUPUZNlaA0xkfccTwGlDqkUEgJzitcBc4H8zekfxXAf8Xk7xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=U(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=U(t[i]);if(!e)break;r.push(e),i+=1}n.push(Z(r)),o=i;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const i=[],l=()=>{0!==i.length&&(o+=Z([...i]),i.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>U(e));a.length>0&&a.every(e=>null!==e)?i.push(...a):(l(),o+=n[0]),r=t.lastIndex}return l(),o+=e.slice(r),o}(e))}(function(e){const t=q(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));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){return e.colors.heading??e.colors.text}function oe(e){return e.colors.label??e.colors.text}function re(e){return e.colors.value??e.colors.text}function ie(e){return e.colors.productYes??"#00C853"}function le(e){return e.colors.productNo??"#E53935"}function ae(e){return e.brand?.accent??e.colors.primary}function ce(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function se(e){return e.colors.textAlt??e.colors.text}function de(e){return e.colors.textAltMuted??e.colors.textMuted}function he(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function ue(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function fe(e){return e.colors.selectionProp??e.colors.background}function ge(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:he(e)}}function pe(e,t="light"){return e?ye(e)?"dark"===t?e.dark:e.light:e:me}function ye(e){return"light"in e&&"dark"in e&&!("colors"in e)}var me={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"}},be={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"}},we={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"}},xe={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"}},ke={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"}},Se={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"}},Ce={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"}},Be={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"}},ze={light:me,dark:we},Fe={light:ke,dark:be},ve={light:Se,dark:xe},We={light:Ce,dark:Be};function Te(e){return{default:me,green:be,"green-light":ke,dark:we,gold:xe,"gold-light":Se,yesno:Be,"yesno-light":Ce}[e]||me}function Ae(e){return{default:ze,green:Fe,gold:ve,yesno:We}[e]||ze}var Re={default:me,green:be,"green-light":ke,dark:we,gold:xe,"gold-light":Se,yesno:Be,"yesno-light":Ce},Le={default:ze,green:Fe,gold:ve,yesno:We};function De(e,t="light"){return pe(e,t)}function Me(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 Pe={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},He={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},Oe={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},Ie={min:44};function Ee(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...Pe},radius:{...He},fontSize:{...Oe},touchTarget:{...Ie},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??Me(n.border,t?.6:.5)},isDark:t}}function je(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 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 uses currentColor (teal on light, paper on the teal\n app-icon tile); the ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi"},Ze={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=Ze[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function qe(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."},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=Ee(t),f=t.colors,g={sm:{h:36,px:u.space.md,fs:u.fontSize.sm},md:{h:u.touchTarget.min,px:u.space.lg,fs:u.fontSize.md},lg:{h:52,px:u.space.xl,fs:u.fontSize.lg}},p={sm:u.radius.sm,md:u.radius.md,lg:u.radius.lg,pill:u.radius.pill},y={primary:{bg:f.buttonPrimary,bgPressed:f.buttonPrimaryHover,fg:f.buttonPrimaryText,border:f.buttonPrimary},secondary:{bg:f.buttonSecondary,bgPressed:f.buttonSecondaryHover,fg:f.buttonSecondaryText,border:f.border},ghost:{bg:"transparent",bgPressed:Me(f.text,u.isDark?.1:.06),fg:f.text,border:"transparent"},danger:{bg:f.error,bgPressed:Me(f.error,.85),fg:"#ffffff",border:f.error}}[n],[m,w]=e.useState(!1);/* @__PURE__ */
2
2
  return W(b,{accessibilityRole:"button",accessibilityLabel:h,accessibilityState:{disabled:!!r},disabled:r,onPress:a,onLongPress:c,onHoverIn:()=>w(!0),onHoverOut:()=>w(!1),style:({pressed:e})=>[{minHeight:g[o].h,paddingHorizontal:g[o].px,borderRadius:p[l],backgroundColor:!e&&!m||r?y.bg:y.bgPressed,borderColor:y.border,borderWidth:1,alignSelf:i?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:r?.5:1,transform:[{scale:e&&!r?.985:1}]},s],children:"string"==typeof d?/* @__PURE__ */W(S,{style:{color:y.fg,fontSize:g[o].fs,fontWeight:"500"},children:d}):d})}var at={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function ct(e,t,n,o,r){const i=Ee(e),l=at[o];return{container:{paddingVertical:l.paddingVertical,paddingHorizontal:l.paddingHorizontal,borderRadius:i.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1},label:{fontSize:l.fontSize,fontWeight:"600",lineHeight:1.2*l.fontSize,color:t?"#ffffff":e.colors.text}}}function st({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:i,yesLabel:l="Yes",noLabel:a="No",style:c}){const s=ct(e,"yes"===t,ie(e),r,i),d=ct(e,"no"===t,le(e),r,i);/* @__PURE__ */
3
3
  return T(z,{style:[{flexDirection:"row",gap:8,flexShrink:0},c],children:[/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!i},disabled:i,onPress:i?void 0:n,style:s.container,children:/* @__PURE__ */W(S,{style:s.label,children:l})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!i},disabled:i,onPress:i?void 0:o,style:d.container,children:/* @__PURE__ */W(S,{style:d.label,children:a})})]})}function dt({theme:e,value:t,size:n="md",style:o}){const r=Ee(e),i="sm"===n?10:11;/* @__PURE__ */
4
- return W(z,{style:[{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",paddingVertical:"sm"===n?2:3,paddingHorizontal:"sm"===n?8:10,borderRadius:r.radius.sm,backgroundColor:"yes"===t?ie(e):le(e)},o],children:/* @__PURE__ */W(S,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function ht({delay:t=0,style:n,children:o}){const r=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:f.bezier(.2,.8,.2,1),useNativeDriver:"web"!==m.OS}).start())},r=s.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=s.addEventListener?.("reduceMotionChanged",e=>{e&&n.setValue(1)});return()=>{e=!0,i?.remove?.()}},[t,n]),{opacity:n,transform:[{translateY:n.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(t);/* @__PURE__ */
5
- return W(h.View,{style:[n,r],children:o})}function ut({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
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?ie(e):le(e)},o],children:/* @__PURE__ */W(S,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function ht({delay:t=0,style:n,children:o}){const{transform:r}=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:f.bezier(.2,.8,.2,1),useNativeDriver:"web"!==m.OS}).start())},r=s.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=s.addEventListener?.("reduceMotionChanged",e=>{e&&n.setValue(1)});return()=>{e=!0,i?.remove?.()}},[t,n]),{opacity:n,transform:[{translateY:n.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(t);/* @__PURE__ */
5
+ return W(h.View,{style:[n,{transform:r}],children:o})}function ut({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
6
6
  return W(S,{style:[gt.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>/* @__PURE__ */W(S,"string"==typeof e?{children:e}:{style:{fontWeight:"800",color:"yes"===e.tone?ie(t):le(t)},children:e.text},n))})}function ft({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,a=he(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[f,g]=c(!1),p=e.demoLegs.length,y=h.filter(e=>null!=e).length,m=y===p,b=e.demoLegs.filter((e,t)=>h[t]===e.outcome).length,w=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,b,p),x=(e,t)=>{f||u(n=>n.map((n,o)=>o===e?t:n))},k=f?"Settled":`${y} of ${p} called`,C=!f&&m,F=e=>[gt.segment,{backgroundColor:e?i.primary:"transparent"}],v=e=>[gt.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];/* @__PURE__ */
7
7
  return T(z,{children:[
8
8
  /* @__PURE__ */T(z,{style:[gt.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[
@@ -88,296 +88,295 @@ return T(z,{style:{position:"relative",width:t,height:t},children:[/* @__PURE__
88
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(Tn,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function Yo({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:f,legOptions:g,onPick:p,colors:y,menuShadow:b}){const[w,x]=c(!1),[k,C]=c(null),F=a(null),A=a(null),[R,L]=c(null),[D,M]=c(!1),[P,H]=c(null),O="web"===m.OS,I=40+40*g.length+12;i(()=>{if(!w||!O)return;const e=F.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0,r=window.innerHeight-t.bottom,i=t.top,l=r<I&&i>r;L({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[w,O,I]),r(()=>{if(!w)return;if(O){const e=e=>{const t=F.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||A.current&&A.current.contains(n)||x(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=F.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);M(r<I&&t>r),H({x:e,y:t,width:n,height:o})})},[w,O,I]);const E=/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:y.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:y.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:f},children:"How many picks?"})}),g.map((e,t)=>/* @__PURE__ */T(B,{onPress:()=>{x(!1),C(null),p(e)},onMouseEnter:()=>C(e),onMouseLeave:()=>C(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:y.border,backgroundColor:k===e?y.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:y.text,fontFamily:f},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:Me(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:f},children:"QP"})]},e))]});/* @__PURE__ */
89
89
  return T(z,{ref:F,style:{position:"relative"},children:[
90
90
  /* @__PURE__ */W(An,{iconUrl:e,gameName:t,onPress:()=>x(e=>!e),size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h}),w&&O&&R&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:A,style:{position:"absolute",top:R.flipUp?void 0:R.bottom+6,bottom:R.flipUp&&"undefined"!=typeof window?window.innerHeight-R.top+6:void 0,left:R.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:y.background,border:`1px solid ${y.border}`,borderRadius:8,minWidth:180,boxShadow:b,overflow:"hidden",fontFamily:f},children:E}),document.body),
91
- /* @__PURE__ */W(Ln,{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 Vo({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:f=!1,onPropositionCountChange:g,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=De(s,d),w=b.colors,k=he(b),C=Ne(b),F=Ge(b),A=ne(b),R=je(b),L=ae(b),D="dark"===b.colorScheme,M=l(()=>ao(e),[e]),[P,H]=c(()=>co(e));r(()=>{0!==M.length&&(M.some(e=>e.id===P)||H(M[0].id))},[M,P]);const O=l(()=>!f||M.length<=1?e:lo(e,oo[P]),[e,f,M.length,P]),I=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,E=(e,t)=>{e.quick_pick_only&&y&&t>0?y(e,t):(t>0&&!qn(e)&&g?.(t),n(e),p?.())},[j,N]=c(0),G=j>0&&j<400,Y=G?108:124,V=j>0&&j<380,U=j>0?Math.min(.86*j,380):0,Z=U>0?Math.max((j-U)/2,4):4,K=U+14,q=O.length>1,X=q&&Z>=48,Q=a(null),J=a(null),[$,_]=c(0),ee=e=>{const t=Math.max(0,Math.min(e,O.length-1));rt(Q,t*K),_(t)};r(()=>{G&&0!==j&&rt(J,Math.max(0,80*$-j/2+40))},[$,G,j]),r(()=>{rt(Q,0,!1),_(0)},[P]);const te={shadowColor:"#000",shadowOpacity:D?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(jn,{colors:ge(b),count:Math.min(Math.max(e.length,2),4),showTierTabs:f&&M.length>1}):i?/* @__PURE__ */W(z,{style:Zo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===e.length?/* @__PURE__ */W(z,{style:Zo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games available"})}):/* @__PURE__ */T(z,{style:{flexDirection:"column"},onLayout:e=>N(e.nativeEvent.layout.width),children:[f&&/* @__PURE__ */W(Eo,{tabs:M,active:P,onChange:H,colors:w,bodyFont:C,useShortLabel:V}),0===O.length?/* @__PURE__ */W(z,{style:Zo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games in this collection"})}):/* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(x,{ref:Q,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:K>0?K:void 0,snapToAlignment:"start",style:jo,scrollEventThrottle:16,onScroll:e=>{if(K<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/K);_(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:Z,paddingRight:Z,paddingBottom:8},children:O.map(e=>{const o=wn(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>xn[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),i=t?.id===e.id,l=String(e.id),a=rn(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:f,tiers:g,modes:x,pydDividends:B,hasGenericDividends:v,minBet:D,maxBet:M}=Oo(e,m?.[e.id]),P=qe(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
92
- return T(z,{style:[Zo.gameCard,No,{width:U||void 0,flexGrow:0,flexShrink:0,borderColor:i?w.primary:w.border,backgroundColor:i?w.infoBg:w.background??k,opacity:o?1:.5},te],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&y&&d.length>1?/* @__PURE__ */W(Yo,{iconUrl:P,gameName:I(e),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.textMuted,bodyFont:C,legOptions:d.map(Number),onPick:t=>E(e,t),colors:w,menuShadow:R}):/* @__PURE__ */W(An,{iconUrl:P,gameName:I(e),onPress:()=>E(e,f),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.primary}),
91
+ /* @__PURE__ */W(Ln,{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 Vo({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:f=!1,onPropositionCountChange:g,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=De(s,d),w=b.colors,k=he(b),C=Ne(b),F=Ge(b),A=ne(b),R=je(b),L=ae(b),D="dark"===b.colorScheme,M=l(()=>ao(e),[e]),[P,H]=c(()=>co(e));r(()=>{0!==M.length&&(M.some(e=>e.id===P)||H(M[0].id))},[M,P]);const O=l(()=>!f||M.length<=1?e:lo(e,oo[P]),[e,f,M.length,P]),I=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,E=(e,t)=>{e.quick_pick_only&&y&&t>0?y(e,t):(t>0&&!qn(e)&&g?.(t),n(e),p?.())},[j,N]=c(0),G=j>0&&j<400,Y=G?108:124,V=j>0&&j<380,U=function(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}(O.length,j),Z=j>0?(j-4*(U-1))/U:void 0,K=j>0?Math.min(.86*j,380):0,q=K>0?Math.max((j-K)/2,4):4,X=K+14,Q=O.length>1,J=Q&&q>=48,$=a(null),[_,ee]=c(0),te=e=>{const t=Math.max(0,Math.min(e,O.length-1));rt($,t*X),ee(t)};r(()=>{rt($,0,!1),ee(0)},[P]);const re={shadowColor:"#000",shadowOpacity:D?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(jn,{colors:ge(b),count:Math.min(Math.max(e.length,2),4),showTierTabs:f&&M.length>1}):i?/* @__PURE__ */W(z,{style:Uo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===e.length?/* @__PURE__ */W(z,{style:Uo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games available"})}):/* @__PURE__ */T(z,{style:{flexDirection:"column"},onLayout:e=>N(e.nativeEvent.layout.width),children:[f&&/* @__PURE__ */W(Eo,{tabs:M,active:P,onChange:H,colors:w,bodyFont:C,useShortLabel:V}),0===O.length?/* @__PURE__ */W(z,{style:Uo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games in this collection"})}):/* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(x,{ref:$,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:X>0?X:void 0,snapToAlignment:"start",style:jo,scrollEventThrottle:16,onScroll:e=>{if(X<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/X);ee(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:q,paddingRight:q,paddingBottom:8},children:O.map(e=>{const o=wn(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>xn[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),i=t?.id===e.id,l=String(e.id),a=rn(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:f,tiers:g,modes:x,pydDividends:B,hasGenericDividends:v,minBet:D,maxBet:M}=Oo(e,m?.[e.id]),P=qe(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
92
+ return T(z,{style:[Uo.gameCard,No,{width:K||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(Yo,{iconUrl:P,gameName:I(e),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.textMuted,bodyFont:C,legOptions:d.map(Number),onPick:t=>E(e,t),colors:w,menuShadow:R}):/* @__PURE__ */W(An,{iconUrl:P,gameName:I(e),onPress:()=>E(e,f),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.primary}),
93
93
  /* @__PURE__ */T(S,{style:{marginTop:8,fontFamily:F,fontSize:13,letterSpacing:-.52,lineHeight:13},children:[/* @__PURE__ */W(S,{style:{fontWeight:"800",color:w.primary},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:Me(w.primary,.85)},children:"NO"})]}),
94
- /* @__PURE__ */T(z,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[/* @__PURE__ */W(S,{style:{fontFamily:F,fontWeight:"600",fontSize:G?19:21,color:A,letterSpacing:-.19,lineHeight:1.2*(G?19:21),textAlign:"center",paddingHorizontal:4},children:I(e)}),/* @__PURE__ */W(wt,{variant:"icon",panel:ot(e),content:c||"Pick outcomes and land the payout for this game.",theme:b,title:I(e),label:`How to play ${I(e)}`,extra:/* @__PURE__ */W(Io,{tiers:v?g:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>E(e,t):void 0,minBet:D,maxBet:M,colors:w,bodyFont:C,headingFont:F}),colors:w,bodyFont:C,headingFont:F})]}),s?/* @__PURE__ */W(S,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:w.primary,textAlign:"center",fontFamily:C},children:s}):null,c?/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:w.textMuted,textAlign:"center",fontFamily:C},children:c}):null,a.enabled&&/* @__PURE__ */W(z,{style:[Zo.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[Zo.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?Zt(a.amount):a.limit>0?`Up to ${Zt(a.limit)}`:"Jackpot":Zt(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[Zo.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[Zo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Zo.tagText,{color:oe(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[Zo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Zo.tagText,{color:oe(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[Zo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Zo.tagText,{color:oe(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[Zo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[Zo.tagText,{color:oe(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(lt,{theme:b,variant:"primary",size:"sm",onPress:()=>{n(e),p?.()},children:"Select game"})}),H?/* @__PURE__ */W(z,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */W(S,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:w.text,textAlign:"center",fontFamily:C},children:H})}):null]},l)})}),X&&/* @__PURE__ */W(v,{children:[-1,1].map(e=>{const t=e<0?$>0:$<O.length-1;/* @__PURE__ */
95
- return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>ee($+e),disabled:!t,style:{position:"absolute",top:"38%",left:e<0?2:void 0,right:e>0?2:void 0,width:44,height:44,borderRadius:22,borderWidth:1,borderColor:w.border,backgroundColor:Me(w.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...te},children:/* @__PURE__ */W(S,{style:{fontSize:18,lineHeight:20,color:w.primary,fontFamily:C},children:e<0?"‹":"›"})},e)})})]}),O.length>0&&q&&/* @__PURE__ */W(z,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:O.map((e,t)=>/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityLabel:`Go to ${I(e)}`,onPress:()=>ee(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(z,{style:{width:t===$?22:7,height:7,borderRadius:999,backgroundColor:t===$?w.primary:Me(w.primary,.25)}})},e.id))}),O.length>0&&q&&/* @__PURE__ */T(z,{style:{borderTopWidth:1,borderTopColor:w.border,paddingTop:10,marginTop:2},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:w.textMuted,fontFamily:F,marginBottom:8},children:"All games"}),/* @__PURE__ */W(Uo,{isNarrow:G,stripRef:J,children:O.map((e,t)=>/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:t===$},onPress:()=>{ee(t),wn(e)&&(e=>{const{legOptions:t,maxLegCount:n}=Oo(e,m?.[e.id]);e.quick_pick_only&&y&&t.length>1||E(e,n)})(e)},style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===$?w.primary:"transparent",...G?{width:76,flexGrow:0,flexShrink:0}:{flexGrow:1,flexBasis:84}},children:[/* @__PURE__ */W(Go,{iconUrl:qe(e),size:G?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:L}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===$?w.primary:A,fontFamily:F},children:I(e)})]},e.id))})]})]})}function Uo({isNarrow:e,stripRef:t,children:n}){return e?/* @__PURE__ */W(x,{ref:t,horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{gap:4},children:n}):/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:n})}var Zo=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}}),Ko=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),i="GET"===r,l=i,a=!i&&!n?.idempotent,c=`${r} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[i,l]of Object.entries(o.payload||{}))r[Number(i)]=l;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function qo(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[f,g]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),g(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){g(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:f,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function Xo(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null);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,g,f]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function Qo(e,t){const[o,i]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,u=n(async()=>{if(!h)try{a(!0),d(null),i(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return r(()=>{u()},[u]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await u()},[e,u])}}function Jo(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null);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,g,f]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function $o(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,f=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!f.current.has(e.id));if(0===n.length)return;for(const e of n)f.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:i,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function _o(e){const[t,n]=c(!1),[o,r]=c(null),[i,l]=c(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return l(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:i}}function er(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 tr(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 nr(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 or(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 rr=t(null),ir={};function lr(){const e=o(rr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function ar({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:f,colorScheme:g,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:F,disableQuickPick:v=!1,renderTeamLogo:T,onEntryPlaced:A,onBeforeSubmit:R,onCancel:L,onShare:D,onRecharge:M,onClearEventFilter:P,screenSize:H="desktop",howToPlayMarkdown:O,sportDisplayNames:I,categoryDisplayNames:E}){const j=De(f,g),N=Ne(j),G=Ge(j),Y=!(!p||!y),V=l(()=>new Ko({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[U,Z]=c(0),K=a(0),[q,X]=c(0),[Q,J]=c([]),[$,_]=c({}),[ee,te]=c({}),[ne,oe]=c(void 0),[re,ie]=c(null),[le,ae]=c(void 0),ce=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&ae(e)}catch(e){}},[h]);r(()=>{h?ce():ae(void 0)},[h,ce]);const se=a(null),[de,he]=c(null),[ue,fe]=c(C??null),[ge,pe]=c(B??null);r(()=>{C&&fe(C)},[C]),r(()=>{pe(B??null)},[B]);const[ye,me]=c(B),be=a(!1);r(()=>{if(!B)return me(void 0),void(be.current=!1);be.current||me(B)},[B]);const we=w??de??void 0,xe=S??C??void 0,ke=sn(ue??xe,F),Se=sn(xe,F)??xe,Ce=ue??void 0,{games:Be,howToPlayMarkdown:ze,loading:Fe,error:ve}=qo(V,{category:we,jurisdiction:x,sport:ke},{skip:Y}),{propositions:We,loading:Te,error:Ae}=Xo(V,{category:we,sport:Se,event_id:ye},{skip:Y}),{sports:Re,loading:Le}=Qo(V,{skip:Y}),{createEntry:Me,loading:Pe,error:He}=_o(V),{preview:Oe}=or(V),Ie=l(()=>mn((Y?p:Be)??[],{category:we,sport:ke??Ce,sportBaseKey:F}),[Y,p,Be,we,ke,Ce,F]),Ee=O??ze??null,{maxPayouts:je,refetchGame:Ye}=$o(V,Ie??[],{skip:Y,betAmount:20}),Ve=Y?b??ir:je,Ue=Y?y:We,Ze=S?(Ue??[]).filter(e=>e.sport===S):Ue,Ke=l(()=>en(Ze??[]),[Ze]),qe=l(()=>we||(1===Ke.length?Ke[0]:void 0),[we,Ke]),Xe=l(()=>{const e=Ze??[];return qe?fn(e,{category:qe,sportBaseKey:F}):e},[Ze,qe,F]),Qe=l(()=>Ce?fn(Xe,{sport:Ce,sportBaseKey:F}):Xe,[Xe,Ce,F]),Je=l(()=>({category:qe,sport:Ce,sportBaseKey:F}),[qe,Ce,F]),$e=l(()=>{const e=(Ie??[]).filter(e=>e.active);if(!qe&&Ke.length>1)return[];const t=qe?mn(e,Je):e;return qe||Ce?function(e,t,n){return n?.category||n?.sport?e.filter(e=>yn(e,t,n)):e}(t,Qe,Je):t},[Ie,Qe,Je,qe,Ce,Ke.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:rt,goToSportSelection:it,goToConfirmation:lt,goToSuccess:at,goBack:ct,reset:st,toggleSelection:dt}=er(k),ht=e.useCallback(()=>{be.current=!0,me(void 0),st(),P?.()},[st,P]),ut=!!ye,ft=ut?z:void 0,gt=!Y&&(et?Fe||Te||Le:Fe),pt=Y?null:et?ve||Ae:ve,yt=l(()=>et?bn(Qe,et,F):Qe,[et,Qe,F]),mt=l(()=>et?yt:Xe,[et,yt,Xe]),bt=l(()=>fn(et?yt:Xe,{category:qe}),[et,yt,Xe,qe]),wt=l(()=>{const e=new Set(bt.map(e=>e.sport).filter(Boolean));return Re.filter(t=>e.has(t.key))},[Re,bt]),xt=l(()=>fn(yt,{category:qe,sport:ue}),[yt,qe,ue]),kt=l(()=>{if(!et||!qn(et))return[];const{min:e}=on(et,ne),t=ne??e;return Qn(xt).filter(e=>e.propositionCount>=t)},[et,ne,xt]),St=l(()=>qn(et)?to(xt,ge):xt,[et,xt,ge]),Ct=Object.keys(tt).map(Number),Bt=Ct.length,zt=l(()=>xt.filter(e=>Ct.includes(e.id)),[xt,Ct]);r(()=>{w||de||1===Ke.length&&he(Ke[0])},[w,de,Ke]),r(()=>{if(!et)return;const e=yt,t=new Set(e.map(Jt));let n=de;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==de&&he(n));const o=n?e.filter(e=>Jt(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Xt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=et.allowed_sports;fe(e=>e&&r.has(e)?e:1===i?.length&&r.has(i[0])?i[0]:i&&i.length>1?e&&i.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[et?.id,yt,de]),r(()=>{et&&qe&&(gn(et,qe)||rt())},[et,qe,rt]),r(()=>{et&&(yn(et,Qe,{category:qe,sport:ue,sportBaseKey:F})||rt())},[et,qe,ue,F,Qe,rt]),r(()=>{if(et){if(X(0),se.current){const{count:e}=se.current;return se.current=null,oe(e),void Z(e)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=ne;null!=e&&et.allowed_propositions.includes(e)?Z(e):(oe(void 0),Z(0))}else oe(void 0),Z(et.num_propositions||et.max_propositions||0)}},[et]);const Ft=(e,t,n)=>{const o=(Ve[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};r(()=>{if("sport"!==_e&&"confirm"!==_e||!et||Y)return;const e=qn(et)&&ge?St.length:Number.MAX_SAFE_INTEGER;let t;if(et.allowed_propositions&&et.allowed_propositions.length>0){const n=et.allowed_propositions?[...et.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=on(et),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ft(et.id,o,20);te(n)},[_e,et,ne,ge,St.length,Y,Ve]),r(()=>{if("confirm"!==_e||!et)return;const e=Ct.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ft(et.id,r,q);_(n),e!==K.current?(K.current=e,Z(e)):(U>e||U<=0&&e>0)&&Z(e);const o=q>0?q:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await Oe(et.id,{actual:U,predicted:U,total:e,bet_amount:o});if(t)return;J(n.winning_counts)}catch{t||J([])}})(),()=>{t=!0}},[_e,et,Ct.length,U,q,Oe,Ve]);const vt=l(()=>{return t=re,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,re]),Wt=!qn(et)||no(zt,ge),Tt=et?on(et,void 0,vt):null,At=!(!et||!Wt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=ne&&Bt===ne&&nn(Bt,Tt?.min,Tt?.max):nn(Bt,Tt?.min,Tt?.max)),Rt=et?.min_bet??0,Lt=Math.max(Rt,.01),Dt=null==le||q<=le,Mt=!Pe&&q>=Lt&&At&&Dt,Pt=e=>{oe(e),Z(e);for(const t of Object.keys(tt))dt(Number(t),tt[Number(t)])},Ht=e=>{oe(e),Z(e)},Ot=e=>{pe(qn(e)?B??null:null),ot(e)},It=e=>{if(e!==ge){for(const e of Object.keys(tt)){const t=Number(e);dt(t,tt[t])}pe(e)}},Et=(e,t)=>{se.current={count:t},ot(e),Ye(e.id);const n=e.allowed_sports??[];let o=null;ue&&n.some(e=>dn(ue,e,F))?o=ue:1===n.length&&(o=n[0]),fe(o);for(const a of Object.keys(tt)){const e=Number(a);dt(e,tt[e])}let r=fn(bn(Ze??[],e,F),{category:qe,sport:o,sportBaseKey:F});const i=Math.max(0,Math.min(t,r.length)),l=[...r].sort(()=>Math.random()-.5).slice(0,i);for(const a of l)dt(a.id,Math.random()<.5?"yes":"no");lt()},jt=async()=>{if(et&&At){if(Y){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,pending:!0,expected_correct:U,bet_amount:q};return A?.(e),at(e),void ce()}try{R&&await R(q);const e=await Me({game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,stake:q,rule_id:vt?.id??null});A?.(e),at(e),ce()}catch(e){}}},Nt=n(e=>I?.[e]??wt.find(t=>t.key===e)?.label??an(e,void 0,F),[I,wt,F]),Gt=n(e=>cn(e,E),[E]),Yt=l(()=>({theme:j,bodyFont:N,headingFont:G,games:$e,propositions:St,propositionsForCategoryPicker:mt,propositionsForSportPicker:bt,sportSummaries:wt,loading:gt,error:pt,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Ct,selectedPropositions:zt,selectionValid:At,selectedRuleId:re,setSelectedRuleId:ie,selectedRule:vt,answeredCount:Bt,betAmount:q,setBetAmount:X,expectedCorrect:U,setExpectedCorrect:Z,selectedPropositionCount:ne,handlePropositionCountChange:Pt,upgradePropositionCount:Ht,winningCounts:Q,payouts:$,overloadPayouts:ee,submitting:Pe,submitError:He,canSubmit:Mt,gamePrice:Rt,userBalance:le,hasSufficientBalance:Dt,refreshUserBalance:ce,handleSubmit:jt,selectGame:Ot,goToSportSelection:it,goToConfirmation:lt,goBack:ct,reset:st,clearSelectedGame:rt,toggleSelection:dt,quickPickGame:Et,selectedCategory:de,setSelectedCategory:he,selectedSport:ue,setSelectedSport:fe,selectedEventId:ge,sameGameMultiEvents:kt,selectSameGameMultiEvent:It,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:v,renderTeamLogo:T,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:F,gameCategory:w,eventFilterActive:ut,eventFilterLabel:ft,clearEventFilter:ht,screenSize:H,displaySportName:Nt,displayCategoryName:Gt,maxPayouts:Ve??{},howToPlayMarkdown:Ee,onEntryPlaced:A,onCancel:L,onShare:D,onRecharge:M,demoEntries:m,demoGames:p,demoPropositions:y}),[j,N,G,$e,St,mt,bt,wt,gt,pt,_e,et,tt,nt,Ct,zt,At,Bt,q,U,ne,re,vt,Q,$,ee,Pe,He,Mt,Rt,t,o,d,le,i,s,v,T,S,C,B,F,w,H,ut,ft,ht,de,ue,ge,kt,Ve,Ee,A,L,D,M,P,m,p,y,Pt,Nt,Gt]);/* @__PURE__ */
96
- return W(rr.Provider,{value:Yt,children:u})}function cr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(rr),d=c??s?.theme??me,h=Ee(d),u=d.colors,f=i??ie(d),g=l??le(d),p="sm"===r,y=p?h.space.xs:h.space.sm,m=p?6:8,b=p?h.fontSize.sm:h.fontSize.md,w=p?8.5:10,x=a(0);/* @__PURE__ */
97
- return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-x.current<300?(x.current=0,t()):x.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[sr.container,{borderColor:Me(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:sr.topRow,children:[
94
+ /* @__PURE__ */T(z,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[/* @__PURE__ */W(S,{style:{fontFamily:F,fontWeight:"600",fontSize:G?19:21,color:A,letterSpacing:-.19,lineHeight:1.2*(G?19:21),textAlign:"center",paddingHorizontal:4},children:I(e)}),/* @__PURE__ */W(wt,{variant:"icon",panel:ot(e),content:c||"Pick outcomes and land the payout for this game.",theme:b,title:I(e),label:`How to play ${I(e)}`,extra:/* @__PURE__ */W(Io,{tiers:v?g:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>E(e,t):void 0,minBet:D,maxBet:M,colors:w,bodyFont:C,headingFont:F}),colors:w,bodyFont:C,headingFont:F})]}),s?/* @__PURE__ */W(S,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:w.primary,textAlign:"center",fontFamily:C},children:s}):null,c?/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:w.textMuted,textAlign:"center",fontFamily:C},children:c}):null,a.enabled&&/* @__PURE__ */W(z,{style:[Uo.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[Uo.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?Zt(a.amount):a.limit>0?`Up to ${Zt(a.limit)}`:"Jackpot":Zt(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[Uo.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[Uo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Uo.tagText,{color:oe(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[Uo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Uo.tagText,{color:oe(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[Uo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Uo.tagText,{color:oe(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[Uo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[Uo.tagText,{color:oe(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(lt,{theme:b,variant:"primary",size:"sm",onPress:()=>{n(e),p?.()},children:"Select game"})}),H?/* @__PURE__ */W(z,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */W(S,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:w.text,textAlign:"center",fontFamily:C},children:H})}):null]},l)})}),J&&/* @__PURE__ */W(v,{children:[-1,1].map(e=>{const t=e<0?_>0:_<O.length-1;/* @__PURE__ */
95
+ return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>te(_+e),disabled:!t,style:{position:"absolute",top:"38%",left:e<0?2:void 0,right:e>0?2:void 0,width:44,height:44,borderRadius:22,borderWidth:1,borderColor:w.border,backgroundColor:Me(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)})})]}),O.length>0&&Q&&/* @__PURE__ */W(z,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:O.map((e,t)=>/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityLabel:`Go to ${I(e)}`,onPress:()=>te(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(z,{style:{width:t===_?22:7,height:7,borderRadius:999,backgroundColor:t===_?w.primary:Me(w.primary,.25)}})},e.id))}),O.length>0&&Q&&/* @__PURE__ */T(z,{style:{borderTopWidth:1,borderTopColor:w.border,paddingTop:10,marginTop:2},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:w.textMuted,fontFamily:F,marginBottom:8},children:"All games"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:O.map((e,t)=>{const n=wn(e);/* @__PURE__ */
96
+ return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===_,disabled:!n},onPress:()=>(e=>{E(e,Oo(e,m?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===_?w.primary:"transparent",opacity:n?1:.5,width:Z},children:[/* @__PURE__ */W(Go,{iconUrl:qe(e),size:G?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:L}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===_?w.primary:A,fontFamily:F},children:I(e)})]},e.id)})})]})]})}var Uo=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}}),Zo=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 Ko(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[f,g]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),g(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){g(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:f,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function qo(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null);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,g,f]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function Xo(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 Qo(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null);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,g,f]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function Jo(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,f=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!f.current.has(e.id));if(0===n.length)return;for(const e of n)f.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:i,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function $o(e){const[t,n]=c(!1),[o,r]=c(null),[i,l]=c(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return l(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:i}}function _o(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 er(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 tr(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 nr(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 or=t(null),rr={};function ir(){const e=o(or);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function lr({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:f,colorScheme:g,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:F,disableQuickPick:v=!1,renderTeamLogo:T,onEntryPlaced:A,onBeforeSubmit:R,onCancel:L,onShare:D,onRecharge:M,onClearEventFilter:P,screenSize:H="desktop",howToPlayMarkdown:O,sportDisplayNames:I,categoryDisplayNames:E}){const j=De(f,g),N=Ne(j),G=Ge(j),Y=!(!p||!y),V=l(()=>new Zo({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[U,Z]=c(0),K=a(0),[q,X]=c(0),[Q,J]=c([]),[$,_]=c({}),[ee,te]=c({}),[ne,oe]=c(void 0),[re,ie]=c(null),[le,ae]=c(void 0),ce=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&ae(e)}catch(e){}},[h]);r(()=>{h?ce():ae(void 0)},[h,ce]);const se=a(null),[de,he]=c(null),[ue,fe]=c(C??null),[ge,pe]=c(B??null);r(()=>{C&&fe(C)},[C]),r(()=>{pe(B??null)},[B]);const[ye,me]=c(B),be=a(!1);r(()=>{if(!B)return me(void 0),void(be.current=!1);be.current||me(B)},[B]);const we=w??de??void 0,xe=S??C??void 0,ke=sn(ue??xe,F),Se=sn(xe,F)??xe,Ce=ue??void 0,{games:Be,howToPlayMarkdown:ze,loading:Fe,error:ve}=Ko(V,{category:we,jurisdiction:x,sport:ke},{skip:Y}),{propositions:We,loading:Te,error:Ae}=qo(V,{category:we,sport:Se,event_id:ye},{skip:Y}),{sports:Re,loading:Le}=Xo(V,{skip:Y}),{createEntry:Me,loading:Pe,error:He}=$o(V),{preview:Oe}=nr(V),Ie=l(()=>mn((Y?p:Be)??[],{category:we,sport:ke??Ce,sportBaseKey:F}),[Y,p,Be,we,ke,Ce,F]),Ee=O??ze??null,{maxPayouts:je,refetchGame:Ye}=Jo(V,Ie??[],{skip:Y,betAmount:20}),Ve=Y?b??rr:je,Ue=Y?y:We,Ze=S?(Ue??[]).filter(e=>e.sport===S):Ue,Ke=l(()=>en(Ze??[]),[Ze]),qe=l(()=>we||(1===Ke.length?Ke[0]:void 0),[we,Ke]),Xe=l(()=>{const e=Ze??[];return qe?fn(e,{category:qe,sportBaseKey:F}):e},[Ze,qe,F]),Qe=l(()=>Ce?fn(Xe,{sport:Ce,sportBaseKey:F}):Xe,[Xe,Ce,F]),Je=l(()=>({category:qe,sport:Ce,sportBaseKey:F}),[qe,Ce,F]),$e=l(()=>{const e=(Ie??[]).filter(e=>e.active);if(!qe&&Ke.length>1)return[];const t=qe?mn(e,Je):e;return qe||Ce?function(e,t,n){return n?.category||n?.sport?e.filter(e=>yn(e,t,n)):e}(t,Qe,Je):t},[Ie,Qe,Je,qe,Ce,Ke.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:rt,goToSportSelection:it,goToConfirmation:lt,goToSuccess:at,goBack:ct,reset:st,toggleSelection:dt}=_o(k),ht=e.useCallback(()=>{be.current=!0,me(void 0),st(),P?.()},[st,P]),ut=!!ye,ft=ut?z:void 0,gt=!Y&&(et?Fe||Te||Le:Fe),pt=Y?null:et?ve||Ae:ve,yt=l(()=>et?bn(Qe,et,F):Qe,[et,Qe,F]),mt=l(()=>et?yt:Xe,[et,yt,Xe]),bt=l(()=>fn(et?yt:Xe,{category:qe}),[et,yt,Xe,qe]),wt=l(()=>{const e=new Set(bt.map(e=>e.sport).filter(Boolean));return Re.filter(t=>e.has(t.key))},[Re,bt]),xt=l(()=>fn(yt,{category:qe,sport:ue}),[yt,qe,ue]),kt=l(()=>{if(!et||!qn(et))return[];const{min:e}=on(et,ne),t=ne??e;return Qn(xt).filter(e=>e.propositionCount>=t)},[et,ne,xt]),St=l(()=>qn(et)?to(xt,ge):xt,[et,xt,ge]),Ct=Object.keys(tt).map(Number),Bt=Ct.length,zt=l(()=>xt.filter(e=>Ct.includes(e.id)),[xt,Ct]);r(()=>{w||de||1===Ke.length&&he(Ke[0])},[w,de,Ke]),r(()=>{if(!et)return;const e=yt,t=new Set(e.map(Jt));let n=de;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==de&&he(n));const o=n?e.filter(e=>Jt(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Xt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=et.allowed_sports;fe(e=>e&&r.has(e)?e:1===i?.length&&r.has(i[0])?i[0]:i&&i.length>1?e&&i.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[et?.id,yt,de]),r(()=>{et&&qe&&(gn(et,qe)||rt())},[et,qe,rt]),r(()=>{et&&(yn(et,Qe,{category:qe,sport:ue,sportBaseKey:F})||rt())},[et,qe,ue,F,Qe,rt]),r(()=>{if(et){if(X(0),se.current){const{count:e}=se.current;return se.current=null,oe(e),void Z(e)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=ne;null!=e&&et.allowed_propositions.includes(e)?Z(e):(oe(void 0),Z(0))}else oe(void 0),Z(et.num_propositions||et.max_propositions||0)}},[et]);const Ft=(e,t,n)=>{const o=(Ve[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};r(()=>{if("sport"!==_e&&"confirm"!==_e||!et||Y)return;const e=qn(et)&&ge?St.length:Number.MAX_SAFE_INTEGER;let t;if(et.allowed_propositions&&et.allowed_propositions.length>0){const n=et.allowed_propositions?[...et.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=on(et),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ft(et.id,o,20);te(n)},[_e,et,ne,ge,St.length,Y,Ve]),r(()=>{if("confirm"!==_e||!et)return;const e=Ct.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ft(et.id,r,q);_(n),e!==K.current?(K.current=e,Z(e)):(U>e||U<=0&&e>0)&&Z(e);const o=q>0?q:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await Oe(et.id,{actual:U,predicted:U,total:e,bet_amount:o});if(t)return;J(n.winning_counts)}catch{t||J([])}})(),()=>{t=!0}},[_e,et,Ct.length,U,q,Oe,Ve]);const vt=l(()=>{return t=re,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,re]),Wt=!qn(et)||no(zt,ge),Tt=et?on(et,void 0,vt):null,At=!(!et||!Wt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=ne&&Bt===ne&&nn(Bt,Tt?.min,Tt?.max):nn(Bt,Tt?.min,Tt?.max)),Rt=et?.min_bet??0,Lt=Math.max(Rt,.01),Dt=null==le||q<=le,Mt=!Pe&&q>=Lt&&At&&Dt,Pt=e=>{oe(e),Z(e);for(const t of Object.keys(tt))dt(Number(t),tt[Number(t)])},Ht=e=>{oe(e),Z(e)},Ot=e=>{pe(qn(e)?B??null:null),ot(e)},It=e=>{if(e!==ge){for(const e of Object.keys(tt)){const t=Number(e);dt(t,tt[t])}pe(e)}},Et=(e,t)=>{se.current={count:t},ot(e),Ye(e.id);const n=e.allowed_sports??[];let o=null;ue&&n.some(e=>dn(ue,e,F))?o=ue:1===n.length&&(o=n[0]),fe(o);for(const a of Object.keys(tt)){const e=Number(a);dt(e,tt[e])}let r=fn(bn(Ze??[],e,F),{category:qe,sport:o,sportBaseKey:F});const i=Math.max(0,Math.min(t,r.length)),l=[...r].sort(()=>Math.random()-.5).slice(0,i);for(const a of l)dt(a.id,Math.random()<.5?"yes":"no");lt()},jt=async()=>{if(et&&At){if(Y){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,pending:!0,expected_correct:U,bet_amount:q};return A?.(e),at(e),void ce()}try{R&&await R(q);const e=await Me({game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,stake:q,rule_id:vt?.id??null});A?.(e),at(e),ce()}catch(e){}}},Nt=n(e=>I?.[e]??wt.find(t=>t.key===e)?.label??an(e,void 0,F),[I,wt,F]),Gt=n(e=>cn(e,E),[E]),Yt=l(()=>({theme:j,bodyFont:N,headingFont:G,games:$e,propositions:St,propositionsForCategoryPicker:mt,propositionsForSportPicker:bt,sportSummaries:wt,loading:gt,error:pt,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Ct,selectedPropositions:zt,selectionValid:At,selectedRuleId:re,setSelectedRuleId:ie,selectedRule:vt,answeredCount:Bt,betAmount:q,setBetAmount:X,expectedCorrect:U,setExpectedCorrect:Z,selectedPropositionCount:ne,handlePropositionCountChange:Pt,upgradePropositionCount:Ht,winningCounts:Q,payouts:$,overloadPayouts:ee,submitting:Pe,submitError:He,canSubmit:Mt,gamePrice:Rt,userBalance:le,hasSufficientBalance:Dt,refreshUserBalance:ce,handleSubmit:jt,selectGame:Ot,goToSportSelection:it,goToConfirmation:lt,goBack:ct,reset:st,clearSelectedGame:rt,toggleSelection:dt,quickPickGame:Et,selectedCategory:de,setSelectedCategory:he,selectedSport:ue,setSelectedSport:fe,selectedEventId:ge,sameGameMultiEvents:kt,selectSameGameMultiEvent:It,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:v,renderTeamLogo:T,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:F,gameCategory:w,eventFilterActive:ut,eventFilterLabel:ft,clearEventFilter:ht,screenSize:H,displaySportName:Nt,displayCategoryName:Gt,maxPayouts:Ve??{},howToPlayMarkdown:Ee,onEntryPlaced:A,onCancel:L,onShare:D,onRecharge:M,demoEntries:m,demoGames:p,demoPropositions:y}),[j,N,G,$e,St,mt,bt,wt,gt,pt,_e,et,tt,nt,Ct,zt,At,Bt,q,U,ne,re,vt,Q,$,ee,Pe,He,Mt,Rt,t,o,d,le,i,s,v,T,S,C,B,F,w,H,ut,ft,ht,de,ue,ge,kt,Ve,Ee,A,L,D,M,P,m,p,y,Pt,Nt,Gt]);/* @__PURE__ */
97
+ return W(or.Provider,{value:Yt,children:u})}function ar({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(or),d=c??s?.theme??me,h=Ee(d),u=d.colors,f=i??ie(d),g=l??le(d),p="sm"===r,y=p?h.space.xs:h.space.sm,m=p?6:8,b=p?h.fontSize.sm:h.fontSize.md,w=p?8.5:10,x=a(0);/* @__PURE__ */
98
+ return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-x.current<300?(x.current=0,t()):x.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[cr.container,{borderColor:Me(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:cr.topRow,children:[
98
99
  /* @__PURE__ */T(A,{style:k.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[
99
100
  /* @__PURE__ */W(O,{points:"0,0 53,0 47,100 0,100",fill:f}),
100
101
  /* @__PURE__ */W(O,{points:"53,0 100,0 100,100 47,100",fill:g}),
101
102
  /* @__PURE__ */W(M,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),
102
- /* @__PURE__ */W(z,{style:[sr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[sr.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
103
- /* @__PURE__ */W(z,{style:[sr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[sr.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[sr.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[sr.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ne(d)}],numberOfLines:1,children:n})})]})}var sr=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}}),dr={today:"Today",weekend:"This weekend",next7:"Next 7 days"},hr=["today","weekend","next7"];function ur(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function fr(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:ur(n,1)};case"weekend":{const e=n.getDay(),t=ur(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:ur(t,2)}}case"next7":return{start:n,end:ur(n,7)}}}(t,n);return o>=r&&o<i}function gr(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 pr=12;function yr({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
104
- return T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,ie(e)),children:/* @__PURE__ */W(S,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */W(B,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,le(e)),children:/* @__PURE__ */W(S,{style:a("no"===t),children:"No"})})]})}function mr({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__ */
105
- return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function br({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=F(),l=i>=640,[a,c=""]=e.split(" vs "),s=c.length>0,d="md"===r&&l?16:14;if(!s)/* @__PURE__ */return W(S,{style:{color:n,fontSize:d,fontWeight:"600"},children:e});const h=e=>/* @__PURE__ */T(z,{style:Sr.teamLogoRowWrap,children:[t?.(e),/* @__PURE__ */W(S,{style:{color:n,fontSize:d,fontWeight:"600",flexShrink:1},children:e})]}),u=/* @__PURE__ */W(S,{style:{color:o,fontSize:12,flexShrink:0},children:"vs"});/* @__PURE__ */
106
- return T(z,l?{style:Sr.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:Sr.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function wr({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:Me(t.primary,.14),borderWidth:1,borderColor:Me(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??Me(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 xr({prop:t,colors:n,size:o="sm",componentById:r}){const{width:i}=F(),l=i>=640,a=Ht(t,r),s=t.description??t.proposition??"",d="md"===o?l?16:14:l?14:12,h="md"===o?"500":"400",u=n.textMuted??n.textAltMuted??n.text,[f,g]=c(!1);if(!a)/* @__PURE__ */return W(S,{style:{color:n.text,fontSize:d,fontWeight:h,flex:1},children:s});const{operator:p,legs:y}=a;return y.some(e=>e.eventLabel)?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:y.map((e,t)=>/* @__PURE__ */T(z,{style:{minWidth:0},children:[t>0&&/* @__PURE__ */W(z,{style:{marginBottom:4},children:/* @__PURE__ */W(wr,{label:p,colors:n,onOpenChange:g})}),e.eventLabel&&/* @__PURE__ */W(S,{style:{color:u,fontSize:l?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),
107
- /* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:e.text})]},t))}):/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:y.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(wr,{label:p,colors:n,onOpenChange:g}),/* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:t.text})]},o))})})}function kr({game:t,propositions:n,selections:i,onToggleSelection:s,onNext:d,onBack:h,loading:u,error:f,theme:g,colorScheme:p,hideActions:y=!1,initialSport:m,renderTeamLogo:b,disableQuickPick:w=!1,selectedPropositionCount:x,onPropositionCountChange:k,gameCategory:R,headerExtra:L}){const D=o(rr),M=D?.sportBaseKey,P=function(e,t){const[n,o]=c([]),i=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(Dt(n))for(const e of Mt(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(l(()=>D?.apiUrl?new Ko({apiUrl:D.apiUrl,apiKey:D.apiKey,fetchImpl:D.fetchImpl,getAuthHeaders:D.getAuthHeaders}):null,[D?.apiUrl,D?.apiKey,D?.fetchImpl,D?.getAuthHeaders]),n),O=De(g,p),I=O.colors,E=he(O),j=fe(O),N=I.matchupHeader??(t.color?Me(t.color,.14):ue(O)),G=I.textAlt??I.text;Ge(O);const Y=Ne(O);ne(O);const{width:V}=F(),U=V>=640,Z=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(O),K=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:q,max:X}=on(t,x),Q=q,J=X,[$,_]=e.useState(()=>new Set(Object.keys(Sn(n,R,M))));e.useEffect(()=>{const e=Sn(n,R,M),t=Object.keys(e);t.length>0&&_(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const ee=Q>0&&Q===J,te=Q||1,oe=J||n.length,re=J||Q||n.length,[ie,le]=e.useState(re),ae=Object.keys(i).length,ce=J>0&&ae>=J,se=K?null!=x&&ae===x:nn(ae,t.min_propositions,t.max_propositions);t.min_bet,J>0?Math.max(2,2*J):Math.max(2,2*ae);const de=e.useRef(ae),pe=K?null!=x&&ae===x:J>0&&ae===J;r(()=>{pe&&ae>de.current&&d?.(),de.current=ae},[ae,pe]);const ye=(e,t)=>{!(e in i)&&ce||s(e,t)};r(()=>{const e=J||n.length,t=Q||1;le(n=>ee?J:Math.max(t,Math.min(n,e)))},[n.length,Q,J,ee]);const me=l(()=>/* @__PURE__ */new Date,[]),be=l(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of hr){let e=0,i=0;for(const o of n)if(fr(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:dr[r]})}return o}(n,me),[n,me]),[we,xe]=c(null);r(()=>{we&&!be.some(e=>e.id===we)&&xe(null)},[be,we]);const ke=l(()=>function(e,t,n){return t?e.filter(e=>fr(e.commence_time,t,n)):e.slice()}(n,we,me),[n,we,me]),Se=l(()=>Sn(ke,R,M),[ke,R,M]),Ce=l(()=>{const e=/* @__PURE__ */new Set;for(const t of ke){const n=At(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ke]),[Be,ze]=c(null),[Fe,ve]=c(!1);r(()=>{Be&&!Ce.includes(Be)&&ze(null)},[Ce,Be]);const We=l(()=>{if(!Be)return Se;const e={};for(const[t,n]of Object.entries(Se)){const o=n.filter(e=>At(e)===Be);o.length>0&&(e[t]=o)}return e},[Se,Be]),Te=Object.keys(We);if(u)/* @__PURE__ */return W(Nn,{colors:ge(O)});if(f)/* @__PURE__ */return W(z,{style:Sr.centered,children:/* @__PURE__ */W(S,{style:{color:I.error},children:f})});const Ae=!w&&n.length>0,Re=be.length>0||Ce.length>1,Le=(null!=we?1:0)+(null!=Be?1:0);/* @__PURE__ */
108
- return T(z,{style:{gap:U?24:16,paddingBottom:64},children:[Re||L?/* @__PURE__ */T(z,{style:Sr.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:Sr.filterToggleRow,children:Re?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(B,{onPress:()=>ve(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[Sr.filterToggle,{borderColor:Le>0?I.primary:I.border,backgroundColor:Le>0?I.primary:I.background??"#fff"}],children:[
103
+ /* @__PURE__ */W(z,{style:[cr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[cr.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
104
+ /* @__PURE__ */W(z,{style:[cr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[cr.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[cr.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[cr.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ne(d)}],numberOfLines:1,children:n})})]})}var cr=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}}),sr={today:"Today",weekend:"This weekend",next7:"Next 7 days"},dr=["today","weekend","next7"];function hr(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function ur(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:hr(n,1)};case"weekend":{const e=n.getDay(),t=hr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:hr(t,2)}}case"next7":return{start:n,end:hr(n,7)}}}(t,n);return o>=r&&o<i}function fr(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 gr=12;function pr({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
105
+ return T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,ie(e)),children:/* @__PURE__ */W(S,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */W(B,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,le(e)),children:/* @__PURE__ */W(S,{style:a("no"===t),children:"No"})})]})}function yr({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__ */
106
+ return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function mr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=F(),l=i>=640,[a,c=""]=e.split(" vs "),s=c.length>0,d="md"===r&&l?16:14;if(!s)/* @__PURE__ */return W(S,{style:{color:n,fontSize:d,fontWeight:"600"},children:e});const h=e=>/* @__PURE__ */T(z,{style:kr.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__ */
107
+ return T(z,l?{style:kr.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:kr.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function br({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:Me(t.primary,.14),borderWidth:1,borderColor:Me(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??Me(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 wr({prop:t,colors:n,size:o="sm",componentById:r}){const{width:i}=F(),l=i>=640,a=Ht(t,r),s=t.description??t.proposition??"",d="md"===o?l?16:14:l?14:12,h="md"===o?"500":"400",u=n.textMuted??n.textAltMuted??n.text,[f,g]=c(!1);if(!a)/* @__PURE__ */return W(S,{style:{color:n.text,fontSize:d,fontWeight:h,flex:1},children:s});const{operator:p,legs:y}=a;return y.some(e=>e.eventLabel)?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:y.map((e,t)=>/* @__PURE__ */T(z,{style:{minWidth:0},children:[t>0&&/* @__PURE__ */W(z,{style:{marginBottom:4},children:/* @__PURE__ */W(br,{label:p,colors:n,onOpenChange:g})}),e.eventLabel&&/* @__PURE__ */W(S,{style:{color:u,fontSize:l?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),
108
+ /* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:e.text})]},t))}):/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:y.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(br,{label:p,colors:n,onOpenChange:g}),/* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:t.text})]},o))})})}function xr({game:t,propositions:n,selections:i,onToggleSelection:s,onNext:d,onBack:h,loading:u,error:f,theme:g,colorScheme:p,hideActions:y=!1,initialSport:m,renderTeamLogo:b,disableQuickPick:w=!1,selectedPropositionCount:x,onPropositionCountChange:k,gameCategory:R,headerExtra:L}){const D=o(or),M=D?.sportBaseKey,P=function(e,t){const[n,o]=c([]),i=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(Dt(n))for(const e of Mt(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(l(()=>D?.apiUrl?new Zo({apiUrl:D.apiUrl,apiKey:D.apiKey,fetchImpl:D.fetchImpl,getAuthHeaders:D.getAuthHeaders}):null,[D?.apiUrl,D?.apiKey,D?.fetchImpl,D?.getAuthHeaders]),n),O=De(g,p),I=O.colors,E=he(O),j=fe(O),N=I.matchupHeader??(t.color?Me(t.color,.14):ue(O)),G=I.textAlt??I.text;Ge(O);const Y=Ne(O);ne(O);const{width:V}=F(),U=V>=640,Z=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(O),K=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:q,max:X}=on(t,x),Q=q,J=X,[$,_]=e.useState(()=>new Set(Object.keys(Sn(n,R,M))));e.useEffect(()=>{const e=Sn(n,R,M),t=Object.keys(e);t.length>0&&_(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const ee=Q>0&&Q===J,te=Q||1,oe=J||n.length,re=J||Q||n.length,[ie,le]=e.useState(re),ae=Object.keys(i).length,ce=J>0&&ae>=J,se=K?null!=x&&ae===x:nn(ae,t.min_propositions,t.max_propositions);t.min_bet,J>0?Math.max(2,2*J):Math.max(2,2*ae);const de=e.useRef(ae),pe=K?null!=x&&ae===x:J>0&&ae===J;r(()=>{pe&&ae>de.current&&d?.(),de.current=ae},[ae,pe]);const ye=(e,t)=>{!(e in i)&&ce||s(e,t)};r(()=>{const e=J||n.length,t=Q||1;le(n=>ee?J:Math.max(t,Math.min(n,e)))},[n.length,Q,J,ee]);const me=l(()=>/* @__PURE__ */new Date,[]),be=l(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of dr){let e=0,i=0;for(const o of n)if(ur(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:sr[r]})}return o}(n,me),[n,me]),[we,xe]=c(null);r(()=>{we&&!be.some(e=>e.id===we)&&xe(null)},[be,we]);const ke=l(()=>function(e,t,n){return t?e.filter(e=>ur(e.commence_time,t,n)):e.slice()}(n,we,me),[n,we,me]),Se=l(()=>Sn(ke,R,M),[ke,R,M]),Ce=l(()=>{const e=/* @__PURE__ */new Set;for(const t of ke){const n=At(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ke]),[Be,ze]=c(null),[Fe,ve]=c(!1);r(()=>{Be&&!Ce.includes(Be)&&ze(null)},[Ce,Be]);const We=l(()=>{if(!Be)return Se;const e={};for(const[t,n]of Object.entries(Se)){const o=n.filter(e=>At(e)===Be);o.length>0&&(e[t]=o)}return e},[Se,Be]),Te=Object.keys(We);if(u)/* @__PURE__ */return W(Nn,{colors:ge(O)});if(f)/* @__PURE__ */return W(z,{style:kr.centered,children:/* @__PURE__ */W(S,{style:{color:I.error},children:f})});const Ae=!w&&n.length>0,Re=be.length>0||Ce.length>1,Le=(null!=we?1:0)+(null!=Be?1:0);/* @__PURE__ */
109
+ return T(z,{style:{gap:U?24:16,paddingBottom:64},children:[Re||L?/* @__PURE__ */T(z,{style:kr.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:kr.filterToggleRow,children:Re?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(B,{onPress:()=>ve(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[kr.filterToggle,{borderColor:Le>0?I.primary:I.border,backgroundColor:Le>0?I.primary:I.background??"#fff"}],children:[
109
110
  /* @__PURE__ */W(Bt,{size:13,color:Le>0?I.primaryText:I.text}),
110
111
  /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:Le>0?I.primaryText:I.text},children:"Filter"}),Le>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:I.primaryText},children:["· ",Le]}),
111
- /* @__PURE__ */W(z,{style:{transform:[{rotate:Fe?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(St,{size:13,color:Le>0?I.primaryText:I.text})})]}),Le>0&&/* @__PURE__ */W(B,{onPress:()=>{xe(null),ze(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:I.textMuted},children:"Clear"})})]}):null}),L]}):null,Fe&&Re&&/* @__PURE__ */T(z,{style:{gap:10},children:[be.length>0&&/* @__PURE__ */W(Wt,{label:"When",options:[{value:null,label:"All dates"},...be.map(e=>({value:e.id,label:e.label}))],value:we,onChange:e=>xe(e),theme:O,bodyFont:Y}),Ce.length>1&&/* @__PURE__ */W(Wt,{label:"Market",options:[{value:null,label:"All markets"},...Ce.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Be,onChange:ze,theme:O,bodyFont:Y})]}),Ae&&/* @__PURE__ */W(z,{style:[Sr.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[Sr.quickPickRow,{gap:U?8:6}],children:[!ee&&/* @__PURE__ */T(z,{style:Sr.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ie),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||le(Math.max(te,Math.min(oe,t)))},style:[Sr.quickPickInput,{width:U?56:40,paddingHorizontal:U?8:4,paddingVertical:U?6:4,fontSize:U?14:12,color:G,backgroundColor:I.backgroundAlt,borderColor:I.border}]}),/* @__PURE__ */T(S,{style:{color:I.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(cr,{onPress:()=>{const e=ee?J:ie;for(const n of Object.keys(i)){const e=Number(n);s(e,i[e])}const{yesPicks:t,noPicks:o}=zn(n,e);for(const n of t)s(n.id,"yes");for(const n of o)s(n.id,"no");d?.()}})]})}),n.length>0&&/* @__PURE__ */W(z,{style:Sr.matchupList,children:Te.every(e=>1===We[e].length)?/* @__PURE__ */W(z,{style:[Sr.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:Te.map((e,t)=>{const n=We[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ce&&!l,c=0===t,s=t===Te.length-1;/* @__PURE__ */
112
- return T(z,{style:{borderTopColor:I.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:U?12:10,backgroundColor:N,borderTopLeftRadius:c?pr:0,borderTopRightRadius:c?pr:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(br,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G})}),n.commence_time&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:11,opacity:.7,marginTop:2},children:Kt(n.commence_time)})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopWidth:1,borderTopColor:I.border,borderBottomLeftRadius:s?pr:0,borderBottomRightRadius:s?pr:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[gr(n,b,e),/* @__PURE__ */W(xr,{prop:n,colors:I,componentById:P})]}),/* @__PURE__ */W(yr,{theme:O,value:o?"yes":r?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:a})]})]},n.id)})}):Te.map(e=>{const t=We[e],n=$.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
113
- return T(z,{style:[Sr.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,_(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[Sr.matchupHeader,{backgroundColor:N,borderTopLeftRadius:pr,borderTopRightRadius:pr,borderBottomLeftRadius:n?0:pr,borderBottomRightRadius:n?0:pr}],children:[/* @__PURE__ */T(z,{style:Sr.matchupHeaderLeft,children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:n?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:I.textAltMuted??I.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:Sr.matchupTeamWrapper,children:[/* @__PURE__ */W(br,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G,size:"md"}),r&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:Kt(r)})]})]}),/* @__PURE__ */W(z,{style:Sr.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[Sr.answeredBadge,{backgroundColor:I.successBg}],children:/* @__PURE__ */T(S,{style:{color:I.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(v,{children:t.map((n,o)=>{const r="yes"===i[n.id],l="no"===i[n.id],a=n.id in i,c=ce&&!a,s=o===t.length-1;/* @__PURE__ */
114
- return W(z,{style:{paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopColor:I.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?pr:0,borderBottomRightRadius:s?pr:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:U?16:8,rowGap:U?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[gr(n,b,e),/* @__PURE__ */W(xr,{prop:n,colors:I,size:"md",componentById:P})]}),/* @__PURE__ */W(yr,{theme:O,value:r?"yes":l?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */W(z,{style:Sr.centered,children:/* @__PURE__ */W(S,{style:{color:I.textMuted},children:"No propositions available at this time"})}),!y&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:I.border,backgroundColor:E,marginHorizontal:U?-24:-16,paddingHorizontal:U?24:16,paddingVertical:U?16:12},children:[/* @__PURE__ */W(mr,{theme:O,variant:"secondary",onPress:h,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:U?12:8},children:/* @__PURE__ */W(mr,{theme:O,variant:"primary",disabled:!se,onPress:d,children:"Wager"})})]})]})}var Sr=k.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},filterHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},filterToggleRow:{flexDirection:"row",alignItems:"center",gap:8},filterToggle:{flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},topBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},quickPickRow:{flexDirection:"row",alignItems:"center",flexShrink:0},quickPickCountRow:{flexDirection:"row",alignItems:"center",gap:4},quickPickInput:{borderRadius:8,borderWidth:2,fontWeight:"600",textAlign:"center"},matchupList:{gap:16},matchupCard:{borderRadius:pr,borderWidth:1,overflow:"visible"},matchupHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingVertical:14},matchupHeaderLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},matchupTeamWrapper:{flex:1,minWidth:0},matchupTeamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},matchupTeamsStacked:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch"},teamLogoRowWrap:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1,minWidth:0},matchupHeaderRight:{flexDirection:"row",alignItems:"center",gap:8,marginLeft:8,flexShrink:0},answeredBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:999}});function Cr({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
115
- return T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,ie(e)),children:/* @__PURE__ */W(S,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */W(B,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,le(e)),children:/* @__PURE__ */W(S,{style:a("no"===t),children:"No"})})]})}function Br({theme:e,value:t}){/* @__PURE__ */
116
- return W(z,{style:{paddingVertical:2,paddingHorizontal:8,borderRadius:8,backgroundColor:"yes"===t?ie(e):le(e),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function zr({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__ */
117
- return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function Fr({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,allowAnswerToggle:d=!0,gameName:h,potentialPayout:u,defaultExpanded:f=!1,addMorePicks:g}){const p=De(i,l),y=p.colors,m=he(p),b=Ge(p),w=ne(p),x=y.textAlt??y.text,{width:k}=F(),C=k>=640,v=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(p),[R,L]=c(null),[D,M]=c(f),P=e.filter(e=>e.id in t),O=P.length,I=Cn(P),E=y.matchupHeader??ue(p),j=fe(p),N=C?16:12;/* @__PURE__ */
112
+ /* @__PURE__ */W(z,{style:{transform:[{rotate:Fe?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(St,{size:13,color:Le>0?I.primaryText:I.text})})]}),Le>0&&/* @__PURE__ */W(B,{onPress:()=>{xe(null),ze(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:I.textMuted},children:"Clear"})})]}):null}),L]}):null,Fe&&Re&&/* @__PURE__ */T(z,{style:{gap:10},children:[be.length>0&&/* @__PURE__ */W(Wt,{label:"When",options:[{value:null,label:"All dates"},...be.map(e=>({value:e.id,label:e.label}))],value:we,onChange:e=>xe(e),theme:O,bodyFont:Y}),Ce.length>1&&/* @__PURE__ */W(Wt,{label:"Market",options:[{value:null,label:"All markets"},...Ce.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Be,onChange:ze,theme:O,bodyFont:Y})]}),Ae&&/* @__PURE__ */W(z,{style:[kr.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[kr.quickPickRow,{gap:U?8:6}],children:[!ee&&/* @__PURE__ */T(z,{style:kr.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ie),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||le(Math.max(te,Math.min(oe,t)))},style:[kr.quickPickInput,{width:U?56:40,paddingHorizontal:U?8:4,paddingVertical:U?6:4,fontSize:U?14:12,color:G,backgroundColor:I.backgroundAlt,borderColor:I.border}]}),/* @__PURE__ */T(S,{style:{color:I.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(ar,{onPress:()=>{const e=ee?J:ie;for(const n of Object.keys(i)){const e=Number(n);s(e,i[e])}const{yesPicks:t,noPicks:o}=zn(n,e);for(const n of t)s(n.id,"yes");for(const n of o)s(n.id,"no");d?.()}})]})}),n.length>0&&/* @__PURE__ */W(z,{style:kr.matchupList,children:Te.every(e=>1===We[e].length)?/* @__PURE__ */W(z,{style:[kr.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:Te.map((e,t)=>{const n=We[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ce&&!l,c=0===t,s=t===Te.length-1;/* @__PURE__ */
113
+ return T(z,{style:{borderTopColor:I.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:U?12:10,backgroundColor:N,borderTopLeftRadius:c?gr:0,borderTopRightRadius:c?gr:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(mr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G})}),n.commence_time&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:11,opacity:.7,marginTop:2},children:Kt(n.commence_time)})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopWidth:1,borderTopColor:I.border,borderBottomLeftRadius:s?gr:0,borderBottomRightRadius:s?gr:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[fr(n,b,e),/* @__PURE__ */W(wr,{prop:n,colors:I,componentById:P})]}),/* @__PURE__ */W(pr,{theme:O,value:o?"yes":r?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:a})]})]},n.id)})}):Te.map(e=>{const t=We[e],n=$.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
114
+ return T(z,{style:[kr.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,_(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[kr.matchupHeader,{backgroundColor:N,borderTopLeftRadius:gr,borderTopRightRadius:gr,borderBottomLeftRadius:n?0:gr,borderBottomRightRadius:n?0:gr}],children:[/* @__PURE__ */T(z,{style:kr.matchupHeaderLeft,children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:n?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:I.textAltMuted??I.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:kr.matchupTeamWrapper,children:[/* @__PURE__ */W(mr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G,size:"md"}),r&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:Kt(r)})]})]}),/* @__PURE__ */W(z,{style:kr.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[kr.answeredBadge,{backgroundColor:I.successBg}],children:/* @__PURE__ */T(S,{style:{color:I.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(v,{children:t.map((n,o)=>{const r="yes"===i[n.id],l="no"===i[n.id],a=n.id in i,c=ce&&!a,s=o===t.length-1;/* @__PURE__ */
115
+ return W(z,{style:{paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopColor:I.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?gr:0,borderBottomRightRadius:s?gr:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:U?16:8,rowGap:U?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[fr(n,b,e),/* @__PURE__ */W(wr,{prop:n,colors:I,size:"md",componentById:P})]}),/* @__PURE__ */W(pr,{theme:O,value:r?"yes":l?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */W(z,{style:kr.centered,children:/* @__PURE__ */W(S,{style:{color:I.textMuted},children:"No propositions available at this time"})}),!y&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:I.border,backgroundColor:E,marginHorizontal:U?-24:-16,paddingHorizontal:U?24:16,paddingVertical:U?16:12},children:[/* @__PURE__ */W(yr,{theme:O,variant:"secondary",onPress:h,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:U?12:8},children:/* @__PURE__ */W(yr,{theme:O,variant:"primary",disabled:!se,onPress:d,children:"Wager"})})]})]})}var kr=k.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},filterHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},filterToggleRow:{flexDirection:"row",alignItems:"center",gap:8},filterToggle:{flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},topBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},quickPickRow:{flexDirection:"row",alignItems:"center",flexShrink:0},quickPickCountRow:{flexDirection:"row",alignItems:"center",gap:4},quickPickInput:{borderRadius:8,borderWidth:2,fontWeight:"600",textAlign:"center"},matchupList:{gap:16},matchupCard:{borderRadius:gr,borderWidth:1,overflow:"visible"},matchupHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingVertical:14},matchupHeaderLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},matchupTeamWrapper:{flex:1,minWidth:0},matchupTeamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},matchupTeamsStacked:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch"},teamLogoRowWrap:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1,minWidth:0},matchupHeaderRight:{flexDirection:"row",alignItems:"center",gap:8,marginLeft:8,flexShrink:0},answeredBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:999}});function Sr({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
116
+ return T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,ie(e)),children:/* @__PURE__ */W(S,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */W(B,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,le(e)),children:/* @__PURE__ */W(S,{style:a("no"===t),children:"No"})})]})}function Cr({theme:e,value:t}){/* @__PURE__ */
117
+ return W(z,{style:{paddingVertical:2,paddingHorizontal:8,borderRadius:8,backgroundColor:"yes"===t?ie(e):le(e),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function Br({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__ */
118
+ return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function zr({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,allowAnswerToggle:d=!0,gameName:h,potentialPayout:u,defaultExpanded:f=!1,addMorePicks:g}){const p=De(i,l),y=p.colors,m=he(p),b=Ge(p),w=ne(p),x=y.textAlt??y.text,{width:k}=F(),C=k>=640,v=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(p),[R,L]=c(null),[D,M]=c(f),P=e.filter(e=>e.id in t),O=P.length,I=Cn(P),E=y.matchupHeader??ue(p),j=fe(p),N=C?16:12;/* @__PURE__ */
118
119
  return T(z,{style:{gap:C?24:16,paddingBottom:64},children:[
119
- /* @__PURE__ */T(z,{style:[vr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:[
120
+ /* @__PURE__ */T(z,{style:[Fr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:[
120
121
  /* @__PURE__ */T(B,{onPress:()=>M(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:D},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:D?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:y.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:C?18:16,fontWeight:"600",color:w,fontFamily:b},children:"Your Selections"}),/* @__PURE__ */W(z,{style:{backgroundColor:y.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */W(S,{style:{color:y.primaryText,fontSize:12,fontWeight:"600"},children:O})})]}),h&&/* @__PURE__ */W(S,{numberOfLines:1,style:{color:y.textMuted,fontSize:14,marginTop:2},children:h})]})]}),null!=u&&u>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */W(S,{style:{color:y.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */W(S,{style:{color:w,fontSize:14,fontWeight:"700"},children:Zt(u)})]})]}),g&&g.remaining>0&&/* @__PURE__ */T(z,{style:{marginTop:N,padding:12,borderRadius:8,borderWidth:1,borderColor:`${y.primary}30`,backgroundColor:`${y.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,color:y.textMuted,fontSize:12},children:[1===g.remaining?"Add ":"Add up to ",
121
122
  /* @__PURE__ */T(S,{style:{color:y.primary,fontWeight:"700"},children:[g.remaining," more pick",1!==g.remaining?"s":""]}),null!=g.potentialPayout&&g.potentialPayout>0&&/* @__PURE__ */T(S,{children:[" ","to win up to"," ",
122
- /* @__PURE__ */W(S,{style:{color:w,fontWeight:"700"},children:Zt(g.potentialPayout)})," ","with ",g.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>g.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:y.buttonPrimary},children:/* @__PURE__ */W(S,{style:{color:y.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),D&&(0===P.length?/* @__PURE__ */W(z,{style:[vr.emptyState,{marginTop:N}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted},children:"No selections made yet"})}):/* @__PURE__ */W(z,{style:{gap:C?12:8,marginTop:N},children:I.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:y.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:E},children:[/* @__PURE__ */W(br,{matchup:e.key,renderTeamLogo:s,altText:x,mutedColor:y.textAltMuted??y.textMuted??x}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[vr.propTime,{color:y.textAltMuted??y.textMuted}],children:Kt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
123
- return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:C?12:8,paddingHorizontal:12,paddingVertical:C?12:10,backgroundColor:j,borderTopWidth:e.key||i>0?1:0,borderTopColor:y.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[gr(o,s,e.key),/* @__PURE__ */W(S,{style:{flex:1,minWidth:0,color:x,fontSize:14,lineHeight:19},children:o.description})]}),/* @__PURE__ */T(z,{style:vr.rightControls,children:[d?/* @__PURE__ */W(Cr,{theme:p,value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(Br,{theme:p,value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...it(()=>L(o.id),()=>L(e=>e===o.id?null:e)),style:[vr.removeButton,{backgroundColor:"transparent"}],children:/* @__PURE__ */W(A,{width:12,height:12,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:R===o.id?y.error:y.textAltMuted??y.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
124
- /* @__PURE__ */W(z,{style:[vr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:/* @__PURE__ */T(z,{style:vr.summaryRow,children:[/* @__PURE__ */W(S,{style:{color:y.textMuted,fontSize:14},children:"Total Selections"}),/* @__PURE__ */W(S,{style:{color:y.text,fontSize:14,fontWeight:"600"},children:P.length})]})}),!a&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:y.border,backgroundColor:y.background,marginHorizontal:C?-24:-16,paddingHorizontal:C?24:16,paddingVertical:C?16:12},children:[/* @__PURE__ */W(zr,{theme:p,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(zr,{theme:p,variant:"primary",disabled:0===P.length,onPress:o,children:"Place bet"})]})]})}var vr=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 Wr({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:f,onBetAmountChange:g,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,showCustomAmount:R=!1,betAmountLocked:L=!1,betAmountLockedNote:D,canSubmit:M,authenticated:P=!0,userBalance:O,onRecharge:I,boostBanner:E}){const j=De(p,y),N=j.colors,G=he(j),Y=Ge(j),V=ne(j),U=oe(j),Z=re(j),K=N.textAlt??N.text,{width:q}=F(),X=q>=640,Q="dark"===j.colorScheme,J=n.length,$=t.min_bet??0,_=Math.max($,.01),ee=t.max_bet??null,te=[5,10,20,50,100,200,500].filter(e=>e>=_&&(null===ee||e<=ee)).slice(0,4),ae={};for(let e=0;e<=J;e++)ae[e]=f*e;const ce=x??ae,se=ce[h]??0,de=rn(t),ge=de.enabled&&h===J,[pe,ye]=e.useState(null),[me,be]=e.useState(!0),[we,xe]=e.useState(!1),ke=c||f<_||!1===M,Se=null!=O&&f>O,Ce=m&&!!l&&P,Be=o?n.filter(e=>e.id in o):n,ze=Cn(Be),Fe=N.matchupHeader??ue(j),ve=fe(j),We=Object.entries(ce).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),Te=1===We.length?We[0].correct:null;e.useEffect(()=>{null!==Te&&h!==Te&&u(Te)},[Te]);const Ae={shadowColor:"#000",shadowOpacity:Q?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
123
+ /* @__PURE__ */W(S,{style:{color:w,fontWeight:"700"},children:Zt(g.potentialPayout)})," ","with ",g.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>g.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:y.buttonPrimary},children:/* @__PURE__ */W(S,{style:{color:y.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),D&&(0===P.length?/* @__PURE__ */W(z,{style:[Fr.emptyState,{marginTop:N}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted},children:"No selections made yet"})}):/* @__PURE__ */W(z,{style:{gap:C?12:8,marginTop:N},children:I.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:y.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:E},children:[/* @__PURE__ */W(mr,{matchup:e.key,renderTeamLogo:s,altText:x,mutedColor:y.textAltMuted??y.textMuted??x}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[Fr.propTime,{color:y.textAltMuted??y.textMuted}],children:Kt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
124
+ return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:C?12:8,paddingHorizontal:12,paddingVertical:C?12:10,backgroundColor:j,borderTopWidth:e.key||i>0?1:0,borderTopColor:y.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[fr(o,s,e.key),/* @__PURE__ */W(S,{style:{flex:1,minWidth:0,color:x,fontSize:14,lineHeight:19},children:o.description})]}),/* @__PURE__ */T(z,{style:Fr.rightControls,children:[d?/* @__PURE__ */W(Sr,{theme:p,value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(Cr,{theme:p,value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...it(()=>L(o.id),()=>L(e=>e===o.id?null:e)),style:[Fr.removeButton,{backgroundColor:"transparent"}],children:/* @__PURE__ */W(A,{width:12,height:12,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:R===o.id?y.error:y.textAltMuted??y.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
125
+ /* @__PURE__ */W(z,{style:[Fr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:/* @__PURE__ */T(z,{style:Fr.summaryRow,children:[/* @__PURE__ */W(S,{style:{color:y.textMuted,fontSize:14},children:"Total Selections"}),/* @__PURE__ */W(S,{style:{color:y.text,fontSize:14,fontWeight:"600"},children:P.length})]})}),!a&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:y.border,backgroundColor:y.background,marginHorizontal:C?-24:-16,paddingHorizontal:C?24:16,paddingVertical:C?16:12},children:[/* @__PURE__ */W(Br,{theme:p,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(Br,{theme:p,variant:"primary",disabled:0===P.length,onPress:o,children:"Place bet"})]})]})}var Fr=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 vr({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:f,onBetAmountChange:g,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,showCustomAmount:R=!1,betAmountLocked:L=!1,betAmountLockedNote:D,canSubmit:M,authenticated:P=!0,userBalance:O,onRecharge:I,boostBanner:E}){const j=De(p,y),N=j.colors,G=he(j),Y=Ge(j),V=ne(j),U=oe(j),Z=re(j),K=N.textAlt??N.text,{width:q}=F(),X=q>=640,Q="dark"===j.colorScheme,J=n.length,$=t.min_bet??0,_=Math.max($,.01),ee=t.max_bet??null,te=[5,10,20,50,100,200,500].filter(e=>e>=_&&(null===ee||e<=ee)).slice(0,4),ae={};for(let e=0;e<=J;e++)ae[e]=f*e;const ce=x??ae,se=ce[h]??0,de=rn(t),ge=de.enabled&&h===J,[pe,ye]=e.useState(null),[me,be]=e.useState(!0),[we,xe]=e.useState(!1),ke=c||f<_||!1===M,Se=null!=O&&f>O,Ce=m&&!!l&&P,Be=o?n.filter(e=>e.id in o):n,ze=Cn(Be),Fe=N.matchupHeader??ue(j),ve=fe(j),We=Object.entries(ce).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),Te=1===We.length?We[0].correct:null;e.useEffect(()=>{null!==Te&&h!==Te&&u(Te)},[Te]);const Ae={shadowColor:"#000",shadowOpacity:Q?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
125
126
  return T(z,{style:{gap:X?16:12,paddingBottom:64},children:[
126
- /* @__PURE__ */T(z,{style:[Tr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:[
127
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>be(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:me},accessibilityLabel:me?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[/* @__PURE__ */W(z,{style:{transform:[{rotate:me?"180deg":"0deg"}]},children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),/* @__PURE__ */W(S,{style:{fontSize:X?16:14,fontWeight:"600",color:V,fontFamily:Y},children:me?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${N.primary}15`},children:/* @__PURE__ */T(S,{style:{color:N.primary,fontSize:12,fontWeight:"600"},children:[Be.length," pick",1!==Be.length?"s":""]})})]}),!me&&/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),me&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:ze.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:N.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:Fe},children:[/* @__PURE__ */W(br,{matchup:e.key,renderTeamLogo:k,altText:K,mutedColor:N.textAltMuted??N.textMuted??K}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:11,marginTop:2,opacity:.7},children:Kt(e.props[0].commence_time)}):null]}):null,e.props.map((t,n)=>{const l=o?.[t.id],a="yes"===l,c="no"===l,s=!!r;/* @__PURE__ */
128
- return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:ve,borderTopWidth:e.key||n>0?1:0,borderTopColor:N.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[gr(t,k,e.key),/* @__PURE__ */W(S,{style:{color:K,fontSize:X?14:12,flexShrink:1},children:t.description})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[s?/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0,alignItems:"center"},children:[/* @__PURE__ */W(B,{onPress:()=>r(t.id,"yes"),accessibilityState:{selected:a},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:a?ie(j):"transparent",borderWidth:1,borderColor:a?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:a?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"Yes"})}),/* @__PURE__ */W(B,{onPress:()=>r(t.id,"no"),accessibilityState:{selected:c},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:c?le(j):"transparent",borderWidth:1,borderColor:c?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:c?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"No"})})]}):l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,flexShrink:0,backgroundColor:"yes"===l?ie(j):le(j)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===l?"Yes":"No"})}):null,me&&i&&/* @__PURE__ */W(b,{onPress:()=>{l&&r?.(t.id,l),i(t.id)},...it(()=>ye(t.id),()=>ye(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,borderRadius:999,alignItems:"center",justifyContent:"center",backgroundColor:pe===t.id?N.error:"transparent"},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:pe===t.id?"#fff":N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))}),E?/* @__PURE__ */W(z,{style:{marginTop:8},children:E}):null]}),Ce&&/* @__PURE__ */T(z,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:X?14:12,fontWeight:"500"},children:"↓"}),/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:X?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),P?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(z,{style:[Tr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
127
+ /* @__PURE__ */T(z,{style:[Wr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:[
128
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>be(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:me},accessibilityLabel:me?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[/* @__PURE__ */W(z,{style:{transform:[{rotate:me?"180deg":"0deg"}]},children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),/* @__PURE__ */W(S,{style:{fontSize:X?16:14,fontWeight:"600",color:V,fontFamily:Y},children:me?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${N.primary}15`},children:/* @__PURE__ */T(S,{style:{color:N.primary,fontSize:12,fontWeight:"600"},children:[Be.length," pick",1!==Be.length?"s":""]})})]}),!me&&/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),me&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:ze.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:N.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:Fe},children:[/* @__PURE__ */W(mr,{matchup:e.key,renderTeamLogo:k,altText:K,mutedColor:N.textAltMuted??N.textMuted??K}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:11,marginTop:2,opacity:.7},children:Kt(e.props[0].commence_time)}):null]}):null,e.props.map((t,n)=>{const l=o?.[t.id],a="yes"===l,c="no"===l,s=!!r;/* @__PURE__ */
129
+ return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:ve,borderTopWidth:e.key||n>0?1:0,borderTopColor:N.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[fr(t,k,e.key),/* @__PURE__ */W(S,{style:{color:K,fontSize:X?14:12,flexShrink:1},children:t.description})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[s?/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0,alignItems:"center"},children:[/* @__PURE__ */W(B,{onPress:()=>r(t.id,"yes"),accessibilityState:{selected:a},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:a?ie(j):"transparent",borderWidth:1,borderColor:a?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:a?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"Yes"})}),/* @__PURE__ */W(B,{onPress:()=>r(t.id,"no"),accessibilityState:{selected:c},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:c?le(j):"transparent",borderWidth:1,borderColor:c?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:c?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"No"})})]}):l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,flexShrink:0,backgroundColor:"yes"===l?ie(j):le(j)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===l?"Yes":"No"})}):null,me&&i&&/* @__PURE__ */W(b,{onPress:()=>{l&&r?.(t.id,l),i(t.id)},...it(()=>ye(t.id),()=>ye(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,borderRadius:999,alignItems:"center",justifyContent:"center",backgroundColor:pe===t.id?N.error:"transparent"},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:pe===t.id?"#fff":N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))}),E?/* @__PURE__ */W(z,{style:{marginTop:8},children:E}):null]}),Ce&&/* @__PURE__ */T(z,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:X?14:12,fontWeight:"500"},children:"↓"}),/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:X?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),P?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(z,{style:[Wr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
129
130
  /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:X?16:12},children:[/* @__PURE__ */W(S,{style:{fontSize:X?18:16,fontWeight:"600",color:V,fontFamily:Y},children:"How much are you betting?"}),null!=O&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:N.textMuted},children:["Balance: ",/* @__PURE__ */W(S,{style:{color:Se?N.error:N.success},children:Zt(O)})]})]}),Se&&/* @__PURE__ */T(z,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:N.errorBg??`${N.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,fontSize:12,fontWeight:"500",color:N.errorText??N.error},children:["Insufficient balance. Your bet of ",Zt(f)," exceeds your available ",Zt(O),"."]}),I&&/* @__PURE__ */W(B,{onPress:I,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:N.error},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),/* @__PURE__ */T(z,L?{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:N.backgroundAlt,borderWidth:1,borderColor:N.border},children:[/* @__PURE__ */W(S,{style:{fontSize:12,color:N.textMuted,flex:1},children:D??"Stake is set for this ticket."}),/* @__PURE__ */W(S,{style:{fontSize:18,fontWeight:"700",color:V,fontFamily:Y},children:Zt(f)})]}:{style:{gap:16},children:[R&&/* @__PURE__ */T(z,{children:[
130
131
  /* @__PURE__ */W(S,{style:{fontSize:X?14:12,fontWeight:"600",color:U,marginBottom:8},children:"Entry amount"}),
131
132
  /* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(z,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{color:N.textMuted},children:"$"})}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:f?String(f):"",onChangeText:e=>{if(""===e)return void g(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);g(null!==ee?Math.min(n,ee):n)},onFocus:()=>xe(!0),onBlur:()=>xe(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:we?N.borderFocus??N.primary:N.border,color:K,backgroundColor:N.backgroundAlt},placeholderTextColor:N.textMuted})]}),
132
133
  /* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:N.textMuted},children:["Minimum bet: ",Zt(_),null!==ee?` · Maximum: ${Zt(ee)}`:""]}),f>0&&f<_&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:N.error},children:["Bet amount must be at least ",Zt(_)]})]}),/* @__PURE__ */T(z,{children:[(R||f>0)&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[R?/* @__PURE__ */W(S,{style:{fontSize:X?14:12,fontWeight:"600",color:U},children:"Add to bet"}):/* @__PURE__ */W(z,{}),f>0&&/* @__PURE__ */W(B,{onPress:()=>g(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:N.backgroundAlt,borderWidth:1.5,borderColor:N.border},children:/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:te.map(e=>{const t=null!==ee&&f>=ee;/* @__PURE__ */
133
- return W(B,{onPress:()=>{const t=f+e;g(null!==ee?Math.min(t,ee):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:N.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */T(S,{style:{color:K,fontSize:14,fontWeight:"600"},children:["+",Zt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[Tr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(v,{children:[
134
- /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:14},children:"Bet"}),/* @__PURE__ */W(S,{style:{color:Z,fontSize:14,fontWeight:"600"},children:Zt(f)})]}),se>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:N.border},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center"},children:[/* @__PURE__ */W(S,{style:{color:V,fontSize:18,fontWeight:"700"},children:Zt(se)}),ge&&/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),de.enabled&&/* @__PURE__ */T(z,{style:[Tr.jackpotBanner,{backgroundColor:`${N.warning}08`,borderColor:`${N.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:N.warning,fontSize:12,fontWeight:"600"},children:["★ ",de.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:14,fontWeight:"700"},children:de.progressive?de.amount>0?Zt(de.amount):de.limit>0?`Up to ${Zt(de.limit)}`:"Progressive":Zt(de.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
134
+ return W(B,{onPress:()=>{const t=f+e;g(null!==ee?Math.min(t,ee):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:N.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */T(S,{style:{color:K,fontSize:14,fontWeight:"600"},children:["+",Zt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[Wr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(v,{children:[
135
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:14},children:"Bet"}),/* @__PURE__ */W(S,{style:{color:Z,fontSize:14,fontWeight:"600"},children:Zt(f)})]}),se>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:8,justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:N.border},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center"},children:[/* @__PURE__ */W(S,{style:{color:V,fontSize:18,fontWeight:"700"},children:Zt(se)}),ge&&/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),de.enabled&&/* @__PURE__ */T(z,{style:[Wr.jackpotBanner,{backgroundColor:`${N.warning}08`,borderColor:`${N.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:N.warning,fontSize:12,fontWeight:"600"},children:["★ ",de.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:14,fontWeight:"700"},children:de.progressive?de.amount>0?Zt(de.amount):de.limit>0?`Up to ${Zt(de.limit)}`:"Progressive":Zt(de.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
135
136
  /* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:t}),
136
137
  /* @__PURE__ */W(z,{style:{width:1,alignSelf:"stretch",backgroundColor:N.border}}),
137
- /* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:c?/* @__PURE__ */T(z,{style:{alignItems:"center",gap:8},children:[/* @__PURE__ */W(d,{size:"small",color:N.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:Zt(f)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[Tr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
138
+ /* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:c?/* @__PURE__ */T(z,{style:{alignItems:"center",gap:8},children:[/* @__PURE__ */W(d,{size:"small",color:N.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:Zt(f)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[Wr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
138
139
  /* @__PURE__ */W(S,{style:{fontSize:X?18:16,fontWeight:"600",color:V,fontFamily:Y},children:"Log in to place this entry"}),
139
140
  /* @__PURE__ */W(S,{style:{fontSize:X?14:12,color:N.textMuted,marginTop:4,marginBottom:16},children:"Your picks are held. Log in to set your bet and confirm."}),
140
- /* @__PURE__ */W(B,{onPress:l,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:N.buttonPrimary,alignItems:"center"},children:/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),s&&/* @__PURE__ */W(z,{style:[Tr.errorBanner,{backgroundColor:N.errorBg,borderColor:N.error}],children:/* @__PURE__ */W(S,{style:{color:N.errorText,fontSize:14},children:s})}),!m&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:N.border,backgroundColor:N.background,marginHorizontal:X?-24:-16,paddingHorizontal:X?24:16,paddingVertical:X?16:12},children:[/* @__PURE__ */W(lt,{theme:j,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.5:1},children:c?/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(d,{size:"small",color:N.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${Zt(f)})`})})]})]})}var Tr=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}}),Ar="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 Rr({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:a,warning:s,primary:d,textMuted:h,payout:u,onPress:f,accessibilityLabel:g}){const[p,y]=c(!1),m=!!f,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
141
- return T(B,{onPress:f,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!m,selected:i},...it(()=>y(!0),()=>y(!1)),style:[Dr.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&&Dr.circleWinning,m&&p&&Dr.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:Ar,fill:s,stroke:s,strokeWidth:1})})}),
142
- /* @__PURE__ */W(S,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":h},children:e}),u>0&&/* @__PURE__ */W(S,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":h},children:Zt(u)})]})}function Lr({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=me,colorWinning:i,colorNone:l,winningCounts:a,payouts:s}){const d=r.colors,{width:h}=F(),u=h>=640,f=i??d.payoutWinning,g=l??d.payoutNone,p=rn(e),y=u?48:40,[m,b]=c({width:0,height:0});/* @__PURE__ */
143
- return T(z,{style:Dr.container,children:[
144
- /* @__PURE__ */W(S,{style:[Dr.title,{color:d.textMuted}],children:"Payout Visualization"}),p.enabled&&/* @__PURE__ */T(z,{style:[Dr.jackpotBanner,{borderColor:`${d.warning}30`}],onLayout:e=>b({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[m.width>0&&/* @__PURE__ */T(A,{style:k.absoluteFill,width:m.width,height:m.height,pointerEvents:"none",children:[/* @__PURE__ */W(L,{children:/* @__PURE__ */T(P,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[/* @__PURE__ */W(E,{offset:"0%",stopColor:d.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:d.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:0,y:0,width:m.width,height:m.height,fill:"url(#payout-jackpot-grad)"})]}),
145
- /* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:Ar,fill:d.warning})}),
146
- /* @__PURE__ */W(S,{style:[Dr.jackpotText,{color:d.warning}],children:p.progressive?p.amount>0?`Progressive Jackpot: ${Zt(p.amount)}${p.limit>0?` (up to ${Zt(p.limit)})`:""} for a perfect pick!`:p.limit>0?`Progressive Jackpot — up to ${Zt(p.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Zt(p.amount)} for a perfect pick!`})]}),
147
- /* @__PURE__ */W(z,{style:[Dr.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?f:g,b=r===n,w=h?p.progressive?`${r} correct wins progressive jackpot${p.amount>0?` (currently ${Zt(p.amount)})`:""}${p.limit>0?` up to ${Zt(p.limit)}`:""} plus ${Zt(l)}`:`${r} correct wins jackpot ${Zt(p.amount)} plus ${Zt(l)}`:i?`${r} correct wins ${Zt(l)}`:l>0?`${r} correct pays ${Zt(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
148
- return W(Rr,{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)})}),
149
- /* @__PURE__ */T(S,{style:[Dr.expectedText,{color:d.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:Dr.expectedBold,children:[n," correct"]})]})]})}var Dr=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 Mr({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:c=!0,compact:s=!1,onPress:d}){const h=n??l??"#0F4C5C",u=o??h,f=.85*a,g=1.8*f,p=f/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',m=a,w=g-.18*f*2,x=f-.05*f*2,k=/* @__PURE__ */T(v,{children:[
141
+ /* @__PURE__ */W(B,{onPress:l,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:N.buttonPrimary,alignItems:"center"},children:/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),s&&/* @__PURE__ */W(z,{style:[Wr.errorBanner,{backgroundColor:N.errorBg,borderColor:N.error}],children:/* @__PURE__ */W(S,{style:{color:N.errorText,fontSize:14},children:s})}),!m&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:N.border,backgroundColor:N.background,marginHorizontal:X?-24:-16,paddingHorizontal:X?24:16,paddingVertical:X?16:12},children:[/* @__PURE__ */W(lt,{theme:j,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.5:1},children:c?/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(d,{size:"small",color:N.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${Zt(f)})`})})]})]})}var Wr=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}}),Tr="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 Ar({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:a,warning:s,primary:d,textMuted:h,payout:u,onPress:f,accessibilityLabel:g}){const[p,y]=c(!1),m=!!f,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
142
+ return T(B,{onPress:f,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!m,selected:i},...it(()=>y(!0),()=>y(!1)),style:[Lr.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&&Lr.circleWinning,m&&p&&Lr.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:Tr,fill:s,stroke:s,strokeWidth:1})})}),
143
+ /* @__PURE__ */W(S,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":h},children:e}),u>0&&/* @__PURE__ */W(S,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":h},children:Zt(u)})]})}function Rr({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=me,colorWinning:i,colorNone:l,winningCounts:a,payouts:s}){const d=r.colors,{width:h}=F(),u=h>=640,f=i??d.payoutWinning,g=l??d.payoutNone,p=rn(e),y=u?48:40,[m,b]=c({width:0,height:0});/* @__PURE__ */
144
+ return T(z,{style:Lr.container,children:[
145
+ /* @__PURE__ */W(S,{style:[Lr.title,{color:d.textMuted}],children:"Payout Visualization"}),p.enabled&&/* @__PURE__ */T(z,{style:[Lr.jackpotBanner,{borderColor:`${d.warning}30`}],onLayout:e=>b({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[m.width>0&&/* @__PURE__ */T(A,{style:k.absoluteFill,width:m.width,height:m.height,pointerEvents:"none",children:[/* @__PURE__ */W(L,{children:/* @__PURE__ */T(P,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[/* @__PURE__ */W(E,{offset:"0%",stopColor:d.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:d.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:0,y:0,width:m.width,height:m.height,fill:"url(#payout-jackpot-grad)"})]}),
146
+ /* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:Tr,fill:d.warning})}),
147
+ /* @__PURE__ */W(S,{style:[Lr.jackpotText,{color:d.warning}],children:p.progressive?p.amount>0?`Progressive Jackpot: ${Zt(p.amount)}${p.limit>0?` (up to ${Zt(p.limit)})`:""} for a perfect pick!`:p.limit>0?`Progressive Jackpot — up to ${Zt(p.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Zt(p.amount)} for a perfect pick!`})]}),
148
+ /* @__PURE__ */W(z,{style:[Lr.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?f:g,b=r===n,w=h?p.progressive?`${r} correct wins progressive jackpot${p.amount>0?` (currently ${Zt(p.amount)})`:""}${p.limit>0?` up to ${Zt(p.limit)}`:""} plus ${Zt(l)}`:`${r} correct wins jackpot ${Zt(p.amount)} plus ${Zt(l)}`:i?`${r} correct wins ${Zt(l)}`:l>0?`${r} correct pays ${Zt(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
149
+ return W(Ar,{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)})}),
150
+ /* @__PURE__ */T(S,{style:[Lr.expectedText,{color:d.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:Lr.expectedBold,children:[n," correct"]})]})]})}var Lr=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 Dr({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:c=!0,compact:s=!1,onPress:d}){const h=n??l??"#0F4C5C",u=o??h,f=.85*a,g=1.8*f,p=f/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',m=a,w=g-.18*f*2,x=f-.05*f*2,k=/* @__PURE__ */T(v,{children:[
150
151
  /* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontFamily:y,fontSize:a,lineHeight:1.15*a,letterSpacing:-1,color:u,includeFontPadding:!1},children:[/* @__PURE__ */W(S,{style:{fontWeight:"900"},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"300"},children:"NO"})]}),
151
152
  /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:g,height:f,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(Tn,{iconUrl:e,width:w,height:x,iconColor:r,accentColor:i})}),
152
- /* @__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 Pr({color:e,style:t}){/* @__PURE__ */
153
- return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Hr({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
154
- 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(Pr,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Pr,{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(Pr,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Pr,{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(Pr,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Pr,{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(Pr,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Pr,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Pr,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Or({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:f,colorScheme:g,renderTeamLogo:p,filterSport:y}){const m=De(f,g),b=!!(s&&d&&h),w=m.colors,x=Ge(m),[k,C]=c("pending"),[F,v]=c([]),R=l(()=>new Ko({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:L,loading:D,error:M,refetch:P}=Jo(R,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=qo(R,void 0,{skip:b}),{propositions:j,loading:N,error:G}=Xo(R,void 0,{skip:b}),Y=b?s:L,V=b?d:O,U=b?h:j,Z=!b&&(D||I||N),K=b?null:M||E||G,q=l(()=>Y.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[Y]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of q)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of F)e.set(t.id,t);return e},[U,q,F]),J=a(/* @__PURE__ */new Set);r(()=>{if(Z||b)return;const e=[];for(const n of q)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await R.getPropositionsByIds(e);!t&&n.length>0&&v(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[q,Q,Z,b,R]);const $=l(()=>y?q.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):q,[q,y,Q]),_=l(()=>$.filter(e=>Vt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Vt(e.pending)),[$]),te="pending"===k?_:ee;return Z?/* @__PURE__ */W(z,{style:Er.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(Hr,{colors:ge(m)})}):K?/* @__PURE__ */W(z,{style:Er.container,children:/* @__PURE__ */T(z,{style:[Er.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:Er.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:Er.container,children:[
155
- /* @__PURE__ */W(z,{style:[Er.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
156
- return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[Er.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[Er.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[Er.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Er.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:Er.emptyState,children:[
153
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:m,lineHeight:1.15*m,fontWeight:"500",color:u,includeFontPadding:!1,flexShrink:1},children:t}),c&&/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:.3*m,lineHeight:.3*m,fontWeight:"600",color:u,marginLeft:.06*m,includeFontPadding:!1},children:"TM"})]})]});return d?/* @__PURE__ */W(b,{onPress:d,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k}):/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k})}function Mr({color:e,style:t}){/* @__PURE__ */
154
+ return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Pr({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
155
+ return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(Mr,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Mr,{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(Mr,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Mr,{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(Mr,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Mr,{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(Mr,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Mr,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Mr,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Hr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:f,colorScheme:g,renderTeamLogo:p,filterSport:y}){const m=De(f,g),b=!!(s&&d&&h),w=m.colors,x=Ge(m),[k,C]=c("pending"),[F,v]=c([]),R=l(()=>new Zo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:L,loading:D,error:M,refetch:P}=Qo(R,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=Ko(R,void 0,{skip:b}),{propositions:j,loading:N,error:G}=qo(R,void 0,{skip:b}),Y=b?s:L,V=b?d:O,U=b?h:j,Z=!b&&(D||I||N),K=b?null:M||E||G,q=l(()=>Y.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[Y]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of q)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of F)e.set(t.id,t);return e},[U,q,F]),J=a(/* @__PURE__ */new Set);r(()=>{if(Z||b)return;const e=[];for(const n of q)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await R.getPropositionsByIds(e);!t&&n.length>0&&v(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[q,Q,Z,b,R]);const $=l(()=>y?q.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):q,[q,y,Q]),_=l(()=>$.filter(e=>Vt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Vt(e.pending)),[$]),te="pending"===k?_:ee;return Z?/* @__PURE__ */W(z,{style:Ir.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(Pr,{colors:ge(m)})}):K?/* @__PURE__ */W(z,{style:Ir.container,children:/* @__PURE__ */T(z,{style:[Ir.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:Ir.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:Ir.container,children:[
156
+ /* @__PURE__ */W(z,{style:[Ir.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
157
+ return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[Ir.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[Ir.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[Ir.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Ir.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:Ir.emptyState,children:[
157
158
  /* @__PURE__ */W(z,{style:{marginBottom:16},children:/* @__PURE__ */W(A,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"pending"===k?"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z":"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z",stroke:w.textMuted,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),
158
- /* @__PURE__ */W(S,{style:[Er.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
159
- /* @__PURE__ */W(S,{style:[Er.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
160
- /* @__PURE__ */W(z,{style:Er.entryList,children:te.map(e=>/* @__PURE__ */W(Ir,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function Ir({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=he(r),d=Ge(r),h="dark"===r.colorScheme,u=e.proposition_ids??[],f=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),g=u.length,[p,y]=c(!1),m=g>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=f.filter(e=>null!=e.result&&!e.is_voided).length,k=f.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=w(e.id);return null!=t&&t===e.result}).length,C=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),F=Vt(e.pending),R=!F&&Yt(e.winning)>0,L=e.payout_status,D="fulfilled"===L&&R,M=F?"Pending":D?"Won — pay due":"paid_out"===L&&R?"Paid":R?"Won":"Lost",P=F||D?a.warningBg:R?a.successBg:a.errorBg,O=F||D?a.warningText:R?a.successText:a.errorText,I=C&&x>0?`${k}/${g} correct`:g>0?`${g} pick${1!==g?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:Er.cardHeader,children:[/* @__PURE__ */T(z,{style:Er.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(Mr,{iconUrl:qe(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[Er.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:Er.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[Er.metaText,{color:a.textMuted}],children:Kt(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:[Er.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[Er.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:Er.cardHeaderRight,children:[
161
- /* @__PURE__ */T(z,{style:Er.amounts,children:[Yt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[Er.betLabel,{color:a.textMuted}],children:Zt(Yt(e.bet_amount))}),!F&&Yt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[Er.winAmount,{color:a.success}],children:Zt(Yt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",Zt(Yt(e.payout_jackpot))," jackpot"]})]})]}),
162
- /* @__PURE__ */W(z,{style:[Er.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[Er.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__ */
163
- return T(z,{style:[Er.card,{borderColor:a.border,backgroundColor:s,shadowColor:"#000",shadowOpacity:h?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[/* @__PURE__ */W(B,{testID:"entry-card",onPress:()=>{m&&y(e=>!e),o?.({entry:e,game:t,propositions:f})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&g>0&&u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),l=w(t);if(!o)/* @__PURE__ */return T(z,{style:[Er.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:Er.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ie(r):le(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ut(l)})})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,f,g;d?(u="Void",f=`${a.textMuted}20`,g=a.textMuted):s?h?(u="Won",f=a.successBg,g=a.successText):(u="Lost",f=a.errorBg,g=a.errorText):(u="Pending",f=a.warningBg,g=a.warningText);const p=$t(o)?void 0:o.home_team;/* @__PURE__ */
164
- return T(z,{style:[Er.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
165
- /* @__PURE__ */T(z,{style:Er.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:Er.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[Er.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[Er.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[Er.teamName,{color:a.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:Kt(o.commence_time)})]}),
166
- /* @__PURE__ */T(z,{style:Er.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Er.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ie(r):le(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ut(l)})}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
167
- /* @__PURE__ */T(z,{style:Er.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Er.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:f},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:g,textTransform:"uppercase"},children:u})})]})]},t)})]})}var Er=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 jr({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=lr(),{width:c}=F(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const u=n.colors,f=i??("racing"===a?"This race":"This event");/* @__PURE__ */
168
- return T(z,{style:[Nr.container,s&&Nr.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:Nr.textBlock,children:[
169
- /* @__PURE__ */W(S,{style:[Nr.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
170
- /* @__PURE__ */W(S,{style:[Nr.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:f}),
171
- /* @__PURE__ */W(S,{style:[Nr.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...it(()=>h(!0),()=>h(!1)),style:[Nr.button,s&&Nr.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[Nr.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var Nr=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 Gr({onBack:t,title:n="Go back"}){const{theme:o}=lr(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
172
- return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...it(()=>l(!0),()=>l(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:i?-2:0}]},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:i?r.text:r.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Yr({onBack:t,label:n="Games"}){const{theme:o}=lr(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
173
- return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...it(()=>l(!0),()=>l(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:i?-2:0}]},children:[/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:a,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:a},children:n})]})}function Vr({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=lr(),l=i.colors,{width:a}=F(),c=a>=640,[s,d]=e.useState(!1);if(!t&&null==o&&!r)return null;const h=e=>/* @__PURE__ */W(S,{style:{fontSize:c?14:12,flexShrink:1,color:e},children:o});/* @__PURE__ */
174
- return T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[t&&(null!=o?/* @__PURE__ */T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...it(()=>d(!0),()=>d(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:s?-2:0}]},children:[/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:s?l.text:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),h(s?l.text:l.textMuted)]}):/* @__PURE__ */W(Gr,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}var Ur=[1,5,10,20,50,100],Zr=[4,12];function Kr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function qr(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,i=Math.round(Math.pow(1/r,t)),l=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*l*100)/100,multiple:l,oddsOneIn:i}}function Xr(e){if(!Kr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Zr[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Zr[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=Ur.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 Qr=50,Jr=[25,50,75,100],$r=[{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 _r(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function ei(e,t){return Math.round(e*t/50*100)/100}function ti(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:ei(o,t),cumulative:ei(n,t)}))}function ni(e,t){return ei(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function oi(e,t,n){return ei(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function ri(e){if(!_r(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=$r.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??Jr[0],l=e.max_bet??Jr[Jr.length-1],a=Jr.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:Jr,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var ii=.21875,li=[1,5,10,20,50],ai=[4,12];function ci(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function si(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 di(e){if(!ci(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??ai[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??ai[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=li.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function hi(e){return e?.quick_pick_only?"quick_pick":Kr(e)?"game_set":Lo(e)?"pick_your_dividend":_r(e)?"ladder":ci(e)?"mirror":go(e)?"safety_net":qn(e)?"selections":To(e)?"rule_setup":"selections"}function ui(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(qn(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function fi(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||qn(e)||ui(e))}function gi(e){switch(hi(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function pi({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=lr(),c=n.colors,{width:s}=F(),d=s>=640,h=s>=768;/* @__PURE__ */
175
- return T(z,{style:d&&bi.headerWide,children:[/* @__PURE__ */T(z,{style:bi.titleRow,children:[/* @__PURE__ */W(S,{style:[bi.title,d&&bi.titleWide,h&&bi.titleDesktop,{color:ne(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:bi.howToPlayWrap,children:/* @__PURE__ */W(wt,{content:i,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:r,headingFont:o})}):null]}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function yi({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=lr(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[bi.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[bi.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[bi.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function mi({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:r,onPickYourDividend:i,onLadder:l,onMirror:a,onSafetyNet:c,onQuickPick:s,onCancel:d,hideTitle:h,hideActions:u,showPerfectPickSetup:f=!1,showTierFilter:g=!1}){const p=lr(),{theme:y,games:m,loading:b,error:w,selectedGame:x,selectedPropositionCount:k,handlePropositionCountChange:S,maxPayouts:C}=p;y.colors;const B=e.useRef(x);B.current=x;const{width:v}=F(),A=v>=640;/* @__PURE__ */
176
- return T(z,{style:bi.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(pi,{onBack:d,hideActions:u})}),
177
- /* @__PURE__ */W(jr,{}),
178
- /* @__PURE__ */W(z,{style:bi.content,children:/* @__PURE__ */W(Vo,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:g,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===hi(e)&&fi(e)&&!f)return p.goToSportSelection(),void t?.();const s=hi(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 bi=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"}}),wi=3;function xi(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 ki(e,t,o){const[i,s]=c([]),[d,h]=c([]),[u,f]=c([]),[g,p]=c([]),[y,m]=c(null),b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),w=l(()=>e.filter(e=>null!=t[e.id]),[e,t]),x=l(()=>e.map(e=>e.id).join(","),[e]),k=a(null);r(()=>{if(k.current===x)return;k.current=x;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);s(n.map(e=>e.id)),h(xi(n,o).slice(0,3).map(e=>e.id)),f([]),p([]),m(null)},[x,e,t]);const S=l(()=>{const e=new Set(u);return[...xi(i.map(e=>b.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),w).map(e=>e.id),...u.filter(e=>i.includes(e))]},[i,b,w,u]);r(()=>{h(e=>{const t=new Set(i),n=e.filter(e=>t.has(e));if(0===g.length&&!y){const t=S.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,i.length))return n.length===e.length?e:n;const o=[...n];for(const r of S){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[i,S,g,y]);const C=l(()=>d.map(e=>b.get(e)).filter(e=>Boolean(e)),[d,b]),B=n((e,t)=>{m(null),t&&o(e,t),p(n=>[...n,{id:e,answer:t}]),h(t=>t.filter(t=>t!==e)),f(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),s(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[o]),z=n(()=>{const e=g[g.length-1];e&&(e.answer&&o(e.id,e.answer),m({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),p(e=>e.slice(0,-1)),f(t=>t.filter(t=>t!==e.id)),s(t=>[e.id,...t.filter(t=>t!==e.id)]),h(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[g,o]);return{visible:C,canSkip:i.length>1,canUndo:g.length>0,restored:y,resolve:B,undo:z}}var Si=f.bezier(.32,0,.67,0),Ci=f.bezier(.22,1,.36,1),Bi={stiffness:420,damping:34},zi={stiffness:280,damping:28},Fi="#00C853",vi="#E53935";function Wi(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Ti(e,t,n){return n&&-t>Math.abs(e)}function Ai({prop:e,theme:t,depth:i=0,enterFrom:c,canSkip:s=!1,onResolve:d,registerApi:u,onDragStateChange:f,children:g}){const p=o(rr),m=t??p?.theme??me,b=Ge(m),w=m.colors.productYes??Fi,x=m.colors.productNo??vi,C=0===i,B=a(!1),F=a({x:0,y:0}),A=a({x:0,y:0}),R=a(null),L=a(0),D=a(null),M=a(null),P=a(null),H=a(s);H.current=s;const O=a(f);O.current=f;const I=a(new h.ValueXY({x:0,y:0})).current,E=a(new h.Value(0)).current,j=n(()=>{I.setValue({x:F.current.x,y:F.current.y}),E.setValue(Ti(F.current.x,F.current.y,H.current)?1:0)},[E,I]),N=n(()=>{null!=D.current&&(cancelAnimationFrame(D.current),D.current=null),M.current&&(M.current.stop(),M.current=null)},[]),G=n(e=>{N();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=F.current,l=A.current;if(l.x+=(-e.stiffness*i.x-e.damping*l.x)*r,l.y+=(-e.stiffness*i.y-e.damping*l.y)*r,i.x+=l.x*r,i.y+=l.y*r,Math.abs(i.x)<.5&&Math.abs(i.y)<.5&&Math.abs(l.x)<2&&Math.abs(l.y)<2)return i.x=0,i.y=0,l.x=0,l.y=0,j(),void(D.current=null);j(),D.current=requestAnimationFrame(n)};D.current=requestAnimationFrame(n)},[j,N]),Y=n(t=>{if(B.current)return;if("up"===t&&!H.current)return;B.current=!0,N();const n="right"===t?"yes":"left"===t?"no":null,o=Wi(t);F.current={...o},E.setValue("up"===t?1:0),M.current=h.timing(I,{toValue:o,duration:260,easing:Si,useNativeDriver:!1}),M.current.start(),P.current=setTimeout(()=>d(e.id,n),260)},[d,e.id,N,E,I]);r(()=>()=>{P.current&&clearTimeout(P.current),null!=D.current&&cancelAnimationFrame(D.current),M.current?.stop(),R.current&&O.current?.(!1)},[]),r(()=>{if(!c)return N(),F.current={x:0,y:0},A.current={x:0,y:0},void j();const e=Wi(c);F.current={x:e.x,y:e.y},A.current={x:0,y:0},j(),G(zi)},[c,j,G,N]),r(()=>{if(C&&u)return u({fly:Y}),()=>u(null)},[Y,C,u]);const V=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!B.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||H.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{N(),R.current={x:F.current.x,y:F.current.y},A.current={x:0,y:0},L.current=Date.now(),O.current?.(!0)},onPanResponderMove:(e,t)=>{if(B.current||!R.current)return;if(t.numberActiveTouches>1)return;const n=R.current.x+t.dx,o=R.current.y+t.dy,r=e.nativeEvent.timestamp??Date.now(),i=r-L.current;if(i>0){const e=1-Math.exp(-i/40);A.current.x+=((n-F.current.x)/i*1e3-A.current.x)*e,A.current.y+=((o-F.current.y)/i*1e3-A.current.y)*e,L.current=r}F.current.x=n,F.current.y=o,j()},onPanResponderRelease:e=>{if(!R.current)return;if(R.current=null,O.current?.(!1),B.current)return;(e.nativeEvent.timestamp??Date.now())-L.current>90&&(A.current={x:0,y:0});const t=F.current,n=A.current;if(Ti(t.x,t.y,H.current)){if(t.y<-110||n.y<-620)return Y("up")}else{if(t.x>110||n.x>620)return Y("right");if(t.x<-110||n.x<-620)return Y("left")}G(Bi)},onPanResponderTerminate:()=>{R.current=null,A.current={x:0,y:0},O.current?.(!1),B.current||G(Bi)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[Y,j,G,N]),U=I.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),Z=h.subtract(1,E),K=h.multiply(Z,I.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),q=h.multiply(Z,I.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),X=h.multiply(E,I.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),Q=a(new h.Value(i)).current;r(()=>{const e=h.timing(Q,{toValue:i,duration:240,easing:Ci,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,Q]);const J=Q.interpolate({inputRange:[0,3],outputRange:[0,36]}),$=Q.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
159
+ /* @__PURE__ */W(S,{style:[Ir.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
160
+ /* @__PURE__ */W(S,{style:[Ir.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
161
+ /* @__PURE__ */W(z,{style:Ir.entryList,children:te.map(e=>/* @__PURE__ */W(Or,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function Or({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=he(r),d=Ge(r),h="dark"===r.colorScheme,u=e.proposition_ids??[],f=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),g=u.length,[p,y]=c(!1),m=g>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=f.filter(e=>null!=e.result&&!e.is_voided).length,k=f.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=w(e.id);return null!=t&&t===e.result}).length,C=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),F=Vt(e.pending),R=!F&&Yt(e.winning)>0,L=e.payout_status,D="fulfilled"===L&&R,M=F?"Pending":D?"Won — pay due":"paid_out"===L&&R?"Paid":R?"Won":"Lost",P=F||D?a.warningBg:R?a.successBg:a.errorBg,O=F||D?a.warningText:R?a.successText:a.errorText,I=C&&x>0?`${k}/${g} correct`:g>0?`${g} pick${1!==g?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:Ir.cardHeader,children:[/* @__PURE__ */T(z,{style:Ir.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(Dr,{iconUrl:qe(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[Ir.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:Ir.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[Ir.metaText,{color:a.textMuted}],children:Kt(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:[Ir.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[Ir.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:Ir.cardHeaderRight,children:[
162
+ /* @__PURE__ */T(z,{style:Ir.amounts,children:[Yt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[Ir.betLabel,{color:a.textMuted}],children:Zt(Yt(e.bet_amount))}),!F&&Yt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[Ir.winAmount,{color:a.success}],children:Zt(Yt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",Zt(Yt(e.payout_jackpot))," jackpot"]})]})]}),
163
+ /* @__PURE__ */W(z,{style:[Ir.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[Ir.statusText,{color:O}],children:M})}),m&&/* @__PURE__ */W(z,{style:{transform:[{rotate:p?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:a.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});/* @__PURE__ */
164
+ return T(z,{style:[Ir.card,{borderColor:a.border,backgroundColor:s,shadowColor:"#000",shadowOpacity:h?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[/* @__PURE__ */W(B,{testID:"entry-card",onPress:()=>{m&&y(e=>!e),o?.({entry:e,game:t,propositions:f})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&g>0&&u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),l=w(t);if(!o)/* @__PURE__ */return T(z,{style:[Ir.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:Ir.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ie(r):le(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ut(l)})})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,f,g;d?(u="Void",f=`${a.textMuted}20`,g=a.textMuted):s?h?(u="Won",f=a.successBg,g=a.successText):(u="Lost",f=a.errorBg,g=a.errorText):(u="Pending",f=a.warningBg,g=a.warningText);const p=$t(o)?void 0:o.home_team;/* @__PURE__ */
165
+ return T(z,{style:[Ir.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
166
+ /* @__PURE__ */T(z,{style:Ir.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:Ir.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[Ir.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[Ir.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[Ir.teamName,{color:a.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:Kt(o.commence_time)})]}),
167
+ /* @__PURE__ */T(z,{style:Ir.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Ir.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ie(r):le(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ut(l)})}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
168
+ /* @__PURE__ */T(z,{style:Ir.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Ir.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:f},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:g,textTransform:"uppercase"},children:u})})]})]},t)})]})}var Ir=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 Er({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=ir(),{width:c}=F(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const u=n.colors,f=i??("racing"===a?"This race":"This event");/* @__PURE__ */
169
+ return T(z,{style:[jr.container,s&&jr.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:jr.textBlock,children:[
170
+ /* @__PURE__ */W(S,{style:[jr.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
171
+ /* @__PURE__ */W(S,{style:[jr.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:f}),
172
+ /* @__PURE__ */W(S,{style:[jr.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...it(()=>h(!0),()=>h(!1)),style:[jr.button,s&&jr.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[jr.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var jr=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 Nr({onBack:t,title:n="Go back"}){const{theme:o}=ir(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
173
+ return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...it(()=>l(!0),()=>l(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:i?-2:0}]},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:i?r.text:r.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Gr({onBack:t,label:n="Games"}){const{theme:o}=ir(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
174
+ return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...it(()=>l(!0),()=>l(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:i?-2:0}]},children:[/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:a,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:a},children:n})]})}function Yr({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=ir(),l=i.colors,{width:a}=F(),c=a>=640,[s,d]=e.useState(!1);if(!t&&null==o&&!r)return null;const h=e=>/* @__PURE__ */W(S,{style:{fontSize:c?14:12,flexShrink:1,color:e},children:o});/* @__PURE__ */
175
+ return T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[t&&(null!=o?/* @__PURE__ */T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...it(()=>d(!0),()=>d(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:s?-2:0}]},children:[/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:s?l.text:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),h(s?l.text:l.textMuted)]}):/* @__PURE__ */W(Nr,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}var Vr=[1,5,10,20,50,100],Ur=[4,12];function Zr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Kr(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 qr(e){if(!Zr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Ur[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Ur[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=Vr.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 Xr=50,Qr=[25,50,75,100],Jr=[{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 $r(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function _r(e,t){return Math.round(e*t/50*100)/100}function ei(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:_r(o,t),cumulative:_r(n,t)}))}function ti(e,t){return _r(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function ni(e,t,n){return _r(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function oi(e){if(!$r(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Jr.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??Qr[0],l=e.max_bet??Qr[Qr.length-1],a=Qr.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:Qr,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var ri=.21875,ii=[1,5,10,20,50],li=[4,12];function ai(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function ci(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 si(e){if(!ai(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??li[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??li[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=ii.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function di(e){return e?.quick_pick_only?"quick_pick":Zr(e)?"game_set":Lo(e)?"pick_your_dividend":$r(e)?"ladder":ai(e)?"mirror":go(e)?"safety_net":qn(e)?"selections":To(e)?"rule_setup":"selections"}function hi(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(qn(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function ui(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||qn(e)||hi(e))}function fi(e){switch(di(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function gi({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=ir(),c=n.colors,{width:s}=F(),d=s>=640,h=s>=768;/* @__PURE__ */
176
+ return T(z,{style:d&&mi.headerWide,children:[/* @__PURE__ */T(z,{style:mi.titleRow,children:[/* @__PURE__ */W(S,{style:[mi.title,d&&mi.titleWide,h&&mi.titleDesktop,{color:ne(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:mi.howToPlayWrap,children:/* @__PURE__ */W(wt,{content:i,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:r,headingFont:o})}):null]}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function pi({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=ir(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[mi.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[mi.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[mi.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function yi({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:r,onPickYourDividend:i,onLadder:l,onMirror:a,onSafetyNet:c,onQuickPick:s,onCancel:d,hideTitle:h,hideActions:u,showPerfectPickSetup:f=!1,showTierFilter:g=!1}){const p=ir(),{theme:y,games:m,loading:b,error:w,selectedGame:x,selectedPropositionCount:k,handlePropositionCountChange:S,maxPayouts:C}=p;y.colors;const B=e.useRef(x);B.current=x;const{width:v}=F(),A=v>=640;/* @__PURE__ */
177
+ return T(z,{style:mi.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(gi,{onBack:d,hideActions:u})}),
178
+ /* @__PURE__ */W(Er,{}),
179
+ /* @__PURE__ */W(z,{style:mi.content,children:/* @__PURE__ */W(Vo,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:g,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===di(e)&&ui(e)&&!f)return p.goToSportSelection(),void t?.();const s=di(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 mi=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"}}),bi=3;function wi(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 xi(e,t,o){const[i,s]=c([]),[d,h]=c([]),[u,f]=c([]),[g,p]=c([]),[y,m]=c(null),b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),w=l(()=>e.filter(e=>null!=t[e.id]),[e,t]),x=l(()=>e.map(e=>e.id).join(","),[e]),k=a(null);r(()=>{if(k.current===x)return;k.current=x;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);s(n.map(e=>e.id)),h(wi(n,o).slice(0,3).map(e=>e.id)),f([]),p([]),m(null)},[x,e,t]);const S=l(()=>{const e=new Set(u);return[...wi(i.map(e=>b.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),w).map(e=>e.id),...u.filter(e=>i.includes(e))]},[i,b,w,u]);r(()=>{h(e=>{const t=new Set(i),n=e.filter(e=>t.has(e));if(0===g.length&&!y){const t=S.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,i.length))return n.length===e.length?e:n;const o=[...n];for(const r of S){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[i,S,g,y]);const C=l(()=>d.map(e=>b.get(e)).filter(e=>Boolean(e)),[d,b]),B=n((e,t)=>{m(null),t&&o(e,t),p(n=>[...n,{id:e,answer:t}]),h(t=>t.filter(t=>t!==e)),f(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),s(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[o]),z=n(()=>{const e=g[g.length-1];e&&(e.answer&&o(e.id,e.answer),m({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),p(e=>e.slice(0,-1)),f(t=>t.filter(t=>t!==e.id)),s(t=>[e.id,...t.filter(t=>t!==e.id)]),h(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[g,o]);return{visible:C,canSkip:i.length>1,canUndo:g.length>0,restored:y,resolve:B,undo:z}}var ki=f.bezier(.32,0,.67,0),Si=f.bezier(.22,1,.36,1),Ci={stiffness:420,damping:34},Bi={stiffness:280,damping:28},zi="#00C853",Fi="#E53935";function vi(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Wi(e,t,n){return n&&-t>Math.abs(e)}function Ti({prop:e,theme:t,depth:i=0,enterFrom:c,canSkip:s=!1,onResolve:d,registerApi:u,onDragStateChange:f,children:g}){const p=o(or),m=t??p?.theme??me,b=Ge(m),w=m.colors.productYes??zi,x=m.colors.productNo??Fi,C=0===i,B=a(!1),F=a({x:0,y:0}),A=a({x:0,y:0}),R=a(null),L=a(0),D=a(null),M=a(null),P=a(null),H=a(s);H.current=s;const O=a(f);O.current=f;const I=a(new h.ValueXY({x:0,y:0})).current,E=a(new h.Value(0)).current,j=n(()=>{I.setValue({x:F.current.x,y:F.current.y}),E.setValue(Wi(F.current.x,F.current.y,H.current)?1:0)},[E,I]),N=n(()=>{null!=D.current&&(cancelAnimationFrame(D.current),D.current=null),M.current&&(M.current.stop(),M.current=null)},[]),G=n(e=>{N();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=F.current,l=A.current;if(l.x+=(-e.stiffness*i.x-e.damping*l.x)*r,l.y+=(-e.stiffness*i.y-e.damping*l.y)*r,i.x+=l.x*r,i.y+=l.y*r,Math.abs(i.x)<.5&&Math.abs(i.y)<.5&&Math.abs(l.x)<2&&Math.abs(l.y)<2)return i.x=0,i.y=0,l.x=0,l.y=0,j(),void(D.current=null);j(),D.current=requestAnimationFrame(n)};D.current=requestAnimationFrame(n)},[j,N]),Y=n(t=>{if(B.current)return;if("up"===t&&!H.current)return;B.current=!0,N();const n="right"===t?"yes":"left"===t?"no":null,o=vi(t);F.current={...o},E.setValue("up"===t?1:0),M.current=h.timing(I,{toValue:o,duration:260,easing:ki,useNativeDriver:!1}),M.current.start(),P.current=setTimeout(()=>d(e.id,n),260)},[d,e.id,N,E,I]);r(()=>()=>{P.current&&clearTimeout(P.current),null!=D.current&&cancelAnimationFrame(D.current),M.current?.stop(),R.current&&O.current?.(!1)},[]),r(()=>{if(!c)return N(),F.current={x:0,y:0},A.current={x:0,y:0},void j();const e=vi(c);F.current={x:e.x,y:e.y},A.current={x:0,y:0},j(),G(Bi)},[c,j,G,N]),r(()=>{if(C&&u)return u({fly:Y}),()=>u(null)},[Y,C,u]);const V=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!B.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||H.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{N(),R.current={x:F.current.x,y:F.current.y},A.current={x:0,y:0},L.current=Date.now(),O.current?.(!0)},onPanResponderMove:(e,t)=>{if(B.current||!R.current)return;if(t.numberActiveTouches>1)return;const n=R.current.x+t.dx,o=R.current.y+t.dy,r=e.nativeEvent.timestamp??Date.now(),i=r-L.current;if(i>0){const e=1-Math.exp(-i/40);A.current.x+=((n-F.current.x)/i*1e3-A.current.x)*e,A.current.y+=((o-F.current.y)/i*1e3-A.current.y)*e,L.current=r}F.current.x=n,F.current.y=o,j()},onPanResponderRelease:e=>{if(!R.current)return;if(R.current=null,O.current?.(!1),B.current)return;(e.nativeEvent.timestamp??Date.now())-L.current>90&&(A.current={x:0,y:0});const t=F.current,n=A.current;if(Wi(t.x,t.y,H.current)){if(t.y<-110||n.y<-620)return Y("up")}else{if(t.x>110||n.x>620)return Y("right");if(t.x<-110||n.x<-620)return Y("left")}G(Ci)},onPanResponderTerminate:()=>{R.current=null,A.current={x:0,y:0},O.current?.(!1),B.current||G(Ci)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[Y,j,G,N]),U=I.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),Z=h.subtract(1,E),K=h.multiply(Z,I.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),q=h.multiply(Z,I.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),X=h.multiply(E,I.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),Q=a(new h.Value(i)).current;r(()=>{const e=h.timing(Q,{toValue:i,duration:240,easing:Si,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,Q]);const J=Q.interpolate({inputRange:[0,3],outputRange:[0,36]}),$=Q.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
179
180
  return W(h.View,{style:[k.absoluteFill,{zIndex:3-i,transform:[{translateY:J},{scale:$}]}],pointerEvents:C?"auto":"none",children:/* @__PURE__ */T(h.View,{style:{flex:1,transform:[{translateX:I.x},{translateY:I.y},{rotate:U}]},...C?V.panHandlers:{},children:[g,C&&/* @__PURE__ */T(v,{children:[
180
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Di.stamp,Di.stampLeft,{opacity:K,borderColor:w,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[Di.stampText,{color:w,fontFamily:b}],children:"Yes"})}),
181
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Di.stamp,Di.stampRight,{opacity:q,borderColor:x,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Di.stampText,{color:x,fontFamily:b}],children:"No"})}),s&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Di.skipPillWrap,{opacity:X}],children:/* @__PURE__ */W(z,{style:[Di.skipPill,{borderColor:m.colors.border,backgroundColor:m.colors.background}],children:/* @__PURE__ */W(S,{style:[Di.skipPillText,{color:m.colors.primary}],children:"Skip"})})})]})]})})}function Ri({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,displaySportName:r,gameCategory:i}=lr(),l=t.colors,{height:a}=F(),c=a<700?12:24,s=Ht(e),d=At(e),h=("racing"===i?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean);/* @__PURE__ */
182
- return T(z,{style:[Di.face,{backgroundColor:he(t),borderColor:l.border}],children:[
183
- /* @__PURE__ */W(z,{style:[Di.matchupBand,{backgroundColor:ue(t)}],children:h.length>0?h.map((e,n)=>/* @__PURE__ */T(z,{style:Di.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Di.matchupVs,{color:de(t)}],children:"vs"}),o?.(e),
184
- /* @__PURE__ */W(S,{style:[Di.matchupName,{color:se(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Di.matchupName,{color:se(t)}],children:e.league??r(e.sport??"")})}),
185
- /* @__PURE__ */T(z,{style:[Di.faceBody,{paddingVertical:c,gap:12===c?12:16}],children:[/* @__PURE__ */T(z,{style:Di.propositionRow,children:[gr(e,o,h.join(" vs ")),s?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[Di.compositeLabel,{color:oe(t)}],children:["All ","OR"===s.operator?"or any of these":"of these"]}),/* @__PURE__ */W(z,{style:{gap:8},children:s.legs.map((e,o)=>/* @__PURE__ */T(z,{style:Di.compositeLeg,children:[/* @__PURE__ */W(S,{style:{color:l.primary,fontWeight:"700"},children:"OR"===s.operator?"/":"+"}),/* @__PURE__ */W(S,{style:[Di.compositeLegText,{color:re(t),fontFamily:n}],children:e.text})]},o))})]}):/* @__PURE__ */W(S,{style:[Di.proposition,{flex:1,color:re(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */W(S,{style:[Di.outcome,{color:l.textMuted}],children:e.outcome_description})]}),
186
- /* @__PURE__ */T(z,{style:[Di.faceFooter,{borderTopColor:l.borderSubtle??l.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Di.sportChip,{backgroundColor:l.infoBg}],children:/* @__PURE__ */W(S,{style:[Di.sportChipText,{color:l.infoText}],children:r(e.sport)})}):null,d?/* @__PURE__ */W(S,{style:[Di.footerMeta,{color:l.textMuted}],children:d.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Di.footerMeta,Di.footerDate,{color:l.textMuted}],children:Kt(e.commence_time)}):null]})]})}function Li({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:i}){const{theme:l,headingFont:c,propositions:s,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:f,answeredCount:g,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x}=lr(),k=l.colors,C=k.productYes??Fi,A=k.productNo??vi,{height:R}=F(),L=Math.max(224,Math.min(.44*R,416)),D=a(null);r(()=>{u||(m(),e?.())},[m,e,u]);const{visible:M,canSkip:P,canUndo:H,restored:O,resolve:I,undo:E}=ki(s,d,h),j=u?on(u,f??void 0,x):{min:0,max:0},N=j.max,G=N>0&&g>=N,Y=(()=>{if(!u)return null;if(j.min>0&&j.min===j.max)return j.min;const e=hi(u);return null!=f&&f>0&&("game_set"===e||"pick_your_dividend"===e||ui(u))?f:N>0?N:null})(),V=a(g);r(()=>{const e=V.current;if(V.current=g,null==Y||e>=Y||g!==Y)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[g,y,t,Y]);const U=!G&&M.length>0,Z=n(e=>{D.current=e},[]);if(!u)return null;const K=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Di.circleButton,{borderColor:k.border,backgroundColor:k.background},o&&Di.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:k.textMuted},children:t})});/* @__PURE__ */
187
- return T(z,{style:Di.container,children:[o?/* @__PURE__ */W(z,{style:Di.viewSwitchRow,children:o}):null,b?/* @__PURE__ */W(S,{style:[Di.loadingText,{color:k.textMuted}],children:"Loading…"}):w?/* @__PURE__ */W(z,{style:[Di.errorBox,{backgroundColor:k.errorBg,borderColor:k.error}],children:/* @__PURE__ */W(S,{style:{fontSize:14,color:k.errorText??k.error,textAlign:"center"},children:w})}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:Di.deckArea,children:U?/* @__PURE__ */W(z,{style:[Di.deck,{height:L}],children:M.map((e,t)=>/* @__PURE__ */W(Ai,{prop:e,depth:t,canSkip:P,enterFrom:O?.id===e.id?O.from:null,onResolve:I,registerApi:0===t?Z:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Ri,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Di.emptyState,{backgroundColor:he(l),borderColor:k.border}],children:[
188
- /* @__PURE__ */W(S,{style:[Di.emptyTitle,{color:ne(l),fontFamily:c}],children:G?"Card full":"That’s the last one"}),
189
- /* @__PURE__ */W(S,{style:[Di.emptyBody,{color:k.textMuted}],children:G?`You've picked all ${N} legs for ${u.game_name}. Undo a swipe to change one, or lock it in.`:p?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${j.min>0?` — this game needs at least ${j.min}`:""}. Undo a swipe or head back to widen the pool.`}),H&&/* @__PURE__ */W(B,{onPress:E,style:[Di.emptyUndo,{borderColor:k.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:k.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:Di.buttonArea,children:[/* @__PURE__ */T(z,{style:Di.buttonRow,children:[K("Undo last swipe","↺",E,!H),
190
- /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("left"),disabled:!U,style:[Di.answerButton,{backgroundColor:A},!U&&Di.disabled],children:/* @__PURE__ */W(S,{style:[Di.answerButtonText,{fontFamily:c}],children:"NO"})}),
191
- /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("right"),disabled:!U,style:[Di.answerButton,{backgroundColor:C},!U&&Di.disabled],children:/* @__PURE__ */W(S,{style:[Di.answerButtonText,{fontFamily:c}],children:"YES"})}),K("Skip this proposition","↑",()=>D.current?.fly("up"),!U||!P)]}),/* @__PURE__ */W(S,{style:[Di.gestureHint,{color:k.textMuted}],children:P?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Di=k.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",gap:8},compositeLegText:{flex:1,fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function Mi({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=jt(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
181
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Li.stamp,Li.stampLeft,{opacity:K,borderColor:w,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[Li.stampText,{color:w,fontFamily:b}],children:"Yes"})}),
182
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Li.stamp,Li.stampRight,{opacity:q,borderColor:x,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Li.stampText,{color:x,fontFamily:b}],children:"No"})}),s&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Li.skipPillWrap,{opacity:X}],children:/* @__PURE__ */W(z,{style:[Li.skipPill,{borderColor:m.colors.border,backgroundColor:m.colors.background}],children:/* @__PURE__ */W(S,{style:[Li.skipPillText,{color:m.colors.primary}],children:"Skip"})})})]})]})})}function Ai({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,displaySportName:r,gameCategory:i}=ir(),l=t.colors,{height:a}=F(),c=a<700?12:24,s=Ht(e),d=At(e),h=("racing"===i?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean);/* @__PURE__ */
183
+ return T(z,{style:[Li.face,{backgroundColor:he(t),borderColor:l.border}],children:[
184
+ /* @__PURE__ */W(z,{style:[Li.matchupBand,{backgroundColor:ue(t)}],children:h.length>0?h.map((e,n)=>/* @__PURE__ */T(z,{style:Li.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Li.matchupVs,{color:de(t)}],children:"vs"}),o?.(e),
185
+ /* @__PURE__ */W(S,{style:[Li.matchupName,{color:se(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Li.matchupName,{color:se(t)}],children:e.league??r(e.sport??"")})}),
186
+ /* @__PURE__ */T(z,{style:[Li.faceBody,{paddingVertical:c,gap:12===c?12:16}],children:[/* @__PURE__ */T(z,{style:Li.propositionRow,children:[fr(e,o,h.join(" vs ")),s?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[Li.compositeLabel,{color:oe(t)}],children:["All ","OR"===s.operator?"or any of these":"of these"]}),/* @__PURE__ */W(z,{style:{gap:8},children:s.legs.map((e,o)=>/* @__PURE__ */T(z,{style:Li.compositeLeg,children:[/* @__PURE__ */W(S,{style:{color:l.primary,fontWeight:"700"},children:"OR"===s.operator?"/":"+"}),/* @__PURE__ */W(S,{style:[Li.compositeLegText,{color:re(t),fontFamily:n}],children:e.text})]},o))})]}):/* @__PURE__ */W(S,{style:[Li.proposition,{flex:1,color:re(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */W(S,{style:[Li.outcome,{color:l.textMuted}],children:e.outcome_description})]}),
187
+ /* @__PURE__ */T(z,{style:[Li.faceFooter,{borderTopColor:l.borderSubtle??l.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Li.sportChip,{backgroundColor:l.infoBg}],children:/* @__PURE__ */W(S,{style:[Li.sportChipText,{color:l.infoText}],children:r(e.sport)})}):null,d?/* @__PURE__ */W(S,{style:[Li.footerMeta,{color:l.textMuted}],children:d.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Li.footerMeta,Li.footerDate,{color:l.textMuted}],children:Kt(e.commence_time)}):null]})]})}function Ri({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:i}){const{theme:l,headingFont:c,propositions:s,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:f,answeredCount:g,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x}=ir(),k=l.colors,C=k.productYes??zi,A=k.productNo??Fi,{height:R}=F(),L=Math.max(224,Math.min(.44*R,416)),D=a(null);r(()=>{u||(m(),e?.())},[m,e,u]);const{visible:M,canSkip:P,canUndo:H,restored:O,resolve:I,undo:E}=xi(s,d,h),j=u?on(u,f??void 0,x):{min:0,max:0},N=j.max,G=N>0&&g>=N,Y=(()=>{if(!u)return null;if(j.min>0&&j.min===j.max)return j.min;const e=di(u);return null!=f&&f>0&&("game_set"===e||"pick_your_dividend"===e||hi(u))?f:N>0?N:null})(),V=a(g);r(()=>{const e=V.current;if(V.current=g,null==Y||e>=Y||g!==Y)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[g,y,t,Y]);const U=!G&&M.length>0,Z=n(e=>{D.current=e},[]);if(!u)return null;const K=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Li.circleButton,{borderColor:k.border,backgroundColor:k.background},o&&Li.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:k.textMuted},children:t})});/* @__PURE__ */
188
+ return T(z,{style:Li.container,children:[o?/* @__PURE__ */W(z,{style:Li.viewSwitchRow,children:o}):null,b?/* @__PURE__ */W(S,{style:[Li.loadingText,{color:k.textMuted}],children:"Loading…"}):w?/* @__PURE__ */W(z,{style:[Li.errorBox,{backgroundColor:k.errorBg,borderColor:k.error}],children:/* @__PURE__ */W(S,{style:{fontSize:14,color:k.errorText??k.error,textAlign:"center"},children:w})}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:Li.deckArea,children:U?/* @__PURE__ */W(z,{style:[Li.deck,{height:L}],children:M.map((e,t)=>/* @__PURE__ */W(Ti,{prop:e,depth:t,canSkip:P,enterFrom:O?.id===e.id?O.from:null,onResolve:I,registerApi:0===t?Z:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Ai,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Li.emptyState,{backgroundColor:he(l),borderColor:k.border}],children:[
189
+ /* @__PURE__ */W(S,{style:[Li.emptyTitle,{color:ne(l),fontFamily:c}],children:G?"Card full":"That’s the last one"}),
190
+ /* @__PURE__ */W(S,{style:[Li.emptyBody,{color:k.textMuted}],children:G?`You've picked all ${N} legs for ${u.game_name}. Undo a swipe to change one, or lock it in.`:p?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${j.min>0?` — this game needs at least ${j.min}`:""}. Undo a swipe or head back to widen the pool.`}),H&&/* @__PURE__ */W(B,{onPress:E,style:[Li.emptyUndo,{borderColor:k.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:k.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:Li.buttonArea,children:[/* @__PURE__ */T(z,{style:Li.buttonRow,children:[K("Undo last swipe","↺",E,!H),
191
+ /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("left"),disabled:!U,style:[Li.answerButton,{backgroundColor:A},!U&&Li.disabled],children:/* @__PURE__ */W(S,{style:[Li.answerButtonText,{fontFamily:c}],children:"NO"})}),
192
+ /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("right"),disabled:!U,style:[Li.answerButton,{backgroundColor:C},!U&&Li.disabled],children:/* @__PURE__ */W(S,{style:[Li.answerButtonText,{fontFamily:c}],children:"YES"})}),K("Skip this proposition","↑",()=>D.current?.fly("up"),!U||!P)]}),/* @__PURE__ */W(S,{style:[Li.gestureHint,{color:k.textMuted}],children:P?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Li=k.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",gap:8},compositeLegText:{flex:1,fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function Di({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=jt(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
192
193
  return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[
193
194
  /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:Ot,strokeWidth:4}),
194
195
  /* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:Ot,opacity:.3}),
195
196
  /* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:Ot,opacity:.55}),
196
197
  /* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:Ot}),
197
- /* @__PURE__ */W(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(N,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:Ot,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Ot,children:"TM"})]})]})}function Pi({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=lr(),i=o.colors,l=Ge(o),{width:a}=F(),c=a>=640;/* @__PURE__ */
198
- return T(z,{style:c&&Ii.headerWide,children:[/* @__PURE__ */W(S,{style:[Ii.sectionTitle,c&&Ii.sectionTitleWide,{color:i.primary,fontFamily:l}],children:tn(r)}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Hi({onCancel:e}){const{theme:t,screenSize:n}=lr(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Ii.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Ii.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Ii.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Oi({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:i,renderSportTagline:l,backLabel:a,comingSoonSports:c}){const{theme:s,propositionsForSportPicker:d,sportSummaries:h,loading:u,setSelectedSport:f,clearSelectedGame:g,selectedCategory:p,sportBaseKey:y,displaySportName:m}=lr(),b=s.colors,w=he(s),x=Ge(s),k=Ne(s),C=ne(s),{width:v}=F(),A=v>=640,R=A?48:40,[L,D]=e.useState(null),M=qt(d),P=Object.keys(M);return u?/* @__PURE__ */W(z,{style:Ii.container,children:/* @__PURE__ */W(Un,{colors:ge(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:Ii.container,children:[!o&&/* @__PURE__ */W(z,{style:Ii.titleWrap,children:/* @__PURE__ */W(Pi,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:Ii.content,children:/* @__PURE__ */T(z,{style:Ii.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??M[e].length,r=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,p));var a,c;const s=m(e),d=L===e,u=n?n.games_today>0:o>0;/* @__PURE__ */
199
- return T(B,{onPress:()=>{f(e),g(),t?.(e)},...it(()=>D(e),()=>D(t=>t===e?null:t)),style:[Ii.gridCard,A&&Ii.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},Ii.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Mi,{gameKey:e,size:R,footer:null,sportBaseKey:y,title:`${s} button`}),
200
- /* @__PURE__ */T(z,{style:Ii.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Ii.gridName,A&&Ii.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */T(z,{style:Ii.gridTaglineRow,children:[u?/* @__PURE__ */W(z,{style:[Ii.liveDot,{backgroundColor:b.success}]}):null,/* @__PURE__ */W(S,{numberOfLines:1,style:[Ii.gridMeta,{color:b.primary,fontFamily:k}],children:r})]})]}),
201
- /* @__PURE__ */W(z,{style:Ii.gridChevron,children:/* @__PURE__ */W(St,{size:20,color:b.textMuted})})]},e)}),c?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??jt(e.key,y));/* @__PURE__ */
202
- return T(z,{style:[Ii.gridCard,A&&Ii.gridCardWide,{backgroundColor:Me(b.backgroundAlt,.4),borderColor:Me(b.border,.7)}],children:[
203
- /* @__PURE__ */W(z,{style:Ii.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Mi,{gameKey:e.key,short:e.short,size:R,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
204
- /* @__PURE__ */T(z,{style:Ii.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Ii.gridName,A&&Ii.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[Ii.gridMeta,Ii.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
205
- /* @__PURE__ */T(z,{style:[Ii.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(Ct,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[Ii.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var Ii=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 Ei({onBack:e,hideActions:t}={}){const{theme:n}=lr(),o=Ge(n),r=n.colors,{width:i}=F(),l=i>=640;/* @__PURE__ */
206
- return T(z,{style:l&&Gi.headerWide,children:[/* @__PURE__ */W(S,{style:[Gi.sectionTitle,l&&Gi.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t})]})}function ji({onCancel:e}){const{theme:t,screenSize:n}=lr(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Gi.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Gi.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Gi.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Ni({onSelectCategory:t,onCancel:n,hideTitle:o,hideActions:r,renderCategoryIcon:i,getCategoryTagline:l}){const{theme:a,propositionsForCategoryPicker:c,loading:s,setSelectedCategory:d,setSelectedSport:h,clearSelectedGame:u,displayCategoryName:f}=lr(),g=a.colors,p=he(a),y=Ne(a),{width:m}=F(),b=m>=640,w=m>=400,[x,k]=e.useState(null),[C,v]=e.useState(0),A=w?C>0?(C-(b?12:10))/2:"48%":"100%";_t(c);const R=en(c);return s?/* @__PURE__ */W(z,{style:Gi.container,children:/* @__PURE__ */W(Un,{colors:ge(a),bodyFont:y,variant:"category",categoryCount:R.length>0?R.length:2})}):/* @__PURE__ */T(z,{style:Gi.container,children:[!o&&/* @__PURE__ */W(z,{style:Gi.titleWrap,children:/* @__PURE__ */W(Ei,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:Gi.content,children:/* @__PURE__ */W(z,{style:[Gi.grid,b&&Gi.gridWide],onLayout:e=>v(e.nativeEvent.layout.width),children:R.map(e=>{const n=l?.(e)??function(e){return Et[e]??""}(e),o=x===e;/* @__PURE__ */
207
- return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...it(()=>k(e),()=>k(t=>t===e?null:t)),style:[Gi.card,b&&Gi.cardWide,{width:A,backgroundColor:p,borderColor:o?g.primary:g.border},o&&Gi.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(zt,{label:f(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[Gi.tagline,b&&Gi.taglineWide,{color:g.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var Gi=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 Yi(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 Vi({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[Zi.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
208
- return T(z,{style:Zi.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:Zi.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[Zi.teamName,i&&Zi.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Ui({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=lr(),c=n.colors,s=Ne(n),d=Ge(n),h=he(n),u=ue(n),{width:f}=F(),g=f>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:Zi.container,children:/* @__PURE__ */W(Un,{colors:ge(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:Zi.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[Zi.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:[Zi.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[Zi.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[Zi.list,g&&Zi.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
209
- return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${Zn(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,...it(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[Zi.card,g&&Zi.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&Zi.cardHovered],children:[/* @__PURE__ */T(z,{style:Zi.cardMain,children:[/* @__PURE__ */T(z,{style:[Zi.matchup,g&&Zi.matchupWide,{backgroundColor:u}],children:[
210
- /* @__PURE__ */W(Vi,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g}),
211
- /* @__PURE__ */W(S,{style:[Zi.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
212
- /* @__PURE__ */W(Vi,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g})]}),/* @__PURE__ */T(S,{style:[Zi.meta,g&&Zi.metaWide,{color:c.textMuted,fontFamily:s}],children:[Yi(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",e.league||e.sport?` · ${e.league?.toUpperCase()??a(e.sport)}`:""]})]}),/* @__PURE__ */W(z,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:/* @__PURE__ */W(St,{size:22,color:c.textMuted})})]},e.id)})})]})}var Zi=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 Ki({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,f]=c(!1),[g,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,F]=c(null),[A,R]=c(null),L="web"===m.OS,D=36+36*e.length+12,M="up"===s||g?"up":"down";i(()=>{if(!h||!L)return;const e=x.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;F({top:t.top+o,bottom:t.bottom+o,left:t.left+n,right:t.right+n,width:t.width});const r=window.innerHeight-t.bottom,i=t.top;p(r<D&&i>r)},[h,L,D]),r(()=>{if(!h)return b(null),void(L||p(!1));if(L){const e=e=>{const t=x.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||k.current&&k.current.contains(n)||f(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=x.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);p(r<D&&t>r),R({x:e,y:t,width:n,height:o})})},[h,L,D]);const P=/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */T(B,{onPress:()=>{t(e),f(!1)},accessibilityRole:"menuitem",...it(()=>b(e),()=>b(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:y===e?o.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),/* @__PURE__ */W(z,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});/* @__PURE__ */
198
+ /* @__PURE__ */W(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(N,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:Ot,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Ot,children:"TM"})]})]})}function Mi({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=ir(),i=o.colors,l=Ge(o),{width:a}=F(),c=a>=640;/* @__PURE__ */
199
+ return T(z,{style:c&&Oi.headerWide,children:[/* @__PURE__ */W(S,{style:[Oi.sectionTitle,c&&Oi.sectionTitleWide,{color:i.primary,fontFamily:l}],children:tn(r)}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Pi({onCancel:e}){const{theme:t,screenSize:n}=ir(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Oi.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Oi.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Oi.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Hi({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:i,renderSportTagline:l,backLabel:a,comingSoonSports:c}){const{theme:s,propositionsForSportPicker:d,sportSummaries:h,loading:u,setSelectedSport:f,clearSelectedGame:g,selectedCategory:p,sportBaseKey:y,displaySportName:m}=ir(),b=s.colors,w=he(s),x=Ge(s),k=Ne(s),C=ne(s),{width:v}=F(),A=v>=640,R=A?48:40,[L,D]=e.useState(null),M=qt(d),P=Object.keys(M);return u?/* @__PURE__ */W(z,{style:Oi.container,children:/* @__PURE__ */W(Un,{colors:ge(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:Oi.container,children:[!o&&/* @__PURE__ */W(z,{style:Oi.titleWrap,children:/* @__PURE__ */W(Mi,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:Oi.content,children:/* @__PURE__ */T(z,{style:Oi.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??M[e].length,r=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,p));var a,c;const s=m(e),d=L===e,u=n?n.games_today>0:o>0;/* @__PURE__ */
200
+ return T(B,{onPress:()=>{f(e),g(),t?.(e)},...it(()=>D(e),()=>D(t=>t===e?null:t)),style:[Oi.gridCard,A&&Oi.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},Oi.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Di,{gameKey:e,size:R,footer:null,sportBaseKey:y,title:`${s} button`}),
201
+ /* @__PURE__ */T(z,{style:Oi.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Oi.gridName,A&&Oi.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */T(z,{style:Oi.gridTaglineRow,children:[u?/* @__PURE__ */W(z,{style:[Oi.liveDot,{backgroundColor:b.success}]}):null,/* @__PURE__ */W(S,{numberOfLines:1,style:[Oi.gridMeta,{color:b.primary,fontFamily:k}],children:r})]})]}),
202
+ /* @__PURE__ */W(z,{style:Oi.gridChevron,children:/* @__PURE__ */W(St,{size:20,color:b.textMuted})})]},e)}),c?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??jt(e.key,y));/* @__PURE__ */
203
+ return T(z,{style:[Oi.gridCard,A&&Oi.gridCardWide,{backgroundColor:Me(b.backgroundAlt,.4),borderColor:Me(b.border,.7)}],children:[
204
+ /* @__PURE__ */W(z,{style:Oi.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Di,{gameKey:e.key,short:e.short,size:R,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
205
+ /* @__PURE__ */T(z,{style:Oi.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Oi.gridName,A&&Oi.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[Oi.gridMeta,Oi.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
206
+ /* @__PURE__ */T(z,{style:[Oi.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(Ct,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[Oi.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var Oi=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 Ii({onBack:e,hideActions:t}={}){const{theme:n}=ir(),o=Ge(n),r=n.colors,{width:i}=F(),l=i>=640;/* @__PURE__ */
207
+ return T(z,{style:l&&Ni.headerWide,children:[/* @__PURE__ */W(S,{style:[Ni.sectionTitle,l&&Ni.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t})]})}function Ei({onCancel:e}){const{theme:t,screenSize:n}=ir(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Ni.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Ni.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Ni.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function ji({onSelectCategory:t,onCancel:n,hideTitle:o,hideActions:r,renderCategoryIcon:i,getCategoryTagline:l}){const{theme:a,propositionsForCategoryPicker:c,loading:s,setSelectedCategory:d,setSelectedSport:h,clearSelectedGame:u,displayCategoryName:f}=ir(),g=a.colors,p=he(a),y=Ne(a),{width:m}=F(),b=m>=640,w=m>=400,[x,k]=e.useState(null),[C,v]=e.useState(0),A=w?C>0?(C-(b?12:10))/2:"48%":"100%";_t(c);const R=en(c);return s?/* @__PURE__ */W(z,{style:Ni.container,children:/* @__PURE__ */W(Un,{colors:ge(a),bodyFont:y,variant:"category",categoryCount:R.length>0?R.length:2})}):/* @__PURE__ */T(z,{style:Ni.container,children:[!o&&/* @__PURE__ */W(z,{style:Ni.titleWrap,children:/* @__PURE__ */W(Ii,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:Ni.content,children:/* @__PURE__ */W(z,{style:[Ni.grid,b&&Ni.gridWide],onLayout:e=>v(e.nativeEvent.layout.width),children:R.map(e=>{const n=l?.(e)??function(e){return Et[e]??""}(e),o=x===e;/* @__PURE__ */
208
+ return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...it(()=>k(e),()=>k(t=>t===e?null:t)),style:[Ni.card,b&&Ni.cardWide,{width:A,backgroundColor:p,borderColor:o?g.primary:g.border},o&&Ni.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(zt,{label:f(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[Ni.tagline,b&&Ni.taglineWide,{color:g.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var Ni=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 Gi(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 Yi({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[Ui.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
209
+ return T(z,{style:Ui.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:Ui.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[Ui.teamName,i&&Ui.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Vi({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=ir(),c=n.colors,s=Ne(n),d=Ge(n),h=he(n),u=ue(n),{width:f}=F(),g=f>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:Ui.container,children:/* @__PURE__ */W(Un,{colors:ge(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:Ui.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[Ui.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:[Ui.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[Ui.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[Ui.list,g&&Ui.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
210
+ return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${Zn(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,...it(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[Ui.card,g&&Ui.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&Ui.cardHovered],children:[/* @__PURE__ */T(z,{style:Ui.cardMain,children:[/* @__PURE__ */T(z,{style:[Ui.matchup,g&&Ui.matchupWide,{backgroundColor:u}],children:[
211
+ /* @__PURE__ */W(Yi,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g}),
212
+ /* @__PURE__ */W(S,{style:[Ui.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
213
+ /* @__PURE__ */W(Yi,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g})]}),/* @__PURE__ */T(S,{style:[Ui.meta,g&&Ui.metaWide,{color:c.textMuted,fontFamily:s}],children:[Gi(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",e.league||e.sport?` · ${e.league?.toUpperCase()??a(e.sport)}`:""]})]}),/* @__PURE__ */W(z,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:/* @__PURE__ */W(St,{size:22,color:c.textMuted})})]},e.id)})})]})}var Ui=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 Zi({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,f]=c(!1),[g,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,F]=c(null),[A,R]=c(null),L="web"===m.OS,D=36+36*e.length+12,M="up"===s||g?"up":"down";i(()=>{if(!h||!L)return;const e=x.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;F({top:t.top+o,bottom:t.bottom+o,left:t.left+n,right:t.right+n,width:t.width});const r=window.innerHeight-t.bottom,i=t.top;p(r<D&&i>r)},[h,L,D]),r(()=>{if(!h)return b(null),void(L||p(!1));if(L){const e=e=>{const t=x.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||k.current&&k.current.contains(n)||f(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=x.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);p(r<D&&t>r),R({x:e,y:t,width:n,height:o})})},[h,L,D]);const P=/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */T(B,{onPress:()=>{t(e),f(!1)},accessibilityRole:"menuitem",...it(()=>b(e),()=>b(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:y===e?o.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),/* @__PURE__ */W(z,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});/* @__PURE__ */
213
214
  return T(z,{ref:x,style:{position:"relative",flexShrink:0},children:[
214
- /* @__PURE__ */W(cr,{onPress:()=>{if(!n)return void f(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,f(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,f(e=>!e))},290)}}),h&&L&&C&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:k,role:"menu",style:{position:"absolute",top:"up"===M?void 0:C.bottom+6,..."up"===M?{top:C.top-6,transform:"translateY(-100%)"}:null,left:"left"===l?C.left:void 0,..."right"===l?{left:C.right,transform:"up"===M?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:d,overflow:"hidden"},children:P}),document.body),
215
- /* @__PURE__ */W(Ln,{visible:h&&!L,anchor:A,onClose:()=>f(!1),flipUp:"up"===M,align:l,children:/* @__PURE__ */W(z,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:P})})]})}function qi({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selections:c,toggleSelection:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,goToConfirmation:f,selectedEventId:g,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=lr(),x=o.colors,k=ot(l),C=Oo(l??{},l?w?.[l.id]:void 0),{width:B}=F(),v=B>=640,A=qn(l)&&!g,R=p.find(e=>e.id===g),L=l?on(l,d,m):{min:0,max:0},D=L.min,M=qn(l)&&g?Math.min(L.max,a.length):L.max,P=D>0&&D===M,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&D>0&&M>D,O=P?M:M||a.length,I=e=>{const t=Math.max(0,Math.min(e??O,a.length));for(const i of Object.keys(c)){const e=Number(i);s(e,c[e])}const n=[...a].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const i of n)Math.random()<.5?o.push(i):r.push(i);for(const i of o)s(i.id,"yes");for(const i of r)s(i.id,"no")},E=!h&&a.length>0,j=H?Array.from({length:M-D+1},(e,t)=>D+t).filter(e=>e<=a.length):[],N=u>0?u:D||O;/* @__PURE__ */
216
- return T(z,{style:[_i.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[_i.title,{fontSize:v?24:20,color:ne(o),fontFamily:r}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(Vr,{onBack:g?()=>y(null):e,hideActions:n,label:R?Zn(R):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(wt,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(Io,{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(Ki,{counts:j,onPick:e=>{I(e),f(),t?.()},onDoubleAction:()=>{I(N),f(),t?.()},colors:x,menuShadow:je(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(cr,{onPress:()=>{I(),f(),t?.()}})}))]})}function Xi({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,selectionValid:r,answeredCount:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h}=lr(),u=o.colors,f=he(o),g=u.textAlt??u.textMuted,{width:p}=F(),y=p>=640,m="dark"===o.colorScheme,b=l?on(l,a,h):{min:0,max:0},w=b.min,x=qn(l)&&c?Math.min(b.max,s.length):b.max,k=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),C=!k&&w>0&&x>w&&i>=w&&i<x,v=x-i,A=!k&&w>0&&x>w,R=l?A?w:x||w||l.num_propositions||0:0,L=A?x:R,D=L>0?Math.min(i/L,1):0,M=A&&x>0?w/x*100:0,P=Math.max(0,w-i),H=r&&!!e,O=0===i?"Let's get started":A&&P>0?1===P?"1 to go — almost there":`${P} to go`:C?`${v} more pick${1!==v?"s":""} available`:D>=1?"✓ All selections made":D>=.75?"Almost there!":D>=.5?"Over halfway!":D>=.25?"Getting close":"Nice start",I=A?i>=w?`${i} of maximum ${x}`:`${i} of minimum ${w}`:`${i} / ${R||s.length} picks`;/* @__PURE__ */
215
+ /* @__PURE__ */W(ar,{onPress:()=>{if(!n)return void f(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,f(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,f(e=>!e))},290)}}),h&&L&&C&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:k,role:"menu",style:{position:"absolute",top:"up"===M?void 0:C.bottom+6,..."up"===M?{top:C.top-6,transform:"translateY(-100%)"}:null,left:"left"===l?C.left:void 0,..."right"===l?{left:C.right,transform:"up"===M?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:d,overflow:"hidden"},children:P}),document.body),
216
+ /* @__PURE__ */W(Ln,{visible:h&&!L,anchor:A,onClose:()=>f(!1),flipUp:"up"===M,align:l,children:/* @__PURE__ */W(z,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:P})})]})}function Ki({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selections:c,toggleSelection:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,goToConfirmation:f,selectedEventId:g,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=ir(),x=o.colors,k=ot(l),C=Oo(l??{},l?w?.[l.id]:void 0),{width:B}=F(),v=B>=640,A=qn(l)&&!g,R=p.find(e=>e.id===g),L=l?on(l,d,m):{min:0,max:0},D=L.min,M=qn(l)&&g?Math.min(L.max,a.length):L.max,P=D>0&&D===M,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&D>0&&M>D,O=P?M:M||a.length,I=e=>{const t=Math.max(0,Math.min(e??O,a.length));for(const i of Object.keys(c)){const e=Number(i);s(e,c[e])}const n=[...a].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const i of n)Math.random()<.5?o.push(i):r.push(i);for(const i of o)s(i.id,"yes");for(const i of r)s(i.id,"no")},E=!h&&a.length>0,j=H?Array.from({length:M-D+1},(e,t)=>D+t).filter(e=>e<=a.length):[],N=u>0?u:D||O;/* @__PURE__ */
217
+ return T(z,{style:[$i.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[$i.title,{fontSize:v?24:20,color:ne(o),fontFamily:r}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(Yr,{onBack:g?()=>y(null):e,hideActions:n,label:R?Zn(R):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(wt,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(Io,{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(Zi,{counts:j,onPick:e=>{I(e),f(),t?.()},onDoubleAction:()=>{I(N),f(),t?.()},colors:x,menuShadow:je(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(ar,{onPress:()=>{I(),f(),t?.()}})}))]})}function qi({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,selectionValid:r,answeredCount:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h}=ir(),u=o.colors,f=he(o),g=u.textAlt??u.textMuted,{width:p}=F(),y=p>=640,m="dark"===o.colorScheme,b=l?on(l,a,h):{min:0,max:0},w=b.min,x=qn(l)&&c?Math.min(b.max,s.length):b.max,k=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),C=!k&&w>0&&x>w&&i>=w&&i<x,v=x-i,A=!k&&w>0&&x>w,R=l?A?w:x||w||l.num_propositions||0:0,L=A?x:R,D=L>0?Math.min(i/L,1):0,M=A&&x>0?w/x*100:0,P=Math.max(0,w-i),H=r&&!!e,O=0===i?"Let's get started":A&&P>0?1===P?"1 to go — almost there":`${P} to go`:C?`${v} more pick${1!==v?"s":""} available`:D>=1?"✓ All selections made":D>=.75?"Almost there!":D>=.5?"Over halfway!":D>=.25?"Getting close":"Nice start",I=A?i>=w?`${i} of maximum ${x}`:`${i} of minimum ${w}`:`${i} / ${R||s.length} picks`;/* @__PURE__ */
217
218
  return W(z,{children:/* @__PURE__ */W(z,{style:{borderWidth:1,borderColor:i>0?u.primary:u.border,borderRadius:12,overflow:"hidden",marginBottom:16,backgroundColor:f,shadowColor:"#000",shadowOpacity:m?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},children:/* @__PURE__ */T(z,{style:{width:"100%",padding:y?20:16,backgroundColor:i>0?`${u.primary}10`:"transparent"},children:[
218
219
  /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:i>0?u.primary:g,flexShrink:0},children:I}),H?/* @__PURE__ */W(B,{onPress:()=>{d(),e?.()},style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:u.buttonPrimary},children:/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:u.buttonPrimaryText},children:["Continue with ",i]})}):/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:D>=1?u.success:u.primary,textAlign:"right",flexShrink:1},children:O})]}),
219
- /* @__PURE__ */T(z,{style:{position:"relative",width:"100%",height:8,borderRadius:999,backgroundColor:u.background,overflow:"hidden"},children:[/* @__PURE__ */W(z,{style:{height:"100%",borderRadius:999,width:`${Math.min(100*D,100)}%`,backgroundColor:r?u.success:u.primary}}),A&&/* @__PURE__ */W(z,{style:{position:"absolute",top:-1,bottom:-1,left:`${M}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:f,borderWidth:1,borderColor:`${u.textMuted}55`}})]}),A&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6},children:[/* @__PURE__ */W(S,{style:{fontSize:11,color:i>=w?u.success:u.textMuted},children:i>=w?`✓ Minimum ${w} reached`:`Minimum ${w}`}),/* @__PURE__ */W(S,{style:{fontSize:11,color:u.textMuted},children:`Max ${x}`})]})]})})})}function Qi({view:e,onChange:t}){const{theme:n}=lr(),o=n.colors,r=(n,r)=>{const i=e===n;/* @__PURE__ */
220
- return W(B,{onPress:()=>t(n),accessibilityRole:"button",accessibilityState:{selected:i},style:[Ji.option,{backgroundColor:i?o.primary:"transparent"}],children:/* @__PURE__ */W(S,{style:[Ji.optionText,{color:i?o.primaryText:o.textMuted}],children:r})},n)};/* @__PURE__ */
221
- return T(z,{style:[Ji.track,{backgroundColor:o.backgroundAlt,borderColor:o.border}],children:[r("list","List"),r("swipe","Swipe")]})}var Ji=k.create({track:{flexDirection:"row",alignItems:"center",gap:4,borderRadius:8,borderWidth:1,padding:2,flexShrink:0},option:{borderRadius:6,paddingHorizontal:10,paddingVertical:4},optionText:{fontSize:12,fontWeight:"600"}});function $i({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=lr(),{selectedRule:h}=d,{theme:u,selectedGame:f,propositions:g,propositionsForSportPicker:p,selections:y,toggleSelection:m,loading:b,error:w,disableQuickPick:x,renderTeamLogo:k,filterSport:S,initialSport:C,gameCategory:B,selectedPropositionCount:F,handlePropositionCountChange:A,goToConfirmation:R,goBack:L,selectedCategory:D,setSelectedCategory:M,selectedSport:P,setSelectedSport:H,selectedEventId:O,propositionsForCategoryPicker:I,answeredCount:E}=d,[j,N]=e.useState(i),G=l??j,Y=e.useCallback(e=>{void 0===l&&N(e),a?.(e)},[l,a]);e.useEffect(()=>{f||(d.goToSportSelection(),n?.())},[f,d,n]);const V=e.useMemo(()=>{if(!f)return null;const{min:e,max:t}=on(f,F??void 0,h);if(e>0&&e===t)return e;const n=hi(f);return null!=F&&F>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||ui(f))?F:null},[f,F]),U=e.useRef(E);e.useEffect(()=>{const e=U.current;U.current=E,null!=V&&e<V&&E===V&&(R(),t?.())},[E,V]);const Z=e.useMemo(()=>en(I??[]),[I]);e.useEffect(()=>{f&&1===Z.length&&D!==Z[0]&&M(Z[0])},[f,Z,D,M]);const K=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of p??[])t.sport&&e.add(t.sport);return Array.from(e)},[p]);if(e.useEffect(()=>{f&&(Z.length>1&&!D||1===K.length&&P!==K[0]&&H(K[0]))},[f,Z,D,K,P,H]),!f)return null;const q=Z.length>1&&!D,X=!q&&K.length>1&&!P,Q=!q&&!X&&qn(f)&&!O,J=(()=>{if(!qn(f)||!O)return f;const e=Math.min(f.max_propositions??g.length,g.length);return{...f,max_propositions:e,allowed_propositions:f.allowed_propositions?.filter(t=>t<=e)}})(),$=()=>{L(),n?.()};/* @__PURE__ */
222
- return T(z,{style:_i.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(qi,{onBack:r?$:void 0,onNext:r?t:void 0,hideActions:r})}),!qn(f)&&/* @__PURE__ */W(jr,{}),
223
- /* @__PURE__ */W(z,{style:_i.content,children:q?/* @__PURE__ */W(Ni,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>M(e)}):X?/* @__PURE__ */W(Oi,{hideTitle:!0,hideActions:!0,onSelectSport:e=>H(e)}):Q?/* @__PURE__ */W(Ui,{}):"swipe"===G?/* @__PURE__ */W(Li,{onBack:$,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W(Qi,{view:G,onChange:Y}),onDragStateChange:s}):/* @__PURE__ */W(v,{children:/* @__PURE__ */W(kr,{game:J,propositions:g,selections:y,onToggleSelection:m,onNext:()=>{R(),t?.()},onBack:$,loading:b,error:w,theme:u,hideActions:!0,initialSport:S??C,renderTeamLogo:k,disableQuickPick:!0,selectedPropositionCount:F,onPropositionCountChange:A,gameCategory:B,headerExtra:c?void 0:/* @__PURE__ */W(Qi,{view:G,onChange:Y})})})}),!r&&!q&&!X&&!Q&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(Xi,{onNext:t,onBack:n})})]})}var _i=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function el({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:a="Legs",buildYourOwn:s,quickPickOnly:d,onQuickPick:h,collapsible:u,expanded:f,onExpandedChange:g,summaryTiers:p}){const[y,m]=c(!1),b=f??y,w=null!=i&&20!==i,k=w?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),F=!!u&&!b,A=C&&!F,R=(p??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),L=w&&R>0?R*(i/20):R,D=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,M=/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(z,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[/* @__PURE__ */W(z,{style:{paddingVertical:6,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[tl.labelText,{color:o.textMuted,fontFamily:r}],children:d?"Quick Pick":a})}),A&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[tl.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[tl.labelText,{color:o.textMuted,fontFamily:r}],children:k})})]})]}),d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(Ki,{counts:(p??e).map(e=>e.count),onPick:e=>h?h(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),C&&!F&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=w&&t>0?t*(i/20):null;/* @__PURE__ */
224
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[tl.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[tl.tableCellText,{color:o.primary}],children:t>0?Zt(n??t):"—"})})]},String(e))})})]}):s?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(B,{onPress:()=>n(e[0]?.count??0),style:[tl.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */W(S,{style:[tl.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),C&&!F&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?Zt(w?t*(i/20):t):"—";/* @__PURE__ */
225
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[tl.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[tl.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const c=t===e,s=w&&a>0?a*(i/20):null;/* @__PURE__ */
226
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>n(e),accessibilityState:{selected:c},style:[tl.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:c?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:c?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:/* @__PURE__ */W(S,{style:[tl.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!F&&a>0&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[tl.tableCellText,{color:o.success}],children:[e,"/",e]})}),w?null!=s&&/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[tl.tableCellText,{color:o.primary}],children:Zt(s)})}):/* @__PURE__ */W(z,{style:[tl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[tl.tableCellText,{color:o.primary}],children:Zt(a)})})]})]},String(e))})]});/* @__PURE__ */
220
+ /* @__PURE__ */T(z,{style:{position:"relative",width:"100%",height:8,borderRadius:999,backgroundColor:u.background,overflow:"hidden"},children:[/* @__PURE__ */W(z,{style:{height:"100%",borderRadius:999,width:`${Math.min(100*D,100)}%`,backgroundColor:r?u.success:u.primary}}),A&&/* @__PURE__ */W(z,{style:{position:"absolute",top:-1,bottom:-1,left:`${M}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:f,borderWidth:1,borderColor:`${u.textMuted}55`}})]}),A&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6},children:[/* @__PURE__ */W(S,{style:{fontSize:11,color:i>=w?u.success:u.textMuted},children:i>=w?`✓ Minimum ${w} reached`:`Minimum ${w}`}),/* @__PURE__ */W(S,{style:{fontSize:11,color:u.textMuted},children:`Max ${x}`})]})]})})})}function Xi({view:e,onChange:t}){const{theme:n}=ir(),o=n.colors,r=(n,r)=>{const i=e===n;/* @__PURE__ */
221
+ return W(B,{onPress:()=>t(n),accessibilityRole:"button",accessibilityState:{selected:i},style:[Qi.option,{backgroundColor:i?o.primary:"transparent"}],children:/* @__PURE__ */W(S,{style:[Qi.optionText,{color:i?o.primaryText:o.textMuted}],children:r})},n)};/* @__PURE__ */
222
+ return T(z,{style:[Qi.track,{backgroundColor:o.backgroundAlt,borderColor:o.border}],children:[r("list","List"),r("swipe","Swipe")]})}var Qi=k.create({track:{flexDirection:"row",alignItems:"center",gap:4,borderRadius:8,borderWidth:1,padding:2,flexShrink:0},option:{borderRadius:6,paddingHorizontal:10,paddingVertical:4},optionText:{fontSize:12,fontWeight:"600"}});function Ji({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=ir(),{selectedRule:h}=d,{theme:u,selectedGame:f,propositions:g,propositionsForSportPicker:p,selections:y,toggleSelection:m,loading:b,error:w,disableQuickPick:x,renderTeamLogo:k,filterSport:S,initialSport:C,gameCategory:B,selectedPropositionCount:F,handlePropositionCountChange:A,goToConfirmation:R,goBack:L,selectedCategory:D,setSelectedCategory:M,selectedSport:P,setSelectedSport:H,selectedEventId:O,propositionsForCategoryPicker:I,answeredCount:E}=d,[j,N]=e.useState(i),G=l??j,Y=e.useCallback(e=>{void 0===l&&N(e),a?.(e)},[l,a]);e.useEffect(()=>{f||(d.goToSportSelection(),n?.())},[f,d,n]);const V=e.useMemo(()=>{if(!f)return null;const{min:e,max:t}=on(f,F??void 0,h);if(e>0&&e===t)return e;const n=di(f);return null!=F&&F>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||hi(f))?F:null},[f,F]),U=e.useRef(E);e.useEffect(()=>{const e=U.current;U.current=E,null!=V&&e<V&&E===V&&(R(),t?.())},[E,V]);const Z=e.useMemo(()=>en(I??[]),[I]);e.useEffect(()=>{f&&1===Z.length&&D!==Z[0]&&M(Z[0])},[f,Z,D,M]);const K=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of p??[])t.sport&&e.add(t.sport);return Array.from(e)},[p]);if(e.useEffect(()=>{f&&(Z.length>1&&!D||1===K.length&&P!==K[0]&&H(K[0]))},[f,Z,D,K,P,H]),!f)return null;const q=Z.length>1&&!D,X=!q&&K.length>1&&!P,Q=!q&&!X&&qn(f)&&!O,J=(()=>{if(!qn(f)||!O)return f;const e=Math.min(f.max_propositions??g.length,g.length);return{...f,max_propositions:e,allowed_propositions:f.allowed_propositions?.filter(t=>t<=e)}})(),$=()=>{L(),n?.()};/* @__PURE__ */
223
+ return T(z,{style:$i.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Ki,{onBack:r?$:void 0,onNext:r?t:void 0,hideActions:r})}),!qn(f)&&/* @__PURE__ */W(Er,{}),
224
+ /* @__PURE__ */W(z,{style:$i.content,children:q?/* @__PURE__ */W(ji,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>M(e)}):X?/* @__PURE__ */W(Hi,{hideTitle:!0,hideActions:!0,onSelectSport:e=>H(e)}):Q?/* @__PURE__ */W(Vi,{}):"swipe"===G?/* @__PURE__ */W(Ri,{onBack:$,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W(Xi,{view:G,onChange:Y}),onDragStateChange:s}):/* @__PURE__ */W(v,{children:/* @__PURE__ */W(xr,{game:J,propositions:g,selections:y,onToggleSelection:m,onNext:()=>{R(),t?.()},onBack:$,loading:b,error:w,theme:u,hideActions:!0,initialSport:S??C,renderTeamLogo:k,disableQuickPick:!0,selectedPropositionCount:F,onPropositionCountChange:A,gameCategory:B,headerExtra:c?void 0:/* @__PURE__ */W(Xi,{view:G,onChange:Y})})})}),!r&&!q&&!X&&!Q&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(qi,{onNext:t,onBack:n})})]})}var $i=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function _i({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:a="Legs",buildYourOwn:s,quickPickOnly:d,onQuickPick:h,collapsible:u,expanded:f,onExpandedChange:g,summaryTiers:p}){const[y,m]=c(!1),b=f??y,w=null!=i&&20!==i,k=w?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),F=!!u&&!b,A=C&&!F,R=(p??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),L=w&&R>0?R*(i/20):R,D=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,M=/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(z,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[/* @__PURE__ */W(z,{style:{paddingVertical:6,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[el.labelText,{color:o.textMuted,fontFamily:r}],children:d?"Quick Pick":a})}),A&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[el.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[el.labelText,{color:o.textMuted,fontFamily:r}],children:k})})]})]}),d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(Zi,{counts:(p??e).map(e=>e.count),onPick:e=>h?h(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),C&&!F&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=w&&t>0?t*(i/20):null;/* @__PURE__ */
225
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[el.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[el.tableCellText,{color:o.primary}],children:t>0?Zt(n??t):"—"})})]},String(e))})})]}):s?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(B,{onPress:()=>n(e[0]?.count??0),style:[el.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */W(S,{style:[el.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),C&&!F&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?Zt(w?t*(i/20):t):"—";/* @__PURE__ */
226
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[el.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[el.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const c=t===e,s=w&&a>0?a*(i/20):null;/* @__PURE__ */
227
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>n(e),accessibilityState:{selected:c},style:[el.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:c?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:c?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:/* @__PURE__ */W(S,{style:[el.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!F&&a>0&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[el.tableCellText,{color:o.success}],children:[e,"/",e]})}),w?null!=s&&/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[el.tableCellText,{color:o.primary}],children:Zt(s)})}):/* @__PURE__ */W(z,{style:[el.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[el.tableCellText,{color:o.primary}],children:Zt(a)})})]})]},String(e))})]});/* @__PURE__ */
227
228
  return T(z,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[d?/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:M}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:M}),u&&(C?/* @__PURE__ */T(z,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:r},children:["Win up to ",
228
229
  /* @__PURE__ */W(S,{style:{color:o.heading??o.text??o.primary},children:Zt(L)}),
229
- /* @__PURE__ */W(S,{style:{color:o.textMuted},children:` for $${w?Math.round(i):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!b,void 0===f&&m(e),void g?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:b},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:b?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:b?o.primary??o.border:o.border},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:b?"Hide dividends":"Show dividends"})})]}):/* @__PURE__ */W(z,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var tl=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 nl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function ol({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:c,upgradePropositionCount:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,selectedRule:f}=lr(),g=n.colors,{width:p}=F(),y=p>=640,m=r?on(r,d,f):{min:0,max:0},b=m.min,w=qn(r)&&i?Math.min(m.max,l.length):m.max,x=b>0&&b===w,k=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&b>0&&w>b,C=x?w:w||l.length,B=e=>{const t=Math.max(0,Math.min(e??C,l.length));for(const r of Object.keys(a)){const e=Number(r);c(e,a[e])}const{yesPicks:n,noPicks:o}=zn(l,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");s(t)},v=!h&&l.length>0,A=k?Array.from({length:w-b+1},(e,t)=>b+t):[],R=u>0?u:b||C;/* @__PURE__ */
230
- return T(z,{style:[ll.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ll.title,{fontSize:y?24:20,color:ne(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:r.game_name})]}),v&&(A.length>1?/* @__PURE__ */W(Ki,{counts:A,onPick:e=>B(e),onDoubleAction:()=>B(R),colors:g,menuShadow:je(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(cr,{onPress:()=>B()})}))]})}function rl({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=lr(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:f,screenSize:g}=r,p=i.colors,{width:y}=F(),m=y>=640;if(!l)return null;const b=u[a]??0,w=rn(l),x=a===f.length,k=w?.enabled&&x,C=e&&"mobile"!==g;/* @__PURE__ */
231
- return T(z,{style:ll.footer,children:[C&&/* @__PURE__ */W(lt,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:ll.footerRight,children:[d?/* @__PURE__ */W(S,{style:[ll.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:ll.payoutInfo,children:[/* @__PURE__ */W(S,{style:[ll.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[ll.payoutAmount,{color:p.heading??p.text}],children:[Zt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
232
- /* @__PURE__ */W(lt,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(nl(r))},children:n?s?"Placing…":`Place Entry (${Zt(c)})`:"Log in to place entry"})]})]})}function il({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=lr(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,propositions:u,selectedPropositionCount:f,selectedEventId:g,expectedCorrect:p,setExpectedCorrect:y,betAmount:m,setBetAmount:b,submitting:w,submitError:x,canSubmit:k,winningCounts:C,payouts:A,overloadPayouts:R,renderTeamLogo:L,userBalance:D,onRecharge:M,goBack:P,toggleSelection:H,upgradePropositionCount:O,goToSportSelection:I,selectedRule:E}=a,j=c.colors,{width:N}=F(),G=N>=640;if(r(()=>{s||(I(),e?.())},[s,I,e]),!s)return null;const Y=!!(s.allowed_propositions&&s.allowed_propositions.length>0),V=on(s,f,E),U=V.min,Z=qn(s)&&g?Math.min(V.max,u.length):V.max,K=Object.keys(h).length,q=U>0&&K<U,X=!Y&&U>0&&Z>U&&K>=U&&K<Z,Q=Y?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(f??0)):[],J=Y&&Q.length>0&&!q,$=X||J,_=Z-K;j.textAlt??j.text;const ee=()=>{P(),e?.()},te=(Y?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===K&&e<(f??1/0)),ne=Y&&K<Math.min(...s.allowed_propositions??[1/0]),oe=Y&&q&&!ne,re=gi(s),ie=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const i=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===i.length||n<=0)return null;const l=i[0];if(l>=n)return"Get every pick right to win.";if(!i.every((e,t)=>e===l+t)||i[i.length-1]!==n)return 2===i.length&&0===i[0]&&i[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${i.join(" or ")} of your ${n} picks right to win.`;const a=i.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===i.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${l} of your ${n} picks right to start winning — every pick after that grows the prize.`;const c=n-l;return`Get ${l} of your ${n} picks right to win — up to ${1===c?"one miss":`${c} misses`} still pays.`}(E,C,K,A),le=null!=te?re.belowRequiredHint(te,f??U):re.belowRequiredAddOnlyHint(f??U);return r(()=>{!q||Y&&!ne||ee()},[q,Y,ne]),/* @__PURE__ */T(z,{style:ll.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ol,{onBack:e,hideActions:l})}),
233
- /* @__PURE__ */W(z,{style:ll.content,children:/* @__PURE__ */W(Wr,{game:s,propositions:d,selections:h,onToggleSelection:H,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(nl(a))},onBack:ee,loading:w,error:x,expectedCorrect:p,onExpectedCorrectChange:y,betAmount:m,onBetAmountChange:b,theme:c,showCustomAmount:!0,betAmountLocked:Lo(s),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:L,canSubmit:k,authenticated:n,userBalance:D,onRecharge:M,boostBanner:/* @__PURE__ */T(v,{children:[ie&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`,marginBottom:12},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:j.textMuted,marginBottom:4},children:"How you win"}),/* @__PURE__ */W(S,{style:{fontSize:G?14:12,color:j.text},children:ie})]}),oe&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.warning}40`,backgroundColor:`${j.warning}10`,flexDirection:G?"row":"column",alignItems:G?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:G?14:12,color:j.text,flexShrink:1},children:["You have ",
230
+ /* @__PURE__ */W(S,{style:{color:o.textMuted},children:` for $${w?Math.round(i):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!b,void 0===f&&m(e),void g?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:b},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:b?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:b?o.primary??o.border:o.border},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:b?"Hide dividends":"Show dividends"})})]}):/* @__PURE__ */W(z,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var el=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 tl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function nl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:c,upgradePropositionCount:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,selectedRule:f}=ir(),g=n.colors,{width:p}=F(),y=p>=640,m=r?on(r,d,f):{min:0,max:0},b=m.min,w=qn(r)&&i?Math.min(m.max,l.length):m.max,x=b>0&&b===w,k=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&b>0&&w>b,C=x?w:w||l.length,B=e=>{const t=Math.max(0,Math.min(e??C,l.length));for(const r of Object.keys(a)){const e=Number(r);c(e,a[e])}const{yesPicks:n,noPicks:o}=zn(l,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");s(t)},v=!h&&l.length>0,A=k?Array.from({length:w-b+1},(e,t)=>b+t):[],R=u>0?u:b||C;/* @__PURE__ */
231
+ return T(z,{style:[il.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[il.title,{fontSize:y?24:20,color:ne(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:r.game_name})]}),v&&(A.length>1?/* @__PURE__ */W(Zi,{counts:A,onPick:e=>B(e),onDoubleAction:()=>B(R),colors:g,menuShadow:je(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(ar,{onPress:()=>B()})}))]})}function ol({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=ir(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:f,screenSize:g}=r,p=i.colors,{width:y}=F(),m=y>=640;if(!l)return null;const b=u[a]??0,w=rn(l),x=a===f.length,k=w?.enabled&&x,C=e&&"mobile"!==g;/* @__PURE__ */
232
+ return T(z,{style:il.footer,children:[C&&/* @__PURE__ */W(lt,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:il.footerRight,children:[d?/* @__PURE__ */W(S,{style:[il.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:il.payoutInfo,children:[/* @__PURE__ */W(S,{style:[il.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[il.payoutAmount,{color:p.heading??p.text}],children:[Zt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
233
+ /* @__PURE__ */W(lt,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(tl(r))},children:n?s?"Placing…":`Place Entry (${Zt(c)})`:"Log in to place entry"})]})]})}function rl({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=ir(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,propositions:u,selectedPropositionCount:f,selectedEventId:g,expectedCorrect:p,setExpectedCorrect:y,betAmount:m,setBetAmount:b,submitting:w,submitError:x,canSubmit:k,winningCounts:C,payouts:A,overloadPayouts:R,renderTeamLogo:L,userBalance:D,onRecharge:M,goBack:P,toggleSelection:H,upgradePropositionCount:O,goToSportSelection:I,selectedRule:E}=a,j=c.colors,{width:N}=F(),G=N>=640;if(r(()=>{s||(I(),e?.())},[s,I,e]),!s)return null;const Y=!!(s.allowed_propositions&&s.allowed_propositions.length>0),V=on(s,f,E),U=V.min,Z=qn(s)&&g?Math.min(V.max,u.length):V.max,K=Object.keys(h).length,q=U>0&&K<U,X=!Y&&U>0&&Z>U&&K>=U&&K<Z,Q=Y?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(f??0)):[],J=Y&&Q.length>0&&!q,$=X||J,_=Z-K;j.textAlt??j.text;const ee=()=>{P(),e?.()},te=(Y?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===K&&e<(f??1/0)),ne=Y&&K<Math.min(...s.allowed_propositions??[1/0]),oe=Y&&q&&!ne,re=fi(s),ie=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const i=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===i.length||n<=0)return null;const l=i[0];if(l>=n)return"Get every pick right to win.";if(!i.every((e,t)=>e===l+t)||i[i.length-1]!==n)return 2===i.length&&0===i[0]&&i[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${i.join(" or ")} of your ${n} picks right to win.`;const a=i.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===i.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${l} of your ${n} picks right to start winning — every pick after that grows the prize.`;const c=n-l;return`Get ${l} of your ${n} picks right to win — up to ${1===c?"one miss":`${c} misses`} still pays.`}(E,C,K,A),le=null!=te?re.belowRequiredHint(te,f??U):re.belowRequiredAddOnlyHint(f??U);return r(()=>{!q||Y&&!ne||ee()},[q,Y,ne]),/* @__PURE__ */T(z,{style:il.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(nl,{onBack:e,hideActions:l})}),
234
+ /* @__PURE__ */W(z,{style:il.content,children:/* @__PURE__ */W(vr,{game:s,propositions:d,selections:h,onToggleSelection:H,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(tl(a))},onBack:ee,loading:w,error:x,expectedCorrect:p,onExpectedCorrectChange:y,betAmount:m,onBetAmountChange:b,theme:c,showCustomAmount:!0,betAmountLocked:Lo(s),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:L,canSubmit:k,authenticated:n,userBalance:D,onRecharge:M,boostBanner:/* @__PURE__ */T(v,{children:[ie&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`,marginBottom:12},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:j.textMuted,marginBottom:4},children:"How you win"}),/* @__PURE__ */W(S,{style:{fontSize:G?14:12,color:j.text},children:ie})]}),oe&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.warning}40`,backgroundColor:`${j.warning}10`,flexDirection:G?"row":"column",alignItems:G?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:G?14:12,color:j.text,flexShrink:1},children:["You have ",
234
235
  /* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[K," pick",1!==K?"s":""]}),`. ${le}`]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:ee,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonSecondary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonSecondaryText},children:"Add a pick"})}),null!=te&&/* @__PURE__ */W(B,{onPress:()=>O(te),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonPrimaryText},children:re.switchTierLabel(te)})})]})]}),$&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`},children:J?(()=>{const e=f??K,t=R[e],n=m>0?m:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
235
236
  return T(z,{children:[
236
237
  /* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:j.primary,marginBottom:4},children:re.overloadTitle}),null!=o&&/* @__PURE__ */T(S,{style:{fontSize:12,color:j.textMuted,marginBottom:8},children:["Currently winning up to ",
237
238
  /* @__PURE__ */W(S,{style:{color:j.heading??j.text,fontWeight:"700"},children:Zt(o)}),` with ${e} picks`]}),
238
- /* @__PURE__ */W(el,{tiers:Q.map(e=>({count:e,payout20:R[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),ee()},colors:j,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:re.tableColumnLabel,buttonLabel:re.tierButtonLabel})]})})():/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:12,color:j.textMuted,flex:1},children:[1===_?"Add ":"Add up to ",/* @__PURE__ */T(S,{style:{color:j.primary,fontWeight:"700"},children:[_," more pick",1!==_?"s":""]})]}),/* @__PURE__ */W(B,{onPress:ee,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonPrimaryText},children:"Add picks"})})]})})]})})}),l&&x?/* @__PURE__ */W(z,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */W(S,{style:[ll.errorText,{color:j.error}],children:x})}):null]})}var ll=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"}}),al=m.select({ios:"Menlo",default:"monospace"});function cl({theme:e,value:t}){/* @__PURE__ */
239
- return W(z,{style:{alignSelf:"center",flexShrink:0,paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===t?ie(e):le(e)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function sl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=lr(),l=n.colors,{width:a}=F(),c=a>=640;/* @__PURE__ */
240
- return T(z,{style:ul.titleRow,children:[/* @__PURE__ */T(z,{style:ul.titleText,children:[/* @__PURE__ */W(S,{style:[ul.title,c&&ul.titleWide,{color:ne(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[ul.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */T(v,{children:["Entry"," ",
241
- /* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:al},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[ul.checkCircle,c&&ul.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 dl({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=lr();return o.colors,/* @__PURE__ */T(z,{style:ul.footer,children:[/* @__PURE__ */W(lt,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(lt,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function hl({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=lr(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:f,selectedPropositionIds:g,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=he(c),k=w.textAlt??w.text,{width:C}=F(),B=C>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},R=u?.proposition_ids?u.proposition_ids.length:g.length,L=m[R]??null,D=e.useRef(!1);return e.useEffect(()=>{u&&h?D.current=!1:(a.goToSportSelection(),D.current||(D.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:ul.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(sl,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[ul.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[ul.summaryCard,B&&ul.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:ul.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(Mr,{iconUrl:qe(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[ul.summaryHeading,B&&ul.summaryHeadingWide,{color:ne(c),fontFamily:d,flex:1}],children:e})})(),/* @__PURE__ */W(z,{style:{backgroundColor:`${w.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:/* @__PURE__ */T(S,{style:{color:w.primary,fontSize:12,fontWeight:"600",fontFamily:s},children:[R," pick",1!==R?"s":""]})})]}),/* @__PURE__ */T(z,{style:ul.statsGrid,children:[
242
- /* @__PURE__ */T(z,{style:[ul.statCell,B&&ul.statCellWide],children:[/* @__PURE__ */W(S,{style:[ul.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[ul.statValue,{color:k,fontFamily:s}],children:R})]}),f>0&&/* @__PURE__ */T(z,{style:[ul.statCell,B&&ul.statCellWide],children:[/* @__PURE__ */W(S,{style:[ul.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[ul.statValue,{color:k,fontFamily:s}],children:Zt(f)})]}),null!=L&&L>0&&/* @__PURE__ */T(z,{style:[ul.statCell,B&&ul.statCellWide],children:[/* @__PURE__ */W(S,{style:[ul.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[ul.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:Zt(L)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[ul.summaryCard,B&&ul.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[ul.summaryHeading,B&&ul.summaryHeadingWide,{color:ne(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:ul.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
243
- return T(z,{style:[ul.pickRow,{backgroundColor:w.backgroundAlt}],children:[
239
+ /* @__PURE__ */W(_i,{tiers:Q.map(e=>({count:e,payout20:R[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),ee()},colors:j,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:re.tableColumnLabel,buttonLabel:re.tierButtonLabel})]})})():/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:12,color:j.textMuted,flex:1},children:[1===_?"Add ":"Add up to ",/* @__PURE__ */T(S,{style:{color:j.primary,fontWeight:"700"},children:[_," more pick",1!==_?"s":""]})]}),/* @__PURE__ */W(B,{onPress:ee,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonPrimaryText},children:"Add picks"})})]})})]})})}),l&&x?/* @__PURE__ */W(z,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */W(S,{style:[il.errorText,{color:j.error}],children:x})}):null]})}var il=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"}}),ll=m.select({ios:"Menlo",default:"monospace"});function al({theme:e,value:t}){/* @__PURE__ */
240
+ return W(z,{style:{alignSelf:"center",flexShrink:0,paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===t?ie(e):le(e)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function cl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=ir(),l=n.colors,{width:a}=F(),c=a>=640;/* @__PURE__ */
241
+ return T(z,{style:hl.titleRow,children:[/* @__PURE__ */T(z,{style:hl.titleText,children:[/* @__PURE__ */W(S,{style:[hl.title,c&&hl.titleWide,{color:ne(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[hl.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */T(v,{children:["Entry"," ",
242
+ /* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:ll},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[hl.checkCircle,c&&hl.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 sl({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=ir();return o.colors,/* @__PURE__ */T(z,{style:hl.footer,children:[/* @__PURE__ */W(lt,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(lt,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function dl({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=ir(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:f,selectedPropositionIds:g,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=he(c),k=w.textAlt??w.text,{width:C}=F(),B=C>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},R=u?.proposition_ids?u.proposition_ids.length:g.length,L=m[R]??null,D=e.useRef(!1);return e.useEffect(()=>{u&&h?D.current=!1:(a.goToSportSelection(),D.current||(D.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:hl.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(cl,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[hl.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[hl.summaryCard,B&&hl.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:hl.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(Dr,{iconUrl:qe(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[hl.summaryHeading,B&&hl.summaryHeadingWide,{color:ne(c),fontFamily:d,flex:1}],children:e})})(),/* @__PURE__ */W(z,{style:{backgroundColor:`${w.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:/* @__PURE__ */T(S,{style:{color:w.primary,fontSize:12,fontWeight:"600",fontFamily:s},children:[R," pick",1!==R?"s":""]})})]}),/* @__PURE__ */T(z,{style:hl.statsGrid,children:[
243
+ /* @__PURE__ */T(z,{style:[hl.statCell,B&&hl.statCellWide],children:[/* @__PURE__ */W(S,{style:[hl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[hl.statValue,{color:k,fontFamily:s}],children:R})]}),f>0&&/* @__PURE__ */T(z,{style:[hl.statCell,B&&hl.statCellWide],children:[/* @__PURE__ */W(S,{style:[hl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[hl.statValue,{color:k,fontFamily:s}],children:Zt(f)})]}),null!=L&&L>0&&/* @__PURE__ */T(z,{style:[hl.statCell,B&&hl.statCellWide],children:[/* @__PURE__ */W(S,{style:[hl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[hl.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:Zt(L)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[hl.summaryCard,B&&hl.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[hl.summaryHeading,B&&hl.summaryHeadingWide,{color:ne(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:hl.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
244
+ return T(z,{style:[hl.pickRow,{backgroundColor:w.backgroundAlt}],children:[
244
245
  /* @__PURE__ */W(z,{style:{width:20,height:20,borderRadius:10,backgroundColor:w.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:/* @__PURE__ */W(S,{style:{color:w.primaryText,fontSize:10,fontWeight:"700",fontFamily:s},children:t+1})}),
245
246
  /* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(S,{numberOfLines:1,style:{color:k,fontSize:B?14:12,fontWeight:"500",fontFamily:s},children:[$t(e)?null:/* @__PURE__ */T(v,{children:[e.home_team," ",
246
- /* @__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(cl,{theme:c,value:o?"yes":"no"})]},e.id)})})]})]})]}):null}var ul=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 fl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=lr(),{width:r}=F(),i=r>=640;/* @__PURE__ */
247
- return T(z,{style:pl.header,children:[/* @__PURE__ */W(S,{style:[pl.title,{fontSize:i?24:20,color:ne(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t})]})}function gl({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,renderTeamLogo:f,filterSport:g}=lr();/* @__PURE__ */
248
- return T(z,{style:pl.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(fl,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:pl.content,children:/* @__PURE__ */W(Or,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,onSelectEntry:e,theme:r,renderTeamLogo:f,filterSport:g})})]})}var pl=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function yl(e,t){const n=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function ml({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
247
+ /* @__PURE__ */W(S,{style:{color:w.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */W(S,{numberOfLines:1,style:{color:w.textMuted,fontSize:11,fontFamily:s},children:e.description})]}),null!=n&&/* @__PURE__ */W(al,{theme:c,value:o?"yes":"no"})]},e.id)})})]})]})]}):null}var hl=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 ul({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=ir(),{width:r}=F(),i=r>=640;/* @__PURE__ */
248
+ return T(z,{style:gl.header,children:[/* @__PURE__ */W(S,{style:[gl.title,{fontSize:i?24:20,color:ne(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t})]})}function fl({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,renderTeamLogo:f,filterSport:g}=ir();/* @__PURE__ */
249
+ return T(z,{style:gl.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ul,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:gl.content,children:/* @__PURE__ */W(Hr,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,onSelectEntry:e,theme:r,renderTeamLogo:f,filterSport:g})})]})}var gl=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function pl(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 yl({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
249
250
  return T(A,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[
250
251
  /* @__PURE__ */W(M,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
251
252
  /* @__PURE__ */W(H,{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",opacity:.9}),
252
253
  /* @__PURE__ */W(H,{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"}),
253
- /* @__PURE__ */W(D,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(R,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function bl({ink:e,ball:t,size:n}){/* @__PURE__ */
254
+ /* @__PURE__ */W(D,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(R,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function ml({ink:e,ball:t,size:n}){/* @__PURE__ */
254
255
  return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
255
256
  /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
256
257
  /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
257
258
  /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"8",fill:t}),
258
259
  /* @__PURE__ */W(M,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
259
- /* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function wl({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
260
+ /* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function bl({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
260
261
  return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
261
262
  /* @__PURE__ */W(M,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>/* @__PURE__ */W(I,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),
262
263
  /* @__PURE__ */W(H,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
263
- /* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function xl({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(ml,{...n,balls:t}):/* @__PURE__ */W("pick"===e?wl:bl,{...n})}function kl({kind:e,size:t=56,balls:n}){const{theme:o}=lr(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=ae(o);/* @__PURE__ */
264
- return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:yl(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(xl,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function Sl({option:e,renderDividends:t}){const{theme:n}=lr(),o=n.colors,r=Ge(n),i=o.primary,l=ae(n),a=e.dividends??[];return t?/* @__PURE__ */W(v,{children:t(e)}):/* @__PURE__ */T(z,{style:Tl.dividends,children:[/* @__PURE__ */T(z,{style:Tl.dividendRow,children:[/* @__PURE__ */W(S,{style:[Tl.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Tl.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
265
- return T(z,{style:Tl.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Tl.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Tl.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Tl.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Tl.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Tl.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Tl.dividendMult,{color:i,fontFamily:r}],children:Zt(t.payout20)})]},t.misses)})]})}function Cl({option:e,renderDividends:t}){const{theme:o}=lr(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,f]=c(!1),g=a(null),p=a(null),[y,b]=c(null),[w,x]=c(!1),[k,C]=c(null),F="web"===m.OS,A=40+36*Math.max(s.length,1)+12,R=n(()=>{const e=g.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<A&&o>n;b({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[A]);i(()=>{if(!h||!F)return void b(null);R();const e=()=>f(!1),t=()=>R();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,F,R]),r(()=>{if(!h)return;if(F){const e=e=>{const t=g.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=g.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);x(r<A&&t>r),C({x:e,y:t,width:n,height:o})})},[h,F,A]);const L=t?/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:l.border},children:/* @__PURE__ */T(S,{style:{fontSize:10,fontWeight:"700",color:l.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),s.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:l.border,gap:12},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.text,fontSize:13,flex:1},children:e.label}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:e.payout20>0?l.heading??l.text:l.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?Zt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
264
+ /* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function wl({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(yl,{...n,balls:t}):/* @__PURE__ */W("pick"===e?bl:ml,{...n})}function xl({kind:e,size:t=56,balls:n}){const{theme:o}=ir(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=ae(o);/* @__PURE__ */
265
+ return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:pl(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(wl,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function kl({option:e,renderDividends:t}){const{theme:n}=ir(),o=n.colors,r=Ge(n),i=o.primary,l=ae(n),a=e.dividends??[];return t?/* @__PURE__ */W(v,{children:t(e)}):/* @__PURE__ */T(z,{style:Wl.dividends,children:[/* @__PURE__ */T(z,{style:Wl.dividendRow,children:[/* @__PURE__ */W(S,{style:[Wl.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Wl.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
266
+ return T(z,{style:Wl.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Wl.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Wl.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Wl.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Wl.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Wl.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Wl.dividendMult,{color:i,fontFamily:r}],children:Zt(t.payout20)})]},t.misses)})]})}function Sl({option:e,renderDividends:t}){const{theme:o}=ir(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,f]=c(!1),g=a(null),p=a(null),[y,b]=c(null),[w,x]=c(!1),[k,C]=c(null),F="web"===m.OS,A=40+36*Math.max(s.length,1)+12,R=n(()=>{const e=g.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<A&&o>n;b({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[A]);i(()=>{if(!h||!F)return void b(null);R();const e=()=>f(!1),t=()=>R();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,F,R]),r(()=>{if(!h)return;if(F){const e=e=>{const t=g.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=g.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);x(r<A&&t>r),C({x:e,y:t,width:n,height:o})})},[h,F,A]);const L=t?/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:l.border},children:/* @__PURE__ */T(S,{style:{fontSize:10,fontWeight:"700",color:l.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),s.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:l.border,gap:12},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.text,fontSize:13,flex:1},children:e.label}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:e.payout20>0?l.heading??l.text:l.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?Zt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
266
267
  return T(z,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[d>0?/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:l.text},children:["Win up to ",
267
268
  /* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:Zt(d)}),
268
- /* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:g,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>f(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */W(S,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */W(Ln,{visible:h&&!F,anchor:k,onClose:()=>f(!1),flipUp:w,align:"left",children:/* @__PURE__ */W(z,{style:{elevation:8,backgroundColor:l.background,borderRadius:8,borderWidth:1,borderColor:l.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:L})})]})]}),h&&F&&y&&"undefined"!=typeof document?G(/* @__PURE__ */W("div",{ref:p,style:{position:"fixed",left:y.left,top:y.top,transform:y.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:L}),document.body):null]})}function Bl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=lr(),i=r.colors,l=Ge(r),a=ne(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,f="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,g=!!o||(t.dividends?.length??0)>0,p=g&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
269
- return T(z,{...it(()=>m(!0),()=>m(!1)),style:[Tl.card,u&&Tl.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:Tl.cardMain,children:[
270
- /* @__PURE__ */W(kl,{kind:e,balls:f,size:60}),
271
- /* @__PURE__ */T(z,{style:Tl.cardText,children:[
272
- /* @__PURE__ */W(S,{style:[Tl.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Tl.statChip,{backgroundColor:yl(s,.12)}],children:/* @__PURE__ */W(S,{style:[Tl.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
273
- /* @__PURE__ */W(z,{style:Tl.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Tl.detailLine,{color:i.textMuted}],children:e},e))})]}),
274
- /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),g?/* @__PURE__ */W(z,{style:[Tl.dividendsWrap,{borderTopColor:yl(a,.08)}],children:/* @__PURE__ */W(p?Sl:Cl,{option:t,renderDividends:o})}):null]})}function zl({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=lr(),i=r.colors,l=ne(r),a=ae(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,[f,g]=c(!1);/* @__PURE__ */
275
- return W(z,{...it(()=>g(!0),()=>g(!1)),style:[Tl.card,u&&Tl.cardWide,{backgroundColor:d,borderColor:f?s:i.border,shadowColor:f?s:"#000",shadowOpacity:f?.28:.08,shadowRadius:f?14:8,shadowOffset:{width:0,height:f?12:8},elevation:f?4:1,transform:[{translateY:f?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Tl.cardMain,children:[
276
- /* @__PURE__ */W(kl,{kind:e,size:60}),
277
- /* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Tl.bulletRow,children:[/* @__PURE__ */W(z,{style:[Tl.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Tl.bulletText,{color:l}],children:e})]},e))}),
278
- /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:f?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function Fl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=lr(),i=Ge(n),l=n.colors,a=Wo(o,r),{width:c}=F(),s=c<640;/* @__PURE__ */
279
- return T(z,{style:[Tl.header,s&&Tl.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Tl.sectionTitle,s&&Tl.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function vl({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=lr(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:Tl.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Tl.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Tl.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function Wl({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:a,selectedGame:c,selectedPropositionCount:s,setExpectedCorrect:d,handlePropositionCountChange:h,bodyFont:u,screenSize:f}=lr(),g=a.colors,p=Ge(a),y="mobile"===f,{width:m}=F(),b=m>=640,w=l(()=>o??Wo(c,s),[o,c,s]),x=w?.options??[],k=t=>{null!=t?.expectedCorrect&&d(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!w)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:g.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,v=w.continueLabel??"Continue";/* @__PURE__ */
280
- return T(z,{style:[Tl.container,{backgroundColor:g.background}],children:[t?/* @__PURE__ */W(z,{style:Tl.backRow,children:/* @__PURE__ */W(Yr,{onBack:t,label:i})}):null,/* @__PURE__ */T(ht,{style:Tl.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Tl.sectionTitle,Tl.sectionTitleInBody,{color:g.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
281
- /* @__PURE__ */T(z,{style:Tl.headerBlock,children:[
282
- /* @__PURE__ */W(Mr,{iconUrl:qe(c),gameName:c.game_name,height:y?24:32,chipColor:g.primary,textColor:g.text,iconColor:g.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Tl.pickSubtitle,{color:g.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Tl.tagline,{color:g.textMuted}],children:w.heroTagline??B}):null]}),x.length>0?/* @__PURE__ */W(z,{style:[Tl.cardList,b&&x.length>1&&Tl.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Tl.cardCell:void 0,children:/* @__PURE__ */W(Bl,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(zl,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:v}):null]})]})}var Tl=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 Al(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 Rl({iconUrl:e,size:t=56}){const{theme:n}=lr(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=ce(r,ae(n),i);/* @__PURE__ */
283
- return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Al(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Tn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Ll({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=lr(),a=i.colors,c=Ge(i),s="mobile"===l,{width:d}=F(),h=d>=640;/* @__PURE__ */
284
- return T(z,{style:[Dl.block,h&&Dl.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[Dl.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
285
- /* @__PURE__ */W(Mr,{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:[Dl.tagline,h&&Dl.taglineWide,{color:a.textMuted}],children:o}):null]})}var Dl=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 Ml({ariaLabel:e,children:t}){const{width:n}=F();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:Hl.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:Hl.rail,children:t})}function Pl(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var Hl=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function Ol({legs:e,prizeBall:t=!0}){const{theme:n}=lr(),o=n.colors.primary,r=ae(n);/* @__PURE__ */
286
- 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 Il({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=lr(),a=l.colors,s=Ge(l),d=ne(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:f}=F(),g=f>=640,[p,y]=c(!1);/* @__PURE__ */
287
- return T(z,{...it(()=>y(!0),()=>y(!1)),style:[El.card,g&&El.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:[El.cardMain,g&&El.cardMainWide],children:[e,
288
- /* @__PURE__ */T(z,{style:[El.cardText,g&&El.cardTextWide],children:[/* @__PURE__ */T(z,{style:El.titleRow,children:[/* @__PURE__ */W(S,{style:[El.cardTitle,g&&El.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[El.statChip,{backgroundColor:Al(h,.12)}],children:/* @__PURE__ */W(S,{style:[El.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:El.detailBlock,children:(g?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[El.detailLine,g&&El.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
289
- /* @__PURE__ */W(z,{style:[El.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:[El.childrenWrap,{borderTopColor:Al(d,.08)}],children:i}):null]})}var El=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 jl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=lr(),r=Ge(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
290
- return T(z,{style:[Gl.header,a&&Gl.headerCompact],children:[/* @__PURE__ */W(S,{style:[Gl.sectionTitle,a&&Gl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Nl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p}=lr(),y=a.colors,m=Ne(a),b=Ge(a),w=ne(a),x=he(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>r??Xr(s),[r,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!Kr(s)||!L)/* @__PURE__ */return W(z,{style:[Gl.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=qr(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Gl.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Gl.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Gl.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
291
- return T(z,{style:[Gl.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Gl.backRow,children:/* @__PURE__ */W(Yr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Gl.inner,children:[o?null:/* @__PURE__ */W(S,{style:[Gl.sectionTitle,Gl.sectionTitleInBody,v&&Gl.sectionTitleInBodyWide,{color:y.primary,fontFamily:b,textAlign:"center"}],children:"The fastest multi"}),
292
- /* @__PURE__ */W(Ll,{eyebrow:o?null:"The fastest multi",iconUrl:qe(s),gameName:s.game_name,tagline:L.tagline}),
293
- /* @__PURE__ */T(z,{style:[Gl.ticket,v&&Gl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
294
- /* @__PURE__ */W(z,{style:Gl.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
295
- return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Gl.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Gl.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
296
- /* @__PURE__ */T(z,{style:Gl.hintRow,children:[/* @__PURE__ */W(S,{style:[Gl.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Gl.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
297
- /* @__PURE__ */T(z,{style:Gl.stakeBlock,children:[E("Stake",Zt(P)),
298
- /* @__PURE__ */T(z,{style:[Gl.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Gl.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==L.maxStake?Math.min(t,L.maxStake):t})(t))},style:[Gl.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
299
- /* @__PURE__ */W(z,{style:Gl.chipRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
300
- return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[Gl.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[Gl.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!I&&P>0?/* @__PURE__ */T(S,{style:[Gl.errorText,{color:y.error}],children:["Minimum stake is ",Zt(L.minStake),"."]}):null]}),
301
- /* @__PURE__ */T(z,{style:[Gl.dividendBlock,{borderTopColor:Al(w,.08)}],children:[
302
- /* @__PURE__ */T(z,{style:Gl.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[Gl.dividendCaption,{color:y.textMuted}],children:["If all ",D," land"]}),/* @__PURE__ */T(S,{style:[Gl.dividendCaption,{color:y.textMuted}],children:[Zt(P)," returns"]})]}),
303
- /* @__PURE__ */T(z,{style:Gl.dividendMainRow,children:[/* @__PURE__ */T(z,{style:Gl.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[Gl.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(Ol,{legs:D})]}),/* @__PURE__ */W(S,{style:[Gl.prize,v&&Gl.prizeWide,{color:y.primary,fontFamily:b}],children:Zt(O.prize)})]}),
304
- /* @__PURE__ */T(S,{style:[Gl.multipleLine,{color:y.textMuted}],children:[(j=O.multiple,`×${(Math.round(10*j)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
305
- /* @__PURE__ */W(S,{style:[Gl.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
306
- /* @__PURE__ */T(z,{style:[Gl.modeCards,v&&Gl.modeCardsWide],children:[/* @__PURE__ */W(z,{style:v?Gl.modeCardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{I&&(h(D),u(D),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Gl.modeCardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),f(P),g(s,D),e?.())}})})]})]})]});var j}var Gl=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{marginBottom:20},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},chip:{flexGrow:1,minWidth:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},stakeChip:{flexGrow:1,minWidth:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginTop:8},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},dividendBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},dividendCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},dividendCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},dividendMainRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,marginTop:6},dividendMainLeft:{flex:1,minWidth:0,gap:3},perfectTicket:{fontSize:13},prize:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},prizeWide:{fontSize:24},multipleLine:{fontSize:11,marginTop:6,fontVariant:["tabular-nums"]},allOrNothing:{fontSize:11,fontStyle:"italic",marginTop:4},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Yl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=lr(),r=Ge(n),i=n.colors;/* @__PURE__ */
307
- return T(z,{style:Ul.titleWrap,children:[/* @__PURE__ */W(S,{style:[Ul.eyebrow,Ul.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Vl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p}=lr(),y=a.colors,m=Ne(a),b=Ge(a),w=ne(a),x=he(a),{width:k}=F(),C=k>=640,[v,A]=c(null),[R,L]=c(null),D=l(()=>r??Ho(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||!Lo(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__ */
308
- return T(z,{style:Ul.container,children:[n?/* @__PURE__ */W(z,{style:Ul.backRow,children:/* @__PURE__ */W(Yr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Ul.inner,children:[
309
- /* @__PURE__ */W(Ll,{eyebrow:o?null:"Pick your dividend",iconUrl:qe(s),gameName:s.game_name,tagline:D.tagline}),
310
- /* @__PURE__ */T(z,{style:[Ul.ticket,C&&Ul.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=Zt(I.dividend),/* @__PURE__ */T(z,{style:Ul.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Ul.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[Ul.sectionValueText,{color:w}],children:G}):null]})),
311
- /* @__PURE__ */W(Ml,{ariaLabel:"Set dividend",children:D.dividends.map(e=>{const t=e.dividend===M,n=v===e.dividend;/* @__PURE__ */
312
- return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>A(e.dividend),()=>A(null)),style:[Ul.dividendTile,Pl(C),{backgroundColor:t?Al(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[Ul.dividendValue,C&&Ul.dividendValueWide,{color:w,fontFamily:b}],children:Zt(e.dividend)}),/* @__PURE__ */T(S,{style:[Ul.dividendFrom,{color:y.textMuted}],children:["from ",Zt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
313
- /* @__PURE__ */W(S,{style:[Ul.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
314
- /* @__PURE__ */T(z,{style:[Ul.ladderDivider,{borderTopColor:Al(w,.08)}],children:[
315
- /* @__PURE__ */T(z,{style:Ul.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[Ul.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[Ul.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
316
- /* @__PURE__ */W(z,{style:Ul.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=R===e.legs;/* @__PURE__ */
317
- return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>L(e.legs),()=>L(null)),style:[Ul.rungRow,{backgroundColor:t?Al(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Ul.rungLeft,children:[/* @__PURE__ */T(S,{style:[Ul.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(Ol,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[Ul.rungStake,C&&Ul.rungStakeWide,{color:y.primary,fontFamily:b}],children:Zt(e.stake)})]},e.legs)})}),
318
- /* @__PURE__ */W(S,{style:[Ul.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
319
- /* @__PURE__ */T(z,{style:[Ul.cardList,C&&Ul.cardListWide],children:[/* @__PURE__ */W(z,{style:C?Ul.cardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${Zt(E.stake)} chasing the ${Zt(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),f(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Ul.cardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${Zt(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),f(E.stake),g(s,E.legs),e?.()}})})]})]})]});var G}var Ul=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 Zl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=lr(),r=Ge(n),i=n.colors;/* @__PURE__ */
320
- return T(z,{style:ql.titleWrap,children:[/* @__PURE__ */W(S,{style:[ql.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Kl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p,screenSize:y,bodyFont:m}=lr(),b=a.colors,w="mobile"===y,x=Ge(a),k=ne(a),C=ae(a),v=he(a),{width:A}=F(),R=A>=640,[L,D]=c(null),M=l(()=>r??ri(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||!_r(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=ti(N,O),Y=ni(N,O),V=[...G].reverse(),U=w&&V.length>4,Z=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:ql.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[ql.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[ql.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
321
- return T(z,{style:[ql.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:ql.backRow,children:/* @__PURE__ */W(Yr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:ql.inner,children:[
322
- /* @__PURE__ */W(Ll,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:qe(s),gameName:s.game_name,tagline:M.tagline}),
323
- /* @__PURE__ */T(z,{style:[ql.builder,R&&ql.builderWide,{backgroundColor:v,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",Zt(O)),
324
- /* @__PURE__ */W(z,{style:ql.betRow,children:M.stakes.map(e=>{const t=e===O;/* @__PURE__ */
325
- return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[ql.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[ql.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
326
- /* @__PURE__ */W(S,{style:[ql.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
327
- /* @__PURE__ */T(z,{style:ql.laddersBlock,children:[K(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */W(Ml,{ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===P,n=L===e.legs;/* @__PURE__ */
328
- return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>D(e.legs),()=>D(null)),style:[ql.ladderTile,Pl(R,"17%"),{backgroundColor:t?Al(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
329
- /* @__PURE__ */T(S,{style:[ql.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
330
- /* @__PURE__ */W(S,{style:[ql.ladderTilePrize,{color:k,fontFamily:x}],children:Zt(ni(e,O))}),
331
- /* @__PURE__ */T(S,{style:[ql.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
332
- /* @__PURE__ */T(z,{style:[ql.stackTable,{borderTopColor:Al(k,.08)}],children:[
333
- /* @__PURE__ */T(S,{style:[ql.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
269
+ /* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:g,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>f(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */W(S,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */W(Ln,{visible:h&&!F,anchor:k,onClose:()=>f(!1),flipUp:w,align:"left",children:/* @__PURE__ */W(z,{style:{elevation:8,backgroundColor:l.background,borderRadius:8,borderWidth:1,borderColor:l.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:L})})]})]}),h&&F&&y&&"undefined"!=typeof document?G(/* @__PURE__ */W("div",{ref:p,style:{position:"fixed",left:y.left,top:y.top,transform:y.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:L}),document.body):null]})}function Cl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=ir(),i=r.colors,l=Ge(r),a=ne(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,f="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,g=!!o||(t.dividends?.length??0)>0,p=g&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
270
+ return T(z,{...it(()=>m(!0),()=>m(!1)),style:[Wl.card,u&&Wl.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:Wl.cardMain,children:[
271
+ /* @__PURE__ */W(xl,{kind:e,balls:f,size:60}),
272
+ /* @__PURE__ */T(z,{style:Wl.cardText,children:[
273
+ /* @__PURE__ */W(S,{style:[Wl.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Wl.statChip,{backgroundColor:pl(s,.12)}],children:/* @__PURE__ */W(S,{style:[Wl.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
274
+ /* @__PURE__ */W(z,{style:Wl.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Wl.detailLine,{color:i.textMuted}],children:e},e))})]}),
275
+ /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),g?/* @__PURE__ */W(z,{style:[Wl.dividendsWrap,{borderTopColor:pl(a,.08)}],children:/* @__PURE__ */W(p?kl:Sl,{option:t,renderDividends:o})}):null]})}function Bl({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=ir(),i=r.colors,l=ne(r),a=ae(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,[f,g]=c(!1);/* @__PURE__ */
276
+ return W(z,{...it(()=>g(!0),()=>g(!1)),style:[Wl.card,u&&Wl.cardWide,{backgroundColor:d,borderColor:f?s:i.border,shadowColor:f?s:"#000",shadowOpacity:f?.28:.08,shadowRadius:f?14:8,shadowOffset:{width:0,height:f?12:8},elevation:f?4:1,transform:[{translateY:f?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Wl.cardMain,children:[
277
+ /* @__PURE__ */W(xl,{kind:e,size:60}),
278
+ /* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Wl.bulletRow,children:[/* @__PURE__ */W(z,{style:[Wl.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Wl.bulletText,{color:l}],children:e})]},e))}),
279
+ /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:f?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function zl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=ir(),i=Ge(n),l=n.colors,a=Wo(o,r),{width:c}=F(),s=c<640;/* @__PURE__ */
280
+ return T(z,{style:[Wl.header,s&&Wl.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Wl.sectionTitle,s&&Wl.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function Fl({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=ir(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:Wl.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Wl.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Wl.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function vl({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:a,selectedGame:c,selectedPropositionCount:s,setExpectedCorrect:d,handlePropositionCountChange:h,bodyFont:u,screenSize:f}=ir(),g=a.colors,p=Ge(a),y="mobile"===f,{width:m}=F(),b=m>=640,w=l(()=>o??Wo(c,s),[o,c,s]),x=w?.options??[],k=t=>{null!=t?.expectedCorrect&&d(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!w)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:g.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,v=w.continueLabel??"Continue";/* @__PURE__ */
281
+ return T(z,{style:[Wl.container,{backgroundColor:g.background}],children:[t?/* @__PURE__ */W(z,{style:Wl.backRow,children:/* @__PURE__ */W(Gr,{onBack:t,label:i})}):null,/* @__PURE__ */T(ht,{style:Wl.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Wl.sectionTitle,Wl.sectionTitleInBody,{color:g.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
282
+ /* @__PURE__ */T(z,{style:Wl.headerBlock,children:[
283
+ /* @__PURE__ */W(Dr,{iconUrl:qe(c),gameName:c.game_name,height:y?24:32,chipColor:g.primary,textColor:g.text,iconColor:g.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Wl.pickSubtitle,{color:g.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Wl.tagline,{color:g.textMuted}],children:w.heroTagline??B}):null]}),x.length>0?/* @__PURE__ */W(z,{style:[Wl.cardList,b&&x.length>1&&Wl.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Wl.cardCell:void 0,children:/* @__PURE__ */W(Cl,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(Bl,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:v}):null]})]})}var Wl=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 Tl(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 Al({iconUrl:e,size:t=56}){const{theme:n}=ir(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=ce(r,ae(n),i);/* @__PURE__ */
284
+ return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Tl(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Tn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Rl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=ir(),a=i.colors,c=Ge(i),s="mobile"===l,{width:d}=F(),h=d>=640;/* @__PURE__ */
285
+ return T(z,{style:[Ll.block,h&&Ll.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[Ll.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
286
+ /* @__PURE__ */W(Dr,{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:[Ll.tagline,h&&Ll.taglineWide,{color:a.textMuted}],children:o}):null]})}var Ll=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 Dl({ariaLabel:e,children:t}){const{width:n}=F();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:Pl.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:Pl.rail,children:t})}function Ml(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var Pl=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function Hl({legs:e,prizeBall:t=!0}){const{theme:n}=ir(),o=n.colors.primary,r=ae(n);/* @__PURE__ */
287
+ return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function Ol({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=ir(),a=l.colors,s=Ge(l),d=ne(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:f}=F(),g=f>=640,[p,y]=c(!1);/* @__PURE__ */
288
+ return T(z,{...it(()=>y(!0),()=>y(!1)),style:[Il.card,g&&Il.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:[Il.cardMain,g&&Il.cardMainWide],children:[e,
289
+ /* @__PURE__ */T(z,{style:[Il.cardText,g&&Il.cardTextWide],children:[/* @__PURE__ */T(z,{style:Il.titleRow,children:[/* @__PURE__ */W(S,{style:[Il.cardTitle,g&&Il.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[Il.statChip,{backgroundColor:Tl(h,.12)}],children:/* @__PURE__ */W(S,{style:[Il.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:Il.detailBlock,children:(g?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[Il.detailLine,g&&Il.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
290
+ /* @__PURE__ */W(z,{style:[Il.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:[Il.childrenWrap,{borderTopColor:Tl(d,.08)}],children:i}):null]})}var Il=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 El({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=ir(),r=Ge(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
291
+ return T(z,{style:[Nl.header,a&&Nl.headerCompact],children:[/* @__PURE__ */W(S,{style:[Nl.sectionTitle,a&&Nl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?.game_name})]})}function jl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p}=ir(),y=a.colors,m=Ne(a),b=Ge(a),w=ne(a),x=he(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>r??qr(s),[r,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!Zr(s)||!L)/* @__PURE__ */return W(z,{style:[Nl.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=Kr(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Nl.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Nl.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Nl.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
292
+ return T(z,{style:[Nl.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Nl.backRow,children:/* @__PURE__ */W(Gr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Nl.inner,children:[
293
+ /* @__PURE__ */W(Rl,{eyebrow:o?null:"The fastest multi",iconUrl:qe(s),gameName:s.game_name,tagline:L.tagline}),
294
+ /* @__PURE__ */T(z,{style:[Nl.ticket,v&&Nl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
295
+ /* @__PURE__ */W(z,{style:Nl.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
296
+ return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Nl.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Nl.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
297
+ /* @__PURE__ */T(z,{style:Nl.hintRow,children:[/* @__PURE__ */W(S,{style:[Nl.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Nl.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
298
+ /* @__PURE__ */T(z,{style:Nl.stakeBlock,children:[E("Stake",Zt(P)),
299
+ /* @__PURE__ */T(z,{style:[Nl.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Nl.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==L.maxStake?Math.min(t,L.maxStake):t})(t))},style:[Nl.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
300
+ /* @__PURE__ */W(z,{style:Nl.chipRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
301
+ return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[Nl.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[Nl.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!I&&P>0?/* @__PURE__ */T(S,{style:[Nl.errorText,{color:y.error}],children:["Minimum stake is ",Zt(L.minStake),"."]}):null]}),
302
+ /* @__PURE__ */T(z,{style:[Nl.dividendBlock,{borderTopColor:Tl(w,.08)}],children:[
303
+ /* @__PURE__ */T(z,{style:Nl.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[Nl.dividendCaption,{color:y.textMuted}],children:["If all ",D," land"]}),/* @__PURE__ */T(S,{style:[Nl.dividendCaption,{color:y.textMuted}],children:[Zt(P)," returns"]})]}),
304
+ /* @__PURE__ */T(z,{style:Nl.dividendMainRow,children:[/* @__PURE__ */T(z,{style:Nl.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[Nl.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(Hl,{legs:D})]}),/* @__PURE__ */W(S,{style:[Nl.prize,v&&Nl.prizeWide,{color:y.primary,fontFamily:b}],children:Zt(O.prize)})]}),
305
+ /* @__PURE__ */T(S,{style:[Nl.multipleLine,{color:y.textMuted}],children:[(j=O.multiple,`×${(Math.round(10*j)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
306
+ /* @__PURE__ */W(S,{style:[Nl.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
307
+ /* @__PURE__ */T(z,{style:[Nl.modeCards,v&&Nl.modeCardsWide],children:[/* @__PURE__ */W(z,{style:v?Nl.modeCardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{I&&(h(D),u(D),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Nl.modeCardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),f(P),g(s,D),e?.())}})})]})]})]});var j}var Nl=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 Gl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=ir(),r=Ge(n),i=n.colors;/* @__PURE__ */
308
+ return T(z,{style:Vl.titleWrap,children:[/* @__PURE__ */W(S,{style:[Vl.eyebrow,Vl.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Yl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p}=ir(),y=a.colors,m=Ne(a),b=Ge(a),w=ne(a),x=he(a),{width:k}=F(),C=k>=640,[v,A]=c(null),[R,L]=c(null),D=l(()=>r??Ho(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||!Lo(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No dividend series available."})});const I=D.dividends.find(e=>e.dividend===M)??D.dividends[0],E=I.rungs.find(e=>e.legs===H)??I.rungs[0],j=Math.max(...I.rungs.map(e=>e.legs)),N=Math.min(...I.rungs.map(e=>e.legs));/* @__PURE__ */
309
+ return T(z,{style:Vl.container,children:[n?/* @__PURE__ */W(z,{style:Vl.backRow,children:/* @__PURE__ */W(Gr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Vl.inner,children:[
310
+ /* @__PURE__ */W(Rl,{eyebrow:o?null:"Pick your dividend",iconUrl:qe(s),gameName:s.game_name,tagline:D.tagline}),
311
+ /* @__PURE__ */T(z,{style:[Vl.ticket,C&&Vl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=Zt(I.dividend),/* @__PURE__ */T(z,{style:Vl.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Vl.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[Vl.sectionValueText,{color:w}],children:G}):null]})),
312
+ /* @__PURE__ */W(Dl,{ariaLabel:"Set dividend",children:D.dividends.map(e=>{const t=e.dividend===M,n=v===e.dividend;/* @__PURE__ */
313
+ return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>A(e.dividend),()=>A(null)),style:[Vl.dividendTile,Ml(C),{backgroundColor:t?Tl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[Vl.dividendValue,C&&Vl.dividendValueWide,{color:w,fontFamily:b}],children:Zt(e.dividend)}),/* @__PURE__ */T(S,{style:[Vl.dividendFrom,{color:y.textMuted}],children:["from ",Zt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
314
+ /* @__PURE__ */W(S,{style:[Vl.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
315
+ /* @__PURE__ */T(z,{style:[Vl.ladderDivider,{borderTopColor:Tl(w,.08)}],children:[
316
+ /* @__PURE__ */T(z,{style:Vl.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[Vl.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[Vl.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
317
+ /* @__PURE__ */W(z,{style:Vl.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=R===e.legs;/* @__PURE__ */
318
+ return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>L(e.legs),()=>L(null)),style:[Vl.rungRow,{backgroundColor:t?Tl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Vl.rungLeft,children:[/* @__PURE__ */T(S,{style:[Vl.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(Hl,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[Vl.rungStake,C&&Vl.rungStakeWide,{color:y.primary,fontFamily:b}],children:Zt(e.stake)})]},e.legs)})}),
319
+ /* @__PURE__ */W(S,{style:[Vl.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
320
+ /* @__PURE__ */T(z,{style:[Vl.cardList,C&&Vl.cardListWide],children:[/* @__PURE__ */W(z,{style:C?Vl.cardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${Zt(E.stake)} chasing the ${Zt(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),f(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Vl.cardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${Zt(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),f(E.stake),g(s,E.legs),e?.()}})})]})]})]});var G}var Vl=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 Ul({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=ir(),r=Ge(n),i=n.colors;/* @__PURE__ */
321
+ return T(z,{style:Kl.titleWrap,children:[/* @__PURE__ */W(S,{style:[Kl.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Zl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p,screenSize:y,bodyFont:m}=ir(),b=a.colors,w="mobile"===y,x=Ge(a),k=ne(a),C=ae(a),v=he(a),{width:A}=F(),R=A>=640,[L,D]=c(null),M=l(()=>r??oi(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||!$r(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=ei(N,O),Y=ti(N,O),V=[...G].reverse(),U=w&&V.length>4,Z=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:Kl.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Kl.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[Kl.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
322
+ return T(z,{style:[Kl.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:Kl.backRow,children:/* @__PURE__ */W(Gr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Kl.inner,children:[
323
+ /* @__PURE__ */W(Rl,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:qe(s),gameName:s.game_name,tagline:M.tagline}),
324
+ /* @__PURE__ */T(z,{style:[Kl.builder,R&&Kl.builderWide,{backgroundColor:v,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",Zt(O)),
325
+ /* @__PURE__ */W(z,{style:Kl.betRow,children:M.stakes.map(e=>{const t=e===O;/* @__PURE__ */
326
+ return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[Kl.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[Kl.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
327
+ /* @__PURE__ */W(S,{style:[Kl.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
328
+ /* @__PURE__ */T(z,{style:Kl.laddersBlock,children:[K(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */W(Dl,{ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===P,n=L===e.legs;/* @__PURE__ */
329
+ return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>D(e.legs),()=>D(null)),style:[Kl.ladderTile,Ml(R,"17%"),{backgroundColor:t?Tl(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
330
+ /* @__PURE__ */T(S,{style:[Kl.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
331
+ /* @__PURE__ */W(S,{style:[Kl.ladderTilePrize,{color:k,fontFamily:x}],children:Zt(ti(e,O))}),
332
+ /* @__PURE__ */T(S,{style:[Kl.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
333
+ /* @__PURE__ */T(z,{style:[Kl.stackTable,{borderTopColor:Tl(k,.08)}],children:[
334
+ /* @__PURE__ */T(S,{style:[Kl.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
334
335
  /* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:Zt(Y)})," Full Stack Prize."]}),
335
- /* @__PURE__ */T(z,{style:ql.rungHeader,children:[/* @__PURE__ */W(S,{style:[ql.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:ql.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[ql.rungHeaderCaption,ql.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[ql.rungHeaderCaption,ql.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
336
- /* @__PURE__ */W(z,{style:ql.rungList,children:Z.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
337
- return T(z,{style:ql.rungRow,children:[/* @__PURE__ */T(z,{style:ql.rungLeft,children:[/* @__PURE__ */T(z,{style:ql.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[ql.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&R?/* @__PURE__ */W(z,{style:[ql.fullStackChip,{backgroundColor:Al(C,.35)}],children:/* @__PURE__ */W(S,{style:[ql.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(Ol,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:ql.rungRight,children:[/* @__PURE__ */W(S,{style:[ql.rungPrize,ql.rungColPrice,{color:b.textMuted}],children:Zt(e.prize)}),/* @__PURE__ */W(S,{style:[ql.rungCumulative,ql.rungColTotal,R&&ql.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:Zt(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[ql.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[ql.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
338
- /* @__PURE__ */T(S,{style:[ql.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
339
- /* @__PURE__ */T(z,{style:[ql.modeCards,R&&ql.modeCardsWide],children:[/* @__PURE__ */W(z,{style:R?ql.modeCardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${N.legs} outcomes`,`Win from ${N.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(N.legs),u(N.legs),f(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:R?ql.modeCardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${Zt(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),f(O),g(s,N.legs),e?.()}})})]})]})]})}var ql=k.create({container:{flex:1},inner:{flex:1,paddingHorizontal:16,width:"100%"},backRow:{paddingHorizontal:16},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},pageTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,textAlign:"center",marginBottom:16},header:{alignItems:"center",marginBottom:24},headerWide:{marginBottom:28},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},builder:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},builderWide:{paddingHorizontal:20,paddingVertical:20},sectionLabelRow:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},sectionLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},sectionLabelValue:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},betRow:{flexDirection:"row",flexWrap:"wrap",gap:6},betChip:{flexGrow:1,flexBasis:52,minWidth:52,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},betChipText:{fontSize:14,fontWeight:"700"},betNote:{marginTop:8,fontSize:11,fontStyle:"italic"},laddersBlock:{marginTop:16},ladderGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},ladderTile:{flexGrow:1,borderWidth:1,borderRadius:12,paddingHorizontal:8,paddingVertical:12,alignItems:"center",justifyContent:"center"},ladderTileLabel:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},ladderTilePrize:{marginTop:4,fontSize:18,fontWeight:"800",letterSpacing:-.36,fontVariant:["tabular-nums"]},ladderTileNote:{marginTop:4,fontSize:10},stackTable:{marginTop:16,borderTopWidth:1,paddingTop:12},stackIntro:{marginBottom:8,fontSize:12,lineHeight:18},rungHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},rungHeaderRight:{flexDirection:"row",gap:10},rungColPrice:{width:64,textAlign:"right"},rungColPrize:{width:64,textAlign:"right"},rungColTotal:{width:84,textAlign:"right"},rungHeaderCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},rungList:{marginTop:6,gap:6},rungRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},rungLeft:{flex:1,minWidth:0,gap:3},rungLabelRow:{flexDirection:"row",alignItems:"center",gap:8,flexWrap:"wrap"},rungLabel:{fontSize:13},fullStackChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},fullStackChipText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},rungRight:{flexDirection:"row",alignItems:"baseline",gap:10,flexShrink:0},rungPrize:{fontSize:11,fontVariant:["tabular-nums"]},rungCumulative:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungCumulativeWide:{fontSize:16},tierToggle:{marginTop:8,borderWidth:1,borderRadius:8,paddingVertical:8,alignItems:"center"},tierToggleText:{fontSize:11,fontWeight:"700"},stackNote:{marginTop:8,fontSize:11,fontStyle:"italic"},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Xl({legs:e,right:t}){const{theme:n}=lr(),o=n.colors.primary,r=ae(n);/* @__PURE__ */
340
- return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,marginRight:3,backgroundColor:t?o:"transparent",borderWidth:t?0:1,borderColor:t?void 0:Al(o,.45),opacity:t?.85:1}},n)),/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Ql({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=lr(),r=Ge(n),i=n.colors;/* @__PURE__ */
341
- return T(z,{style:$l.header,children:[/* @__PURE__ */W(S,{style:[$l.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Jl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p}=lr(),y=a.colors,m=Ne(a),b=Ge(a),w=ne(a),x=he(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>r??di(s),[r,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!ci(s)||!L)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No mirror available."})});const O=si(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:$l.controlLabel,children:[/* @__PURE__ */W(S,{style:[$l.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[$l.controlValueText,{color:w}],children:t})]}),j=e=>/* @__PURE__ */T(z,{style:$l.winRow,children:[/* @__PURE__ */T(z,{style:$l.winRowLeft,children:[/* @__PURE__ */W(S,{style:[$l.winRowLabel,{color:y.text}],children:e?`All ${D} right`:`All ${D} wrong`}),/* @__PURE__ */W(Xl,{legs:D,right:e})]}),/* @__PURE__ */W(S,{style:[$l.winRowPrize,v&&$l.winRowPrizeWide,{color:y.primary,fontFamily:b}],children:Zt(O.prize)})]});/* @__PURE__ */
342
- return T(z,{style:$l.container,children:[n?/* @__PURE__ */W(z,{style:$l.backRow,children:/* @__PURE__ */W(Yr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:$l.inner,children:[o?null:/* @__PURE__ */W(S,{style:[$l.sectionTitle,{color:y.primary,fontFamily:b}],children:"All right, or all wrong"}),
343
- /* @__PURE__ */W(Ll,{eyebrow:o?null:"All right, or all wrong",iconUrl:qe(s),gameName:s.game_name,tagline:L.tagline}),
344
- /* @__PURE__ */T(z,{style:[$l.ticket,v&&$l.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
345
- /* @__PURE__ */W(z,{style:$l.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
346
- return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[$l.legChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[$l.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
347
- /* @__PURE__ */T(z,{style:$l.hintRow,children:[/* @__PURE__ */W(S,{style:[$l.hintText,{color:y.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[$l.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
348
- /* @__PURE__ */T(z,{style:$l.stakeBlock,children:[E("Stake",Zt(P)),
349
- /* @__PURE__ */T(z,{style:[$l.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[$l.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==L.maxStake?Math.min(t,L.maxStake):t})(t))},style:[$l.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
350
- /* @__PURE__ */W(z,{style:$l.quickStakeRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
351
- return W(B,{onPress:()=>H(e),style:[$l.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[$l.chipText,{color:t?y.primaryText:y.textMuted}],children:`$${e}`})},e)})}),!I&&P>0?/* @__PURE__ */W(S,{style:[$l.errorText,{color:y.error}],children:`Minimum stake is ${Zt(L.minStake)}.`}):null]}),
352
- /* @__PURE__ */T(z,{style:[$l.winSection,{borderTopColor:Al(w,.08)}],children:[
353
- /* @__PURE__ */T(z,{style:$l.winHeader,children:[/* @__PURE__ */W(S,{style:[$l.winHeaderText,{color:y.textMuted}],children:"Two ways to win"}),/* @__PURE__ */W(S,{style:[$l.winHeaderText,{color:y.textMuted}],children:`${Zt(P)} pays each`})]}),
354
- /* @__PURE__ */T(z,{style:$l.winRows,children:[j(!0),j(!1)]}),
355
- /* @__PURE__ */W(S,{style:[$l.splitNote,{color:y.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
356
- /* @__PURE__ */T(z,{style:[$l.cardList,v&&$l.cardListWide],children:[/* @__PURE__ */W(z,{style:v?$l.cardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{I&&(h(D),u(D),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?$l.cardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),f(P),g(s,D),e?.())}})})]})]})]})}var $l=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},tagline:{marginTop:12,fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabel:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},legChip:{minWidth:40,flexGrow:1,flexBasis:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{marginTop:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},quickStakeRow:{marginTop:8,flexDirection:"row",flexWrap:"wrap",gap:6},stakeChip:{minWidth:48,flexGrow:1,flexBasis:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},errorText:{marginTop:8,fontSize:12},winSection:{marginTop:16,borderTopWidth:1,paddingTop:12},winHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},winHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},winRows:{marginTop:6,gap:8},winRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},winRowLeft:{flex:1,minWidth:0,gap:3},winRowLabel:{fontSize:13},winRowPrize:{fontSize:18,fontWeight:"800",fontVariant:["tabular-nums"]},winRowPrizeWide:{fontSize:20},splitNote:{marginTop:8,fontSize:11,fontStyle:"italic"},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function _l({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=lr(),r=Ge(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
357
- return T(z,{style:[ta.header,a&&ta.headerCompact],children:[/* @__PURE__ */W(S,{style:[ta.sectionTitle,a&&ta.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?.game_name})]})}function ea({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,setSelectedRuleId:g,quickPickGame:p,goToSportSelection:y}=lr(),m=a.colors,b=Ne(a),w=Ge(a),x=ne(a),k=he(a),{width:v}=F(),A=v>=640,[R,L]=c(!1),D=l(()=>r??Bo(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||!go(s)||!D)/* @__PURE__ */return W(z,{style:[ta.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=bo(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:ta.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[ta.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[ta.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[ta.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[ta.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),Z=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
358
- return T(z,{style:[ta.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:ta.backRow,children:/* @__PURE__ */W(Yr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:ta.inner,children:[o?null:/* @__PURE__ */W(S,{style:[ta.sectionTitle,ta.sectionTitleInBody,A&&ta.sectionTitleInBodyWide,{color:m.primary,fontFamily:w,textAlign:"center"}],children:"Choose your safety net"}),
359
- /* @__PURE__ */W(Ll,{eyebrow:o?null:"Choose your safety net",iconUrl:qe(s),gameName:s.game_name,tagline:D.tagline}),
360
- /* @__PURE__ */T(z,{style:[ta.ticket,A&&ta.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),
361
- /* @__PURE__ */W(z,{style:ta.chipRow,children:D.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=D.modes.find(t=>t.id===e);t&&(P(e),g(t.ruleId),t.legOptions.includes(H)||O(t.legOptions.reduce((e,t)=>Math.abs(t-H)<Math.abs(e-H)?t:e,t.legOptions[0])))})(e.id)))}),
362
- /* @__PURE__ */W(S,{style:[ta.modeExplain,A&&ta.modeExplainWide,{color:m.textMuted}],children:j.explain}),
363
- /* @__PURE__ */T(z,{style:ta.legsBlock,children:[V("Legs",`${H} legs`),
364
- /* @__PURE__ */W(z,{style:ta.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
365
- /* @__PURE__ */T(z,{style:ta.hintRow,children:[/* @__PURE__ */W(S,{style:[ta.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[ta.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
366
- /* @__PURE__ */T(z,{style:ta.stakeBlock,children:[V("Stake",Zt(I)),
367
- /* @__PURE__ */T(z,{style:[ta.inputWrap,{borderColor:R?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[ta.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>L(!0),onBlur:()=>L(!1),value:I?String(I):"",onChangeText:e=>{if(""===e)return void E(0);const t=Number(e);Number.isFinite(t)&&E(G(t))},style:[ta.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
368
- /* @__PURE__ */W(z,{style:ta.chipRow,children:D.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[ta.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[ta.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[ta.errorText,{color:m.error}],children:["Minimum stake is ",Zt(D.minStake),"."]}):null]}),
369
- /* @__PURE__ */T(z,{style:[ta.prizeBlock,{borderTopColor:Al(x,.08)}],children:[
370
- /* @__PURE__ */T(z,{style:ta.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[ta.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[ta.prizeCaption,{color:m.textMuted}],children:[Zt(I)," returns"]})]}),
371
- /* @__PURE__ */T(z,{style:ta.prizeRows,children:[Z.map(e=>/* @__PURE__ */T(z,{style:ta.prizeRow,children:[/* @__PURE__ */W(S,{style:[ta.prizeRowLabel,A&&ta.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[ta.prizeRowAmount,A&&ta.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:Zt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[ta.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:ta.sweepLeft,children:[/* @__PURE__ */W(S,{style:[ta.sweepLabel,A&&ta.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[ta.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[ta.sweepAmount,A&&ta.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:Zt(Math.round(N.sweep))})]})]}),
372
- /* @__PURE__ */W(S,{style:[ta.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
373
- /* @__PURE__ */T(S,{style:[ta.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
374
- /* @__PURE__ */T(z,{style:[ta.modeCards,A&&ta.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?ta.modeCardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{Y&&(g(j.ruleId),h(H),u(H-j.allowedMisses),f(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?ta.modeCardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{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&&(g(j.ruleId),u(H-j.allowedMisses),f(I),p(s,H),e?.())}})})]})]})]})}var ta=k.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{marginBottom:20},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},chip:{flexGrow:1,minWidth:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},stakeChip:{flexGrow:1,minWidth:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},modeExplain:{fontSize:12,lineHeight:17,marginTop:8},modeExplainWide:{fontSize:13,lineHeight:18},legsBlock:{marginTop:16},hintRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginTop:8},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12,marginBottom:8},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},prizeBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},prizeCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},prizeCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},prizeRows:{marginTop:6,gap:6},prizeRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},prizeRowLabel:{fontSize:12},prizeRowLabelWide:{fontSize:13},prizeRowAmount:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},prizeRowAmountWide:{fontSize:16},sweepRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:12,paddingHorizontal:12,paddingVertical:10,marginTop:4},sweepLeft:{flex:1,minWidth:0,gap:2},sweepLabel:{fontSize:14,fontWeight:"800"},sweepLabelWide:{fontSize:15},sweepSub:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.6,opacity:.75},sweepAmount:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},sweepAmountWide:{fontSize:24},stakeNote:{fontSize:11,marginTop:6},missNote:{fontSize:11,fontStyle:"italic",marginTop:4},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function na({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=lr(),r=Ge(n),i=n.colors;/* @__PURE__ */
375
- return T(z,{style:ra.header,children:[/* @__PURE__ */W(S,{style:[ra.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(Vr,{onBack:e,hideActions:t,label:o?.game_name})]})}function oa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:a,selectedPropositionCount:s,handlePropositionCountChange:d,setExpectedCorrect:h,quickPickGame:u,goToSportSelection:f}=lr(),g=i.colors,p=Ne(i),y=Ge(i),{width:m}=F(),b=m>=640,w=l(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=on(a);return Bn(e,t)},[a]),x=fi(a),k=w[0]??0,C=w[w.length-1]??0,[B]=c(()=>null!=s&&w.includes(s)?s:C),v=l(()=>Wo(a,B||void 0),[a,B]);if(!a||0===w.length||"exact"!==v?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:g.textMuted,fontFamily:p},children:"No setup available."})});const A=x?["Any yes/no props in the pool",`Pick ${k}–${C} legs — all must land`]:["A clean yes or no on every leg",`All ${B} have to land`],R=x?[`We fill ${B} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${B} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
376
- return T(z,{style:ra.container,children:[n?/* @__PURE__ */W(z,{style:ra.backRow,children:/* @__PURE__ */W(Yr,{onBack:n,label:r})}):null,/* @__PURE__ */T(ht,{style:ra.inner,children:[o?null:/* @__PURE__ */W(S,{style:[ra.sectionTitle,b&&ra.sectionTitleWide,{color:g.primary,fontFamily:y}],children:v.title}),
377
- /* @__PURE__ */W(Ll,{eyebrow:o?null:v.title,iconUrl:qe(a),gameName:a.game_name,tagline:v.heroTagline}),
378
- /* @__PURE__ */T(z,{style:[ra.cardList,b&&ra.cardListWide],children:[/* @__PURE__ */W(z,{style:b?ra.cardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:qe(a),size:60}),label:"Pick my own",stat:"Your calls",detail:A,onSelect:()=>{x||(d(B),h(B)),f(),t?.()}})}),/* @__PURE__ */W(z,{style:b?ra.cardCell:void 0,children:/* @__PURE__ */W(Il,{tile:/* @__PURE__ */W(Rl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:R,onSelect:()=>{h(B),u(a,B),e?.()}})})]})]})]})}var ra=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},sectionTitleWide:{marginBottom:20},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function ia({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=lr(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(hi(l)){case"game_set":/* @__PURE__ */return W(Nl,{...s});case"pick_your_dividend":/* @__PURE__ */return W(Vl,{...s});case"ladder":/* @__PURE__ */return W(Kl,{...s});case"mirror":/* @__PURE__ */return W(Jl,{...s});case"safety_net":/* @__PURE__ */return W(ea,{...s});case"rule_setup":return"exact"===Wo(l)?.kind?/* @__PURE__ */W(oa,{...s}):/* @__PURE__ */W(Wl,{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 la({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=lr(),l=ne(i),a=ae(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,f=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
336
+ /* @__PURE__ */T(z,{style:Kl.rungHeader,children:[/* @__PURE__ */W(S,{style:[Kl.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:Kl.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[Kl.rungHeaderCaption,Kl.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[Kl.rungHeaderCaption,Kl.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
337
+ /* @__PURE__ */W(z,{style:Kl.rungList,children:Z.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
338
+ return T(z,{style:Kl.rungRow,children:[/* @__PURE__ */T(z,{style:Kl.rungLeft,children:[/* @__PURE__ */T(z,{style:Kl.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[Kl.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&R?/* @__PURE__ */W(z,{style:[Kl.fullStackChip,{backgroundColor:Tl(C,.35)}],children:/* @__PURE__ */W(S,{style:[Kl.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(Hl,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:Kl.rungRight,children:[/* @__PURE__ */W(S,{style:[Kl.rungPrize,Kl.rungColPrice,{color:b.textMuted}],children:Zt(e.prize)}),/* @__PURE__ */W(S,{style:[Kl.rungCumulative,Kl.rungColTotal,R&&Kl.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:Zt(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[Kl.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[Kl.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
339
+ /* @__PURE__ */T(S,{style:[Kl.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
340
+ /* @__PURE__ */T(z,{style:[Kl.modeCards,R&&Kl.modeCardsWide],children:[/* @__PURE__ */W(z,{style:R?Kl.modeCardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${N.legs} outcomes`,`Win from ${N.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(N.legs),u(N.legs),f(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:R?Kl.modeCardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${Zt(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),f(O),g(s,N.legs),e?.()}})})]})]})]})}var Kl=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 ql({legs:e,right:t}){const{theme:n}=ir(),o=n.colors.primary,r=ae(n);/* @__PURE__ */
341
+ return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,marginRight:3,backgroundColor:t?o:"transparent",borderWidth:t?0:1,borderColor:t?void 0:Tl(o,.45),opacity:t?.85:1}},n)),/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Xl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=ir(),r=Ge(n),i=n.colors;/* @__PURE__ */
342
+ return T(z,{style:Jl.header,children:[/* @__PURE__ */W(S,{style:[Jl.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Ql({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,quickPickGame:g,goToSportSelection:p}=ir(),y=a.colors,m=Ne(a),b=Ge(a),w=ne(a),x=he(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>r??si(s),[r,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!ai(s)||!L)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No mirror available."})});const O=ci(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Jl.controlLabel,children:[/* @__PURE__ */W(S,{style:[Jl.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Jl.controlValueText,{color:w}],children:t})]}),j=e=>/* @__PURE__ */T(z,{style:Jl.winRow,children:[/* @__PURE__ */T(z,{style:Jl.winRowLeft,children:[/* @__PURE__ */W(S,{style:[Jl.winRowLabel,{color:y.text}],children:e?`All ${D} right`:`All ${D} wrong`}),/* @__PURE__ */W(ql,{legs:D,right:e})]}),/* @__PURE__ */W(S,{style:[Jl.winRowPrize,v&&Jl.winRowPrizeWide,{color:y.primary,fontFamily:b}],children:Zt(O.prize)})]});/* @__PURE__ */
343
+ return T(z,{style:Jl.container,children:[n?/* @__PURE__ */W(z,{style:Jl.backRow,children:/* @__PURE__ */W(Gr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Jl.inner,children:[
344
+ /* @__PURE__ */W(Rl,{eyebrow:o?null:"All right, or all wrong",iconUrl:qe(s),gameName:s.game_name,tagline:L.tagline}),
345
+ /* @__PURE__ */T(z,{style:[Jl.ticket,v&&Jl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
346
+ /* @__PURE__ */W(z,{style:Jl.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
347
+ return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[Jl.legChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Jl.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
348
+ /* @__PURE__ */T(z,{style:Jl.hintRow,children:[/* @__PURE__ */W(S,{style:[Jl.hintText,{color:y.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[Jl.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
349
+ /* @__PURE__ */T(z,{style:Jl.stakeBlock,children:[E("Stake",Zt(P)),
350
+ /* @__PURE__ */T(z,{style:[Jl.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Jl.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==L.maxStake?Math.min(t,L.maxStake):t})(t))},style:[Jl.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
351
+ /* @__PURE__ */W(z,{style:Jl.quickStakeRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
352
+ return W(B,{onPress:()=>H(e),style:[Jl.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Jl.chipText,{color:t?y.primaryText:y.textMuted}],children:`$${e}`})},e)})}),!I&&P>0?/* @__PURE__ */W(S,{style:[Jl.errorText,{color:y.error}],children:`Minimum stake is ${Zt(L.minStake)}.`}):null]}),
353
+ /* @__PURE__ */T(z,{style:[Jl.winSection,{borderTopColor:Tl(w,.08)}],children:[
354
+ /* @__PURE__ */T(z,{style:Jl.winHeader,children:[/* @__PURE__ */W(S,{style:[Jl.winHeaderText,{color:y.textMuted}],children:"Two ways to win"}),/* @__PURE__ */W(S,{style:[Jl.winHeaderText,{color:y.textMuted}],children:`${Zt(P)} pays each`})]}),
355
+ /* @__PURE__ */T(z,{style:Jl.winRows,children:[j(!0),j(!1)]}),
356
+ /* @__PURE__ */W(S,{style:[Jl.splitNote,{color:y.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
357
+ /* @__PURE__ */T(z,{style:[Jl.cardList,v&&Jl.cardListWide],children:[/* @__PURE__ */W(z,{style:v?Jl.cardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{I&&(h(D),u(D),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Jl.cardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),f(P),g(s,D),e?.())}})})]})]})]})}var Jl=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{marginTop:12,fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabel:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},legChip:{minWidth:40,flexGrow:1,flexBasis:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{marginTop:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},quickStakeRow:{marginTop:8,flexDirection:"row",flexWrap:"wrap",gap:6},stakeChip:{minWidth:48,flexGrow:1,flexBasis:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},errorText:{marginTop:8,fontSize:12},winSection:{marginTop:16,borderTopWidth:1,paddingTop:12},winHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},winHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},winRows:{marginTop:6,gap:8},winRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},winRowLeft:{flex:1,minWidth:0,gap:3},winRowLabel:{fontSize:13},winRowPrize:{fontSize:18,fontWeight:"800",fontVariant:["tabular-nums"]},winRowPrizeWide:{fontSize:20},splitNote:{marginTop:8,fontSize:11,fontStyle:"italic"},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function $l({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=ir(),r=Ge(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
358
+ return T(z,{style:[ea.header,a&&ea.headerCompact],children:[/* @__PURE__ */W(S,{style:[ea.sectionTitle,a&&ea.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?.game_name})]})}function _l({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:f,setSelectedRuleId:g,quickPickGame:p,goToSportSelection:y}=ir(),m=a.colors,b=Ne(a),w=Ge(a),x=ne(a),k=he(a),{width:v}=F(),A=v>=640,[R,L]=c(!1),D=l(()=>r??Bo(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||!go(s)||!D)/* @__PURE__ */return W(z,{style:[ea.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=bo(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:ea.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[ea.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[ea.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[ea.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[ea.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),Z=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
359
+ return T(z,{style:[ea.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:ea.backRow,children:/* @__PURE__ */W(Gr,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:ea.inner,children:[
360
+ /* @__PURE__ */W(Rl,{eyebrow:o?null:"Choose your safety net",iconUrl:qe(s),gameName:s.game_name,tagline:D.tagline}),
361
+ /* @__PURE__ */T(z,{style:[ea.ticket,A&&ea.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),
362
+ /* @__PURE__ */W(z,{style:ea.chipRow,children:D.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=D.modes.find(t=>t.id===e);t&&(P(e),g(t.ruleId),t.legOptions.includes(H)||O(t.legOptions.reduce((e,t)=>Math.abs(t-H)<Math.abs(e-H)?t:e,t.legOptions[0])))})(e.id)))}),
363
+ /* @__PURE__ */W(S,{style:[ea.modeExplain,A&&ea.modeExplainWide,{color:m.textMuted}],children:j.explain}),
364
+ /* @__PURE__ */T(z,{style:ea.legsBlock,children:[V("Legs",`${H} legs`),
365
+ /* @__PURE__ */W(z,{style:ea.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
366
+ /* @__PURE__ */T(z,{style:ea.hintRow,children:[/* @__PURE__ */W(S,{style:[ea.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[ea.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
367
+ /* @__PURE__ */T(z,{style:ea.stakeBlock,children:[V("Stake",Zt(I)),
368
+ /* @__PURE__ */T(z,{style:[ea.inputWrap,{borderColor:R?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[ea.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>L(!0),onBlur:()=>L(!1),value:I?String(I):"",onChangeText:e=>{if(""===e)return void E(0);const t=Number(e);Number.isFinite(t)&&E(G(t))},style:[ea.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
369
+ /* @__PURE__ */W(z,{style:ea.chipRow,children:D.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[ea.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[ea.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[ea.errorText,{color:m.error}],children:["Minimum stake is ",Zt(D.minStake),"."]}):null]}),
370
+ /* @__PURE__ */T(z,{style:[ea.prizeBlock,{borderTopColor:Tl(x,.08)}],children:[
371
+ /* @__PURE__ */T(z,{style:ea.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[ea.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[ea.prizeCaption,{color:m.textMuted}],children:[Zt(I)," returns"]})]}),
372
+ /* @__PURE__ */T(z,{style:ea.prizeRows,children:[Z.map(e=>/* @__PURE__ */T(z,{style:ea.prizeRow,children:[/* @__PURE__ */W(S,{style:[ea.prizeRowLabel,A&&ea.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[ea.prizeRowAmount,A&&ea.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:Zt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[ea.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:ea.sweepLeft,children:[/* @__PURE__ */W(S,{style:[ea.sweepLabel,A&&ea.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[ea.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[ea.sweepAmount,A&&ea.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:Zt(Math.round(N.sweep))})]})]}),
373
+ /* @__PURE__ */W(S,{style:[ea.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
374
+ /* @__PURE__ */T(S,{style:[ea.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
375
+ /* @__PURE__ */T(z,{style:[ea.modeCards,A&&ea.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?ea.modeCardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:qe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{Y&&(g(j.ruleId),h(H),u(H-j.allowedMisses),f(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?ea.modeCardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{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&&(g(j.ruleId),u(H-j.allowedMisses),f(I),p(s,H),e?.())}})})]})]})]})}var ea=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 ta({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=ir(),r=Ge(n),i=n.colors;/* @__PURE__ */
376
+ return T(z,{style:oa.header,children:[/* @__PURE__ */W(S,{style:[oa.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(Yr,{onBack:e,hideActions:t,label:o?.game_name})]})}function na({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:a,selectedPropositionCount:s,handlePropositionCountChange:d,setExpectedCorrect:h,quickPickGame:u,goToSportSelection:f}=ir(),g=i.colors,p=Ne(i),{width:y}=F(),m=y>=640,b=l(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=on(a);return Bn(e,t)},[a]),w=ui(a),x=b[0]??0,k=b[b.length-1]??0,[C]=c(()=>null!=s&&b.includes(s)?s:k),B=l(()=>Wo(a,C||void 0),[a,C]);if(!a||0===b.length||"exact"!==B?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:g.textMuted,fontFamily:p},children:"No setup available."})});const v=w?["Any yes/no props in the pool",`Pick ${x}–${k} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],A=w?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
377
+ return T(z,{style:oa.container,children:[n?/* @__PURE__ */W(z,{style:oa.backRow,children:/* @__PURE__ */W(Gr,{onBack:n,label:r})}):null,/* @__PURE__ */T(ht,{style:oa.inner,children:[/* @__PURE__ */W(Rl,{eyebrow:o?null:B.title,iconUrl:qe(a),gameName:a.game_name,tagline:B.heroTagline}),/* @__PURE__ */T(z,{style:[oa.cardList,m&&oa.cardListWide],children:[/* @__PURE__ */W(z,{style:m?oa.cardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:qe(a),size:60}),label:"Pick my own",stat:"Your calls",detail:v,onSelect:()=>{w||(d(C),h(C)),f(),t?.()}})}),/* @__PURE__ */W(z,{style:m?oa.cardCell:void 0,children:/* @__PURE__ */W(Ol,{tile:/* @__PURE__ */W(Al,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:A,onSelect:()=>{h(C),u(a,C),e?.()}})})]})]})]})}var oa=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 ra({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=ir(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(di(l)){case"game_set":/* @__PURE__ */return W(jl,{...s});case"pick_your_dividend":/* @__PURE__ */return W(Yl,{...s});case"ladder":/* @__PURE__ */return W(Zl,{...s});case"mirror":/* @__PURE__ */return W(Ql,{...s});case"safety_net":/* @__PURE__ */return W(_l,{...s});case"rule_setup":return"exact"===Wo(l)?.kind?/* @__PURE__ */W(na,{...s}):/* @__PURE__ */W(vl,{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 ia({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=ir(),l=ne(i),a=ae(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,f=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
379
378
  return T(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[
380
379
  /* @__PURE__ */W(Tn,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
381
380
  /* @__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"})]}),
382
381
  /* @__PURE__ */W(z,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c}}),
383
- /* @__PURE__ */W(z,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:f,fontWeight:"500",letterSpacing:.012*-f,lineHeight:1.14*f,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*f,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{Ko as BladeApiClient,la as BrandLockup,kt as CategoryIcon,Ni as CategoryPickerPage,ji as CategoryPickerPageActions,Ei as CategoryPickerPageTitle,St as ChevronRightIcon,il as ConfirmPage,rl as ConfirmPageActions,ol as ConfirmPageTitle,ho as DOUBLE_SHOT_MIN_LEGS,so as EXTRA_SHOT_MIN_LEGS,gl as EntriesPage,fl as EntriesPageTitle,Wr as EntrySubmission,jr as EventFilterBanner,Ui as EventPickerPage,vt as FilterChipCarousel,Wt as FilterChipRow,oo as GAME_TIER_LEVEL,ro as GAME_TIER_TABS,Or as GameEntries,Mi as GameLogo,mi as GamePage,yi as GamePageActions,pi as GamePageTitle,Vo as GameSelector,Nl as GameSetBetPage,jl as GameSetBetPageTitle,ia as GameSetupPage,wt as HowToPlayButton,ft as HowToPlayPanel,$r as LADDER_FAMILY,Qr as LADDER_REFERENCE_BET,Jr as LADDER_STAKES,Kl as LadderPage,Zl as LadderPageTitle,Ct as LockIcon,ii as MIRROR_STANDARD_MARGIN,Jl as MirrorPage,Ql as MirrorPageTitle,Ro as PYD_LEG_RUNGS,Ao as PYD_RETAIL_DIVIDENDS,Lr as PayoutCircles,oa as PerfectPickPage,na as PerfectPickPageTitle,Vl as PickYourDividendPage,Yl as PickYourDividendPageTitle,ar as PlaceEntryProvider,cr as QuickPickButton,Wl as RuleSetupPage,vl as RuleSetupPageActions,Fl as RuleSetupPageTitle,ea as SafetyNetPage,_l as SafetyNetPageTitle,Fr as SelectionReview,$i as SelectionsPage,Xi as SelectionsPageActions,qi as SelectionsPageTitle,Oi as SportPickerPage,Hi as SportPickerPageActions,Pi as SportPickerPageTitle,hl as SuccessPage,dl as SuccessPageActions,sl as SuccessPageTitle,Ai as SwipeCard,Ri as SwipeCardFace,Li as SwipeDeck,wi as VISIBLE_DEPTH,zt as YesNoCategoryLabel,ao as availableGameTierTabs,kn as contrastTextColour,we as darkTheme,co as defaultGameTierId,me as defaultTheme,ze as defaultThemeSet,lo as filterGamesByTierLevel,to as filterPropositionsToEvent,Zt as formatCurrency,Kt as formatDate,Zn as formatSameGameMultiEventLabel,ni as fullStackPrize,To as gameNeedsRuleSetup,qr as gameSetPrize,gi as getConfirmBoostCopy,hi as getGameFlow,Xr as getGameSetBetConfig,rn as getJackpotInfo,ri as getLadderConfig,di as getMirrorConfig,Ho as getPickYourDividendConfig,Xn as getPropositionEventId,Wo as getRuleSetupConfig,Bo as getSafetyNetConfig,po as getSafetyNetPricing,ln as getSportDisplayName,Te as getTheme,Ae as getThemeSet,Se as goldLightTheme,xe as goldTheme,ve as goldThemeSet,ke as greenLightTheme,be as greenTheme,Fe as greenThemeSet,qt as groupPropositionsBySport,Qn as groupSameGameMultiEvents,ui as isFixedCardExactGame,Kr as isGameSetBetGame,_r as isLadderGame,ci as isMirrorGame,fi as isOpenExactMultiGame,Lo as isPickYourDividendGame,go as isSafetyNetGame,qn as isSameGameMultiGame,eo as isSelectableSameGameMultiProposition,ye as isThemeSet,nn as isValidSelectionCount,oi as ladderCollectAt,ti as ladderTiers,si as mirrorPrize,no as propositionsBelongToEvent,Po as pydLadder,Mo as pydRung,cn as resolveCategoryDisplayName,io as resolveGameTierLevel,Gt as resolvePrice,an as resolveSportDisplayName,pe as resolveTheme,yo as roundDividendAmount,wo as safetyNetCollect,bo as safetyNetTicket,ae as themeAccent,Ne as themeBodyFont,ne as themeHeading,Ge as themeHeadingFont,oe as themeLabel,Le as themeSets,se as themeTextAlt,de as themeTextAltMuted,re as themeValue,Re as themes,nr as useCalculatePayout,_o as useCreateGameEntry,or as useEntryPreview,tr as useEvaluateRule,Jo as useGameEntries,$o as useGameMaxPayouts,qo as useGames,lr as usePlaceEntry,er as usePlaceEntryFlow,Xo as usePropositions,De as useResolvedTheme,Qo as useSports,ki as useSwipeDeck};
382
+ /* @__PURE__ */W(z,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:f,fontWeight:"500",letterSpacing:.012*-f,lineHeight:1.14*f,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*f,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{Zo as BladeApiClient,ia as BrandLockup,kt as CategoryIcon,ji as CategoryPickerPage,Ei as CategoryPickerPageActions,Ii as CategoryPickerPageTitle,St as ChevronRightIcon,rl as ConfirmPage,ol as ConfirmPageActions,nl as ConfirmPageTitle,ho as DOUBLE_SHOT_MIN_LEGS,so as EXTRA_SHOT_MIN_LEGS,fl as EntriesPage,ul as EntriesPageTitle,vr as EntrySubmission,Er as EventFilterBanner,Vi as EventPickerPage,vt as FilterChipCarousel,Wt as FilterChipRow,oo as GAME_TIER_LEVEL,ro as GAME_TIER_TABS,Hr as GameEntries,Di as GameLogo,yi as GamePage,pi as GamePageActions,gi as GamePageTitle,Vo as GameSelector,jl as GameSetBetPage,El as GameSetBetPageTitle,ra as GameSetupPage,wt as HowToPlayButton,ft as HowToPlayPanel,Jr as LADDER_FAMILY,Xr as LADDER_REFERENCE_BET,Qr as LADDER_STAKES,Zl as LadderPage,Ul as LadderPageTitle,Ct as LockIcon,ri as MIRROR_STANDARD_MARGIN,Ql as MirrorPage,Xl as MirrorPageTitle,Ro as PYD_LEG_RUNGS,Ao as PYD_RETAIL_DIVIDENDS,Rr as PayoutCircles,na as PerfectPickPage,ta as PerfectPickPageTitle,Yl as PickYourDividendPage,Gl as PickYourDividendPageTitle,lr as PlaceEntryProvider,ar as QuickPickButton,vl as RuleSetupPage,Fl as RuleSetupPageActions,zl as RuleSetupPageTitle,_l as SafetyNetPage,$l as SafetyNetPageTitle,zr as SelectionReview,Ji as SelectionsPage,qi as SelectionsPageActions,Ki as SelectionsPageTitle,Hi as SportPickerPage,Pi as SportPickerPageActions,Mi as SportPickerPageTitle,dl as SuccessPage,sl as SuccessPageActions,cl as SuccessPageTitle,Ti as SwipeCard,Ai as SwipeCardFace,Ri as SwipeDeck,bi as VISIBLE_DEPTH,zt as YesNoCategoryLabel,ao as availableGameTierTabs,kn as contrastTextColour,we as darkTheme,co as defaultGameTierId,me as defaultTheme,ze as defaultThemeSet,lo as filterGamesByTierLevel,to as filterPropositionsToEvent,Zt as formatCurrency,Kt as formatDate,Zn as formatSameGameMultiEventLabel,ti as fullStackPrize,To as gameNeedsRuleSetup,Kr as gameSetPrize,fi as getConfirmBoostCopy,di as getGameFlow,qr as getGameSetBetConfig,rn as getJackpotInfo,oi as getLadderConfig,si as getMirrorConfig,Ho as getPickYourDividendConfig,Xn as getPropositionEventId,Wo as getRuleSetupConfig,Bo as getSafetyNetConfig,po as getSafetyNetPricing,ln as getSportDisplayName,Te as getTheme,Ae as getThemeSet,Se as goldLightTheme,xe as goldTheme,ve as goldThemeSet,ke as greenLightTheme,be as greenTheme,Fe as greenThemeSet,qt as groupPropositionsBySport,Qn as groupSameGameMultiEvents,hi as isFixedCardExactGame,Zr as isGameSetBetGame,$r as isLadderGame,ai as isMirrorGame,ui as isOpenExactMultiGame,Lo as isPickYourDividendGame,go as isSafetyNetGame,qn as isSameGameMultiGame,eo as isSelectableSameGameMultiProposition,ye as isThemeSet,nn as isValidSelectionCount,ni as ladderCollectAt,ei as ladderTiers,ci as mirrorPrize,no as propositionsBelongToEvent,Po as pydLadder,Mo as pydRung,cn as resolveCategoryDisplayName,io as resolveGameTierLevel,Gt as resolvePrice,an as resolveSportDisplayName,pe as resolveTheme,yo as roundDividendAmount,wo as safetyNetCollect,bo as safetyNetTicket,ae as themeAccent,Ne as themeBodyFont,ne as themeHeading,Ge as themeHeadingFont,oe as themeLabel,Le as themeSets,se as themeTextAlt,de as themeTextAltMuted,re as themeValue,Re as themes,tr as useCalculatePayout,$o as useCreateGameEntry,nr as useEntryPreview,er as useEvaluateRule,Qo as useGameEntries,Jo as useGameMaxPayouts,Ko as useGames,ir as usePlaceEntry,_o as usePlaceEntryFlow,qo as usePropositions,De as useResolvedTheme,Xo as useSports,xi as useSwipeDeck};