@telefonica/mistica 14.3.0 → 14.4.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.
package/dist/card.js CHANGED
@@ -9,11 +9,11 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DataCard: ()=>ze,
13
- DisplayDataCard: ()=>Ie,
14
- DisplayMediaCard: ()=>ke,
15
- MediaCard: ()=>Re,
16
- SnapCard: ()=>He
12
+ DataCard: ()=>De,
13
+ DisplayDataCard: ()=>Me,
14
+ DisplayMediaCard: ()=>Ie,
15
+ MediaCard: ()=>Be,
16
+ SnapCard: ()=>Re
17
17
  });
18
18
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
19
19
  const _tagJs = /*#__PURE__*/ _interopRequireDefault(require("./tag.js"));
@@ -23,7 +23,6 @@ const _textJs = require("./text.js");
23
23
  const _boxedJs = require("./boxed.js");
24
24
  const _buttonGroupJs = /*#__PURE__*/ _interopRequireDefault(require("./button-group.js"));
25
25
  const _imageJs = require("./image.js");
26
- const _maybeDismissableJs = /*#__PURE__*/ _interopRequireWildcard(require("./maybe-dismissable.js"));
27
26
  const _touchableJs = require("./touchable.js");
28
27
  const _skinContractCssMisticaJs = require("./skins/skin-contract.css-mistica.js");
29
28
  const _cardCssMisticaJs = require("./card.css-mistica.js");
@@ -156,9 +155,75 @@ function _objectWithoutPropertiesLoose(source, excluded) {
156
155
  }
157
156
  return target;
158
157
  }
159
- const z = (param)=>{
160
- let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: n , subtitle: l , subtitleLinesMax: p , description: s , descriptionLinesMax: c , extra: o , button: u , buttonLink: m } = param;
161
- const { textPresets: f } = (0, _hooksJs.useTheme)(), b = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
158
+ const W = (param)=>/* @__PURE__ */ {
159
+ let { actions: r , isInverse: a } = param;
160
+ return (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
161
+ space: 0,
162
+ children: r.map((param, d)=>/* @__PURE__ */ {
163
+ let { onPress: i , label: t , Icon: o } = param;
164
+ return (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
165
+ size: 48,
166
+ onPress: i,
167
+ "aria-label": t,
168
+ className: _cardCssMisticaJs.cardActionIconButton,
169
+ style: {
170
+ display: "flex"
171
+ },
172
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
173
+ className: a ? _cardCssMisticaJs.cardActionInverse : _cardCssMisticaJs.cardAction,
174
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(o, {
175
+ color: _skinContractCssMisticaJs.vars.colors.neutralHigh,
176
+ size: 20
177
+ })
178
+ })
179
+ }, d);
180
+ })
181
+ });
182
+ }, P = (r, a)=>{
183
+ const { texts: i } = (0, _hooksJs.useTheme)(), t = r ? [
184
+ ...r
185
+ ] : [];
186
+ return a && t.push({
187
+ label: i.closeButtonLabel,
188
+ onPress: a,
189
+ Icon: _iconCloseRegularJs.default
190
+ }), t;
191
+ }, se = {
192
+ "1:1": "1",
193
+ "16:9": "16 / 9",
194
+ "7:10": "7 / 10",
195
+ "9:10": "9 / 10",
196
+ auto: "auto"
197
+ }, X = (param)=>{
198
+ let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: o , onClose: d , isInverse: p , "aria-label": s } = param;
199
+ const l = P(o, d), c = l.length > 0, h = t ? typeof t == "number" ? String(t) : se[t] : void 0;
200
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
201
+ "aria-label": s,
202
+ style: {
203
+ width: a,
204
+ height: i,
205
+ aspectRatio: h,
206
+ position: "relative"
207
+ },
208
+ children: [
209
+ r,
210
+ c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
211
+ style: {
212
+ position: "absolute",
213
+ right: 8,
214
+ top: 8,
215
+ zIndex: 2
216
+ },
217
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(W, {
218
+ actions: l,
219
+ isInverse: p
220
+ })
221
+ })
222
+ ]
223
+ });
224
+ }, _ = (param)=>{
225
+ let { headline: r , pretitle: a , pretitleLinesMax: i , title: t , titleLinesMax: o , subtitle: d , subtitleLinesMax: p , description: s , descriptionLinesMax: l , extra: c , button: h , buttonLink: m } = param;
226
+ const { textPresets: u } = (0, _hooksJs.useTheme)(), g = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_tagJs.default, {
162
227
  type: "promo",
163
228
  children: r
164
229
  }) : r : null;
@@ -175,11 +240,11 @@ const z = (param)=>{
175
240
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
176
241
  space: 8,
177
242
  children: [
178
- (r || a || t || l) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
243
+ (r || a || t || d) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
179
244
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
180
245
  space: 8,
181
246
  children: [
182
- b(),
247
+ g(),
183
248
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
184
249
  space: 4,
185
250
  children: [
@@ -194,8 +259,8 @@ const z = (param)=>{
194
259
  mobileLineHeight: "24px",
195
260
  desktopSize: 20,
196
261
  desktopLineHeight: "28px",
197
- truncate: n,
198
- weight: f.cardTitle.weight,
262
+ truncate: o,
263
+ weight: u.cardTitle.weight,
199
264
  as: "h3",
200
265
  children: t
201
266
  }),
@@ -203,7 +268,7 @@ const z = (param)=>{
203
268
  truncate: p,
204
269
  as: "div",
205
270
  regular: !0,
206
- children: l
271
+ children: d
207
272
  })
208
273
  ]
209
274
  })
@@ -211,7 +276,7 @@ const z = (param)=>{
211
276
  })
212
277
  }),
213
278
  s && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
214
- truncate: c,
279
+ truncate: l,
215
280
  as: "p",
216
281
  regular: !0,
217
282
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
@@ -219,48 +284,37 @@ const z = (param)=>{
219
284
  })
220
285
  ]
221
286
  }),
222
- o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
223
- children: o
287
+ c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
288
+ children: c
224
289
  })
225
290
  ]
226
291
  }),
227
- (u || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
292
+ (h || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
228
293
  className: _cardCssMisticaJs.actions,
229
294
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
230
- primaryButton: u,
295
+ primaryButton: h,
231
296
  link: m
232
297
  })
233
298
  })
234
299
  ]
235
300
  });
236
- }, H = (param)=>{
237
- let { "aria-label": r , className: a , style: i , children: t } = param;
238
- return (0, _maybeDismissableJs.useIsDismissable)() ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
239
- className: a,
240
- style: i,
241
- children: t
242
- }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("section", {
243
- className: a,
244
- style: i,
245
- "aria-label": r,
246
- children: t
247
- });
248
- }, Re = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
249
- let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: n , subtitleLinesMax: l , title: p , titleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: b , "aria-label": h , onClose: C } = param;
250
- return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
251
- onClose: C,
252
- "aria-label": h,
301
+ }, Be = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
302
+ let { media: r , headline: a , pretitle: i , pretitleLinesMax: t , subtitle: o , subtitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
303
+ return (0, _jsxRuntimeJs.jsx)(X, {
304
+ onClose: A,
305
+ actions: m,
306
+ "aria-label": x,
307
+ isInverse: !0,
253
308
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
254
309
  className: _cardCssMisticaJs.boxed,
255
310
  dataAttributes: _objectSpread({
256
311
  "component-name": "MediaCard"
257
- }, b),
312
+ }, f),
258
313
  ref: S,
259
314
  width: "100%",
260
315
  height: "100%",
261
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(H, {
316
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
262
317
  className: _cardCssMisticaJs.mediaCard,
263
- "aria-label": h,
264
318
  children: [
265
319
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_imageJs.MediaBorderRadiusProvider, {
266
320
  value: !1,
@@ -268,66 +322,105 @@ const z = (param)=>{
268
322
  }),
269
323
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
270
324
  className: _cardCssMisticaJs.mediaCardContent,
271
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
325
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_, {
272
326
  headline: a,
273
327
  pretitle: i,
274
328
  pretitleLinesMax: t,
275
329
  title: p,
276
330
  titleLinesMax: s,
277
- subtitle: n,
278
- subtitleLinesMax: l,
279
- description: c,
280
- descriptionLinesMax: o,
281
- extra: u,
282
- button: m,
283
- buttonLink: f
331
+ subtitle: o,
332
+ subtitleLinesMax: d,
333
+ description: l,
334
+ descriptionLinesMax: c,
335
+ extra: h,
336
+ button: u,
337
+ buttonLink: g
284
338
  })
285
339
  })
286
340
  ]
287
341
  })
288
342
  })
289
343
  });
290
- }), ze = /*#__PURE__*/ _react.forwardRef((param, S)=>/* @__PURE__ */ {
291
- let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: n , titleLinesMax: l , subtitle: p , subtitleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , buttonLink: f , dataAttributes: b , "aria-label": h , onClose: C } = param;
292
- return (0, _jsxRuntimeJs.jsx)(_maybeDismissableJs.default, {
293
- "aria-label": h,
294
- onClose: C,
344
+ }), De = /*#__PURE__*/ _react.forwardRef((param, S)=>{
345
+ let { icon: r , headline: a , pretitle: i , pretitleLinesMax: t , title: o , titleLinesMax: d , subtitle: p , subtitleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , actions: m , button: u , buttonLink: g , dataAttributes: f , "aria-label": x , onClose: A } = param;
346
+ const N = P(m, A), R = N.length > 0, w = !!r, I = {
347
+ position: "absolute",
348
+ top: 8,
349
+ right: 8,
350
+ zIndex: 2
351
+ }, y = {
352
+ marginRight: -8,
353
+ marginTop: -16
354
+ };
355
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("section", {
356
+ "aria-label": x,
357
+ style: {
358
+ height: "100%",
359
+ position: "relative"
360
+ },
295
361
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
296
362
  className: _cardCssMisticaJs.boxed,
297
363
  dataAttributes: _objectSpread({
298
364
  "component-name": "DataCard"
299
- }, b),
365
+ }, f),
300
366
  ref: S,
301
367
  width: "100%",
302
368
  height: "100%",
303
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(H, {
369
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
304
370
  className: _cardCssMisticaJs.dataCard,
305
- "aria-label": h,
306
371
  children: [
307
- r && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
308
- paddingBottom: 16,
309
- children: r
372
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
373
+ className: (0, _sprinklesCssMisticaJs.sprinkles)({
374
+ display: "flex",
375
+ flex: 1,
376
+ justifyContent: "space-between",
377
+ flexDirection: "row"
378
+ }),
379
+ children: [
380
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
381
+ space: 16,
382
+ className: (0, _sprinklesCssMisticaJs.sprinkles)({
383
+ flex: 1
384
+ }),
385
+ children: [
386
+ w ? r : null,
387
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_, {
388
+ headline: a,
389
+ pretitle: i,
390
+ pretitleLinesMax: t,
391
+ title: o,
392
+ titleLinesMax: d,
393
+ subtitle: p,
394
+ subtitleLinesMax: s,
395
+ description: l,
396
+ descriptionLinesMax: c
397
+ })
398
+ ]
399
+ }),
400
+ R && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
401
+ style: w ? I : y,
402
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(W, {
403
+ actions: N
404
+ })
405
+ })
406
+ ]
310
407
  }),
311
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(z, {
312
- headline: a,
313
- pretitle: i,
314
- pretitleLinesMax: t,
315
- title: n,
316
- titleLinesMax: l,
317
- subtitle: p,
318
- subtitleLinesMax: s,
319
- description: c,
320
- descriptionLinesMax: o,
321
- extra: u,
322
- button: m,
323
- buttonLink: f
408
+ h && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
409
+ children: h
410
+ }),
411
+ (u || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
412
+ className: _cardCssMisticaJs.actions,
413
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
414
+ primaryButton: u,
415
+ link: g
416
+ })
324
417
  })
325
418
  ]
326
419
  })
327
420
  })
328
421
  });
329
- }), He = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
330
- var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: n , dataAttributes: l , "aria-label": p , extra: s , isInverse: c = !1 } = _param, o = _objectWithoutProperties(_param, [
422
+ }), Re = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
423
+ var { icon: r , title: a , titleLinesMax: i , subtitle: t , subtitleLinesMax: o , dataAttributes: d , "aria-label": p , extra: s , isInverse: l = !1 } = _param, c = _objectWithoutProperties(_param, [
331
424
  "icon",
332
425
  "title",
333
426
  "titleLinesMax",
@@ -338,20 +431,20 @@ const z = (param)=>{
338
431
  "extra",
339
432
  "isInverse"
340
433
  ]);
341
- const { isDarkMode: m } = (0, _hooksJs.useTheme)(), f = Boolean(o.to || o.href || o.onPress);
434
+ const { isDarkMode: m } = (0, _hooksJs.useTheme)(), u = Boolean(c.to || c.href || c.onPress);
342
435
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.Boxed, {
343
436
  className: _cardCssMisticaJs.boxed,
344
437
  dataAttributes: _objectSpread({
345
438
  "component-name": "SnapCard"
346
- }, l),
347
- ref: u,
348
- isInverse: c,
439
+ }, d),
440
+ ref: h,
441
+ isInverse: l,
349
442
  width: "100%",
350
443
  height: "100%",
351
444
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({
352
445
  maybe: !0
353
- }, o), {
354
- className: f && !c && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
446
+ }, c), {
447
+ className: u && !l && !m ? _cardCssMisticaJs.snapCardTouchableHover : _cardCssMisticaJs.snapCardTouchableHoverTransparent,
355
448
  "aria-label": p,
356
449
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
357
450
  className: _cardCssMisticaJs.snapCard,
@@ -372,7 +465,7 @@ const z = (param)=>{
372
465
  children: a
373
466
  }),
374
467
  t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
375
- truncate: n,
468
+ truncate: o,
376
469
  regular: !0,
377
470
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
378
471
  as: "p",
@@ -389,86 +482,22 @@ const z = (param)=>{
389
482
  })
390
483
  }))
391
484
  });
392
- }), ce = (param)=>/* @__PURE__ */ {
393
- let { actions: r , isInverse: a } = param;
394
- return (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
395
- space: 0,
396
- children: r.map((param, l)=>/* @__PURE__ */ {
397
- let { onPress: i , label: t , Icon: n } = param;
398
- return (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
399
- size: 48,
400
- onPress: i,
401
- "aria-label": t,
402
- className: _cardCssMisticaJs.cardActionIconButton,
403
- style: {
404
- display: "flex"
405
- },
406
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
407
- className: a ? _cardCssMisticaJs.cardActionInverse : _cardCssMisticaJs.cardAction,
408
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, {
409
- color: _skinContractCssMisticaJs.vars.colors.neutralHigh,
410
- size: 20
411
- })
412
- })
413
- }, l);
414
- })
415
- });
416
- }, me = {
417
- "1:1": "1",
418
- "16:9": "16 / 9",
419
- "7:10": "7 / 10",
420
- "9:10": "9 / 10",
421
- auto: "auto"
422
- }, he = (param)=>{
423
- let { children: r , width: a = "100%" , height: i = "100%" , aspectRatio: t , actions: n , onClose: l , isInverse: p , "aria-label": s } = param;
424
- const { texts: c } = (0, _hooksJs.useTheme)(), o = n ? [
425
- ...n
426
- ] : [];
427
- l && o.push({
428
- label: c.closeButtonLabel,
429
- onPress: l,
430
- Icon: _iconCloseRegularJs.default
431
- });
432
- const u = o.length > 0, m = t ? typeof t == "number" ? String(t) : me[t] : void 0;
433
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("section", {
434
- "aria-label": s,
435
- style: {
436
- width: a,
437
- height: i,
438
- aspectRatio: m,
439
- position: "relative"
440
- },
441
- children: [
442
- r,
443
- u && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
444
- style: {
445
- position: "absolute",
446
- right: 8,
447
- top: 8
448
- },
449
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(ce, {
450
- actions: o,
451
- isInverse: p
452
- })
453
- })
454
- ]
455
- });
456
- }, k = /*#__PURE__*/ _react.forwardRef((param, X)=>{
457
- let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: n , pretitleLinesMax: l , title: p , titleLinesMax: s , description: c , descriptionLinesMax: o , extra: u , button: m , secondaryButton: f , onClose: b , actions: h , buttonLink: C , dataAttributes: S , width: I , height: G , aspectRatio: j , "aria-label": P } = param;
458
- const v = !!a, w = v ? "0 0 16px rgba(0,0,0,0.4)" : void 0, _ = (h == null ? void 0 : h.length) || b;
459
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(he, {
460
- width: I,
461
- height: G,
462
- aspectRatio: j,
463
- onClose: b,
464
- actions: h,
465
- "aria-label": P,
485
+ }), E = /*#__PURE__*/ _react.forwardRef((param, I)=>{
486
+ let { isInverse: r , backgroundImage: a , icon: i , headline: t , pretitle: o , pretitleLinesMax: d , title: p , titleLinesMax: s , description: l , descriptionLinesMax: c , extra: h , button: m , secondaryButton: u , onClose: g , actions: f , buttonLink: x , dataAttributes: A , width: S , height: N , aspectRatio: R , "aria-label": w } = param;
487
+ const y = !!a, M = y ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (f == null ? void 0 : f.length) || g;
488
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(X, {
489
+ width: S,
490
+ height: N,
491
+ aspectRatio: R,
492
+ onClose: g,
493
+ actions: f,
494
+ "aria-label": w,
466
495
  isInverse: r,
467
496
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxedJs.InternalBoxed, {
468
497
  borderRadius: 16,
469
498
  className: _cardCssMisticaJs.boxed,
470
- dataAttributes: S,
471
- ref: X,
499
+ dataAttributes: A,
500
+ ref: I,
472
501
  width: "100%",
473
502
  minHeight: "100%",
474
503
  isInverse: r,
@@ -477,21 +506,21 @@ const z = (param)=>{
477
506
  className: _cardCssMisticaJs.displayCard,
478
507
  style: {
479
508
  backgroundImage: a ? `url("${CSS.escape(a)}")` : void 0,
480
- paddingTop: v && !i && !_ ? 0 : 24
509
+ paddingTop: y && !i && !O ? 0 : 24
481
510
  },
482
511
  children: [
483
512
  i ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
484
- paddingBottom: v ? 0 : 40,
513
+ paddingBottom: y ? 0 : 40,
485
514
  paddingX: 24,
486
515
  children: i
487
516
  }) : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
488
- paddingBottom: (h == null ? void 0 : h.length) || b ? v ? 24 : 64 : 0
517
+ paddingBottom: (f == null ? void 0 : f.length) || g ? y ? 24 : 64 : 0
489
518
  }),
490
519
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
491
520
  paddingX: 24,
492
- paddingTop: v ? 40 : 0,
521
+ paddingTop: y ? 40 : 0,
493
522
  paddingBottom: 24,
494
- className: v ? _cardCssMisticaJs.displayCardGradient : void 0,
523
+ className: y ? _cardCssMisticaJs.displayCardGradient : void 0,
495
524
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
496
525
  space: 24,
497
526
  children: [
@@ -500,7 +529,7 @@ const z = (param)=>{
500
529
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
501
530
  space: 8,
502
531
  children: [
503
- (t || n || p) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
532
+ (t || o || p) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", {
504
533
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
505
534
  space: 16,
506
535
  children: [
@@ -508,19 +537,19 @@ const z = (param)=>{
508
537
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
509
538
  space: 4,
510
539
  children: [
511
- n && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
540
+ o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text2, {
512
541
  forceMobileSizes: !0,
513
- truncate: l,
542
+ truncate: d,
514
543
  as: "div",
515
544
  regular: !0,
516
- textShadow: w,
517
- children: n
545
+ textShadow: M,
546
+ children: o
518
547
  }),
519
548
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text6, {
520
549
  forceMobileSizes: !0,
521
550
  truncate: s,
522
551
  as: "h3",
523
- textShadow: w,
552
+ textShadow: M,
524
553
  children: p
525
554
  })
526
555
  ]
@@ -528,24 +557,24 @@ const z = (param)=>{
528
557
  ]
529
558
  })
530
559
  }),
531
- c && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
560
+ l && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
532
561
  forceMobileSizes: !0,
533
- truncate: o,
562
+ truncate: c,
534
563
  as: "p",
535
564
  regular: !0,
536
565
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
537
- textShadow: w,
538
- children: c
566
+ textShadow: M,
567
+ children: l
539
568
  })
540
569
  ]
541
570
  }),
542
- u
571
+ h
543
572
  ]
544
573
  }),
545
- (m || f || C) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
574
+ (m || u || x) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
546
575
  primaryButton: m,
547
- secondaryButton: f,
548
- link: C
576
+ secondaryButton: u,
577
+ link: x
549
578
  })
550
579
  ]
551
580
  })
@@ -554,22 +583,22 @@ const z = (param)=>{
554
583
  })
555
584
  })
556
585
  });
557
- }), ke = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
586
+ }), Ie = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
558
587
  var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
559
588
  "dataAttributes"
560
589
  ]);
561
- return (0, _jsxRuntimeJs.jsx)(k, _objectSpreadProps(_objectSpread({}, a), {
590
+ return (0, _jsxRuntimeJs.jsx)(E, _objectSpreadProps(_objectSpread({}, a), {
562
591
  ref: i,
563
592
  isInverse: !0,
564
593
  dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
565
594
  "component-name": "DisplayMediaCard"
566
595
  })
567
596
  }));
568
- }), Ie = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
597
+ }), Me = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
569
598
  var { dataAttributes: r } = _param, a = _objectWithoutProperties(_param, [
570
599
  "dataAttributes"
571
600
  ]);
572
- return (0, _jsxRuntimeJs.jsx)(k, _objectSpreadProps(_objectSpread({}, a), {
601
+ return (0, _jsxRuntimeJs.jsx)(E, _objectSpreadProps(_objectSpread({}, a), {
573
602
  ref: i,
574
603
  dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
575
604
  "component-name": "DisplayDataCard"