@telefonica/mistica 16.37.2 → 16.37.3
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/accordion.css-mistica.js +6 -6
- package/dist/align.css-mistica.js +1 -1
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +1 -1
- package/dist/box.css-mistica.js +13 -13
- package/dist/boxed.css-mistica.js +24 -24
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +13 -13
- package/dist/button.css-mistica.js +16 -16
- package/dist/callout.css-mistica.js +5 -5
- package/dist/card-internal.css-mistica.js +15 -15
- package/dist/card-internal.d.ts +1 -0
- package/dist/card-internal.js +364 -362
- package/dist/carousel.css-mistica.js +8 -8
- package/dist/checkbox.css-mistica.js +7 -7
- package/dist/chip.css-mistica.js +12 -12
- package/dist/circle.css-mistica.js +1 -1
- package/dist/community/advanced-data-card.css-mistica.js +6 -6
- package/dist/community/blocks.css-mistica.js +1 -1
- package/dist/community/example-component.css-mistica.js +1 -1
- package/dist/counter.css-mistica.js +1 -1
- package/dist/cover-hero.css-mistica.js +3 -3
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/date-field.css-mistica.js +1 -1
- package/dist/date-time-picker.css-mistica.js +1 -1
- package/dist/dialog.css-mistica.js +4 -4
- package/dist/divider.css-mistica.js +2 -2
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/drawer.css-mistica.js +1 -1
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +5 -5
- package/dist/fade-in.css-mistica.js +1 -1
- package/dist/feedback.css-mistica.js +1 -1
- package/dist/fixed-footer-layout.css-mistica.js +4 -4
- package/dist/form.css-mistica.js +1 -1
- package/dist/grid-layout.css-mistica.js +3 -3
- package/dist/grid.css-mistica.js +122 -122
- package/dist/header.css-mistica.js +1 -1
- package/dist/hero.css-mistica.js +2 -2
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +42 -42
- package/dist/icons/icon-chevron.css-mistica.js +2 -2
- package/dist/icons/icon-error.css-mistica.js +1 -1
- package/dist/image.css-mistica.js +3 -3
- package/dist/inline.css-mistica.js +10 -10
- package/dist/list.css-mistica.js +1 -1
- package/dist/loading-bar.css-mistica.js +1 -1
- package/dist/loading-screen.css-mistica.js +4 -4
- package/dist/logo.css-mistica.js +5 -5
- package/dist/menu.css-mistica.js +12 -12
- package/dist/mosaic.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +16 -16
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/pin-field.css-mistica.js +1 -1
- package/dist/popover.css-mistica.js +1 -1
- package/dist/progress-bar.css-mistica.js +4 -4
- package/dist/radio-button.css-mistica.js +14 -14
- package/dist/rating.css-mistica.js +2 -2
- package/dist/responsive-layout.css-mistica.js +4 -4
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +15 -15
- package/dist/sheet-action-row.css-mistica.js +1 -1
- package/dist/sheet-common.css-mistica.js +1 -1
- package/dist/sheet-info.css-mistica.js +1 -1
- package/dist/skeletons.css-mistica.js +4 -4
- package/dist/skins/skin-contract.css-mistica.js +390 -390
- package/dist/skip-link.css-mistica.js +1 -1
- package/dist/slider.css-mistica.js +10 -10
- package/dist/snackbar.css-mistica.js +4 -4
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/stack.css-mistica.js +5 -5
- package/dist/stacking-group.css-mistica.js +1 -1
- package/dist/stepper.css-mistica.js +2 -2
- package/dist/switch-component.css-mistica.js +26 -26
- package/dist/table.css-mistica.js +8 -8
- package/dist/tabs.css-mistica.js +12 -12
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +1 -1
- package/dist/text-field-components.css-mistica.js +3 -3
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/text.css-mistica.js +7 -7
- package/dist/theme-context.css-mistica.js +430 -430
- package/dist/timeline.css-mistica.js +10 -10
- package/dist/timer.css-mistica.js +6 -6
- package/dist/tooltip.css-mistica.js +1 -1
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist/video.css-mistica.js +1 -1
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/dist-es/accordion.css-mistica.js +6 -6
- package/dist-es/align.css-mistica.js +1 -1
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +1 -1
- package/dist-es/box.css-mistica.js +13 -13
- package/dist-es/boxed.css-mistica.js +23 -23
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +13 -13
- package/dist-es/button.css-mistica.js +16 -16
- package/dist-es/callout.css-mistica.js +5 -5
- package/dist-es/card-internal.css-mistica.js +15 -15
- package/dist-es/card-internal.js +446 -444
- package/dist-es/carousel.css-mistica.js +8 -8
- package/dist-es/checkbox.css-mistica.js +7 -7
- package/dist-es/chip.css-mistica.js +12 -12
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
- package/dist-es/community/blocks.css-mistica.js +1 -1
- package/dist-es/community/example-component.css-mistica.js +1 -1
- package/dist-es/counter.css-mistica.js +1 -1
- package/dist-es/cover-hero.css-mistica.js +3 -3
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/date-field.css-mistica.js +1 -1
- package/dist-es/date-time-picker.css-mistica.js +1 -1
- package/dist-es/dialog.css-mistica.js +4 -4
- package/dist-es/divider.css-mistica.js +2 -2
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/drawer.css-mistica.js +1 -1
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +5 -5
- package/dist-es/fade-in.css-mistica.js +1 -1
- package/dist-es/feedback.css-mistica.js +1 -1
- package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
- package/dist-es/form.css-mistica.js +1 -1
- package/dist-es/grid-layout.css-mistica.js +3 -3
- package/dist-es/grid.css-mistica.js +122 -122
- package/dist-es/header.css-mistica.js +1 -1
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +42 -42
- package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
- package/dist-es/icons/icon-error.css-mistica.js +1 -1
- package/dist-es/image.css-mistica.js +3 -3
- package/dist-es/inline.css-mistica.js +10 -10
- package/dist-es/list.css-mistica.js +1 -1
- package/dist-es/loading-bar.css-mistica.js +1 -1
- package/dist-es/loading-screen.css-mistica.js +4 -4
- package/dist-es/logo.css-mistica.js +5 -5
- package/dist-es/menu.css-mistica.js +12 -12
- package/dist-es/mosaic.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +16 -16
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/pin-field.css-mistica.js +1 -1
- package/dist-es/popover.css-mistica.js +1 -1
- package/dist-es/progress-bar.css-mistica.js +4 -4
- package/dist-es/radio-button.css-mistica.js +14 -14
- package/dist-es/rating.css-mistica.js +2 -2
- package/dist-es/responsive-layout.css-mistica.js +4 -4
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +15 -15
- package/dist-es/sheet-action-row.css-mistica.js +1 -1
- package/dist-es/sheet-common.css-mistica.js +1 -1
- package/dist-es/sheet-info.css-mistica.js +1 -1
- package/dist-es/skeletons.css-mistica.js +4 -4
- package/dist-es/skins/skin-contract.css-mistica.js +390 -390
- package/dist-es/skip-link.css-mistica.js +1 -1
- package/dist-es/slider.css-mistica.js +10 -10
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/stack.css-mistica.js +5 -5
- package/dist-es/stacking-group.css-mistica.js +1 -1
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +26 -26
- package/dist-es/table.css-mistica.js +8 -8
- package/dist-es/tabs.css-mistica.js +12 -12
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +1 -1
- package/dist-es/text-field-components.css-mistica.js +3 -3
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/text.css-mistica.js +7 -7
- package/dist-es/theme-context.css-mistica.js +430 -430
- package/dist-es/timeline.css-mistica.js +10 -10
- package/dist-es/timer.css-mistica.js +6 -6
- package/dist-es/tooltip.css-mistica.js +1 -1
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/package.json +1 -1
package/dist/card-internal.js
CHANGED
|
@@ -20,7 +20,7 @@ _export(exports, {
|
|
|
20
20
|
return Li;
|
|
21
21
|
},
|
|
22
22
|
TopActions: function() {
|
|
23
|
-
return
|
|
23
|
+
return De;
|
|
24
24
|
},
|
|
25
25
|
useVideoWithControls: function() {
|
|
26
26
|
return Jt;
|
|
@@ -181,25 +181,25 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
181
181
|
}
|
|
182
182
|
return target;
|
|
183
183
|
}
|
|
184
|
-
const Gt = /*#__PURE__*/ _react.forwardRef((param,
|
|
185
|
-
let { type:
|
|
186
|
-
const
|
|
187
|
-
[_cardinternalcssmistica.vars.aspectRatio]: String(
|
|
188
|
-
}) : {},
|
|
184
|
+
const Gt = /*#__PURE__*/ _react.forwardRef((param, m)=>{
|
|
185
|
+
let { type: e, children: o, width: r, height: n, aspectRatio: a, "aria-label": c, "aria-labelledby": h, "aria-description": d, "aria-describedby": l, dataAttributes: s, backgroundColor: v, variant: R } = param;
|
|
186
|
+
const x = r && n ? void 0 : (0, _aspectratiosupport.aspectRatioToNumber)(a), f = x ? (0, _css.applyCssVars)({
|
|
187
|
+
[_cardinternalcssmistica.vars.aspectRatio]: String(x)
|
|
188
|
+
}) : {}, p = v ? "none" : void 0, g = e === "naked";
|
|
189
189
|
return(// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
190
190
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({
|
|
191
|
-
ref:
|
|
192
|
-
"aria-label":
|
|
193
|
-
"aria-labelledby":
|
|
191
|
+
ref: m,
|
|
192
|
+
"aria-label": c,
|
|
193
|
+
"aria-labelledby": h,
|
|
194
194
|
"aria-description": d,
|
|
195
|
-
"aria-describedby":
|
|
195
|
+
"aria-describedby": l,
|
|
196
196
|
className: (0, _classnames.default)(_cardinternalcssmistica.container)
|
|
197
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
197
|
+
}, (0, _dom.getPrefixedDataAttributes)(s, "InternalCard")), {
|
|
198
198
|
style: _object_spread({
|
|
199
|
-
width:
|
|
200
|
-
height:
|
|
199
|
+
width: r || "100%",
|
|
200
|
+
height: n || "100%",
|
|
201
201
|
position: "relative"
|
|
202
|
-
},
|
|
202
|
+
}, f),
|
|
203
203
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
204
204
|
style: {
|
|
205
205
|
display: "flex",
|
|
@@ -211,35 +211,35 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
211
211
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
212
212
|
width: "100%",
|
|
213
213
|
height: "100%",
|
|
214
|
-
variant:
|
|
214
|
+
variant: R,
|
|
215
215
|
className: (0, _classnames.default)(_cardinternalcssmistica.boxed),
|
|
216
|
-
background:
|
|
217
|
-
borderRadius:
|
|
218
|
-
border:
|
|
216
|
+
background: g ? "transparent" : v,
|
|
217
|
+
borderRadius: g ? "none" : _skincontractcssmistica.vars.borderRadii.container,
|
|
218
|
+
border: g ? "none" : p,
|
|
219
219
|
overflow: "visible",
|
|
220
220
|
children: o
|
|
221
221
|
})
|
|
222
222
|
})
|
|
223
223
|
})));
|
|
224
|
-
}),
|
|
225
|
-
let { minHeight:
|
|
224
|
+
}), Z = (param)=>{
|
|
225
|
+
let { minHeight: e } = param;
|
|
226
226
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
227
227
|
style: {
|
|
228
228
|
flexGrow: 1,
|
|
229
229
|
flexShrink: 0,
|
|
230
|
-
minHeight:
|
|
230
|
+
minHeight: e
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
},
|
|
234
|
-
let { size:
|
|
235
|
-
if (!
|
|
233
|
+
}, te = (param)=>{
|
|
234
|
+
let { size: e, absolute: o, asset: r, type: n } = param;
|
|
235
|
+
if (!r) return null;
|
|
236
236
|
const a = /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
237
237
|
"data-testid": "asset",
|
|
238
238
|
"aria-hidden": !0,
|
|
239
239
|
style: (0, _css.applyCssVars)({
|
|
240
240
|
[_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
|
|
241
241
|
}),
|
|
242
|
-
children:
|
|
242
|
+
children: r
|
|
243
243
|
});
|
|
244
244
|
return o ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
245
245
|
style: {
|
|
@@ -247,18 +247,18 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
247
247
|
top: 0,
|
|
248
248
|
left: 0
|
|
249
249
|
},
|
|
250
|
-
className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[
|
|
250
|
+
className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[e], _cardinternalcssmistica.containerPaddingTopVariants[e]),
|
|
251
251
|
children: a
|
|
252
252
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
253
253
|
className: (0, _classnames.default)({
|
|
254
|
-
[_cardinternalcssmistica.containerPaddingXVariants[
|
|
254
|
+
[_cardinternalcssmistica.containerPaddingXVariants[e]]: n !== "naked"
|
|
255
255
|
}),
|
|
256
256
|
children: a
|
|
257
257
|
});
|
|
258
258
|
}, Dt = (param)=>{
|
|
259
|
-
let { video:
|
|
259
|
+
let { video: e, src: o, srcSet: r, backgroundVariant: n } = param;
|
|
260
260
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
261
|
-
variant:
|
|
261
|
+
variant: n,
|
|
262
262
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
263
263
|
className: _cardinternalcssmistica.backgroundImageOrVideoContainer,
|
|
264
264
|
style: (0, _css.applyCssVars)({
|
|
@@ -266,14 +266,14 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
266
266
|
borderRadius: _skincontractcssmistica.vars.borderRadii.container,
|
|
267
267
|
overflow: "hidden"
|
|
268
268
|
}),
|
|
269
|
-
children:
|
|
269
|
+
children: e || /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
|
|
270
270
|
dataAttributes: {
|
|
271
271
|
testid: "image"
|
|
272
272
|
},
|
|
273
273
|
width: "100%",
|
|
274
274
|
height: "100%",
|
|
275
275
|
src: o || "",
|
|
276
|
-
srcSet:
|
|
276
|
+
srcSet: r,
|
|
277
277
|
alt: ""
|
|
278
278
|
})
|
|
279
279
|
})
|
|
@@ -304,146 +304,146 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
304
304
|
error: {
|
|
305
305
|
reset: "loading"
|
|
306
306
|
}
|
|
307
|
-
}, Kt = (
|
|
308
|
-
let { color:
|
|
307
|
+
}, Kt = (e, o)=>_t[e][o] || e, Xt = (param)=>{
|
|
308
|
+
let { color: e } = param;
|
|
309
309
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
|
|
310
|
-
color:
|
|
310
|
+
color: e,
|
|
311
311
|
size: 16,
|
|
312
312
|
delay: "0"
|
|
313
313
|
});
|
|
314
314
|
}, Yt = (param)=>{
|
|
315
|
-
let { color:
|
|
315
|
+
let { color: e } = param;
|
|
316
316
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
317
|
-
color:
|
|
317
|
+
color: e,
|
|
318
318
|
size: 12
|
|
319
319
|
});
|
|
320
320
|
}, qt = (param)=>{
|
|
321
|
-
let { color:
|
|
321
|
+
let { color: e } = param;
|
|
322
322
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
|
|
323
|
-
color:
|
|
323
|
+
color: e,
|
|
324
324
|
size: 12
|
|
325
325
|
});
|
|
326
|
-
}, Jt = (
|
|
327
|
-
const { texts: a, t:
|
|
326
|
+
}, Jt = (e, o, r, n)=>{
|
|
327
|
+
const { texts: a, t: c } = (0, _hooks.useTheme)(), h = _react.useRef(null), [d, l] = _react.useReducer(Kt, process.env.NODE_ENV === "test" ? "playing" : "loading");
|
|
328
328
|
_react.useEffect(()=>{
|
|
329
|
-
var
|
|
330
|
-
const
|
|
331
|
-
return (
|
|
332
|
-
clearTimeout(
|
|
329
|
+
var x;
|
|
330
|
+
const m = setTimeout(()=>l("showSpinner"), 2e3);
|
|
331
|
+
return (x = h.current) == null || x.load(), ()=>{
|
|
332
|
+
clearTimeout(m), l("reset");
|
|
333
333
|
};
|
|
334
334
|
}, [
|
|
335
|
-
|
|
335
|
+
e
|
|
336
336
|
]);
|
|
337
|
-
const
|
|
338
|
-
ref: (0, _common.combineRefs)(
|
|
339
|
-
src:
|
|
337
|
+
const s = _react.useMemo(()=>e !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
338
|
+
ref: (0, _common.combineRefs)(h, r),
|
|
339
|
+
src: e,
|
|
340
340
|
poster: o,
|
|
341
341
|
width: "100%",
|
|
342
|
-
height:
|
|
343
|
-
onError: ()=>
|
|
344
|
-
onPause: ()=>
|
|
345
|
-
onPlay: ()=>
|
|
342
|
+
height: n ? void 0 : "100%",
|
|
343
|
+
onError: ()=>l("fail"),
|
|
344
|
+
onPause: ()=>l("pause"),
|
|
345
|
+
onPlay: ()=>l("play")
|
|
346
346
|
}) : void 0, [
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
r,
|
|
348
|
+
e,
|
|
349
349
|
o,
|
|
350
|
-
|
|
351
|
-
]),
|
|
352
|
-
const
|
|
353
|
-
|
|
350
|
+
n
|
|
351
|
+
]), v = ()=>{
|
|
352
|
+
const m = h.current;
|
|
353
|
+
m && (d === "loading" ? l("showSpinner") : d === "paused" ? m.play() : d === "playing" && m.pause());
|
|
354
354
|
};
|
|
355
355
|
if (d === "error") return {
|
|
356
|
-
video:
|
|
356
|
+
video: s
|
|
357
357
|
};
|
|
358
|
-
const
|
|
358
|
+
const R = s ? {
|
|
359
359
|
uncheckedProps: {
|
|
360
360
|
Icon: d === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? Xt : Yt,
|
|
361
|
-
label: d === "loadingTimeout" ? "" : a.pauseIconButtonLabel ||
|
|
361
|
+
label: d === "loadingTimeout" ? "" : a.pauseIconButtonLabel || c(_texttokens.pauseIconButtonLabel)
|
|
362
362
|
},
|
|
363
363
|
checkedProps: {
|
|
364
364
|
Icon: qt,
|
|
365
|
-
label: a.playIconButtonLabel ||
|
|
365
|
+
label: a.playIconButtonLabel || c(_texttokens.playIconButtonLabel)
|
|
366
366
|
},
|
|
367
|
-
onChange:
|
|
367
|
+
onChange: v,
|
|
368
368
|
disabled: (0, _platform.isRunningAcceptanceTest)() ? !1 : d === "loadingTimeout",
|
|
369
369
|
checked: d === "paused"
|
|
370
370
|
} : void 0;
|
|
371
371
|
return {
|
|
372
|
-
video:
|
|
373
|
-
videoAction:
|
|
372
|
+
video: s,
|
|
373
|
+
videoAction: R
|
|
374
374
|
};
|
|
375
375
|
}, Qt = (param)=>{
|
|
376
|
-
let { size:
|
|
376
|
+
let { size: e, buttonPrimary: o, buttonSecondary: r, buttonLink: n } = param;
|
|
377
377
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
378
|
-
className: _cardinternalcssmistica.actionsContainerVariants[
|
|
378
|
+
className: _cardinternalcssmistica.actionsContainerVariants[e],
|
|
379
379
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
380
380
|
primaryButton: o,
|
|
381
|
-
secondaryButton:
|
|
382
|
-
link:
|
|
381
|
+
secondaryButton: r,
|
|
382
|
+
link: n
|
|
383
383
|
})
|
|
384
384
|
});
|
|
385
|
-
}, Ut = (
|
|
385
|
+
}, Ut = (e)=>{
|
|
386
386
|
const o = (0, _themevariantcontext.useThemeVariant)();
|
|
387
|
-
if (
|
|
387
|
+
if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, e), {
|
|
388
388
|
small: !0,
|
|
389
|
-
"aria-label":
|
|
389
|
+
"aria-label": e.label,
|
|
390
390
|
type: "neutral",
|
|
391
391
|
backgroundType: "transparent"
|
|
392
392
|
}));
|
|
393
|
-
const { checkedProps:
|
|
393
|
+
const { checkedProps: r, uncheckedProps: n } = e, a = _object_without_properties(e, [
|
|
394
394
|
"checkedProps",
|
|
395
395
|
"uncheckedProps"
|
|
396
396
|
]);
|
|
397
397
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.ToggleIconButton, _object_spread_props(_object_spread({
|
|
398
398
|
small: !0
|
|
399
399
|
}, a), {
|
|
400
|
-
checkedProps: _object_spread_props(_object_spread({},
|
|
401
|
-
"aria-label":
|
|
400
|
+
checkedProps: _object_spread_props(_object_spread({}, r), {
|
|
401
|
+
"aria-label": e.checkedProps.label,
|
|
402
402
|
type: o === "media" ? "neutral" : "brand",
|
|
403
403
|
backgroundType: "solid"
|
|
404
404
|
}),
|
|
405
|
-
uncheckedProps: _object_spread_props(_object_spread({},
|
|
406
|
-
"aria-label":
|
|
405
|
+
uncheckedProps: _object_spread_props(_object_spread({}, n), {
|
|
406
|
+
"aria-label": e.uncheckedProps.label,
|
|
407
407
|
type: "neutral",
|
|
408
408
|
backgroundType: "transparent"
|
|
409
409
|
})
|
|
410
410
|
}));
|
|
411
|
-
},
|
|
412
|
-
let { testid:
|
|
413
|
-
const { texts:
|
|
414
|
-
...
|
|
411
|
+
}, De = (param)=>{
|
|
412
|
+
let { testid: e = "topActions", onClose: o, closeButtonLabel: r, actions: n, variant: a, containerStyles: c = {} } = param;
|
|
413
|
+
const { texts: h, t: d } = (0, _hooks.useTheme)(), l = n ? [
|
|
414
|
+
...n
|
|
415
415
|
] : [];
|
|
416
|
-
return o &&
|
|
417
|
-
label:
|
|
416
|
+
return o && l.push({
|
|
417
|
+
label: r || h.closeButtonLabel || d(_texttokens.closeButtonLabel),
|
|
418
418
|
onPress: o,
|
|
419
419
|
Icon: _iconcloseregular.default
|
|
420
|
-
}),
|
|
420
|
+
}), l.length === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
421
421
|
variant: a,
|
|
422
422
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
423
423
|
className: _cardinternalcssmistica.topActionsContainer,
|
|
424
|
-
style:
|
|
425
|
-
"data-testid":
|
|
426
|
-
children:
|
|
424
|
+
style: c,
|
|
425
|
+
"data-testid": e,
|
|
426
|
+
children: l.map((s, v)=>"Icon" in s || "checkedProps" in s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Ut, _object_spread({}, s), v) : s)
|
|
427
427
|
})
|
|
428
428
|
});
|
|
429
429
|
}, Wt = (param)=>{
|
|
430
|
-
let { type:
|
|
431
|
-
const
|
|
430
|
+
let { type: e, size: o, asset: r, imageSrc: n, imageSrcSet: a, imageFit: c, imageAlt: h = "", video: d, mediaAspectRatio: l, mediaPosition: s, mediaWidth: v, circledImage: R } = param;
|
|
431
|
+
const m = (0, _aspectratiosupport.aspectRatioToNumber)(l), x = e === "naked" && R ? {
|
|
432
432
|
circular: !0
|
|
433
433
|
} : {
|
|
434
434
|
width: "100%",
|
|
435
|
-
height:
|
|
436
|
-
},
|
|
435
|
+
height: s === "top" && m === 0 ? void 0 : "100%"
|
|
436
|
+
}, p = (()=>{
|
|
437
437
|
if (d) return d;
|
|
438
|
-
if (
|
|
439
|
-
const
|
|
438
|
+
if (n !== void 0 || a !== void 0) {
|
|
439
|
+
const i = s === "left" || s === "right", u = {
|
|
440
440
|
fit: {
|
|
441
441
|
objectFit: "contain",
|
|
442
|
-
objectPosition: `bottom ${
|
|
442
|
+
objectPosition: `bottom ${s}`
|
|
443
443
|
},
|
|
444
444
|
fill: {
|
|
445
445
|
objectFit: "cover",
|
|
446
|
-
objectPosition:
|
|
446
|
+
objectPosition: s
|
|
447
447
|
},
|
|
448
448
|
"fill-center": {
|
|
449
449
|
objectFit: "cover",
|
|
@@ -451,95 +451,95 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, _object_spread(_object_spread_props(_object_spread({
|
|
454
|
-
src:
|
|
454
|
+
src: n || "",
|
|
455
455
|
srcSet: a
|
|
456
|
-
},
|
|
456
|
+
}, x), {
|
|
457
457
|
dataAttributes: {
|
|
458
458
|
testid: "image"
|
|
459
459
|
},
|
|
460
|
-
alt:
|
|
461
|
-
}),
|
|
460
|
+
alt: h
|
|
461
|
+
}), i ? u[c] : {}));
|
|
462
462
|
}
|
|
463
463
|
return null;
|
|
464
464
|
})();
|
|
465
|
-
if (!
|
|
466
|
-
const
|
|
465
|
+
if (!p) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
466
|
+
const g = _object_spread({}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
|
|
467
467
|
[_imagecssmistica.vars.mediaBorderRadius]: "0px"
|
|
468
468
|
}));
|
|
469
|
-
return
|
|
469
|
+
return s === "top" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
470
470
|
children: [
|
|
471
471
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
|
|
472
|
-
aspectRatio:
|
|
473
|
-
style:
|
|
474
|
-
children:
|
|
472
|
+
aspectRatio: m,
|
|
473
|
+
style: g,
|
|
474
|
+
children: p
|
|
475
475
|
}),
|
|
476
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
476
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(te, {
|
|
477
477
|
absolute: !0,
|
|
478
478
|
size: o,
|
|
479
|
-
asset:
|
|
480
|
-
type:
|
|
479
|
+
asset: r,
|
|
480
|
+
type: e
|
|
481
481
|
})
|
|
482
482
|
]
|
|
483
483
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
484
484
|
children: [
|
|
485
485
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
486
|
-
style: _object_spread_props(_object_spread({},
|
|
487
|
-
width:
|
|
486
|
+
style: _object_spread_props(_object_spread({}, g), {
|
|
487
|
+
width: v,
|
|
488
488
|
flexShrink: 0,
|
|
489
489
|
flexGrow: 0,
|
|
490
490
|
height: "100%",
|
|
491
491
|
position: "relative"
|
|
492
492
|
}),
|
|
493
|
-
children:
|
|
493
|
+
children: p
|
|
494
494
|
}),
|
|
495
|
-
|
|
495
|
+
s !== "right" && /* @__PURE__ */ (0, _jsxruntime.jsx)(te, {
|
|
496
496
|
absolute: !0,
|
|
497
497
|
size: o,
|
|
498
|
-
asset:
|
|
499
|
-
type:
|
|
498
|
+
asset: r,
|
|
499
|
+
type: e
|
|
500
500
|
})
|
|
501
501
|
]
|
|
502
502
|
});
|
|
503
503
|
}, Zt = (param)=>{
|
|
504
|
-
let { type:
|
|
505
|
-
const
|
|
504
|
+
let { type: e, size: o, variant: r, footerSlot: n, buttonPrimary: a, buttonSecondary: c, buttonLink: h, hasBackgroundImageOrVideo: d, footerVariant: l, footerBackgroundColor: s, isInverseOutside: v, overlayColor: R } = param;
|
|
505
|
+
const m = !!(a || c || h), x = !!(a && c && h), f = r === "inverse" || r === "media", p = e === "naked", g = s || (l && l !== r ? l === "default" ? _skincontractcssmistica.vars.colors.backgroundContainer : v ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainerBrand : void 0);
|
|
506
506
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
507
|
-
variant:
|
|
507
|
+
variant: l || r,
|
|
508
508
|
children: [
|
|
509
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
509
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {}),
|
|
510
510
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
511
511
|
style: {
|
|
512
|
-
background:
|
|
512
|
+
background: g || (d ? R : void 0),
|
|
513
513
|
position: "relative",
|
|
514
514
|
backdropFilter: d ? "blur(12px)" : void 0,
|
|
515
|
-
borderBottomLeftRadius:
|
|
516
|
-
borderBottomRightRadius:
|
|
515
|
+
borderBottomLeftRadius: p ? 0 : _skincontractcssmistica.vars.borderRadii.container,
|
|
516
|
+
borderBottomRightRadius: p ? 0 : _skincontractcssmistica.vars.borderRadii.container
|
|
517
517
|
},
|
|
518
518
|
children: [
|
|
519
519
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
520
520
|
style: {
|
|
521
|
-
borderTop:
|
|
522
|
-
marginRight:
|
|
521
|
+
borderTop: g ? void 0 : `1px solid ${f ? _skincontractcssmistica.vars.colors.dividerInverse : _skincontractcssmistica.vars.colors.divider}`,
|
|
522
|
+
marginRight: p ? 16 : 0
|
|
523
523
|
}
|
|
524
524
|
}),
|
|
525
525
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
526
526
|
"data-testid": "footer",
|
|
527
527
|
className: (0, _classnames.default)({
|
|
528
|
-
[_cardinternalcssmistica.containerPaddingXVariants[o]]: !
|
|
528
|
+
[_cardinternalcssmistica.containerPaddingXVariants[o]]: !p
|
|
529
529
|
}),
|
|
530
530
|
style: {
|
|
531
531
|
paddingTop: 16,
|
|
532
|
-
paddingBottom:
|
|
533
|
-
paddingRight:
|
|
532
|
+
paddingBottom: p ? 0 : 16,
|
|
533
|
+
paddingRight: p ? 16 : void 0
|
|
534
534
|
},
|
|
535
535
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
536
536
|
space: 16,
|
|
537
537
|
children: [
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
n,
|
|
539
|
+
m && // @FIXME: We should use the ButtonGroup component
|
|
540
540
|
// https://jira.tid.es/browse/WEB-2278
|
|
541
541
|
// https://www.figma.com/design/koROdh3HpEPG2O8jG52Emh/%F0%9F%94%B8-Buttons-Specs?node-id=4337-1606&t=HtImvar8DMbivDqC-0
|
|
542
|
-
(
|
|
542
|
+
(x ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
543
543
|
space: 16,
|
|
544
544
|
children: [
|
|
545
545
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
@@ -547,14 +547,14 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
547
547
|
alignItems: "center",
|
|
548
548
|
children: [
|
|
549
549
|
a,
|
|
550
|
-
|
|
550
|
+
c
|
|
551
551
|
]
|
|
552
552
|
}),
|
|
553
553
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
554
554
|
style: {
|
|
555
555
|
marginLeft: -12
|
|
556
556
|
},
|
|
557
|
-
children:
|
|
557
|
+
children: h
|
|
558
558
|
})
|
|
559
559
|
]
|
|
560
560
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
@@ -562,8 +562,8 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
562
562
|
alignItems: "center",
|
|
563
563
|
children: [
|
|
564
564
|
a,
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
c,
|
|
566
|
+
h
|
|
567
567
|
]
|
|
568
568
|
}))
|
|
569
569
|
]
|
|
@@ -574,193 +574,193 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
574
574
|
]
|
|
575
575
|
});
|
|
576
576
|
}, ei = (param)=>{
|
|
577
|
-
let { headlineRef:
|
|
578
|
-
const { textPresets:
|
|
577
|
+
let { type: e, hasCustomBackground: o, headlineRef: r, size: n, variant: a, headline: c, title: h, titleAs: d = "h3", titleLinesMax: l, pretitle: s, pretitleAs: v, pretitleLinesMax: R, subtitle: m, subtitleLinesMax: x, description: f, descriptionLinesMax: p, withTextShadow: g } = param;
|
|
578
|
+
const { textPresets: i, colorValues: u } = (0, _hooks.useTheme)(), F = (0, _themevariantcontext.useThemeVariant)(), z = {
|
|
579
579
|
hyphens: "auto"
|
|
580
|
-
},
|
|
580
|
+
}, E = {
|
|
581
581
|
default: {
|
|
582
|
-
pretitle:
|
|
583
|
-
title:
|
|
584
|
-
subtitle:
|
|
585
|
-
description:
|
|
582
|
+
pretitle: u.textPrimary,
|
|
583
|
+
title: u.textPrimary,
|
|
584
|
+
subtitle: u.textPrimary,
|
|
585
|
+
description: u.textSecondary
|
|
586
586
|
},
|
|
587
587
|
inverse: {
|
|
588
|
-
pretitle:
|
|
589
|
-
title:
|
|
590
|
-
subtitle:
|
|
591
|
-
description:
|
|
588
|
+
pretitle: u.textPrimaryInverse,
|
|
589
|
+
title: u.textPrimaryInverse,
|
|
590
|
+
subtitle: u.textPrimaryInverse,
|
|
591
|
+
description: u.textSecondaryInverse
|
|
592
592
|
},
|
|
593
593
|
media: {
|
|
594
|
-
pretitle:
|
|
595
|
-
title:
|
|
596
|
-
subtitle:
|
|
597
|
-
description:
|
|
594
|
+
pretitle: u.textPrimaryInverse,
|
|
595
|
+
title: u.textPrimaryInverse,
|
|
596
|
+
subtitle: u.textPrimaryInverse,
|
|
597
|
+
description: e === "cover" && o ? u.textPrimaryInverse : u.textSecondaryInverse
|
|
598
598
|
}
|
|
599
|
-
},
|
|
599
|
+
}, V = {
|
|
600
600
|
snap: {
|
|
601
601
|
pretitle: {
|
|
602
|
-
mobileSize:
|
|
603
|
-
desktopSize:
|
|
604
|
-
mobileLineHeight:
|
|
605
|
-
desktopLineHeight:
|
|
602
|
+
mobileSize: i.text2.size.mobile,
|
|
603
|
+
desktopSize: i.text2.size.desktop,
|
|
604
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
605
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
606
606
|
weight: "regular"
|
|
607
607
|
},
|
|
608
608
|
title: {
|
|
609
|
-
mobileSize:
|
|
610
|
-
desktopSize:
|
|
611
|
-
mobileLineHeight:
|
|
612
|
-
desktopLineHeight:
|
|
613
|
-
weight:
|
|
609
|
+
mobileSize: i.text2.size.mobile,
|
|
610
|
+
desktopSize: i.text2.size.desktop,
|
|
611
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
612
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
613
|
+
weight: i.cardTitle.weight
|
|
614
614
|
},
|
|
615
615
|
subtitle: {
|
|
616
|
-
mobileSize:
|
|
617
|
-
desktopSize:
|
|
618
|
-
mobileLineHeight:
|
|
619
|
-
desktopLineHeight:
|
|
616
|
+
mobileSize: i.text2.size.mobile,
|
|
617
|
+
desktopSize: i.text2.size.desktop,
|
|
618
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
619
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
620
620
|
weight: "regular"
|
|
621
621
|
},
|
|
622
622
|
description: {
|
|
623
|
-
mobileSize:
|
|
624
|
-
desktopSize:
|
|
625
|
-
mobileLineHeight:
|
|
626
|
-
desktopLineHeight:
|
|
623
|
+
mobileSize: i.text2.size.mobile,
|
|
624
|
+
desktopSize: i.text2.size.desktop,
|
|
625
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
626
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
627
627
|
weight: "regular"
|
|
628
628
|
}
|
|
629
629
|
},
|
|
630
630
|
default: {
|
|
631
631
|
pretitle: {
|
|
632
|
-
mobileSize:
|
|
633
|
-
desktopSize:
|
|
634
|
-
mobileLineHeight:
|
|
635
|
-
desktopLineHeight:
|
|
632
|
+
mobileSize: i.text2.size.mobile,
|
|
633
|
+
desktopSize: i.text2.size.desktop,
|
|
634
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
635
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
636
636
|
weight: "regular"
|
|
637
637
|
},
|
|
638
638
|
title: {
|
|
639
|
-
mobileSize:
|
|
640
|
-
desktopSize:
|
|
641
|
-
mobileLineHeight:
|
|
642
|
-
desktopLineHeight:
|
|
643
|
-
weight:
|
|
639
|
+
mobileSize: i.text4.size.mobile,
|
|
640
|
+
desktopSize: i.text4.size.desktop,
|
|
641
|
+
mobileLineHeight: i.text4.lineHeight.mobile,
|
|
642
|
+
desktopLineHeight: i.text4.lineHeight.desktop,
|
|
643
|
+
weight: i.cardTitle.weight
|
|
644
644
|
},
|
|
645
645
|
subtitle: {
|
|
646
|
-
mobileSize:
|
|
647
|
-
desktopSize:
|
|
648
|
-
mobileLineHeight:
|
|
649
|
-
desktopLineHeight:
|
|
646
|
+
mobileSize: i.text2.size.mobile,
|
|
647
|
+
desktopSize: i.text2.size.desktop,
|
|
648
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
649
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
650
650
|
weight: "regular"
|
|
651
651
|
},
|
|
652
652
|
description: {
|
|
653
|
-
mobileSize:
|
|
654
|
-
desktopSize:
|
|
655
|
-
mobileLineHeight:
|
|
656
|
-
desktopLineHeight:
|
|
653
|
+
mobileSize: i.text2.size.mobile,
|
|
654
|
+
desktopSize: i.text2.size.desktop,
|
|
655
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
656
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
657
657
|
weight: "regular"
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
660
|
display: {
|
|
661
661
|
pretitle: {
|
|
662
|
-
mobileSize:
|
|
663
|
-
desktopSize:
|
|
664
|
-
mobileLineHeight:
|
|
665
|
-
desktopLineHeight:
|
|
662
|
+
mobileSize: i.text2.size.mobile,
|
|
663
|
+
desktopSize: i.text2.size.desktop,
|
|
664
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
665
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
666
666
|
weight: "regular"
|
|
667
667
|
},
|
|
668
668
|
title: {
|
|
669
|
-
mobileSize:
|
|
670
|
-
desktopSize:
|
|
671
|
-
mobileLineHeight:
|
|
672
|
-
desktopLineHeight:
|
|
673
|
-
weight:
|
|
669
|
+
mobileSize: i.text6.size.mobile,
|
|
670
|
+
desktopSize: i.text6.size.desktop,
|
|
671
|
+
mobileLineHeight: i.text6.lineHeight.mobile,
|
|
672
|
+
desktopLineHeight: i.text6.lineHeight.desktop,
|
|
673
|
+
weight: i.text6.weight
|
|
674
674
|
},
|
|
675
675
|
subtitle: {
|
|
676
|
-
mobileSize:
|
|
677
|
-
desktopSize:
|
|
678
|
-
mobileLineHeight:
|
|
679
|
-
desktopLineHeight:
|
|
676
|
+
mobileSize: i.text2.size.mobile,
|
|
677
|
+
desktopSize: i.text2.size.desktop,
|
|
678
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
679
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
680
680
|
weight: "regular"
|
|
681
681
|
},
|
|
682
682
|
description: {
|
|
683
|
-
mobileSize:
|
|
684
|
-
desktopSize:
|
|
685
|
-
mobileLineHeight:
|
|
686
|
-
desktopLineHeight:
|
|
683
|
+
mobileSize: i.text3.size.mobile,
|
|
684
|
+
desktopSize: i.text3.size.desktop,
|
|
685
|
+
mobileLineHeight: i.text3.lineHeight.mobile,
|
|
686
|
+
desktopLineHeight: i.text3.lineHeight.desktop,
|
|
687
687
|
weight: "regular"
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
},
|
|
690
|
+
}, N = E[a] || E[F] || E.default, I = V[n] || V.default, A = g ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, re = c && // Read order 2. Visual order 1
|
|
691
691
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
692
692
|
style: {
|
|
693
693
|
paddingBottom: 8,
|
|
694
694
|
order: 1
|
|
695
695
|
},
|
|
696
696
|
"data-testid": "headline",
|
|
697
|
-
ref:
|
|
698
|
-
children: typeof
|
|
697
|
+
ref: r,
|
|
698
|
+
children: typeof c == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
|
|
699
699
|
type: "promo",
|
|
700
|
-
children:
|
|
701
|
-
}) :
|
|
702
|
-
}),
|
|
700
|
+
children: c
|
|
701
|
+
}) : c
|
|
702
|
+
}), $ = s && // Read order: 3 or 1. Visual order 2
|
|
703
703
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
704
704
|
style: {
|
|
705
705
|
paddingBottom: 4,
|
|
706
706
|
order: 2
|
|
707
707
|
},
|
|
708
708
|
"data-testid": "pretitle",
|
|
709
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({},
|
|
710
|
-
as:
|
|
711
|
-
truncate:
|
|
712
|
-
color:
|
|
713
|
-
textShadow:
|
|
714
|
-
children:
|
|
709
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, I.pretitle), {
|
|
710
|
+
as: v || "p",
|
|
711
|
+
truncate: R,
|
|
712
|
+
color: N.pretitle,
|
|
713
|
+
textShadow: A,
|
|
714
|
+
children: s
|
|
715
715
|
}))
|
|
716
|
-
}),
|
|
716
|
+
}), D = h && // Read order: 1 or 3. Visual order 3
|
|
717
717
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
718
718
|
style: {
|
|
719
719
|
paddingBottom: 4,
|
|
720
720
|
order: 3
|
|
721
721
|
},
|
|
722
722
|
"data-testid": "title",
|
|
723
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({},
|
|
724
|
-
as:
|
|
725
|
-
truncate:
|
|
726
|
-
color:
|
|
727
|
-
textShadow:
|
|
728
|
-
children:
|
|
723
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, I.title), {
|
|
724
|
+
as: d,
|
|
725
|
+
truncate: l,
|
|
726
|
+
color: N.title,
|
|
727
|
+
textShadow: A,
|
|
728
|
+
children: h
|
|
729
729
|
}))
|
|
730
|
-
}),
|
|
730
|
+
}), ne = m && // Read order: 4. Visual order 4
|
|
731
731
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
732
732
|
style: {
|
|
733
733
|
paddingBottom: 0,
|
|
734
734
|
order: 4
|
|
735
735
|
},
|
|
736
736
|
"data-testid": "subtitle",
|
|
737
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({},
|
|
737
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, I.subtitle), {
|
|
738
738
|
as: "p",
|
|
739
|
-
truncate:
|
|
740
|
-
color:
|
|
741
|
-
textShadow:
|
|
742
|
-
children:
|
|
739
|
+
truncate: x,
|
|
740
|
+
color: N.subtitle,
|
|
741
|
+
textShadow: A,
|
|
742
|
+
children: m
|
|
743
743
|
}))
|
|
744
|
-
}),
|
|
744
|
+
}), ae = f && // Read order: 5. Visual order 5
|
|
745
745
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
746
746
|
style: {
|
|
747
747
|
paddingTop: 4,
|
|
748
748
|
order: 5
|
|
749
749
|
},
|
|
750
750
|
"data-testid": "description",
|
|
751
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({},
|
|
751
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, z, I.description), {
|
|
752
752
|
as: "p",
|
|
753
|
-
truncate:
|
|
754
|
-
color:
|
|
755
|
-
textShadow:
|
|
756
|
-
children:
|
|
753
|
+
truncate: p,
|
|
754
|
+
color: N.description,
|
|
755
|
+
textShadow: A,
|
|
756
|
+
children: f
|
|
757
757
|
}))
|
|
758
|
-
}), [
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
}), [_, K] = h && (0, _headings.isBiggerHeading)(d, v) ? [
|
|
759
|
+
D,
|
|
760
|
+
$
|
|
761
761
|
] : [
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
$,
|
|
763
|
+
D
|
|
764
764
|
];
|
|
765
765
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
766
766
|
style: {
|
|
@@ -768,18 +768,18 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
768
768
|
flexDirection: "column"
|
|
769
769
|
},
|
|
770
770
|
children: [
|
|
771
|
-
|
|
772
|
-
F,
|
|
771
|
+
_,
|
|
773
772
|
re,
|
|
774
|
-
|
|
775
|
-
|
|
773
|
+
K,
|
|
774
|
+
ne,
|
|
775
|
+
ae
|
|
776
776
|
]
|
|
777
777
|
});
|
|
778
|
-
},
|
|
778
|
+
}, _e = [
|
|
779
779
|
_skincontractcssmistica.vars.colors.cardContentOverlay,
|
|
780
780
|
_skincontractcssmistica.vars.colors.cardFooterOverlay
|
|
781
|
-
], Li = /*#__PURE__*/ _react.forwardRef((_param,
|
|
782
|
-
var { type:
|
|
781
|
+
], Li = /*#__PURE__*/ _react.forwardRef((_param, We)=>{
|
|
782
|
+
var { type: e, size: o, backgroundColor: r, imageSrc: n, imageSrcSet: a, imageAlt: c = "", imageFit: h = "fill-center", videoSrc: d, videoRef: l, media: s, mediaAspectRatio: v = "auto", mediaPosition: R = "top", mediaWidth: m = 150, circledImage: x, asset: f, headline: p, title: g, titleAs: i = "h3", titleLinesMax: u, pretitle: F, pretitleAs: z, pretitleLinesMax: E, subtitle: V, subtitleLinesMax: N, description: I, descriptionLinesMax: A, dataAttributes: re, variant: $, width: D, height: ne, aspectRatio: ae, slot: _, slotAlignment: K = "content", buttonPrimary: se, buttonSecondary: de, buttonLink: le, showFooter: qe, footerBackgroundColor: Je, footerVariant: Qe, footerSlot: ye, topActions: X, onClose: Re, closeButtonLabel: Ue, "aria-label": we, "aria-labelledby": ce, "aria-description": Ie, "aria-describedby": He, gradientOverlayColor: Y } = _param, j = _object_without_properties(_param, [
|
|
783
783
|
"type",
|
|
784
784
|
"size",
|
|
785
785
|
"backgroundColor",
|
|
@@ -829,160 +829,160 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
829
829
|
"aria-describedby",
|
|
830
830
|
"gradientOverlayColor"
|
|
831
831
|
]);
|
|
832
|
-
const { text: Be, ref:
|
|
832
|
+
const { text: Be, ref: Ze } = (0, _hooks.useInnerText)(), { text: Ce, ref: et } = (0, _hooks.useInnerText)(), w = !!(j.href || j.to || j.onPress), he = !!(se || de || le), { colorValues: q } = (0, _hooks.useTheme)(), me = e === "media" || e === "naked", tt = me && (n !== void 0 || a !== void 0), ze = me && d !== void 0, Te = tt || ze, pe = me && !!s && !Te, H = Te || pe, T = e === "naked", y = H ? R : "top", Se = e === "naked" && x ? 1 : v, ue = e === "cover" && (n !== void 0 || a !== void 0), J = e === "cover" && d !== void 0, Le = !!r || ue || J, O = ue || J, it = ze || J, { video: Ve, videoAction: ge } = Jt(it ? d : void 0, n, l, e === "cover" || y !== "top" ? !1 : (0, _aspectratiosupport.aspectRatioToNumber)(Se) === 0), be = (0, _themevariantcontext.useIsInverseVariant)(), ot = $ || (be ? "inverse" : "default"), S = $ || (e === "cover" && Le ? "media" : "default"), rt = S === "inverse" ? _cardinternalcssmistica.touchableCardOverlayInverse : _cardinternalcssmistica.touchableCardOverlay, L = qe && (he || !!ye) || he && j.onPress, Ne = !L && he, Q = ((X == null ? void 0 : X.length) || 0) + (Re ? 1 : 0), Ae = ge ? Q + 1 : Q, nt = f && !(H && y === "left"), at = e !== "cover" && Ae > 0 && !nt && !p, M = e === "cover" || e === "data" && o === "display", P = _skincontractcssmistica.vars.borderRadii.container, st = ue || J ? "transparent" : r || (S === "media" ? be ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand : S === "alternative" ? _skincontractcssmistica.vars.colors.backgroundAlternative : void 0), [[dt, lt], ve] = _react.useState(_e);
|
|
833
833
|
_react.useEffect(()=>{
|
|
834
|
-
if (
|
|
834
|
+
if (Y === "transparent") return ve([
|
|
835
835
|
"transparent",
|
|
836
836
|
"transparent"
|
|
837
837
|
]);
|
|
838
|
-
if (
|
|
839
|
-
const
|
|
840
|
-
if (!
|
|
841
|
-
const
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
838
|
+
if (Y) {
|
|
839
|
+
const Oe = (0, _color.getRGBComponents)(Y);
|
|
840
|
+
if (!Oe) return;
|
|
841
|
+
const Pe = Oe.join(","), Fe = /rgba\s*\(\s*\d+\s*,\s*\d+\s*,\s*\d+/g;
|
|
842
|
+
ve([
|
|
843
|
+
q.cardContentOverlay.replace(Fe, `rgba(${Pe}`),
|
|
844
|
+
q.cardFooterOverlay.replace(Fe, `rgba(${Pe}`)
|
|
845
845
|
]);
|
|
846
|
-
} else
|
|
846
|
+
} else ve(_e);
|
|
847
847
|
}, [
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
848
|
+
Y,
|
|
849
|
+
q.cardContentOverlay,
|
|
850
|
+
q.cardFooterOverlay
|
|
851
851
|
]);
|
|
852
|
-
const ct = we || (
|
|
853
|
-
|
|
852
|
+
const ct = we || (ce ? void 0 : (g && (0, _headings.isBiggerHeading)(i, z) ? [
|
|
853
|
+
g,
|
|
854
854
|
Ce,
|
|
855
|
-
C,
|
|
856
|
-
w,
|
|
857
855
|
F,
|
|
856
|
+
V,
|
|
857
|
+
I,
|
|
858
858
|
Be
|
|
859
859
|
] : [
|
|
860
|
-
C,
|
|
861
|
-
Ce,
|
|
862
|
-
s,
|
|
863
|
-
w,
|
|
864
860
|
F,
|
|
861
|
+
Ce,
|
|
862
|
+
g,
|
|
863
|
+
V,
|
|
864
|
+
I,
|
|
865
865
|
Be
|
|
866
866
|
]).filter(Boolean).join(" "));
|
|
867
867
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Gt, {
|
|
868
|
-
"aria-label":
|
|
869
|
-
"aria-labelledby":
|
|
870
|
-
"aria-description":
|
|
871
|
-
"aria-describedby":
|
|
872
|
-
type:
|
|
868
|
+
"aria-label": w ? void 0 : we,
|
|
869
|
+
"aria-labelledby": w ? void 0 : ce,
|
|
870
|
+
"aria-description": w ? void 0 : Ie,
|
|
871
|
+
"aria-describedby": w ? void 0 : He,
|
|
872
|
+
type: e,
|
|
873
873
|
size: o,
|
|
874
|
-
dataAttributes:
|
|
875
|
-
ref:
|
|
876
|
-
variant:
|
|
877
|
-
width:
|
|
878
|
-
height:
|
|
879
|
-
aspectRatio:
|
|
874
|
+
dataAttributes: re,
|
|
875
|
+
ref: We,
|
|
876
|
+
variant: S,
|
|
877
|
+
width: D,
|
|
878
|
+
height: ne,
|
|
879
|
+
aspectRatio: ae,
|
|
880
880
|
backgroundColor: st,
|
|
881
881
|
children: [
|
|
882
|
-
|
|
883
|
-
video:
|
|
884
|
-
src:
|
|
882
|
+
O && /* @__PURE__ */ (0, _jsxruntime.jsx)(Dt, {
|
|
883
|
+
video: Ve,
|
|
884
|
+
src: n,
|
|
885
885
|
srcSet: a,
|
|
886
886
|
backgroundVariant: ot
|
|
887
887
|
}),
|
|
888
|
-
|
|
888
|
+
ge && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
|
|
889
889
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
890
890
|
"data-testid": "videoAction",
|
|
891
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
891
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(De, {
|
|
892
892
|
testid: "videoAction",
|
|
893
893
|
variant: "media",
|
|
894
894
|
actions: [
|
|
895
|
-
|
|
895
|
+
ge
|
|
896
896
|
],
|
|
897
897
|
containerStyles: {
|
|
898
898
|
position: "absolute",
|
|
899
899
|
top: 16,
|
|
900
|
-
left:
|
|
901
|
-
right:
|
|
900
|
+
left: y === "left" ? typeof m == "number" ? `calc(${m}px - 48px)` : `calc(${m} - 48px)` : "auto",
|
|
901
|
+
right: y !== "left" ? Q * 48 + 16 : "auto"
|
|
902
902
|
}
|
|
903
903
|
})
|
|
904
904
|
}),
|
|
905
905
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
906
906
|
maybe: !0,
|
|
907
|
-
"aria-label":
|
|
908
|
-
"aria-labelledby":
|
|
909
|
-
"aria-description":
|
|
910
|
-
"aria-describedby":
|
|
907
|
+
"aria-label": w ? ct : void 0,
|
|
908
|
+
"aria-labelledby": w ? ce : void 0,
|
|
909
|
+
"aria-description": w ? Ie : void 0,
|
|
910
|
+
"aria-describedby": w ? He : void 0,
|
|
911
911
|
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer)
|
|
912
|
-
},
|
|
912
|
+
}, j), {
|
|
913
913
|
style: {
|
|
914
|
-
flexDirection:
|
|
914
|
+
flexDirection: y === "top" ? "column" : y === "left" ? "row" : "row-reverse",
|
|
915
915
|
justifyItems: "stretch",
|
|
916
|
-
borderTopLeftRadius: `calc(${
|
|
917
|
-
borderTopRightRadius: `calc(${
|
|
918
|
-
borderBottomLeftRadius:
|
|
919
|
-
borderBottomRightRadius:
|
|
916
|
+
borderTopLeftRadius: `calc(${P} - 1px)`,
|
|
917
|
+
borderTopRightRadius: `calc(${P} - 1px)`,
|
|
918
|
+
borderBottomLeftRadius: L || T ? 0 : `calc(${P} - 1px)`,
|
|
919
|
+
borderBottomRightRadius: L || T ? 0 : `calc(${P} - 1px)`,
|
|
920
920
|
overflow: "hidden",
|
|
921
921
|
zIndex: 1
|
|
922
922
|
},
|
|
923
923
|
children: [
|
|
924
|
-
|
|
924
|
+
w && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
925
925
|
className: rt
|
|
926
926
|
}),
|
|
927
|
-
|
|
927
|
+
pe && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
928
928
|
style: _object_spread({
|
|
929
929
|
// for some reason, this width is required to pass headless screenshot tests
|
|
930
930
|
// otherwise, it gets 0px width and the media is not visible
|
|
931
931
|
width: "100%"
|
|
932
|
-
},
|
|
932
|
+
}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
|
|
933
933
|
[_imagecssmistica.vars.mediaBorderRadius]: "0px"
|
|
934
934
|
})),
|
|
935
|
-
children:
|
|
935
|
+
children: s
|
|
936
936
|
}),
|
|
937
|
-
|
|
937
|
+
pe && /* @__PURE__ */ (0, _jsxruntime.jsx)(te, {
|
|
938
938
|
absolute: !0,
|
|
939
939
|
size: o,
|
|
940
|
-
asset:
|
|
941
|
-
type:
|
|
940
|
+
asset: f,
|
|
941
|
+
type: e
|
|
942
942
|
}),
|
|
943
943
|
H && /* @__PURE__ */ (0, _jsxruntime.jsx)(Wt, {
|
|
944
|
-
type:
|
|
944
|
+
type: e,
|
|
945
945
|
size: o,
|
|
946
946
|
mediaAspectRatio: Se,
|
|
947
|
-
mediaPosition:
|
|
948
|
-
asset:
|
|
949
|
-
video:
|
|
950
|
-
imageFit:
|
|
951
|
-
imageSrc:
|
|
947
|
+
mediaPosition: y,
|
|
948
|
+
asset: f,
|
|
949
|
+
video: Ve,
|
|
950
|
+
imageFit: h,
|
|
951
|
+
imageSrc: n,
|
|
952
952
|
imageSrcSet: a,
|
|
953
|
-
imageAlt:
|
|
954
|
-
mediaWidth:
|
|
955
|
-
circledImage:
|
|
953
|
+
imageAlt: c,
|
|
954
|
+
mediaWidth: m,
|
|
955
|
+
circledImage: x
|
|
956
956
|
}),
|
|
957
957
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
958
|
-
"aria-hidden":
|
|
958
|
+
"aria-hidden": w,
|
|
959
959
|
"data-testid": "body",
|
|
960
960
|
className: (0, _classnames.default)(_cardinternalcssmistica.touchable, {
|
|
961
|
-
[_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!
|
|
961
|
+
[_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!f && e !== "naked" && (!H || y === "right")
|
|
962
962
|
}),
|
|
963
963
|
children: [
|
|
964
|
-
(!H ||
|
|
964
|
+
(!H || y === "right") && /* @__PURE__ */ (0, _jsxruntime.jsx)(te, {
|
|
965
965
|
size: o,
|
|
966
|
-
asset:
|
|
967
|
-
type:
|
|
966
|
+
asset: f,
|
|
967
|
+
type: e
|
|
968
968
|
}),
|
|
969
|
-
|
|
970
|
-
minHeight:
|
|
969
|
+
M && /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
970
|
+
minHeight: e === "cover" && Ae > 0 && !f ? 48 + 8 : 0
|
|
971
971
|
}),
|
|
972
972
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
973
973
|
className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[o], _cardinternalcssmistica.containerPaddingBottomVariants[o], _cardinternalcssmistica.containerPaddingTopVariants[o]),
|
|
974
974
|
style: {
|
|
975
975
|
display: "flex",
|
|
976
976
|
flexDirection: "column",
|
|
977
|
-
height:
|
|
978
|
-
background:
|
|
977
|
+
height: M ? void 0 : "100%",
|
|
978
|
+
background: O ? dt : void 0,
|
|
979
979
|
// padding overrides for specific cases
|
|
980
|
-
paddingTop:
|
|
981
|
-
paddingLeft:
|
|
982
|
-
paddingRight:
|
|
983
|
-
paddingBottom:
|
|
984
|
-
borderBottomLeftRadius:
|
|
985
|
-
borderBottomRightRadius:
|
|
980
|
+
paddingTop: M && O ? 40 : f || T && y !== "top" ? 16 : T && !H ? 0 : void 0,
|
|
981
|
+
paddingLeft: T && (y !== "left" || !H) ? 0 : void 0,
|
|
982
|
+
paddingRight: T && y !== "right" ? 16 : void 0,
|
|
983
|
+
paddingBottom: L ? 16 : T ? 0 : void 0,
|
|
984
|
+
borderBottomLeftRadius: L ? 0 : P,
|
|
985
|
+
borderBottomRightRadius: L ? 0 : P
|
|
986
986
|
},
|
|
987
987
|
children: [
|
|
988
988
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
@@ -991,46 +991,48 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
991
991
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
992
992
|
className: _cardinternalcssmistica.textContent,
|
|
993
993
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ei, {
|
|
994
|
-
|
|
995
|
-
|
|
994
|
+
type: e,
|
|
995
|
+
hasCustomBackground: Le,
|
|
996
|
+
headlineRef: et,
|
|
997
|
+
variant: S,
|
|
996
998
|
size: o,
|
|
997
|
-
headline:
|
|
998
|
-
pretitle:
|
|
999
|
-
pretitleAs:
|
|
1000
|
-
pretitleLinesMax:
|
|
1001
|
-
title:
|
|
1002
|
-
titleAs:
|
|
1003
|
-
titleLinesMax:
|
|
1004
|
-
subtitle:
|
|
999
|
+
headline: p,
|
|
1000
|
+
pretitle: F,
|
|
1001
|
+
pretitleAs: z,
|
|
1002
|
+
pretitleLinesMax: E,
|
|
1003
|
+
title: g,
|
|
1004
|
+
titleAs: i,
|
|
1005
|
+
titleLinesMax: u,
|
|
1006
|
+
subtitle: V,
|
|
1005
1007
|
subtitleLinesMax: N,
|
|
1006
|
-
description:
|
|
1007
|
-
descriptionLinesMax:
|
|
1008
|
-
withTextShadow:
|
|
1008
|
+
description: I,
|
|
1009
|
+
descriptionLinesMax: A,
|
|
1010
|
+
withTextShadow: O
|
|
1009
1011
|
})
|
|
1010
1012
|
}),
|
|
1011
1013
|
at && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1012
1014
|
style: {
|
|
1013
1015
|
flexShrink: 0,
|
|
1014
1016
|
flexGrow: 0,
|
|
1015
|
-
width:
|
|
1016
|
-
(
|
|
1017
|
+
width: Q * 48 - // required space depends on the card padding
|
|
1018
|
+
(e === "naked" ? 0 : o === "display" ? 24 : 16) - //
|
|
1017
1019
|
8
|
|
1018
1020
|
}
|
|
1019
1021
|
})
|
|
1020
1022
|
]
|
|
1021
1023
|
}),
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
ref:
|
|
1024
|
+
!M && K === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {}),
|
|
1025
|
+
_ && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1026
|
+
ref: Ze,
|
|
1025
1027
|
"data-testid": "slot",
|
|
1026
|
-
children:
|
|
1028
|
+
children: _
|
|
1027
1029
|
}),
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
+
!M && K === "content" && Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {}),
|
|
1031
|
+
Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(Qt, {
|
|
1030
1032
|
size: o,
|
|
1031
|
-
buttonPrimary:
|
|
1032
|
-
buttonSecondary:
|
|
1033
|
-
buttonLink:
|
|
1033
|
+
buttonPrimary: se,
|
|
1034
|
+
buttonSecondary: de,
|
|
1035
|
+
buttonLink: le
|
|
1034
1036
|
})
|
|
1035
1037
|
]
|
|
1036
1038
|
})
|
|
@@ -1038,25 +1040,25 @@ const Gt = /*#__PURE__*/ _react.forwardRef((param, h)=>{
|
|
|
1038
1040
|
})
|
|
1039
1041
|
]
|
|
1040
1042
|
})),
|
|
1041
|
-
|
|
1042
|
-
type:
|
|
1043
|
-
variant:
|
|
1044
|
-
footerVariant:
|
|
1045
|
-
footerBackgroundColor:
|
|
1043
|
+
L && /* @__PURE__ */ (0, _jsxruntime.jsx)(Zt, {
|
|
1044
|
+
type: e,
|
|
1045
|
+
variant: S,
|
|
1046
|
+
footerVariant: Qe,
|
|
1047
|
+
footerBackgroundColor: Je,
|
|
1046
1048
|
size: o,
|
|
1047
1049
|
footerSlot: ye,
|
|
1048
|
-
buttonPrimary:
|
|
1049
|
-
buttonSecondary:
|
|
1050
|
-
buttonLink:
|
|
1051
|
-
hasBackgroundImageOrVideo:
|
|
1052
|
-
isInverseOutside:
|
|
1050
|
+
buttonPrimary: se,
|
|
1051
|
+
buttonSecondary: de,
|
|
1052
|
+
buttonLink: le,
|
|
1053
|
+
hasBackgroundImageOrVideo: O,
|
|
1054
|
+
isInverseOutside: be,
|
|
1053
1055
|
overlayColor: lt
|
|
1054
1056
|
}),
|
|
1055
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1057
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(De, {
|
|
1056
1058
|
onClose: Re,
|
|
1057
|
-
closeButtonLabel:
|
|
1058
|
-
actions:
|
|
1059
|
-
variant:
|
|
1059
|
+
closeButtonLabel: Ue,
|
|
1060
|
+
actions: X,
|
|
1061
|
+
variant: O || H && y !== "left" ? "media" : S
|
|
1060
1062
|
})
|
|
1061
1063
|
]
|
|
1062
1064
|
});
|