fansunited-frontend-components 0.0.39 → 0.0.40

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.
Files changed (48) hide show
  1. package/ChanceGame.js +104 -102
  2. package/ClassicQuizPlay.js +45 -42
  3. package/CollectLead.js +25 -24
  4. package/Discussion.js +376 -378
  5. package/EitherOrPlay.d.ts +4 -0
  6. package/EitherOrPlay.d.ts.map +1 -0
  7. package/EitherOrPlay.js +2533 -0
  8. package/EventGamePlay.js +59 -54
  9. package/MatchQuizPlay.js +63 -57
  10. package/PersonalityQuizPlay.js +7935 -7201
  11. package/PickThePair.js +153 -151
  12. package/PollVote.js +108 -104
  13. package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
  14. package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
  15. package/chunks/Avatar-CQCrd1m-.js +352 -0
  16. package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
  17. package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
  18. package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
  19. package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
  20. package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
  21. package/chunks/Notification-BTtUhfZQ.js +615 -0
  22. package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
  23. package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
  24. package/chunks/Person-D0Im9_zE.js +522 -0
  25. package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
  26. package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
  27. package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
  28. package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
  29. package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
  30. package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
  31. package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
  32. package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
  33. package/chunks/chevron-right-DGEksBI7.js +330 -0
  34. package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
  35. package/chunks/index-2s5UkG1y.js +1607 -0
  36. package/chunks/useImageVariant-pnFelF9A.js +535 -0
  37. package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
  38. package/components.d.ts +2 -1
  39. package/components.d.ts.map +1 -1
  40. package/index.d.ts +1 -0
  41. package/index.d.ts.map +1 -1
  42. package/index.js +4 -2
  43. package/package.json +1 -1
  44. package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
  45. package/chunks/Notification-Bwcoljir.js +0 -961
  46. package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
  47. package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
  48. package/chunks/useImageVariant-Do8kOVs2.js +0 -537
@@ -1,24 +1,24 @@
1
- import { jsx as r, jsxs as u, Fragment as Pe } from "react/jsx-runtime";
2
- import { n as de, m as _, s as H, _ as S, p as pe, k as me, q as W, P as o, r as j, t as ue, K as Je, Y as ie, g as To, ad as So, U as Ee, h as ko, j as ke, ak as Ro, al as wo, d as Ge, a0 as Po, a1 as Io, am as Fo, x as A, w as Ke, v as Z, f as fe, e as Ye, an as le, T, B as l, a5 as zo, u as qe, y as Xe, W as Qe } from "./ConstantsProvider-BPJJz9fq.js";
3
- import { g as Oo, s as X, b as Mo } from "./useImageVariant-Do8kOVs2.js";
4
- import * as C from "react";
5
- import { useState as Ze, useEffect as Ho } from "react";
1
+ import { jsx as n, jsxs as u, Fragment as ke } from "react/jsx-runtime";
2
+ import { l as de, m as $, s as I, _ as b, q as pe, t as me, v as N, P as o, x as W, y as ue, w as Ue, O as re, G as yo, ad as bo, L as Be, H as xo, I as Se, ae as vo, af as Co, c as Je, A as To, a7 as So, ag as Ro, k as D, j as Ge, h as K, f as Pe, e as qe, ah as ae, T as C, B as s, D as ko, u as wo, g as Po, W as Oo } from "./PrizeCard-gMp7I66d.js";
3
+ import { g as Mo, s as ie } from "./useImageVariant-pnFelF9A.js";
4
+ import * as h from "react";
5
+ import { useState as zo } from "react";
6
+ import { m as Fo, M as Io, a as Ho, b as Ao } from "./Spinner-BBA89t5s.js";
6
7
  import "react-dom";
7
- import { m as $o, M as Do, a as jo, b as Ao } from "./Spinner-m59ZJZ35.js";
8
- function Wo(e) {
8
+ function jo(e) {
9
9
  return de("MuiAspectRatio", e);
10
10
  }
11
- _("MuiAspectRatio", ["root", "content", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
12
- const _o = ["children", "ratio", "minHeight", "maxHeight", "objectFit", "color", "variant", "component", "flex", "slots", "slotProps"], No = (e) => {
11
+ $("MuiAspectRatio", ["root", "content", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
12
+ const Wo = ["children", "ratio", "minHeight", "maxHeight", "objectFit", "color", "variant", "component", "flex", "slots", "slotProps"], Do = (e) => {
13
13
  const {
14
14
  variant: t,
15
15
  color: i
16
16
  } = e, a = {
17
17
  root: ["root"],
18
- content: ["content", t && `variant${j(t)}`, i && `color${j(i)}`]
18
+ content: ["content", t && `variant${W(t)}`, i && `color${W(i)}`]
19
19
  };
20
- return ue(a, Wo, {});
21
- }, Bo = H("div", {
20
+ return ue(a, jo, {});
21
+ }, No = I("div", {
22
22
  name: "JoyAspectRatio",
23
23
  slot: "Root",
24
24
  overridesResolver: (e, t) => t.root
@@ -39,7 +39,7 @@ const _o = ["children", "ratio", "minHeight", "maxHeight", "objectFit", "color",
39
39
  flexDirection: "column",
40
40
  margin: "var(--AspectRatio-margin)"
41
41
  };
42
- }), Eo = H("div", {
42
+ }), $o = I("div", {
43
43
  name: "JoyAspectRatio",
44
44
  slot: "Content",
45
45
  overridesResolver: (e, t) => t.content
@@ -48,7 +48,7 @@ const _o = ["children", "ratio", "minHeight", "maxHeight", "objectFit", "color",
48
48
  ownerState: t
49
49
  }) => {
50
50
  var i;
51
- return S({
51
+ return b({
52
52
  flex: 1,
53
53
  position: "relative",
54
54
  borderRadius: "inherit",
@@ -78,55 +78,55 @@ const _o = ["children", "ratio", "minHeight", "maxHeight", "objectFit", "color",
78
78
  }
79
79
  }
80
80
  }, e.typography["body-md"], (i = e.variants[t.variant]) == null ? void 0 : i[t.color]);
81
- }), Ie = /* @__PURE__ */ C.forwardRef(function(t, i) {
81
+ }), we = /* @__PURE__ */ h.forwardRef(function(t, i) {
82
82
  const a = pe({
83
83
  props: t,
84
84
  name: "JoyAspectRatio"
85
85
  }), {
86
- children: c,
87
- ratio: n = "16 / 9",
88
- minHeight: g,
86
+ children: m,
87
+ ratio: r = "16 / 9",
88
+ minHeight: x,
89
89
  maxHeight: p,
90
- objectFit: s = "cover",
91
- color: x = "neutral",
92
- variant: h = "soft",
93
- component: f,
94
- flex: R = !1,
95
- slots: v = {},
96
- slotProps: k = {}
97
- } = a, y = me(a, _o), b = S({}, a, {
98
- flex: R,
99
- minHeight: g,
90
+ objectFit: d = "cover",
91
+ color: v = "neutral",
92
+ variant: R = "soft",
93
+ component: g,
94
+ flex: w = !1,
95
+ slots: y = {},
96
+ slotProps: T = {}
97
+ } = a, f = me(a, Wo), S = b({}, a, {
98
+ flex: w,
99
+ minHeight: x,
100
100
  maxHeight: p,
101
- objectFit: s,
102
- ratio: n,
103
- color: x,
104
- variant: h
105
- }), w = No(b), F = S({}, y, {
106
- component: f,
107
- slots: v,
108
- slotProps: k
109
- }), [$, N] = W("root", {
101
+ objectFit: d,
102
+ ratio: r,
103
+ color: v,
104
+ variant: R
105
+ }), F = Do(S), H = b({}, f, {
106
+ component: g,
107
+ slots: y,
108
+ slotProps: T
109
+ }), [A, _] = N("root", {
110
110
  ref: i,
111
- className: w.root,
112
- elementType: Bo,
113
- externalForwardedProps: F,
114
- ownerState: b
115
- }), [D, d] = W("content", {
116
- className: w.content,
117
- elementType: Eo,
118
- externalForwardedProps: F,
119
- ownerState: b
111
+ className: F.root,
112
+ elementType: No,
113
+ externalForwardedProps: H,
114
+ ownerState: S
115
+ }), [j, l] = N("content", {
116
+ className: F.content,
117
+ elementType: $o,
118
+ externalForwardedProps: H,
119
+ ownerState: S
120
120
  });
121
- return /* @__PURE__ */ r($, S({}, N, {
122
- children: /* @__PURE__ */ r(D, S({}, d, {
123
- children: C.Children.map(c, (I, B) => B === 0 && /* @__PURE__ */ C.isValidElement(I) ? /* @__PURE__ */ C.cloneElement(I, {
121
+ return /* @__PURE__ */ n(A, b({}, _, {
122
+ children: /* @__PURE__ */ n(j, b({}, l, {
123
+ children: h.Children.map(m, (P, B) => B === 0 && /* @__PURE__ */ h.isValidElement(P) ? /* @__PURE__ */ h.cloneElement(P, {
124
124
  "data-first-child": ""
125
- }) : I)
125
+ }) : P)
126
126
  }))
127
127
  }));
128
128
  });
129
- process.env.NODE_ENV !== "production" && (Ie.propTypes = {
129
+ process.env.NODE_ENV !== "production" && (we.propTypes = {
130
130
  // ┌────────────────────────────── Warning ──────────────────────────────┐
131
131
  // │ These PropTypes are generated from the TypeScript type definitions. │
132
132
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -197,14 +197,14 @@ process.env.NODE_ENV !== "production" && (Ie.propTypes = {
197
197
  */
198
198
  variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
199
199
  });
200
- const Lo = _("MuiCardOverflow", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
201
- function Vo(e) {
200
+ const _o = $("MuiCardOverflow", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
201
+ function Bo(e) {
202
202
  return de("MuiCardContent", e);
203
203
  }
204
- _("MuiCardContent", ["root"]);
205
- const Uo = ["className", "component", "children", "orientation", "slots", "slotProps"], Jo = () => ue({
204
+ $("MuiCardContent", ["root"]);
205
+ const Eo = ["className", "component", "children", "orientation", "slots", "slotProps"], Lo = () => ue({
206
206
  root: ["root"]
207
- }, Vo, {}), eo = H("div")(({
207
+ }, Bo, {}), Xe = I("div")(({
208
208
  ownerState: e
209
209
  }) => ({
210
210
  display: "flex",
@@ -215,43 +215,43 @@ const Uo = ["className", "component", "children", "orientation", "slots", "slotP
215
215
  columnGap: "var(--Card-padding)",
216
216
  rowGap: "max(2px, calc(0.1875 * var(--Card-padding)))",
217
217
  padding: "var(--unstable_padding)",
218
- [`.${Lo.root} > &`]: {
218
+ [`.${_o.root} > &`]: {
219
219
  "--unstable_padding": "calc(var(--Card-padding) * 0.75) 0px"
220
220
  }
221
- })), Go = H(eo, {
221
+ })), Vo = I(Xe, {
222
222
  name: "JoyCardContent",
223
223
  slot: "Root",
224
224
  overridesResolver: (e, t) => t.root
225
- })({}), Ko = /* @__PURE__ */ C.forwardRef(function(t, i) {
225
+ })({}), Uo = /* @__PURE__ */ h.forwardRef(function(t, i) {
226
226
  const a = pe({
227
227
  props: t,
228
228
  name: "JoyCardContent"
229
229
  }), {
230
- className: c,
231
- component: n = "div",
232
- children: g,
230
+ className: m,
231
+ component: r = "div",
232
+ children: x,
233
233
  orientation: p = "vertical",
234
- slots: s = {},
235
- slotProps: x = {}
236
- } = a, h = me(a, Uo), f = S({}, h, {
237
- component: n,
238
- slots: s,
239
- slotProps: x
240
- }), R = S({}, a, {
241
- component: n,
234
+ slots: d = {},
235
+ slotProps: v = {}
236
+ } = a, R = me(a, Eo), g = b({}, R, {
237
+ component: r,
238
+ slots: d,
239
+ slotProps: v
240
+ }), w = b({}, a, {
241
+ component: r,
242
242
  orientation: p
243
- }), v = Jo(), [k, y] = W("root", {
243
+ }), y = Lo(), [T, f] = N("root", {
244
244
  ref: i,
245
- className: Je(v.root, c),
246
- elementType: Go,
247
- externalForwardedProps: f,
248
- ownerState: R
245
+ className: Ue(y.root, m),
246
+ elementType: Vo,
247
+ externalForwardedProps: g,
248
+ ownerState: w
249
249
  });
250
- return /* @__PURE__ */ r(k, S({}, y, {
251
- children: g
250
+ return /* @__PURE__ */ n(T, b({}, f, {
251
+ children: x
252
252
  }));
253
253
  });
254
- process.env.NODE_ENV !== "production" && (Ko.propTypes = {
254
+ process.env.NODE_ENV !== "production" && (Uo.propTypes = {
255
255
  // ┌────────────────────────────── Warning ──────────────────────────────┐
256
256
  // │ These PropTypes are generated from the TypeScript type definitions. │
257
257
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -294,13 +294,13 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
294
294
  */
295
295
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
296
296
  });
297
- function Yo(e) {
297
+ function Jo(e) {
298
298
  return de("MuiDialogContent", e);
299
299
  }
300
- _("MuiDialogContent", ["root"]);
301
- const qo = _("MuiDialogTitle", ["root", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), Xo = ["component", "children", "orientation", "slots", "slotProps"], Qo = () => ue({
300
+ $("MuiDialogContent", ["root"]);
301
+ const Go = $("MuiDialogTitle", ["root", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), qo = ["component", "children", "orientation", "slots", "slotProps"], Xo = () => ue({
302
302
  root: ["root"]
303
- }, Yo, {}), Zo = H(eo, {
303
+ }, Jo, {}), Yo = I(Xe, {
304
304
  name: "JoyDialogContent",
305
305
  slot: "Root",
306
306
  overridesResolver: (e, t) => t.root
@@ -310,41 +310,41 @@ const qo = _("MuiDialogTitle", ["root", "h1", "h2", "h3", "h4", "title-lg", "tit
310
310
  color: `var(--DialogContent-color, ${e.vars.palette.text.tertiary})`,
311
311
  overflow: "auto",
312
312
  margin: "var(--unstable_DialogContent-margin)",
313
- [`.${$o.root} > .${qo.root} + &`]: {
313
+ [`.${Fo.root} > .${Go.root} + &`]: {
314
314
  "--unstable_DialogContent-margin": "-0.375em 0 0 0"
315
315
  }
316
- })), oo = /* @__PURE__ */ C.forwardRef(function(t, i) {
316
+ })), Ye = /* @__PURE__ */ h.forwardRef(function(t, i) {
317
317
  const a = pe({
318
318
  props: t,
319
319
  name: "JoyDialogContent"
320
- }), c = C.useContext(Do), {
321
- component: n = "div",
322
- children: g,
320
+ }), m = h.useContext(Io), {
321
+ component: r = "div",
322
+ children: x,
323
323
  orientation: p = "vertical",
324
- slots: s = {},
325
- slotProps: x = {}
326
- } = a, h = me(a, Xo), f = S({}, h, {
327
- component: n,
328
- slots: s,
329
- slotProps: x
330
- }), R = S({}, a, {
331
- component: n,
324
+ slots: d = {},
325
+ slotProps: v = {}
326
+ } = a, R = me(a, qo), g = b({}, R, {
327
+ component: r,
328
+ slots: d,
329
+ slotProps: v
330
+ }), w = b({}, a, {
331
+ component: r,
332
332
  orientation: p
333
- }), v = Qo(), [k, y] = W("root", {
333
+ }), y = Xo(), [T, f] = N("root", {
334
334
  ref: i,
335
- className: v.root,
336
- elementType: Zo,
337
- externalForwardedProps: f,
338
- ownerState: R,
335
+ className: y.root,
336
+ elementType: Yo,
337
+ externalForwardedProps: g,
338
+ ownerState: w,
339
339
  additionalProps: {
340
- id: c == null ? void 0 : c.describedBy
340
+ id: m == null ? void 0 : m.describedBy
341
341
  }
342
342
  });
343
- return /* @__PURE__ */ r(k, S({}, y, {
344
- children: g
343
+ return /* @__PURE__ */ n(T, b({}, f, {
344
+ children: x
345
345
  }));
346
346
  });
347
- process.env.NODE_ENV !== "production" && (oo.propTypes = {
347
+ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
348
348
  // ┌────────────────────────────── Warning ──────────────────────────────┐
349
349
  // │ These PropTypes are generated from the TypeScript type definitions. │
350
350
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -383,24 +383,24 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
383
383
  */
384
384
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
385
385
  });
386
- function et(e) {
386
+ function Ko(e) {
387
387
  return de("MuiTooltip", e);
388
388
  }
389
- _("MuiTooltip", ["root", "tooltipArrow", "arrow", "touch", "placementLeft", "placementRight", "placementTop", "placementBottom", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
390
- const ot = ["children", "className", "component", "arrow", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "disablePortal", "direction", "keepMounted", "modifiers", "placement", "title", "color", "variant", "size", "slots", "slotProps"], tt = (e) => {
389
+ $("MuiTooltip", ["root", "tooltipArrow", "arrow", "touch", "placementLeft", "placementRight", "placementTop", "placementBottom", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
390
+ const Qo = ["children", "className", "component", "arrow", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "disablePortal", "direction", "keepMounted", "modifiers", "placement", "title", "color", "variant", "size", "slots", "slotProps"], Zo = (e) => {
391
391
  const {
392
392
  arrow: t,
393
393
  variant: i,
394
394
  color: a,
395
- size: c,
396
- placement: n,
397
- touch: g
395
+ size: m,
396
+ placement: r,
397
+ touch: x
398
398
  } = e, p = {
399
- root: ["root", t && "tooltipArrow", g && "touch", c && `size${j(c)}`, a && `color${j(a)}`, i && `variant${j(i)}`, `tooltipPlacement${j(n.split("-")[0])}`],
399
+ root: ["root", t && "tooltipArrow", x && "touch", m && `size${W(m)}`, a && `color${W(a)}`, i && `variant${W(i)}`, `tooltipPlacement${W(r.split("-")[0])}`],
400
400
  arrow: ["arrow"]
401
401
  };
402
- return ue(p, et, {});
403
- }, nt = H("div", {
402
+ return ue(p, Ko, {});
403
+ }, et = I("div", {
404
404
  name: "JoyTooltip",
405
405
  slot: "Root",
406
406
  overridesResolver: (e, t) => t.root
@@ -408,9 +408,9 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
408
408
  ownerState: e,
409
409
  theme: t
410
410
  }) => {
411
- var i, a, c;
412
- const n = (i = t.variants[e.variant]) == null ? void 0 : i[e.color];
413
- return S({}, e.size === "sm" && {
411
+ var i, a, m;
412
+ const r = (i = t.variants[e.variant]) == null ? void 0 : i[e.color];
413
+ return b({}, e.size === "sm" && {
414
414
  "--Icon-fontSize": t.vars.fontSize.md,
415
415
  "--Tooltip-arrowSize": "8px",
416
416
  padding: t.spacing(0.25, 0.625)
@@ -434,7 +434,7 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
434
434
  sm: "xs",
435
435
  md: "sm",
436
436
  lg: "md"
437
- }[e.size]}`], n, !n.backgroundColor && {
437
+ }[e.size]}`], r, !r.backgroundColor && {
438
438
  backgroundColor: t.vars.palette.background.surface
439
439
  }, {
440
440
  "&::before": {
@@ -447,7 +447,7 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
447
447
  // 10px equals the default offset popper config
448
448
  "calc(10px + var(--variant-borderWidth, 0px))"
449
449
  ),
450
- height: (c = e.placement) != null && c.match(/(top|bottom)/) ? "calc(10px + var(--variant-borderWidth, 0px))" : "100%"
450
+ height: (m = e.placement) != null && m.match(/(top|bottom)/) ? "calc(10px + var(--variant-borderWidth, 0px))" : "100%"
451
451
  },
452
452
  '&[data-popper-placement*="bottom"]::before': {
453
453
  top: 0,
@@ -470,7 +470,7 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
470
470
  transform: "translateY(100%)"
471
471
  }
472
472
  });
473
- }), rt = H("span", {
473
+ }), ot = I("span", {
474
474
  name: "JoyTooltip",
475
475
  slot: "Arrow",
476
476
  overridesResolver: (e, t) => t.arrow
@@ -478,8 +478,8 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
478
478
  theme: e,
479
479
  ownerState: t
480
480
  }) => {
481
- var i, a, c;
482
- const n = (i = e.variants[t.variant]) == null ? void 0 : i[t.color];
481
+ var i, a, m;
482
+ const r = (i = e.variants[t.variant]) == null ? void 0 : i[t.color];
483
483
  return {
484
484
  "--unstable_Tooltip-arrowRotation": 0,
485
485
  width: "var(--Tooltip-arrowSize)",
@@ -495,10 +495,10 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
495
495
  border: "calc(var(--Tooltip-arrowSize) / 2) solid",
496
496
  borderLeftColor: "transparent",
497
497
  borderBottomColor: "transparent",
498
- borderTopColor: (a = n == null ? void 0 : n.backgroundColor) != null ? a : e.vars.palette.background.surface,
499
- borderRightColor: (c = n == null ? void 0 : n.backgroundColor) != null ? c : e.vars.palette.background.surface,
498
+ borderTopColor: (a = r == null ? void 0 : r.backgroundColor) != null ? a : e.vars.palette.background.surface,
499
+ borderRightColor: (m = r == null ? void 0 : r.backgroundColor) != null ? m : e.vars.palette.background.surface,
500
500
  borderRadius: "0px 2px 0px 0px",
501
- boxShadow: `var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${n.borderColor}`,
501
+ boxShadow: `var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${r.borderColor}`,
502
502
  transformOrigin: "center center",
503
503
  transform: "rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"
504
504
  },
@@ -520,154 +520,154 @@ const ot = ["children", "className", "component", "arrow", "describeChild", "dis
520
520
  }
521
521
  };
522
522
  });
523
- let se = !1;
524
- const Le = new wo();
525
- let q = {
523
+ let le = !1;
524
+ const Ee = new Co();
525
+ let Y = {
526
526
  x: 0,
527
527
  y: 0
528
528
  };
529
- function Ve(e, t) {
529
+ function Le(e, t) {
530
530
  return (i) => {
531
531
  t && t(i), e(i);
532
532
  };
533
533
  }
534
- function Ue(e, t) {
534
+ function Ve(e, t) {
535
535
  return (i, ...a) => {
536
536
  t && t(i, ...a), e(i, ...a);
537
537
  };
538
538
  }
539
- const ce = /* @__PURE__ */ C.forwardRef(function(t, i) {
539
+ const ce = /* @__PURE__ */ h.forwardRef(function(t, i) {
540
540
  var a;
541
- const c = pe({
541
+ const m = pe({
542
542
  props: t,
543
543
  name: "JoyTooltip"
544
544
  }), {
545
- children: n,
546
- className: g,
545
+ children: r,
546
+ className: x,
547
547
  component: p,
548
- arrow: s = !1,
549
- describeChild: x = !1,
550
- disableFocusListener: h = !1,
551
- disableHoverListener: f = !1,
552
- disableInteractive: R = !1,
553
- disableTouchListener: v = !1,
554
- enterDelay: k = 100,
555
- enterNextDelay: y = 0,
556
- enterTouchDelay: b = 700,
557
- followCursor: w = !1,
558
- id: F,
559
- leaveDelay: $ = 0,
560
- leaveTouchDelay: N = 1500,
561
- onClose: D,
562
- onOpen: d,
563
- open: I,
548
+ arrow: d = !1,
549
+ describeChild: v = !1,
550
+ disableFocusListener: R = !1,
551
+ disableHoverListener: g = !1,
552
+ disableInteractive: w = !1,
553
+ disableTouchListener: y = !1,
554
+ enterDelay: T = 100,
555
+ enterNextDelay: f = 0,
556
+ enterTouchDelay: S = 700,
557
+ followCursor: F = !1,
558
+ id: H,
559
+ leaveDelay: A = 0,
560
+ leaveTouchDelay: _ = 1500,
561
+ onClose: j,
562
+ onOpen: l,
563
+ open: P,
564
564
  disablePortal: B,
565
565
  direction: E,
566
- keepMounted: ge,
567
- modifiers: ee,
566
+ keepMounted: fe,
567
+ modifiers: Q,
568
568
  placement: L = "bottom",
569
- title: z,
569
+ title: O,
570
570
  color: V = "neutral",
571
571
  variant: U = "solid",
572
- size: to = "md",
573
- slots: no = {},
574
- slotProps: ro = {}
575
- } = c, Fe = me(c, ot), [J, ze] = C.useState(), [he, ao] = C.useState(null), oe = C.useRef(!1), ye = R || w, Oe = ie(), be = ie(), te = ie(), Me = ie(), [io, He] = To({
576
- controlled: I,
572
+ size: Ke = "md",
573
+ slots: Qe = {},
574
+ slotProps: Ze = {}
575
+ } = m, Oe = me(m, Qo), [J, Me] = h.useState(), [ge, eo] = h.useState(null), Z = h.useRef(!1), he = w || F, ze = re(), ye = re(), ee = re(), Fe = re(), [oo, Ie] = yo({
576
+ controlled: P,
577
577
  default: !1,
578
578
  name: "Tooltip",
579
579
  state: "open"
580
580
  });
581
- let O = io;
582
- const xe = So(F), G = C.useRef(), ne = Ee(() => {
583
- G.current !== void 0 && (document.body.style.WebkitUserSelect = G.current, G.current = void 0), Me.clear();
581
+ let M = oo;
582
+ const be = bo(H), G = h.useRef(), oe = Be(() => {
583
+ G.current !== void 0 && (document.body.style.WebkitUserSelect = G.current, G.current = void 0), Fe.clear();
584
584
  });
585
- C.useEffect(() => ne, [ne]);
586
- const $e = (m) => {
587
- Le.clear(), se = !0, He(!0), d && !O && d(m);
588
- }, re = Ee((m) => {
589
- Le.start(800 + $, () => {
590
- se = !1;
591
- }), He(!1), D && O && D(m), Oe.start(150, () => {
592
- oe.current = !1;
585
+ h.useEffect(() => oe, [oe]);
586
+ const He = (c) => {
587
+ Ee.clear(), le = !0, Ie(!0), l && !M && l(c);
588
+ }, te = Be((c) => {
589
+ Ee.start(800 + A, () => {
590
+ le = !1;
591
+ }), Ie(!1), j && M && j(c), ze.start(150, () => {
592
+ Z.current = !1;
593
593
  });
594
- }), ae = (m) => {
595
- oe.current && m.type !== "touchstart" || (J && J.removeAttribute("title"), be.clear(), te.clear(), k || se && y ? be.start(se ? y : k, () => {
596
- $e(m);
597
- }) : $e(m));
598
- }, ve = (m) => {
599
- be.clear(), te.start($, () => {
600
- re(m);
594
+ }), ne = (c) => {
595
+ Z.current && c.type !== "touchstart" || (J && J.removeAttribute("title"), ye.clear(), ee.clear(), T || le && f ? ye.start(le ? f : T, () => {
596
+ He(c);
597
+ }) : He(c));
598
+ }, xe = (c) => {
599
+ ye.clear(), ee.start(A, () => {
600
+ te(c);
601
601
  });
602
602
  }, {
603
- isFocusVisibleRef: De,
604
- onBlur: lo,
605
- onFocus: so,
606
- ref: co
607
- } = ko(), [, je] = C.useState(!1), Ae = (m) => {
608
- lo(m), De.current === !1 && (je(!1), ve(m));
609
- }, We = (m) => {
610
- J || ze(m.currentTarget), so(m), De.current === !0 && (je(!0), ae(m));
611
- }, _e = (m) => {
612
- oe.current = !0;
613
- const M = n.props;
614
- M.onTouchStart && M.onTouchStart(m);
615
- }, po = (m) => {
616
- _e(m), te.clear(), Oe.clear(), ne(), G.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Me.start(b, () => {
617
- document.body.style.WebkitUserSelect = G.current, ae(m);
603
+ isFocusVisibleRef: Ae,
604
+ onBlur: to,
605
+ onFocus: no,
606
+ ref: ro
607
+ } = xo(), [, je] = h.useState(!1), We = (c) => {
608
+ to(c), Ae.current === !1 && (je(!1), xe(c));
609
+ }, De = (c) => {
610
+ J || Me(c.currentTarget), no(c), Ae.current === !0 && (je(!0), ne(c));
611
+ }, Ne = (c) => {
612
+ Z.current = !0;
613
+ const z = r.props;
614
+ z.onTouchStart && z.onTouchStart(c);
615
+ }, ao = (c) => {
616
+ Ne(c), ee.clear(), ze.clear(), oe(), G.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Fe.start(S, () => {
617
+ document.body.style.WebkitUserSelect = G.current, ne(c);
618
618
  });
619
- }, mo = (m) => {
620
- n.props.onTouchEnd && n.props.onTouchEnd(m), ne(), te.start(N, () => {
621
- re(m);
619
+ }, io = (c) => {
620
+ r.props.onTouchEnd && r.props.onTouchEnd(c), oe(), ee.start(_, () => {
621
+ te(c);
622
622
  });
623
623
  };
624
- C.useEffect(() => {
625
- if (!O)
624
+ h.useEffect(() => {
625
+ if (!M)
626
626
  return;
627
- function m(M) {
628
- (M.key === "Escape" || M.key === "Esc") && re(M);
627
+ function c(z) {
628
+ (z.key === "Escape" || z.key === "Esc") && te(z);
629
629
  }
630
- return document.addEventListener("keydown", m), () => {
631
- document.removeEventListener("keydown", m);
630
+ return document.addEventListener("keydown", c), () => {
631
+ document.removeEventListener("keydown", c);
632
632
  };
633
- }, [re, O]);
634
- const uo = ke(ze, i), fo = ke(co, uo), go = ke(n.ref, fo);
635
- typeof z != "number" && !z && (O = !1);
636
- const Ce = C.useRef(null), ho = (m) => {
637
- const M = n.props;
638
- M.onMouseMove && M.onMouseMove(m), q = {
639
- x: m.clientX,
640
- y: m.clientY
641
- }, Ce.current && Ce.current.update();
642
- }, K = {}, Te = typeof z == "string";
643
- x ? (K.title = !O && Te && !f ? z : null, K["aria-describedby"] = O ? xe : null) : (K["aria-label"] = Te ? z : null, K["aria-labelledby"] = O && !Te ? xe : null);
644
- const P = S({}, K, Fe, {
633
+ }, [te, M]);
634
+ const lo = Se(Me, i), so = Se(ro, lo), co = Se(r.ref, so);
635
+ typeof O != "number" && !O && (M = !1);
636
+ const ve = h.useRef(null), po = (c) => {
637
+ const z = r.props;
638
+ z.onMouseMove && z.onMouseMove(c), Y = {
639
+ x: c.clientX,
640
+ y: c.clientY
641
+ }, ve.current && ve.current.update();
642
+ }, q = {}, Ce = typeof O == "string";
643
+ v ? (q.title = !M && Ce && !g ? O : null, q["aria-describedby"] = M ? be : null) : (q["aria-label"] = Ce ? O : null, q["aria-labelledby"] = M && !Ce ? be : null);
644
+ const k = b({}, q, Oe, {
645
645
  component: p
646
- }, n.props, {
647
- className: Je(g, n.props.className),
648
- onTouchStart: _e,
649
- ref: go
650
- }, w ? {
651
- onMouseMove: ho
652
- } : {}), Y = {};
653
- v || (P.onTouchStart = po, P.onTouchEnd = mo), f || (P.onMouseOver = Ve(ae, P.onMouseOver), P.onMouseLeave = Ve(ve, P.onMouseLeave), ye || (Y.onMouseOver = ae, Y.onMouseLeave = ve)), h || (P.onFocus = Ue(We, P.onFocus), P.onBlur = Ue(Ae, P.onBlur), ye || (Y.onFocus = We, Y.onBlur = Ae));
654
- const Se = S({}, c, {
655
- arrow: s,
656
- disableInteractive: ye,
646
+ }, r.props, {
647
+ className: Ue(x, r.props.className),
648
+ onTouchStart: Ne,
649
+ ref: co
650
+ }, F ? {
651
+ onMouseMove: po
652
+ } : {}), X = {};
653
+ y || (k.onTouchStart = ao, k.onTouchEnd = io), g || (k.onMouseOver = Le(ne, k.onMouseOver), k.onMouseLeave = Le(xe, k.onMouseLeave), he || (X.onMouseOver = ne, X.onMouseLeave = xe)), R || (k.onFocus = Ve(De, k.onFocus), k.onBlur = Ve(We, k.onBlur), he || (X.onFocus = De, X.onBlur = We));
654
+ const Te = b({}, m, {
655
+ arrow: d,
656
+ disableInteractive: he,
657
657
  placement: L,
658
- touch: oe.current,
658
+ touch: Z.current,
659
659
  color: V,
660
660
  variant: U,
661
- size: to
662
- }), Ne = tt(Se), Be = S({}, Fe, {
661
+ size: Ke
662
+ }), $e = Zo(Te), _e = b({}, Oe, {
663
663
  component: p,
664
- slots: no,
665
- slotProps: ro
666
- }), yo = C.useMemo(() => [{
664
+ slots: Qe,
665
+ slotProps: Ze
666
+ }), mo = h.useMemo(() => [{
667
667
  name: "arrow",
668
- enabled: !!he,
668
+ enabled: !!ge,
669
669
  options: {
670
- element: he,
670
+ element: ge,
671
671
  // https://popper.js.org/docs/v2/modifiers/arrow/#padding
672
672
  // make the arrow looks nice with the Tooltip's border radius
673
673
  padding: 6
@@ -677,47 +677,47 @@ const ce = /* @__PURE__ */ C.forwardRef(function(t, i) {
677
677
  options: {
678
678
  offset: [0, 10]
679
679
  }
680
- }, ...ee || []], [he, ee]), [bo, xo] = W("root", {
681
- additionalProps: S({
682
- id: xe,
683
- popperRef: Ce,
680
+ }, ...Q || []], [ge, Q]), [uo, fo] = N("root", {
681
+ additionalProps: b({
682
+ id: be,
683
+ popperRef: ve,
684
684
  placement: L,
685
- anchorEl: w ? {
685
+ anchorEl: F ? {
686
686
  getBoundingClientRect: () => ({
687
- top: q.y,
688
- left: q.x,
689
- right: q.x,
690
- bottom: q.y,
687
+ top: Y.y,
688
+ left: Y.x,
689
+ right: Y.x,
690
+ bottom: Y.y,
691
691
  width: 0,
692
692
  height: 0
693
693
  })
694
694
  } : J,
695
- open: J ? O : !1,
695
+ open: J ? M : !1,
696
696
  disablePortal: B,
697
- keepMounted: ge,
697
+ keepMounted: fe,
698
698
  direction: E,
699
- modifiers: yo
700
- }, Y),
699
+ modifiers: mo
700
+ }, X),
701
701
  ref: null,
702
- className: Ne.root,
703
- elementType: nt,
704
- externalForwardedProps: Be,
705
- ownerState: Se
706
- }), [vo, Co] = W("arrow", {
707
- ref: ao,
708
- className: Ne.arrow,
709
- elementType: rt,
710
- externalForwardedProps: Be,
711
- ownerState: Se
702
+ className: $e.root,
703
+ elementType: et,
704
+ externalForwardedProps: _e,
705
+ ownerState: Te
706
+ }), [go, ho] = N("arrow", {
707
+ ref: eo,
708
+ className: $e.arrow,
709
+ elementType: ot,
710
+ externalForwardedProps: _e,
711
+ ownerState: Te
712
712
  });
713
- return /* @__PURE__ */ u(C.Fragment, {
714
- children: [/* @__PURE__ */ C.isValidElement(n) && /* @__PURE__ */ C.cloneElement(n, P), /* @__PURE__ */ u(bo, S({}, xo, !((a = c.slots) != null && a.root) && {
715
- as: Ro,
713
+ return /* @__PURE__ */ u(h.Fragment, {
714
+ children: [/* @__PURE__ */ h.isValidElement(r) && /* @__PURE__ */ h.cloneElement(r, k), /* @__PURE__ */ u(uo, b({}, fo, !((a = m.slots) != null && a.root) && {
715
+ as: vo,
716
716
  slots: {
717
717
  root: p || "div"
718
718
  }
719
719
  }, {
720
- children: [z, s ? /* @__PURE__ */ r(vo, S({}, Co)) : null]
720
+ children: [O, d ? /* @__PURE__ */ n(go, b({}, ho)) : null]
721
721
  }))]
722
722
  });
723
723
  });
@@ -906,24 +906,24 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
906
906
  */
907
907
  variant: o.oneOf(["outlined", "plain", "soft", "solid"])
908
908
  });
909
- const Re = Ge(/* @__PURE__ */ r("path", {
909
+ const Re = Je(/* @__PURE__ */ n("path", {
910
910
  d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
911
- }), "InfoOutlined"), at = Ge(/* @__PURE__ */ r("path", {
911
+ }), "InfoOutlined"), tt = Je(/* @__PURE__ */ n("path", {
912
912
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
913
- }), "Close"), Q = ({
913
+ }), "Close"), se = ({
914
914
  rules: e,
915
915
  rulesDisplay: t,
916
916
  isOverlayVariant: i = !1
917
917
  }) => {
918
- const { t: a } = Po(), { shadowRootElement: c } = Io(Fo), n = A(), g = Ke(), p = Z(), s = fe(), x = Ye(), [h, f] = Ze(!1);
918
+ const { t: a } = To(), { shadowRootElement: m } = So(Ro), r = D(), x = Ge(), p = K(), d = Pe(), v = qe(), [R, g] = zo(!1);
919
919
  if (!e)
920
920
  return null;
921
921
  if (t != null && t.component)
922
922
  return t.component;
923
923
  if (((t == null ? void 0 : t.type) || "modal") === "link" && (t != null && t.url)) {
924
- const v = t.target || "_blank", k = {
924
+ const y = t.target || "_blank", T = {
925
925
  backgroundColor: "transparent",
926
- color: i ? n.palette.neutral.plainColor : n.textSecondary,
926
+ color: i ? r.palette.neutral.plainColor : r.textSecondary,
927
927
  border: "none",
928
928
  borderRadius: "50%",
929
929
  width: "2em",
@@ -947,64 +947,64 @@ const Re = Ge(/* @__PURE__ */ r("path", {
947
947
  fontSize: "1.25em"
948
948
  }
949
949
  };
950
- return typeof window > "u" ? /* @__PURE__ */ r(
950
+ return typeof window > "u" ? /* @__PURE__ */ n(
951
951
  ce,
952
952
  {
953
953
  title: a("common.rules.info"),
954
954
  placement: "right",
955
955
  variant: "soft",
956
956
  disablePortal: !0,
957
- children: /* @__PURE__ */ r(
958
- le,
957
+ children: /* @__PURE__ */ n(
958
+ ae,
959
959
  {
960
960
  component: "a",
961
961
  href: t.url,
962
- target: v,
962
+ target: y,
963
963
  rel: "noopener noreferrer",
964
- sx: k,
964
+ sx: T,
965
965
  "aria-label": a("common.rules.info"),
966
- children: /* @__PURE__ */ r(Re, {})
966
+ children: /* @__PURE__ */ n(Re, {})
967
967
  }
968
968
  )
969
969
  }
970
- ) : /* @__PURE__ */ r(
970
+ ) : /* @__PURE__ */ n(
971
971
  ce,
972
972
  {
973
973
  title: a("common.rules.info"),
974
974
  placement: "right",
975
975
  variant: "soft",
976
976
  disablePortal: !0,
977
- children: /* @__PURE__ */ r(
978
- le,
977
+ children: /* @__PURE__ */ n(
978
+ ae,
979
979
  {
980
- onClick: (y) => {
981
- y.stopPropagation(), window.open(t.url, v, "noopener,noreferrer");
980
+ onClick: (f) => {
981
+ f.stopPropagation(), window.open(t.url, y, "noopener,noreferrer");
982
982
  },
983
- sx: k,
983
+ sx: T,
984
984
  "aria-label": a("common.rules.info"),
985
- children: /* @__PURE__ */ r(Re, {})
985
+ children: /* @__PURE__ */ n(Re, {})
986
986
  }
987
987
  )
988
988
  }
989
989
  );
990
990
  }
991
- return /* @__PURE__ */ u(Pe, { children: [
992
- /* @__PURE__ */ r(
991
+ return /* @__PURE__ */ u(ke, { children: [
992
+ /* @__PURE__ */ n(
993
993
  ce,
994
994
  {
995
995
  title: a("common.rules.info"),
996
996
  placement: "right",
997
997
  variant: "soft",
998
998
  disablePortal: !0,
999
- children: /* @__PURE__ */ r(
1000
- le,
999
+ children: /* @__PURE__ */ n(
1000
+ ae,
1001
1001
  {
1002
- onClick: (v) => {
1003
- v.stopPropagation(), f(!0);
1002
+ onClick: (y) => {
1003
+ y.stopPropagation(), g(!0);
1004
1004
  },
1005
1005
  sx: {
1006
1006
  backgroundColor: "transparent",
1007
- color: n.palette.neutral[500],
1007
+ color: r.palette.neutral[500],
1008
1008
  border: "none",
1009
1009
  borderRadius: "50%",
1010
1010
  width: "2em",
@@ -1019,7 +1019,7 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1019
1019
  transition: "all 0.2s ease-in-out",
1020
1020
  "&:hover": {
1021
1021
  backgroundColor: "transparent",
1022
- color: n.palette.neutral[500],
1022
+ color: r.palette.neutral[500],
1023
1023
  transform: "scale(1.05)"
1024
1024
  },
1025
1025
  "&:focus-visible": {
@@ -1030,42 +1030,42 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1030
1030
  }
1031
1031
  },
1032
1032
  "aria-label": a("common.rules.info"),
1033
- children: /* @__PURE__ */ r(Re, {})
1033
+ children: /* @__PURE__ */ n(Re, {})
1034
1034
  }
1035
1035
  )
1036
1036
  }
1037
1037
  ),
1038
- /* @__PURE__ */ r(
1039
- jo,
1038
+ /* @__PURE__ */ n(
1039
+ Ho,
1040
1040
  {
1041
- open: h,
1042
- onClose: () => f(!1),
1043
- container: c,
1041
+ open: R,
1042
+ onClose: () => g(!1),
1043
+ container: m,
1044
1044
  sx: { zIndex: 1300 },
1045
1045
  children: /* @__PURE__ */ u(
1046
1046
  Ao,
1047
1047
  {
1048
1048
  sx: {
1049
1049
  width: "100%",
1050
- maxWidth: x ? "90vw" : "600px",
1051
- maxHeight: x ? "90vh" : "80vh",
1052
- p: x ? 2 : 3,
1053
- borderRadius: g.md,
1054
- backgroundColor: n.surface
1050
+ maxWidth: v ? "90vw" : "600px",
1051
+ maxHeight: v ? "90vh" : "80vh",
1052
+ p: v ? 2 : 3,
1053
+ borderRadius: x.md,
1054
+ backgroundColor: r.surface
1055
1055
  },
1056
1056
  children: [
1057
- /* @__PURE__ */ r(
1058
- le,
1057
+ /* @__PURE__ */ n(
1058
+ ae,
1059
1059
  {
1060
- onClick: (v) => {
1061
- v.stopPropagation(), f(!1);
1060
+ onClick: (y) => {
1061
+ y.stopPropagation(), g(!1);
1062
1062
  },
1063
1063
  sx: {
1064
1064
  position: "absolute",
1065
- top: s.sm,
1066
- right: s.sm,
1065
+ top: d.sm,
1066
+ right: d.sm,
1067
1067
  backgroundColor: "transparent",
1068
- color: n.textSecondary,
1068
+ color: r.textSecondary,
1069
1069
  border: "none",
1070
1070
  borderRadius: "50%",
1071
1071
  width: "2em",
@@ -1080,8 +1080,8 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1080
1080
  transition: "all 0.2s ease-in-out",
1081
1081
  zIndex: 1e3,
1082
1082
  "&:hover": {
1083
- backgroundColor: `${n.textSecondary}15`,
1084
- color: n.textPrimary,
1083
+ backgroundColor: `${r.textSecondary}15`,
1084
+ color: r.textPrimary,
1085
1085
  transform: "scale(1.05)"
1086
1086
  },
1087
1087
  "&:focus-visible": {
@@ -1091,41 +1091,41 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1091
1091
  fontSize: "1.25em"
1092
1092
  }
1093
1093
  },
1094
- children: /* @__PURE__ */ r(at, {})
1094
+ children: /* @__PURE__ */ n(tt, {})
1095
1095
  }
1096
1096
  ),
1097
1097
  /* @__PURE__ */ u(
1098
- oo,
1098
+ Ye,
1099
1099
  {
1100
1100
  sx: {
1101
1101
  display: "flex",
1102
1102
  flexDirection: "column",
1103
- gap: s.md
1103
+ gap: d.md
1104
1104
  },
1105
1105
  children: [
1106
- /* @__PURE__ */ r(
1107
- T,
1106
+ /* @__PURE__ */ n(
1107
+ C,
1108
1108
  {
1109
1109
  sx: {
1110
1110
  fontFamily: p.primary,
1111
1111
  fontWeight: 600,
1112
1112
  fontSize: "1.25em",
1113
1113
  lineHeight: 1.2,
1114
- color: n.textPrimary,
1114
+ color: r.textPrimary,
1115
1115
  textAlign: "center",
1116
- marginBottom: s.sm
1116
+ marginBottom: d.sm
1117
1117
  },
1118
1118
  children: a("common.rules.title")
1119
1119
  }
1120
1120
  ),
1121
- /* @__PURE__ */ r(
1122
- l,
1121
+ /* @__PURE__ */ n(
1122
+ s,
1123
1123
  {
1124
1124
  sx: {
1125
1125
  fontFamily: p.secondary,
1126
1126
  fontSize: "1em",
1127
1127
  lineHeight: 1.5,
1128
- color: n.textSecondary,
1128
+ color: r.textSecondary,
1129
1129
  overflow: "auto",
1130
1130
  // Custom scrollbar styling for dark theme
1131
1131
  "&::-webkit-scrollbar": {
@@ -1135,53 +1135,53 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1135
1135
  backgroundColor: "transparent"
1136
1136
  },
1137
1137
  "&::-webkit-scrollbar-thumb": {
1138
- backgroundColor: n.secondaryContainer,
1138
+ backgroundColor: r.secondaryContainer,
1139
1139
  borderRadius: "4px",
1140
1140
  "&:hover": {
1141
- backgroundColor: n.textSecondary
1141
+ backgroundColor: r.textSecondary
1142
1142
  }
1143
1143
  },
1144
1144
  // Firefox scrollbar styling
1145
1145
  scrollbarWidth: "thin",
1146
- scrollbarColor: `${n.secondaryContainer} transparent`,
1146
+ scrollbarColor: `${r.secondaryContainer} transparent`,
1147
1147
  "& p": {
1148
- marginBottom: s.sm
1148
+ marginBottom: d.sm
1149
1149
  },
1150
1150
  "& ul, & ol": {
1151
- marginLeft: s.md,
1152
- marginBottom: s.sm
1151
+ marginLeft: d.md,
1152
+ marginBottom: d.sm
1153
1153
  },
1154
1154
  "& li": {
1155
- marginBottom: s.xs
1155
+ marginBottom: d.xs
1156
1156
  },
1157
1157
  "& h1, & h2, & h3, & h4, & h5, & h6": {
1158
1158
  fontFamily: p.primary,
1159
- color: n.textPrimary,
1160
- marginTop: s.md,
1161
- marginBottom: s.sm
1159
+ color: r.textPrimary,
1160
+ marginTop: d.md,
1161
+ marginBottom: d.sm
1162
1162
  }
1163
1163
  },
1164
1164
  dangerouslySetInnerHTML: { __html: e }
1165
1165
  }
1166
1166
  ),
1167
- /* @__PURE__ */ r(
1168
- zo,
1167
+ /* @__PURE__ */ n(
1168
+ ko,
1169
1169
  {
1170
1170
  variant: "outlined",
1171
- onClick: (v) => {
1172
- v.stopPropagation(), f(!1);
1171
+ onClick: (y) => {
1172
+ y.stopPropagation(), g(!1);
1173
1173
  },
1174
1174
  sx: {
1175
- marginTop: s.md,
1176
- borderColor: n.textPrimary,
1177
- color: n.textPrimary,
1175
+ marginTop: d.md,
1176
+ borderColor: r.textPrimary,
1177
+ color: r.textPrimary,
1178
1178
  fontFamily: p.secondary,
1179
1179
  fontSize: "0.875em",
1180
- borderRadius: g.sm,
1180
+ borderRadius: x.sm,
1181
1181
  "&:hover": {
1182
- borderColor: n.textPrimary,
1183
- color: n.textPrimary,
1184
- backgroundColor: n.surfaceVariant
1182
+ borderColor: r.textPrimary,
1183
+ color: r.textPrimary,
1184
+ backgroundColor: r.surfaceVariant
1185
1185
  }
1186
1186
  },
1187
1187
  children: a("common.rules.close")
@@ -1196,7 +1196,7 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1196
1196
  }
1197
1197
  )
1198
1198
  ] });
1199
- }, it = (e) => {
1199
+ }, nt = (e) => {
1200
1200
  var t, i, a;
1201
1201
  return {
1202
1202
  // Mobile headline with image background
@@ -1404,46 +1404,46 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1404
1404
  overflow: "hidden"
1405
1405
  }
1406
1406
  };
1407
- }, ft = ({
1407
+ }, dt = ({
1408
1408
  entity: e,
1409
1409
  headline: t,
1410
1410
  finalImage: i,
1411
1411
  imagePosition: a = "left",
1412
- children: c,
1413
- embedCodeContainerRef: n,
1414
- hasEmbedCode: g = !1,
1412
+ children: m,
1413
+ embedCodeContainerRef: r,
1414
+ hasEmbedCode: x = !1,
1415
1415
  filterScreenContent: p,
1416
- rulesDisplay: s
1416
+ rulesDisplay: d
1417
1417
  }) => {
1418
- var L, z;
1419
- const x = Ye(), h = qe(), f = fe(), R = Z().primary, v = Z().secondary, k = Ke(), y = ((L = e.branding) == null ? void 0 : L.colors) || null, b = ((z = e.branding) == null ? void 0 : z.urls) || null, w = (y == null ? void 0 : y.contentColor) || A().textColor, F = (y == null ? void 0 : y.secondaryColor) || A().textColor, $ = (y == null ? void 0 : y.backgroundColor) || A().surface, N = "60%", D = Xe(
1420
- Qe.STANDARD
1421
- ), d = it({
1418
+ var L, O;
1419
+ const v = qe(), R = wo(), g = Pe(), w = K().primary, y = K().secondary, T = Ge(), f = ((L = e.branding) == null ? void 0 : L.colors) || null, S = ((O = e.branding) == null ? void 0 : O.urls) || null, F = (f == null ? void 0 : f.contentColor) || D().textColor, H = (f == null ? void 0 : f.secondaryColor) || D().textColor, A = (f == null ? void 0 : f.backgroundColor) || D().surface, _ = "60%", j = Po(
1420
+ Oo.STANDARD
1421
+ ), l = nt({
1422
1422
  finalImage: i,
1423
- spacingScale: f,
1424
- borderRadius: k,
1425
- fontFamilyPrimary: R,
1426
- fontFamilySecondary: v,
1427
- textColor: w,
1428
- secondaryColor: F,
1429
- bgcolor: $,
1430
- opacity: N,
1431
- brandingColors: y,
1423
+ spacingScale: g,
1424
+ borderRadius: T,
1425
+ fontFamilyPrimary: w,
1426
+ fontFamilySecondary: y,
1427
+ textColor: F,
1428
+ secondaryColor: H,
1429
+ bgcolor: A,
1430
+ opacity: _,
1431
+ brandingColors: f,
1432
1432
  imagePosition: a,
1433
- darkTextColor: h.colorSchemes.dark.textColor,
1434
- imageBackgroundGradient: D,
1435
- isMobile: x
1436
- }), I = Oo(
1437
- b == null ? void 0 : b.primaryUrl,
1438
- b == null ? void 0 : b.secondaryUrl,
1433
+ darkTextColor: R.colorSchemes.dark.textColor,
1434
+ imageBackgroundGradient: j,
1435
+ isMobile: v
1436
+ }), P = Mo(
1437
+ S == null ? void 0 : S.primaryUrl,
1438
+ S == null ? void 0 : S.secondaryUrl,
1439
1439
  "image"
1440
1440
  ), B = () => {
1441
- I && window.open(I, "_blank", "noopener,noreferrer");
1442
- }, E = (V, U) => I ? typeof window > "u" ? /* @__PURE__ */ r(
1443
- l,
1441
+ P && window.open(P, "_blank", "noopener,noreferrer");
1442
+ }, E = (V, U) => P ? typeof window > "u" ? /* @__PURE__ */ n(
1443
+ s,
1444
1444
  {
1445
1445
  component: "a",
1446
- href: I,
1446
+ href: P,
1447
1447
  target: "_blank",
1448
1448
  rel: "noopener noreferrer",
1449
1449
  sx: {
@@ -1453,8 +1453,8 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1453
1453
  },
1454
1454
  children: V
1455
1455
  }
1456
- ) : /* @__PURE__ */ r(
1457
- l,
1456
+ ) : /* @__PURE__ */ n(
1457
+ s,
1458
1458
  {
1459
1459
  sx: {
1460
1460
  ...U,
@@ -1463,117 +1463,117 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1463
1463
  onClick: B,
1464
1464
  children: V
1465
1465
  }
1466
- ) : /* @__PURE__ */ r(l, { sx: U, children: V }), ge = () => g && n ? /* @__PURE__ */ u(l, { sx: d.mobileHeadlineWithoutImage, children: [
1467
- /* @__PURE__ */ u(l, { children: [
1466
+ ) : /* @__PURE__ */ n(s, { sx: U, children: V }), fe = () => x && r ? /* @__PURE__ */ u(s, { sx: l.mobileHeadlineWithoutImage, children: [
1467
+ /* @__PURE__ */ u(s, { children: [
1468
1468
  /* @__PURE__ */ u(
1469
- l,
1469
+ s,
1470
1470
  {
1471
1471
  sx: {
1472
1472
  display: "flex",
1473
1473
  alignItems: "center",
1474
1474
  justifyContent: "center",
1475
- gap: f["3xs"]
1475
+ gap: g["3xs"]
1476
1476
  },
1477
1477
  children: [
1478
- /* @__PURE__ */ r(T, { level: "body-sm", sx: d.headlineTypography, children: t }),
1479
- /* @__PURE__ */ r(
1480
- Q,
1478
+ /* @__PURE__ */ n(C, { level: "body-sm", sx: l.headlineTypography, children: t }),
1479
+ /* @__PURE__ */ n(
1480
+ se,
1481
1481
  {
1482
1482
  rules: e.rules || "",
1483
- rulesDisplay: s,
1483
+ rulesDisplay: d,
1484
1484
  isOverlayVariant: !1
1485
1485
  }
1486
1486
  )
1487
1487
  ]
1488
1488
  }
1489
1489
  ),
1490
- /* @__PURE__ */ u(l, { sx: d.contentContainer, children: [
1491
- /* @__PURE__ */ r(T, { level: "h4", sx: d.titleTypography, children: e.title }),
1492
- /* @__PURE__ */ r(T, { sx: d.descriptionTypography, children: X(e.description) })
1490
+ /* @__PURE__ */ u(s, { sx: l.contentContainer, children: [
1491
+ /* @__PURE__ */ n(C, { level: "h4", sx: l.titleTypography, children: e.title }),
1492
+ /* @__PURE__ */ n(C, { sx: l.descriptionTypography, children: ie(e.description) })
1493
1493
  ] })
1494
1494
  ] }),
1495
- /* @__PURE__ */ r(Ie, { ratio: "16/9", sx: d.aspectRatioContainer, children: /* @__PURE__ */ r(l, { ref: n }) })
1495
+ /* @__PURE__ */ n(we, { ratio: "16/9", sx: l.aspectRatioContainer, children: /* @__PURE__ */ n(s, { ref: r }) })
1496
1496
  ] }) : i ? E(
1497
- /* @__PURE__ */ u(l, { sx: d.mobileHeadlineContent, children: [
1498
- /* @__PURE__ */ u(l, { children: [
1497
+ /* @__PURE__ */ u(s, { sx: l.mobileHeadlineContent, children: [
1498
+ /* @__PURE__ */ u(s, { children: [
1499
1499
  /* @__PURE__ */ u(
1500
- l,
1500
+ s,
1501
1501
  {
1502
1502
  sx: {
1503
1503
  display: "flex",
1504
1504
  alignItems: "center",
1505
1505
  justifyContent: "center",
1506
- gap: f["3xs"]
1506
+ gap: g["3xs"]
1507
1507
  },
1508
1508
  children: [
1509
- /* @__PURE__ */ r(
1510
- T,
1509
+ /* @__PURE__ */ n(
1510
+ C,
1511
1511
  {
1512
1512
  level: "body-sm",
1513
- sx: d.headlineTypographyMobileImage,
1513
+ sx: l.headlineTypographyMobileImage,
1514
1514
  children: t
1515
1515
  }
1516
1516
  ),
1517
- /* @__PURE__ */ r(
1518
- Q,
1517
+ /* @__PURE__ */ n(
1518
+ se,
1519
1519
  {
1520
1520
  rules: e.rules || "",
1521
- rulesDisplay: s,
1521
+ rulesDisplay: d,
1522
1522
  isOverlayVariant: !1
1523
1523
  }
1524
1524
  )
1525
1525
  ]
1526
1526
  }
1527
1527
  ),
1528
- /* @__PURE__ */ u(l, { sx: d.contentContainer, children: [
1529
- /* @__PURE__ */ r(T, { sx: d.titleTypographyMobileImage, children: e.title }),
1530
- /* @__PURE__ */ r(T, { sx: d.descriptionTypographyMobileImage, children: X(e.description) })
1528
+ /* @__PURE__ */ u(s, { sx: l.contentContainer, children: [
1529
+ /* @__PURE__ */ n(C, { sx: l.titleTypographyMobileImage, children: e.title }),
1530
+ /* @__PURE__ */ n(C, { sx: l.descriptionTypographyMobileImage, children: ie(e.description) })
1531
1531
  ] })
1532
1532
  ] }),
1533
- p && /* @__PURE__ */ r(l, { children: p })
1533
+ p && /* @__PURE__ */ n(s, { children: p })
1534
1534
  ] }),
1535
- d.mobileHeadlineWithImage
1536
- ) : /* @__PURE__ */ u(l, { sx: d.mobileHeadlineWithoutImage, children: [
1537
- /* @__PURE__ */ u(l, { children: [
1535
+ l.mobileHeadlineWithImage
1536
+ ) : /* @__PURE__ */ u(s, { sx: l.mobileHeadlineWithoutImage, children: [
1537
+ /* @__PURE__ */ u(s, { children: [
1538
1538
  /* @__PURE__ */ u(
1539
- l,
1539
+ s,
1540
1540
  {
1541
1541
  sx: {
1542
1542
  display: "flex",
1543
1543
  alignItems: "center",
1544
1544
  justifyContent: "center",
1545
- gap: f["3xs"]
1545
+ gap: g["3xs"]
1546
1546
  },
1547
1547
  children: [
1548
- /* @__PURE__ */ r(T, { level: "body-sm", sx: d.headlineTypography, children: t }),
1549
- /* @__PURE__ */ r(
1550
- Q,
1548
+ /* @__PURE__ */ n(C, { level: "body-sm", sx: l.headlineTypography, children: t }),
1549
+ /* @__PURE__ */ n(
1550
+ se,
1551
1551
  {
1552
1552
  rules: e.rules || "",
1553
- rulesDisplay: s,
1553
+ rulesDisplay: d,
1554
1554
  isOverlayVariant: !1
1555
1555
  }
1556
1556
  )
1557
1557
  ]
1558
1558
  }
1559
1559
  ),
1560
- /* @__PURE__ */ u(l, { sx: d.contentContainer, children: [
1561
- /* @__PURE__ */ r(T, { level: "h4", sx: d.titleTypography, children: e.title }),
1562
- /* @__PURE__ */ r(T, { sx: d.descriptionTypography, children: X(e.description) })
1560
+ /* @__PURE__ */ u(s, { sx: l.contentContainer, children: [
1561
+ /* @__PURE__ */ n(C, { level: "h4", sx: l.titleTypography, children: e.title }),
1562
+ /* @__PURE__ */ n(C, { sx: l.descriptionTypography, children: ie(e.description) })
1563
1563
  ] })
1564
1564
  ] }),
1565
- p && /* @__PURE__ */ r(l, { children: p })
1566
- ] }), ee = !(x && p);
1567
- return /* @__PURE__ */ u(Pe, { children: [
1568
- x && ge(),
1565
+ p && /* @__PURE__ */ n(s, { children: p })
1566
+ ] }), Q = !(v && p);
1567
+ return /* @__PURE__ */ u(ke, { children: [
1568
+ v && fe(),
1569
1569
  a === "left" && i ? E(
1570
- /* @__PURE__ */ r(l, { sx: d.imageSafeArea }),
1571
- d.imageContainerLeft
1570
+ /* @__PURE__ */ n(s, { sx: l.imageSafeArea }),
1571
+ l.imageContainerLeft
1572
1572
  ) : null,
1573
- ee && /* @__PURE__ */ u(l, { sx: d.mainContentArea, children: [
1574
- !x && /* @__PURE__ */ r(l, { children: /* @__PURE__ */ u(l, { sx: d.desktopHeadlineContainer, children: [
1573
+ Q && /* @__PURE__ */ u(s, { sx: l.mainContentArea, children: [
1574
+ !v && /* @__PURE__ */ n(s, { children: /* @__PURE__ */ u(s, { sx: l.desktopHeadlineContainer, children: [
1575
1575
  /* @__PURE__ */ u(
1576
- l,
1576
+ s,
1577
1577
  {
1578
1578
  sx: {
1579
1579
  display: "flex",
@@ -1582,206 +1582,58 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1582
1582
  },
1583
1583
  children: [
1584
1584
  /* @__PURE__ */ u(
1585
- l,
1585
+ s,
1586
1586
  {
1587
1587
  sx: {
1588
1588
  display: "flex",
1589
1589
  alignItems: "center",
1590
1590
  justifyContent: "center",
1591
- gap: f["3xs"]
1591
+ gap: g["3xs"]
1592
1592
  },
1593
1593
  children: [
1594
- /* @__PURE__ */ r(
1595
- T,
1594
+ /* @__PURE__ */ n(
1595
+ C,
1596
1596
  {
1597
1597
  level: "body-sm",
1598
- sx: d.headlineTypographyDesktop,
1598
+ sx: l.headlineTypographyDesktop,
1599
1599
  children: t
1600
1600
  }
1601
1601
  ),
1602
- /* @__PURE__ */ r(
1603
- Q,
1602
+ /* @__PURE__ */ n(
1603
+ se,
1604
1604
  {
1605
1605
  rules: e.rules || "",
1606
- rulesDisplay: s,
1606
+ rulesDisplay: d,
1607
1607
  isOverlayVariant: !1
1608
1608
  }
1609
1609
  )
1610
1610
  ]
1611
1611
  }
1612
1612
  ),
1613
- /* @__PURE__ */ u(l, { sx: d.contentContainer, children: [
1614
- /* @__PURE__ */ r(T, { level: "h4", sx: d.titleTypographyDesktop, children: e.title }),
1615
- /* @__PURE__ */ r(T, { sx: d.descriptionTypographyDesktop, children: X(e.description) })
1613
+ /* @__PURE__ */ u(s, { sx: l.contentContainer, children: [
1614
+ /* @__PURE__ */ n(C, { level: "h4", sx: l.titleTypographyDesktop, children: e.title }),
1615
+ /* @__PURE__ */ n(C, { sx: l.descriptionTypographyDesktop, children: ie(e.description) })
1616
1616
  ] })
1617
1617
  ]
1618
1618
  }
1619
1619
  ),
1620
- g && n ? /* @__PURE__ */ r(l, { sx: { px: f.md }, children: /* @__PURE__ */ r(Ie, { ratio: "16/9", sx: d.aspectRatioContainer, children: /* @__PURE__ */ r(l, { ref: n }) }) }) : p ? /* @__PURE__ */ r(l, { children: p }) : /* @__PURE__ */ r(Pe, {})
1620
+ x && r ? /* @__PURE__ */ n(s, { sx: { px: g.md }, children: /* @__PURE__ */ n(we, { ratio: "16/9", sx: l.aspectRatioContainer, children: /* @__PURE__ */ n(s, { ref: r }) }) }) : p ? /* @__PURE__ */ n(s, { children: p }) : /* @__PURE__ */ n(ke, {})
1621
1621
  ] }) }),
1622
- c
1622
+ m
1623
1623
  ] }),
1624
1624
  a === "right" && i ? E(
1625
- /* @__PURE__ */ r(l, { sx: d.imageSafeArea }),
1626
- d.imageContainerRight
1625
+ /* @__PURE__ */ n(s, { sx: l.imageSafeArea }),
1626
+ l.imageContainerRight
1627
1627
  ) : null
1628
1628
  ] });
1629
- }, lt = (e) => {
1630
- var t;
1631
- return {
1632
- // Main container with background overlay
1633
- mainContainer: {
1634
- display: "flex",
1635
- flexDirection: "column",
1636
- justifyContent: "space-between",
1637
- gap: "40px",
1638
- p: e.spacingScale.xl,
1639
- boxShadow: "md",
1640
- border: (t = e.brandingColors) != null && t.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
1641
- overflow: "hidden",
1642
- backgroundImage: e.backgroundImage,
1643
- backgroundPosition: "center",
1644
- backgroundSize: "cover",
1645
- position: "relative",
1646
- borderRadius: e.mdBorderRadius,
1647
- minHeight: "250px",
1648
- "&::before": {
1649
- content: '""',
1650
- position: "absolute",
1651
- background: e.imageBackgroundGradient,
1652
- top: 0,
1653
- left: 0,
1654
- right: 0,
1655
- bottom: 0,
1656
- borderRadius: "inherit",
1657
- zIndex: 0
1658
- }
1659
- },
1660
- // Headline section wrapper
1661
- headlineSection: {
1662
- display: "flex",
1663
- justifyContent: "space-between",
1664
- flex: "1 0 0",
1665
- alignSelf: "stretch"
1666
- },
1667
- // Headline content container
1668
- headlineContent: {
1669
- display: "flex",
1670
- flexDirection: "column",
1671
- alignItems: "flex-start",
1672
- flex: "1 0 0",
1673
- gap: "16px"
1674
- },
1675
- // Headline content with z-index
1676
- headlineContentInner: {
1677
- zIndex: 10
1678
- },
1679
- // Headline typography
1680
- headlineText: {
1681
- fontWeight: 500,
1682
- lineHeight: "166%",
1683
- letterSpacing: "1px",
1684
- textAlign: { xs: "center", md: "left" },
1685
- color: e.secondaryColor,
1686
- opacity: "70%",
1687
- textTransform: "uppercase",
1688
- fontFamily: e.fontFamilySecondary,
1689
- fontSize: "0.75em"
1690
- },
1691
- // Content container
1692
- contentContainer: {
1693
- display: "flex",
1694
- flexDirection: "column",
1695
- gap: e.spacingScale["3xs"]
1696
- },
1697
- // Title typography
1698
- titleText: {
1699
- fontWeight: 700,
1700
- lineHeight: "133%",
1701
- letterSpacing: "0px",
1702
- textAlign: { xs: "center", md: "left" },
1703
- fontSize: "1.5em",
1704
- color: e.darkTextColor,
1705
- fontFamily: e.fontFamilyPrimary
1706
- },
1707
- // Description typography
1708
- descriptionText: {
1709
- fontWeight: 400,
1710
- lineHeight: "140%",
1711
- letterSpacing: "0.15px",
1712
- fontSize: "1.25em",
1713
- textAlign: { xs: "center", md: "left" },
1714
- color: e.secondaryColor,
1715
- opacity: "70%",
1716
- fontFamily: e.fontFamilyPrimary
1717
- },
1718
- // Main content section
1719
- mainContentSection: {
1720
- display: "flex",
1721
- flexDirection: "column",
1722
- gap: "24px"
1723
- }
1724
- };
1725
- }, gt = ({
1726
- entity: e,
1727
- headline: t,
1728
- finalImage: i,
1729
- children: a,
1730
- rulesDisplay: c
1731
- }) => {
1732
- var w, F;
1733
- const n = qe(), g = fe(), p = Xe(
1734
- Qe.OVERLAY
1735
- ), s = ((w = e.branding) == null ? void 0 : w.colors) || null, x = (s == null ? void 0 : s.contentColor) || n.colorSchemes.dark.textColor, h = n.customFontFamily.dark.primary, f = n.customFontFamily.dark.secondary, R = n.customRadius.dark.md, v = (F = n.border) == null ? void 0 : F.dark.size, k = n.colorSchemes.dark.textColor, y = Mo(i), b = lt({
1736
- spacingScale: g,
1737
- brandingColors: s,
1738
- secondaryColor: x,
1739
- fontFamilyPrimary: h,
1740
- fontFamilySecondary: f,
1741
- mdBorderRadius: R,
1742
- borderSize: v,
1743
- backgroundImage: y,
1744
- darkTextColor: k,
1745
- imageBackgroundGradient: p
1746
- });
1747
- return /* @__PURE__ */ u(l, { sx: b.mainContainer, children: [
1748
- /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(l, { sx: b.headlineSection, children: /* @__PURE__ */ r(l, { sx: b.headlineContent, children: /* @__PURE__ */ u(l, { sx: b.headlineContentInner, children: [
1749
- /* @__PURE__ */ u(
1750
- l,
1751
- {
1752
- sx: {
1753
- display: "flex",
1754
- alignItems: "center",
1755
- gap: g["3xs"]
1756
- },
1757
- children: [
1758
- /* @__PURE__ */ r(T, { level: "body-sm", sx: b.headlineText, children: t }),
1759
- /* @__PURE__ */ r(
1760
- Q,
1761
- {
1762
- rulesDisplay: c,
1763
- isOverlayVariant: !0,
1764
- rules: e.rules || ""
1765
- }
1766
- )
1767
- ]
1768
- }
1769
- ),
1770
- /* @__PURE__ */ u(l, { sx: b.contentContainer, children: [
1771
- /* @__PURE__ */ r(T, { level: "h4", sx: b.titleText, children: e.title }),
1772
- e.description && /* @__PURE__ */ r(T, { level: "body-lg", sx: b.descriptionText, children: X(e.description) })
1773
- ] })
1774
- ] }) }) }) }),
1775
- /* @__PURE__ */ r(l, { sx: b.mainContentSection, children: a })
1776
- ] });
1777
- }, ht = ({
1629
+ }, pt = ({
1778
1630
  notFoundTitle: e,
1779
1631
  notFoundMessage: t
1780
1632
  }) => {
1781
- var p, s;
1782
- const i = (s = (p = A().palette) == null ? void 0 : p.danger) == null ? void 0 : s.plainColor, a = A().textSecondary, c = fe(), n = Z().primary, g = Z().secondary;
1633
+ var p, d;
1634
+ const i = (d = (p = D().palette) == null ? void 0 : p.danger) == null ? void 0 : d.plainColor, a = D().textSecondary, m = Pe(), r = K().primary, x = K().secondary;
1783
1635
  return /* @__PURE__ */ u(
1784
- l,
1636
+ s,
1785
1637
  {
1786
1638
  sx: {
1787
1639
  display: "flex",
@@ -1794,8 +1646,8 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1794
1646
  textAlign: "center"
1795
1647
  },
1796
1648
  children: [
1797
- /* @__PURE__ */ r(
1798
- l,
1649
+ /* @__PURE__ */ n(
1650
+ s,
1799
1651
  {
1800
1652
  sx: {
1801
1653
  width: "80px",
@@ -1808,41 +1660,41 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1808
1660
  justifyContent: "center",
1809
1661
  marginBottom: "24px"
1810
1662
  },
1811
- children: /* @__PURE__ */ r(
1812
- l,
1663
+ children: /* @__PURE__ */ n(
1664
+ s,
1813
1665
  {
1814
1666
  sx: {
1815
1667
  fontSize: "32px",
1816
1668
  color: i,
1817
1669
  fontWeight: "bold",
1818
- fontFamily: n
1670
+ fontFamily: r
1819
1671
  },
1820
1672
  children: "?"
1821
1673
  }
1822
1674
  )
1823
1675
  }
1824
1676
  ),
1825
- /* @__PURE__ */ r(
1826
- T,
1677
+ /* @__PURE__ */ n(
1678
+ C,
1827
1679
  {
1828
1680
  level: "h4",
1829
1681
  sx: {
1830
1682
  color: i,
1831
- marginBottom: c.xs,
1683
+ marginBottom: m.xs,
1832
1684
  fontWeight: "600",
1833
- fontFamily: n
1685
+ fontFamily: r
1834
1686
  },
1835
1687
  children: e
1836
1688
  }
1837
1689
  ),
1838
- /* @__PURE__ */ r(
1839
- T,
1690
+ /* @__PURE__ */ n(
1691
+ C,
1840
1692
  {
1841
1693
  level: "body-md",
1842
1694
  sx: {
1843
1695
  color: a,
1844
1696
  lineHeight: 1.5,
1845
- fontFamily: g
1697
+ fontFamily: x
1846
1698
  },
1847
1699
  children: t
1848
1700
  }
@@ -1850,61 +1702,14 @@ const Re = Ge(/* @__PURE__ */ r("path", {
1850
1702
  ]
1851
1703
  }
1852
1704
  );
1853
- }, we = (e) => ({
1854
- id: "not-found",
1855
- title: "",
1856
- subtitle: null,
1857
- type: e,
1858
- content_type: "JSON",
1859
- body: "",
1860
- language: "",
1861
- context: null,
1862
- branding_id: null,
1863
- branding: null,
1864
- images: null,
1865
- labels: null,
1866
- created_at: "",
1867
- updated_at: ""
1868
- }), yt = (e, t, i) => {
1869
- const [a, c] = Ze(null), n = async () => {
1870
- const g = i.helpers.getSDKConfiguration(), p = g.apiKey, s = g.clientId, x = await fetch(
1871
- `https://client.fansunitedapi.com/v1/clients/${s}/info-pages/${e}?key=${p}&disable_cache=${Date.now()}`
1872
- ), h = await x.json();
1873
- if (x.ok) {
1874
- if (h.data.type !== t) {
1875
- console.warn(
1876
- `Info page with id ${e} is not a ${t} type. Got ${h.data.type} instead.`
1877
- ), c(we(t));
1878
- return;
1879
- }
1880
- if (h.data.content_type !== "JSON") {
1881
- console.warn(
1882
- `Info page with id ${e} is not a JSON type. Got ${h.data.content_type} instead.`
1883
- ), c(we(t));
1884
- return;
1885
- }
1886
- if (h.data.branding_id) {
1887
- const f = await fetch(
1888
- `https://client.fansunitedapi.com/v1/clients/${s}/templates/brandings/${h.data.branding_id}?key=${p}&disable_cache=${Date.now()}`
1889
- ), R = await f.json();
1890
- f.ok && (h.data.branding = R.data);
1891
- }
1892
- c(h.data);
1893
- return;
1894
- }
1895
- console.warn(h), c(we(t));
1896
- };
1897
- return Ho(() => (n(), () => c(null)), [e, i]), { infoPage: a, setInfoPage: c };
1898
1705
  };
1899
1706
  export {
1900
- Ie as A,
1901
- at as C,
1902
- oo as D,
1903
- ht as N,
1904
- gt as O,
1905
- Q as R,
1906
- ft as S,
1707
+ we as A,
1708
+ tt as C,
1709
+ Ye as D,
1710
+ pt as N,
1711
+ se as R,
1712
+ dt as S,
1907
1713
  ce as T,
1908
- Lo as a,
1909
- yt as u
1714
+ _o as a
1910
1715
  };