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