@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.
- package/css/mistica.css +1 -1
- package/dist/boxed.css-mistica.js +4 -4
- package/dist/boxed.css.d.ts +1 -1
- package/dist/boxed.js +12 -14
- package/dist/card.css-mistica.js +27 -12
- package/dist/card.css.d.ts +7 -0
- package/dist/card.d.ts +36 -34
- package/dist/card.js +611 -469
- package/dist/fixed-footer-layout.js +8 -7
- package/dist/generated/mistica-icons/icon-alert-filled.js +15 -5
- package/dist/generated/mistica-icons/icon-alert-light.js +24 -8
- package/dist/generated/mistica-icons/icon-alert-regular.js +30 -14
- package/dist/generated/mistica-icons/icon-bell-filled.js +19 -9
- package/dist/generated/mistica-icons/icon-bell-light.js +16 -6
- package/dist/generated/mistica-icons/icon-bell-regular.js +19 -9
- package/dist/generated/mistica-icons/icon-dollar-symbol-circle-light.js +28 -11
- package/dist/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +20 -9
- package/dist/generated/mistica-icons/icon-edit-pencil-light.js +21 -10
- package/dist/generated/mistica-icons/icon-edit-pencil-regular.js +22 -12
- package/dist/generated/mistica-icons/icon-gift-filled.js +19 -9
- package/dist/generated/mistica-icons/icon-gift-light.js +20 -10
- package/dist/generated/mistica-icons/icon-gift-regular.js +19 -9
- package/dist/generated/mistica-icons/icon-heart-filled.js +16 -6
- package/dist/generated/mistica-icons/icon-heart-light.js +18 -8
- package/dist/generated/mistica-icons/icon-heart-regular.js +24 -14
- package/dist/generated/mistica-icons/icon-home-filled.js +23 -13
- package/dist/generated/mistica-icons/icon-home-light.js +24 -14
- package/dist/generated/mistica-icons/icon-home-regular.js +21 -11
- package/dist/generated/mistica-icons/icon-home-wifi-filled.js +24 -7
- package/dist/generated/mistica-icons/icon-home-wifi-light.js +25 -8
- package/dist/generated/mistica-icons/icon-home-wifi-regular.js +24 -7
- package/dist/generated/mistica-icons/icon-pause-regular.js +10 -12
- package/dist/generated/mistica-icons/icon-play-regular.js +14 -16
- package/dist/generated/mistica-icons/icon-reload-light.js +22 -12
- package/dist/generated/mistica-icons/icon-reload-regular.js +24 -14
- package/dist/generated/mistica-icons/icon-share-filled.js +20 -10
- package/dist/generated/mistica-icons/icon-share-light.js +21 -11
- package/dist/generated/mistica-icons/icon-share-regular.js +21 -11
- package/dist/generated/mistica-icons/icon-shopping-bag-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-filled.js +110 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-light.js +110 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-regular.js +110 -0
- package/dist/generated/mistica-icons/icon-tickets-filled.js +17 -7
- package/dist/generated/mistica-icons/icon-tickets-light.js +26 -10
- package/dist/generated/mistica-icons/icon-tickets-regular.js +35 -19
- package/dist/hooks.js +57 -56
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -1
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.js +14 -2
- package/dist/skins/defaults.js +12 -0
- package/dist/skins/movistar-legacy.js +15 -3
- package/dist/skins/movistar.js +12 -0
- package/dist/skins/o2.js +13 -1
- package/dist/skins/telefonica.js +12 -0
- package/dist/skins/types/index.d.ts +1 -1
- package/dist/skins/vivo-new.js +12 -0
- package/dist/skins/vivo.js +13 -1
- package/dist/theme-context-provider.js +34 -30
- package/dist/tooltip.js +35 -34
- package/dist/utils/dom.js +10 -10
- package/dist/utils/environment.d.ts +1 -0
- package/dist/utils/environment.js +12 -4
- package/dist-es/boxed.css-mistica.js +3 -3
- package/dist-es/boxed.js +16 -18
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +652 -511
- package/dist-es/fixed-footer-layout.js +18 -17
- package/dist-es/generated/mistica-icons/icon-alert-filled.js +18 -8
- package/dist-es/generated/mistica-icons/icon-alert-light.js +30 -14
- package/dist-es/generated/mistica-icons/icon-alert-regular.js +36 -20
- package/dist-es/generated/mistica-icons/icon-bell-filled.js +26 -16
- package/dist-es/generated/mistica-icons/icon-bell-light.js +20 -10
- package/dist-es/generated/mistica-icons/icon-bell-regular.js +20 -10
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-light.js +33 -16
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +25 -14
- package/dist-es/generated/mistica-icons/icon-edit-pencil-light.js +25 -14
- package/dist-es/generated/mistica-icons/icon-edit-pencil-regular.js +30 -20
- package/dist-es/generated/mistica-icons/icon-gift-filled.js +22 -12
- package/dist-es/generated/mistica-icons/icon-gift-light.js +23 -13
- package/dist-es/generated/mistica-icons/icon-gift-regular.js +22 -12
- package/dist-es/generated/mistica-icons/icon-heart-filled.js +18 -8
- package/dist-es/generated/mistica-icons/icon-heart-light.js +24 -14
- package/dist-es/generated/mistica-icons/icon-heart-regular.js +25 -15
- package/dist-es/generated/mistica-icons/icon-home-filled.js +30 -20
- package/dist-es/generated/mistica-icons/icon-home-light.js +27 -17
- package/dist-es/generated/mistica-icons/icon-home-regular.js +27 -17
- package/dist-es/generated/mistica-icons/icon-home-wifi-filled.js +28 -11
- package/dist-es/generated/mistica-icons/icon-home-wifi-light.js +29 -12
- package/dist-es/generated/mistica-icons/icon-home-wifi-regular.js +28 -11
- package/dist-es/generated/mistica-icons/icon-pause-regular.js +12 -14
- package/dist-es/generated/mistica-icons/icon-play-regular.js +19 -21
- package/dist-es/generated/mistica-icons/icon-reload-light.js +27 -17
- package/dist-es/generated/mistica-icons/icon-reload-regular.js +27 -17
- package/dist-es/generated/mistica-icons/icon-share-filled.js +25 -15
- package/dist-es/generated/mistica-icons/icon-share-light.js +28 -18
- package/dist-es/generated/mistica-icons/icon-share-regular.js +28 -18
- package/dist-es/generated/mistica-icons/icon-shopping-bag-filled.js +101 -0
- package/dist-es/generated/mistica-icons/icon-shopping-bag-light.js +101 -0
- package/dist-es/generated/mistica-icons/icon-shopping-bag-regular.js +101 -0
- package/dist-es/generated/mistica-icons/icon-tickets-filled.js +21 -11
- package/dist-es/generated/mistica-icons/icon-tickets-light.js +30 -14
- package/dist-es/generated/mistica-icons/icon-tickets-regular.js +43 -27
- package/dist-es/hooks.js +51 -50
- package/dist-es/index.js +1762 -1758
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +14 -2
- package/dist-es/skins/defaults.js +12 -0
- package/dist-es/skins/movistar-legacy.js +15 -3
- package/dist-es/skins/movistar.js +12 -0
- package/dist-es/skins/o2.js +13 -1
- package/dist-es/skins/telefonica.js +12 -0
- package/dist-es/skins/vivo-new.js +12 -0
- package/dist-es/skins/vivo.js +13 -1
- package/dist-es/style.css +1 -1
- package/dist-es/theme-context-provider.js +72 -68
- package/dist-es/tooltip.js +37 -36
- package/dist-es/utils/dom.js +9 -9
- package/dist-es/utils/environment.js +2 -2
- package/package.json +1 -1
- package/dist/boxed.css.ts.vanilla.css-mistica.js +0 -11
- 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
|
|
13
|
+
return pr;
|
|
14
14
|
},
|
|
15
15
|
DisplayDataCard: function() {
|
|
16
|
-
return
|
|
16
|
+
return yr;
|
|
17
17
|
},
|
|
18
18
|
DisplayMediaCard: function() {
|
|
19
|
-
return
|
|
19
|
+
return vr;
|
|
20
20
|
},
|
|
21
21
|
MediaCard: function() {
|
|
22
|
-
return
|
|
22
|
+
return ur;
|
|
23
23
|
},
|
|
24
24
|
PosterCard: function() {
|
|
25
|
-
return
|
|
25
|
+
return gr;
|
|
26
26
|
},
|
|
27
27
|
SnapCard: function() {
|
|
28
|
-
return
|
|
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
|
|
178
|
-
|
|
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
|
|
208
|
-
label:
|
|
209
|
-
onPress:
|
|
180
|
+
return a && s.push({
|
|
181
|
+
label: i.closeButtonLabel,
|
|
182
|
+
onPress: a,
|
|
210
183
|
Icon: _iconcloseregular.default
|
|
211
184
|
}), s;
|
|
212
|
-
},
|
|
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
|
-
},
|
|
219
|
-
let { children: r , width:
|
|
220
|
-
const h =
|
|
221
|
-
return /* @__PURE__ */ (0, _jsxruntime.
|
|
222
|
-
"aria-label":
|
|
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:
|
|
225
|
-
height:
|
|
243
|
+
width: a,
|
|
244
|
+
height: i,
|
|
226
245
|
minWidth: s,
|
|
227
|
-
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
288
|
-
const s = _react.useRef(null), [l, o] = _react.useReducer(
|
|
291
|
+
}, pe = (r, a, i)=>{
|
|
292
|
+
const s = _react.useRef(null), [l, o] = _react.useReducer(ke, "loading");
|
|
289
293
|
return _react.useEffect(()=>{
|
|
290
|
-
var
|
|
294
|
+
var t;
|
|
291
295
|
const d = setTimeout(()=>o("showSpinner"), 2e3);
|
|
292
|
-
return (
|
|
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,
|
|
303
|
+
ref: (0, _common.combineRefs)(s, i),
|
|
300
304
|
src: r,
|
|
301
305
|
width: "100%",
|
|
302
306
|
height: "100%",
|
|
303
|
-
poster:
|
|
307
|
+
poster: a,
|
|
304
308
|
onError: ()=>o("fail"),
|
|
305
309
|
onPause: ()=>o("pause"),
|
|
306
310
|
onPlay: ()=>o("play")
|
|
307
311
|
}) : void 0, [
|
|
308
|
-
|
|
312
|
+
i,
|
|
309
313
|
r,
|
|
310
|
-
|
|
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
|
-
},
|
|
319
|
-
let { headline: r , pretitle:
|
|
320
|
-
const { textPresets:
|
|
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 ||
|
|
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
|
-
|
|
345
|
+
g(),
|
|
342
346
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
343
347
|
space: 4,
|
|
344
348
|
children: [
|
|
345
|
-
|
|
346
|
-
truncate:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
385
|
+
children: h
|
|
382
386
|
})
|
|
383
387
|
]
|
|
384
388
|
}),
|
|
385
|
-
|
|
386
|
-
children:
|
|
389
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
390
|
+
children: t
|
|
387
391
|
})
|
|
388
392
|
]
|
|
389
393
|
}),
|
|
390
|
-
(
|
|
394
|
+
(p || m) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
391
395
|
className: _cardcssmistica.actions,
|
|
392
396
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
393
|
-
primaryButton:
|
|
394
|
-
link:
|
|
397
|
+
primaryButton: p,
|
|
398
|
+
link: m
|
|
395
399
|
})
|
|
396
400
|
})
|
|
397
401
|
]
|
|
398
402
|
});
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
"
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
}),
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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.
|
|
454
|
-
"aria-label":
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
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
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
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
|
-
}),
|
|
518
|
-
var { icon: r , title:
|
|
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
|
|
530
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
531
|
-
className: _cardcssmistica.
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
557
|
-
|
|
558
|
-
|
|
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
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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
|
-
}),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
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:
|
|
588
|
-
onPress:
|
|
685
|
+
Icon: ue(j),
|
|
686
|
+
onPress: Y,
|
|
589
687
|
label: "Video controls",
|
|
590
|
-
iconSize:
|
|
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
|
|
597
|
-
return /* @__PURE__ */ (0, _jsxruntime.
|
|
598
|
-
width:
|
|
599
|
-
height:
|
|
600
|
-
aspectRatio:
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
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.
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
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
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
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
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
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
|
-
}),
|
|
713
|
-
var { dataAttributes: r } = _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)(
|
|
717
|
-
ref:
|
|
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
|
-
}),
|
|
724
|
-
var { dataAttributes: r } = _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)(
|
|
728
|
-
ref:
|
|
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
|
-
}),
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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:
|
|
739
|
-
onPress:
|
|
869
|
+
Icon: ue(R),
|
|
870
|
+
onPress: M,
|
|
740
871
|
label: "Video controls",
|
|
741
|
-
iconSize:
|
|
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
|
|
748
|
-
return /* @__PURE__ */ (0, _jsxruntime.
|
|
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:
|
|
751
|
-
minWidth:
|
|
752
|
-
|
|
753
|
-
aspectRatio: c,
|
|
754
|
-
onClose: h,
|
|
755
|
-
actions: a,
|
|
881
|
+
height: u,
|
|
882
|
+
minWidth: Ve,
|
|
883
|
+
aspectRatio: h,
|
|
756
884
|
"aria-label": d,
|
|
757
|
-
|
|
758
|
-
children:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
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
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
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:
|
|
937
|
+
space: 8,
|
|
808
938
|
children: [
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
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
|
});
|