@sensiblestats/widget-react 0.42.0 → 0.43.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
@@ -497,7 +497,8 @@ function toInsightVM(insight) {
497
497
  homeCrest: str(insight.homeTeamImagePath),
498
498
  awayCrest: str(insight.awayTeamImagePath),
499
499
  competitionCrest: str(insight.competitionImagePath),
500
- kickoffUtc: str(insight.kickoffUtc)
500
+ kickoffUtc: str(insight.kickoffUtc),
501
+ kickoffLabel: str(insight.kickoffLabel)
501
502
  };
502
503
  }
503
504
  function toSlipSelection(vm, conversationId) {
@@ -546,6 +547,7 @@ function toMarketOddsVM(card) {
546
547
  competitionCrest: str(card.competitionImagePath),
547
548
  competition: str(card.competitionName),
548
549
  kickoffUtc: str(card.kickoffUtc),
550
+ kickoffLabel: str(card.kickoffLabel),
549
551
  bookmaker: rows.map((r) => str(r.bookmakerName)).find(Boolean),
550
552
  updatedAt: updated.length > 0 ? updated[updated.length - 1] : void 0,
551
553
  isLive: rows.some((r) => r.isLive === true),
@@ -1900,7 +1902,8 @@ function CardFixture({ it }) {
1900
1902
  }
1901
1903
  function InsightCard({ it, ui, slip, monitor }) {
1902
1904
  const live = it.isLive || it.phase === "live";
1903
- const kickoff = it.kickoffUtc && ui?.bettingKickoff ? ui.bettingKickoff(it.kickoffUtc) : void 0;
1905
+ const kickoffFallback = it.kickoffUtc && ui?.bettingKickoff ? ui.bettingKickoff(it.kickoffUtc) : void 0;
1906
+ const kickoff = it.kickoffLabel ?? (kickoffFallback ? `${kickoffFallback.dayLabel} ${kickoffFallback.time}` : void 0);
1904
1907
  const hasNamedTeams = !!it.homeTeamName && !!it.awayTeamName;
1905
1908
  const leftIsFixture = hasNamedTeams || !!it.fixture;
1906
1909
  const showPin = !!monitor && it.pinEnabled;
@@ -1910,11 +1913,7 @@ function InsightCard({ it, ui, slip, monitor }) {
1910
1913
  /* @__PURE__ */ jsx13("span", { className: "ss-w-bi-live-dot", "aria-hidden": "true" }),
1911
1914
  ui?.liveLabel ?? "Live"
1912
1915
  ] }) : null,
1913
- kickoff ? /* @__PURE__ */ jsxs9("span", { className: "ss-w-bi-kick", children: [
1914
- kickoff.dayLabel,
1915
- " ",
1916
- kickoff.time
1917
- ] }) : null,
1916
+ kickoff ? /* @__PURE__ */ jsx13("span", { className: "ss-w-bi-kick", children: kickoff }) : null,
1918
1917
  showPin && ui ? /* @__PURE__ */ jsx13(PinToggle, { ui, monitor, pin: { kind: "match", matchId: it.matchId } }) : null
1919
1918
  ] });
1920
1919
  return /* @__PURE__ */ jsxs9("div", { className: "ss-w-binsight", children: [
@@ -1987,7 +1986,8 @@ function OddsRow({ vm, row, ui, slip, inSlipIds }) {
1987
1986
  }
1988
1987
  function MarketOddsCard({ vm, ui, slip, monitor, inSlipIds, hideHeader, pinRef }) {
1989
1988
  const [open, setOpen] = useState10(false);
1990
- const kickoff = vm.kickoffUtc && ui?.bettingKickoff ? ui.bettingKickoff(vm.kickoffUtc) : void 0;
1989
+ const kickoffFallback = vm.kickoffUtc && ui?.bettingKickoff ? ui.bettingKickoff(vm.kickoffUtc) : void 0;
1990
+ const kickoff = vm.kickoffLabel ?? (kickoffFallback ? `${kickoffFallback.dayLabel} ${kickoffFallback.time}` : void 0);
1991
1991
  const hasNamedTeams = !!vm.homeTeamName && !!vm.awayTeamName;
1992
1992
  const showPin = !!monitor && vm.pinEnabled;
1993
1993
  const showMarketPin = showPin && !pinRef;
@@ -2004,11 +2004,7 @@ function MarketOddsCard({ vm, ui, slip, monitor, inSlipIds, hideHeader, pinRef }
2004
2004
  /* @__PURE__ */ jsx14("span", { className: "ss-w-bi-live-dot", "aria-hidden": "true" }),
2005
2005
  ui?.liveLabel ?? "Live"
2006
2006
  ] }) : null,
2007
- kickoff ? /* @__PURE__ */ jsxs10("span", { className: "ss-w-bi-kick", children: [
2008
- kickoff.dayLabel,
2009
- " ",
2010
- kickoff.time
2011
- ] }) : null,
2007
+ kickoff ? /* @__PURE__ */ jsx14("span", { className: "ss-w-bi-kick", children: kickoff }) : null,
2012
2008
  showPin && ui ? /* @__PURE__ */ jsx14(
2013
2009
  PinToggle,
2014
2010
  {