@telefonica/mistica 14.12.0 → 14.14.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 (124) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +4 -4
  3. package/dist/boxed.css.d.ts +1 -1
  4. package/dist/boxed.js +12 -14
  5. package/dist/card.css-mistica.js +27 -12
  6. package/dist/card.css.d.ts +7 -0
  7. package/dist/card.d.ts +36 -34
  8. package/dist/card.js +611 -469
  9. package/dist/fixed-footer-layout.js +8 -7
  10. package/dist/generated/mistica-icons/icon-alert-filled.js +15 -5
  11. package/dist/generated/mistica-icons/icon-alert-light.js +24 -8
  12. package/dist/generated/mistica-icons/icon-alert-regular.js +30 -14
  13. package/dist/generated/mistica-icons/icon-bell-filled.js +19 -9
  14. package/dist/generated/mistica-icons/icon-bell-light.js +16 -6
  15. package/dist/generated/mistica-icons/icon-bell-regular.js +19 -9
  16. package/dist/generated/mistica-icons/icon-dollar-symbol-circle-light.js +28 -11
  17. package/dist/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +20 -9
  18. package/dist/generated/mistica-icons/icon-edit-pencil-light.js +21 -10
  19. package/dist/generated/mistica-icons/icon-edit-pencil-regular.js +22 -12
  20. package/dist/generated/mistica-icons/icon-gift-filled.js +19 -9
  21. package/dist/generated/mistica-icons/icon-gift-light.js +20 -10
  22. package/dist/generated/mistica-icons/icon-gift-regular.js +19 -9
  23. package/dist/generated/mistica-icons/icon-heart-filled.js +16 -6
  24. package/dist/generated/mistica-icons/icon-heart-light.js +18 -8
  25. package/dist/generated/mistica-icons/icon-heart-regular.js +24 -14
  26. package/dist/generated/mistica-icons/icon-home-filled.js +23 -13
  27. package/dist/generated/mistica-icons/icon-home-light.js +24 -14
  28. package/dist/generated/mistica-icons/icon-home-regular.js +21 -11
  29. package/dist/generated/mistica-icons/icon-home-wifi-filled.js +24 -7
  30. package/dist/generated/mistica-icons/icon-home-wifi-light.js +25 -8
  31. package/dist/generated/mistica-icons/icon-home-wifi-regular.js +24 -7
  32. package/dist/generated/mistica-icons/icon-pause-regular.js +10 -12
  33. package/dist/generated/mistica-icons/icon-play-regular.js +14 -16
  34. package/dist/generated/mistica-icons/icon-reload-light.js +22 -12
  35. package/dist/generated/mistica-icons/icon-reload-regular.js +24 -14
  36. package/dist/generated/mistica-icons/icon-share-filled.js +20 -10
  37. package/dist/generated/mistica-icons/icon-share-light.js +21 -11
  38. package/dist/generated/mistica-icons/icon-share-regular.js +21 -11
  39. package/dist/generated/mistica-icons/icon-shopping-bag-filled.d.ts +4 -0
  40. package/dist/generated/mistica-icons/icon-shopping-bag-filled.js +110 -0
  41. package/dist/generated/mistica-icons/icon-shopping-bag-light.d.ts +4 -0
  42. package/dist/generated/mistica-icons/icon-shopping-bag-light.js +110 -0
  43. package/dist/generated/mistica-icons/icon-shopping-bag-regular.d.ts +4 -0
  44. package/dist/generated/mistica-icons/icon-shopping-bag-regular.js +110 -0
  45. package/dist/generated/mistica-icons/icon-tickets-filled.js +17 -7
  46. package/dist/generated/mistica-icons/icon-tickets-light.js +26 -10
  47. package/dist/generated/mistica-icons/icon-tickets-regular.js +35 -19
  48. package/dist/hooks.js +57 -56
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.js +14 -1
  51. package/dist/package-version.js +1 -1
  52. package/dist/skins/blau.js +14 -2
  53. package/dist/skins/defaults.js +12 -0
  54. package/dist/skins/movistar-legacy.js +15 -3
  55. package/dist/skins/movistar.js +12 -0
  56. package/dist/skins/o2.js +13 -1
  57. package/dist/skins/telefonica.js +12 -0
  58. package/dist/skins/types/index.d.ts +1 -1
  59. package/dist/skins/vivo-new.js +12 -0
  60. package/dist/skins/vivo.js +13 -1
  61. package/dist/theme-context-provider.js +34 -30
  62. package/dist/tooltip.js +35 -34
  63. package/dist/utils/dom.js +10 -10
  64. package/dist/utils/environment.d.ts +1 -0
  65. package/dist/utils/environment.js +12 -4
  66. package/dist-es/boxed.css-mistica.js +3 -3
  67. package/dist-es/boxed.js +16 -18
  68. package/dist-es/card.css-mistica.js +2 -2
  69. package/dist-es/card.js +652 -511
  70. package/dist-es/fixed-footer-layout.js +18 -17
  71. package/dist-es/generated/mistica-icons/icon-alert-filled.js +18 -8
  72. package/dist-es/generated/mistica-icons/icon-alert-light.js +30 -14
  73. package/dist-es/generated/mistica-icons/icon-alert-regular.js +36 -20
  74. package/dist-es/generated/mistica-icons/icon-bell-filled.js +26 -16
  75. package/dist-es/generated/mistica-icons/icon-bell-light.js +20 -10
  76. package/dist-es/generated/mistica-icons/icon-bell-regular.js +20 -10
  77. package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-light.js +33 -16
  78. package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +25 -14
  79. package/dist-es/generated/mistica-icons/icon-edit-pencil-light.js +25 -14
  80. package/dist-es/generated/mistica-icons/icon-edit-pencil-regular.js +30 -20
  81. package/dist-es/generated/mistica-icons/icon-gift-filled.js +22 -12
  82. package/dist-es/generated/mistica-icons/icon-gift-light.js +23 -13
  83. package/dist-es/generated/mistica-icons/icon-gift-regular.js +22 -12
  84. package/dist-es/generated/mistica-icons/icon-heart-filled.js +18 -8
  85. package/dist-es/generated/mistica-icons/icon-heart-light.js +24 -14
  86. package/dist-es/generated/mistica-icons/icon-heart-regular.js +25 -15
  87. package/dist-es/generated/mistica-icons/icon-home-filled.js +30 -20
  88. package/dist-es/generated/mistica-icons/icon-home-light.js +27 -17
  89. package/dist-es/generated/mistica-icons/icon-home-regular.js +27 -17
  90. package/dist-es/generated/mistica-icons/icon-home-wifi-filled.js +28 -11
  91. package/dist-es/generated/mistica-icons/icon-home-wifi-light.js +29 -12
  92. package/dist-es/generated/mistica-icons/icon-home-wifi-regular.js +28 -11
  93. package/dist-es/generated/mistica-icons/icon-pause-regular.js +12 -14
  94. package/dist-es/generated/mistica-icons/icon-play-regular.js +19 -21
  95. package/dist-es/generated/mistica-icons/icon-reload-light.js +27 -17
  96. package/dist-es/generated/mistica-icons/icon-reload-regular.js +27 -17
  97. package/dist-es/generated/mistica-icons/icon-share-filled.js +25 -15
  98. package/dist-es/generated/mistica-icons/icon-share-light.js +28 -18
  99. package/dist-es/generated/mistica-icons/icon-share-regular.js +28 -18
  100. package/dist-es/generated/mistica-icons/icon-shopping-bag-filled.js +101 -0
  101. package/dist-es/generated/mistica-icons/icon-shopping-bag-light.js +101 -0
  102. package/dist-es/generated/mistica-icons/icon-shopping-bag-regular.js +101 -0
  103. package/dist-es/generated/mistica-icons/icon-tickets-filled.js +21 -11
  104. package/dist-es/generated/mistica-icons/icon-tickets-light.js +30 -14
  105. package/dist-es/generated/mistica-icons/icon-tickets-regular.js +43 -27
  106. package/dist-es/hooks.js +51 -50
  107. package/dist-es/index.js +1762 -1758
  108. package/dist-es/package-version.js +1 -1
  109. package/dist-es/skins/blau.js +14 -2
  110. package/dist-es/skins/defaults.js +12 -0
  111. package/dist-es/skins/movistar-legacy.js +15 -3
  112. package/dist-es/skins/movistar.js +12 -0
  113. package/dist-es/skins/o2.js +13 -1
  114. package/dist-es/skins/telefonica.js +12 -0
  115. package/dist-es/skins/vivo-new.js +12 -0
  116. package/dist-es/skins/vivo.js +13 -1
  117. package/dist-es/style.css +1 -1
  118. package/dist-es/theme-context-provider.js +72 -68
  119. package/dist-es/tooltip.js +37 -36
  120. package/dist-es/utils/dom.js +9 -9
  121. package/dist-es/utils/environment.js +2 -2
  122. package/package.json +1 -1
  123. package/dist/boxed.css.ts.vanilla.css-mistica.js +0 -11
  124. package/dist-es/boxed.css.ts.vanilla.css-mistica.js +0 -2
package/dist/card.js CHANGED
@@ -10,22 +10,22 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  DataCard: function() {
13
- return tr;
13
+ return pr;
14
14
  },
15
15
  DisplayDataCard: function() {
16
- return lr;
16
+ return yr;
17
17
  },
18
18
  DisplayMediaCard: function() {
19
- return dr;
19
+ return vr;
20
20
  },
21
21
  MediaCard: function() {
22
- return or;
22
+ return ur;
23
23
  },
24
24
  PosterCard: function() {
25
- return cr;
25
+ return gr;
26
26
  },
27
27
  SnapCard: function() {
28
- return sr;
28
+ return fr;
29
29
  }
30
30
  });
31
31
  const _jsxruntime = require("react/jsx-runtime");
@@ -42,7 +42,6 @@ const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
42
42
  const _cardcssmistica = require("./card.css-mistica.js");
43
43
  const _hooks = require("./hooks.js");
44
44
  const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
45
- const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
46
45
  const _iconbutton = /*#__PURE__*/ _interop_require_default(require("./icon-button.js"));
47
46
  const _iconcloseregular = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-close-regular.js"));
48
47
  const _iconpausefilled = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-pause-filled.js"));
@@ -174,81 +173,86 @@ function _object_without_properties_loose(source, excluded) {
174
173
  }
175
174
  return target;
176
175
  }
177
- const ie = (param)=>/* @__PURE__ */ {
178
- let { actions: r , isInverse: i } = param;
179
- return (0, _jsxruntime.jsx)(_inline.default, {
180
- space: 0,
181
- children: r.map((param, a)=>{
182
- let { onPress: n , label: s , Icon: l , iconSize: o = 20 , iconColor: p = _skincontractcssmistica.vars.colors.neutralHigh , iconBackground: c = _cardcssmistica.cardAction , iconBackgroundInverse: d = _cardcssmistica.cardActionInverse } = param;
183
- return l ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
184
- size: 48,
185
- onPress: n,
186
- "aria-label": s,
187
- className: _cardcssmistica.cardActionIconButton,
188
- style: {
189
- display: "flex"
190
- },
191
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
192
- className: i ? d : c,
193
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(l, {
194
- color: p,
195
- size: o
196
- })
197
- })
198
- }, a) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
199
- className: _cardcssmistica.cardActionIconButton
200
- }, a);
201
- })
202
- });
203
- }, ne = (r, i)=>{
204
- const { texts: n } = (0, _hooks.useTheme)(), s = r ? [
176
+ const ce = (r, a)=>{
177
+ const { texts: i } = (0, _hooks.useTheme)(), s = r ? [
205
178
  ...r
206
179
  ] : [];
207
- return i && s.push({
208
- label: n.closeButtonLabel,
209
- onPress: i,
180
+ return a && s.push({
181
+ label: i.closeButtonLabel,
182
+ onPress: a,
210
183
  Icon: _iconcloseregular.default
211
184
  }), s;
212
- }, Pe = {
185
+ }, he = 48, V = (param)=>{
186
+ let { actions: r , onClose: a , type: i = "default" } = param;
187
+ const s = ce(r, a), l = s.length > 0, o = {
188
+ default: _skincontractcssmistica.vars.colors.neutralHigh,
189
+ inverse: _skincontractcssmistica.vars.colors.inverse,
190
+ media: "#000000"
191
+ }, u = {
192
+ default: _cardcssmistica.cardAction,
193
+ inverse: _cardcssmistica.cardActionInverse,
194
+ media: _cardcssmistica.cardActionMedia
195
+ };
196
+ return l ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
197
+ style: {
198
+ position: "absolute",
199
+ right: 8,
200
+ top: 8,
201
+ zIndex: 3
202
+ },
203
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
204
+ className: (0, _sprinklescssmistica.sprinkles)({
205
+ display: "flex"
206
+ }),
207
+ children: s.map((param, m)=>{
208
+ let { onPress: h , label: d , Icon: t , iconSize: p = 20 } = param;
209
+ return t ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
210
+ size: he,
211
+ onPress: h,
212
+ "aria-label": d,
213
+ className: _cardcssmistica.cardActionIconButton,
214
+ style: {
215
+ display: "flex"
216
+ },
217
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
218
+ className: u[i],
219
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(t, {
220
+ color: o[i],
221
+ size: p
222
+ })
223
+ })
224
+ }, m) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
225
+ className: _cardcssmistica.cardActionIconButton
226
+ }, m);
227
+ })
228
+ })
229
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
230
+ }, je = {
213
231
  "1:1": "1",
214
232
  "16:9": "16 / 9",
215
233
  "7:10": "7 / 10",
216
234
  "9:10": "9 / 10",
217
235
  auto: "auto"
218
- }, F = (param)=>{
219
- let { children: r , width: i = "100%" , height: n = "100%" , minWidth: s , minHeight: l , aspectRatio: o , actions: p , onClose: c , isInverse: d , "aria-label": a } = param;
220
- const h = ne(p, c), u = h.length > 0, m = o ? typeof o == "number" ? String(o) : Pe[o] : void 0;
221
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
222
- "aria-label": a,
236
+ }, W = (param)=>{
237
+ let { children: r , width: a = "100%" , height: i = "100%" , minWidth: s , aspectRatio: l , className: o , "aria-label": u } = param;
238
+ const h = l ? typeof l == "number" ? String(l) : je[l] : void 0;
239
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", {
240
+ "aria-label": u,
241
+ className: o,
223
242
  style: {
224
- width: i,
225
- height: n,
243
+ width: a,
244
+ height: i,
226
245
  minWidth: s,
227
- minHeight: l,
228
- aspectRatio: m,
246
+ aspectRatio: h,
229
247
  position: "relative"
230
248
  },
231
- children: [
232
- r,
233
- u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
234
- style: {
235
- position: "absolute",
236
- right: 8,
237
- top: 8,
238
- zIndex: 2
239
- },
240
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ie, {
241
- actions: h,
242
- isInverse: d
243
- })
244
- })
245
- ]
249
+ children: r
246
250
  });
247
- }, ae = (r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
251
+ }, me = (r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
248
252
  width: "100%",
249
253
  height: "100%",
250
254
  src: r !== null && r !== void 0 ? r : "//:0"
251
- }), Me = {
255
+ }), Fe = {
252
256
  loading: {
253
257
  showSpinner: "loadingTimeout",
254
258
  play: "playing",
@@ -272,7 +276,7 @@ const ie = (param)=>/* @__PURE__ */ {
272
276
  error: {
273
277
  reset: "loading"
274
278
  }
275
- }, He = (r, i)=>Me[r][i] || r, oe = (r)=>{
279
+ }, ke = (r, a)=>Fe[r][a] || r, ue = (r)=>{
276
280
  switch(r){
277
281
  case "playing":
278
282
  return _iconpausefilled.default;
@@ -284,30 +288,30 @@ const ie = (param)=>/* @__PURE__ */ {
284
288
  default:
285
289
  return;
286
290
  }
287
- }, te = (r, i, n)=>{
288
- const s = _react.useRef(null), [l, o] = _react.useReducer(He, "loading");
291
+ }, pe = (r, a, i)=>{
292
+ const s = _react.useRef(null), [l, o] = _react.useReducer(ke, "loading");
289
293
  return _react.useEffect(()=>{
290
- var a;
294
+ var t;
291
295
  const d = setTimeout(()=>o("showSpinner"), 2e3);
292
- return (a = s.current) == null || a.load(), ()=>{
296
+ return (t = s.current) == null || t.load(), ()=>{
293
297
  clearTimeout(d), o("reset");
294
298
  };
295
299
  }, [
296
300
  r
297
301
  ]), {
298
302
  video: _react.useMemo(()=>r ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
299
- ref: (0, _common.combineRefs)(s, n),
303
+ ref: (0, _common.combineRefs)(s, i),
300
304
  src: r,
301
305
  width: "100%",
302
306
  height: "100%",
303
- poster: i,
307
+ poster: a,
304
308
  onError: ()=>o("fail"),
305
309
  onPause: ()=>o("pause"),
306
310
  onPlay: ()=>o("play")
307
311
  }) : void 0, [
308
- n,
312
+ i,
309
313
  r,
310
- i
314
+ a
311
315
  ]),
312
316
  videoStatus: l,
313
317
  onVideoControlPress: ()=>{
@@ -315,9 +319,9 @@ const ie = (param)=>/* @__PURE__ */ {
315
319
  d && (l === "loading" ? o("showSpinner") : l === "paused" ? d.play() : l === "playing" && d.pause());
316
320
  }
317
321
  };
318
- }, se = (param)=>{
319
- let { headline: r , pretitle: i , pretitleLinesMax: n , title: s , titleLinesMax: l , subtitle: o , subtitleLinesMax: p , description: c , descriptionLinesMax: d , extra: a , button: h , buttonLink: u } = param;
320
- const { textPresets: m } = (0, _hooks.useTheme)(), v = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
322
+ }, fe = (param)=>{
323
+ let { headline: r , pretitle: a , pretitleLinesMax: i , title: s , titleLinesMax: l , subtitle: o , subtitleLinesMax: u , description: h , descriptionLinesMax: d , extra: t , button: p , buttonLink: m } = param;
324
+ const { textPresets: f } = (0, _hooks.useTheme)(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
321
325
  type: "promo",
322
326
  children: r
323
327
  }) : r : null;
@@ -334,20 +338,20 @@ const ie = (param)=>/* @__PURE__ */ {
334
338
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
335
339
  space: 8,
336
340
  children: [
337
- (r || i || s || o) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
341
+ (r || a || s || o) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
338
342
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
339
343
  space: 8,
340
344
  children: [
341
- v(),
345
+ g(),
342
346
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
343
347
  space: 4,
344
348
  children: [
345
- i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
346
- truncate: n,
349
+ a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
350
+ truncate: i,
347
351
  as: "div",
348
352
  regular: !0,
349
353
  hyphens: "auto",
350
- children: i
354
+ children: a
351
355
  }),
352
356
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
353
357
  mobileSize: 18,
@@ -355,13 +359,13 @@ const ie = (param)=>/* @__PURE__ */ {
355
359
  desktopSize: 20,
356
360
  desktopLineHeight: "28px",
357
361
  truncate: l,
358
- weight: m.cardTitle.weight,
362
+ weight: f.cardTitle.weight,
359
363
  as: "h3",
360
364
  hyphens: "auto",
361
365
  children: s
362
366
  }),
363
367
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
364
- truncate: p,
368
+ truncate: u,
365
369
  as: "div",
366
370
  regular: !0,
367
371
  hyphens: "auto",
@@ -372,150 +376,211 @@ const ie = (param)=>/* @__PURE__ */ {
372
376
  ]
373
377
  })
374
378
  }),
375
- c && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
379
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
376
380
  truncate: d,
377
381
  as: "p",
378
382
  regular: !0,
379
383
  color: _skincontractcssmistica.vars.colors.textSecondary,
380
384
  hyphens: "auto",
381
- children: c
385
+ children: h
382
386
  })
383
387
  ]
384
388
  }),
385
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
386
- children: a
389
+ t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
390
+ children: t
387
391
  })
388
392
  ]
389
393
  }),
390
- (h || u) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
394
+ (p || m) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
391
395
  className: _cardcssmistica.actions,
392
396
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
393
- primaryButton: h,
394
- link: u
397
+ primaryButton: p,
398
+ link: m
395
399
  })
396
400
  })
397
401
  ]
398
402
  });
399
- }, or = /*#__PURE__*/ _react.forwardRef((param, g)=>/* @__PURE__ */ {
400
- let { media: r , headline: i , pretitle: n , pretitleLinesMax: s , subtitle: l , subtitleLinesMax: o , title: p , titleLinesMax: c , description: d , descriptionLinesMax: a , extra: h , actions: u , button: m , buttonLink: v , dataAttributes: I , "aria-label": T , onClose: x } = param;
401
- return (0, _jsxruntime.jsx)(F, {
402
- onClose: x,
403
- actions: u,
404
- "aria-label": T,
405
- isInverse: !0,
406
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
407
- className: _cardcssmistica.boxed,
408
- dataAttributes: _object_spread({
409
- "component-name": "MediaCard"
410
- }, I),
411
- ref: g,
412
- width: "100%",
413
- height: "100%",
414
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
415
- className: _cardcssmistica.mediaCard,
416
- children: [
417
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.MediaBorderRadiusProvider, {
418
- value: !1,
419
- children: r
420
- }),
421
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
422
- className: _cardcssmistica.mediaCardContent,
423
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
424
- headline: i,
425
- pretitle: n,
426
- pretitleLinesMax: s,
427
- title: p,
428
- titleLinesMax: c,
429
- subtitle: l,
430
- subtitleLinesMax: o,
431
- description: d,
432
- descriptionLinesMax: a,
433
- extra: h,
434
- button: m,
435
- buttonLink: v
403
+ }, ur = /*#__PURE__*/ _react.forwardRef((_param, w)=>{
404
+ var { media: r , headline: a , pretitle: i , pretitleLinesMax: s , subtitle: l , subtitleLinesMax: o , title: u , titleLinesMax: h , description: d , descriptionLinesMax: t , extra: p , actions: m , button: f , buttonLink: g , dataAttributes: x , "aria-label": C , onClose: S } = _param, c = _object_without_properties(_param, [
405
+ "media",
406
+ "headline",
407
+ "pretitle",
408
+ "pretitleLinesMax",
409
+ "subtitle",
410
+ "subtitleLinesMax",
411
+ "title",
412
+ "titleLinesMax",
413
+ "description",
414
+ "descriptionLinesMax",
415
+ "extra",
416
+ "actions",
417
+ "button",
418
+ "buttonLink",
419
+ "dataAttributes",
420
+ "aria-label",
421
+ "onClose"
422
+ ]);
423
+ const N = c.href || c.to || c.onPress, b = _cardcssmistica.touchableMediaCardOverlay;
424
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(W, {
425
+ "aria-label": C,
426
+ className: _cardcssmistica.touchableContainer,
427
+ children: [
428
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
429
+ className: _cardcssmistica.boxed,
430
+ dataAttributes: _object_spread({
431
+ "component-name": "MediaCard"
432
+ }, x),
433
+ ref: w,
434
+ width: "100%",
435
+ height: "100%",
436
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
437
+ maybe: !0
438
+ }, c), {
439
+ className: _cardcssmistica.touchable,
440
+ "aria-label": C,
441
+ children: [
442
+ N && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
443
+ className: b
444
+ }),
445
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
446
+ className: _cardcssmistica.mediaCard,
447
+ children: [
448
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.MediaBorderRadiusProvider, {
449
+ value: !1,
450
+ children: r
451
+ }),
452
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
453
+ className: _cardcssmistica.mediaCardContent,
454
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(fe, {
455
+ headline: a,
456
+ pretitle: i,
457
+ pretitleLinesMax: s,
458
+ title: u,
459
+ titleLinesMax: h,
460
+ subtitle: l,
461
+ subtitleLinesMax: o,
462
+ description: d,
463
+ descriptionLinesMax: t,
464
+ extra: p,
465
+ button: f,
466
+ buttonLink: g
467
+ })
468
+ })
469
+ ]
436
470
  })
437
- })
438
- ]
471
+ ]
472
+ }))
473
+ }),
474
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(V, {
475
+ onClose: S,
476
+ actions: m,
477
+ type: "media"
439
478
  })
440
- })
479
+ ]
441
480
  });
442
- }), tr = /*#__PURE__*/ _react.forwardRef((param, g)=>{
443
- let { icon: r , headline: i , pretitle: n , pretitleLinesMax: s , title: l , titleLinesMax: o , subtitle: p , subtitleLinesMax: c , description: d , descriptionLinesMax: a , extra: h , actions: u , button: m , buttonLink: v , dataAttributes: I , "aria-label": T , onClose: x } = param;
444
- const N = ne(u, x), z = N.length > 0, A = !!r, D = {
445
- position: "absolute",
446
- top: 8,
447
- right: 8,
448
- zIndex: 2
449
- }, B = {
450
- marginRight: -8,
451
- marginTop: -16
481
+ }), pr = /*#__PURE__*/ _react.forwardRef((_param, w)=>{
482
+ var { icon: r , headline: a , pretitle: i , pretitleLinesMax: s , title: l , titleLinesMax: o , subtitle: u , subtitleLinesMax: h , description: d , descriptionLinesMax: t , extra: p , actions: m , button: f , buttonLink: g , dataAttributes: x , "aria-label": C , onClose: S } = _param, c = _object_without_properties(_param, [
483
+ "icon",
484
+ "headline",
485
+ "pretitle",
486
+ "pretitleLinesMax",
487
+ "title",
488
+ "titleLinesMax",
489
+ "subtitle",
490
+ "subtitleLinesMax",
491
+ "description",
492
+ "descriptionLinesMax",
493
+ "extra",
494
+ "actions",
495
+ "button",
496
+ "buttonLink",
497
+ "dataAttributes",
498
+ "aria-label",
499
+ "onClose"
500
+ ]);
501
+ const N = !!r, b = c.href || c.to || c.onPress, z = _cardcssmistica.touchableCardOverlay, O = ce(m, S), R = {
502
+ marginRight: -16,
503
+ marginTop: -24,
504
+ width: he * O.length
452
505
  };
453
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", {
454
- "aria-label": T,
455
- style: {
456
- height: "100%",
457
- position: "relative"
458
- },
459
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
460
- className: _cardcssmistica.boxed,
461
- dataAttributes: _object_spread({
462
- "component-name": "DataCard"
463
- }, I),
464
- ref: g,
465
- width: "100%",
466
- height: "100%",
467
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
468
- className: _cardcssmistica.dataCard,
469
- children: [
470
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
471
- className: (0, _sprinklescssmistica.sprinkles)({
472
- display: "flex"
506
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(W, {
507
+ "aria-label": C,
508
+ className: _cardcssmistica.touchableContainer,
509
+ children: [
510
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
511
+ className: _cardcssmistica.boxed,
512
+ dataAttributes: _object_spread({
513
+ "component-name": "DataCard"
514
+ }, x),
515
+ ref: w,
516
+ width: "100%",
517
+ height: "100%",
518
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
519
+ maybe: !0
520
+ }, c), {
521
+ className: _cardcssmistica.touchable,
522
+ "aria-label": C,
523
+ children: [
524
+ b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
525
+ className: z
473
526
  }),
474
- children: [
475
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
476
- space: 16,
477
- className: (0, _sprinklescssmistica.sprinkles)({
478
- flex: 1
527
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
528
+ className: _cardcssmistica.dataCard,
529
+ children: [
530
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
531
+ className: (0, _sprinklescssmistica.sprinkles)({
532
+ display: "flex"
533
+ }),
534
+ children: [
535
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
536
+ space: 16,
537
+ className: (0, _sprinklescssmistica.sprinkles)({
538
+ flex: 1
539
+ }),
540
+ children: [
541
+ N ? r : null,
542
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(fe, {
543
+ headline: a,
544
+ pretitle: i,
545
+ pretitleLinesMax: s,
546
+ title: l,
547
+ titleLinesMax: o,
548
+ subtitle: u,
549
+ subtitleLinesMax: h,
550
+ description: d,
551
+ descriptionLinesMax: t
552
+ })
553
+ ]
554
+ }),
555
+ !N && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
556
+ style: R
557
+ })
558
+ ]
479
559
  }),
480
- children: [
481
- A ? r : null,
482
- /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
483
- headline: i,
484
- pretitle: n,
485
- pretitleLinesMax: s,
486
- title: l,
487
- titleLinesMax: o,
488
- subtitle: p,
489
- subtitleLinesMax: c,
490
- description: d,
491
- descriptionLinesMax: a
560
+ p && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
561
+ children: p
562
+ }),
563
+ (f || g) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
564
+ className: _cardcssmistica.actions,
565
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
566
+ primaryButton: f,
567
+ link: g
492
568
  })
493
- ]
494
- }),
495
- z && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
496
- style: A ? D : B,
497
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ie, {
498
- actions: N
499
569
  })
500
- })
501
- ]
502
- }),
503
- h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
504
- children: h
505
- }),
506
- (m || v) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
507
- className: _cardcssmistica.actions,
508
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
509
- primaryButton: m,
510
- link: v
570
+ ]
511
571
  })
512
- })
513
- ]
572
+ ]
573
+ }))
574
+ }),
575
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(V, {
576
+ onClose: S,
577
+ actions: m,
578
+ type: "default"
514
579
  })
515
- })
580
+ ]
516
581
  });
517
- }), sr = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
518
- var { icon: r , title: i , titleLinesMax: n , subtitle: s , subtitleLinesMax: l , dataAttributes: o , "aria-label": p , extra: c , isInverse: d = !1 } = _param, a = _object_without_properties(_param, [
582
+ }), fr = /*#__PURE__*/ _react.forwardRef((_param, p)=>{
583
+ var { icon: r , title: a , titleLinesMax: i , subtitle: s , subtitleLinesMax: l , dataAttributes: o , "aria-label": u , extra: h , isInverse: d = !1 } = _param, t = _object_without_properties(_param, [
519
584
  "icon",
520
585
  "title",
521
586
  "titleLinesMax",
@@ -526,333 +591,410 @@ const ie = (param)=>/* @__PURE__ */ {
526
591
  "extra",
527
592
  "isInverse"
528
593
  ]);
529
- const { isDarkMode: u } = (0, _hooks.useTheme)(), m = !!(a.to || a.href || a.onPress);
530
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
531
- className: _cardcssmistica.boxed,
532
- dataAttributes: _object_spread({
533
- "component-name": "SnapCard"
534
- }, o),
535
- ref: h,
536
- isInverse: d,
537
- width: "100%",
538
- height: "100%",
539
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
540
- maybe: !0
541
- }, a), {
542
- className: m && !d && !u ? _cardcssmistica.snapCardTouchableHover : _cardcssmistica.snapCardTouchableHoverTransparent,
543
- "aria-label": p,
544
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
545
- className: _cardcssmistica.snapCard,
594
+ const m = t.href || t.to || t.onPress, f = d ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
595
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(W, {
596
+ className: _cardcssmistica.touchableContainer,
597
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
598
+ className: _cardcssmistica.boxed,
599
+ dataAttributes: _object_spread({
600
+ "component-name": "SnapCard"
601
+ }, o),
602
+ ref: p,
603
+ isInverse: d,
604
+ width: "100%",
605
+ height: "100%",
606
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
607
+ maybe: !0
608
+ }, t), {
609
+ className: _cardcssmistica.touchable,
610
+ "aria-label": u,
546
611
  children: [
547
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
612
+ m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
613
+ className: f
614
+ }),
615
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
616
+ className: _cardcssmistica.snapCard,
548
617
  children: [
549
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
550
- paddingBottom: 16,
551
- children: r
552
- }),
553
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
554
- space: 4,
618
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
555
619
  children: [
556
- i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
557
- truncate: n,
558
- as: "h3",
559
- regular: !0,
560
- hyphens: "auto",
561
- children: i
620
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
621
+ paddingBottom: 16,
622
+ children: r
562
623
  }),
563
- s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
564
- truncate: l,
565
- regular: !0,
566
- color: _skincontractcssmistica.vars.colors.textSecondary,
567
- as: "p",
568
- hyphens: "auto",
569
- children: s
624
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
625
+ space: 4,
626
+ children: [
627
+ a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
628
+ truncate: i,
629
+ as: "h3",
630
+ regular: !0,
631
+ hyphens: "auto",
632
+ children: a
633
+ }),
634
+ s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
635
+ truncate: l,
636
+ regular: !0,
637
+ color: _skincontractcssmistica.vars.colors.textSecondary,
638
+ as: "p",
639
+ hyphens: "auto",
640
+ children: s
641
+ })
642
+ ]
570
643
  })
571
644
  ]
645
+ }),
646
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
647
+ children: h
572
648
  })
573
649
  ]
574
- }),
575
- c && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
576
- children: c
577
650
  })
578
651
  ]
579
- })
580
- }))
652
+ }))
653
+ })
581
654
  });
582
- }), de = /*#__PURE__*/ _react.forwardRef((param, M)=>{
583
- let { isInverse: r , backgroundImage: i , backgroundVideo: n , backgroundVideoRef: s , poster: l , icon: o , headline: p , pretitle: c , pretitleLinesMax: d , title: a , titleLinesMax: h , description: u , descriptionLinesMax: m , extra: v , button: I , secondaryButton: T , onClose: x , actions: g , buttonLink: N , dataAttributes: z , width: A , height: D , aspectRatio: B , "aria-label": W } = param;
584
- const S = ae(i), { video: H , videoStatus: E , onVideoControlPress: k } = te(n, l, s);
585
- n && (g = [
655
+ }), Ue = 264, ve = /*#__PURE__*/ _react.forwardRef((_param, G)=>{
656
+ var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: s , poster: l , icon: o , headline: u , pretitle: h , pretitleLinesMax: d , title: t , titleLinesMax: p , description: m , descriptionLinesMax: f , extra: g , button: x , secondaryButton: C , onClose: S , actions: c , buttonLink: w , dataAttributes: N , width: b , height: z , aspectRatio: O , "aria-label": R } = _param, M = _object_without_properties(_param, [
657
+ "isInverse",
658
+ "backgroundImage",
659
+ "backgroundVideo",
660
+ "backgroundVideoRef",
661
+ "poster",
662
+ "icon",
663
+ "headline",
664
+ "pretitle",
665
+ "pretitleLinesMax",
666
+ "title",
667
+ "titleLinesMax",
668
+ "description",
669
+ "descriptionLinesMax",
670
+ "extra",
671
+ "button",
672
+ "secondaryButton",
673
+ "onClose",
674
+ "actions",
675
+ "buttonLink",
676
+ "dataAttributes",
677
+ "width",
678
+ "height",
679
+ "aspectRatio",
680
+ "aria-label"
681
+ ]);
682
+ const B = me(a), { video: X , videoStatus: j , onVideoControlPress: Y } = pe(i, l, s);
683
+ i && (c = [
586
684
  {
587
- Icon: oe(E),
588
- onPress: k,
685
+ Icon: ue(j),
686
+ onPress: Y,
589
687
  label: "Video controls",
590
- iconSize: E === "loadingTimeout" ? 16 : 12,
688
+ iconSize: j === "loadingTimeout" ? 16 : 12,
591
689
  iconColor: _skincontractcssmistica.vars.colors.inverse,
592
690
  iconBackground: _cardcssmistica.videoAction,
593
691
  iconBackgroundInverse: _cardcssmistica.videoAction
594
692
  }
595
693
  ]);
596
- const L = (0, _themevariantcontext.useIsInverseVariant)(), R = !!i || !!n, O = R ? "0 0 16px rgba(0,0,0,0.4)" : void 0, le = (g == null ? void 0 : g.length) || x;
597
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
598
- width: A,
599
- height: D,
600
- aspectRatio: B,
601
- onClose: x,
602
- actions: g,
603
- "aria-label": W,
604
- isInverse: r,
605
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
606
- borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
607
- className: _cardcssmistica.boxed,
608
- dataAttributes: z,
609
- ref: M,
610
- width: "100%",
611
- minHeight: "100%",
612
- isInverse: r,
613
- background: i || n ? L ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
614
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
615
- className: _cardcssmistica.displayCardContainer,
616
- children: [
617
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
618
- isInverse: L,
619
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
620
- className: _cardcssmistica.displayCardBackground,
621
- style: {
622
- zIndex: 0
623
- },
624
- children: n ? H : i ? S : void 0
625
- })
626
- }),
627
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
628
- className: _cardcssmistica.displayCardContent,
629
- style: {
630
- paddingTop: R && !o && !le ? 0 : 24,
631
- zIndex: 1
632
- },
633
- children: [
634
- o ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
635
- paddingBottom: R ? 0 : 40,
636
- paddingX: 24,
637
- children: o
638
- }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
639
- paddingBottom: g != null && g.length || x ? R ? 24 : 64 : 0
640
- }),
641
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
642
- paddingX: 24,
643
- paddingTop: R ? 40 : 0,
644
- paddingBottom: 24,
645
- className: R ? _cardcssmistica.displayCardGradient : void 0,
646
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
647
- space: 24,
694
+ const F = (0, _themevariantcontext.useIsInverseVariant)(), A = !!a || !!i, Z = A ? "0 0 16px rgba(0,0,0,0.4)" : void 0, ye = (c == null ? void 0 : c.length) || S, ge = M.href || M.to || M.onPress, Ce = a || i ? _cardcssmistica.touchableCardOverlayMedia : r ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
695
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(W, {
696
+ width: b,
697
+ height: z,
698
+ aspectRatio: O,
699
+ "aria-label": R,
700
+ minWidth: Ue,
701
+ className: _cardcssmistica.touchableContainer,
702
+ children: [
703
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
704
+ borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
705
+ className: _cardcssmistica.boxed,
706
+ dataAttributes: N,
707
+ ref: G,
708
+ width: "100%",
709
+ minHeight: "100%",
710
+ isInverse: r,
711
+ background: a || i ? F ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
712
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
713
+ maybe: !0
714
+ }, M), {
715
+ className: _cardcssmistica.touchable,
716
+ "aria-label": R,
717
+ children: [
718
+ ge && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
719
+ className: Ce
720
+ }),
721
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
722
+ className: _cardcssmistica.displayCardContainer,
723
+ children: [
724
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
725
+ isInverse: F,
726
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
727
+ className: _cardcssmistica.displayCardBackground,
728
+ children: i ? X : a ? B : void 0
729
+ })
730
+ }),
731
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
732
+ className: _cardcssmistica.displayCardContent,
733
+ style: {
734
+ paddingTop: A && !o && !ye ? 0 : 24
735
+ },
648
736
  children: [
649
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
650
- children: [
651
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
652
- space: 8,
653
- children: [
654
- (p || c || a) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
655
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
656
- space: 16,
737
+ o ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
738
+ paddingBottom: A ? 0 : 40,
739
+ paddingX: 24,
740
+ children: o
741
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
742
+ paddingBottom: c != null && c.length || S ? A ? 24 : 64 : 0
743
+ }),
744
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
745
+ paddingX: 24,
746
+ paddingTop: A ? 40 : 0,
747
+ paddingBottom: 24,
748
+ className: A ? _cardcssmistica.displayCardGradient : void 0,
749
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
750
+ space: 24,
751
+ children: [
752
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
753
+ children: [
754
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
755
+ space: 8,
657
756
  children: [
658
- p,
659
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
660
- space: 4,
661
- children: [
662
- c && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
663
- forceMobileSizes: !0,
664
- truncate: d,
665
- as: "div",
666
- regular: !0,
667
- textShadow: O,
668
- children: c
669
- }),
670
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
671
- forceMobileSizes: !0,
672
- truncate: h,
673
- as: "h3",
674
- textShadow: O,
675
- hyphens: "auto",
676
- children: a
677
- })
678
- ]
757
+ (u || h || t) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
758
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
759
+ space: 16,
760
+ children: [
761
+ u,
762
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
763
+ space: 4,
764
+ children: [
765
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
766
+ forceMobileSizes: !0,
767
+ truncate: d,
768
+ as: "div",
769
+ regular: !0,
770
+ textShadow: Z,
771
+ children: h
772
+ }),
773
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
774
+ forceMobileSizes: !0,
775
+ truncate: p,
776
+ as: "h3",
777
+ textShadow: Z,
778
+ hyphens: "auto",
779
+ children: t
780
+ })
781
+ ]
782
+ })
783
+ ]
784
+ })
785
+ }),
786
+ m && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
787
+ forceMobileSizes: !0,
788
+ truncate: f,
789
+ as: "p",
790
+ regular: !0,
791
+ color: _skincontractcssmistica.vars.colors.textSecondary,
792
+ textShadow: Z,
793
+ hyphens: "auto",
794
+ children: m
679
795
  })
680
796
  ]
681
- })
682
- }),
683
- u && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
684
- forceMobileSizes: !0,
685
- truncate: m,
686
- as: "p",
687
- regular: !0,
688
- color: _skincontractcssmistica.vars.colors.textSecondary,
689
- textShadow: O,
690
- hyphens: "auto",
691
- children: u
692
- })
693
- ]
694
- }),
695
- v
696
- ]
697
- }),
698
- (I || T || N) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
699
- primaryButton: I,
700
- secondaryButton: T,
701
- link: N
797
+ }),
798
+ g
799
+ ]
800
+ }),
801
+ (x || C || w) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
802
+ primaryButton: x,
803
+ secondaryButton: C,
804
+ link: w
805
+ })
806
+ ]
807
+ })
702
808
  })
703
809
  ]
704
810
  })
705
- })
706
- ]
707
- })
708
- ]
811
+ ]
812
+ })
813
+ ]
814
+ }))
815
+ }),
816
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(V, {
817
+ onClose: S,
818
+ actions: c,
819
+ type: a || i ? "media" : r ? "inverse" : "default"
709
820
  })
710
- })
821
+ ]
711
822
  });
712
- }), dr = /*#__PURE__*/ _react.forwardRef((_param, n)=>/* @__PURE__ */ {
713
- var { dataAttributes: r } = _param, i = _object_without_properties(_param, [
823
+ }), vr = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
824
+ var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
714
825
  "dataAttributes"
715
826
  ]);
716
- return (0, _jsxruntime.jsx)(de, _object_spread_props(_object_spread({}, i), {
717
- ref: n,
827
+ return (0, _jsxruntime.jsx)(ve, _object_spread_props(_object_spread({}, a), {
828
+ ref: i,
718
829
  isInverse: !0,
719
830
  dataAttributes: _object_spread_props(_object_spread({}, r), {
720
831
  "component-name": "DisplayMediaCard"
721
832
  })
722
833
  }));
723
- }), lr = /*#__PURE__*/ _react.forwardRef((_param, n)=>/* @__PURE__ */ {
724
- var { dataAttributes: r } = _param, i = _object_without_properties(_param, [
834
+ }), yr = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
835
+ var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
725
836
  "dataAttributes"
726
837
  ]);
727
- return (0, _jsxruntime.jsx)(de, _object_spread_props(_object_spread({}, i), {
728
- ref: n,
838
+ return (0, _jsxruntime.jsx)(ve, _object_spread_props(_object_spread({}, a), {
839
+ ref: i,
729
840
  dataAttributes: _object_spread_props(_object_spread({}, r), {
730
841
  "component-name": "DisplayDataCard"
731
842
  })
732
843
  }));
733
- }), Ee = 140, _e = 112, cr = /*#__PURE__*/ _react.forwardRef((param, z)=>{
734
- let { dataAttributes: r , backgroundImage: i , backgroundVideo: n , poster: s , backgroundVideoRef: l , width: o , height: p , aspectRatio: c = "7:10" , ariaLabel: d , actions: a , onClose: h , icon: u , headline: m , pretitle: v , pretitleLinesMax: I , title: T , titleLinesMax: x , description: g , descriptionLinesMax: N } = param;
735
- const A = ae(i), { video: D , videoStatus: B , onVideoControlPress: W } = te(n, s, l);
736
- n && (a = [
844
+ }), Ve = 140, gr = /*#__PURE__*/ _react.forwardRef((_param, b)=>{
845
+ var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: s , backgroundVideoRef: l , width: o , height: u , aspectRatio: h = "7:10" , ariaLabel: d , actions: t , onClose: p , icon: m , headline: f , pretitle: g , pretitleLinesMax: x , title: C , titleLinesMax: S , description: c , descriptionLinesMax: w } = _param, N = _object_without_properties(_param, [
846
+ "dataAttributes",
847
+ "backgroundImage",
848
+ "backgroundVideo",
849
+ "poster",
850
+ "backgroundVideoRef",
851
+ "width",
852
+ "height",
853
+ "aspectRatio",
854
+ "ariaLabel",
855
+ "actions",
856
+ "onClose",
857
+ "icon",
858
+ "headline",
859
+ "pretitle",
860
+ "pretitleLinesMax",
861
+ "title",
862
+ "titleLinesMax",
863
+ "description",
864
+ "descriptionLinesMax"
865
+ ]);
866
+ const z = me(a), { video: O , videoStatus: R , onVideoControlPress: M } = pe(i, s, l);
867
+ i && (t = [
737
868
  {
738
- Icon: oe(B),
739
- onPress: W,
869
+ Icon: ue(R),
870
+ onPress: M,
740
871
  label: "Video controls",
741
- iconSize: B === "loadingTimeout" ? 16 : 12,
872
+ iconSize: R === "loadingTimeout" ? 16 : 12,
742
873
  iconColor: _skincontractcssmistica.vars.colors.inverse,
743
874
  iconBackground: _cardcssmistica.videoAction,
744
875
  iconBackgroundInverse: _cardcssmistica.videoAction
745
876
  }
746
877
  ]);
747
- const M = (0, _themevariantcontext.useIsInverseVariant)(), S = !!i || !!n, H = S ? "0 0 16px rgba(0,0,0,0.4)" : void 0, E = (a == null ? void 0 : a.length) || h, { textPresets: k } = (0, _hooks.useTheme)();
748
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
878
+ const G = (0, _themevariantcontext.useIsInverseVariant)(), B = !!a || !!i, X = B ? "0 0 16px rgba(0,0,0,0.4)" : void 0, j = (t == null ? void 0 : t.length) || p, { textPresets: Y } = (0, _hooks.useTheme)(), F = N.href || N.to || N.onPress, A = _cardcssmistica.touchableCardOverlayMedia;
879
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(W, {
749
880
  width: o,
750
- height: p,
751
- minWidth: Ee,
752
- minHeight: _e,
753
- aspectRatio: c,
754
- onClose: h,
755
- actions: a,
881
+ height: u,
882
+ minWidth: Ve,
883
+ aspectRatio: h,
756
884
  "aria-label": d,
757
- isInverse: !0,
758
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
759
- borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
760
- className: _cardcssmistica.boxed,
761
- dataAttributes: r,
762
- ref: z,
763
- width: "100%",
764
- minHeight: "100%",
765
- isInverse: !0,
766
- background: i || n ? M ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
767
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
768
- className: _cardcssmistica.displayCardContainer,
769
- children: [
770
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
771
- isInverse: M,
772
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
773
- className: _cardcssmistica.displayCardBackground,
774
- style: {
775
- zIndex: 0
776
- },
777
- children: n ? D : i ? A : void 0
778
- })
779
- }),
780
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
781
- className: _cardcssmistica.displayCardContent,
782
- style: {
783
- paddingTop: S && !u && !E ? 0 : 24,
784
- zIndex: 1
785
- },
786
- children: [
787
- u ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
788
- paddingBottom: S ? 0 : 40,
789
- paddingX: 24,
790
- children: u
791
- }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
792
- paddingBottom: a != null && a.length || h ? S ? 24 : 64 : 0
793
- }),
794
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
795
- paddingX: 16,
796
- paddingTop: S ? 40 : 0,
797
- paddingBottom: 24,
798
- className: S ? _cardcssmistica.displayCardGradient : void 0,
799
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
800
- space: 24,
885
+ className: _cardcssmistica.touchableContainer,
886
+ children: [
887
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
888
+ borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
889
+ className: _cardcssmistica.boxed,
890
+ dataAttributes: r,
891
+ ref: b,
892
+ width: "100%",
893
+ minHeight: "100%",
894
+ isInverse: !0,
895
+ background: a || i ? G ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
896
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
897
+ maybe: !0
898
+ }, N), {
899
+ className: _cardcssmistica.touchable,
900
+ "aria-label": d,
901
+ children: [
902
+ F && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
903
+ className: A
904
+ }),
905
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
906
+ className: _cardcssmistica.displayCardContainer,
907
+ children: [
908
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
909
+ isInverse: G,
801
910
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
802
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
803
- space: 8,
804
- children: [
805
- (m || v || T) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
911
+ className: _cardcssmistica.displayCardBackground,
912
+ children: i ? O : a ? z : void 0
913
+ })
914
+ }),
915
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
916
+ className: _cardcssmistica.displayCardContent,
917
+ style: {
918
+ paddingTop: B && !m && !j ? 0 : 24
919
+ },
920
+ children: [
921
+ m ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
922
+ paddingBottom: B ? 0 : 40,
923
+ paddingX: 24,
924
+ children: m
925
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
926
+ paddingBottom: t != null && t.length || p ? B ? 24 : 64 : 0
927
+ }),
928
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
929
+ paddingX: 16,
930
+ paddingTop: B ? 40 : 0,
931
+ paddingBottom: 24,
932
+ className: B ? _cardcssmistica.displayCardGradient : void 0,
933
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
934
+ space: 24,
935
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
806
936
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
807
- space: 16,
937
+ space: 8,
808
938
  children: [
809
- m,
810
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
811
- space: 4,
812
- children: [
813
- v && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
814
- forceMobileSizes: !0,
815
- truncate: I,
816
- as: "div",
817
- regular: !0,
818
- textShadow: H,
819
- hyphens: "auto",
820
- children: v
821
- }),
822
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
823
- desktopSize: 20,
824
- mobileSize: 18,
825
- mobileLineHeight: "24px",
826
- desktopLineHeight: "28px",
827
- truncate: x,
828
- weight: k.cardTitle.weight,
829
- as: "h3",
830
- hyphens: "auto",
831
- children: T
832
- })
833
- ]
939
+ (f || g || C) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
940
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
941
+ space: 16,
942
+ children: [
943
+ f,
944
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
945
+ space: 4,
946
+ children: [
947
+ g && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
948
+ forceMobileSizes: !0,
949
+ truncate: x,
950
+ as: "div",
951
+ regular: !0,
952
+ textShadow: X,
953
+ hyphens: "auto",
954
+ children: g
955
+ }),
956
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
957
+ desktopSize: 20,
958
+ mobileSize: 18,
959
+ mobileLineHeight: "24px",
960
+ desktopLineHeight: "28px",
961
+ truncate: S,
962
+ weight: Y.cardTitle.weight,
963
+ as: "h3",
964
+ hyphens: "auto",
965
+ children: C
966
+ })
967
+ ]
968
+ })
969
+ ]
970
+ })
971
+ }),
972
+ c && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
973
+ forceMobileSizes: !0,
974
+ truncate: w,
975
+ as: "p",
976
+ regular: !0,
977
+ textShadow: X,
978
+ hyphens: "auto",
979
+ children: c
834
980
  })
835
981
  ]
836
982
  })
837
- }),
838
- g && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
839
- forceMobileSizes: !0,
840
- truncate: N,
841
- as: "p",
842
- regular: !0,
843
- textShadow: H,
844
- hyphens: "auto",
845
- children: g
846
983
  })
847
- ]
984
+ })
848
985
  })
849
- })
986
+ ]
850
987
  })
851
- })
852
- ]
853
- })
854
- ]
988
+ ]
989
+ })
990
+ ]
991
+ }))
992
+ }),
993
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(V, {
994
+ onClose: p,
995
+ actions: t,
996
+ type: "media"
855
997
  })
856
- })
998
+ ]
857
999
  });
858
1000
  });