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.
- package/ChanceGame.js +104 -102
- package/ClassicQuizPlay.js +45 -42
- package/CollectLead.js +25 -24
- package/Discussion.js +376 -378
- package/EitherOrPlay.d.ts +4 -0
- package/EitherOrPlay.d.ts.map +1 -0
- package/EitherOrPlay.js +2533 -0
- package/EventGamePlay.js +59 -54
- package/MatchQuizPlay.js +63 -57
- package/PersonalityQuizPlay.js +7935 -7201
- package/PickThePair.js +153 -151
- package/PollVote.js +108 -104
- package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
- package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
- package/chunks/Avatar-CQCrd1m-.js +352 -0
- package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
- package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
- package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
- package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
- package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
- package/chunks/Notification-BTtUhfZQ.js +615 -0
- package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
- package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
- package/chunks/Person-D0Im9_zE.js +522 -0
- package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
- package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
- package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
- package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
- package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
- package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
- package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
- package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
- package/chunks/chevron-right-DGEksBI7.js +330 -0
- package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
- package/chunks/index-2s5UkG1y.js +1607 -0
- package/chunks/useImageVariant-pnFelF9A.js +535 -0
- package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/package.json +1 -1
- package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
- package/chunks/Notification-Bwcoljir.js +0 -961
- package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
- package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
- package/chunks/useImageVariant-Do8kOVs2.js +0 -537
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
import * as
|
|
5
|
-
import { useState as
|
|
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
|
-
|
|
8
|
-
function Wo(e) {
|
|
8
|
+
function jo(e) {
|
|
9
9
|
return de("MuiAspectRatio", e);
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
const
|
|
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${
|
|
18
|
+
content: ["content", t && `variant${W(t)}`, i && `color${W(i)}`]
|
|
19
19
|
};
|
|
20
|
-
return ue(a,
|
|
21
|
-
},
|
|
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
|
-
}),
|
|
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
|
|
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
|
-
}),
|
|
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:
|
|
87
|
-
ratio:
|
|
88
|
-
minHeight:
|
|
86
|
+
children: m,
|
|
87
|
+
ratio: r = "16 / 9",
|
|
88
|
+
minHeight: x,
|
|
89
89
|
maxHeight: p,
|
|
90
|
-
objectFit:
|
|
91
|
-
color:
|
|
92
|
-
variant:
|
|
93
|
-
component:
|
|
94
|
-
flex:
|
|
95
|
-
slots:
|
|
96
|
-
slotProps:
|
|
97
|
-
} = a,
|
|
98
|
-
flex:
|
|
99
|
-
minHeight:
|
|
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:
|
|
102
|
-
ratio:
|
|
103
|
-
color:
|
|
104
|
-
variant:
|
|
105
|
-
}),
|
|
106
|
-
component:
|
|
107
|
-
slots:
|
|
108
|
-
slotProps:
|
|
109
|
-
}), [
|
|
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:
|
|
112
|
-
elementType:
|
|
113
|
-
externalForwardedProps:
|
|
114
|
-
ownerState:
|
|
115
|
-
}), [
|
|
116
|
-
className:
|
|
117
|
-
elementType:
|
|
118
|
-
externalForwardedProps:
|
|
119
|
-
ownerState:
|
|
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__ */
|
|
122
|
-
children: /* @__PURE__ */
|
|
123
|
-
children:
|
|
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
|
-
}) :
|
|
125
|
+
}) : P)
|
|
126
126
|
}))
|
|
127
127
|
}));
|
|
128
128
|
});
|
|
129
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
201
|
-
function
|
|
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
|
-
|
|
205
|
-
const
|
|
204
|
+
$("MuiCardContent", ["root"]);
|
|
205
|
+
const Eo = ["className", "component", "children", "orientation", "slots", "slotProps"], Lo = () => ue({
|
|
206
206
|
root: ["root"]
|
|
207
|
-
},
|
|
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
|
-
[`.${
|
|
218
|
+
[`.${_o.root} > &`]: {
|
|
219
219
|
"--unstable_padding": "calc(var(--Card-padding) * 0.75) 0px"
|
|
220
220
|
}
|
|
221
|
-
})),
|
|
221
|
+
})), Vo = I(Xe, {
|
|
222
222
|
name: "JoyCardContent",
|
|
223
223
|
slot: "Root",
|
|
224
224
|
overridesResolver: (e, t) => t.root
|
|
225
|
-
})({}),
|
|
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:
|
|
231
|
-
component:
|
|
232
|
-
children:
|
|
230
|
+
className: m,
|
|
231
|
+
component: r = "div",
|
|
232
|
+
children: x,
|
|
233
233
|
orientation: p = "vertical",
|
|
234
|
-
slots:
|
|
235
|
-
slotProps:
|
|
236
|
-
} = a,
|
|
237
|
-
component:
|
|
238
|
-
slots:
|
|
239
|
-
slotProps:
|
|
240
|
-
}),
|
|
241
|
-
component:
|
|
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
|
-
}),
|
|
243
|
+
}), y = Lo(), [T, f] = N("root", {
|
|
244
244
|
ref: i,
|
|
245
|
-
className:
|
|
246
|
-
elementType:
|
|
247
|
-
externalForwardedProps:
|
|
248
|
-
ownerState:
|
|
245
|
+
className: Ue(y.root, m),
|
|
246
|
+
elementType: Vo,
|
|
247
|
+
externalForwardedProps: g,
|
|
248
|
+
ownerState: w
|
|
249
249
|
});
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
children:
|
|
250
|
+
return /* @__PURE__ */ n(T, b({}, f, {
|
|
251
|
+
children: x
|
|
252
252
|
}));
|
|
253
253
|
});
|
|
254
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
297
|
+
function Jo(e) {
|
|
298
298
|
return de("MuiDialogContent", e);
|
|
299
299
|
}
|
|
300
|
-
|
|
301
|
-
const
|
|
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
|
-
},
|
|
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
|
-
[`.${
|
|
313
|
+
[`.${Fo.root} > .${Go.root} + &`]: {
|
|
314
314
|
"--unstable_DialogContent-margin": "-0.375em 0 0 0"
|
|
315
315
|
}
|
|
316
|
-
})),
|
|
316
|
+
})), Ye = /* @__PURE__ */ h.forwardRef(function(t, i) {
|
|
317
317
|
const a = pe({
|
|
318
318
|
props: t,
|
|
319
319
|
name: "JoyDialogContent"
|
|
320
|
-
}),
|
|
321
|
-
component:
|
|
322
|
-
children:
|
|
320
|
+
}), m = h.useContext(Io), {
|
|
321
|
+
component: r = "div",
|
|
322
|
+
children: x,
|
|
323
323
|
orientation: p = "vertical",
|
|
324
|
-
slots:
|
|
325
|
-
slotProps:
|
|
326
|
-
} = a,
|
|
327
|
-
component:
|
|
328
|
-
slots:
|
|
329
|
-
slotProps:
|
|
330
|
-
}),
|
|
331
|
-
component:
|
|
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
|
-
}),
|
|
333
|
+
}), y = Xo(), [T, f] = N("root", {
|
|
334
334
|
ref: i,
|
|
335
|
-
className:
|
|
336
|
-
elementType:
|
|
337
|
-
externalForwardedProps:
|
|
338
|
-
ownerState:
|
|
335
|
+
className: y.root,
|
|
336
|
+
elementType: Yo,
|
|
337
|
+
externalForwardedProps: g,
|
|
338
|
+
ownerState: w,
|
|
339
339
|
additionalProps: {
|
|
340
|
-
id:
|
|
340
|
+
id: m == null ? void 0 : m.describedBy
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
return /* @__PURE__ */
|
|
344
|
-
children:
|
|
343
|
+
return /* @__PURE__ */ n(T, b({}, f, {
|
|
344
|
+
children: x
|
|
345
345
|
}));
|
|
346
346
|
});
|
|
347
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
386
|
+
function Ko(e) {
|
|
387
387
|
return de("MuiTooltip", e);
|
|
388
388
|
}
|
|
389
|
-
|
|
390
|
-
const
|
|
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:
|
|
396
|
-
placement:
|
|
397
|
-
touch:
|
|
395
|
+
size: m,
|
|
396
|
+
placement: r,
|
|
397
|
+
touch: x
|
|
398
398
|
} = e, p = {
|
|
399
|
-
root: ["root", t && "tooltipArrow",
|
|
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,
|
|
403
|
-
},
|
|
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,
|
|
412
|
-
const
|
|
413
|
-
return
|
|
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]}`],
|
|
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: (
|
|
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
|
-
}),
|
|
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,
|
|
482
|
-
const
|
|
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 =
|
|
499
|
-
borderRightColor: (
|
|
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 ${
|
|
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
|
|
524
|
-
const
|
|
525
|
-
let
|
|
523
|
+
let le = !1;
|
|
524
|
+
const Ee = new Co();
|
|
525
|
+
let Y = {
|
|
526
526
|
x: 0,
|
|
527
527
|
y: 0
|
|
528
528
|
};
|
|
529
|
-
function
|
|
529
|
+
function Le(e, t) {
|
|
530
530
|
return (i) => {
|
|
531
531
|
t && t(i), e(i);
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
function
|
|
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__ */
|
|
539
|
+
const ce = /* @__PURE__ */ h.forwardRef(function(t, i) {
|
|
540
540
|
var a;
|
|
541
|
-
const
|
|
541
|
+
const m = pe({
|
|
542
542
|
props: t,
|
|
543
543
|
name: "JoyTooltip"
|
|
544
544
|
}), {
|
|
545
|
-
children:
|
|
546
|
-
className:
|
|
545
|
+
children: r,
|
|
546
|
+
className: x,
|
|
547
547
|
component: p,
|
|
548
|
-
arrow:
|
|
549
|
-
describeChild:
|
|
550
|
-
disableFocusListener:
|
|
551
|
-
disableHoverListener:
|
|
552
|
-
disableInteractive:
|
|
553
|
-
disableTouchListener:
|
|
554
|
-
enterDelay:
|
|
555
|
-
enterNextDelay:
|
|
556
|
-
enterTouchDelay:
|
|
557
|
-
followCursor:
|
|
558
|
-
id:
|
|
559
|
-
leaveDelay:
|
|
560
|
-
leaveTouchDelay:
|
|
561
|
-
onClose:
|
|
562
|
-
onOpen:
|
|
563
|
-
open:
|
|
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:
|
|
567
|
-
modifiers:
|
|
566
|
+
keepMounted: fe,
|
|
567
|
+
modifiers: Q,
|
|
568
568
|
placement: L = "bottom",
|
|
569
|
-
title:
|
|
569
|
+
title: O,
|
|
570
570
|
color: V = "neutral",
|
|
571
571
|
variant: U = "solid",
|
|
572
|
-
size:
|
|
573
|
-
slots:
|
|
574
|
-
slotProps:
|
|
575
|
-
} =
|
|
576
|
-
controlled:
|
|
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
|
|
582
|
-
const
|
|
583
|
-
G.current !== void 0 && (document.body.style.WebkitUserSelect = G.current, G.current = void 0),
|
|
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
|
-
|
|
586
|
-
const
|
|
587
|
-
|
|
588
|
-
},
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}),
|
|
592
|
-
|
|
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
|
-
}),
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}) :
|
|
598
|
-
},
|
|
599
|
-
|
|
600
|
-
|
|
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:
|
|
604
|
-
onBlur:
|
|
605
|
-
onFocus:
|
|
606
|
-
ref:
|
|
607
|
-
} =
|
|
608
|
-
|
|
609
|
-
},
|
|
610
|
-
J ||
|
|
611
|
-
},
|
|
612
|
-
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
document.body.style.WebkitUserSelect = G.current,
|
|
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
|
-
},
|
|
620
|
-
|
|
621
|
-
|
|
619
|
+
}, io = (c) => {
|
|
620
|
+
r.props.onTouchEnd && r.props.onTouchEnd(c), oe(), ee.start(_, () => {
|
|
621
|
+
te(c);
|
|
622
622
|
});
|
|
623
623
|
};
|
|
624
|
-
|
|
625
|
-
if (!
|
|
624
|
+
h.useEffect(() => {
|
|
625
|
+
if (!M)
|
|
626
626
|
return;
|
|
627
|
-
function
|
|
628
|
-
(
|
|
627
|
+
function c(z) {
|
|
628
|
+
(z.key === "Escape" || z.key === "Esc") && te(z);
|
|
629
629
|
}
|
|
630
|
-
return document.addEventListener("keydown",
|
|
631
|
-
document.removeEventListener("keydown",
|
|
630
|
+
return document.addEventListener("keydown", c), () => {
|
|
631
|
+
document.removeEventListener("keydown", c);
|
|
632
632
|
};
|
|
633
|
-
}, [
|
|
634
|
-
const
|
|
635
|
-
typeof
|
|
636
|
-
const
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
x:
|
|
640
|
-
y:
|
|
641
|
-
},
|
|
642
|
-
},
|
|
643
|
-
|
|
644
|
-
const
|
|
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
|
-
},
|
|
647
|
-
className:
|
|
648
|
-
onTouchStart:
|
|
649
|
-
ref:
|
|
650
|
-
},
|
|
651
|
-
onMouseMove:
|
|
652
|
-
} : {}),
|
|
653
|
-
|
|
654
|
-
const
|
|
655
|
-
arrow:
|
|
656
|
-
disableInteractive:
|
|
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:
|
|
658
|
+
touch: Z.current,
|
|
659
659
|
color: V,
|
|
660
660
|
variant: U,
|
|
661
|
-
size:
|
|
662
|
-
}),
|
|
661
|
+
size: Ke
|
|
662
|
+
}), $e = Zo(Te), _e = b({}, Oe, {
|
|
663
663
|
component: p,
|
|
664
|
-
slots:
|
|
665
|
-
slotProps:
|
|
666
|
-
}),
|
|
664
|
+
slots: Qe,
|
|
665
|
+
slotProps: Ze
|
|
666
|
+
}), mo = h.useMemo(() => [{
|
|
667
667
|
name: "arrow",
|
|
668
|
-
enabled: !!
|
|
668
|
+
enabled: !!ge,
|
|
669
669
|
options: {
|
|
670
|
-
element:
|
|
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
|
-
}, ...
|
|
681
|
-
additionalProps:
|
|
682
|
-
id:
|
|
683
|
-
popperRef:
|
|
680
|
+
}, ...Q || []], [ge, Q]), [uo, fo] = N("root", {
|
|
681
|
+
additionalProps: b({
|
|
682
|
+
id: be,
|
|
683
|
+
popperRef: ve,
|
|
684
684
|
placement: L,
|
|
685
|
-
anchorEl:
|
|
685
|
+
anchorEl: F ? {
|
|
686
686
|
getBoundingClientRect: () => ({
|
|
687
|
-
top:
|
|
688
|
-
left:
|
|
689
|
-
right:
|
|
690
|
-
bottom:
|
|
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 ?
|
|
695
|
+
open: J ? M : !1,
|
|
696
696
|
disablePortal: B,
|
|
697
|
-
keepMounted:
|
|
697
|
+
keepMounted: fe,
|
|
698
698
|
direction: E,
|
|
699
|
-
modifiers:
|
|
700
|
-
},
|
|
699
|
+
modifiers: mo
|
|
700
|
+
}, X),
|
|
701
701
|
ref: null,
|
|
702
|
-
className:
|
|
703
|
-
elementType:
|
|
704
|
-
externalForwardedProps:
|
|
705
|
-
ownerState:
|
|
706
|
-
}), [
|
|
707
|
-
ref:
|
|
708
|
-
className:
|
|
709
|
-
elementType:
|
|
710
|
-
externalForwardedProps:
|
|
711
|
-
ownerState:
|
|
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(
|
|
714
|
-
children: [/* @__PURE__ */
|
|
715
|
-
as:
|
|
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: [
|
|
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 =
|
|
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"),
|
|
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"),
|
|
913
|
+
}), "Close"), se = ({
|
|
914
914
|
rules: e,
|
|
915
915
|
rulesDisplay: t,
|
|
916
916
|
isOverlayVariant: i = !1
|
|
917
917
|
}) => {
|
|
918
|
-
const { t: a } =
|
|
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
|
|
924
|
+
const y = t.target || "_blank", T = {
|
|
925
925
|
backgroundColor: "transparent",
|
|
926
|
-
color: i ?
|
|
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__ */
|
|
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__ */
|
|
958
|
-
|
|
957
|
+
children: /* @__PURE__ */ n(
|
|
958
|
+
ae,
|
|
959
959
|
{
|
|
960
960
|
component: "a",
|
|
961
961
|
href: t.url,
|
|
962
|
-
target:
|
|
962
|
+
target: y,
|
|
963
963
|
rel: "noopener noreferrer",
|
|
964
|
-
sx:
|
|
964
|
+
sx: T,
|
|
965
965
|
"aria-label": a("common.rules.info"),
|
|
966
|
-
children: /* @__PURE__ */
|
|
966
|
+
children: /* @__PURE__ */ n(Re, {})
|
|
967
967
|
}
|
|
968
968
|
)
|
|
969
969
|
}
|
|
970
|
-
) : /* @__PURE__ */
|
|
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__ */
|
|
978
|
-
|
|
977
|
+
children: /* @__PURE__ */ n(
|
|
978
|
+
ae,
|
|
979
979
|
{
|
|
980
|
-
onClick: (
|
|
981
|
-
|
|
980
|
+
onClick: (f) => {
|
|
981
|
+
f.stopPropagation(), window.open(t.url, y, "noopener,noreferrer");
|
|
982
982
|
},
|
|
983
|
-
sx:
|
|
983
|
+
sx: T,
|
|
984
984
|
"aria-label": a("common.rules.info"),
|
|
985
|
-
children: /* @__PURE__ */
|
|
985
|
+
children: /* @__PURE__ */ n(Re, {})
|
|
986
986
|
}
|
|
987
987
|
)
|
|
988
988
|
}
|
|
989
989
|
);
|
|
990
990
|
}
|
|
991
|
-
return /* @__PURE__ */ u(
|
|
992
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1000
|
-
|
|
999
|
+
children: /* @__PURE__ */ n(
|
|
1000
|
+
ae,
|
|
1001
1001
|
{
|
|
1002
|
-
onClick: (
|
|
1003
|
-
|
|
1002
|
+
onClick: (y) => {
|
|
1003
|
+
y.stopPropagation(), g(!0);
|
|
1004
1004
|
},
|
|
1005
1005
|
sx: {
|
|
1006
1006
|
backgroundColor: "transparent",
|
|
1007
|
-
color:
|
|
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:
|
|
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__ */
|
|
1033
|
+
children: /* @__PURE__ */ n(Re, {})
|
|
1034
1034
|
}
|
|
1035
1035
|
)
|
|
1036
1036
|
}
|
|
1037
1037
|
),
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
|
|
1038
|
+
/* @__PURE__ */ n(
|
|
1039
|
+
Ho,
|
|
1040
1040
|
{
|
|
1041
|
-
open:
|
|
1042
|
-
onClose: () =>
|
|
1043
|
-
container:
|
|
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:
|
|
1051
|
-
maxHeight:
|
|
1052
|
-
p:
|
|
1053
|
-
borderRadius:
|
|
1054
|
-
backgroundColor:
|
|
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__ */
|
|
1058
|
-
|
|
1057
|
+
/* @__PURE__ */ n(
|
|
1058
|
+
ae,
|
|
1059
1059
|
{
|
|
1060
|
-
onClick: (
|
|
1061
|
-
|
|
1060
|
+
onClick: (y) => {
|
|
1061
|
+
y.stopPropagation(), g(!1);
|
|
1062
1062
|
},
|
|
1063
1063
|
sx: {
|
|
1064
1064
|
position: "absolute",
|
|
1065
|
-
top:
|
|
1066
|
-
right:
|
|
1065
|
+
top: d.sm,
|
|
1066
|
+
right: d.sm,
|
|
1067
1067
|
backgroundColor: "transparent",
|
|
1068
|
-
color:
|
|
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: `${
|
|
1084
|
-
color:
|
|
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__ */
|
|
1094
|
+
children: /* @__PURE__ */ n(tt, {})
|
|
1095
1095
|
}
|
|
1096
1096
|
),
|
|
1097
1097
|
/* @__PURE__ */ u(
|
|
1098
|
-
|
|
1098
|
+
Ye,
|
|
1099
1099
|
{
|
|
1100
1100
|
sx: {
|
|
1101
1101
|
display: "flex",
|
|
1102
1102
|
flexDirection: "column",
|
|
1103
|
-
gap:
|
|
1103
|
+
gap: d.md
|
|
1104
1104
|
},
|
|
1105
1105
|
children: [
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
|
|
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:
|
|
1114
|
+
color: r.textPrimary,
|
|
1115
1115
|
textAlign: "center",
|
|
1116
|
-
marginBottom:
|
|
1116
|
+
marginBottom: d.sm
|
|
1117
1117
|
},
|
|
1118
1118
|
children: a("common.rules.title")
|
|
1119
1119
|
}
|
|
1120
1120
|
),
|
|
1121
|
-
/* @__PURE__ */
|
|
1122
|
-
|
|
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:
|
|
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:
|
|
1138
|
+
backgroundColor: r.secondaryContainer,
|
|
1139
1139
|
borderRadius: "4px",
|
|
1140
1140
|
"&:hover": {
|
|
1141
|
-
backgroundColor:
|
|
1141
|
+
backgroundColor: r.textSecondary
|
|
1142
1142
|
}
|
|
1143
1143
|
},
|
|
1144
1144
|
// Firefox scrollbar styling
|
|
1145
1145
|
scrollbarWidth: "thin",
|
|
1146
|
-
scrollbarColor: `${
|
|
1146
|
+
scrollbarColor: `${r.secondaryContainer} transparent`,
|
|
1147
1147
|
"& p": {
|
|
1148
|
-
marginBottom:
|
|
1148
|
+
marginBottom: d.sm
|
|
1149
1149
|
},
|
|
1150
1150
|
"& ul, & ol": {
|
|
1151
|
-
marginLeft:
|
|
1152
|
-
marginBottom:
|
|
1151
|
+
marginLeft: d.md,
|
|
1152
|
+
marginBottom: d.sm
|
|
1153
1153
|
},
|
|
1154
1154
|
"& li": {
|
|
1155
|
-
marginBottom:
|
|
1155
|
+
marginBottom: d.xs
|
|
1156
1156
|
},
|
|
1157
1157
|
"& h1, & h2, & h3, & h4, & h5, & h6": {
|
|
1158
1158
|
fontFamily: p.primary,
|
|
1159
|
-
color:
|
|
1160
|
-
marginTop:
|
|
1161
|
-
marginBottom:
|
|
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__ */
|
|
1168
|
-
|
|
1167
|
+
/* @__PURE__ */ n(
|
|
1168
|
+
ko,
|
|
1169
1169
|
{
|
|
1170
1170
|
variant: "outlined",
|
|
1171
|
-
onClick: (
|
|
1172
|
-
|
|
1171
|
+
onClick: (y) => {
|
|
1172
|
+
y.stopPropagation(), g(!1);
|
|
1173
1173
|
},
|
|
1174
1174
|
sx: {
|
|
1175
|
-
marginTop:
|
|
1176
|
-
borderColor:
|
|
1177
|
-
color:
|
|
1175
|
+
marginTop: d.md,
|
|
1176
|
+
borderColor: r.textPrimary,
|
|
1177
|
+
color: r.textPrimary,
|
|
1178
1178
|
fontFamily: p.secondary,
|
|
1179
1179
|
fontSize: "0.875em",
|
|
1180
|
-
borderRadius:
|
|
1180
|
+
borderRadius: x.sm,
|
|
1181
1181
|
"&:hover": {
|
|
1182
|
-
borderColor:
|
|
1183
|
-
color:
|
|
1184
|
-
backgroundColor:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1407
|
+
}, dt = ({
|
|
1408
1408
|
entity: e,
|
|
1409
1409
|
headline: t,
|
|
1410
1410
|
finalImage: i,
|
|
1411
1411
|
imagePosition: a = "left",
|
|
1412
|
-
children:
|
|
1413
|
-
embedCodeContainerRef:
|
|
1414
|
-
hasEmbedCode:
|
|
1412
|
+
children: m,
|
|
1413
|
+
embedCodeContainerRef: r,
|
|
1414
|
+
hasEmbedCode: x = !1,
|
|
1415
1415
|
filterScreenContent: p,
|
|
1416
|
-
rulesDisplay:
|
|
1416
|
+
rulesDisplay: d
|
|
1417
1417
|
}) => {
|
|
1418
|
-
var L,
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
),
|
|
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:
|
|
1424
|
-
borderRadius:
|
|
1425
|
-
fontFamilyPrimary:
|
|
1426
|
-
fontFamilySecondary:
|
|
1427
|
-
textColor:
|
|
1428
|
-
secondaryColor:
|
|
1429
|
-
bgcolor:
|
|
1430
|
-
opacity:
|
|
1431
|
-
brandingColors:
|
|
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:
|
|
1434
|
-
imageBackgroundGradient:
|
|
1435
|
-
isMobile:
|
|
1436
|
-
}),
|
|
1437
|
-
|
|
1438
|
-
|
|
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
|
-
|
|
1442
|
-
}, E = (V, U) =>
|
|
1443
|
-
|
|
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:
|
|
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__ */
|
|
1457
|
-
|
|
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__ */
|
|
1467
|
-
/* @__PURE__ */ u(
|
|
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
|
-
|
|
1469
|
+
s,
|
|
1470
1470
|
{
|
|
1471
1471
|
sx: {
|
|
1472
1472
|
display: "flex",
|
|
1473
1473
|
alignItems: "center",
|
|
1474
1474
|
justifyContent: "center",
|
|
1475
|
-
gap:
|
|
1475
|
+
gap: g["3xs"]
|
|
1476
1476
|
},
|
|
1477
1477
|
children: [
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
|
|
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:
|
|
1483
|
+
rulesDisplay: d,
|
|
1484
1484
|
isOverlayVariant: !1
|
|
1485
1485
|
}
|
|
1486
1486
|
)
|
|
1487
1487
|
]
|
|
1488
1488
|
}
|
|
1489
1489
|
),
|
|
1490
|
-
/* @__PURE__ */ u(
|
|
1491
|
-
/* @__PURE__ */
|
|
1492
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1495
|
+
/* @__PURE__ */ n(we, { ratio: "16/9", sx: l.aspectRatioContainer, children: /* @__PURE__ */ n(s, { ref: r }) })
|
|
1496
1496
|
] }) : i ? E(
|
|
1497
|
-
/* @__PURE__ */ u(
|
|
1498
|
-
/* @__PURE__ */ u(
|
|
1497
|
+
/* @__PURE__ */ u(s, { sx: l.mobileHeadlineContent, children: [
|
|
1498
|
+
/* @__PURE__ */ u(s, { children: [
|
|
1499
1499
|
/* @__PURE__ */ u(
|
|
1500
|
-
|
|
1500
|
+
s,
|
|
1501
1501
|
{
|
|
1502
1502
|
sx: {
|
|
1503
1503
|
display: "flex",
|
|
1504
1504
|
alignItems: "center",
|
|
1505
1505
|
justifyContent: "center",
|
|
1506
|
-
gap:
|
|
1506
|
+
gap: g["3xs"]
|
|
1507
1507
|
},
|
|
1508
1508
|
children: [
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
-
|
|
1509
|
+
/* @__PURE__ */ n(
|
|
1510
|
+
C,
|
|
1511
1511
|
{
|
|
1512
1512
|
level: "body-sm",
|
|
1513
|
-
sx:
|
|
1513
|
+
sx: l.headlineTypographyMobileImage,
|
|
1514
1514
|
children: t
|
|
1515
1515
|
}
|
|
1516
1516
|
),
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
|
|
1517
|
+
/* @__PURE__ */ n(
|
|
1518
|
+
se,
|
|
1519
1519
|
{
|
|
1520
1520
|
rules: e.rules || "",
|
|
1521
|
-
rulesDisplay:
|
|
1521
|
+
rulesDisplay: d,
|
|
1522
1522
|
isOverlayVariant: !1
|
|
1523
1523
|
}
|
|
1524
1524
|
)
|
|
1525
1525
|
]
|
|
1526
1526
|
}
|
|
1527
1527
|
),
|
|
1528
|
-
/* @__PURE__ */ u(
|
|
1529
|
-
/* @__PURE__ */
|
|
1530
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1533
|
+
p && /* @__PURE__ */ n(s, { children: p })
|
|
1534
1534
|
] }),
|
|
1535
|
-
|
|
1536
|
-
) : /* @__PURE__ */ u(
|
|
1537
|
-
/* @__PURE__ */ u(
|
|
1535
|
+
l.mobileHeadlineWithImage
|
|
1536
|
+
) : /* @__PURE__ */ u(s, { sx: l.mobileHeadlineWithoutImage, children: [
|
|
1537
|
+
/* @__PURE__ */ u(s, { children: [
|
|
1538
1538
|
/* @__PURE__ */ u(
|
|
1539
|
-
|
|
1539
|
+
s,
|
|
1540
1540
|
{
|
|
1541
1541
|
sx: {
|
|
1542
1542
|
display: "flex",
|
|
1543
1543
|
alignItems: "center",
|
|
1544
1544
|
justifyContent: "center",
|
|
1545
|
-
gap:
|
|
1545
|
+
gap: g["3xs"]
|
|
1546
1546
|
},
|
|
1547
1547
|
children: [
|
|
1548
|
-
/* @__PURE__ */
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
|
|
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:
|
|
1553
|
+
rulesDisplay: d,
|
|
1554
1554
|
isOverlayVariant: !1
|
|
1555
1555
|
}
|
|
1556
1556
|
)
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
),
|
|
1560
|
-
/* @__PURE__ */ u(
|
|
1561
|
-
/* @__PURE__ */
|
|
1562
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1566
|
-
] }),
|
|
1567
|
-
return /* @__PURE__ */ u(
|
|
1568
|
-
|
|
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__ */
|
|
1571
|
-
|
|
1570
|
+
/* @__PURE__ */ n(s, { sx: l.imageSafeArea }),
|
|
1571
|
+
l.imageContainerLeft
|
|
1572
1572
|
) : null,
|
|
1573
|
-
|
|
1574
|
-
!
|
|
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
|
-
|
|
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
|
-
|
|
1585
|
+
s,
|
|
1586
1586
|
{
|
|
1587
1587
|
sx: {
|
|
1588
1588
|
display: "flex",
|
|
1589
1589
|
alignItems: "center",
|
|
1590
1590
|
justifyContent: "center",
|
|
1591
|
-
gap:
|
|
1591
|
+
gap: g["3xs"]
|
|
1592
1592
|
},
|
|
1593
1593
|
children: [
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
|
|
1594
|
+
/* @__PURE__ */ n(
|
|
1595
|
+
C,
|
|
1596
1596
|
{
|
|
1597
1597
|
level: "body-sm",
|
|
1598
|
-
sx:
|
|
1598
|
+
sx: l.headlineTypographyDesktop,
|
|
1599
1599
|
children: t
|
|
1600
1600
|
}
|
|
1601
1601
|
),
|
|
1602
|
-
/* @__PURE__ */
|
|
1603
|
-
|
|
1602
|
+
/* @__PURE__ */ n(
|
|
1603
|
+
se,
|
|
1604
1604
|
{
|
|
1605
1605
|
rules: e.rules || "",
|
|
1606
|
-
rulesDisplay:
|
|
1606
|
+
rulesDisplay: d,
|
|
1607
1607
|
isOverlayVariant: !1
|
|
1608
1608
|
}
|
|
1609
1609
|
)
|
|
1610
1610
|
]
|
|
1611
1611
|
}
|
|
1612
1612
|
),
|
|
1613
|
-
/* @__PURE__ */ u(
|
|
1614
|
-
/* @__PURE__ */
|
|
1615
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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
|
-
|
|
1622
|
+
m
|
|
1623
1623
|
] }),
|
|
1624
1624
|
a === "right" && i ? E(
|
|
1625
|
-
/* @__PURE__ */
|
|
1626
|
-
|
|
1625
|
+
/* @__PURE__ */ n(s, { sx: l.imageSafeArea }),
|
|
1626
|
+
l.imageContainerRight
|
|
1627
1627
|
) : null
|
|
1628
1628
|
] });
|
|
1629
|
-
},
|
|
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,
|
|
1782
|
-
const i = (
|
|
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
|
-
|
|
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__ */
|
|
1798
|
-
|
|
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__ */
|
|
1812
|
-
|
|
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:
|
|
1670
|
+
fontFamily: r
|
|
1819
1671
|
},
|
|
1820
1672
|
children: "?"
|
|
1821
1673
|
}
|
|
1822
1674
|
)
|
|
1823
1675
|
}
|
|
1824
1676
|
),
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
|
|
1677
|
+
/* @__PURE__ */ n(
|
|
1678
|
+
C,
|
|
1827
1679
|
{
|
|
1828
1680
|
level: "h4",
|
|
1829
1681
|
sx: {
|
|
1830
1682
|
color: i,
|
|
1831
|
-
marginBottom:
|
|
1683
|
+
marginBottom: m.xs,
|
|
1832
1684
|
fontWeight: "600",
|
|
1833
|
-
fontFamily:
|
|
1685
|
+
fontFamily: r
|
|
1834
1686
|
},
|
|
1835
1687
|
children: e
|
|
1836
1688
|
}
|
|
1837
1689
|
),
|
|
1838
|
-
/* @__PURE__ */
|
|
1839
|
-
|
|
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:
|
|
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
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
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
|
-
|
|
1909
|
-
yt as u
|
|
1714
|
+
_o as a
|
|
1910
1715
|
};
|