@sensiblestats/widget-react 0.138.1 → 0.139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/StatsWidget.tsx
2
- import { useCallback as useCallback28, useEffect as useEffect54, useMemo as useMemo13, useRef as useRef46, useState as useState83 } from "react";
2
+ import { useCallback as useCallback28, useEffect as useEffect54, useMemo as useMemo13, useRef as useRef46, useState as useState84 } from "react";
3
3
  import { StatsWidgetClient } from "@sensiblestats/widget-sdk";
4
4
 
5
5
  // src/strings/tag.ts
@@ -207,6 +207,7 @@ var BUNDLED_EN_GB = {
207
207
  "widget.v8Paused": "No priced games in this sport right now. Stats and questions still work.",
208
208
  "widget.v8NoGamesToday": "No games today",
209
209
  "widget.v8Miss": "No combo comes near that total in these games.",
210
+ "widget.v8Nearest": "No combo lands on that total in these games. This is the closest.",
210
211
  "widget.v8UseAllGames": "Use all games",
211
212
  "widget.v8BuilderShow": "Show me",
212
213
  "widget.v8BuilderIn": "in",
@@ -1298,7 +1299,7 @@ function parseOddsFormat(value) {
1298
1299
  }
1299
1300
 
1300
1301
  // src/version.generated.ts
1301
- var WIDGET_REACT_VERSION = "0.138.1";
1302
+ var WIDGET_REACT_VERSION = "0.139.0";
1302
1303
 
1303
1304
  // src/config.ts
1304
1305
  function hostTag(cfg) {
@@ -1598,6 +1599,7 @@ function normalizeUi(cfg, loaded) {
1598
1599
  v8PausedNext: strings.v8PausedNext,
1599
1600
  v8NoGamesToday: strings.v8NoGamesToday,
1600
1601
  v8Miss: strings.v8Miss,
1602
+ v8Nearest: strings.v8Nearest,
1601
1603
  v8UseAllGames: strings.v8UseAllGames,
1602
1604
  v8Out: strings.v8Out,
1603
1605
  v8More: strings.v8More,
@@ -2462,6 +2464,9 @@ function toNflInsightVM(card) {
2462
2464
  competition: str(card.competitionName),
2463
2465
  kickoffLabel: str(card.kickoffLabel),
2464
2466
  kickoffUtc: str(card.kickoffUtc) ?? null,
2467
+ homeTeamImage: str(card.homeTeamImagePath),
2468
+ awayTeamImage: str(card.awayTeamImagePath),
2469
+ competitionImage: str(card.competitionImagePath),
2465
2470
  addToSlipEnabled: card.addToSlipEnabled === true,
2466
2471
  disclaimer: str(card.disclaimer),
2467
2472
  selections,
@@ -7814,7 +7819,7 @@ function ChatFab({ label, busy = false, greeting, popupText, logoUrl, onOpen, on
7814
7819
  }
7815
7820
 
7816
7821
  // src/components/ChatPanel.tsx
7817
- import { useCallback as useCallback27, useEffect as useEffect53, useLayoutEffect as useLayoutEffect2, useMemo as useMemo12, useRef as useRef45, useState as useState82 } from "react";
7822
+ import { useCallback as useCallback27, useEffect as useEffect53, useLayoutEffect as useLayoutEffect2, useMemo as useMemo12, useRef as useRef45, useState as useState83 } from "react";
7818
7823
 
7819
7824
  // src/components/ChatHeader.tsx
7820
7825
  import { useEffect as useEffect29, useRef as useRef25, useState as useState35 } from "react";
@@ -7935,7 +7940,7 @@ function ChatHeader({
7935
7940
  import { useEffect as useEffect33, useRef as useRef28 } from "react";
7936
7941
 
7937
7942
  // src/components/ChatMessage.tsx
7938
- import { useState as useState45 } from "react";
7943
+ import { useState as useState46 } from "react";
7939
7944
 
7940
7945
  // src/components/Markdown.tsx
7941
7946
  import ReactMarkdown from "react-markdown";
@@ -8883,6 +8888,9 @@ function NbaInsightList({ insights, ui, slip, monitor }) {
8883
8888
  return /* @__PURE__ */ jsx38("div", { className: "ss-w-nba-cards", children: insights.map((vm, i) => /* @__PURE__ */ jsx38(NbaCard, { vm, ui, slip, monitor }, `${vm.id}:${i}`)) });
8884
8889
  }
8885
8890
 
8891
+ // src/components/NflInsightList.tsx
8892
+ import { useState as useState38 } from "react";
8893
+
8886
8894
  // src/strings/types.ts
8887
8895
  var fillNfl = (template, values) => template.replace(/\{(\w+)\}/g, (whole, key) => key in values ? String(values[key]) : whole);
8888
8896
 
@@ -8891,7 +8899,11 @@ import { Fragment as Fragment8, jsx as jsx39, jsxs as jsxs34 } from "react/jsx-r
8891
8899
  var oneDecimal2 = (n, ui) => formatNumber(n, ui.locale, { minimumFractionDigits: 1, maximumFractionDigits: 1 });
8892
8900
  var cap = (text2, ui) => text2 ? upperCase(text2.charAt(0), ui.locale) + text2.slice(1) : text2;
8893
8901
  var lineNumber = (line) => Number(line.replace("\u2212", "-").replace(",", "."));
8894
- function Badge({ abbr }) {
8902
+ function Badge({ abbr, url }) {
8903
+ const [failed, setFailed] = useState38(false);
8904
+ if (url && !failed) {
8905
+ return /* @__PURE__ */ jsx39("img", { className: "ss-w-nfl-badge ss-w-nfl-badge--img", src: url, alt: "", "aria-hidden": "true", onError: () => setFailed(true) });
8906
+ }
8895
8907
  return /* @__PURE__ */ jsx39("span", { className: "ss-w-nfl-badge", children: abbr });
8896
8908
  }
8897
8909
  function Price({ vm, selection, label, ui, slip, nowMs }) {
@@ -8932,12 +8944,12 @@ function Head2({ vm, ui, monitor }) {
8932
8944
  /* @__PURE__ */ jsxs34("div", { className: "ss-w-nfl-head-l", children: [
8933
8945
  /* @__PURE__ */ jsxs34("p", { className: "ss-w-nfl-meta", children: [
8934
8946
  /* @__PURE__ */ jsxs34("span", { className: "ss-w-nfl-side", children: [
8935
- /* @__PURE__ */ jsx39(Badge, { abbr: vm.homeAbbr }),
8947
+ /* @__PURE__ */ jsx39(Badge, { abbr: vm.homeAbbr, url: vm.homeTeamImage }),
8936
8948
  vm.homeTeamName ? /* @__PURE__ */ jsx39("span", { children: vm.homeTeamName }) : null
8937
8949
  ] }),
8938
8950
  /* @__PURE__ */ jsx39("span", { className: "ss-w-nfl-sep", "aria-hidden": "true", children: "\xB7" }),
8939
8951
  /* @__PURE__ */ jsxs34("span", { className: "ss-w-nfl-side", children: [
8940
- /* @__PURE__ */ jsx39(Badge, { abbr: vm.awayAbbr }),
8952
+ /* @__PURE__ */ jsx39(Badge, { abbr: vm.awayAbbr, url: vm.awayTeamImage }),
8941
8953
  vm.awayTeamName ? /* @__PURE__ */ jsx39("span", { children: vm.awayTeamName }) : null
8942
8954
  ] }),
8943
8955
  vm.kickoffLabel ? /* @__PURE__ */ jsx39("span", { className: "ss-w-nfl-kick", children: vm.kickoffLabel }) : null
@@ -9011,8 +9023,8 @@ function LineMove2({ vm, lm, ui, slip, nowMs }) {
9011
9023
  const nfl = ui.nfl;
9012
9024
  const { oddsFormat } = useOddsSettings();
9013
9025
  const who = (side) => {
9014
- if (side === "home") return /* @__PURE__ */ jsx39(Badge, { abbr: vm.homeAbbr });
9015
- if (side === "away") return /* @__PURE__ */ jsx39(Badge, { abbr: vm.awayAbbr });
9026
+ if (side === "home") return /* @__PURE__ */ jsx39(Badge, { abbr: vm.homeAbbr, url: vm.homeTeamImage });
9027
+ if (side === "away") return /* @__PURE__ */ jsx39(Badge, { abbr: vm.awayAbbr, url: vm.awayTeamImage });
9016
9028
  return cap(side === "under" ? nfl.under : nfl.over, ui);
9017
9029
  };
9018
9030
  return /* @__PURE__ */ jsxs34("div", { className: "ss-w-nfl-lm", children: [
@@ -9499,7 +9511,7 @@ function TennisInsightList({ insights, ui }) {
9499
9511
  }
9500
9512
 
9501
9513
  // src/components/CompactOddsList.tsx
9502
- import { useEffect as useEffect30, useRef as useRef26, useState as useState38 } from "react";
9514
+ import { useEffect as useEffect30, useRef as useRef26, useState as useState39 } from "react";
9503
9515
  import { mayPinOrSlip as mayPinOrSlip5, slipSportOf as slipSportOf6, sportOf as sportOf10 } from "@sensiblestats/widget-sdk";
9504
9516
 
9505
9517
  // src/compactList.ts
@@ -9621,9 +9633,9 @@ function Row({ row, columns, ui, slip, monitor, rowRef }) {
9621
9633
  ] });
9622
9634
  }
9623
9635
  function CompactOddsList({ list, ui, slip, monitor }) {
9624
- const [shown2, setShown] = useState38(COMPACT_PAGE);
9636
+ const [shown2, setShown] = useState39(COMPACT_PAGE);
9625
9637
  const hidden = list.rowCount - shown2;
9626
- const [focusIndex, setFocusIndex] = useState38(null);
9638
+ const [focusIndex, setFocusIndex] = useState39(null);
9627
9639
  const focusRef = useRef26(null);
9628
9640
  useEffect30(() => {
9629
9641
  if (focusIndex !== null) focusRef.current?.focus();
@@ -9860,7 +9872,7 @@ function FixtureCard({ card, ui }) {
9860
9872
  }
9861
9873
 
9862
9874
  // src/components/dashboard/CountdownCard.tsx
9863
- import { Fragment as Fragment12, useEffect as useEffect31, useState as useState39 } from "react";
9875
+ import { Fragment as Fragment12, useEffect as useEffect31, useState as useState40 } from "react";
9864
9876
  import { jsx as jsx45, jsxs as jsxs40 } from "react/jsx-runtime";
9865
9877
  var DAY_MS3 = 864e5;
9866
9878
  function remainingSegments(kickoffUnix, nowMs, withSeconds) {
@@ -9879,8 +9891,8 @@ function remainingSegments(kickoffUnix, nowMs, withSeconds) {
9879
9891
  function CountdownCard({ card, ui }) {
9880
9892
  const { data } = card;
9881
9893
  const unitLabel = { d: data.daysUnit, h: data.hoursUnit, m: data.minutesUnit, s: data.secondsUnit };
9882
- const [nowMs, setNowMs] = useState39(() => Date.now());
9883
- const [reduced] = useState39(
9894
+ const [nowMs, setNowMs] = useState40(() => Date.now());
9895
+ const [reduced] = useState40(
9884
9896
  () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches
9885
9897
  );
9886
9898
  const withinDay = data.kickoffUnix * 1e3 - nowMs < DAY_MS3;
@@ -9903,7 +9915,7 @@ function CountdownCard({ card, ui }) {
9903
9915
  }
9904
9916
 
9905
9917
  // src/components/dashboard/InjuriesCard.tsx
9906
- import { useState as useState40 } from "react";
9918
+ import { useState as useState41 } from "react";
9907
9919
  import { jsx as jsx46, jsxs as jsxs41 } from "react/jsx-runtime";
9908
9920
  var SHOWN = 3;
9909
9921
  function ColHead({ name, crestUrl }) {
@@ -9926,7 +9938,7 @@ function InjuryList({ rows, emptyLabel, limit }) {
9926
9938
  }
9927
9939
  function InjuriesCard({ card, ui }) {
9928
9940
  const { data } = card;
9929
- const [expanded, setExpanded] = useState40(false);
9941
+ const [expanded, setExpanded] = useState41(false);
9930
9942
  const hidden = Math.max(0, data.ours.length - SHOWN) + Math.max(0, data.theirs.length - SHOWN);
9931
9943
  const limit = expanded ? void 0 : SHOWN;
9932
9944
  const { showMore, showLess } = ui;
@@ -10031,7 +10043,7 @@ function LinksCard({ card }) {
10031
10043
  }
10032
10044
 
10033
10045
  // src/components/dashboard/PostMatchResultCard.tsx
10034
- import { useState as useState41 } from "react";
10046
+ import { useState as useState42 } from "react";
10035
10047
  import { jsx as jsx52, jsxs as jsxs47 } from "react/jsx-runtime";
10036
10048
  function initials3(name) {
10037
10049
  return name.trim().slice(0, 3).toUpperCase();
@@ -10041,7 +10053,7 @@ function PostMatchCrest({
10041
10053
  name,
10042
10054
  side
10043
10055
  }) {
10044
- const [failed, setFailed] = useState41(false);
10056
+ const [failed, setFailed] = useState42(false);
10045
10057
  const cls = `ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${side}`;
10046
10058
  if (url && !failed) {
10047
10059
  return /* @__PURE__ */ jsx52("img", { className: cls, src: url, alt: "", "aria-hidden": "true", onError: () => setFailed(true) });
@@ -10240,10 +10252,10 @@ function RestingFormCard({ card }) {
10240
10252
  }
10241
10253
 
10242
10254
  // src/components/dashboard/LiveScoreCard.tsx
10243
- import { useRef as useRef27, useState as useState43 } from "react";
10255
+ import { useRef as useRef27, useState as useState44 } from "react";
10244
10256
 
10245
10257
  // src/useLiveClock.ts
10246
- import { useEffect as useEffect32, useState as useState42 } from "react";
10258
+ import { useEffect as useEffect32, useState as useState43 } from "react";
10247
10259
  var TICK_MS = 6e4;
10248
10260
  var MAX_LIVE_TICK_MINUTES = 15;
10249
10261
  function computeDisplayMinute(minute, clockRunning, receivedAtMs) {
@@ -10252,7 +10264,7 @@ function computeDisplayMinute(minute, clockRunning, receivedAtMs) {
10252
10264
  return minute + Math.min(Math.max(0, elapsedMinutes), MAX_LIVE_TICK_MINUTES);
10253
10265
  }
10254
10266
  function useLiveClock(minute, clockRunning, receivedAtMs) {
10255
- const [displayMinute, setDisplayMinute] = useState42(
10267
+ const [displayMinute, setDisplayMinute] = useState43(
10256
10268
  () => computeDisplayMinute(minute, clockRunning, receivedAtMs)
10257
10269
  );
10258
10270
  useEffect32(() => {
@@ -10272,7 +10284,7 @@ function initials5(name) {
10272
10284
  return name.trim().slice(0, 3).toUpperCase();
10273
10285
  }
10274
10286
  function LiveCrest({ url, name, side }) {
10275
- const [failed, setFailed] = useState43(false);
10287
+ const [failed, setFailed] = useState44(false);
10276
10288
  const cls = `ss-w-fandash-live-crest ss-w-fandash-live-crest--${side}`;
10277
10289
  if (url && !failed) {
10278
10290
  return /* @__PURE__ */ jsx61("img", { className: cls, src: url, alt: "", "aria-hidden": "true", onError: () => setFailed(true) });
@@ -10340,7 +10352,7 @@ function LiveScoreCard({
10340
10352
  }
10341
10353
 
10342
10354
  // src/components/dashboard/LiveTimelineCard.tsx
10343
- import { useState as useState44 } from "react";
10355
+ import { useState as useState45 } from "react";
10344
10356
  import { jsx as jsx62, jsxs as jsxs57 } from "react/jsx-runtime";
10345
10357
  var SHOWN2 = 3;
10346
10358
  function EventIcon({ type }) {
@@ -10382,7 +10394,7 @@ function EventRow({ e }) {
10382
10394
  ] });
10383
10395
  }
10384
10396
  function LiveTimelineCard({ card, ui }) {
10385
- const [expanded, setExpanded] = useState44(false);
10397
+ const [expanded, setExpanded] = useState45(false);
10386
10398
  const events = card.data.events;
10387
10399
  if (!events || events.length === 0) return null;
10388
10400
  const sorted = [...events].sort((a, b) => b.minute - a.minute);
@@ -10581,7 +10593,7 @@ function FanDashboardCard({ card, onTap, ui, goalEvents }) {
10581
10593
  // src/components/ChatMessage.tsx
10582
10594
  import { jsx as jsx66, jsxs as jsxs61 } from "react/jsx-runtime";
10583
10595
  function ChatMessage({ message, disabled, onAct, onTap, ui, slip, monitor, onGreetingSport }) {
10584
- const [sport, setSport] = useState45(null);
10596
+ const [sport, setSport] = useState46(null);
10585
10597
  if (message.role === "user") {
10586
10598
  return /* @__PURE__ */ jsx66("div", { className: "ss-w-msg ss-w-user", "data-msg-id": message.id, children: /* @__PURE__ */ jsx66("div", { className: "ss-w-bubble", children: message.text }) });
10587
10599
  }
@@ -10698,10 +10710,10 @@ function MessageList({ controller, ui, slip, onDashboardTap, monitor, onGreeting
10698
10710
  }
10699
10711
 
10700
10712
  // src/components/ChatInput.tsx
10701
- import { forwardRef, useEffect as useEffect34, useImperativeHandle, useRef as useRef29, useState as useState46 } from "react";
10713
+ import { forwardRef, useEffect as useEffect34, useImperativeHandle, useRef as useRef29, useState as useState47 } from "react";
10702
10714
  import { jsx as jsx69, jsxs as jsxs63 } from "react/jsx-runtime";
10703
10715
  var ChatInput = forwardRef(function ChatInput2({ placeholder, streaming, onSend, onStop, stopLabel, sendLabel, disabled = false }, ref) {
10704
- const [value, setValue] = useState46("");
10716
+ const [value, setValue] = useState47("");
10705
10717
  const textareaRef = useRef29(null);
10706
10718
  const stopRef = useRef29(null);
10707
10719
  const textBoxWantsFocusRef = useRef29(false);
@@ -10902,7 +10914,7 @@ function MarketAccordion({ match, monitor, ui, slip }) {
10902
10914
  }
10903
10915
 
10904
10916
  // src/components/MonitorFormH2H.tsx
10905
- import { useState as useState47 } from "react";
10917
+ import { useState as useState48 } from "react";
10906
10918
  import { Fragment as Fragment14, jsx as jsx72, jsxs as jsxs66 } from "react/jsx-runtime";
10907
10919
  function resultClass2(result) {
10908
10920
  if (result === "W") return "ss-w-h2h-result--win";
@@ -10918,7 +10930,7 @@ function FormDots({ form, ui }) {
10918
10930
  return /* @__PURE__ */ jsx72("div", { className: "ss-w-h2h-dots", children: form.map((m, i) => /* @__PURE__ */ jsx72("span", { className: `ss-w-h2h-result ${resultClass2(m.result)}`, children: resultLabel(m.result, ui) }, i)) });
10919
10931
  }
10920
10932
  function MonitorFormH2H({ formAndH2H, homeTeamName, awayTeamName, ui }) {
10921
- const [expanded, setExpanded] = useState47(false);
10933
+ const [expanded, setExpanded] = useState48(false);
10922
10934
  const { homeForm, awayForm, h2h, homeShortCode, awayShortCode } = formAndH2H;
10923
10935
  if (homeForm.length === 0 && awayForm.length === 0 && !h2h) {
10924
10936
  return /* @__PURE__ */ jsx72(Fragment14, {});
@@ -11145,7 +11157,7 @@ function MonitorSkeleton({ pin, monitor, ui }) {
11145
11157
  }
11146
11158
 
11147
11159
  // src/components/NbaMonitorCard.tsx
11148
- import { useState as useState51 } from "react";
11160
+ import { useState as useState52 } from "react";
11149
11161
 
11150
11162
  // src/sportLabel.ts
11151
11163
  var CODE = { football: "football", basketball: "nba", nba: "nba", americanfootball: "nfl", nfl: "nfl", tennis: "tennis" };
@@ -11155,7 +11167,7 @@ var sportLabel = (ui, sport) => {
11155
11167
  };
11156
11168
 
11157
11169
  // src/components/NbaFormSection.tsx
11158
- import { useState as useState48 } from "react";
11170
+ import { useState as useState49 } from "react";
11159
11171
 
11160
11172
  // src/components/NbaFormRest.tsx
11161
11173
  import { jsx as jsx75, jsxs as jsxs69 } from "react/jsx-runtime";
@@ -11254,8 +11266,8 @@ function Row2({ game, abbr, tonight, ui }) {
11254
11266
  ] });
11255
11267
  }
11256
11268
  function NbaFormSection({ match, monitor, ui }) {
11257
- const [open, setOpen] = useState48(false);
11258
- const [side, setSide] = useState48("away");
11269
+ const [open, setOpen] = useState49(false);
11270
+ const [side, setSide] = useState49("away");
11259
11271
  const form = useNbaForm(match, monitor);
11260
11272
  const b = match.basketball;
11261
11273
  if (!form || !b || !form.home && !form.away) return null;
@@ -11297,10 +11309,10 @@ function NbaFormSection({ match, monitor, ui }) {
11297
11309
  }
11298
11310
 
11299
11311
  // src/components/NbaPropsSection.tsx
11300
- import { useEffect as useEffect37, useState as useState50 } from "react";
11312
+ import { useEffect as useEffect37, useState as useState51 } from "react";
11301
11313
 
11302
11314
  // src/components/PropsPieces.tsx
11303
- import { useEffect as useEffect36, useState as useState49 } from "react";
11315
+ import { useEffect as useEffect36, useState as useState50 } from "react";
11304
11316
  import { Fragment as Fragment15, jsx as jsx77, jsxs as jsxs71 } from "react/jsx-runtime";
11305
11317
  var livePlayer = (bundle, p) => bundle.live === true || !p.live && !p.nflLive ? p : { ...p, live: null, nflLive: null };
11306
11318
  var hasLiveLine = (p) => p.live != null || p.nflLive != null;
@@ -11313,7 +11325,7 @@ function preKickoff(match) {
11313
11325
  return Number.isFinite(kickoff) && Date.now() < kickoff;
11314
11326
  }
11315
11327
  function usePreKickoff(match) {
11316
- const [, setTick] = useState49(0);
11328
+ const [, setTick] = useState50(0);
11317
11329
  const pre = preKickoff(match);
11318
11330
  useEffect36(() => {
11319
11331
  if (!pre || !match.kickoffUtc) return;
@@ -11407,7 +11419,7 @@ function PropBars({ bars, line, title, wide, ui, note }) {
11407
11419
  function PropPlayerPanel({ player: given, bundle, descriptor, ui, slip }) {
11408
11420
  const player = livePlayer(bundle, given);
11409
11421
  const stats = descriptor.stats.map((k) => player.stats.find((s) => s.stat === k)).filter((s) => s != null);
11410
- const [picked, setPicked] = useState49(null);
11422
+ const [picked, setPicked] = useState50(null);
11411
11423
  const active = stats.find((s) => s.stat === picked) ?? stats[0];
11412
11424
  const sample = active?.games?.length ?? 0;
11413
11425
  const hitsOf = (price, text2) => descriptor.showHits && sample > 0 && price.hits != null ? text2(price.hits) : null;
@@ -11456,8 +11468,8 @@ function PropPlayerPanel({ player: given, bundle, descriptor, ui, slip }) {
11456
11468
  ] });
11457
11469
  }
11458
11470
  function PropRoster({ bundle, players, side, descriptor, ui, slip }) {
11459
- const [openId, setOpenId] = useState49(null);
11460
- const [brokenShots, setBrokenShots] = useState49(/* @__PURE__ */ new Set());
11471
+ const [openId, setOpenId] = useState50(null);
11472
+ const [brokenShots, setBrokenShots] = useState50(/* @__PURE__ */ new Set());
11461
11473
  return /* @__PURE__ */ jsx77("div", { className: "ss-w-props-list", children: players.map((given) => {
11462
11474
  const p = livePlayer(bundle, given);
11463
11475
  const isOpen = openId === p.playerId;
@@ -11503,7 +11515,7 @@ function PropRoster({ bundle, players, side, descriptor, ui, slip }) {
11503
11515
  }
11504
11516
  var BOX_QUIET_MS = 12e4;
11505
11517
  function StatsClock({ boxAsOfUtc, match, live, atBreak: atBreak2, ago, ui }) {
11506
- const [tick, setTick] = useState49(0);
11518
+ const [tick, setTick] = useState50(0);
11507
11519
  const time = clock2(boxAsOfUtc, ui);
11508
11520
  const at2 = time === "" ? Number.NaN : Date.parse(boxAsOfUtc);
11509
11521
  const valid = !Number.isNaN(at2);
@@ -11569,7 +11581,7 @@ var nbaDescriptor = (ui, match) => ({
11569
11581
  tenGameBars: false
11570
11582
  });
11571
11583
  function StatsClock2({ bundle, match, ui }) {
11572
- const [tick, setTick] = useState50(0);
11584
+ const [tick, setTick] = useState51(0);
11573
11585
  const at2 = bundle.live === true && bundle.boxAsOfUtc ? Date.parse(bundle.boxAsOfUtc) : Number.NaN;
11574
11586
  const time = clock2(bundle.boxAsOfUtc, ui);
11575
11587
  const valid = !Number.isNaN(at2) && time !== "";
@@ -11588,7 +11600,7 @@ function StatsClock2({ bundle, match, ui }) {
11588
11600
  return /* @__PURE__ */ jsx78("span", { className: "ss-w-props-asof ss-w-props-asof--live", children: ui.nba.propsStatsLive(time) });
11589
11601
  }
11590
11602
  function NbaPropsSection({ match, monitor, ui, slip }) {
11591
- const [side, setSide] = useState50("home");
11603
+ const [side, setSide] = useState51("home");
11592
11604
  const descriptor = nbaDescriptor(ui, match);
11593
11605
  const { bundle, live, open } = usePropsOpen(match, monitor, descriptor);
11594
11606
  if (!open || !bundle || bundle.players.length === 0 || (bundle.live ?? false) !== live) return null;
@@ -11626,7 +11638,7 @@ function city(teamName, nickname) {
11626
11638
  return name.slice(0, name.length - nickname.length).trim() || null;
11627
11639
  }
11628
11640
  function BadgeCrest({ url, abbreviation }) {
11629
- const [failed, setFailed] = useState51(false);
11641
+ const [failed, setFailed] = useState52(false);
11630
11642
  if (url && !failed) {
11631
11643
  return /* @__PURE__ */ jsx79("img", { className: "ss-w-nbamon-badge ss-w-nbamon-badge--img", src: url, alt: "", "aria-hidden": "true", onError: () => setFailed(true) });
11632
11644
  }
@@ -11744,7 +11756,7 @@ function NbaMonitorCard({ match, monitor, ui, slip }) {
11744
11756
  }
11745
11757
 
11746
11758
  // src/components/NflFormSection.tsx
11747
- import { useState as useState52 } from "react";
11759
+ import { useState as useState53 } from "react";
11748
11760
  import { Fragment as Fragment17, jsx as jsx80, jsxs as jsxs74 } from "react/jsx-runtime";
11749
11761
  var outcomeOf = (g) => g.teamScore > g.opponentScore ? "win" : g.teamScore < g.opponentScore ? "loss" : "tie";
11750
11762
  var signedSpread2 = (v) => v > 0 ? `+${v}` : String(v);
@@ -11796,7 +11808,7 @@ function H2hRow({ game, home, ui }) {
11796
11808
  ] });
11797
11809
  }
11798
11810
  function NflFormSection({ match, monitor, ui }) {
11799
- const [segment, setSegment] = useState52("away");
11811
+ const [segment, setSegment] = useState53("away");
11800
11812
  const { live, open } = usePropsOpen(match, monitor, { sport: "americanfootball" });
11801
11813
  const bundle = monitor.playerProps?.[monitorMatchKey("americanfootball", match.matchId)]?.bundle;
11802
11814
  const form = bundle?.form;
@@ -11829,7 +11841,7 @@ function NflFormSection({ match, monitor, ui }) {
11829
11841
  }
11830
11842
 
11831
11843
  // src/components/NflPropsSection.tsx
11832
- import { useState as useState53 } from "react";
11844
+ import { useState as useState54 } from "react";
11833
11845
  import { Fragment as Fragment18, jsx as jsx81, jsxs as jsxs75 } from "react/jsx-runtime";
11834
11846
  var TRENDS_SHOWN = 3;
11835
11847
  var SCORERS_SHOWN = 8;
@@ -11902,7 +11914,7 @@ function ShowMore({ label, onClick }) {
11902
11914
  return /* @__PURE__ */ jsx81("button", { type: "button", className: "ss-w-props-more", onClick, children: label });
11903
11915
  }
11904
11916
  function Trends({ bundle, facts, descriptor, ui, slip }) {
11905
- const [all, setAll] = useState53(false);
11917
+ const [all, setAll] = useState54(false);
11906
11918
  const shown2 = all ? facts : facts.slice(0, TRENDS_SHOWN);
11907
11919
  return /* @__PURE__ */ jsxs75("section", { className: "ss-w-props ss-w-props-trends", lang: ui.locale, children: [
11908
11920
  /* @__PURE__ */ jsx81("div", { className: "ss-w-props-head", children: ui.nfl.propsTrends }),
@@ -11935,7 +11947,7 @@ function Trends({ bundle, facts, descriptor, ui, slip }) {
11935
11947
  ] });
11936
11948
  }
11937
11949
  function Scorers({ bundle, scorers, abbreviations, descriptor, ui, slip }) {
11938
- const [all, setAll] = useState53(false);
11950
+ const [all, setAll] = useState54(false);
11939
11951
  const shown2 = all ? scorers : scorers.slice(0, SCORERS_SHOWN);
11940
11952
  const cell2 = (name, column, price, stat) => price && stat ? /* @__PURE__ */ jsx81(PropPrice, { price, label: "", ariaName: `${name}, ${column}`, player: name, stat, bundle, descriptor, ui, slip }) : /* @__PURE__ */ jsx81("span", { className: "ss-w-props-scorer-none", children: "\u2014" });
11941
11953
  return /* @__PURE__ */ jsxs75("div", { className: "ss-w-props-scorers", children: [
@@ -11949,9 +11961,12 @@ function Scorers({ bundle, scorers, abbreviations, descriptor, ui, slip }) {
11949
11961
  const sample = s.anytimeStat.games?.length ?? 0;
11950
11962
  const meta = sample > 0 && s.anytime.hits != null ? `${abbreviations[s.player.side]} \xB7 ${fillNfl(ui.nfl.propsScoredIn, { h: s.anytime.hits, n: sample })}` : abbreviations[s.player.side];
11951
11963
  return /* @__PURE__ */ jsxs75("div", { className: "ss-w-props-scorer", children: [
11952
- /* @__PURE__ */ jsxs75("span", { className: "ss-w-props-pn", children: [
11953
- /* @__PURE__ */ jsx81("span", { className: "ss-w-props-scorer-name", children: s.player.name }),
11954
- /* @__PURE__ */ jsx81("span", { className: "ss-w-props-scorer-meta", children: meta })
11964
+ /* @__PURE__ */ jsxs75("span", { className: "ss-w-props-scorer-who", children: [
11965
+ /* @__PURE__ */ jsx81(Pic, { src: s.player.imagePath, kind: "player" }),
11966
+ /* @__PURE__ */ jsxs75("span", { className: "ss-w-props-pn", children: [
11967
+ /* @__PURE__ */ jsx81("span", { className: "ss-w-props-scorer-name", children: s.player.name }),
11968
+ /* @__PURE__ */ jsx81("span", { className: "ss-w-props-scorer-meta", children: meta })
11969
+ ] })
11955
11970
  ] }),
11956
11971
  cell2(s.player.name, ui.nfl.propsAnytime, s.anytime, s.anytimeStat),
11957
11972
  cell2(s.player.name, "2+", s.two, s.anytimeStat),
@@ -11962,7 +11977,7 @@ function Scorers({ bundle, scorers, abbreviations, descriptor, ui, slip }) {
11962
11977
  ] });
11963
11978
  }
11964
11979
  function NflPropsSection({ match, monitor, ui, slip }) {
11965
- const [tab, setTab] = useState53(null);
11980
+ const [tab, setTab] = useState54(null);
11966
11981
  const descriptor = nflDescriptor(ui);
11967
11982
  const { bundle, live, open } = usePropsOpen(match, monitor, descriptor);
11968
11983
  if (!open || !bundle || bundle.players.length === 0 || (bundle.live ?? false) !== live) return null;
@@ -12104,13 +12119,13 @@ function NflMonitorCard({ match, monitor, ui, slip }) {
12104
12119
  /* @__PURE__ */ jsx84(PinToggle, { ui, monitor, pin: { kind: "match", matchId: match.matchId, sport: "americanfootball" } })
12105
12120
  ] }),
12106
12121
  /* @__PURE__ */ jsxs78("div", { className: "ss-w-nbamon-main", children: [
12107
- /* @__PURE__ */ jsx84(Side, { abbreviation: f.awayAbbreviation, nickname: f.awayNickname, teamName: match.awayTeamName, away: true }),
12122
+ /* @__PURE__ */ jsx84(Side, { abbreviation: f.awayAbbreviation, nickname: f.awayNickname, teamName: match.awayTeamName, crestUrl: match.awayCrestUrl, away: true }),
12108
12123
  scored ? /* @__PURE__ */ jsxs78("span", { className: "ss-w-mon-score", children: [
12109
12124
  match.awayScore ?? 0,
12110
12125
  /* @__PURE__ */ jsx84("i", { children: "\u2013" }),
12111
12126
  match.homeScore ?? 0
12112
12127
  ] }) : /* @__PURE__ */ jsx84("span", { className: "ss-w-mon-vs", children: ui.venue.away }),
12113
- /* @__PURE__ */ jsx84(Side, { abbreviation: f.homeAbbreviation, nickname: f.homeNickname, teamName: match.homeTeamName })
12128
+ /* @__PURE__ */ jsx84(Side, { abbreviation: f.homeAbbreviation, nickname: f.homeNickname, teamName: match.homeTeamName, crestUrl: match.homeCrestUrl })
12114
12129
  ] }),
12115
12130
  scored && /* @__PURE__ */ jsxs78("table", { className: "ss-w-nbamon-ls", children: [
12116
12131
  /* @__PURE__ */ jsx84("thead", { children: /* @__PURE__ */ jsxs78("tr", { children: [
@@ -12155,7 +12170,7 @@ import { toWireSport as toWireSport5 } from "@sensiblestats/widget-sdk";
12155
12170
  import { matchKey as matchKey4 } from "@sensiblestats/widget-sdk";
12156
12171
 
12157
12172
  // src/components/FixtureRow.tsx
12158
- import { useState as useState54 } from "react";
12173
+ import { useState as useState55 } from "react";
12159
12174
  import { slipSportOf as slipSportOf8 } from "@sensiblestats/widget-sdk";
12160
12175
  import { Fragment as Fragment20, jsx as jsx85, jsxs as jsxs79 } from "react/jsx-runtime";
12161
12176
  function splitAtFirstSpace(label) {
@@ -12169,7 +12184,7 @@ function kickoffLabel(kickoffUnix, tag2, clock3, timeZone) {
12169
12184
  return formatTime(kickoffUnix * 1e3, tag2, clock3, { timeZone });
12170
12185
  }
12171
12186
  function Side2({ name, crest, abbr, away = false }) {
12172
- const [failed, setFailed] = useState54(false);
12187
+ const [failed, setFailed] = useState55(false);
12173
12188
  return /* @__PURE__ */ jsxs79("span", { className: away ? "ss-w-drow-side ss-w-drow-side--away" : "ss-w-drow-side", children: [
12174
12189
  crest && !failed ? /* @__PURE__ */ jsx85("img", { className: abbr ? "ss-w-drow-crest ss-w-drow-crest--wide" : "ss-w-drow-crest", src: crest, alt: "", onError: () => setFailed(true) }) : abbr ? /* @__PURE__ */ jsx85("span", { className: "ss-w-drow-crest ss-w-drow-crest--abbr", children: abbr }) : null,
12175
12190
  /* @__PURE__ */ jsx85("span", { className: "ss-w-drow-nm", children: name })
@@ -12411,7 +12426,7 @@ function TennisLiveScoreboard({ t, score, live, ui }) {
12411
12426
  }
12412
12427
 
12413
12428
  // src/components/TennisStatsTables.tsx
12414
- import { Fragment as Fragment22, useEffect as useEffect38, useState as useState55 } from "react";
12429
+ import { Fragment as Fragment22, useEffect as useEffect38, useState as useState56 } from "react";
12415
12430
  import { Fragment as Fragment23, jsx as jsx88, jsxs as jsxs82 } from "react/jsx-runtime";
12416
12431
  function formatStat(row, value, locale) {
12417
12432
  if (value == null) return "\u2013";
@@ -12449,7 +12464,7 @@ function Tables({ table, labels, names, locale }) {
12449
12464
  ] });
12450
12465
  }
12451
12466
  function TennisStatsTables({ serveReturn, today, labels, names, ui, resetKey }) {
12452
- const [tab, setTab] = useState55("match");
12467
+ const [tab, setTab] = useState56("match");
12453
12468
  useEffect38(() => {
12454
12469
  setTab("match");
12455
12470
  }, [resetKey]);
@@ -13038,7 +13053,7 @@ function TrendsPanel({ monitor, ui, slip }) {
13038
13053
  }
13039
13054
 
13040
13055
  // src/components/LivePanel.tsx
13041
- import { useMemo as useMemo10, useState as useState57 } from "react";
13056
+ import { useMemo as useMemo10, useState as useState58 } from "react";
13042
13057
  import { matchKey as matchKey8 } from "@sensiblestats/widget-sdk";
13043
13058
 
13044
13059
  // src/scheduleView.ts
@@ -13213,7 +13228,7 @@ function LeagueGroup({ view, open, onToggle, disambiguate, rowCap, onShowAll, on
13213
13228
  }
13214
13229
 
13215
13230
  // src/components/MatchSheet.tsx
13216
- import { useId as useId2, useState as useState56 } from "react";
13231
+ import { useId as useId2, useState as useState57 } from "react";
13217
13232
  import { localIdOf as localIdOf4, qualifiedId as qualifiedId2, slipSportOf as slipSportOf9, toWireSport as toWireSport6 } from "@sensiblestats/widget-sdk";
13218
13233
 
13219
13234
  // src/useModalDialog.ts
@@ -13279,7 +13294,7 @@ function MatchSheet({ match, league, state, stale, ui, monitor, onAsk, onClose,
13279
13294
  const { dialogRef, onKeyDown } = useModalDialog(onClose, { opener });
13280
13295
  const log = useEventLog();
13281
13296
  const titleId = useId2();
13282
- const [limitHit, setLimitHit] = useState56(false);
13297
+ const [limitHit, setLimitHit] = useState57(false);
13283
13298
  const pinSport = slipSportOf9(match.sport);
13284
13299
  const tour = pinSport === "tennis" && isKnownTour(match.tour) ? match.tour : void 0;
13285
13300
  const followable = pinSport !== "tennis" || tour !== void 0;
@@ -13380,9 +13395,9 @@ var OPEN_TOP_GROUPS = 2;
13380
13395
  var QUIET_ROWS = 4;
13381
13396
  function LivePanel({ discovery, ui, monitor, sport, offered, onSport, league, onLeague, onSeeAll, onAsk }) {
13382
13397
  const { groups, states, stale } = discovery;
13383
- const [mine, setMine] = useState57(false);
13384
- const [toggled, setToggled] = useState57(/* @__PURE__ */ new Map());
13385
- const [sheet, setSheet] = useState57(null);
13398
+ const [mine, setMine] = useState58(false);
13399
+ const [toggled, setToggled] = useState58(/* @__PURE__ */ new Map());
13400
+ const [sheet, setSheet] = useState58(null);
13386
13401
  const pinnedKeys = useMemo10(
13387
13402
  () => new Set(monitor.pins.filter((p) => p.kind === "match").map((p) => matchKey8(p.sport, p.matchId, p.tour))),
13388
13403
  [monitor.pins]
@@ -13489,15 +13504,15 @@ function LivePanel({ discovery, ui, monitor, sport, offered, onSport, league, on
13489
13504
  }
13490
13505
 
13491
13506
  // src/components/ScheduleMatchesPanel.tsx
13492
- import { useEffect as useEffect43, useId as useId3, useMemo as useMemo11, useRef as useRef37, useState as useState59 } from "react";
13507
+ import { useEffect as useEffect43, useId as useId3, useMemo as useMemo11, useRef as useRef37, useState as useState60 } from "react";
13493
13508
  import { matchKey as matchKey10 } from "@sensiblestats/widget-sdk";
13494
13509
 
13495
13510
  // src/useTennisRowPrices.ts
13496
- import { useEffect as useEffect41, useRef as useRef34, useState as useState58 } from "react";
13511
+ import { useEffect as useEffect41, useRef as useRef34, useState as useState59 } from "react";
13497
13512
  import { matchKey as matchKey9 } from "@sensiblestats/widget-sdk";
13498
13513
  var TENNIS_PRICE_POLL_MS = 6e4;
13499
13514
  function useTennisRowPrices(a) {
13500
- const [state, setState] = useState58({ byId: null, stale: false });
13515
+ const [state, setState] = useState59({ byId: null, stale: false });
13501
13516
  const getPricesRef = useRef34(a.getPrices);
13502
13517
  getPricesRef.current = a.getPrices;
13503
13518
  const latest = useRef34(0);
@@ -13660,11 +13675,11 @@ var SKELETON_ROWS = 3;
13660
13675
  function ScheduleMatchesPanel({ discovery, ui, monitor, sport, offered, onSport, day, onDay, loaded, onOpenLive, onAsk, locale, getTennisPrices, slip }) {
13661
13676
  const { localDate: today, states, stale } = discovery;
13662
13677
  const searchId = useId3();
13663
- const [query, setQuery] = useState59("");
13664
- const [toggled, setToggled] = useState59(/* @__PURE__ */ new Map());
13665
- const [expanded, setExpanded] = useState59(/* @__PURE__ */ new Set());
13678
+ const [query, setQuery] = useState60("");
13679
+ const [toggled, setToggled] = useState60(/* @__PURE__ */ new Map());
13680
+ const [expanded, setExpanded] = useState60(/* @__PURE__ */ new Set());
13666
13681
  const listRef = useRef37(null);
13667
- const [sheet, setSheet] = useState59(null);
13682
+ const [sheet, setSheet] = useState60(null);
13668
13683
  const { chips, selected } = loaded;
13669
13684
  useEffect43(() => {
13670
13685
  if (selected !== day) onDay(selected);
@@ -13808,7 +13823,7 @@ function ScheduleMatchesPanel({ discovery, ui, monitor, sport, offered, onSport,
13808
13823
  }
13809
13824
 
13810
13825
  // src/components/GamesPanel.tsx
13811
- import { useEffect as useEffect47, useState as useState74 } from "react";
13826
+ import { useEffect as useEffect47, useState as useState75 } from "react";
13812
13827
 
13813
13828
  // src/components/GamesLoginWall.tsx
13814
13829
  import { jsx as jsx103 } from "react/jsx-runtime";
@@ -13817,7 +13832,7 @@ function GamesLoginWall({ ui }) {
13817
13832
  }
13818
13833
 
13819
13834
  // src/components/GamesHub.tsx
13820
- import { useEffect as useEffect44, useState as useState60 } from "react";
13835
+ import { useEffect as useEffect44, useState as useState61 } from "react";
13821
13836
 
13822
13837
  // src/components/games/ui/gameMeta.ts
13823
13838
  function prettifyGameId(gameId) {
@@ -13968,7 +13983,7 @@ function pickHeroGame(games) {
13968
13983
  }
13969
13984
  var tileKey = (g) => `${g.gameId}-${g.gameDay}-${g.fixtureId}`;
13970
13985
  function GamesHub({ games, myWeeklyRow, weeklyPrize, onOpen, ui }) {
13971
- const [, setTick] = useState60(0);
13986
+ const [, setTick] = useState61(0);
13972
13987
  useEffect44(() => {
13973
13988
  const id = setInterval(() => setTick((t) => t + 1), 6e4);
13974
13989
  return () => clearInterval(id);
@@ -14029,10 +14044,10 @@ function GamesHub({ games, myWeeklyRow, weeklyPrize, onOpen, ui }) {
14029
14044
  }
14030
14045
 
14031
14046
  // src/components/GameScreenHost.tsx
14032
- import { useEffect as useEffect46, useRef as useRef40, useState as useState72 } from "react";
14047
+ import { useEffect as useEffect46, useRef as useRef40, useState as useState73 } from "react";
14033
14048
 
14034
14049
  // src/useGamePlay.ts
14035
- import { useCallback as useCallback26, useRef as useRef38, useState as useState61 } from "react";
14050
+ import { useCallback as useCallback26, useRef as useRef38, useState as useState62 } from "react";
14036
14051
  function toSubmitResult(payload) {
14037
14052
  return {
14038
14053
  // 'pending' means the play is recorded but awaiting resolution (fixture games)
@@ -14044,9 +14059,9 @@ function toSubmitResult(payload) {
14044
14059
  };
14045
14060
  }
14046
14061
  function useGamePlay(conversation, { gameId, gameDay, fixtureId, locale, refresh }) {
14047
- const [result, setResult] = useState61(null);
14048
- const [submitting, setSubmitting] = useState61(false);
14049
- const [rawStatus, setRawStatus] = useState61(null);
14062
+ const [result, setResult] = useState62(null);
14063
+ const [submitting, setSubmitting] = useState62(false);
14064
+ const [rawStatus, setRawStatus] = useState62(null);
14050
14065
  const inFlightRef = useRef38(false);
14051
14066
  const convRef = useRef38(conversation);
14052
14067
  convRef.current = conversation;
@@ -14104,7 +14119,7 @@ function useGamePlay(conversation, { gameId, gameDay, fixtureId, locale, refresh
14104
14119
  }
14105
14120
 
14106
14121
  // src/components/games/MysteryTigerGame.tsx
14107
- import { useState as useState63, useId as useId4 } from "react";
14122
+ import { useState as useState64, useId as useId4 } from "react";
14108
14123
 
14109
14124
  // src/components/games/nationFlags.ts
14110
14125
  var FLAGS = {
@@ -14315,7 +14330,7 @@ function isNationCode(flag) {
14315
14330
  }
14316
14331
 
14317
14332
  // src/components/games/PlayerAvatar.tsx
14318
- import { useState as useState62 } from "react";
14333
+ import { useState as useState63 } from "react";
14319
14334
  import { jsx as jsx108 } from "react/jsx-runtime";
14320
14335
  function initialsOf(name) {
14321
14336
  const parts2 = name.trim().split(/\s+/).filter(Boolean);
@@ -14333,7 +14348,7 @@ function PlayerAvatar({
14333
14348
  imagePath,
14334
14349
  className
14335
14350
  }) {
14336
- const [failed, setFailed] = useState62(false);
14351
+ const [failed, setFailed] = useState63(false);
14337
14352
  const showImage = Boolean(imagePath) && !isPlaceholderImage(imagePath) && !failed;
14338
14353
  return /* @__PURE__ */ jsx108("div", { className, "aria-hidden": "true", children: showImage ? /* @__PURE__ */ jsx108("img", { src: imagePath, alt: "", loading: "lazy", onError: () => setFailed(true) }) : /* @__PURE__ */ jsx108("span", { className: "ss-w-av-initials", children: initialsOf(name) }) });
14339
14354
  }
@@ -14577,7 +14592,7 @@ function MysteryTigerGame({
14577
14592
  onBack
14578
14593
  }) {
14579
14594
  const t = ui.games.mysteryTiger;
14580
- const [query, setQuery] = useState63("");
14595
+ const [query, setQuery] = useState64("");
14581
14596
  const inputId = useId4();
14582
14597
  const clientState = parseClientState(result?.clientStateJson);
14583
14598
  const guessResults = clientState?.guessResults ?? [];
@@ -14839,13 +14854,13 @@ function HigherOrLowerGame({
14839
14854
  }
14840
14855
 
14841
14856
  // src/components/games/CareerPathGame.tsx
14842
- import { useState as useState65, useId as useId5 } from "react";
14857
+ import { useState as useState66, useId as useId5 } from "react";
14843
14858
 
14844
14859
  // src/components/games/ui/CrestShield.tsx
14845
- import { useState as useState64 } from "react";
14860
+ import { useState as useState65 } from "react";
14846
14861
  import { jsx as jsx119 } from "react/jsx-runtime";
14847
14862
  function CrestShield({ src, name, size = 28 }) {
14848
- const [failed, setFailed] = useState64(false);
14863
+ const [failed, setFailed] = useState65(false);
14849
14864
  if (src && !isPlaceholderImage(src) && !failed) {
14850
14865
  return /* @__PURE__ */ jsx119("img", { className: "ss-g-crest", src, alt: name, width: size, height: size, loading: "lazy", onError: () => setFailed(true) });
14851
14866
  }
@@ -14877,7 +14892,7 @@ function CareerPathGame({
14877
14892
  }) {
14878
14893
  const s = ui.games.careerPath;
14879
14894
  const title = gameTitle({ gameId: "career-path" }, ui.games.titles);
14880
- const [query, setQuery] = useState65("");
14895
+ const [query, setQuery] = useState66("");
14881
14896
  const inputId = useId5();
14882
14897
  const clientState = parseClientState3(result?.clientStateJson);
14883
14898
  const alreadyGuessedIds = new Set(clientState?.guessResults.map((g) => g.playerId) ?? []);
@@ -14984,7 +14999,7 @@ function CareerPathGame({
14984
14999
  }
14985
15000
 
14986
15001
  // src/components/games/BeatTheGridGame.tsx
14987
- import React, { useEffect as useEffect45, useId as useId6, useRef as useRef39, useState as useState66 } from "react";
15002
+ import React, { useEffect as useEffect45, useId as useId6, useRef as useRef39, useState as useState67 } from "react";
14988
15003
 
14989
15004
  // src/components/games/ui/OptionList.tsx
14990
15005
  import { jsx as jsx121 } from "react/jsx-runtime";
@@ -15073,7 +15088,7 @@ function SearchSheet({
15073
15088
  ui
15074
15089
  }) {
15075
15090
  const s = ui.games.beatTheGrid;
15076
- const [query, setQuery] = useState66("");
15091
+ const [query, setQuery] = useState67("");
15077
15092
  const inputId = useId6();
15078
15093
  const inputRef = useRef39(null);
15079
15094
  useEffect45(() => {
@@ -15141,7 +15156,7 @@ function BeatTheGridGame({
15141
15156
  }) {
15142
15157
  const s = ui.games.beatTheGrid;
15143
15158
  const title = gameTitle({ gameId: "beat-the-grid" }, ui.games.titles);
15144
- const [activeCell, setActiveCell] = useState66(null);
15159
+ const [activeCell, setActiveCell] = useState67(null);
15145
15160
  const clientState = parseClientState4(result?.clientStateJson);
15146
15161
  const filledCells = clientState?.cells ?? [];
15147
15162
  const isLocked2 = result?.alreadyPlayed === true || clientState?.isComplete === true;
@@ -15296,7 +15311,7 @@ function BeatTheGridGame({
15296
15311
  }
15297
15312
 
15298
15313
  // src/components/games/GuessTheXiGame.tsx
15299
- import { useState as useState67, useId as useId7 } from "react";
15314
+ import { useState as useState68, useId as useId7 } from "react";
15300
15315
 
15301
15316
  // src/components/games/ui/PitchSvg.tsx
15302
15317
  import { Fragment as Fragment36, jsx as jsx123, jsxs as jsxs109 } from "react/jsx-runtime";
@@ -15385,7 +15400,7 @@ function GuessTheXiGame({
15385
15400
  onBack
15386
15401
  }) {
15387
15402
  const t = ui.games.guessTheXi;
15388
- const [query, setQuery] = useState67("");
15403
+ const [query, setQuery] = useState68("");
15389
15404
  const inputId = useId7();
15390
15405
  const clientState = parseClientState5(result?.clientStateJson);
15391
15406
  const isOver = result?.alreadyPlayed === true || clientState?.status === "solved" || clientState?.status === "failed";
@@ -15528,7 +15543,7 @@ function GuessTheXiGame({
15528
15543
  }
15529
15544
 
15530
15545
  // src/components/games/DailyQuizGame.tsx
15531
- import { useState as useState68 } from "react";
15546
+ import { useState as useState69 } from "react";
15532
15547
  import { Fragment as Fragment38, jsx as jsx125, jsxs as jsxs111 } from "react/jsx-runtime";
15533
15548
  function parseClientState6(json) {
15534
15549
  if (!json) return null;
@@ -15569,8 +15584,8 @@ function DailyQuizGame({
15569
15584
  }) {
15570
15585
  const s = ui.games.dailyQuiz;
15571
15586
  const title = gameTitle({ gameId: "daily-quiz" }, ui.games.titles);
15572
- const [selections, setSelections] = useState68(/* @__PURE__ */ new Map());
15573
- const [page, setPage] = useState68(0);
15587
+ const [selections, setSelections] = useState69(/* @__PURE__ */ new Map());
15588
+ const [page, setPage] = useState69(0);
15574
15589
  const clientState = parseClientState6(result?.clientStateJson);
15575
15590
  const results2 = clientState?.results ?? [];
15576
15591
  const isRevealed = results2.length > 0 || result?.alreadyPlayed === true;
@@ -15680,7 +15695,7 @@ function DailyQuizGame({
15680
15695
  }
15681
15696
 
15682
15697
  // src/components/games/MatchdayPredictorGame.tsx
15683
- import { useId as useId8, useState as useState69 } from "react";
15698
+ import { useId as useId8, useState as useState70 } from "react";
15684
15699
  import { jsx as jsx126, jsxs as jsxs112 } from "react/jsx-runtime";
15685
15700
  var SCORER_SEARCH_THRESHOLD = 9;
15686
15701
  function parseClientState7(json) {
@@ -15776,11 +15791,11 @@ function MatchdayPredictorGame({
15776
15791
  onBack
15777
15792
  }) {
15778
15793
  const t = ui.games.predictor;
15779
- const [homeScore, setHomeScore] = useState69(0);
15780
- const [awayScore, setAwayScore] = useState69(0);
15781
- const [firstScorerPlayerId, setFirstScorerPlayerId] = useState69(null);
15782
- const [lastEdited, setLastEdited] = useState69("home");
15783
- const [query, setQuery] = useState69("");
15794
+ const [homeScore, setHomeScore] = useState70(0);
15795
+ const [awayScore, setAwayScore] = useState70(0);
15796
+ const [firstScorerPlayerId, setFirstScorerPlayerId] = useState70(null);
15797
+ const [lastEdited, setLastEdited] = useState70("home");
15798
+ const [query, setQuery] = useState70("");
15784
15799
  const searchId = useId8();
15785
15800
  const clientState = parseClientState7(result?.clientStateJson);
15786
15801
  const alreadyPlayed = result?.alreadyPlayed === true;
@@ -15948,7 +15963,7 @@ function MatchdayPredictorGame({
15948
15963
  }
15949
15964
 
15950
15965
  // src/components/games/StartingXiGame.tsx
15951
- import { useId as useId9, useState as useState70 } from "react";
15966
+ import { useId as useId9, useState as useState71 } from "react";
15952
15967
  import { Fragment as Fragment39, jsx as jsx127, jsxs as jsxs113 } from "react/jsx-runtime";
15953
15968
  var POINTS_PER_STARTER = 8;
15954
15969
  var XI_SIZE = 11;
@@ -15992,9 +16007,9 @@ function StartingXiGame({
15992
16007
  lockAtUtc
15993
16008
  }) {
15994
16009
  const t = ui.games.startingXi;
15995
- const [slotPlayers, setSlotPlayers] = useState70(() => Array(XI_SIZE).fill(null));
15996
- const [active, setActive] = useState70(0);
15997
- const [query, setQuery] = useState70("");
16010
+ const [slotPlayers, setSlotPlayers] = useState71(() => Array(XI_SIZE).fill(null));
16011
+ const [active, setActive] = useState71(0);
16012
+ const [query, setQuery] = useState71("");
15998
16013
  const searchId = useId9();
15999
16014
  const clientState = parseClientState8(result?.clientStateJson);
16000
16015
  const alreadyPlayed = result?.alreadyPlayed === true;
@@ -16134,7 +16149,7 @@ function StartingXiGame({
16134
16149
  }
16135
16150
 
16136
16151
  // src/components/games/StatLadderGame.tsx
16137
- import { useId as useId10, useState as useState71 } from "react";
16152
+ import { useId as useId10, useState as useState72 } from "react";
16138
16153
  import { jsx as jsx128, jsxs as jsxs114 } from "react/jsx-runtime";
16139
16154
  function ladderClue(ladder) {
16140
16155
  const mystery = ladder.find((r) => r.rank === 2);
@@ -16171,8 +16186,8 @@ function StatLadderGame({
16171
16186
  onBack
16172
16187
  }) {
16173
16188
  const t = ui.games.statLadder;
16174
- const [query, setQuery] = useState71("");
16175
- const [selectedId, setSelectedId] = useState71(null);
16189
+ const [query, setQuery] = useState72("");
16190
+ const [selectedId, setSelectedId] = useState72(null);
16176
16191
  const searchId = useId10();
16177
16192
  const clientState = parseClientState9(result?.clientStateJson);
16178
16193
  const revealed = clientState != null;
@@ -16379,7 +16394,7 @@ function GameScreenHost({
16379
16394
  ui
16380
16395
  }) {
16381
16396
  const { gameId, fixtureId, gameDay = "", lockAtUtc = null } = selected;
16382
- const [configJson, setConfigJson] = useState72(null);
16397
+ const [configJson, setConfigJson] = useState73(null);
16383
16398
  useEffect46(() => {
16384
16399
  setConfigJson(null);
16385
16400
  if (!conversation) return;
@@ -16521,7 +16536,7 @@ function GameScreenHost({
16521
16536
  }
16522
16537
 
16523
16538
  // src/components/Leaderboard.tsx
16524
- import { useState as useState73 } from "react";
16539
+ import { useState as useState74 } from "react";
16525
16540
 
16526
16541
  // src/components/LeaderboardRow.tsx
16527
16542
  import { jsx as jsx131, jsxs as jsxs116 } from "react/jsx-runtime";
@@ -16608,7 +16623,7 @@ function Leaderboard({
16608
16623
  ui,
16609
16624
  onPlay
16610
16625
  }) {
16611
- const [segment, setSegment] = useState73("weekly");
16626
+ const [segment, setSegment] = useState74("weekly");
16612
16627
  const myRow = segment === "weekly" ? data.myWeeklyRow : data.myAllTimeRow;
16613
16628
  const offBoard = myRow !== null && myRow !== void 0 && myRow.rank === -1;
16614
16629
  const isEmpty = segment === "weekly" ? data.weeklyTop.length === 0 : data.allTimeTop.length === 0;
@@ -16713,8 +16728,8 @@ function GamesPanel({
16713
16728
  leaderboardLoading,
16714
16729
  refreshHub
16715
16730
  }) {
16716
- const [selected, setSelected] = useState74(null);
16717
- const [segment, setSegment] = useState74("play");
16731
+ const [selected, setSelected] = useState75(null);
16732
+ const [segment, setSegment] = useState75("play");
16718
16733
  useEffect47(() => {
16719
16734
  ensureGamesFonts();
16720
16735
  }, []);
@@ -16779,10 +16794,10 @@ function GamesPanel({
16779
16794
  }
16780
16795
 
16781
16796
  // src/components/FavouritesPanel.tsx
16782
- import { useEffect as useEffect50, useRef as useRef42, useState as useState77 } from "react";
16797
+ import { useEffect as useEffect50, useRef as useRef42, useState as useState78 } from "react";
16783
16798
 
16784
16799
  // src/components/FavouriteChips.tsx
16785
- import { useEffect as useEffect48, useState as useState75 } from "react";
16800
+ import { useEffect as useEffect48, useState as useState76 } from "react";
16786
16801
  import { Fragment as Fragment41, jsx as jsx136, jsxs as jsxs120 } from "react/jsx-runtime";
16787
16802
  async function toggleWithNotice(controller, kind, id, onNotice) {
16788
16803
  const outcome = await controller.toggle(kind, id);
@@ -16829,7 +16844,7 @@ function Group({ title, entities, sport, ui, controller, onNotice }) {
16829
16844
  ] });
16830
16845
  }
16831
16846
  function FavouriteChips({ controller, ui, sport, sportLabel: sportLabel2, onNotice }) {
16832
- const [confirming, setConfirming] = useState75(false);
16847
+ const [confirming, setConfirming] = useState76(false);
16833
16848
  const data = controller.data;
16834
16849
  useEffect48(() => {
16835
16850
  setConfirming(false);
@@ -16888,14 +16903,14 @@ function FavouriteChips({ controller, ui, sport, sportLabel: sportLabel2, onNoti
16888
16903
  }
16889
16904
 
16890
16905
  // src/components/FavouritesSearch.tsx
16891
- import { useEffect as useEffect49, useRef as useRef41, useState as useState76 } from "react";
16906
+ import { useEffect as useEffect49, useRef as useRef41, useState as useState77 } from "react";
16892
16907
  import { jsx as jsx137, jsxs as jsxs121 } from "react/jsx-runtime";
16893
16908
  var MIN_LETTERS = 2;
16894
16909
  var MAX_LENGTH = 64;
16895
16910
  var DEBOUNCE_MS = 250;
16896
16911
  function FavouritesSearch({ controller, ui, sport, onNotice }) {
16897
- const [query, setQuery] = useState76("");
16898
- const [answer, setAnswer] = useState76(null);
16912
+ const [query, setQuery] = useState77("");
16913
+ const [answer, setAnswer] = useState77(null);
16899
16914
  const controllerRef = useRef41(controller);
16900
16915
  controllerRef.current = controller;
16901
16916
  const trimmed = query.trim();
@@ -16965,7 +16980,7 @@ function FavouritesSearch({ controller, ui, sport, onNotice }) {
16965
16980
  // src/components/FavouritesPanel.tsx
16966
16981
  import { jsx as jsx138, jsxs as jsxs122 } from "react/jsx-runtime";
16967
16982
  function FavouritesPanel({ controller, ui, sport, sports, onSportChange }) {
16968
- const [notice, setNotice] = useState77(null);
16983
+ const [notice, setNotice] = useState78(null);
16969
16984
  const refreshRef = useRef42(controller.refresh);
16970
16985
  refreshRef.current = controller.refresh;
16971
16986
  useEffect50(() => {
@@ -16997,7 +17012,7 @@ function FavouritesPanel({ controller, ui, sport, sports, onSportChange }) {
16997
17012
  }
16998
17013
 
16999
17014
  // src/components/PresetTools.tsx
17000
- import { useId as useId11, useState as useState78 } from "react";
17015
+ import { useId as useId11, useState as useState79 } from "react";
17001
17016
  import { Fragment as Fragment42, jsx as jsx139, jsxs as jsxs123 } from "react/jsx-runtime";
17002
17017
  function PresetToolModal({ title, closeLabel, onClose, children, footer, className }) {
17003
17018
  const { dialogRef, onKeyDown } = useModalDialog(onClose, { restoreFocus: false });
@@ -17051,9 +17066,9 @@ function BuildComboTool({ grid, strings, streaming, formatKickoff, initialTotal,
17051
17066
  const totalOptions = comboTotals(grid);
17052
17067
  const totals = totalOptions.map((o) => o.value);
17053
17068
  const legChoices = comboLegChoices(grid);
17054
- const [total, setTotal] = useState78(() => nearest(totals, initialTotal));
17055
- const [legs, setLegs] = useState78(() => legsForTotal(grid, nearest(totals, initialTotal), clampLegs(legChoices, initialLegs)));
17056
- const [announcement, setAnnouncement] = useState78("");
17069
+ const [total, setTotal] = useState79(() => nearest(totals, initialTotal));
17070
+ const [legs, setLegs] = useState79(() => legsForTotal(grid, nearest(totals, initialTotal), clampLegs(legChoices, initialLegs)));
17071
+ const [announcement, setAnnouncement] = useState79("");
17057
17072
  const cell2 = findCombo(grid, total, legs);
17058
17073
  const minLegs = legChoices[0] ?? legs;
17059
17074
  const maxLegs = legChoices[legChoices.length - 1] ?? legs;
@@ -17092,7 +17107,7 @@ function FavouritesSheet({ ui, controller, sport, sports, onSportChange, onClose
17092
17107
  }
17093
17108
 
17094
17109
  // src/components/dashboard/v8/SentenceBuilder.tsx
17095
- import { useEffect as useEffect52, useRef as useRef44, useState as useState79 } from "react";
17110
+ import { useEffect as useEffect52, useRef as useRef44, useState as useState80 } from "react";
17096
17111
  import { Fragment as Fragment43, jsx as jsx141, jsxs as jsxs124 } from "react/jsx-runtime";
17097
17112
  var TOTALS = ["any", "3", "5", "10", "20", "50"];
17098
17113
  var BASE_LEGS = [1, 2, 3, 4];
@@ -17118,8 +17133,8 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
17118
17133
  const opening = openingGames(preset);
17119
17134
  const gamesOptions = opening.options;
17120
17135
  const marketOptions = usableMarkets(preset);
17121
- const [fingerprint] = useState79(() => JSON.stringify(preset));
17122
- const [saved] = useState79(() => {
17136
+ const [fingerprint] = useState80(() => JSON.stringify(preset));
17137
+ const [saved] = useState80(() => {
17123
17138
  const kept = memory3?.savedView(sport);
17124
17139
  return kept && kept.fingerprint === fingerprint ? kept : null;
17125
17140
  });
@@ -17133,9 +17148,9 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
17133
17148
  // The server never widens by itself: an all-games preset with no ids asks for it.
17134
17149
  widen: opening.option ? opening.option.matchIds.length === 0 : preset.gamesScope === "all" && preset.matchIds.length === 0
17135
17150
  };
17136
- const [view, setView] = useState79(() => saved?.view ?? openingView);
17151
+ const [view, setView] = useState80(() => saved?.view ?? openingView);
17137
17152
  const autoWidened = useRef44(false);
17138
- const [widenedNote, setWidenedNote] = useState79(saved?.widenedNote ?? false);
17153
+ const [widenedNote, setWidenedNote] = useState80(saved?.widenedNote ?? false);
17139
17154
  const requestFor = (v) => ({
17140
17155
  sport,
17141
17156
  ...v.marketKey !== null ? { marketKey: v.marketKey } : {},
@@ -17147,7 +17162,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
17147
17162
  ...operatorUserId ? { operatorUserId } : {},
17148
17163
  ...anonymousUserId ? { anonymousUserId } : {}
17149
17164
  });
17150
- const [first] = useState79(() => requestFor(view));
17165
+ const [first] = useState80(() => requestFor(view));
17151
17166
  const { grid, status: status2, confirmed, request } = useBuilderGrid({ conversation, locale: ui.hostTag, memory: memory3, initial: first });
17152
17167
  const lastRequest = useRef44(first);
17153
17168
  useEffect52(() => {
@@ -17174,7 +17189,7 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
17174
17189
  ask(next);
17175
17190
  };
17176
17191
  const canNarrow = preset.matchIds.length > 0;
17177
- const suggested = grid?.status === "miss" ? grid.legCountThatLands : null;
17192
+ const suggested = grid?.status === "miss" || grid?.nearest === true ? grid.legCountThatLands : null;
17178
17193
  const legButtons = Array.from(/* @__PURE__ */ new Set([
17179
17194
  ...BASE_LEGS,
17180
17195
  ...[preset.legs, suggested].filter((n) => n !== null && n > 4)
@@ -17183,13 +17198,13 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
17183
17198
  const rows = ready && grid.status === "ok" ? legsOf(grid, sport) : null;
17184
17199
  const rowSlip = rows ? guardLegsPreMatch(slip, rows, ui) : slip;
17185
17200
  useNextKickoffRender(rows ? rows.map((l) => l.kickoffUtc) : []);
17186
- const [startedNote, setStartedNote] = useState79(false);
17201
+ const [startedNote, setStartedNote] = useState80(false);
17187
17202
  const anyStarted = rows !== null && rows.some((l) => !preMatchOpen(l.kickoffUtc, Date.now()));
17188
17203
  useEffect52(() => {
17189
17204
  if (startedNote && status2 === "ready" && !anyStarted) setStartedNote(false);
17190
17205
  }, [startedNote, status2, anyStarted]);
17191
17206
  const market = rows?.[0]?.market;
17192
- const [seen2, setSeen] = useState79(null);
17207
+ const [seen2, setSeen] = useState80(null);
17193
17208
  useEffect52(() => {
17194
17209
  if (market) setSeen(market);
17195
17210
  }, [market]);
@@ -17315,7 +17330,9 @@ function SentenceBuilder({ preset, ui, conversation, memory: memory3, slip, spor
17315
17330
  ] }) : null,
17316
17331
  rows && rows.length > 0 ? /* @__PURE__ */ jsxs124(Fragment43, { children: [
17317
17332
  /* @__PURE__ */ jsxs124("div", { className: "ss-w-v8-builder-rows", children: [
17333
+ grid?.nearest === true ? /* @__PURE__ */ jsx141("p", { className: "ss-w-v8-builder-note", "data-kind": "nearest", children: ui.v8Nearest }) : null,
17318
17334
  /* @__PURE__ */ jsx141("ol", { className: "ss-w-combo-legs", role: "list", children: rows.map((leg) => /* @__PURE__ */ jsx141(ComboLegRow, { leg, addToSlipEnabled: !!slip.onAddToSlip, ui, slip: rowSlip, hold: !confirmed, closed: !preMatchOpen(leg.kickoffUtc, Date.now()) }, leg.key)) }),
17335
+ grid && grid.requestedLegs > 1 && grid.total !== null && grid.totalFormats !== null && grid.multiplication !== null ? /* @__PURE__ */ jsx141("div", { className: "ss-w-combo-math", children: oddsFormat === "decimal" ? grid.multiplication : formatOdds(grid.totalFormats, oddsFormat) }) : null,
17319
17336
  grid && grid.requestedLegs > 1 ? /* @__PURE__ */ jsx141(AddAllToSlipButton, { legs: rows, slip: rowSlip, ui, labels: { add: ui.v8AddAll, done: ui.allInSlip }, combo, sizeless: true, hold: !confirmed, onStartedGame: () => {
17320
17337
  setStartedNote(true);
17321
17338
  void request(lastRequest.current);
@@ -17613,10 +17630,10 @@ function Squad({ squad, loading, ui, view, onToggleView, stats, statsLoading, se
17613
17630
  }
17614
17631
 
17615
17632
  // src/components/PlayerPhoto.tsx
17616
- import { useState as useState80 } from "react";
17633
+ import { useState as useState81 } from "react";
17617
17634
  import { jsx as jsx147 } from "react/jsx-runtime";
17618
17635
  function PlayerPhoto({ photoUrl, jerseyNumber, size }) {
17619
- const [failed, setFailed] = useState80(false);
17636
+ const [failed, setFailed] = useState81(false);
17620
17637
  const box = { width: size, height: size };
17621
17638
  if (photoUrl && !failed) {
17622
17639
  return /* @__PURE__ */ jsx147("img", { className: "ss-w-pd-photo", style: box, src: photoUrl, alt: "", "aria-hidden": "true", onError: () => setFailed(true) });
@@ -17651,7 +17668,7 @@ function MiniPitch({ positionCode }) {
17651
17668
  }
17652
17669
 
17653
17670
  // src/components/PerformanceBars.tsx
17654
- import { useState as useState81 } from "react";
17671
+ import { useState as useState82 } from "react";
17655
17672
  import { jsx as jsx149, jsxs as jsxs130 } from "react/jsx-runtime";
17656
17673
  var GROUPS = ["shooting", "passing", "possession", "defending"];
17657
17674
  function finite4(v) {
@@ -17697,7 +17714,7 @@ function unrankedLine(ui, reason) {
17697
17714
  }
17698
17715
  }
17699
17716
  function PerformanceBars({ performance, competitionName, strings }) {
17700
- const [mode, setMode] = useState81("total");
17717
+ const [mode, setMode] = useState82("total");
17701
17718
  const labelled = performance.metrics.filter((m) => Object.prototype.hasOwnProperty.call(strings.perfMetric, m.key));
17702
17719
  if (!labelled.some((m) => valueOf(m, "total") !== null || valueOf(m, "per90") !== null)) return null;
17703
17720
  const subtitle = !performance.ranked ? unrankedLine(strings, performance.unrankedReason) : competitionName ? strings.perfRankedAgainst(competitionName, performance.positionGroup) : null;
@@ -17906,7 +17923,7 @@ function SettingsSheet({ ui, onClose }) {
17906
17923
  import { Fragment as Fragment46, jsx as jsx152, jsxs as jsxs133 } from "react/jsx-runtime";
17907
17924
  var FULLSCREEN_QUERY = "(max-width: 639px)";
17908
17925
  function useIsModal() {
17909
- const [modal, setModal] = useState82(false);
17926
+ const [modal, setModal] = useState83(false);
17910
17927
  useEffect53(() => {
17911
17928
  if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
17912
17929
  const mql = window.matchMedia(FULLSCREEN_QUERY);
@@ -17921,8 +17938,8 @@ var HIDDEN_LAYER_STYLE = { position: "absolute", inset: 0, visibility: "hidden",
17921
17938
  var SQUAD_LAYER_STYLE = { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 };
17922
17939
  function ChatPanel({ controller, ui, slip, onDashboardTap, monitor, discovery, schedule, gamesResult, leaderboardResult, clubFixturesResult, clubStandingsResult, clubSquadResult, clubSquadStatsResult, clubPlayerDetailResult, loggedIn, conversation, presetGrid, favouritesEnabled, favourites, builder, onCloseRequested, onRegisterBack }) {
17923
17940
  const { state, close, stop, send, reset } = controller;
17924
- const [squadView, setSquadView] = useState82("roster");
17925
- const [selectedPlayerId, setSelectedPlayerId] = useState82(null);
17941
+ const [squadView, setSquadView] = useState83("roster");
17942
+ const [selectedPlayerId, setSelectedPlayerId] = useState83(null);
17926
17943
  const clearPlayerDetail = clubPlayerDetailResult?.clear;
17927
17944
  const fetchPlayerDetail = clubPlayerDetailResult?.fetch;
17928
17945
  const squadLayerRef = useRef45(null);
@@ -18000,10 +18017,10 @@ function ChatPanel({ controller, ui, slip, onDashboardTap, monitor, discovery, s
18000
18017
  const limitRef = useRef45(null);
18001
18018
  const typedSendRef = useRef45(false);
18002
18019
  const focusAfterCloseRef = useRef45(null);
18003
- const [tool, setTool] = useState82(null);
18020
+ const [tool, setTool] = useState83(null);
18004
18021
  const panelRef = useRef45(null);
18005
18022
  const settings = useOddsSettings();
18006
- const [settingsOpen, setSettingsOpen] = useState82(false);
18023
+ const [settingsOpen, setSettingsOpen] = useState83(false);
18007
18024
  const hasSettings = settings.oddsOffered || !settings.themeLocked;
18008
18025
  const openSettings = useCallback27(() => {
18009
18026
  setTool(null);
@@ -18748,6 +18765,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
18748
18765
  .ss-w-nfl-kick { margin-left: auto; white-space: nowrap; }
18749
18766
  .ss-w-nfl-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ss-w-ink); overflow-wrap: anywhere; }
18750
18767
  .ss-w-nfl-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 16px; padding: 0 3px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .02em; line-height: 1; color: var(--ss-w-ink); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); box-sizing: border-box; }
18768
+ .ss-w-nfl-badge--img { min-width: 0; width: 16px; padding: 1px; object-fit: contain; }
18769
+ .ss-w-props-scorer-who { display: flex; align-items: center; min-width: 0; }
18751
18770
  .ss-w-nfl-who { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 600; font-size: 13px; color: var(--ss-w-ink); overflow-wrap: anywhere; }
18752
18771
  .ss-w-nfl-pos { font-size: 10px; font-weight: 600; color: var(--ss-w-faint); border: 1px solid var(--ss-w-line); border-radius: 999px; padding: 0 6px; }
18753
18772
  .ss-w-nfl-n { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); text-align: right; white-space: nowrap; }
@@ -21163,7 +21182,7 @@ function StatsWidget(props) {
21163
21182
  return [...seen2];
21164
21183
  }, [discovery.matchDays, discovery.groups]);
21165
21184
  const scheduleSport = useScheduleSport(offeredSports);
21166
- const [liveLeague, setLiveLeague] = useState83(null);
21185
+ const [liveLeague, setLiveLeague] = useState84(null);
21167
21186
  const [matchesDay, setMatchesDay] = useMatchesDayPick(discovery.localDate);
21168
21187
  const matchesLoaded = useMatchesDay({
21169
21188
  discovery,
@@ -21214,7 +21233,7 @@ function StatsWidget(props) {
21214
21233
  const clubSquadResult = useClubSquad(built?.conversation ?? null, { activeTab: monitor.activeTab, enabled: clubFixturesResult.enabled });
21215
21234
  const clubSquadStatsResult = useClubSquadStats(built?.conversation ?? null, { activeTab: monitor.activeTab, enabled: clubFixturesResult.enabled });
21216
21235
  const clubPlayerDetailResult = useClubPlayerDetail(built?.conversation ?? null);
21217
- const [favSportPick, setFavSportPick] = useState83(null);
21236
+ const [favSportPick, setFavSportPick] = useState84(null);
21218
21237
  const latestGreeting = useMemo13(() => {
21219
21238
  for (const m of [...controller.state.messages].reverse()) {
21220
21239
  if (m.role === "assistant" && m.defaultSport !== void 0) return m;
@@ -21230,12 +21249,12 @@ function StatsWidget(props) {
21230
21249
  const favSport = [favSportPick, rememberedSport, latestGreeting?.defaultSport].find(offered) ?? "football";
21231
21250
  const favSports = favSportOptions.length > 0 ? favSportOptions : [{ sport: favSport, label: sportLabel(ui, favSport) }];
21232
21251
  const hasFavouritesIdentity = !!(operatorUserId || anonymousUserId);
21233
- const [builderSportPick, setBuilderSportPick] = useState83(null);
21252
+ const [builderSportPick, setBuilderSportPick] = useState84(null);
21234
21253
  const builderGreeting = useMemo13(
21235
21254
  () => [...controller.state.messages].reverse().find((m) => m.role === "assistant" && (m.greetingDashboard !== void 0 || m.greetingDashboards !== void 0)) ?? null,
21236
21255
  [controller.state.messages]
21237
21256
  );
21238
- const [coolOff, setCoolOff] = useState83(null);
21257
+ const [coolOff, setCoolOff] = useState84(null);
21239
21258
  const onBuilderCoolOff = useCallback28((sport) => {
21240
21259
  if (!builderGreeting) return;
21241
21260
  setCoolOff((prev) => {
@@ -21256,7 +21275,7 @@ function StatsWidget(props) {
21256
21275
  return options.filter((o) => !cooled.includes(o.sport));
21257
21276
  }, [builderGreeting, coolOff, ui]);
21258
21277
  const builderSport = [builderSportPick, rememberedSport, latestGreeting?.defaultSport].find((s) => !!s && builderOptions.some((o) => o.sport === s)) ?? builderOptions[0]?.sport ?? "";
21259
- const [panelEverOpened, setPanelEverOpened] = useState83(panelOpen);
21278
+ const [panelEverOpened, setPanelEverOpened] = useState84(panelOpen);
21260
21279
  if (panelOpen && !panelEverOpened) setPanelEverOpened(true);
21261
21280
  const favourites = useFavourites({
21262
21281
  conversation: built?.conversation ?? null,
@@ -21268,7 +21287,7 @@ function StatsWidget(props) {
21268
21287
  onChanged: discovery.refreshSchedule
21269
21288
  });
21270
21289
  const favouritesEnabled = hasFavouritesIdentity && favourites.status !== "refused";
21271
- const [favouritesOpen, setFavouritesOpen] = useState83(false);
21290
+ const [favouritesOpen, setFavouritesOpen] = useState84(false);
21272
21291
  if (!panelOpen && favouritesOpen) setFavouritesOpen(false);
21273
21292
  const getPricePresets = useCallback28(
21274
21293
  (locale) => built ? built.conversation.getPricePresets(locale, { pool: "open" }) : Promise.resolve(null),