@telefonica/mistica 15.9.0 → 15.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +35 -2
  3. package/dist/boxed.css.d.ts +29 -0
  4. package/dist/boxed.d.ts +6 -4
  5. package/dist/boxed.js +30 -24
  6. package/dist/button-group.css-mistica.js +14 -5
  7. package/dist/button-group.css.d.ts +3 -0
  8. package/dist/button-group.d.ts +2 -1
  9. package/dist/button-group.js +29 -16
  10. package/dist/button-layout.css-mistica.js +7 -7
  11. package/dist/button-layout.css.d.ts +1 -1
  12. package/dist/button-layout.js +9 -9
  13. package/dist/button.d.ts +4 -24
  14. package/dist/button.js +6 -4
  15. package/dist/card.d.ts +8 -1
  16. package/dist/card.js +567 -501
  17. package/dist/carousel.css-mistica.js +19 -16
  18. package/dist/carousel.css.d.ts +1 -0
  19. package/dist/carousel.js +41 -39
  20. package/dist/chip.js +37 -44
  21. package/dist/circle.d.ts +11 -4
  22. package/dist/circle.js +10 -11
  23. package/dist/community/advanced-data-card.css-mistica.js +24 -21
  24. package/dist/community/advanced-data-card.css.d.ts +1 -0
  25. package/dist/community/advanced-data-card.d.ts +1 -0
  26. package/dist/community/advanced-data-card.js +20 -17
  27. package/dist/counter.js +26 -22
  28. package/dist/cover-hero-media.d.ts +12 -0
  29. package/dist/cover-hero-media.js +44 -0
  30. package/dist/cover-hero.css-mistica.js +56 -0
  31. package/dist/cover-hero.css.d.ts +14 -0
  32. package/dist/cover-hero.css.ts.vanilla.css-mistica.js +11 -0
  33. package/dist/cover-hero.d.ts +38 -0
  34. package/dist/cover-hero.js +296 -0
  35. package/dist/empty-state.js +6 -6
  36. package/dist/grid-layout.css-mistica.js +11 -8
  37. package/dist/grid-layout.css.d.ts +1 -0
  38. package/dist/grid-layout.d.ts +12 -22
  39. package/dist/grid-layout.js +63 -49
  40. package/dist/header.js +18 -18
  41. package/dist/highlighted-card.d.ts +1 -0
  42. package/dist/highlighted-card.js +22 -18
  43. package/dist/icon-button.d.ts +7 -6
  44. package/dist/image.js +69 -48
  45. package/dist/index.d.ts +4 -1
  46. package/dist/index.js +15 -0
  47. package/dist/list.d.ts +1 -0
  48. package/dist/navigation-bar.d.ts +1 -1
  49. package/dist/navigation-bar.js +1 -1
  50. package/dist/package-version.js +1 -1
  51. package/dist/select.js +16 -12
  52. package/dist/skins/movistar.d.ts +13 -0
  53. package/dist/skins/movistar.js +112 -99
  54. package/dist/spinner.js +19 -18
  55. package/dist/table.css-mistica.js +58 -0
  56. package/dist/table.css.d.ts +13 -0
  57. package/dist/table.css.ts.vanilla.css-mistica.js +11 -0
  58. package/dist/table.d.ts +39 -0
  59. package/dist/table.js +269 -0
  60. package/dist/text.d.ts +1 -1
  61. package/dist/theme.d.ts +20 -0
  62. package/dist/theme.js +80 -20
  63. package/dist/timer.css-mistica.js +39 -0
  64. package/dist/timer.css.d.ts +8 -0
  65. package/dist/timer.css.ts.vanilla.css-mistica.js +11 -0
  66. package/dist/timer.d.ts +27 -0
  67. package/dist/timer.js +370 -0
  68. package/dist/tooltip.js +13 -13
  69. package/dist/touchable.d.ts +2 -0
  70. package/dist/touchable.js +35 -31
  71. package/dist/utils/helpers.js +32 -32
  72. package/dist-es/boxed.css-mistica.js +29 -2
  73. package/dist-es/boxed.js +37 -31
  74. package/dist-es/button-group.css-mistica.js +2 -2
  75. package/dist-es/button-group.js +37 -24
  76. package/dist-es/button-layout.css-mistica.js +2 -2
  77. package/dist-es/button-layout.js +16 -16
  78. package/dist-es/button.js +24 -22
  79. package/dist-es/card.js +681 -618
  80. package/dist-es/carousel.css-mistica.js +7 -7
  81. package/dist-es/carousel.js +75 -73
  82. package/dist-es/chip.js +57 -64
  83. package/dist-es/circle.js +15 -16
  84. package/dist-es/community/advanced-data-card.css-mistica.js +4 -4
  85. package/dist-es/community/advanced-data-card.js +59 -56
  86. package/dist-es/counter.js +62 -58
  87. package/dist-es/cover-hero-media.js +30 -0
  88. package/dist-es/cover-hero.css-mistica.js +9 -0
  89. package/dist-es/cover-hero.css.ts.vanilla.css-mistica.js +2 -0
  90. package/dist-es/cover-hero.js +241 -0
  91. package/dist-es/empty-state.js +13 -13
  92. package/dist-es/grid-layout.css-mistica.js +3 -3
  93. package/dist-es/grid-layout.js +80 -66
  94. package/dist-es/header.js +37 -37
  95. package/dist-es/highlighted-card.js +35 -31
  96. package/dist-es/image.js +88 -67
  97. package/dist-es/index.js +1817 -1814
  98. package/dist-es/navigation-bar.js +1 -1
  99. package/dist-es/package-version.js +1 -1
  100. package/dist-es/select.js +23 -18
  101. package/dist-es/skins/movistar.js +112 -99
  102. package/dist-es/spinner.js +38 -37
  103. package/dist-es/style.css +1 -1
  104. package/dist-es/table.css-mistica.js +14 -0
  105. package/dist-es/table.css.ts.vanilla.css-mistica.js +2 -0
  106. package/dist-es/table.js +214 -0
  107. package/dist-es/theme.js +77 -17
  108. package/dist-es/timer.css-mistica.js +4 -0
  109. package/dist-es/timer.css.ts.vanilla.css-mistica.js +2 -0
  110. package/dist-es/timer.js +307 -0
  111. package/dist-es/tooltip.js +16 -16
  112. package/dist-es/touchable.js +47 -43
  113. package/dist-es/utils/helpers.js +31 -31
  114. package/package.json +1 -1
package/dist-es/card.js CHANGED
@@ -78,120 +78,120 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as e, jsxs as i, Fragment as Pe } from "react/jsx-runtime";
81
+ import { jsx as e, jsxs as l, Fragment as Xe } from "react/jsx-runtime";
82
82
  import * as b from "react";
83
- import Ve from "./tag.js";
84
- import R from "./stack.js";
85
- import w from "./box.js";
86
- import { Text as re, Text2 as I, Text6 as Ee, Text3 as Le } from "./text.js";
87
- import { Boxed as ne, InternalBoxed as ue } from "./boxed.js";
88
- import te from "./button-group.js";
89
- import de from "./image.js";
90
- import { BaseTouchable as E } from "./touchable.js";
83
+ import Fe from "./tag.js";
84
+ import ie from "./stack.js";
85
+ import L from "./box.js";
86
+ import { Text as te, Text2 as M, Text6 as We, Text3 as _e } from "./text.js";
87
+ import { Boxed as ce, InternalBoxed as ye } from "./boxed.js";
88
+ import me from "./button-group.js";
89
+ import he from "./image.js";
90
+ import { BaseTouchable as W } from "./touchable.js";
91
91
  import { vars as h } from "./skins/skin-contract.css-mistica.js";
92
- import { cardContainer as Ge, touchableContainer as L, boxed as K, touchable as G, touchableMediaCardOverlay as je, mediaCard as oe, mediaCardContent as Xe, mediaCardIcon as pe, touchableNakedMediaOverlay as ve, circularMediaOverlay as fe, nakedCardContent as ge, touchableCardOverlay as ae, dataCard as Fe, vars as ye, dataCardTopActionsWithoutIcon as We, actions as be, snapCard as _e, displayCardContainer as Ce, displayCardBackground as Ne, displayCardContent as xe, displayCardGradient as Te, flexColumn as $e, touchableCardOverlayInverse as se, touchableCardOverlayMedia as ke } from "./card.css-mistica.js";
93
- import { vars as V } from "./image.css-mistica.js";
94
- import { useTheme as W } from "./hooks.js";
95
- import { sprinkles as qe } from "./sprinkles.css-mistica.js";
96
- import { InternalIconButton as Je, InternalToggleIconButton as Ke } from "./icon-button.js";
97
- import Qe from "./generated/mistica-icons/icon-close-regular.js";
98
- import Ue from "./generated/mistica-icons/icon-pause-filled.js";
99
- import Ye from "./generated/mistica-icons/icon-play-filled.js";
100
- import { combineRefs as Ze } from "./utils/common.js";
101
- import er from "./spinner.js";
102
- import rr from "./video.js";
103
- import { ThemeVariant as le, useIsInverseVariant as Se } from "./theme-variant-context.js";
104
- import ce from "classnames";
105
- import Be from "./inline.js";
106
- import { getPrefixedDataAttributes as ar } from "./utils/dom.js";
107
- import { isRunningAcceptanceTest as ir } from "./utils/platform.js";
108
- import { applyCssVars as D } from "./utils/css.js";
109
- const nr = ()=>{
110
- const [r, a] = b.useState(""), n = b.useCallback((d)=>{
111
- d && a((process.env.NODE_ENV === "test" ? d.textContent : d.innerText) || "");
92
+ import { cardContainer as $e, touchableContainer as _, boxed as K, touchable as $, touchableMediaCardOverlay as qe, mediaCard as ue, mediaCardContent as Je, mediaCardIcon as xe, touchableNakedMediaOverlay as be, circularMediaOverlay as Ce, nakedCardContent as Te, touchableCardOverlay as ne, dataCard as Ke, vars as Ne, dataCardTopActionsWithoutIcon as Qe, actions as Be, snapCard as Ue, displayCardContainer as ke, displayCardBackground as Re, displayCardContent as Se, displayCardGradient as Ie, flexColumn as we, touchableCardOverlayInverse as pe, touchableCardOverlayMedia as Ae } from "./card.css-mistica.js";
93
+ import { vars as F } from "./image.css-mistica.js";
94
+ import { useTheme as J } from "./hooks.js";
95
+ import { sprinkles as Ye } from "./sprinkles.css-mistica.js";
96
+ import { InternalIconButton as Ze, InternalToggleIconButton as ea } from "./icon-button.js";
97
+ import aa from "./generated/mistica-icons/icon-close-regular.js";
98
+ import ra from "./generated/mistica-icons/icon-pause-filled.js";
99
+ import ia from "./generated/mistica-icons/icon-play-filled.js";
100
+ import { combineRefs as ta } from "./utils/common.js";
101
+ import na from "./spinner.js";
102
+ import oa from "./video.js";
103
+ import { ThemeVariant as fe, useIsInverseVariant as ze } from "./theme-variant-context.js";
104
+ import ve from "classnames";
105
+ import Me from "./inline.js";
106
+ import { getPrefixedDataAttributes as da } from "./utils/dom.js";
107
+ import { isRunningAcceptanceTest as sa } from "./utils/platform.js";
108
+ import { applyCssVars as P } from "./utils/css.js";
109
+ const w = ()=>{
110
+ const [a, r] = b.useState(""), i = b.useCallback((t)=>{
111
+ t && r((process.env.NODE_ENV === "test" ? t.textContent : t.innerText) || "");
112
112
  }, []);
113
113
  return {
114
- text: r,
115
- ref: n
114
+ text: a,
115
+ ref: i
116
116
  };
117
- }, Ie = (r, a)=>{
118
- const { texts: n } = W(), d = r ? [
119
- ...r
117
+ }, De = (a, r)=>{
118
+ const { texts: i } = J(), t = a ? [
119
+ ...a
120
120
  ] : [];
121
- return a && d.push({
122
- label: n.closeButtonLabel,
123
- onPress: a,
124
- Icon: Qe
125
- }), d;
126
- }, Re = /*#__PURE__*/ b.createContext("default"), tr = (r)=>{
127
- const a = b.useContext(Re);
128
- return /* @__PURE__ */ e(le, {
129
- isInverse: a === "inverse",
130
- children: r.Icon ? /* @__PURE__ */ e(Je, _object_spread_props(_object_spread({}, r), {
131
- "aria-label": r.label,
121
+ return r && t.push({
122
+ label: i.closeButtonLabel,
123
+ onPress: r,
124
+ Icon: aa
125
+ }), t;
126
+ }, He = /*#__PURE__*/ b.createContext("default"), la = (a)=>{
127
+ const r = b.useContext(He);
128
+ return /* @__PURE__ */ e(fe, {
129
+ isInverse: r === "inverse",
130
+ children: a.Icon ? /* @__PURE__ */ e(Ze, _object_spread_props(_object_spread({}, a), {
131
+ "aria-label": a.label,
132
132
  small: !0,
133
- isOverMedia: a === "media",
133
+ isOverMedia: r === "media",
134
134
  type: "neutral",
135
135
  backgroundType: "transparent"
136
- })) : /* @__PURE__ */ e(Ke, _object_spread_props(_object_spread({}, r), {
137
- checkedProps: _object_spread_props(_object_spread({}, r.checkedProps), {
138
- "aria-label": r.checkedProps.label,
139
- type: a === "media" ? "neutral" : "brand",
136
+ })) : /* @__PURE__ */ e(ea, _object_spread_props(_object_spread({}, a), {
137
+ checkedProps: _object_spread_props(_object_spread({}, a.checkedProps), {
138
+ "aria-label": a.checkedProps.label,
139
+ type: r === "media" ? "neutral" : "brand",
140
140
  backgroundType: "solid"
141
141
  }),
142
- uncheckedProps: _object_spread_props(_object_spread({}, r.uncheckedProps), {
143
- "aria-label": r.uncheckedProps.label,
142
+ uncheckedProps: _object_spread_props(_object_spread({}, a.uncheckedProps), {
143
+ "aria-label": a.uncheckedProps.label,
144
144
  type: "neutral",
145
145
  backgroundType: "transparent"
146
146
  }),
147
147
  small: !0,
148
- isOverMedia: a === "media"
148
+ isOverMedia: r === "media"
149
149
  }))
150
150
  });
151
151
  }, Q = (param)=>{
152
- let { actions: r, padding: a = 16, onClose: n, type: d = "default" } = param;
153
- const l = Ie(r, n);
154
- return l.length > 0 ? /* @__PURE__ */ e(Re.Provider, {
155
- value: d,
152
+ let { actions: a, padding: r = 16, onClose: i, type: t = "default" } = param;
153
+ const o = De(a, i);
154
+ return o.length > 0 ? /* @__PURE__ */ e(He.Provider, {
155
+ value: t,
156
156
  children: /* @__PURE__ */ e("div", {
157
157
  style: {
158
158
  position: "absolute",
159
- right: a,
160
- top: a,
159
+ right: r,
160
+ top: r,
161
161
  zIndex: 3
162
162
  },
163
- children: /* @__PURE__ */ e(Be, {
163
+ children: /* @__PURE__ */ e(Me, {
164
164
  space: 16,
165
- children: l.map((t, m)=>"Icon" in t || "checkedProps" in t ? /* @__PURE__ */ e(tr, _object_spread({}, t), m) : t)
165
+ children: o.map((n, s)=>"Icon" in n || "checkedProps" in n ? /* @__PURE__ */ e(la, _object_spread({}, n), s) : n)
166
166
  })
167
167
  })
168
- }) : /* @__PURE__ */ e(Pe, {});
169
- }, dr = (r)=>r ? typeof r == "number" ? r : ({
168
+ }) : /* @__PURE__ */ e(Xe, {});
169
+ }, ca = (a)=>a ? typeof a == "number" ? a : ({
170
170
  "1:1": 1,
171
171
  "16:9": 16 / 9,
172
172
  "7:10": 7 / 10,
173
173
  "9:10": 9 / 10,
174
174
  auto: 0
175
- })[r] : 0, j = /*#__PURE__*/ b.forwardRef((param, m)=>{
176
- let { children: r, width: a, height: n, aspectRatio: d, dataAttributes: l, className: o, "aria-label": t } = param;
177
- const u = a && n ? void 0 : dr(d);
178
- return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, ar(l)), {
179
- ref: m,
180
- "aria-label": t,
181
- className: ce(o, Ge),
175
+ })[a] : 0, q = /*#__PURE__*/ b.forwardRef((param, s)=>{
176
+ let { children: a, width: r, height: i, aspectRatio: t, dataAttributes: o, className: d, "aria-label": n } = param;
177
+ const v = r && i ? void 0 : ca(t);
178
+ return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, da(o)), {
179
+ ref: s,
180
+ "aria-label": n,
181
+ className: ve(d, $e),
182
182
  style: _object_spread({
183
- width: a || "100%",
184
- height: n || "100%"
185
- }, u ? D({
186
- [ye.aspectRatio]: String(u)
183
+ width: r || "100%",
184
+ height: i || "100%"
185
+ }, v ? P({
186
+ [Ne.aspectRatio]: String(v)
187
187
  }) : {}),
188
- children: r
188
+ children: a
189
189
  }));
190
- }), we = (r)=>/* @__PURE__ */ e(de, {
190
+ }), Oe = (a)=>/* @__PURE__ */ e(he, {
191
191
  width: "100%",
192
192
  height: "100%",
193
- src: r || ""
194
- }), or = {
193
+ src: a || ""
194
+ }), ma = {
195
195
  loading: {
196
196
  showSpinner: "loadingTimeout",
197
197
  play: "playing",
@@ -217,156 +217,172 @@ const nr = ()=>{
217
217
  error: {
218
218
  reset: "loading"
219
219
  }
220
- }, sr = (r, a)=>or[r][a] || r, lr = (param)=>{
221
- let { color: r } = param;
222
- return /* @__PURE__ */ e(er, {
223
- color: r,
220
+ }, ha = (a, r)=>ma[a][r] || a, ua = (param)=>{
221
+ let { color: a } = param;
222
+ return /* @__PURE__ */ e(na, {
223
+ color: a,
224
224
  size: 16,
225
225
  delay: "0"
226
226
  });
227
- }, cr = (param)=>{
228
- let { color: r } = param;
229
- return /* @__PURE__ */ e(Ue, {
230
- color: r,
227
+ }, pa = (param)=>{
228
+ let { color: a } = param;
229
+ return /* @__PURE__ */ e(ra, {
230
+ color: a,
231
231
  size: 12
232
232
  });
233
- }, mr = (param)=>{
234
- let { color: r } = param;
235
- return /* @__PURE__ */ e(Ye, {
236
- color: r,
233
+ }, fa = (param)=>{
234
+ let { color: a } = param;
235
+ return /* @__PURE__ */ e(ia, {
236
+ color: a,
237
237
  size: 12
238
238
  });
239
- }, Ae = (r, a, n)=>{
240
- const { texts: d } = W(), l = b.useRef(null), [o, t] = b.useReducer(sr, "loading");
239
+ }, Le = (a, r, i)=>{
240
+ const { texts: t } = J(), o = b.useRef(null), [d, n] = b.useReducer(ha, "loading");
241
241
  b.useEffect(()=>{
242
- var c;
243
- const s = setTimeout(()=>t("showSpinner"), 2e3);
244
- return (c = l.current) == null || c.load(), ()=>{
245
- clearTimeout(s), t("reset");
242
+ var m;
243
+ const c = setTimeout(()=>n("showSpinner"), 2e3);
244
+ return (m = o.current) == null || m.load(), ()=>{
245
+ clearTimeout(c), n("reset");
246
246
  };
247
247
  }, [
248
- r
248
+ a
249
249
  ]);
250
- const m = b.useMemo(()=>r !== void 0 ? /* @__PURE__ */ e(rr, {
251
- ref: Ze(l, n),
252
- src: r,
250
+ const s = b.useMemo(()=>a !== void 0 ? /* @__PURE__ */ e(oa, {
251
+ ref: ta(o, i),
252
+ src: a,
253
253
  width: "100%",
254
254
  height: "100%",
255
- poster: a,
256
- onError: ()=>t("fail"),
257
- onPause: ()=>t("pause"),
258
- onPlay: ()=>t("play")
255
+ poster: r,
256
+ onError: ()=>n("fail"),
257
+ onPause: ()=>n("pause"),
258
+ onPlay: ()=>n("play")
259
259
  }) : void 0, [
260
- n,
261
- r,
262
- a
263
- ]), u = ()=>{
264
- const s = l.current;
265
- s && (o === "loading" ? t("showSpinner") : o === "paused" ? s.play() : o === "playing" && s.pause());
260
+ i,
261
+ a,
262
+ r
263
+ ]), v = ()=>{
264
+ const c = o.current;
265
+ c && (d === "loading" ? n("showSpinner") : d === "paused" ? c.play() : d === "playing" && c.pause());
266
266
  };
267
- if (o === "error") return {
268
- video: m
267
+ if (d === "error") return {
268
+ video: s
269
269
  };
270
- const g = {
270
+ const u = s ? {
271
271
  uncheckedProps: {
272
- Icon: o === "loadingTimeout" && !ir() ? lr : cr,
273
- label: o === "loadingTimeout" ? "" : d.pauseIconButtonLabel
272
+ Icon: d === "loadingTimeout" && !sa() ? ua : pa,
273
+ label: d === "loadingTimeout" ? "" : t.pauseIconButtonLabel
274
274
  },
275
275
  checkedProps: {
276
- Icon: mr,
277
- label: d.playIconButtonLabel
276
+ Icon: fa,
277
+ label: t.playIconButtonLabel
278
278
  },
279
- onChange: u,
280
- disabled: o === "loadingTimeout",
281
- checked: o === "paused"
282
- };
279
+ onChange: v,
280
+ disabled: d === "loadingTimeout",
281
+ checked: d === "paused"
282
+ } : void 0;
283
283
  return {
284
- video: m,
285
- videoAction: g
284
+ video: s,
285
+ videoAction: u
286
286
  };
287
- }, me = (param)=>{
288
- let { headline: r, pretitle: a, pretitleLinesMax: n, title: d, titleAs: l = "h3", titleLinesMax: o, subtitle: t, subtitleLinesMax: m, description: u, descriptionLinesMax: g, extra: s, button: c, buttonLink: v } = param;
289
- const { textPresets: f } = W(), y = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(Ve, {
290
- type: "promo",
291
- children: r
292
- }) : r : null;
293
- return /* @__PURE__ */ i("div", {
294
- className: qe({
287
+ }, ge = (param)=>{
288
+ let { headline: a, headlineRef: r, pretitle: i, pretitleLinesMax: t, title: o, titleAs: d = "h3", titleLinesMax: n, subtitle: s, subtitleLinesMax: v, description: u, descriptionLinesMax: c, extra: m, extraRef: g, button: p, buttonLink: y } = param;
289
+ const { textPresets: N } = J();
290
+ return /* @__PURE__ */ l("div", {
291
+ className: Ye({
295
292
  display: "flex",
296
293
  flex: 1,
297
294
  justifyContent: "space-between",
298
295
  flexDirection: "column"
299
296
  }),
300
297
  children: [
301
- /* @__PURE__ */ i("div", {
298
+ /* @__PURE__ */ l("div", {
299
+ className: we,
302
300
  children: [
303
- /* @__PURE__ */ i(R, {
304
- space: 8,
305
- children: [
306
- (r || a || d || t) && /* @__PURE__ */ e("header", {
307
- children: /* @__PURE__ */ i(R, {
308
- space: 8,
309
- children: [
310
- y(),
311
- /* @__PURE__ */ i(R, {
312
- space: 4,
313
- children: [
314
- a && /* @__PURE__ */ e(I, {
315
- truncate: n,
316
- as: "div",
317
- regular: !0,
318
- hyphens: "auto",
319
- children: a
320
- }),
321
- /* @__PURE__ */ e(re, {
322
- mobileSize: 18,
323
- mobileLineHeight: "24px",
324
- desktopSize: 20,
325
- desktopLineHeight: "28px",
326
- truncate: o,
327
- weight: f.cardTitle.weight,
328
- as: l,
329
- hyphens: "auto",
330
- children: d
331
- }),
332
- /* @__PURE__ */ e(I, {
333
- truncate: m,
334
- as: "div",
335
- regular: !0,
336
- hyphens: "auto",
337
- children: t
338
- })
339
- ]
340
- })
341
- ]
342
- })
343
- }),
344
- u && /* @__PURE__ */ e(I, {
345
- truncate: g,
346
- as: "p",
347
- regular: !0,
348
- color: h.colors.textSecondary,
349
- hyphens: "auto",
350
- children: u
351
- })
352
- ]
301
+ o && /* @__PURE__ */ e("div", {
302
+ style: {
303
+ paddingBottom: 4
304
+ },
305
+ children: /* @__PURE__ */ e(te, {
306
+ mobileSize: 18,
307
+ mobileLineHeight: "24px",
308
+ desktopSize: 20,
309
+ desktopLineHeight: "28px",
310
+ truncate: n,
311
+ weight: N.cardTitle.weight,
312
+ as: d,
313
+ hyphens: "auto",
314
+ children: o
315
+ })
316
+ }),
317
+ a && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
318
+ /* @__PURE__ */ e("div", {
319
+ ref: r,
320
+ style: {
321
+ order: -2,
322
+ paddingBottom: 8
323
+ },
324
+ children: typeof a == "string" ? /* @__PURE__ */ e(Fe, {
325
+ type: "promo",
326
+ children: a
327
+ }) : a
328
+ }),
329
+ i && /* @__PURE__ */ e("div", {
330
+ style: {
331
+ order: -1,
332
+ paddingBottom: 4
333
+ },
334
+ children: /* @__PURE__ */ e(M, {
335
+ truncate: t,
336
+ as: "div",
337
+ regular: !0,
338
+ hyphens: "auto",
339
+ children: i
340
+ })
353
341
  }),
354
342
  s && /* @__PURE__ */ e("div", {
355
- children: s
343
+ style: {
344
+ paddingBottom: 4
345
+ },
346
+ children: /* @__PURE__ */ e(M, {
347
+ truncate: v,
348
+ as: "div",
349
+ regular: !0,
350
+ hyphens: "auto",
351
+ children: s
352
+ })
353
+ }),
354
+ u && // this is tricky, when headline exists, the 8px padding is added by it.
355
+ // Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
356
+ /* @__PURE__ */ e("div", {
357
+ style: {
358
+ paddingTop: i || o || s ? 4 : 0
359
+ },
360
+ children: /* @__PURE__ */ e(M, {
361
+ truncate: c,
362
+ as: "p",
363
+ regular: !0,
364
+ color: h.colors.textSecondary,
365
+ hyphens: "auto",
366
+ children: u
367
+ })
368
+ }),
369
+ m && /* @__PURE__ */ e("div", {
370
+ ref: g,
371
+ children: m
356
372
  })
357
373
  ]
358
374
  }),
359
- (c || v) && /* @__PURE__ */ e("div", {
360
- className: be,
361
- children: /* @__PURE__ */ e(te, {
362
- primaryButton: c,
363
- link: v
375
+ (p || y) && /* @__PURE__ */ e("div", {
376
+ className: Be,
377
+ children: /* @__PURE__ */ e(me, {
378
+ primaryButton: p,
379
+ link: y
364
380
  })
365
381
  })
366
382
  ]
367
383
  });
368
- }, Lr = /*#__PURE__*/ b.forwardRef((_param, A)=>{
369
- var { media: r, icon: a, headline: n, pretitle: d, pretitleLinesMax: l, subtitle: o, subtitleLinesMax: t, title: m, titleAs: u = "h3", titleLinesMax: g, description: s, descriptionLinesMax: c, extra: v, actions: f, button: y, buttonLink: T, dataAttributes: C, "aria-label": x, onClose: k } = _param, p = _object_without_properties(_param, [
384
+ }, Fa = /*#__PURE__*/ b.forwardRef((_param, A)=>{
385
+ var { media: a, icon: r, headline: i, pretitle: t, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: n, title: s, titleAs: v = "h3", titleLinesMax: u, description: c, descriptionLinesMax: m, extra: g, actions: p, button: y, buttonLink: N, dataAttributes: x, "aria-label": C, onClose: T } = _param, f = _object_without_properties(_param, [
370
386
  "media",
371
387
  "icon",
372
388
  "headline",
@@ -387,57 +403,66 @@ const nr = ()=>{
387
403
  "aria-label",
388
404
  "onClose"
389
405
  ]);
390
- const S = p.href || p.to || p.onPress;
391
- return /* @__PURE__ */ i(j, {
406
+ const B = !!(f.href || f.to || f.onPress), { text: z, ref: j } = w(), { text: D, ref: S } = w(), H = C || [
407
+ s,
408
+ z,
409
+ t,
410
+ d,
411
+ c,
412
+ D
413
+ ].filter(Boolean).join(" ");
414
+ return /* @__PURE__ */ l(q, {
392
415
  dataAttributes: _object_spread({
393
416
  "component-name": "MediaCard"
394
- }, C),
417
+ }, x),
395
418
  ref: A,
396
- "aria-label": x,
397
- className: L,
419
+ "aria-label": B ? void 0 : C,
420
+ className: _,
398
421
  children: [
399
- /* @__PURE__ */ e(ne, {
422
+ /* @__PURE__ */ e(ce, {
400
423
  className: K,
401
424
  width: "100%",
402
425
  height: "100%",
403
- children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
426
+ children: /* @__PURE__ */ l(W, _object_spread_props(_object_spread({
404
427
  maybe: !0
405
- }, p), {
406
- className: G,
407
- "aria-label": x,
428
+ }, f), {
429
+ className: $,
430
+ "aria-label": B ? H : void 0,
408
431
  children: [
409
- S && /* @__PURE__ */ e("div", {
410
- className: je
432
+ B && /* @__PURE__ */ e("div", {
433
+ className: qe
411
434
  }),
412
- /* @__PURE__ */ i("div", {
413
- className: oe,
435
+ /* @__PURE__ */ l("div", {
436
+ className: ue,
414
437
  children: [
415
438
  /* @__PURE__ */ e("div", {
416
- style: D({
417
- [V.mediaBorderRadius]: "0px"
439
+ style: P({
440
+ [F.mediaBorderRadius]: "0px"
418
441
  }),
419
- children: r
442
+ children: a
420
443
  }),
421
444
  /* @__PURE__ */ e("div", {
422
- className: Xe,
423
- children: /* @__PURE__ */ e(me, {
424
- headline: n,
425
- pretitle: d,
426
- pretitleLinesMax: l,
427
- title: m,
428
- titleAs: u,
429
- titleLinesMax: g,
430
- subtitle: o,
431
- subtitleLinesMax: t,
432
- description: s,
433
- descriptionLinesMax: c,
434
- extra: v,
445
+ className: Je,
446
+ children: /* @__PURE__ */ e(ge, {
447
+ headline: i,
448
+ headlineRef: j,
449
+ pretitle: t,
450
+ pretitleLinesMax: o,
451
+ title: s,
452
+ titleAs: v,
453
+ titleLinesMax: u,
454
+ subtitle: d,
455
+ subtitleLinesMax: n,
456
+ description: c,
457
+ descriptionLinesMax: m,
458
+ extra: g,
459
+ extraRef: S,
435
460
  button: y,
436
- buttonLink: T
461
+ buttonLink: N
437
462
  })
438
463
  }),
439
- a && /* @__PURE__ */ e(w, {
440
- className: pe,
464
+ r && /* @__PURE__ */ e(L, {
465
+ className: xe,
441
466
  paddingLeft: {
442
467
  mobile: 16,
443
468
  desktop: 24
@@ -447,10 +472,10 @@ const nr = ()=>{
447
472
  desktop: 24
448
473
  },
449
474
  children: /* @__PURE__ */ e("div", {
450
- style: D({
451
- [V.mediaBorderRadius]: h.borderRadii.mediaSmall
475
+ style: P({
476
+ [F.mediaBorderRadius]: h.borderRadii.mediaSmall
452
477
  }),
453
- children: a
478
+ children: r
454
479
  })
455
480
  })
456
481
  ]
@@ -459,14 +484,14 @@ const nr = ()=>{
459
484
  }))
460
485
  }),
461
486
  /* @__PURE__ */ e(Q, {
462
- onClose: k,
463
- actions: f,
487
+ onClose: T,
488
+ actions: p,
464
489
  type: "media"
465
490
  })
466
491
  ]
467
492
  });
468
- }), Gr = /*#__PURE__*/ b.forwardRef((_param, A)=>{
469
- var { media: r, icon: a, headline: n, pretitle: d, pretitleLinesMax: l, subtitle: o, subtitleLinesMax: t, title: m, titleAs: u = "h3", titleLinesMax: g, description: s, descriptionLinesMax: c, extra: v, actions: f, button: y, buttonLink: T, dataAttributes: C, "aria-label": x, onClose: k } = _param, p = _object_without_properties(_param, [
493
+ }), Wa = /*#__PURE__*/ b.forwardRef((_param, A)=>{
494
+ var { media: a, icon: r, headline: i, pretitle: t, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: n, title: s, titleAs: v = "h3", titleLinesMax: u, description: c, descriptionLinesMax: m, extra: g, actions: p, button: y, buttonLink: N, dataAttributes: x, "aria-label": C, onClose: T } = _param, f = _object_without_properties(_param, [
470
495
  "media",
471
496
  "icon",
472
497
  "headline",
@@ -487,56 +512,65 @@ const nr = ()=>{
487
512
  "aria-label",
488
513
  "onClose"
489
514
  ]);
490
- const S = p.href || p.to || p.onPress, H = r && r.type === de && r.props.circular;
491
- return /* @__PURE__ */ i(j, {
515
+ const B = !!(f.href || f.to || f.onPress), z = a && a.type === he && a.props.circular, { text: j, ref: D } = w(), { text: S, ref: H } = w(), k = C || [
516
+ s,
517
+ j,
518
+ t,
519
+ d,
520
+ c,
521
+ S
522
+ ].filter(Boolean).join(" ");
523
+ return /* @__PURE__ */ l(q, {
492
524
  ref: A,
493
525
  dataAttributes: _object_spread({
494
526
  "component-name": "NakedCard"
495
- }, C),
496
- "aria-label": x,
497
- className: S ? L : void 0,
527
+ }, x),
528
+ "aria-label": B ? void 0 : C,
529
+ className: B ? _ : void 0,
498
530
  children: [
499
- /* @__PURE__ */ e(E, _object_spread_props(_object_spread({
531
+ /* @__PURE__ */ e(W, _object_spread_props(_object_spread({
500
532
  maybe: !0
501
- }, p), {
502
- className: G,
503
- "aria-label": x,
504
- children: /* @__PURE__ */ i("div", {
505
- className: oe,
533
+ }, f), {
534
+ className: $,
535
+ "aria-label": B ? k : void 0,
536
+ children: /* @__PURE__ */ l("div", {
537
+ className: ue,
506
538
  children: [
507
- /* @__PURE__ */ i("div", {
539
+ /* @__PURE__ */ l("div", {
508
540
  style: {
509
541
  position: "relative"
510
542
  },
511
543
  children: [
512
- S && /* @__PURE__ */ e("div", {
513
- className: ce(ve, {
514
- [fe]: H
544
+ B && /* @__PURE__ */ e("div", {
545
+ className: ve(be, {
546
+ [Ce]: z
515
547
  })
516
548
  }),
517
- r
549
+ a
518
550
  ]
519
551
  }),
520
552
  /* @__PURE__ */ e("div", {
521
- className: ge,
522
- children: /* @__PURE__ */ e(me, {
523
- headline: n,
524
- pretitle: d,
525
- pretitleLinesMax: l,
526
- title: m,
527
- titleAs: u,
528
- titleLinesMax: g,
529
- subtitle: o,
530
- subtitleLinesMax: t,
531
- description: s,
532
- descriptionLinesMax: c,
533
- extra: v,
553
+ className: Te,
554
+ children: /* @__PURE__ */ e(ge, {
555
+ headline: i,
556
+ headlineRef: D,
557
+ pretitle: t,
558
+ pretitleLinesMax: o,
559
+ title: s,
560
+ titleAs: v,
561
+ titleLinesMax: u,
562
+ subtitle: d,
563
+ subtitleLinesMax: n,
564
+ description: c,
565
+ descriptionLinesMax: m,
566
+ extra: g,
567
+ extraRef: H,
534
568
  button: y,
535
- buttonLink: T
569
+ buttonLink: N
536
570
  })
537
571
  }),
538
- a && /* @__PURE__ */ e(w, {
539
- className: pe,
572
+ r && /* @__PURE__ */ e(L, {
573
+ className: xe,
540
574
  paddingLeft: {
541
575
  mobile: 16,
542
576
  desktop: 24
@@ -546,24 +580,24 @@ const nr = ()=>{
546
580
  desktop: 24
547
581
  },
548
582
  children: /* @__PURE__ */ e("div", {
549
- style: D({
550
- [V.mediaBorderRadius]: h.borderRadii.mediaSmall
583
+ style: P({
584
+ [F.mediaBorderRadius]: h.borderRadii.mediaSmall
551
585
  }),
552
- children: a
586
+ children: r
553
587
  })
554
588
  })
555
589
  ]
556
590
  })
557
591
  })),
558
592
  /* @__PURE__ */ e(Q, {
559
- onClose: k,
560
- actions: f,
593
+ onClose: T,
594
+ actions: p,
561
595
  type: "media"
562
596
  })
563
597
  ]
564
598
  });
565
- }), jr = /*#__PURE__*/ b.forwardRef((_param, v)=>{
566
- var { media: r, title: a, titleAs: n = "h3", titleLinesMax: d, subtitle: l, subtitleLinesMax: o, description: t, descriptionLinesMax: m, extra: u, dataAttributes: g, "aria-label": s } = _param, c = _object_without_properties(_param, [
599
+ }), _a = /*#__PURE__*/ b.forwardRef((_param, g)=>{
600
+ var { media: a, title: r, titleAs: i = "h3", titleLinesMax: t, subtitle: o, subtitleLinesMax: d, description: n, descriptionLinesMax: s, extra: v, dataAttributes: u, "aria-label": c } = _param, m = _object_without_properties(_param, [
567
601
  "media",
568
602
  "title",
569
603
  "titleAs",
@@ -576,73 +610,79 @@ const nr = ()=>{
576
610
  "dataAttributes",
577
611
  "aria-label"
578
612
  ]);
579
- const f = c.href || c.to || c.onPress, y = r && r.type === de && r.props.circular, { textPresets: T } = W();
580
- return /* @__PURE__ */ e(j, {
581
- ref: v,
613
+ const p = !!(m.href || m.to || m.onPress), y = a && a.type === he && a.props.circular, { textPresets: N } = J(), { text: x, ref: C } = w(), T = c || [
614
+ r,
615
+ o,
616
+ n,
617
+ x
618
+ ].filter(Boolean).join(" ");
619
+ return /* @__PURE__ */ e(q, {
620
+ ref: g,
582
621
  dataAttributes: _object_spread({
583
622
  "component-name": "SmallNakedCard"
584
- }, g),
585
- "aria-label": s,
586
- className: f ? L : void 0,
587
- children: /* @__PURE__ */ e(E, _object_spread_props(_object_spread({
623
+ }, u),
624
+ "aria-label": p ? void 0 : c,
625
+ className: p ? _ : void 0,
626
+ children: /* @__PURE__ */ e(W, _object_spread_props(_object_spread({
588
627
  maybe: !0
589
- }, c), {
590
- className: G,
591
- "aria-label": s,
592
- children: /* @__PURE__ */ i("div", {
593
- className: oe,
628
+ }, m), {
629
+ className: $,
630
+ "aria-label": p ? T : void 0,
631
+ children: /* @__PURE__ */ l("div", {
632
+ className: ue,
594
633
  children: [
595
- /* @__PURE__ */ i("div", {
634
+ /* @__PURE__ */ l("div", {
596
635
  style: {
597
636
  position: "relative"
598
637
  },
599
638
  children: [
600
- f && /* @__PURE__ */ e("div", {
601
- className: ce(ve, {
602
- [fe]: y
639
+ p && /* @__PURE__ */ e("div", {
640
+ className: ve(be, {
641
+ [Ce]: y
603
642
  })
604
643
  }),
605
- r
644
+ a
606
645
  ]
607
646
  }),
608
- /* @__PURE__ */ i("div", {
609
- className: ge,
647
+ /* @__PURE__ */ l("div", {
648
+ className: Te,
610
649
  children: [
611
650
  /* @__PURE__ */ e("div", {
612
- children: /* @__PURE__ */ i(R, {
651
+ children: /* @__PURE__ */ l(ie, {
613
652
  space: 4,
614
653
  children: [
615
- a && /* @__PURE__ */ e(re, {
654
+ r && /* @__PURE__ */ e(te, {
616
655
  desktopSize: 16,
617
656
  mobileSize: 14,
618
657
  mobileLineHeight: "20px",
619
658
  desktopLineHeight: "24px",
620
- truncate: d,
621
- weight: T.cardTitle.weight,
622
- as: n,
659
+ truncate: t,
660
+ weight: N.cardTitle.weight,
661
+ as: i,
623
662
  hyphens: "auto",
624
- children: a
663
+ children: r
625
664
  }),
626
- l && /* @__PURE__ */ e(I, {
627
- truncate: o,
665
+ o && /* @__PURE__ */ e(M, {
666
+ truncate: d,
628
667
  regular: !0,
629
668
  as: "p",
630
669
  hyphens: "auto",
631
- children: l
670
+ children: o
632
671
  }),
633
- t && /* @__PURE__ */ e(I, {
634
- truncate: m,
672
+ n && /* @__PURE__ */ e(M, {
673
+ truncate: s,
635
674
  regular: !0,
636
675
  as: "p",
637
676
  color: h.colors.textSecondary,
638
677
  hyphens: "auto",
639
- children: t
678
+ children: n
640
679
  })
641
680
  ]
642
681
  })
643
682
  }),
644
- u && /* @__PURE__ */ e("div", {
645
- children: u
683
+ v && /* @__PURE__ */ e("div", {
684
+ ref: C,
685
+ children: v
646
686
  })
647
687
  ]
648
688
  })
@@ -650,8 +690,8 @@ const nr = ()=>{
650
690
  })
651
691
  }))
652
692
  });
653
- }), Xr = /*#__PURE__*/ b.forwardRef((_param, A)=>{
654
- var { icon: r, headline: a, pretitle: n, pretitleLinesMax: d, title: l, titleAs: o = "h3", titleLinesMax: t, subtitle: m, subtitleLinesMax: u, description: g, descriptionLinesMax: s, extra: c, actions: v, button: f, buttonLink: y, dataAttributes: T, "aria-label": C, onClose: x, aspectRatio: k } = _param, p = _object_without_properties(_param, [
693
+ }), $a = /*#__PURE__*/ b.forwardRef((_param, A)=>{
694
+ var { icon: a, headline: r, pretitle: i, pretitleLinesMax: t, title: o, titleAs: d = "h3", titleLinesMax: n, subtitle: s, subtitleLinesMax: v, description: u, descriptionLinesMax: c, extra: m, actions: g, button: p, buttonLink: y, dataAttributes: N, "aria-label": x, onClose: C, aspectRatio: T } = _param, f = _object_without_properties(_param, [
655
695
  "icon",
656
696
  "headline",
657
697
  "pretitle",
@@ -672,73 +712,81 @@ const nr = ()=>{
672
712
  "onClose",
673
713
  "aspectRatio"
674
714
  ]);
675
- const S = !!r || !!a, H = p.href || p.to || p.onPress, _ = Ie(v, x);
676
- return /* @__PURE__ */ i(j, {
715
+ const B = !!a || !!r, z = !!(f.href || f.to || f.onPress), { text: j, ref: D } = w(), { text: S, ref: H } = w(), k = De(g, C), R = x || [
716
+ o,
717
+ j,
718
+ i,
719
+ u,
720
+ S
721
+ ].filter(Boolean).join(" ");
722
+ return /* @__PURE__ */ l(q, {
677
723
  dataAttributes: _object_spread({
678
724
  "component-name": "DataCard"
679
- }, T),
725
+ }, N),
680
726
  ref: A,
681
- "aria-label": C,
682
- className: L,
683
- aspectRatio: k,
727
+ "aria-label": z ? void 0 : x,
728
+ className: _,
729
+ aspectRatio: T,
684
730
  children: [
685
- /* @__PURE__ */ e(ne, {
731
+ /* @__PURE__ */ e(ce, {
686
732
  className: K,
687
733
  width: "100%",
688
734
  minHeight: "100%",
689
- children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
735
+ children: /* @__PURE__ */ l(W, _object_spread_props(_object_spread({
690
736
  maybe: !0
691
- }, p), {
692
- className: G,
693
- "aria-label": C,
737
+ }, f), {
738
+ className: $,
739
+ "aria-label": z ? R : void 0,
694
740
  children: [
695
- H && /* @__PURE__ */ e("div", {
696
- className: ae
741
+ z && /* @__PURE__ */ e("div", {
742
+ className: ne
697
743
  }),
698
- /* @__PURE__ */ i("div", {
699
- className: Fe,
744
+ /* @__PURE__ */ l("div", {
745
+ className: Ke,
700
746
  children: [
701
- /* @__PURE__ */ i(Be, {
747
+ /* @__PURE__ */ l(Me, {
702
748
  space: 0,
703
749
  children: [
704
- /* @__PURE__ */ i(R, {
750
+ /* @__PURE__ */ l(ie, {
705
751
  space: 16,
706
752
  children: [
707
- r && /* @__PURE__ */ e("div", {
708
- style: D({
709
- [V.mediaBorderRadius]: h.borderRadii.mediaSmall
753
+ a && /* @__PURE__ */ e("div", {
754
+ style: P({
755
+ [F.mediaBorderRadius]: h.borderRadii.mediaSmall
710
756
  }),
711
- children: r
757
+ children: a
712
758
  }),
713
- /* @__PURE__ */ e(me, {
714
- headline: a,
715
- pretitle: n,
716
- pretitleLinesMax: d,
717
- title: l,
718
- titleAs: o,
719
- titleLinesMax: t,
720
- subtitle: m,
721
- subtitleLinesMax: u,
722
- description: g,
723
- descriptionLinesMax: s
759
+ /* @__PURE__ */ e(ge, {
760
+ headline: r,
761
+ headlineRef: D,
762
+ pretitle: i,
763
+ pretitleLinesMax: t,
764
+ title: o,
765
+ titleAs: d,
766
+ titleLinesMax: n,
767
+ subtitle: s,
768
+ subtitleLinesMax: v,
769
+ description: u,
770
+ descriptionLinesMax: c
724
771
  })
725
772
  ]
726
773
  }),
727
- !S && /* @__PURE__ */ e("div", {
728
- style: D({
729
- [ye.topActionsCount]: String(_.length)
774
+ !B && /* @__PURE__ */ e("div", {
775
+ style: P({
776
+ [Ne.topActionsCount]: String(k.length)
730
777
  }),
731
- className: We
778
+ className: Qe
732
779
  })
733
780
  ]
734
781
  }),
735
- c && /* @__PURE__ */ e("div", {
736
- children: c
782
+ m && /* @__PURE__ */ e("div", {
783
+ ref: H,
784
+ children: m
737
785
  }),
738
- (f || y) && /* @__PURE__ */ e("div", {
739
- className: be,
740
- children: /* @__PURE__ */ e(te, {
741
- primaryButton: f,
786
+ (p || y) && /* @__PURE__ */ e("div", {
787
+ className: Be,
788
+ children: /* @__PURE__ */ e(me, {
789
+ primaryButton: p,
742
790
  link: y
743
791
  })
744
792
  })
@@ -748,14 +796,14 @@ const nr = ()=>{
748
796
  }))
749
797
  }),
750
798
  /* @__PURE__ */ e(Q, {
751
- onClose: x,
752
- actions: v,
799
+ onClose: C,
800
+ actions: g,
753
801
  type: "default"
754
802
  })
755
803
  ]
756
804
  });
757
- }), Fr = /*#__PURE__*/ b.forwardRef((_param, y)=>{
758
- var { icon: r, title: a, titleAs: n = "h3", titleLinesMax: d, subtitle: l, subtitleLinesMax: o, description: t, descriptionLinesMax: m, dataAttributes: u, "aria-label": g, extra: s, isInverse: c = !1, aspectRatio: v } = _param, f = _object_without_properties(_param, [
805
+ }), qa = /*#__PURE__*/ b.forwardRef((_param, y)=>{
806
+ var { icon: a, title: r, titleAs: i = "h3", titleLinesMax: t, subtitle: o, subtitleLinesMax: d, description: n, descriptionLinesMax: s, dataAttributes: v, "aria-label": u, extra: c, isInverse: m = !1, aspectRatio: g } = _param, p = _object_without_properties(_param, [
759
807
  "icon",
760
808
  "title",
761
809
  "titleAs",
@@ -770,78 +818,85 @@ const nr = ()=>{
770
818
  "isInverse",
771
819
  "aspectRatio"
772
820
  ]);
773
- const { textPresets: T } = W(), C = f.href || f.to || f.onPress, x = c ? se : ae;
774
- return /* @__PURE__ */ e(j, {
821
+ const { textPresets: N } = J(), x = !!(p.href || p.to || p.onPress), C = m ? pe : ne, { text: T, ref: f } = w(), A = u || [
822
+ r,
823
+ o,
824
+ n,
825
+ T
826
+ ].filter(Boolean).join(" ");
827
+ return /* @__PURE__ */ e(q, {
775
828
  dataAttributes: _object_spread({
776
829
  "component-name": "SnapCard"
777
- }, u),
830
+ }, v),
778
831
  ref: y,
779
- className: L,
780
- aspectRatio: v,
781
- children: /* @__PURE__ */ e(ne, {
832
+ className: _,
833
+ aspectRatio: g,
834
+ "aria-label": x ? void 0 : u,
835
+ children: /* @__PURE__ */ e(ce, {
782
836
  className: K,
783
- isInverse: c,
837
+ isInverse: m,
784
838
  width: "100%",
785
839
  minHeight: "100%",
786
- children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
840
+ children: /* @__PURE__ */ l(W, _object_spread_props(_object_spread({
787
841
  maybe: !0
788
- }, f), {
789
- className: G,
790
- "aria-label": g,
842
+ }, p), {
843
+ className: $,
844
+ "aria-label": x ? A : void 0,
791
845
  children: [
792
- C && /* @__PURE__ */ e("div", {
793
- className: x
846
+ x && /* @__PURE__ */ e("div", {
847
+ className: C
794
848
  }),
795
- /* @__PURE__ */ i("section", {
796
- className: _e,
849
+ /* @__PURE__ */ l("section", {
850
+ className: Ue,
797
851
  children: [
798
- /* @__PURE__ */ i("div", {
852
+ /* @__PURE__ */ l("div", {
799
853
  children: [
800
- r && /* @__PURE__ */ e("div", {
801
- style: D({
802
- [V.mediaBorderRadius]: h.borderRadii.mediaSmall
854
+ a && /* @__PURE__ */ e("div", {
855
+ style: P({
856
+ [F.mediaBorderRadius]: h.borderRadii.mediaSmall
803
857
  }),
804
- children: /* @__PURE__ */ e(w, {
858
+ children: /* @__PURE__ */ e(L, {
805
859
  paddingBottom: 16,
806
- children: r
860
+ children: a
807
861
  })
808
862
  }),
809
- /* @__PURE__ */ i(R, {
863
+ /* @__PURE__ */ l(ie, {
810
864
  space: 4,
811
865
  children: [
812
- a && /* @__PURE__ */ e(re, {
866
+ r && /* @__PURE__ */ e(te, {
813
867
  desktopSize: 16,
814
868
  mobileSize: 14,
815
869
  mobileLineHeight: "20px",
816
870
  desktopLineHeight: "24px",
817
- truncate: d,
818
- weight: T.cardTitle.weight,
819
- as: n,
871
+ truncate: t,
872
+ weight: N.cardTitle.weight,
873
+ as: i,
820
874
  hyphens: "auto",
821
- children: a
875
+ children: r
822
876
  }),
823
- l && /* @__PURE__ */ e(I, {
824
- truncate: o,
877
+ o && /* @__PURE__ */ e(M, {
878
+ truncate: d,
825
879
  regular: !0,
826
880
  color: h.colors.textPrimary,
827
881
  as: "p",
828
882
  hyphens: "auto",
829
- children: l
883
+ children: o
830
884
  }),
831
- t && /* @__PURE__ */ e(I, {
832
- truncate: m,
885
+ n && /* @__PURE__ */ e(M, {
886
+ truncate: s,
833
887
  regular: !0,
834
888
  color: h.colors.textSecondary,
835
889
  as: "p",
836
890
  hyphens: "auto",
837
- children: t
891
+ children: n
838
892
  })
839
893
  ]
840
894
  })
841
895
  ]
842
896
  }),
843
- s && /* @__PURE__ */ e("div", {
844
- children: s
897
+ c && /* @__PURE__ */ e("div", {
898
+ ref: f,
899
+ children: c
845
900
  })
846
901
  ]
847
902
  })
@@ -849,8 +904,55 @@ const nr = ()=>{
849
904
  }))
850
905
  })
851
906
  });
852
- }), ze = /*#__PURE__*/ b.forwardRef((_param, X)=>{
853
- var { isInverse: r, backgroundImage: a, backgroundVideo: n, backgroundVideoRef: d, poster: l, icon: o, headline: t, pretitle: m, pretitleLinesMax: u, title: g, titleAs: s = "h3", titleLinesMax: c, description: v, descriptionLinesMax: f, extra: y, button: T, secondaryButton: C, onClose: x, actions: k, buttonLink: p, dataAttributes: A, width: S, height: H, aspectRatio: _, "aria-label": U } = _param, O = _object_without_properties(_param, [
907
+ }), je = (param)=>{
908
+ let { title: a, headline: r, pretitle: i, subtitle: t, description: o, extra: d, headlineRef: n, extraRef: s } = param;
909
+ return /* @__PURE__ */ l("div", {
910
+ className: we,
911
+ children: [
912
+ a && /* @__PURE__ */ e("div", {
913
+ style: {
914
+ paddingBottom: 4
915
+ },
916
+ children: a
917
+ }),
918
+ r && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
919
+ /* @__PURE__ */ e("div", {
920
+ ref: n,
921
+ style: {
922
+ order: -2,
923
+ paddingBottom: 16
924
+ },
925
+ children: r
926
+ }),
927
+ i && /* @__PURE__ */ e("div", {
928
+ style: {
929
+ order: -1,
930
+ paddingBottom: 4
931
+ },
932
+ children: i
933
+ }),
934
+ t && /* @__PURE__ */ e("div", {
935
+ style: {
936
+ paddingBottom: 4
937
+ },
938
+ children: t
939
+ }),
940
+ o && // this is tricky, the padding between a headline and a description is 16px
941
+ // but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
942
+ /* @__PURE__ */ e("div", {
943
+ style: {
944
+ paddingTop: i || a || t ? 4 : 0
945
+ },
946
+ children: o
947
+ }),
948
+ d && /* @__PURE__ */ e("div", {
949
+ ref: s,
950
+ children: d
951
+ })
952
+ ]
953
+ });
954
+ }, Ve = /*#__PURE__*/ b.forwardRef((_param, H)=>{
955
+ var { isInverse: a, backgroundImage: r, backgroundVideo: i, backgroundVideoRef: t, poster: o, icon: d, headline: n, pretitle: s, pretitleLinesMax: v, title: u, titleAs: c = "h3", titleLinesMax: m, description: g, descriptionLinesMax: p, extra: y, button: N, secondaryButton: x, onClose: C, actions: T, buttonLink: f, dataAttributes: A, width: B, height: z, aspectRatio: j, "aria-label": D } = _param, S = _object_without_properties(_param, [
854
956
  "isInverse",
855
957
  "backgroundImage",
856
958
  "backgroundVideo",
@@ -877,125 +979,114 @@ const nr = ()=>{
877
979
  "aspectRatio",
878
980
  "aria-label"
879
981
  ]);
880
- const P = a !== void 0, N = n !== void 0, B = we(a), { video: ie, videoAction: Y } = Ae(n, l, d);
881
- N && (k = Y ? [
882
- Y
982
+ const k = r !== void 0, R = i !== void 0, E = Oe(r), { video: I, videoAction: U } = Le(i, o, t), { text: oe, ref: Y } = w(), { text: de, ref: se } = w();
983
+ R && (T = U ? [
984
+ U
883
985
  ] : []);
884
- const $ = Se(), z = P || N, q = z ? "0 0 16px rgba(0,0,0,0.4)" : void 0, F = (k == null ? void 0 : k.length) || x, M = O.href || O.to || O.onPress, J = P || N ? ke : r ? se : ae;
885
- return /* @__PURE__ */ i(j, {
986
+ const Z = ze(), V = k || R, G = V ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (T == null ? void 0 : T.length) || C, X = !!(S.href || S.to || S.onPress), ee = k || R ? Ae : a ? pe : ne, le = D || [
987
+ u,
988
+ oe,
989
+ s,
990
+ g,
991
+ de
992
+ ].filter(Boolean).join(" ");
993
+ return /* @__PURE__ */ l(q, {
886
994
  dataAttributes: A,
887
- ref: X,
888
- width: S,
889
- height: H,
890
- aspectRatio: _,
891
- "aria-label": U,
892
- className: L,
995
+ ref: H,
996
+ width: B,
997
+ height: z,
998
+ aspectRatio: j,
999
+ "aria-label": X ? void 0 : D,
1000
+ className: _,
893
1001
  children: [
894
- /* @__PURE__ */ e(ue, {
1002
+ /* @__PURE__ */ e(ye, {
895
1003
  borderRadius: h.borderRadii.legacyDisplay,
896
1004
  className: K,
897
1005
  width: "100%",
898
1006
  minHeight: "100%",
899
- isInverse: r,
900
- background: P || N ? $ ? h.colors.backgroundContainerBrandOverInverse : h.colors.backgroundContainer : void 0,
901
- children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
1007
+ isInverse: a,
1008
+ background: k || R ? Z ? h.colors.backgroundContainerBrandOverInverse : h.colors.backgroundContainer : void 0,
1009
+ children: /* @__PURE__ */ l(W, _object_spread_props(_object_spread({
902
1010
  maybe: !0
903
- }, O), {
904
- className: G,
905
- "aria-label": U,
1011
+ }, S), {
1012
+ className: $,
1013
+ "aria-label": X ? le : void 0,
906
1014
  children: [
907
- M && /* @__PURE__ */ e("div", {
908
- className: J
1015
+ X && /* @__PURE__ */ e("div", {
1016
+ className: ee
909
1017
  }),
910
- /* @__PURE__ */ i("div", {
911
- className: Ce,
1018
+ /* @__PURE__ */ l("div", {
1019
+ className: ke,
912
1020
  children: [
913
- (P || N) && /* @__PURE__ */ e(le, {
914
- isInverse: $,
1021
+ (k || R) && /* @__PURE__ */ e(fe, {
1022
+ isInverse: Z,
915
1023
  children: /* @__PURE__ */ e("div", {
916
- className: Ne,
917
- children: N ? ie : B
1024
+ className: Re,
1025
+ children: R ? I : E
918
1026
  })
919
1027
  }),
920
- /* @__PURE__ */ i("div", {
921
- className: xe,
1028
+ /* @__PURE__ */ l("div", {
1029
+ className: Se,
922
1030
  style: {
923
- paddingTop: z && !o && !F && !N ? 0 : 24
1031
+ paddingTop: V && !d && !O && !R ? 0 : 24
924
1032
  },
925
1033
  children: [
926
- o ? /* @__PURE__ */ e("div", {
927
- style: D({
928
- [V.mediaBorderRadius]: h.borderRadii.mediaSmall
1034
+ d ? /* @__PURE__ */ e("div", {
1035
+ style: P({
1036
+ [F.mediaBorderRadius]: h.borderRadii.mediaSmall
929
1037
  }),
930
- children: /* @__PURE__ */ e(w, {
931
- paddingBottom: z ? 0 : 40,
1038
+ children: /* @__PURE__ */ e(L, {
1039
+ paddingBottom: V ? 0 : 40,
932
1040
  paddingX: 24,
933
- children: o
1041
+ children: d
934
1042
  })
935
- }) : /* @__PURE__ */ e(w, {
936
- paddingBottom: F || N ? z ? 24 : 64 : 0
1043
+ }) : /* @__PURE__ */ e(L, {
1044
+ paddingBottom: O || R ? V ? 24 : 64 : 0
937
1045
  }),
938
- /* @__PURE__ */ e(w, {
1046
+ /* @__PURE__ */ e(L, {
939
1047
  paddingX: 24,
940
- paddingTop: z ? 40 : 0,
1048
+ paddingTop: V ? 40 : 0,
941
1049
  paddingBottom: 24,
942
- className: z ? Te : void 0,
943
- children: /* @__PURE__ */ i(R, {
1050
+ className: V ? Ie : void 0,
1051
+ children: /* @__PURE__ */ l(ie, {
944
1052
  space: 24,
945
1053
  children: [
946
- /* @__PURE__ */ i("div", {
947
- children: [
948
- /* @__PURE__ */ i(R, {
949
- space: 8,
950
- children: [
951
- (t || m || g) && /* @__PURE__ */ e("header", {
952
- children: /* @__PURE__ */ i(R, {
953
- space: 16,
954
- children: [
955
- t,
956
- /* @__PURE__ */ i(R, {
957
- space: 4,
958
- children: [
959
- m && /* @__PURE__ */ e(I, {
960
- forceMobileSizes: !0,
961
- truncate: u,
962
- as: "div",
963
- regular: !0,
964
- textShadow: q,
965
- children: m
966
- }),
967
- /* @__PURE__ */ e(Ee, {
968
- forceMobileSizes: !0,
969
- truncate: c,
970
- as: s,
971
- textShadow: q,
972
- hyphens: "auto",
973
- children: g
974
- })
975
- ]
976
- })
977
- ]
978
- })
979
- }),
980
- v && /* @__PURE__ */ e(Le, {
981
- forceMobileSizes: !0,
982
- truncate: f,
983
- as: "p",
984
- regular: !0,
985
- color: z ? h.colors.textPrimary : h.colors.textSecondary,
986
- textShadow: q,
987
- hyphens: "auto",
988
- children: v
989
- })
990
- ]
991
- }),
992
- y
993
- ]
1054
+ /* @__PURE__ */ e(je, {
1055
+ title: u ? /* @__PURE__ */ e(We, {
1056
+ forceMobileSizes: !0,
1057
+ truncate: m,
1058
+ as: c,
1059
+ textShadow: G,
1060
+ hyphens: "auto",
1061
+ children: u
1062
+ }) : void 0,
1063
+ headline: n,
1064
+ pretitle: s ? /* @__PURE__ */ e(M, {
1065
+ forceMobileSizes: !0,
1066
+ truncate: v,
1067
+ as: "div",
1068
+ regular: !0,
1069
+ textShadow: G,
1070
+ children: s
1071
+ }) : void 0,
1072
+ description: g ? /* @__PURE__ */ e(_e, {
1073
+ forceMobileSizes: !0,
1074
+ truncate: p,
1075
+ as: "p",
1076
+ regular: !0,
1077
+ color: V ? h.colors.textPrimary : h.colors.textSecondary,
1078
+ textShadow: G,
1079
+ hyphens: "auto",
1080
+ children: g
1081
+ }) : void 0,
1082
+ extra: y,
1083
+ headlineRef: Y,
1084
+ extraRef: se
994
1085
  }),
995
- (T || C || p) && /* @__PURE__ */ e(te, {
996
- primaryButton: T,
997
- secondaryButton: C,
998
- link: p
1086
+ (N || x || f) && /* @__PURE__ */ e(me, {
1087
+ primaryButton: N,
1088
+ secondaryButton: x,
1089
+ link: f
999
1090
  })
1000
1091
  ]
1001
1092
  })
@@ -1008,35 +1099,35 @@ const nr = ()=>{
1008
1099
  }))
1009
1100
  }),
1010
1101
  /* @__PURE__ */ e(Q, {
1011
- onClose: x,
1012
- actions: k,
1013
- type: P || N ? "media" : r ? "inverse" : "default"
1102
+ onClose: C,
1103
+ actions: T,
1104
+ type: k || R ? "media" : a ? "inverse" : "default"
1014
1105
  })
1015
1106
  ]
1016
1107
  });
1017
- }), Wr = /*#__PURE__*/ b.forwardRef((_param, n)=>{
1018
- var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
1108
+ }), Ja = /*#__PURE__*/ b.forwardRef((_param, i)=>{
1109
+ var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
1019
1110
  "dataAttributes"
1020
1111
  ]);
1021
- return /* @__PURE__ */ e(ze, _object_spread_props(_object_spread({}, a), {
1022
- ref: n,
1112
+ return /* @__PURE__ */ e(Ve, _object_spread_props(_object_spread({}, r), {
1113
+ ref: i,
1023
1114
  isInverse: !0,
1024
1115
  dataAttributes: _object_spread({
1025
1116
  "component-name": "DisplayMediaCard"
1026
- }, r)
1117
+ }, a)
1027
1118
  }));
1028
- }), _r = /*#__PURE__*/ b.forwardRef((_param, n)=>{
1029
- var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
1119
+ }), Ka = /*#__PURE__*/ b.forwardRef((_param, i)=>{
1120
+ var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
1030
1121
  "dataAttributes"
1031
1122
  ]);
1032
- return /* @__PURE__ */ e(ze, _object_spread_props(_object_spread({}, a), {
1033
- ref: n,
1123
+ return /* @__PURE__ */ e(Ve, _object_spread_props(_object_spread({}, r), {
1124
+ ref: i,
1034
1125
  dataAttributes: _object_spread({
1035
1126
  "component-name": "DisplayDataCard"
1036
- }, r)
1127
+ }, a)
1037
1128
  }));
1038
- }), $r = /*#__PURE__*/ b.forwardRef((_param, P)=>{
1039
- var { dataAttributes: r, backgroundImage: a, backgroundVideo: n, poster: d, backgroundVideoRef: l, width: o, height: t, aspectRatio: m = "7:10", ariaLabel: u, ["aria-label"]: g = u, actions: s, onClose: c, icon: v, headline: f, pretitle: y, pretitleLinesMax: T, title: C, titleAs: x = "h3", titleLinesMax: k, subtitle: p, subtitleLinesMax: A, description: S, descriptionLinesMax: H, variant: _, isInverse: U, backgroundColor: O } = _param, X = _object_without_properties(_param, [
1129
+ }), Qa = /*#__PURE__*/ b.forwardRef((_param, R)=>{
1130
+ var { dataAttributes: a, backgroundImage: r, backgroundVideo: i, poster: t, backgroundVideoRef: o, width: d, height: n, aspectRatio: s = "7:10", ariaLabel: v, ["aria-label"]: u = v, actions: c, onClose: m, icon: g, headline: p, pretitle: y, pretitleLinesMax: N, title: x, titleAs: C = "h3", titleLinesMax: T, subtitle: f, subtitleLinesMax: A, description: B, descriptionLinesMax: z, extra: j, variant: D, isInverse: S, backgroundColor: H } = _param, k = _object_without_properties(_param, [
1040
1131
  "dataAttributes",
1041
1132
  "backgroundImage",
1042
1133
  "backgroundVideo",
@@ -1060,163 +1151,135 @@ const nr = ()=>{
1060
1151
  "subtitleLinesMax",
1061
1152
  "description",
1062
1153
  "descriptionLinesMax",
1154
+ "extra",
1063
1155
  "variant",
1064
1156
  "isInverse",
1065
1157
  "backgroundColor"
1066
1158
  ]);
1067
- const N = a !== void 0, B = n !== void 0, ie = we(a), { video: Y, videoAction: $ } = Ae(n, d, l), { text: z, ref: q } = nr();
1068
- B && (s = $ ? [
1069
- $
1159
+ const E = r !== void 0, I = i !== void 0, U = Oe(r), { video: oe, videoAction: Y } = Le(i, t, o), { text: de, ref: se } = w(), { text: Z, ref: V } = w();
1160
+ I && (c = Y ? [
1161
+ Y
1070
1162
  ] : []);
1071
- const F = Se(), M = N || B, J = M ? "0 0 16px rgba(0,0,0,0.4)" : void 0, he = (s == null ? void 0 : s.length) || c, { textPresets: Me } = W(), Z = !!(X.href || X.to || X.onPress), ee = _ || (U ? "inverse" : "default"), De = ()=>O || ({
1163
+ const G = ze(), O = E || I, X = O ? "0 0 16px rgba(0,0,0,0.4)" : void 0, ee = (c == null ? void 0 : c.length) || m, { textPresets: le } = J(), ae = !!(k.href || k.to || k.onPress), re = D || (S ? "inverse" : "default"), Pe = ()=>H || ({
1072
1164
  default: h.colors.backgroundContainer,
1073
- inverse: F ? h.colors.backgroundContainerBrandOverInverse : h.colors.backgroundBrand,
1165
+ inverse: G ? h.colors.backgroundContainerBrandOverInverse : h.colors.backgroundBrand,
1074
1166
  alternative: h.colors.backgroundAlternative
1075
- })[ee], He = N || B ? ke : ee === "inverse" ? se : ae, Oe = g || [
1076
- C,
1077
- z,
1167
+ })[re], Ee = E || I ? Ae : re === "inverse" ? pe : ne, Ge = u || [
1168
+ x,
1169
+ de,
1078
1170
  y,
1079
- p,
1080
- S
1171
+ f,
1172
+ B,
1173
+ Z
1081
1174
  ].filter(Boolean).join(" ");
1082
- return /* @__PURE__ */ i(j, {
1083
- width: o,
1084
- height: t,
1175
+ return /* @__PURE__ */ l(q, {
1176
+ width: d,
1177
+ height: n,
1085
1178
  dataAttributes: _object_spread({
1086
1179
  "component-name": "PosterCard"
1087
- }, r),
1088
- ref: P,
1089
- aspectRatio: m,
1090
- className: L,
1091
- "aria-label": Z ? void 0 : g,
1180
+ }, a),
1181
+ ref: R,
1182
+ aspectRatio: s,
1183
+ className: _,
1184
+ "aria-label": ae ? void 0 : u,
1092
1185
  children: [
1093
- /* @__PURE__ */ e(ue, {
1186
+ /* @__PURE__ */ e(ye, {
1094
1187
  borderRadius: h.borderRadii.legacyDisplay,
1095
1188
  className: K,
1096
1189
  width: "100%",
1097
1190
  minHeight: "100%",
1098
- isInverse: N || B || ee === "inverse",
1099
- background: N || B ? F ? h.colors.backgroundContainerBrandOverInverse : h.colors.backgroundContainer : De(),
1100
- children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
1191
+ isInverse: E || I || re === "inverse",
1192
+ background: E || I ? G ? h.colors.backgroundContainerBrandOverInverse : h.colors.backgroundContainer : Pe(),
1193
+ children: /* @__PURE__ */ l(W, _object_spread_props(_object_spread({
1101
1194
  maybe: !0
1102
- }, X), {
1103
- className: G,
1104
- "aria-label": Z ? Oe : void 0,
1195
+ }, k), {
1196
+ className: $,
1197
+ "aria-label": ae ? Ge : void 0,
1105
1198
  children: [
1106
- Z && /* @__PURE__ */ e("div", {
1107
- className: He
1199
+ ae && /* @__PURE__ */ e("div", {
1200
+ className: Ee
1108
1201
  }),
1109
- /* @__PURE__ */ i("div", {
1110
- className: Ce,
1111
- "aria-hidden": Z,
1202
+ /* @__PURE__ */ l("div", {
1203
+ className: ke,
1204
+ "aria-hidden": ae,
1112
1205
  children: [
1113
- (N || B) && /* @__PURE__ */ e(le, {
1114
- isInverse: F,
1206
+ (E || I) && /* @__PURE__ */ e(fe, {
1207
+ isInverse: G,
1115
1208
  children: /* @__PURE__ */ e("div", {
1116
- className: Ne,
1117
- children: B ? Y : ie
1209
+ className: Re,
1210
+ children: I ? oe : U
1118
1211
  })
1119
1212
  }),
1120
- /* @__PURE__ */ i(w, {
1121
- className: xe,
1122
- paddingTop: M && !v && !he && !B ? 0 : {
1123
- mobile: v ? 16 : 24,
1213
+ /* @__PURE__ */ l(L, {
1214
+ className: Se,
1215
+ paddingTop: O && !g && !ee && !I ? 0 : {
1216
+ mobile: g ? 16 : 24,
1124
1217
  desktop: 24
1125
1218
  },
1126
1219
  children: [
1127
- v ? /* @__PURE__ */ e("div", {
1128
- style: D({
1129
- [V.mediaBorderRadius]: h.borderRadii.mediaSmall
1220
+ g ? /* @__PURE__ */ e("div", {
1221
+ style: P({
1222
+ [F.mediaBorderRadius]: h.borderRadii.mediaSmall
1130
1223
  }),
1131
- children: /* @__PURE__ */ e(w, {
1132
- paddingBottom: M ? 0 : 40,
1224
+ children: /* @__PURE__ */ e(L, {
1225
+ paddingBottom: O ? 0 : 40,
1133
1226
  paddingX: {
1134
1227
  mobile: 16,
1135
1228
  desktop: 24
1136
1229
  },
1137
- children: v
1230
+ children: g
1138
1231
  })
1139
- }) : /* @__PURE__ */ e(w, {
1140
- paddingBottom: he || B ? M ? 24 : 64 : 0
1232
+ }) : /* @__PURE__ */ e(L, {
1233
+ paddingBottom: ee || I ? O ? 24 : 64 : 0
1141
1234
  }),
1142
- /* @__PURE__ */ e(w, {
1235
+ /* @__PURE__ */ e(L, {
1143
1236
  paddingX: {
1144
1237
  mobile: 16,
1145
1238
  desktop: 24
1146
1239
  },
1147
- paddingTop: M ? 40 : 0,
1240
+ paddingTop: O ? 40 : 0,
1148
1241
  paddingBottom: 24,
1149
- className: M ? Te : void 0,
1150
- children: /* @__PURE__ */ i("div", {
1151
- className: $e,
1152
- children: [
1153
- C && /* @__PURE__ */ e("div", {
1154
- style: {
1155
- paddingBottom: 4
1156
- },
1157
- children: /* @__PURE__ */ e(re, {
1158
- desktopSize: 20,
1159
- mobileSize: 18,
1160
- mobileLineHeight: "24px",
1161
- desktopLineHeight: "28px",
1162
- truncate: k,
1163
- weight: Me.cardTitle.weight,
1164
- as: x,
1165
- children: C
1166
- })
1167
- }),
1168
- f && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
1169
- /* @__PURE__ */ e("div", {
1170
- ref: q,
1171
- style: {
1172
- order: -2,
1173
- paddingBottom: 16
1174
- },
1175
- children: f
1176
- }),
1177
- y && /* @__PURE__ */ e("div", {
1178
- style: {
1179
- order: -1,
1180
- paddingBottom: 4
1181
- },
1182
- children: /* @__PURE__ */ e(I, {
1183
- forceMobileSizes: !0,
1184
- truncate: T,
1185
- regular: !0,
1186
- textShadow: J,
1187
- children: y
1188
- })
1189
- }),
1190
- p && /* @__PURE__ */ e("div", {
1191
- style: {
1192
- paddingBottom: 4
1193
- },
1194
- children: /* @__PURE__ */ e(I, {
1195
- forceMobileSizes: !0,
1196
- truncate: A,
1197
- as: "div",
1198
- regular: !0,
1199
- textShadow: J,
1200
- children: p
1201
- })
1202
- }),
1203
- S && // this is tricky, the padding between a headline and a description is 16px
1204
- // but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
1205
- /* @__PURE__ */ e("div", {
1206
- style: {
1207
- paddingTop: y || C || p ? 4 : 0
1208
- },
1209
- children: /* @__PURE__ */ e(I, {
1210
- forceMobileSizes: !0,
1211
- truncate: H,
1212
- as: "p",
1213
- regular: !0,
1214
- textShadow: J,
1215
- color: M ? h.colors.textPrimary : h.colors.textSecondary,
1216
- children: S
1217
- })
1218
- })
1219
- ]
1242
+ className: O ? Ie : void 0,
1243
+ children: /* @__PURE__ */ e(je, {
1244
+ title: x ? /* @__PURE__ */ e(te, {
1245
+ desktopSize: 20,
1246
+ mobileSize: 18,
1247
+ mobileLineHeight: "24px",
1248
+ desktopLineHeight: "28px",
1249
+ truncate: T,
1250
+ weight: le.cardTitle.weight,
1251
+ as: C,
1252
+ children: x
1253
+ }) : void 0,
1254
+ headline: p,
1255
+ pretitle: y ? /* @__PURE__ */ e(M, {
1256
+ forceMobileSizes: !0,
1257
+ truncate: N,
1258
+ as: "div",
1259
+ regular: !0,
1260
+ textShadow: X,
1261
+ children: y
1262
+ }) : void 0,
1263
+ subtitle: f ? /* @__PURE__ */ e(M, {
1264
+ forceMobileSizes: !0,
1265
+ truncate: A,
1266
+ as: "div",
1267
+ regular: !0,
1268
+ textShadow: X,
1269
+ children: f
1270
+ }) : void 0,
1271
+ description: B ? /* @__PURE__ */ e(M, {
1272
+ forceMobileSizes: !0,
1273
+ truncate: z,
1274
+ as: "p",
1275
+ regular: !0,
1276
+ textShadow: X,
1277
+ color: O ? h.colors.textPrimary : h.colors.textSecondary,
1278
+ children: B
1279
+ }) : void 0,
1280
+ headlineRef: se,
1281
+ extra: j,
1282
+ extraRef: V
1220
1283
  })
1221
1284
  })
1222
1285
  ]
@@ -1227,11 +1290,11 @@ const nr = ()=>{
1227
1290
  }))
1228
1291
  }),
1229
1292
  /* @__PURE__ */ e(Q, {
1230
- onClose: c,
1231
- actions: s,
1232
- type: N || B ? "media" : ee === "inverse" ? "inverse" : "default"
1293
+ onClose: m,
1294
+ actions: c,
1295
+ type: E || I ? "media" : re === "inverse" ? "inverse" : "default"
1233
1296
  })
1234
1297
  ]
1235
1298
  });
1236
1299
  });
1237
- export { tr as CardActionIconButton, lr as CardActionSpinner, Q as CardActionsGroup, Xr as DataCard, _r as DisplayDataCard, Wr as DisplayMediaCard, Lr as MediaCard, Gr as NakedCard, $r as PosterCard, jr as SmallNakedCard, Fr as SnapCard };
1300
+ export { la as CardActionIconButton, ua as CardActionSpinner, Q as CardActionsGroup, $a as DataCard, Ka as DisplayDataCard, Ja as DisplayMediaCard, Fa as MediaCard, Wa as NakedCard, Qa as PosterCard, _a as SmallNakedCard, qa as SnapCard, Le as useVideoWithControls };