fansunited-frontend-components 0.0.92 → 0.0.94

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 (139) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +139 -146
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +14 -20
  5. package/CompetitionStatistics.js +27 -27
  6. package/CompetitorCard.js +895 -891
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +1 -1
  9. package/EventCard.js +1494 -1571
  10. package/EventGamePlay.js +1 -1
  11. package/Leaderboard.js +249 -257
  12. package/List.js +319 -436
  13. package/MatchQuizPlay.js +1 -1
  14. package/Odds.js +30 -30
  15. package/PersonalityQuizPlay.js +1 -1
  16. package/PickThePair.js +627 -693
  17. package/PlayerOfTheMatch.js +256 -279
  18. package/PollVote.js +1 -1
  19. package/Predictor.js +19443 -2
  20. package/README.md +2 -1
  21. package/Standings.js +94 -99
  22. package/TopX.js +5871 -6988
  23. package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
  24. package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
  25. package/chunks/{OddsStrip-B159Nivm.js → OddsStrip-CviVfQI4.js} +51 -53
  26. package/chunks/{PickOneOfX-D9qlxKTD.js → PickOneOfX-a6Dv0-rR.js} +210 -212
  27. package/chunks/index-B1d9q8fX.js +4 -0
  28. package/chunks/index-BP0pvFJ4.js +4 -0
  29. package/chunks/index-CHZyL_g_.js +4 -0
  30. package/chunks/index-CeCUdRmF.js +4 -0
  31. package/chunks/index-Ckyyw-I8.js +4 -0
  32. package/chunks/index-DGvCP5G8.js +4 -0
  33. package/chunks/index-yjMVOgwO.js +4 -0
  34. package/chunks/{main-CcPVuc5G.js → main-CFwRpvUi.js} +219 -238
  35. package/chunks/{main-By2Fg4Us.js → main-D9tFZv2q.js} +272 -309
  36. package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
  37. package/chunks/{main-BhONg691.js → main-DjiQz1dv.js} +764 -1125
  38. package/chunks/{main-BoLNJccN.js → main-Dys2_Jt2.js} +1625 -1954
  39. package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
  40. package/chunks/main-eAQMCxQ7.js +1949 -0
  41. package/chunks/{main-CWfREbUv.js → main-gexg6lc-.js} +959 -977
  42. package/index.js +40 -44
  43. package/package.json +13 -5
  44. package/chunks/AccessTime-B7Q_InTi.js +0 -10
  45. package/chunks/AlertMessage-CTbc9daZ.js +0 -318
  46. package/chunks/Avatar-Ve0m4ut_.js +0 -353
  47. package/chunks/Button-x1sQVMH2.js +0 -665
  48. package/chunks/Card-DfxnA3Cz.js +0 -196
  49. package/chunks/CardActions-TMBAbk8a.js +0 -140
  50. package/chunks/CardContent-CLQHztIU.js +0 -106
  51. package/chunks/ChanceGameEmbedVariant-C3TKbPI4.js +0 -913
  52. package/chunks/CheckCircle-DW1VzjQO.js +0 -8
  53. package/chunks/Chip-BUoNpinI.js +0 -365
  54. package/chunks/CircularProgress-D88LgW2V.js +0 -317
  55. package/chunks/Close-BxLZcPtb.js +0 -9
  56. package/chunks/Close-DVx6f5-e.js +0 -8
  57. package/chunks/CollectLeadForm-DtUFKk99.js +0 -3419
  58. package/chunks/ConsentsList-BcIMKviP.js +0 -339
  59. package/chunks/DirectionScope-CK0duYt8.js +0 -36
  60. package/chunks/Divider-D_ALv2uC.js +0 -166
  61. package/chunks/Edit-CiKqhDom.js +0 -99
  62. package/chunks/EmojiEvents-BYoxruEl.js +0 -8
  63. package/chunks/FavoriteBorder-YhT6RHv5.js +0 -11
  64. package/chunks/FormControl-BNG04EhC.js +0 -656
  65. package/chunks/FormControlContext-Ct0huDDM.js +0 -6
  66. package/chunks/FormLabel-Bl7hTa8O.js +0 -130
  67. package/chunks/GlobalStyles-PokSS9bO.js +0 -12
  68. package/chunks/InlineSpinner-BhKW6lxZ.js +0 -28
  69. package/chunks/Input-B7kPqO0b.js +0 -391
  70. package/chunks/KeyboardArrowDown-OGGGLEnE.js +0 -8
  71. package/chunks/KeyboardArrowRight-DN7qrp17.js +0 -11
  72. package/chunks/KeyboardArrowUp-jvN5m_A0.js +0 -8
  73. package/chunks/Link-brb09X-6.js +0 -319
  74. package/chunks/ListItemButton-BFG5QJbo.js +0 -1151
  75. package/chunks/ModalClose-D3i-AyMB.js +0 -153
  76. package/chunks/ModalDialog-Be6w76fh.js +0 -880
  77. package/chunks/NotFoundSkeleton-BHRVG8yg.js +0 -83
  78. package/chunks/Notification-CC66HKXb.js +0 -614
  79. package/chunks/OddsSkeleton-BBOVhfsn.js +0 -137
  80. package/chunks/OverlayScoreStateSkeleton-D5rnBJ_w.js +0 -154
  81. package/chunks/OverlayScoreStateWrapperSkeleton-CTXzD0bm.js +0 -81
  82. package/chunks/OverlaySignInSkeleton-T8A_9Tco.js +0 -518
  83. package/chunks/OverlaySkeleton-y02LRXZy.js +0 -1193
  84. package/chunks/Person-BD-IO4aX.js +0 -8
  85. package/chunks/PersonOutline-Nxl_9g9S.js +0 -8
  86. package/chunks/Popper-CGfJHTbM.js +0 -1263
  87. package/chunks/Portal-DQQSLiON.js +0 -74
  88. package/chunks/Portal-X8O64KaQ.js +0 -66
  89. package/chunks/Predictor-BJBBwZ6R.js +0 -19513
  90. package/chunks/PrizeCard-B2tBhY45.js +0 -36400
  91. package/chunks/Search-jaDXe8g7.js +0 -14
  92. package/chunks/Select-CzBMHr7z.js +0 -1165
  93. package/chunks/Sheet-x-YGYOYz.js +0 -132
  94. package/chunks/SignInCta-3NFxIOuf.js +0 -79
  95. package/chunks/Spinner-_5U881sC.js +0 -39
  96. package/chunks/SportsSoccer-DLUgspA-.js +0 -20
  97. package/chunks/Stack-CDpKA1D-.js +0 -169
  98. package/chunks/StandardContentSkeleton-DaZftDxZ.js +0 -57
  99. package/chunks/Table-IJ9-D2DF.js +0 -394
  100. package/chunks/Tabs-iyOvjGfd.js +0 -1084
  101. package/chunks/Textarea-Dv_Z4l5j.js +0 -475
  102. package/chunks/TimerOutlined-jNsK__Zz.js +0 -8
  103. package/chunks/Tooltip-clSjN1oC.js +0 -535
  104. package/chunks/Typography-BsucZNXl.js +0 -775
  105. package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
  106. package/chunks/colorInversionUtils-AoR_6ghW.js +0 -347
  107. package/chunks/createSvgIcon-BWoHeNkc.js +0 -2813
  108. package/chunks/createSvgIcon-DBkOhFdn.js +0 -206
  109. package/chunks/dividerClasses-BkQMLbsL.js +0 -9
  110. package/chunks/elementAcceptingRef-DjUfkpLB.js +0 -25
  111. package/chunks/enums-B1lTCQvC.js +0 -15
  112. package/chunks/formLabelClasses-N0g8NZ67.js +0 -9
  113. package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
  114. package/chunks/helpers-CKFwVhwj.js +0 -558
  115. package/chunks/index-Bg5jypgn.js +0 -11
  116. package/chunks/index-Bnad45hB.js +0 -4
  117. package/chunks/index-C6rtfeRX.js +0 -4
  118. package/chunks/index-CFc0WTOi.js +0 -848
  119. package/chunks/index-C_kf8WZI.js +0 -4
  120. package/chunks/index-CaVpDbdC.js +0 -4
  121. package/chunks/index-DJJVbXn_.js +0 -4
  122. package/chunks/index-DQO7VDRC.js +0 -4
  123. package/chunks/index-Kgehqf8J.js +0 -4
  124. package/chunks/main-W_W6YBtr.js +0 -3280
  125. package/chunks/ownerWindow-PI509BpA.js +0 -7
  126. package/chunks/searchEntities-SJcoznz0.js +0 -38
  127. package/chunks/sportsEvents-CGX-WkNB.js +0 -27
  128. package/chunks/useButton-C9taTgFS.js +0 -106
  129. package/chunks/useConsents-BLhgfEDf.js +0 -1168
  130. package/chunks/useControlled-BYdyS7Pn.js +0 -31
  131. package/chunks/useEmbedCode-DCWnWGak.js +0 -31
  132. package/chunks/useEventCallback-C9W0M_8l.js +0 -14
  133. package/chunks/useForwardedInput-CkAnayh_.js +0 -180
  134. package/chunks/useImageVariant-B62O7iLC.js +0 -15
  135. package/chunks/useInfoPage-BHdgKdme.js +0 -50
  136. package/chunks/useParticipationDraft-Brnd_p3w.js +0 -307
  137. package/chunks/useSwitch-DLSSqtcZ.js +0 -66
  138. package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
  139. package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
@@ -1,1193 +0,0 @@
1
- import { jsx as o, jsxs as s, Fragment as V } from "react/jsx-runtime";
2
- import { G as Q, F as E, _ as T, H as X, P as t, J as K, a as de, b as me, v as ge, g as M, f as Z, u as N, d as G, i as ee, B as i, c as oe, e as te, j as he } from "./PrizeCard-B2tBhY45.js";
3
- import { g as fe, a as F, s as pe } from "./helpers-CKFwVhwj.js";
4
- import { W as ne } from "./enums-B1lTCQvC.js";
5
- import * as I from "react";
6
- import { useState as ue } from "react";
7
- import "react-dom";
8
- import { s as J, a as ie, b as L, c as re, T as u } from "./Typography-BsucZNXl.js";
9
- import { c as xe } from "./createSvgIcon-BWoHeNkc.js";
10
- import { C as ye } from "./Close-DVx6f5-e.js";
11
- import { T as $ } from "./Tooltip-clSjN1oC.js";
12
- import { I as z, B as be } from "./Button-x1sQVMH2.js";
13
- import { m as Ce, b as ve, M as Se, a as Te } from "./ModalDialog-Be6w76fh.js";
14
- import { S as ke } from "./CardContent-CLQHztIU.js";
15
- function Re(e) {
16
- return Q("MuiAspectRatio", e);
17
- }
18
- E("MuiAspectRatio", ["root", "content", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
19
- const He = ["children", "ratio", "minHeight", "maxHeight", "objectFit", "color", "variant", "component", "flex", "slots", "slotProps"], Ie = (e) => {
20
- const {
21
- variant: n,
22
- color: d
23
- } = e, l = {
24
- root: ["root"],
25
- content: ["content", n && `variant${K(n)}`, d && `color${K(d)}`]
26
- };
27
- return re(l, Re, {});
28
- }, Fe = J("div", {
29
- name: "JoyAspectRatio",
30
- slot: "Root",
31
- overridesResolver: (e, n) => n.root
32
- })(({
33
- ownerState: e,
34
- theme: n
35
- }) => {
36
- const d = typeof e.minHeight == "number" ? `${e.minHeight}px` : e.minHeight, l = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight;
37
- return {
38
- // a context variable for any child component
39
- "--AspectRatio-paddingBottom": `clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,
40
- "--AspectRatio-maxHeight": l || "9999px",
41
- "--AspectRatio-minHeight": d || "0px",
42
- "--Icon-color": e.color !== "neutral" || e.variant === "solid" ? "currentColor" : n.vars.palette.text.icon,
43
- borderRadius: "var(--AspectRatio-radius)",
44
- display: e.flex ? "flex" : "block",
45
- flex: e.flex ? 1 : "initial",
46
- flexDirection: "column",
47
- margin: "var(--AspectRatio-margin)"
48
- };
49
- }), Pe = J("div", {
50
- name: "JoyAspectRatio",
51
- slot: "Content",
52
- overridesResolver: (e, n) => n.content
53
- })(({
54
- theme: e,
55
- ownerState: n
56
- }) => {
57
- var d;
58
- return T({
59
- flex: 1,
60
- position: "relative",
61
- borderRadius: "inherit",
62
- height: 0,
63
- paddingBottom: "calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",
64
- overflow: "hidden",
65
- transition: "inherit",
66
- // makes it easy to add transition to the content
67
- // use data-attribute instead of :first-child to support zero config SSR (emotion)
68
- // use nested selector for integrating with nextjs image `fill` layout (spans are inserted on top of the img)
69
- "& [data-first-child]": {
70
- display: "flex",
71
- justifyContent: "center",
72
- alignItems: "center",
73
- boxSizing: "border-box",
74
- position: "absolute",
75
- width: "100%",
76
- height: "100%",
77
- objectFit: n.objectFit,
78
- margin: 0,
79
- padding: 0,
80
- "& > img": {
81
- // support art-direction that uses <picture><img /></picture>
82
- width: "100%",
83
- height: "100%",
84
- objectFit: n.objectFit
85
- }
86
- }
87
- }, e.typography["body-md"], (d = e.variants[n.variant]) == null ? void 0 : d[n.color]);
88
- }), U = /* @__PURE__ */ I.forwardRef(function(n, d) {
89
- const l = ie({
90
- props: n,
91
- name: "JoyAspectRatio"
92
- }), {
93
- children: b,
94
- ratio: r = "16 / 9",
95
- minHeight: y,
96
- maxHeight: g,
97
- objectFit: c = "cover",
98
- color: x = "neutral",
99
- variant: v = "soft",
100
- component: f,
101
- flex: S = !1,
102
- slots: p = {},
103
- slotProps: C = {}
104
- } = l, h = X(l, He), m = T({}, l, {
105
- flex: S,
106
- minHeight: y,
107
- maxHeight: g,
108
- objectFit: c,
109
- ratio: r,
110
- color: x,
111
- variant: v
112
- }), k = Ie(m), R = T({}, h, {
113
- component: f,
114
- slots: p,
115
- slotProps: C
116
- }), [j, w] = L("root", {
117
- ref: d,
118
- className: k.root,
119
- elementType: Fe,
120
- externalForwardedProps: R,
121
- ownerState: m
122
- }), [O, A] = L("content", {
123
- className: k.content,
124
- elementType: Pe,
125
- externalForwardedProps: R,
126
- ownerState: m
127
- });
128
- return /* @__PURE__ */ o(j, T({}, w, {
129
- children: /* @__PURE__ */ o(O, T({}, A, {
130
- children: I.Children.map(b, (a, H) => H === 0 && /* @__PURE__ */ I.isValidElement(a) ? /* @__PURE__ */ I.cloneElement(a, {
131
- "data-first-child": ""
132
- }) : a)
133
- }))
134
- }));
135
- });
136
- process.env.NODE_ENV !== "production" && (U.propTypes = {
137
- // ┌────────────────────────────── Warning ──────────────────────────────┐
138
- // │ These PropTypes are generated from the TypeScript type definitions. │
139
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
140
- // └─────────────────────────────────────────────────────────────────────┘
141
- /**
142
- * Used to render icon or text elements inside the AspectRatio if `src` is not set.
143
- * This can be an element, or just a string.
144
- */
145
- children: t.node,
146
- /**
147
- * The color of the component. It supports those theme colors that make sense for this component.
148
- * @default 'neutral'
149
- */
150
- color: t.oneOf(["danger", "neutral", "primary", "success", "warning"]),
151
- /**
152
- * The component used for the root node.
153
- * Either a string to use a HTML element or a component.
154
- */
155
- component: t.elementType,
156
- /**
157
- * By default, the AspectRatio will maintain the aspect ratio of its content.
158
- * Set this prop to `true` when the container is a flex row and you want the AspectRatio to fill the height of its container.
159
- * @default false
160
- */
161
- flex: t.bool,
162
- /**
163
- * The maximum calculated height of the element (not the CSS height).
164
- */
165
- maxHeight: t.oneOfType([t.number, t.string]),
166
- /**
167
- * The minimum calculated height of the element (not the CSS height).
168
- */
169
- minHeight: t.oneOfType([t.number, t.string]),
170
- /**
171
- * The CSS object-fit value of the first-child.
172
- * @default 'cover'
173
- */
174
- objectFit: t.oneOf(["-moz-initial", "contain", "cover", "fill", "inherit", "initial", "none", "revert-layer", "revert", "scale-down", "unset"]),
175
- /**
176
- * The aspect-ratio of the element. The current implementation uses padding instead of the CSS aspect-ratio due to browser support.
177
- * https://caniuse.com/?search=aspect-ratio
178
- * @default '16 / 9'
179
- */
180
- ratio: t.oneOfType([t.number, t.string]),
181
- /**
182
- * The props used for each slot inside.
183
- * @default {}
184
- */
185
- slotProps: t.shape({
186
- content: t.oneOfType([t.func, t.object]),
187
- root: t.oneOfType([t.func, t.object])
188
- }),
189
- /**
190
- * The components used for each slot inside.
191
- * @default {}
192
- */
193
- slots: t.shape({
194
- content: t.elementType,
195
- root: t.elementType
196
- }),
197
- /**
198
- * The system prop that allows defining system overrides as well as additional CSS styles.
199
- */
200
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
201
- /**
202
- * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
203
- * @default 'soft'
204
- */
205
- variant: t.oneOfType([t.oneOf(["outlined", "plain", "soft", "solid"]), t.string])
206
- });
207
- function Ae(e) {
208
- return Q("MuiDialogContent", e);
209
- }
210
- E("MuiDialogContent", ["root"]);
211
- const ze = E("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"]), Me = ["component", "children", "orientation", "slots", "slotProps"], je = () => re({
212
- root: ["root"]
213
- }, Ae, {}), we = J(ke, {
214
- name: "JoyDialogContent",
215
- slot: "Root",
216
- overridesResolver: (e, n) => n.root
217
- })(({
218
- theme: e
219
- }) => ({
220
- color: `var(--DialogContent-color, ${e.vars.palette.text.tertiary})`,
221
- overflow: "auto",
222
- margin: "var(--unstable_DialogContent-margin)",
223
- [`.${Ce.root} > .${ze.root} + &`]: {
224
- "--unstable_DialogContent-margin": "-0.375em 0 0 0"
225
- }
226
- })), ae = /* @__PURE__ */ I.forwardRef(function(n, d) {
227
- const l = ie({
228
- props: n,
229
- name: "JoyDialogContent"
230
- }), b = I.useContext(ve), {
231
- component: r = "div",
232
- children: y,
233
- orientation: g = "vertical",
234
- slots: c = {},
235
- slotProps: x = {}
236
- } = l, v = X(l, Me), f = T({}, v, {
237
- component: r,
238
- slots: c,
239
- slotProps: x
240
- }), S = T({}, l, {
241
- component: r,
242
- orientation: g
243
- }), p = je(), [C, h] = L("root", {
244
- ref: d,
245
- className: p.root,
246
- elementType: we,
247
- externalForwardedProps: f,
248
- ownerState: S,
249
- additionalProps: {
250
- id: b == null ? void 0 : b.describedBy
251
- }
252
- });
253
- return /* @__PURE__ */ o(C, T({}, h, {
254
- children: y
255
- }));
256
- });
257
- process.env.NODE_ENV !== "production" && (ae.propTypes = {
258
- // ┌────────────────────────────── Warning ──────────────────────────────┐
259
- // │ These PropTypes are generated from the TypeScript type definitions. │
260
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
261
- // └─────────────────────────────────────────────────────────────────────┘
262
- /**
263
- * Used to render icon or text elements inside the CardContent if `src` is not set.
264
- * This can be an element, or just a string.
265
- */
266
- children: t.node,
267
- /**
268
- * The component used for the root node.
269
- * Either a string to use a HTML element or a component.
270
- */
271
- component: t.elementType,
272
- /**
273
- * The component orientation.
274
- * @default 'vertical'
275
- */
276
- orientation: t.oneOf(["horizontal", "vertical"]),
277
- /**
278
- * The props used for each slot inside.
279
- * @default {}
280
- */
281
- slotProps: t.shape({
282
- root: t.oneOfType([t.func, t.object])
283
- }),
284
- /**
285
- * The components used for each slot inside.
286
- * @default {}
287
- */
288
- slots: t.shape({
289
- root: t.elementType
290
- }),
291
- /**
292
- * The system prop that allows defining system overrides as well as additional CSS styles.
293
- */
294
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
295
- });
296
- const _ = xe(/* @__PURE__ */ o("path", {
297
- 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"
298
- }), "InfoOutlined"), P = ({
299
- rules: e,
300
- rulesDisplay: n,
301
- isOverlayVariant: d = !1
302
- }) => {
303
- const { t: l } = de(), { shadowRootElement: b } = me(ge), r = M(), y = Z(), g = N(), c = G(), x = ee(), [v, f] = ue(!1);
304
- if (!e)
305
- return null;
306
- if (n != null && n.component)
307
- return n.component;
308
- if (((n == null ? void 0 : n.type) || "modal") === "link" && (n != null && n.url)) {
309
- const p = n.target || "_blank", C = {
310
- backgroundColor: "transparent",
311
- color: d ? r.palette.neutral.plainColor : r.textSecondary,
312
- border: "none",
313
- borderRadius: "50%",
314
- width: "2em",
315
- height: "2em",
316
- minHeight: "2em",
317
- minWidth: "2em",
318
- padding: 0,
319
- display: "flex",
320
- alignItems: "center",
321
- justifyContent: "center",
322
- cursor: "pointer",
323
- transition: "all 0.2s ease-in-out",
324
- "&: hover": {
325
- backgroundColor: "transparent",
326
- transform: "scale(1.05)"
327
- },
328
- "&:focus-visible": {
329
- outline: "none"
330
- },
331
- "& svg": {
332
- fontSize: "1.25em"
333
- }
334
- };
335
- return typeof window > "u" ? /* @__PURE__ */ o(
336
- $,
337
- {
338
- title: l("common.rules.info"),
339
- placement: "right",
340
- variant: "soft",
341
- disablePortal: !0,
342
- children: /* @__PURE__ */ o(
343
- z,
344
- {
345
- component: "a",
346
- href: n.url,
347
- target: p,
348
- rel: "noopener noreferrer",
349
- sx: C,
350
- "aria-label": l("common.rules.info"),
351
- children: /* @__PURE__ */ o(_, {})
352
- }
353
- )
354
- }
355
- ) : /* @__PURE__ */ o(
356
- $,
357
- {
358
- title: l("common.rules.info"),
359
- placement: "right",
360
- variant: "soft",
361
- disablePortal: !0,
362
- children: /* @__PURE__ */ o(
363
- z,
364
- {
365
- onClick: (h) => {
366
- h.stopPropagation(), window.open(n.url, p, "noopener,noreferrer");
367
- },
368
- sx: C,
369
- "aria-label": l("common.rules.info"),
370
- children: /* @__PURE__ */ o(_, {})
371
- }
372
- )
373
- }
374
- );
375
- }
376
- return /* @__PURE__ */ s(V, { children: [
377
- /* @__PURE__ */ o(
378
- $,
379
- {
380
- title: l("common.rules.info"),
381
- placement: "right",
382
- variant: "soft",
383
- disablePortal: !0,
384
- children: /* @__PURE__ */ o(
385
- z,
386
- {
387
- onClick: (p) => {
388
- p.stopPropagation(), f(!0);
389
- },
390
- sx: {
391
- backgroundColor: "transparent",
392
- color: r.palette.neutral[500],
393
- border: "none",
394
- borderRadius: "50%",
395
- width: "2em",
396
- height: "2em",
397
- minHeight: "2em",
398
- minWidth: "2em",
399
- padding: 0,
400
- display: "flex",
401
- alignItems: "center",
402
- justifyContent: "center",
403
- cursor: "pointer",
404
- transition: "all 0.2s ease-in-out",
405
- "&:hover": {
406
- backgroundColor: "transparent",
407
- color: r.palette.neutral[500],
408
- transform: "scale(1.05)"
409
- },
410
- "&:focus-visible": {
411
- outline: "none"
412
- },
413
- "& svg": {
414
- fontSize: "1.25em"
415
- }
416
- },
417
- "aria-label": l("common.rules.info"),
418
- children: /* @__PURE__ */ o(_, {})
419
- }
420
- )
421
- }
422
- ),
423
- /* @__PURE__ */ o(
424
- Se,
425
- {
426
- open: v,
427
- onClose: () => f(!1),
428
- container: b,
429
- sx: { zIndex: 1300 },
430
- children: /* @__PURE__ */ s(
431
- Te,
432
- {
433
- sx: {
434
- width: "100%",
435
- maxWidth: x ? "90vw" : "600px",
436
- maxHeight: x ? "90vh" : "80vh",
437
- p: x ? 2 : 3,
438
- borderRadius: y.md,
439
- backgroundColor: r.surface
440
- },
441
- children: [
442
- /* @__PURE__ */ o(
443
- z,
444
- {
445
- onClick: (p) => {
446
- p.stopPropagation(), f(!1);
447
- },
448
- sx: {
449
- position: "absolute",
450
- top: c.sm,
451
- right: c.sm,
452
- backgroundColor: "transparent",
453
- color: r.textSecondary,
454
- border: "none",
455
- borderRadius: "50%",
456
- width: "2em",
457
- height: "2em",
458
- minHeight: "2em",
459
- minWidth: "2em",
460
- padding: 0,
461
- display: "flex",
462
- alignItems: "center",
463
- justifyContent: "center",
464
- cursor: "pointer",
465
- transition: "all 0.2s ease-in-out",
466
- zIndex: 1e3,
467
- "&:hover": {
468
- backgroundColor: `${r.textSecondary}15`,
469
- color: r.textPrimary,
470
- transform: "scale(1.05)"
471
- },
472
- "&:focus-visible": {
473
- outline: "none"
474
- },
475
- "& svg": {
476
- fontSize: "1.25em"
477
- }
478
- },
479
- children: /* @__PURE__ */ o(ye, {})
480
- }
481
- ),
482
- /* @__PURE__ */ s(
483
- ae,
484
- {
485
- sx: {
486
- display: "flex",
487
- flexDirection: "column",
488
- gap: c.md
489
- },
490
- children: [
491
- /* @__PURE__ */ o(
492
- u,
493
- {
494
- sx: {
495
- fontFamily: g.primary,
496
- fontWeight: 600,
497
- fontSize: "1.25em",
498
- lineHeight: 1.2,
499
- color: r.textPrimary,
500
- textAlign: "center",
501
- marginBottom: c.sm
502
- },
503
- children: l("common.rules.title")
504
- }
505
- ),
506
- /* @__PURE__ */ o(
507
- i,
508
- {
509
- sx: {
510
- fontFamily: g.secondary,
511
- fontSize: "1em",
512
- lineHeight: 1.5,
513
- color: r.textSecondary,
514
- overflow: "auto",
515
- // Custom scrollbar styling for dark theme
516
- "&::-webkit-scrollbar": {
517
- width: "8px"
518
- },
519
- "&::-webkit-scrollbar-track": {
520
- backgroundColor: "transparent"
521
- },
522
- "&::-webkit-scrollbar-thumb": {
523
- backgroundColor: r.secondaryContainer,
524
- borderRadius: "4px",
525
- "&:hover": {
526
- backgroundColor: r.textSecondary
527
- }
528
- },
529
- // Firefox scrollbar styling
530
- scrollbarWidth: "thin",
531
- scrollbarColor: `${r.secondaryContainer} transparent`,
532
- "& p": {
533
- marginBottom: c.sm
534
- },
535
- "& ul, & ol": {
536
- marginLeft: c.md,
537
- marginBottom: c.sm
538
- },
539
- "& li": {
540
- marginBottom: c.xs
541
- },
542
- "& h1, & h2, & h3, & h4, & h5, & h6": {
543
- fontFamily: g.primary,
544
- color: r.textPrimary,
545
- marginTop: c.md,
546
- marginBottom: c.sm
547
- }
548
- },
549
- dangerouslySetInnerHTML: { __html: e }
550
- }
551
- ),
552
- /* @__PURE__ */ o(
553
- be,
554
- {
555
- variant: "outlined",
556
- onClick: (p) => {
557
- p.stopPropagation(), f(!1);
558
- },
559
- sx: {
560
- marginTop: c.md,
561
- borderColor: r.textPrimary,
562
- color: r.textPrimary,
563
- fontFamily: g.secondary,
564
- fontSize: "0.875em",
565
- borderRadius: y.sm,
566
- "&:hover": {
567
- borderColor: r.textPrimary,
568
- color: r.textPrimary,
569
- backgroundColor: r.surfaceVariant
570
- }
571
- },
572
- children: l("common.rules.close")
573
- }
574
- )
575
- ]
576
- }
577
- )
578
- ]
579
- }
580
- )
581
- }
582
- )
583
- ] });
584
- }, Oe = (e) => {
585
- var n, d, l;
586
- return {
587
- // Mobile headline with image background
588
- mobileHeadlineWithImage: {
589
- display: e.isMobile ? "flex" : "none",
590
- flexDirection: "column",
591
- justifyContent: "space-between",
592
- gap: "10px",
593
- backgroundImage: `url("${e.finalImage}")`,
594
- backgroundSize: "cover",
595
- backgroundPosition: "center",
596
- borderTopLeftRadius: "5px",
597
- borderTopRightRadius: "5px",
598
- position: "relative",
599
- minHeight: "210px",
600
- overflow: "hidden",
601
- height: "auto",
602
- "&::before": {
603
- content: '""',
604
- position: "absolute",
605
- width: "100%",
606
- height: "100%",
607
- background: e.imageBackgroundGradient,
608
- borderTopLeftRadius: "5px",
609
- borderTopRightRadius: "5px"
610
- }
611
- },
612
- // Mobile headline content
613
- mobileHeadlineContent: {
614
- zIndex: 1,
615
- height: "100%",
616
- p: e.spacingScale.xl,
617
- gap: e.spacingScale["2xl"],
618
- display: "flex",
619
- flexDirection: "column",
620
- justifyContent: "space-between"
621
- },
622
- // Mobile headline without image
623
- mobileHeadlineWithoutImage: {
624
- display: e.isMobile ? "flex" : "none",
625
- flexDirection: "column",
626
- justifyContent: "space-between",
627
- p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
628
- gap: e.spacingScale["2xl"]
629
- },
630
- // Headline typography (mobile with image)
631
- headlineTypographyMobileImage: {
632
- fontWeight: 500,
633
- lineHeight: "166%",
634
- letterSpacing: "1px",
635
- fontSize: "0.75em",
636
- color: ((n = e.brandingColors) == null ? void 0 : n.secondaryColor) || e.darkTextColor,
637
- opacity: "70%",
638
- textTransform: "uppercase",
639
- fontFamily: e.fontFamilySecondary,
640
- textAlign: "center"
641
- },
642
- // Headline typography (mobile without image & desktop)
643
- headlineTypography: {
644
- fontWeight: 500,
645
- lineHeight: "166%",
646
- letterSpacing: "1px",
647
- textTransform: "uppercase",
648
- fontSize: "0.75em",
649
- color: e.secondaryColor,
650
- opacity: e.opacity,
651
- fontFamily: e.fontFamilySecondary,
652
- textAlign: e.isMobile ? "center" : "left"
653
- },
654
- // Headline typography (desktop centered)
655
- headlineTypographyDesktop: {
656
- fontWeight: 500,
657
- lineHeight: "166%",
658
- letterSpacing: "1px",
659
- textTransform: "uppercase",
660
- fontSize: "0.75em",
661
- color: e.secondaryColor,
662
- opacity: e.opacity,
663
- fontFamily: e.fontFamilySecondary
664
- },
665
- // Content container
666
- contentContainer: {
667
- display: "flex",
668
- flexDirection: "column",
669
- gap: e.spacingScale["3xs"]
670
- },
671
- // Title typography (mobile with image)
672
- titleTypographyMobileImage: {
673
- // CMS text of unknown language: let each block pick its own direction from
674
- // its first strong character, so Latin punctuation is not displaced in RTL.
675
- unicodeBidi: "plaintext",
676
- fontWeight: 700,
677
- lineHeight: "133%",
678
- fontSize: "1.5em",
679
- letterSpacing: "0.15px",
680
- color: ((d = e.brandingColors) == null ? void 0 : d.contentColor) || e.darkTextColor,
681
- fontFamily: e.fontFamilyPrimary,
682
- textAlign: "center"
683
- },
684
- // Title typography (mobile without image & desktop responsive)
685
- titleTypography: {
686
- // CMS text of unknown language: let each block pick its own direction from
687
- // its first strong character, so Latin punctuation is not displaced in RTL.
688
- unicodeBidi: "plaintext",
689
- fontWeight: 700,
690
- lineHeight: "133%",
691
- letterSpacing: "0px",
692
- fontSize: "1.5em",
693
- color: e.textColor,
694
- fontFamily: e.fontFamilyPrimary,
695
- textAlign: e.isMobile ? "center" : "left"
696
- },
697
- // Title typography (desktop centered)
698
- titleTypographyDesktop: {
699
- // CMS text of unknown language: let each block pick its own direction from
700
- // its first strong character, so Latin punctuation is not displaced in RTL.
701
- unicodeBidi: "plaintext",
702
- fontWeight: 700,
703
- lineHeight: "133%",
704
- letterSpacing: "0px",
705
- fontSize: "1.5em",
706
- color: e.textColor,
707
- fontFamily: e.fontFamilyPrimary
708
- },
709
- // Description typography (mobile with image)
710
- descriptionTypographyMobileImage: {
711
- // CMS text of unknown language: let each block pick its own direction from
712
- // its first strong character, so Latin punctuation is not displaced in RTL.
713
- unicodeBidi: "plaintext",
714
- fontWeight: 400,
715
- lineHeight: "140%",
716
- fontSize: "1.25em",
717
- letterSpacing: "0.15px",
718
- color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
719
- opacity: "70%",
720
- fontFamily: e.fontFamilyPrimary,
721
- textAlign: "center"
722
- },
723
- // Description typography (mobile without image & desktop responsive)
724
- descriptionTypography: {
725
- // CMS text of unknown language: let each block pick its own direction from
726
- // its first strong character, so Latin punctuation is not displaced in RTL.
727
- unicodeBidi: "plaintext",
728
- fontWeight: 400,
729
- lineHeight: "140%",
730
- letterSpacing: "0.15px",
731
- fontSize: "1.25em",
732
- color: e.secondaryColor,
733
- opacity: e.opacity,
734
- fontFamily: e.fontFamilyPrimary,
735
- textAlign: e.isMobile ? "center" : "left"
736
- },
737
- // Description typography (desktop centered)
738
- descriptionTypographyDesktop: {
739
- // CMS text of unknown language: let each block pick its own direction from
740
- // its first strong character, so Latin punctuation is not displaced in RTL.
741
- unicodeBidi: "plaintext",
742
- fontWeight: 400,
743
- lineHeight: "140%",
744
- letterSpacing: "0.15px",
745
- fontSize: "1.25em",
746
- color: e.secondaryColor,
747
- opacity: e.opacity,
748
- fontFamily: e.fontFamilyPrimary
749
- },
750
- // Image container (left position)
751
- imageContainerLeft: {
752
- display: e.isMobile ? "none" : "block",
753
- flex: "0.3",
754
- overflow: "hidden",
755
- height: "auto",
756
- position: "relative",
757
- minHeight: "auto",
758
- backgroundImage: `url("${e.finalImage}")`,
759
- backgroundSize: "cover",
760
- backgroundPosition: "center center",
761
- backgroundRepeat: "no-repeat",
762
- alignItems: "center",
763
- justifyContent: "center"
764
- },
765
- // Image container (right position)
766
- imageContainerRight: {
767
- display: e.isMobile ? "none" : "block",
768
- flex: "0.3",
769
- overflow: "hidden",
770
- height: "auto",
771
- position: "relative",
772
- minHeight: "auto",
773
- backgroundImage: `url("${e.finalImage}")`,
774
- backgroundSize: "cover",
775
- backgroundPosition: "center center",
776
- backgroundRepeat: "no-repeat",
777
- alignItems: "center",
778
- justifyContent: "center"
779
- },
780
- // Image safe area (placeholder for image space)
781
- imageSafeArea: {
782
- width: "100%",
783
- height: "100%"
784
- },
785
- // Main content area
786
- mainContentArea: {
787
- flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
788
- display: "flex",
789
- flexDirection: "column",
790
- px: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
791
- pt: e.spacingScale.lg,
792
- pb: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
793
- gap: e.spacingScale.md,
794
- bgcolor: e.bgcolor
795
- },
796
- // Desktop headline container
797
- desktopHeadlineContainer: {
798
- display: e.isMobile ? "none" : "flex",
799
- flexDirection: "column",
800
- justifyContent: "space-between",
801
- gap: e.spacingScale["2xl"],
802
- textAlign: "center"
803
- },
804
- // Aspect ratio container (for embed code)
805
- aspectRatioContainer: {
806
- borderRadius: e.borderRadius.md,
807
- overflow: "hidden"
808
- }
809
- };
810
- }, Ke = ({
811
- entity: e,
812
- headline: n,
813
- finalImage: d,
814
- imagePosition: l = "left",
815
- children: b,
816
- embedCodeContainerRef: r,
817
- hasEmbedCode: y = !1,
818
- filterScreenContent: g,
819
- rulesDisplay: c
820
- }) => {
821
- var Y, q;
822
- const x = ee(), v = oe(), f = G(), S = N().primary, p = N().secondary, C = Z(), h = ((Y = e.branding) == null ? void 0 : Y.colors) || null, m = ((q = e.branding) == null ? void 0 : q.urls) || null, k = (h == null ? void 0 : h.contentColor) || M().textColor, R = (h == null ? void 0 : h.secondaryColor) || M().textColor, j = (h == null ? void 0 : h.backgroundColor) || M().surface, w = "60%", O = te(
823
- ne.STANDARD
824
- ), A = he(l), a = Oe({
825
- finalImage: d,
826
- spacingScale: f,
827
- borderRadius: C,
828
- fontFamilyPrimary: S,
829
- fontFamilySecondary: p,
830
- textColor: k,
831
- secondaryColor: R,
832
- bgcolor: j,
833
- opacity: w,
834
- brandingColors: h,
835
- imagePosition: l,
836
- darkTextColor: v.colorSchemes.dark.textColor,
837
- imageBackgroundGradient: O,
838
- isMobile: x
839
- }), H = fe(
840
- m == null ? void 0 : m.primaryUrl,
841
- m == null ? void 0 : m.secondaryUrl,
842
- "image"
843
- ), le = () => {
844
- H && window.open(H, "_blank", "noopener,noreferrer");
845
- }, B = (W, D) => H ? typeof window > "u" ? /* @__PURE__ */ o(
846
- i,
847
- {
848
- component: "a",
849
- href: H,
850
- target: "_blank",
851
- rel: "noopener noreferrer",
852
- sx: {
853
- ...D,
854
- cursor: "pointer",
855
- textDecoration: "none"
856
- },
857
- children: W
858
- }
859
- ) : /* @__PURE__ */ o(
860
- i,
861
- {
862
- sx: {
863
- ...D,
864
- cursor: "pointer"
865
- },
866
- onClick: le,
867
- children: W
868
- }
869
- ) : /* @__PURE__ */ o(i, { sx: D, children: W }), ce = () => y && r ? /* @__PURE__ */ s(i, { sx: a.mobileHeadlineWithoutImage, children: [
870
- /* @__PURE__ */ s(i, { children: [
871
- /* @__PURE__ */ s(
872
- i,
873
- {
874
- sx: {
875
- display: "flex",
876
- alignItems: "center",
877
- justifyContent: "center",
878
- gap: f["3xs"]
879
- },
880
- children: [
881
- /* @__PURE__ */ o(u, { level: "body-sm", sx: a.headlineTypography, children: n }),
882
- /* @__PURE__ */ o(
883
- P,
884
- {
885
- rules: e.rules || "",
886
- rulesDisplay: c,
887
- isOverlayVariant: !1
888
- }
889
- )
890
- ]
891
- }
892
- ),
893
- /* @__PURE__ */ s(i, { sx: a.contentContainer, children: [
894
- /* @__PURE__ */ o(u, { level: "h4", sx: a.titleTypography, children: e.title }),
895
- /* @__PURE__ */ o(u, { sx: a.descriptionTypography, children: F(e.description) })
896
- ] })
897
- ] }),
898
- /* @__PURE__ */ o(U, { ratio: "16/9", sx: a.aspectRatioContainer, children: /* @__PURE__ */ o(i, { ref: r }) })
899
- ] }) : d ? B(
900
- /* @__PURE__ */ s(i, { sx: a.mobileHeadlineContent, children: [
901
- /* @__PURE__ */ s(i, { children: [
902
- /* @__PURE__ */ s(
903
- i,
904
- {
905
- sx: {
906
- display: "flex",
907
- alignItems: "center",
908
- justifyContent: "center",
909
- gap: f["3xs"]
910
- },
911
- children: [
912
- /* @__PURE__ */ o(
913
- u,
914
- {
915
- level: "body-sm",
916
- sx: a.headlineTypographyMobileImage,
917
- children: n
918
- }
919
- ),
920
- /* @__PURE__ */ o(
921
- P,
922
- {
923
- rules: e.rules || "",
924
- rulesDisplay: c,
925
- isOverlayVariant: !1
926
- }
927
- )
928
- ]
929
- }
930
- ),
931
- /* @__PURE__ */ s(i, { sx: a.contentContainer, children: [
932
- /* @__PURE__ */ o(u, { sx: a.titleTypographyMobileImage, children: e.title }),
933
- /* @__PURE__ */ o(u, { sx: a.descriptionTypographyMobileImage, children: F(e.description) })
934
- ] })
935
- ] }),
936
- g && /* @__PURE__ */ o(i, { children: g })
937
- ] }),
938
- a.mobileHeadlineWithImage
939
- ) : /* @__PURE__ */ s(i, { sx: a.mobileHeadlineWithoutImage, children: [
940
- /* @__PURE__ */ s(i, { children: [
941
- /* @__PURE__ */ s(
942
- i,
943
- {
944
- sx: {
945
- display: "flex",
946
- alignItems: "center",
947
- justifyContent: "center",
948
- gap: f["3xs"]
949
- },
950
- children: [
951
- /* @__PURE__ */ o(u, { level: "body-sm", sx: a.headlineTypography, children: n }),
952
- /* @__PURE__ */ o(
953
- P,
954
- {
955
- rules: e.rules || "",
956
- rulesDisplay: c,
957
- isOverlayVariant: !1
958
- }
959
- )
960
- ]
961
- }
962
- ),
963
- /* @__PURE__ */ s(i, { sx: a.contentContainer, children: [
964
- /* @__PURE__ */ o(u, { level: "h4", sx: a.titleTypography, children: e.title }),
965
- /* @__PURE__ */ o(u, { sx: a.descriptionTypography, children: F(e.description) })
966
- ] })
967
- ] }),
968
- g && /* @__PURE__ */ o(i, { children: g })
969
- ] }), se = !(x && g);
970
- return /* @__PURE__ */ s(V, { children: [
971
- x && ce(),
972
- A === "left" && d ? B(
973
- /* @__PURE__ */ o(i, { sx: a.imageSafeArea }),
974
- a.imageContainerLeft
975
- ) : null,
976
- se && /* @__PURE__ */ s(i, { sx: a.mainContentArea, children: [
977
- !x && /* @__PURE__ */ o(i, { children: /* @__PURE__ */ s(i, { sx: a.desktopHeadlineContainer, children: [
978
- /* @__PURE__ */ s(
979
- i,
980
- {
981
- sx: {
982
- display: "flex",
983
- flexDirection: "column",
984
- alignItems: "center"
985
- },
986
- children: [
987
- /* @__PURE__ */ s(
988
- i,
989
- {
990
- sx: {
991
- display: "flex",
992
- alignItems: "center",
993
- justifyContent: "center",
994
- gap: f["3xs"]
995
- },
996
- children: [
997
- /* @__PURE__ */ o(
998
- u,
999
- {
1000
- level: "body-sm",
1001
- sx: a.headlineTypographyDesktop,
1002
- children: n
1003
- }
1004
- ),
1005
- /* @__PURE__ */ o(
1006
- P,
1007
- {
1008
- rules: e.rules || "",
1009
- rulesDisplay: c,
1010
- isOverlayVariant: !1
1011
- }
1012
- )
1013
- ]
1014
- }
1015
- ),
1016
- /* @__PURE__ */ s(i, { sx: a.contentContainer, children: [
1017
- /* @__PURE__ */ o(u, { level: "h4", sx: a.titleTypographyDesktop, children: e.title }),
1018
- /* @__PURE__ */ o(u, { sx: a.descriptionTypographyDesktop, children: F(e.description) })
1019
- ] })
1020
- ]
1021
- }
1022
- ),
1023
- y && r ? /* @__PURE__ */ o(i, { sx: { px: f.md }, children: /* @__PURE__ */ o(U, { ratio: "16/9", sx: a.aspectRatioContainer, children: /* @__PURE__ */ o(i, { ref: r }) }) }) : g ? /* @__PURE__ */ o(i, { children: g }) : /* @__PURE__ */ o(V, {})
1024
- ] }) }),
1025
- b
1026
- ] }),
1027
- A === "right" && d ? B(
1028
- /* @__PURE__ */ o(i, { sx: a.imageSafeArea }),
1029
- a.imageContainerRight
1030
- ) : null
1031
- ] });
1032
- }, Be = (e) => {
1033
- var n;
1034
- return {
1035
- // Main container with background overlay
1036
- mainContainer: {
1037
- display: "flex",
1038
- flexDirection: "column",
1039
- justifyContent: "space-between",
1040
- gap: "40px",
1041
- p: e.spacingScale.xl,
1042
- boxShadow: "md",
1043
- border: (n = e.brandingColors) != null && n.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
1044
- overflow: "hidden",
1045
- backgroundImage: e.backgroundImage,
1046
- backgroundPosition: "center",
1047
- backgroundSize: "cover",
1048
- position: "relative",
1049
- borderRadius: e.mdBorderRadius,
1050
- minHeight: "250px",
1051
- "&::before": {
1052
- content: '""',
1053
- position: "absolute",
1054
- background: e.imageBackgroundGradient,
1055
- top: 0,
1056
- left: 0,
1057
- right: 0,
1058
- bottom: 0,
1059
- borderRadius: "inherit",
1060
- zIndex: 0
1061
- }
1062
- },
1063
- // Headline section wrapper
1064
- headlineSection: {
1065
- display: "flex",
1066
- justifyContent: "space-between",
1067
- flex: "1 0 0",
1068
- alignSelf: "stretch"
1069
- },
1070
- // Headline content container
1071
- headlineContent: {
1072
- display: "flex",
1073
- flexDirection: "column",
1074
- alignItems: "flex-start",
1075
- flex: "1 0 0",
1076
- gap: "16px"
1077
- },
1078
- // Headline content with z-index
1079
- headlineContentInner: {
1080
- zIndex: 10
1081
- },
1082
- // Headline typography
1083
- headlineText: {
1084
- fontWeight: 500,
1085
- lineHeight: "166%",
1086
- letterSpacing: "1px",
1087
- textAlign: "left",
1088
- color: e.secondaryColor,
1089
- opacity: "70%",
1090
- textTransform: "uppercase",
1091
- fontFamily: e.fontFamilySecondary,
1092
- fontSize: "0.75em"
1093
- },
1094
- // Content container
1095
- contentContainer: {
1096
- display: "flex",
1097
- flexDirection: "column",
1098
- gap: e.spacingScale["3xs"]
1099
- },
1100
- // Title typography
1101
- titleText: {
1102
- // CMS text of unknown language: let each block pick its own direction from
1103
- // its first strong character, so Latin punctuation is not displaced in RTL.
1104
- unicodeBidi: "plaintext",
1105
- fontWeight: 700,
1106
- lineHeight: "133%",
1107
- letterSpacing: "0px",
1108
- textAlign: "left",
1109
- fontSize: "1.5em",
1110
- color: e.darkTextColor,
1111
- fontFamily: e.fontFamilyPrimary
1112
- },
1113
- // Description typography
1114
- descriptionText: {
1115
- // CMS text of unknown language: let each block pick its own direction from
1116
- // its first strong character, so Latin punctuation is not displaced in RTL.
1117
- unicodeBidi: "plaintext",
1118
- fontWeight: 400,
1119
- lineHeight: "140%",
1120
- letterSpacing: "0.15px",
1121
- fontSize: "1.25em",
1122
- textAlign: "left",
1123
- color: e.secondaryColor,
1124
- opacity: "70%",
1125
- fontFamily: e.fontFamilyPrimary
1126
- },
1127
- // Main content section
1128
- mainContentSection: {
1129
- display: "flex",
1130
- flexDirection: "column",
1131
- gap: "24px"
1132
- }
1133
- };
1134
- }, Qe = ({
1135
- entity: e,
1136
- headline: n,
1137
- finalImage: d,
1138
- children: l,
1139
- rulesDisplay: b
1140
- }) => {
1141
- var k, R;
1142
- const r = oe(), y = G(), g = te(
1143
- ne.OVERLAY
1144
- ), c = ((k = e.branding) == null ? void 0 : k.colors) || null, x = (c == null ? void 0 : c.contentColor) || r.colorSchemes.dark.textColor, v = r.customFontFamily.dark.primary, f = r.customFontFamily.dark.secondary, S = r.customRadius.dark.md, p = (R = r.border) == null ? void 0 : R.dark.size, C = r.colorSchemes.dark.textColor, h = pe(d), m = Be({
1145
- spacingScale: y,
1146
- brandingColors: c,
1147
- secondaryColor: x,
1148
- fontFamilyPrimary: v,
1149
- fontFamilySecondary: f,
1150
- mdBorderRadius: S,
1151
- borderSize: p,
1152
- backgroundImage: h,
1153
- darkTextColor: C,
1154
- imageBackgroundGradient: g
1155
- });
1156
- return /* @__PURE__ */ s(i, { sx: m.mainContainer, children: [
1157
- /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(i, { sx: m.headlineSection, children: /* @__PURE__ */ o(i, { sx: m.headlineContent, children: /* @__PURE__ */ s(i, { sx: m.headlineContentInner, children: [
1158
- /* @__PURE__ */ s(
1159
- i,
1160
- {
1161
- sx: {
1162
- display: "flex",
1163
- alignItems: "center",
1164
- gap: y["3xs"]
1165
- },
1166
- children: [
1167
- /* @__PURE__ */ o(u, { level: "body-sm", sx: m.headlineText, children: n }),
1168
- /* @__PURE__ */ o(
1169
- P,
1170
- {
1171
- rulesDisplay: b,
1172
- isOverlayVariant: !0,
1173
- rules: e.rules || ""
1174
- }
1175
- )
1176
- ]
1177
- }
1178
- ),
1179
- /* @__PURE__ */ s(i, { sx: m.contentContainer, children: [
1180
- /* @__PURE__ */ o(u, { level: "h4", sx: m.titleText, children: e.title }),
1181
- e.description && /* @__PURE__ */ o(u, { level: "body-lg", sx: m.descriptionText, children: F(e.description) })
1182
- ] })
1183
- ] }) }) }) }),
1184
- /* @__PURE__ */ o(i, { sx: m.mainContentSection, children: l })
1185
- ] });
1186
- };
1187
- export {
1188
- U as A,
1189
- ae as D,
1190
- Qe as O,
1191
- P as R,
1192
- Ke as S
1193
- };