@telefonica/mistica 16.51.0 → 16.52.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/accordion.css-mistica.js +6 -6
- package/dist/align.css-mistica.js +1 -1
- package/dist/autocomplete.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 +14 -14
- package/dist/button.css-mistica.js +26 -26
- package/dist/callout.css-mistica.js +11 -11
- package/dist/card-internal.css-mistica.js +23 -20
- package/dist/card-internal.css.d.ts +1 -0
- package/dist/card-internal.js +129 -134
- package/dist/carousel.css-mistica.js +8 -8
- package/dist/checkbox.css-mistica.js +11 -11
- package/dist/chip.css-mistica.js +15 -15
- 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 +3 -3
- package/dist/community/example-component.css-mistica.js +2 -2
- package/dist/counter.css-mistica.js +1 -1
- package/dist/cover-hero.css-mistica.js +2 -2
- 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 +5 -5
- 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 +2 -2
- package/dist/form.css-mistica.js +1 -1
- package/dist/grid-layout.css-mistica.js +3 -3
- package/dist/grid.css-mistica.js +120 -120
- 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 +65 -62
- package/dist/icon-button.css.d.ts +1 -0
- package/dist/icon-button.js +43 -39
- 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 +11 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/inline.css-mistica.js +9 -9
- 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 +13 -13
- package/dist/mosaic.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +18 -18
- 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 +6 -6
- package/dist/radio-button.css-mistica.js +19 -19
- package/dist/rating.css-mistica.js +2 -2
- package/dist/responsive-layout.css-mistica.js +6 -6
- 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 +6 -6
- package/dist/skins/skin-contract.css-mistica.js +642 -642
- package/dist/skip-link.css-mistica.js +1 -1
- package/dist/slider.css-mistica.js +18 -18
- package/dist/snackbar.css-mistica.js +4 -4
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/square.css-mistica.js +11 -0
- package/dist/square.css.d.ts +1 -0
- package/dist/square.d.ts +20 -0
- package/dist/square.js +82 -0
- 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 +35 -35
- package/dist/table.css-mistica.js +9 -9
- package/dist/tabs.css-mistica.js +17 -17
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +15 -15
- package/dist/text-field-components.css-mistica.js +3 -3
- package/dist/text-link.css-mistica.js +6 -6
- package/dist/text.css-mistica.js +6 -6
- package/dist/theme-context.css-mistica.js +1 -1
- package/dist/timeline.css-mistica.js +9 -9
- 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 +2 -2
- 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/autocomplete.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 +14 -14
- package/dist-es/button.css-mistica.js +26 -26
- package/dist-es/callout.css-mistica.js +11 -11
- package/dist-es/card-internal.css-mistica.js +16 -16
- package/dist-es/card-internal.js +163 -168
- package/dist-es/carousel.css-mistica.js +8 -8
- package/dist-es/checkbox.css-mistica.js +11 -11
- package/dist-es/chip.css-mistica.js +15 -15
- 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 +2 -2
- package/dist-es/community/example-component.css-mistica.js +2 -2
- package/dist-es/counter.css-mistica.js +1 -1
- package/dist-es/cover-hero.css-mistica.js +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +120 -120
- 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 +55 -55
- package/dist-es/icon-button.js +56 -52
- 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 +4 -4
- package/dist-es/index.js +2203 -2202
- package/dist-es/inline.css-mistica.js +9 -9
- 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 +13 -13
- package/dist-es/mosaic.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +18 -18
- 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 +6 -6
- package/dist-es/radio-button.css-mistica.js +19 -19
- package/dist-es/rating.css-mistica.js +2 -2
- package/dist-es/responsive-layout.css-mistica.js +6 -6
- 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 +6 -6
- package/dist-es/skins/skin-contract.css-mistica.js +642 -642
- package/dist-es/skip-link.css-mistica.js +1 -1
- package/dist-es/slider.css-mistica.js +18 -18
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/square.css-mistica.js +2 -0
- package/dist-es/square.js +73 -0
- 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 +35 -35
- package/dist-es/table.css-mistica.js +9 -9
- package/dist-es/tabs.css-mistica.js +17 -17
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +15 -15
- package/dist-es/text-field-components.css-mistica.js +3 -3
- package/dist-es/text-link.css-mistica.js +6 -6
- package/dist-es/text.css-mistica.js +6 -6
- package/dist-es/theme-context.css-mistica.js +1 -1
- package/dist-es/timeline.css-mistica.js +9 -9
- 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 +2 -2
- 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-es/card-internal.js
CHANGED
|
@@ -79,50 +79,50 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
81
|
import { jsx as i, jsxs as y, Fragment as Q } from "react/jsx-runtime";
|
|
82
|
-
import * as
|
|
83
|
-
import { touchableCardOverlayInverse as
|
|
82
|
+
import * as I from "react";
|
|
83
|
+
import { touchableContent as ht, touchableCardOverlayInverse as mt, touchableCardOverlay as gt, contentContainer as bt, textContent as ft, containerPaddingXVariants as Z, containerPaddingBottomVariants as vt, containerPaddingTopVariants as ge, touchable as Ae, touchableContainer as kt, topActionsContainer as xt, vars as yt, boxed as St, container as Bt, backgroundImageOrVideoContainer as Rt, actionsContainerVariants as Ht } from "./card-internal.css-mistica.js";
|
|
84
84
|
import { vars as te } from "./image.css-mistica.js";
|
|
85
|
-
import { closeButtonLabel as
|
|
85
|
+
import { closeButtonLabel as wt, playIconButtonLabel as Lt, pauseIconButtonLabel as zt } from "./text-tokens.js";
|
|
86
86
|
import { Text as J } from "./text.js";
|
|
87
87
|
import { useInnerText as Ve, useTheme as ie } from "./hooks.js";
|
|
88
88
|
import { useThemeVariant as be, normalizeVariant as Fe, ThemeVariant as fe } from "./theme-variant-context.js";
|
|
89
|
-
import
|
|
89
|
+
import Tt from "./tag.js";
|
|
90
90
|
import Oe from "./stack.js";
|
|
91
91
|
import Ge from "./image.js";
|
|
92
|
-
import
|
|
92
|
+
import Ct from "./video.js";
|
|
93
93
|
import Me from "./inline.js";
|
|
94
|
-
import
|
|
94
|
+
import Dt from "./spinner.js";
|
|
95
95
|
import It from "./generated/mistica-icons/icon-play-filled.js";
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import { getPrefixedDataAttributes as
|
|
96
|
+
import Nt from "./generated/mistica-icons/icon-pause-filled.js";
|
|
97
|
+
import Pt from "./generated/mistica-icons/icon-close-regular.js";
|
|
98
|
+
import { getPrefixedDataAttributes as At } from "./utils/dom.js";
|
|
99
99
|
import { applyCssVars as G } from "./utils/css.js";
|
|
100
|
-
import { InternalBoxed as
|
|
101
|
-
import { BaseTouchable as
|
|
102
|
-
import { aspectRatioToNumber as ve, AspectRatioContainer as
|
|
100
|
+
import { InternalBoxed as Vt } from "./boxed.js";
|
|
101
|
+
import { BaseTouchable as Ft } from "./touchable.js";
|
|
102
|
+
import { aspectRatioToNumber as ve, AspectRatioContainer as Ot } from "./utils/aspect-ratio-support.js";
|
|
103
103
|
import { vars as g } from "./skins/skin-contract.css-mistica.js";
|
|
104
|
-
import { IconButton as
|
|
105
|
-
import { combineRefs as
|
|
104
|
+
import { IconButton as Mt, ToggleIconButton as Et } from "./icon-button.js";
|
|
105
|
+
import { combineRefs as $t } from "./utils/common.js";
|
|
106
106
|
import { isRunningAcceptanceTest as Ee } from "./utils/platform.js";
|
|
107
107
|
import L from "classnames";
|
|
108
108
|
import jt from "./button-group.js";
|
|
109
109
|
import { isBiggerHeading as _e } from "./utils/headings.js";
|
|
110
|
-
import { applyAlpha as
|
|
111
|
-
const
|
|
112
|
-
let { type: e, children: o, width: a, height: r, aspectRatio: n, "aria-label":
|
|
110
|
+
import { applyAlpha as Gt } from "./utils/color.js";
|
|
111
|
+
const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
112
|
+
let { type: e, children: o, width: a, height: r, aspectRatio: n, "aria-label": l, "aria-labelledby": u, "aria-description": h, "aria-describedby": m, dataAttributes: d, backgroundColor: b, variant: v } = param;
|
|
113
113
|
const x = a && r ? void 0 : ve(n), f = x ? G({
|
|
114
|
-
[
|
|
114
|
+
[yt.aspectRatio]: String(x)
|
|
115
115
|
}) : {}, k = b ? "none" : void 0, c = e === "naked";
|
|
116
116
|
return(// aria-description should be vaild, but this eslint rule is complaining about it
|
|
117
117
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
118
118
|
/* @__PURE__ */ i("section", _object_spread_props(_object_spread({
|
|
119
119
|
ref: p,
|
|
120
|
-
"aria-label":
|
|
121
|
-
"aria-labelledby":
|
|
122
|
-
"aria-description":
|
|
120
|
+
"aria-label": l,
|
|
121
|
+
"aria-labelledby": u,
|
|
122
|
+
"aria-description": h,
|
|
123
123
|
"aria-describedby": m,
|
|
124
|
-
className: L(
|
|
125
|
-
},
|
|
124
|
+
className: L(Bt)
|
|
125
|
+
}, At(d, "InternalCard")), {
|
|
126
126
|
style: _object_spread({
|
|
127
127
|
width: a || "100%",
|
|
128
128
|
height: r || "100%",
|
|
@@ -136,11 +136,11 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
136
136
|
position: "relative",
|
|
137
137
|
minHeight: "100%"
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */ i(
|
|
139
|
+
children: /* @__PURE__ */ i(Vt, {
|
|
140
140
|
width: "100%",
|
|
141
141
|
height: "100%",
|
|
142
142
|
variant: v,
|
|
143
|
-
className: L(
|
|
143
|
+
className: L(St),
|
|
144
144
|
background: c ? "transparent" : b,
|
|
145
145
|
borderRadius: c ? "none" : g.borderRadii.container,
|
|
146
146
|
border: c ? "none" : k,
|
|
@@ -183,12 +183,12 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
183
183
|
}),
|
|
184
184
|
children: n
|
|
185
185
|
});
|
|
186
|
-
},
|
|
186
|
+
}, Xt = (param)=>{
|
|
187
187
|
let { video: e, src: o, srcSet: a, backgroundVariant: r } = param;
|
|
188
188
|
return /* @__PURE__ */ i(fe, {
|
|
189
189
|
variant: r,
|
|
190
190
|
children: /* @__PURE__ */ i("div", {
|
|
191
|
-
className:
|
|
191
|
+
className: Rt,
|
|
192
192
|
style: G({
|
|
193
193
|
[te.mediaBorderRadius]: "0px",
|
|
194
194
|
borderRadius: g.borderRadii.container,
|
|
@@ -206,7 +206,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
206
206
|
})
|
|
207
207
|
})
|
|
208
208
|
});
|
|
209
|
-
},
|
|
209
|
+
}, Kt = {
|
|
210
210
|
loading: {
|
|
211
211
|
play: "playing",
|
|
212
212
|
pause: "paused",
|
|
@@ -226,29 +226,29 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
226
226
|
error: {
|
|
227
227
|
reset: "loading"
|
|
228
228
|
}
|
|
229
|
-
},
|
|
229
|
+
}, Wt = (e, o)=>Kt[e][o] || e, Yt = (param)=>{
|
|
230
230
|
let { color: e } = param;
|
|
231
|
-
return /* @__PURE__ */ i(
|
|
231
|
+
return /* @__PURE__ */ i(Dt, {
|
|
232
232
|
color: e,
|
|
233
233
|
size: 16,
|
|
234
234
|
delay: "0"
|
|
235
235
|
});
|
|
236
|
-
},
|
|
236
|
+
}, qt = (param)=>{
|
|
237
237
|
let { color: e } = param;
|
|
238
|
-
return /* @__PURE__ */ i(
|
|
238
|
+
return /* @__PURE__ */ i(Nt, {
|
|
239
239
|
color: e,
|
|
240
240
|
size: 12
|
|
241
241
|
});
|
|
242
|
-
},
|
|
242
|
+
}, Jt = (param)=>{
|
|
243
243
|
let { color: e } = param;
|
|
244
244
|
return /* @__PURE__ */ i(It, {
|
|
245
245
|
color: e,
|
|
246
246
|
size: 12
|
|
247
247
|
});
|
|
248
|
-
},
|
|
249
|
-
let { src: e, poster: o, ref: a, autoHeight: r, loop: n, autoPlay:
|
|
250
|
-
const { texts:
|
|
251
|
-
|
|
248
|
+
}, Qt = (param)=>{
|
|
249
|
+
let { src: e, poster: o, ref: a, autoHeight: r, loop: n, autoPlay: l, dataAttributes: u } = param;
|
|
250
|
+
const { texts: h, t: m } = ie(), d = I.useRef(null), b = I.useRef(!1), [v, p] = I.useReducer(Wt, process.env.NODE_ENV === "test" ? "playing" : "loading");
|
|
251
|
+
I.useEffect(()=>{
|
|
252
252
|
var _d_current;
|
|
253
253
|
return b.current = !1, (_d_current = d.current) === null || _d_current === void 0 ? void 0 : _d_current.load(), ()=>{
|
|
254
254
|
p("reset");
|
|
@@ -256,20 +256,20 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
256
256
|
}, [
|
|
257
257
|
e
|
|
258
258
|
]);
|
|
259
|
-
const x =
|
|
259
|
+
const x = I.useMemo(()=>{
|
|
260
260
|
if (e === void 0) return;
|
|
261
261
|
const t = ()=>{
|
|
262
|
-
|
|
262
|
+
l === !1 && !b.current && (b.current = !0, p("pause"));
|
|
263
263
|
};
|
|
264
|
-
return /* @__PURE__ */ i(
|
|
265
|
-
ref:
|
|
264
|
+
return /* @__PURE__ */ i(Ct, {
|
|
265
|
+
ref: $t(d, a),
|
|
266
266
|
src: e,
|
|
267
267
|
poster: o,
|
|
268
268
|
width: "100%",
|
|
269
269
|
height: r ? void 0 : "100%",
|
|
270
270
|
loop: n,
|
|
271
|
-
autoPlay:
|
|
272
|
-
dataAttributes:
|
|
271
|
+
autoPlay: l,
|
|
272
|
+
dataAttributes: u,
|
|
273
273
|
onLoad: t,
|
|
274
274
|
onError: ()=>p("fail"),
|
|
275
275
|
onPause: ()=>p("pause"),
|
|
@@ -281,8 +281,8 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
281
281
|
o,
|
|
282
282
|
r,
|
|
283
283
|
n,
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
l,
|
|
285
|
+
u
|
|
286
286
|
]), f = ()=>{
|
|
287
287
|
const t = d.current;
|
|
288
288
|
t && (v === "playing" ? t.pause() : t.play().then(()=>p("play"), ()=>{}));
|
|
@@ -292,12 +292,12 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
292
292
|
};
|
|
293
293
|
const k = v === "loading", c = x ? {
|
|
294
294
|
uncheckedProps: {
|
|
295
|
-
Icon: k && !Ee() ?
|
|
296
|
-
label: k ? "" :
|
|
295
|
+
Icon: k && !Ee() ? Yt : qt,
|
|
296
|
+
label: k ? "" : h.pauseIconButtonLabel || m(zt)
|
|
297
297
|
},
|
|
298
298
|
checkedProps: {
|
|
299
|
-
Icon:
|
|
300
|
-
label:
|
|
299
|
+
Icon: Jt,
|
|
300
|
+
label: h.playIconButtonLabel || m(Lt)
|
|
301
301
|
},
|
|
302
302
|
onChange: f,
|
|
303
303
|
disabled: Ee() ? !1 : k,
|
|
@@ -307,19 +307,19 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
307
307
|
video: x,
|
|
308
308
|
videoAction: c
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, Ut = (param)=>{
|
|
311
311
|
let { size: e, buttonPrimary: o, buttonSecondary: a, buttonLink: r } = param;
|
|
312
312
|
return /* @__PURE__ */ i("div", {
|
|
313
|
-
className:
|
|
313
|
+
className: Ht[e],
|
|
314
314
|
children: /* @__PURE__ */ i(jt, {
|
|
315
315
|
primaryButton: o,
|
|
316
316
|
secondaryButton: a,
|
|
317
317
|
link: r
|
|
318
318
|
})
|
|
319
319
|
});
|
|
320
|
-
},
|
|
320
|
+
}, Zt = (e)=>{
|
|
321
321
|
const o = be();
|
|
322
|
-
if (e.Icon) return /* @__PURE__ */ i(
|
|
322
|
+
if (e.Icon) return /* @__PURE__ */ i(Mt, _object_spread_props(_object_spread({}, e), {
|
|
323
323
|
small: !0,
|
|
324
324
|
"aria-label": e.label,
|
|
325
325
|
type: "neutral",
|
|
@@ -329,7 +329,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
329
329
|
"checkedProps",
|
|
330
330
|
"uncheckedProps"
|
|
331
331
|
]);
|
|
332
|
-
return /* @__PURE__ */ i(
|
|
332
|
+
return /* @__PURE__ */ i(Et, _object_spread_props(_object_spread({
|
|
333
333
|
small: !0
|
|
334
334
|
}, n), {
|
|
335
335
|
checkedProps: _object_spread_props(_object_spread({}, a), {
|
|
@@ -343,35 +343,35 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
343
343
|
backgroundType: "transparent"
|
|
344
344
|
})
|
|
345
345
|
}));
|
|
346
|
-
},
|
|
347
|
-
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles:
|
|
348
|
-
const { texts:
|
|
346
|
+
}, $e = (param)=>{
|
|
347
|
+
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles: l = {} } = param;
|
|
348
|
+
const { texts: u, t: h } = ie(), m = r ? [
|
|
349
349
|
...r
|
|
350
350
|
] : [];
|
|
351
351
|
return o && m.push({
|
|
352
|
-
label: a ||
|
|
352
|
+
label: a || u.closeButtonLabel || h(wt),
|
|
353
353
|
onPress: o,
|
|
354
|
-
Icon:
|
|
354
|
+
Icon: Pt
|
|
355
355
|
}), m.length === 0 ? /* @__PURE__ */ i(Q, {}) : /* @__PURE__ */ i(fe, {
|
|
356
356
|
variant: n,
|
|
357
357
|
children: /* @__PURE__ */ i("div", {
|
|
358
|
-
className:
|
|
359
|
-
style:
|
|
358
|
+
className: xt,
|
|
359
|
+
style: l,
|
|
360
360
|
"data-testid": e,
|
|
361
|
-
children: m.map((d, b)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ i(
|
|
361
|
+
children: m.map((d, b)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ i(Zt, _object_spread({}, d), b) : d)
|
|
362
362
|
})
|
|
363
363
|
});
|
|
364
|
-
},
|
|
365
|
-
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit:
|
|
364
|
+
}, ei = (param)=>{
|
|
365
|
+
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit: l, imageAlt: u = "", video: h, mediaAspectRatio: m, mediaPosition: d, mediaWidth: b, circledImage: v } = param;
|
|
366
366
|
const p = ve(m), x = e === "naked" && v ? {
|
|
367
367
|
circular: !0
|
|
368
368
|
} : {
|
|
369
369
|
width: "100%",
|
|
370
370
|
height: d === "top" && p === 0 ? void 0 : "100%"
|
|
371
371
|
}, k = (()=>{
|
|
372
|
-
if (
|
|
372
|
+
if (h) return h;
|
|
373
373
|
if (r !== void 0 || n !== void 0) {
|
|
374
|
-
const t = d === "left" || d === "right",
|
|
374
|
+
const t = d === "left" || d === "right", s = {
|
|
375
375
|
fit: {
|
|
376
376
|
objectFit: "contain",
|
|
377
377
|
objectPosition: `bottom ${d}`
|
|
@@ -392,8 +392,8 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
392
392
|
dataAttributes: {
|
|
393
393
|
testid: "image"
|
|
394
394
|
},
|
|
395
|
-
alt:
|
|
396
|
-
}), t ? l
|
|
395
|
+
alt: u
|
|
396
|
+
}), t ? s[l] : {}));
|
|
397
397
|
}
|
|
398
398
|
return null;
|
|
399
399
|
})();
|
|
@@ -403,7 +403,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
403
403
|
}));
|
|
404
404
|
return d === "top" ? /* @__PURE__ */ y(Q, {
|
|
405
405
|
children: [
|
|
406
|
-
/* @__PURE__ */ i(
|
|
406
|
+
/* @__PURE__ */ i(Ot, {
|
|
407
407
|
aspectRatio: p,
|
|
408
408
|
style: c,
|
|
409
409
|
children: k
|
|
@@ -435,31 +435,31 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
435
435
|
})
|
|
436
436
|
]
|
|
437
437
|
});
|
|
438
|
-
},
|
|
439
|
-
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: n, buttonSecondary:
|
|
440
|
-
const x = !!(n ||
|
|
438
|
+
}, ti = (param)=>{
|
|
439
|
+
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: n, buttonSecondary: l, buttonLink: u, hasBackgroundImageOrVideo: h, footerVariant: m, footerBackgroundColor: d, footerDivider: b, externalVariant: v, overlayColor: p } = param;
|
|
440
|
+
const x = !!(n || l || u), f = !!(n && l && u), k = {
|
|
441
441
|
default: g.colors.divider,
|
|
442
442
|
brand: g.colors.dividerBrand,
|
|
443
443
|
negative: g.colors.dividerNegative,
|
|
444
444
|
media: g.colors.dividerBrand,
|
|
445
445
|
alternative: g.colors.divider
|
|
446
|
-
}[a], c = e === "naked", t = d || (m && m !== a ? m === "default" ? g.colors.backgroundContainer : v === "brand" || v === "media" || v === "negative" ? g.colors.backgroundContainerBrandOverBrand : g.colors.backgroundContainerBrand : void 0),
|
|
446
|
+
}[a], c = e === "naked", t = d || (m && m !== a ? m === "default" ? g.colors.backgroundContainer : v === "brand" || v === "media" || v === "negative" ? g.colors.backgroundContainerBrandOverBrand : g.colors.backgroundContainerBrand : void 0), s = b !== null && b !== void 0 ? b : !t;
|
|
447
447
|
return /* @__PURE__ */ y(fe, {
|
|
448
448
|
variant: m || a,
|
|
449
449
|
children: [
|
|
450
450
|
/* @__PURE__ */ i(U, {}),
|
|
451
451
|
/* @__PURE__ */ y("div", {
|
|
452
452
|
style: {
|
|
453
|
-
background: t || (
|
|
453
|
+
background: t || (h ? p : void 0),
|
|
454
454
|
position: "relative",
|
|
455
|
-
backdropFilter:
|
|
455
|
+
backdropFilter: h ? "blur(12px)" : void 0,
|
|
456
456
|
borderBottomLeftRadius: c ? 0 : g.borderRadii.container,
|
|
457
457
|
borderBottomRightRadius: c ? 0 : g.borderRadii.container
|
|
458
458
|
},
|
|
459
459
|
children: [
|
|
460
460
|
/* @__PURE__ */ i("div", {
|
|
461
461
|
style: {
|
|
462
|
-
borderTop:
|
|
462
|
+
borderTop: s ? `1px solid ${k}` : void 0,
|
|
463
463
|
marginRight: c ? 16 : 0
|
|
464
464
|
}
|
|
465
465
|
}),
|
|
@@ -488,14 +488,14 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
488
488
|
alignItems: "center",
|
|
489
489
|
children: [
|
|
490
490
|
n,
|
|
491
|
-
|
|
491
|
+
l
|
|
492
492
|
]
|
|
493
493
|
}),
|
|
494
494
|
/* @__PURE__ */ i("div", {
|
|
495
495
|
style: {
|
|
496
496
|
marginLeft: -12
|
|
497
497
|
},
|
|
498
|
-
children:
|
|
498
|
+
children: u
|
|
499
499
|
})
|
|
500
500
|
]
|
|
501
501
|
}) : /* @__PURE__ */ y(Me, {
|
|
@@ -503,8 +503,8 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
503
503
|
alignItems: "center",
|
|
504
504
|
children: [
|
|
505
505
|
n,
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
l,
|
|
507
|
+
u
|
|
508
508
|
]
|
|
509
509
|
}))
|
|
510
510
|
]
|
|
@@ -514,34 +514,34 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
514
514
|
})
|
|
515
515
|
]
|
|
516
516
|
});
|
|
517
|
-
},
|
|
518
|
-
let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline:
|
|
519
|
-
const { textPresets: t, colorValues:
|
|
517
|
+
}, ii = (param)=>{
|
|
518
|
+
let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline: l, title: u, titleAs: h = "h3", titleLinesMax: m, pretitle: d, pretitleAs: b, pretitleLinesMax: v, subtitle: p, subtitleLinesMax: x, description: f, descriptionLinesMax: k, withTextShadow: c } = param;
|
|
519
|
+
const { textPresets: t, colorValues: s } = ie(), M = be(), z = {
|
|
520
520
|
hyphens: "auto"
|
|
521
521
|
}, E = {
|
|
522
522
|
default: {
|
|
523
|
-
pretitle:
|
|
524
|
-
title:
|
|
525
|
-
subtitle:
|
|
526
|
-
description:
|
|
523
|
+
pretitle: s.textPrimary,
|
|
524
|
+
title: s.textPrimary,
|
|
525
|
+
subtitle: s.textPrimary,
|
|
526
|
+
description: s.textSecondary
|
|
527
527
|
},
|
|
528
528
|
brand: {
|
|
529
|
-
pretitle:
|
|
530
|
-
title:
|
|
531
|
-
subtitle:
|
|
532
|
-
description:
|
|
529
|
+
pretitle: s.textPrimaryBrand,
|
|
530
|
+
title: s.textPrimaryBrand,
|
|
531
|
+
subtitle: s.textPrimaryBrand,
|
|
532
|
+
description: s.textSecondaryBrand
|
|
533
533
|
},
|
|
534
534
|
negative: {
|
|
535
|
-
pretitle:
|
|
536
|
-
title:
|
|
537
|
-
subtitle:
|
|
538
|
-
description:
|
|
535
|
+
pretitle: s.textPrimaryNegative,
|
|
536
|
+
title: s.textPrimaryNegative,
|
|
537
|
+
subtitle: s.textPrimaryNegative,
|
|
538
|
+
description: s.textSecondaryNegative
|
|
539
539
|
},
|
|
540
540
|
media: {
|
|
541
|
-
pretitle:
|
|
542
|
-
title:
|
|
543
|
-
subtitle:
|
|
544
|
-
description: e === "cover" && o ?
|
|
541
|
+
pretitle: s.textPrimaryMedia,
|
|
542
|
+
title: s.textPrimaryMedia,
|
|
543
|
+
subtitle: s.textPrimaryMedia,
|
|
544
|
+
description: e === "cover" && o ? s.textPrimaryMedia : s.textSecondaryMedia
|
|
545
545
|
}
|
|
546
546
|
}, N = {
|
|
547
547
|
snap: {
|
|
@@ -634,7 +634,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
634
634
|
weight: "regular"
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
}, P = E[n] || E[M] || E.default, w = N[r] || N.default, A = c ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, oe =
|
|
637
|
+
}, P = E[n] || E[M] || E.default, w = N[r] || N.default, A = c ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, oe = l && // Read order 2. Visual order 1
|
|
638
638
|
/* @__PURE__ */ i("div", {
|
|
639
639
|
style: {
|
|
640
640
|
paddingBottom: 8,
|
|
@@ -642,10 +642,10 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
642
642
|
},
|
|
643
643
|
"data-testid": "headline",
|
|
644
644
|
ref: a,
|
|
645
|
-
children: typeof
|
|
645
|
+
children: typeof l == "string" ? /* @__PURE__ */ i(Tt, {
|
|
646
646
|
type: "promo",
|
|
647
|
-
children:
|
|
648
|
-
}) :
|
|
647
|
+
children: l
|
|
648
|
+
}) : l
|
|
649
649
|
}), T = d && // Read order: 3 or 1. Visual order 2
|
|
650
650
|
/* @__PURE__ */ i("div", {
|
|
651
651
|
style: {
|
|
@@ -660,7 +660,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
660
660
|
textShadow: A,
|
|
661
661
|
children: d
|
|
662
662
|
}))
|
|
663
|
-
}), _ =
|
|
663
|
+
}), _ = u && // Read order: 1 or 3. Visual order 3
|
|
664
664
|
/* @__PURE__ */ i("div", {
|
|
665
665
|
style: {
|
|
666
666
|
paddingBottom: 4,
|
|
@@ -668,11 +668,11 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
668
668
|
},
|
|
669
669
|
"data-testid": "title",
|
|
670
670
|
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({}, z, w.title), {
|
|
671
|
-
as:
|
|
671
|
+
as: h,
|
|
672
672
|
truncate: m,
|
|
673
673
|
color: P.title,
|
|
674
674
|
textShadow: A,
|
|
675
|
-
children:
|
|
675
|
+
children: u
|
|
676
676
|
}))
|
|
677
677
|
}), re = p && // Read order: 4. Visual order 4
|
|
678
678
|
/* @__PURE__ */ i("div", {
|
|
@@ -702,7 +702,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
702
702
|
textShadow: A,
|
|
703
703
|
children: f
|
|
704
704
|
}))
|
|
705
|
-
}), [X, K] =
|
|
705
|
+
}), [X, K] = u && _e(h, b) ? [
|
|
706
706
|
_,
|
|
707
707
|
T
|
|
708
708
|
] : [
|
|
@@ -722,11 +722,11 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
722
722
|
ae
|
|
723
723
|
]
|
|
724
724
|
});
|
|
725
|
-
},
|
|
725
|
+
}, oi = [
|
|
726
726
|
g.colors.cardContentOverlay,
|
|
727
727
|
g.colors.cardFooterOverlay
|
|
728
|
-
],
|
|
729
|
-
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt:
|
|
728
|
+
], ri = /rgba\([^,]+,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)/g, je = (e, o)=>e.replace(ri, (a, r)=>Gt(o, parseFloat(r))), Pi = /*#__PURE__*/ I.forwardRef((_param, Ze)=>{
|
|
729
|
+
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt: l = "", imageFit: u = "fill-center", videoSrc: h, videoRef: m, media: d, mediaAspectRatio: b = "auto", mediaPosition: v = "top", mediaWidth: p = 150, circledImage: x, asset: f, headline: k, title: c, titleAs: t = "h3", titleLinesMax: s, pretitle: M, pretitleAs: z, pretitleLinesMax: E, subtitle: N, subtitleLinesMax: P, description: w, descriptionLinesMax: A, dataAttributes: oe, variant: T, width: _, height: re, aspectRatio: ae, slot: X, slotAlignment: K = "content", buttonPrimary: ne, buttonSecondary: de, buttonLink: le, showFooter: Xe, footerBackgroundColor: Ke, footerVariant: We, footerSlot: ke, footerDivider: Ye, topActions: xe, onClose: ye, closeButtonLabel: qe, "aria-label": Se, "aria-labelledby": se, "aria-description": Be, "aria-describedby": Re, gradientOverlayColor: W, videoLoop: Je, videoAutoPlay: Qe, videoDataAttributes: Ue } = _param, V = _object_without_properties(_param, [
|
|
730
730
|
"type",
|
|
731
731
|
"size",
|
|
732
732
|
"backgroundColor",
|
|
@@ -780,17 +780,17 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
780
780
|
"videoAutoPlay",
|
|
781
781
|
"videoDataAttributes"
|
|
782
782
|
]);
|
|
783
|
-
const { text: He, ref: et } = Ve(), { text: we, ref: tt } = Ve(), B = !!(V.href || V.to || V.onPress), ce = !!(ne || de ||
|
|
784
|
-
src: ot ?
|
|
783
|
+
const { text: He, ref: et } = Ve(), { text: we, ref: tt } = Ve(), B = !!(V.href || V.to || V.onPress), ce = !!(ne || de || le), { colorValues: Le } = ie(), pe = e === "media" || e === "naked", it = pe && (r !== void 0 || n !== void 0), ze = pe && h !== void 0, Te = it || ze, ue = pe && !!d && !Te, R = Te || ue, H = e === "naked", S = R ? v : "top", Ce = e === "naked" && x ? 1 : b, he = e === "cover" && (r !== void 0 || n !== void 0), Y = e === "cover" && h !== void 0, De = !!a || he || Y, F = he || Y, ot = ze || Y, { video: Ie, videoAction: me } = Qt({
|
|
784
|
+
src: ot ? h : void 0,
|
|
785
785
|
poster: r,
|
|
786
786
|
ref: m,
|
|
787
787
|
autoHeight: e === "cover" || S !== "top" ? !1 : ve(Ce) === 0,
|
|
788
788
|
loop: Je,
|
|
789
789
|
autoPlay: Qe,
|
|
790
790
|
dataAttributes: Ue
|
|
791
|
-
}),
|
|
791
|
+
}), $ = be(), rt = T ? Fe(T) : $, C = T && Fe(T) || (e === "cover" && De ? "media" : "default"), at = C === "brand" ? mt : gt, D = Xe && (ce || !!ke) || ce && B, Ne = !D && ce, q = ((xe === null || xe === void 0 ? void 0 : xe.length) || 0) + (ye ? 1 : 0), Pe = me ? q + 1 : q, nt = f && !(R && S === "left"), dt = e !== "cover" && Pe > 0 && !nt && !k, j = e === "cover" || e === "data" && o === "display", O = g.borderRadii.container, lt = he || Y ? "transparent" : a || (C === "media" ? $ === "brand" || $ === "media" || $ === "negative" ? g.colors.backgroundContainerBrandOverBrand : g.colors.backgroundBrand : C === "alternative" ? g.colors.backgroundAlternative : void 0), st = Se || (se ? void 0 : (c && _e(t, z) ? [
|
|
792
792
|
c,
|
|
793
|
-
|
|
793
|
+
l,
|
|
794
794
|
we,
|
|
795
795
|
M,
|
|
796
796
|
N,
|
|
@@ -800,7 +800,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
800
800
|
M,
|
|
801
801
|
we,
|
|
802
802
|
c,
|
|
803
|
-
|
|
803
|
+
l,
|
|
804
804
|
N,
|
|
805
805
|
w,
|
|
806
806
|
He
|
|
@@ -808,12 +808,12 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
808
808
|
"transparent",
|
|
809
809
|
"transparent"
|
|
810
810
|
] : W ? [
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
] :
|
|
814
|
-
return /* @__PURE__ */ y(
|
|
811
|
+
je(Le.cardContentOverlay, W),
|
|
812
|
+
je(Le.cardFooterOverlay, W)
|
|
813
|
+
] : oi, [pt, ut] = ct();
|
|
814
|
+
return /* @__PURE__ */ y(_t, {
|
|
815
815
|
"aria-label": B ? void 0 : Se,
|
|
816
|
-
"aria-labelledby": B ? void 0 :
|
|
816
|
+
"aria-labelledby": B ? void 0 : se,
|
|
817
817
|
"aria-description": B ? void 0 : Be,
|
|
818
818
|
"aria-describedby": B ? void 0 : Re,
|
|
819
819
|
type: e,
|
|
@@ -824,10 +824,10 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
824
824
|
width: _,
|
|
825
825
|
height: re,
|
|
826
826
|
aspectRatio: ae,
|
|
827
|
-
backgroundColor:
|
|
827
|
+
backgroundColor: lt,
|
|
828
828
|
children: [
|
|
829
|
-
F && /* @__PURE__ */ i(
|
|
830
|
-
video:
|
|
829
|
+
F && /* @__PURE__ */ i(Xt, {
|
|
830
|
+
video: Ie,
|
|
831
831
|
src: r,
|
|
832
832
|
srcSet: n,
|
|
833
833
|
backgroundVariant: rt
|
|
@@ -835,7 +835,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
835
835
|
me && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
|
|
836
836
|
/* @__PURE__ */ i("div", {
|
|
837
837
|
"data-testid": "videoAction",
|
|
838
|
-
children: /* @__PURE__ */ i(
|
|
838
|
+
children: /* @__PURE__ */ i($e, {
|
|
839
839
|
testid: "videoAction",
|
|
840
840
|
variant: "media",
|
|
841
841
|
actions: [
|
|
@@ -849,34 +849,29 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
849
849
|
}
|
|
850
850
|
})
|
|
851
851
|
}),
|
|
852
|
-
/* @__PURE__ */ i(
|
|
852
|
+
/* @__PURE__ */ i(Ft, _object_spread_props(_object_spread({
|
|
853
853
|
maybe: !0,
|
|
854
|
-
"aria-label": B ?
|
|
855
|
-
"aria-labelledby": B ?
|
|
854
|
+
"aria-label": B ? st : void 0,
|
|
855
|
+
"aria-labelledby": B ? se : void 0,
|
|
856
856
|
"aria-description": B ? Be : void 0,
|
|
857
857
|
"aria-describedby": B ? Re : void 0,
|
|
858
|
-
className: L(Ae,
|
|
858
|
+
className: L(Ae, kt)
|
|
859
859
|
}, V), {
|
|
860
|
-
style: {
|
|
861
|
-
flexDirection: S === "top" ? "column" : S === "left" ? "row" : "row-reverse",
|
|
862
|
-
justifyItems: "stretch",
|
|
863
|
-
borderTopLeftRadius: H && !R ? 0 : `calc(${O} - 1px)`,
|
|
864
|
-
borderTopRightRadius: H && !R ? 0 : `calc(${O} - 1px)`,
|
|
865
|
-
borderBottomLeftRadius: I || H ? 0 : `calc(${O} - 1px)`,
|
|
866
|
-
borderBottomRightRadius: I || H ? 0 : `calc(${O} - 1px)`,
|
|
867
|
-
overflow: "hidden",
|
|
868
|
-
zIndex: 1
|
|
869
|
-
},
|
|
870
860
|
children: /* @__PURE__ */ y("div", {
|
|
861
|
+
role: V.href || V.to ? "text" : void 0,
|
|
862
|
+
className: ht,
|
|
871
863
|
style: {
|
|
872
|
-
|
|
864
|
+
flexDirection: S === "top" ? "column" : S === "left" ? "row" : "row-reverse",
|
|
865
|
+
borderTopLeftRadius: H && !R ? 0 : `calc(${O} - 1px)`,
|
|
866
|
+
borderTopRightRadius: H && !R ? 0 : `calc(${O} - 1px)`,
|
|
867
|
+
borderBottomLeftRadius: D || H ? 0 : `calc(${O} - 1px)`,
|
|
868
|
+
borderBottomRightRadius: D || H ? 0 : `calc(${O} - 1px)`
|
|
873
869
|
},
|
|
874
|
-
role: V.href || V.to ? "text" : void 0,
|
|
875
870
|
children: [
|
|
876
871
|
B && /* @__PURE__ */ i("div", {
|
|
877
872
|
className: at
|
|
878
873
|
}),
|
|
879
|
-
|
|
874
|
+
ue && /* @__PURE__ */ i("div", {
|
|
880
875
|
style: _object_spread({
|
|
881
876
|
// for some reason, this width is required to pass headless screenshot tests
|
|
882
877
|
// otherwise, it gets 0px width and the media is not visible
|
|
@@ -886,23 +881,23 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
886
881
|
})),
|
|
887
882
|
children: d
|
|
888
883
|
}),
|
|
889
|
-
|
|
884
|
+
ue && /* @__PURE__ */ i(ee, {
|
|
890
885
|
absolute: !0,
|
|
891
886
|
size: o,
|
|
892
887
|
asset: f,
|
|
893
888
|
type: e
|
|
894
889
|
}),
|
|
895
|
-
R && /* @__PURE__ */ i(
|
|
890
|
+
R && /* @__PURE__ */ i(ei, {
|
|
896
891
|
type: e,
|
|
897
892
|
size: o,
|
|
898
893
|
mediaAspectRatio: Ce,
|
|
899
894
|
mediaPosition: S,
|
|
900
895
|
asset: f,
|
|
901
|
-
video:
|
|
902
|
-
imageFit:
|
|
896
|
+
video: Ie,
|
|
897
|
+
imageFit: u,
|
|
903
898
|
imageSrc: r,
|
|
904
899
|
imageSrcSet: n,
|
|
905
|
-
imageAlt:
|
|
900
|
+
imageAlt: l,
|
|
906
901
|
mediaWidth: p,
|
|
907
902
|
circledImage: x
|
|
908
903
|
}),
|
|
@@ -918,33 +913,33 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
918
913
|
asset: f,
|
|
919
914
|
type: e
|
|
920
915
|
}),
|
|
921
|
-
|
|
916
|
+
j && /* @__PURE__ */ i(U, {
|
|
922
917
|
minHeight: e === "cover" && Pe > 0 && !f ? 56 : 0
|
|
923
918
|
}),
|
|
924
919
|
/* @__PURE__ */ y("div", {
|
|
925
|
-
className: L(Z[o],
|
|
920
|
+
className: L(Z[o], vt[o], ge[o]),
|
|
926
921
|
style: {
|
|
927
922
|
display: "flex",
|
|
928
923
|
flexDirection: "column",
|
|
929
|
-
height:
|
|
924
|
+
height: j ? void 0 : "100%",
|
|
930
925
|
background: F ? pt : void 0,
|
|
931
926
|
// padding overrides for specific cases
|
|
932
|
-
paddingTop:
|
|
927
|
+
paddingTop: j && F ? 40 : f || H && S !== "top" ? 16 : H && !R ? 0 : void 0,
|
|
933
928
|
paddingLeft: H && (S !== "left" || !R) ? 0 : void 0,
|
|
934
929
|
paddingRight: H && S !== "right" ? 16 : void 0,
|
|
935
|
-
paddingBottom:
|
|
936
|
-
borderBottomLeftRadius:
|
|
937
|
-
borderBottomRightRadius:
|
|
930
|
+
paddingBottom: D ? 16 : H ? 0 : void 0,
|
|
931
|
+
borderBottomLeftRadius: D ? 0 : O,
|
|
932
|
+
borderBottomRightRadius: D ? 0 : O
|
|
938
933
|
},
|
|
939
934
|
children: [
|
|
940
935
|
/* @__PURE__ */ y("div", {
|
|
941
|
-
className:
|
|
936
|
+
className: bt,
|
|
942
937
|
children: [
|
|
943
938
|
/* @__PURE__ */ i("div", {
|
|
944
|
-
className:
|
|
945
|
-
children: /* @__PURE__ */ i(
|
|
939
|
+
className: ft,
|
|
940
|
+
children: /* @__PURE__ */ i(ii, {
|
|
946
941
|
type: e,
|
|
947
|
-
hasCustomBackground:
|
|
942
|
+
hasCustomBackground: De,
|
|
948
943
|
headlineRef: tt,
|
|
949
944
|
variant: C,
|
|
950
945
|
size: o,
|
|
@@ -954,7 +949,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
954
949
|
pretitleLinesMax: E,
|
|
955
950
|
title: c,
|
|
956
951
|
titleAs: t,
|
|
957
|
-
titleLinesMax:
|
|
952
|
+
titleLinesMax: s,
|
|
958
953
|
subtitle: N,
|
|
959
954
|
subtitleLinesMax: P,
|
|
960
955
|
description: w,
|
|
@@ -973,18 +968,18 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
973
968
|
})
|
|
974
969
|
]
|
|
975
970
|
}),
|
|
976
|
-
|
|
971
|
+
!j && K === "bottom" && /* @__PURE__ */ i(U, {}),
|
|
977
972
|
X && /* @__PURE__ */ i("div", {
|
|
978
973
|
ref: et,
|
|
979
974
|
"data-testid": "slot",
|
|
980
975
|
children: X
|
|
981
976
|
}),
|
|
982
|
-
|
|
983
|
-
Ne && /* @__PURE__ */ i(
|
|
977
|
+
!j && K === "content" && Ne && /* @__PURE__ */ i(U, {}),
|
|
978
|
+
Ne && /* @__PURE__ */ i(Ut, {
|
|
984
979
|
size: o,
|
|
985
980
|
buttonPrimary: ne,
|
|
986
981
|
buttonSecondary: de,
|
|
987
|
-
buttonLink:
|
|
982
|
+
buttonLink: le
|
|
988
983
|
})
|
|
989
984
|
]
|
|
990
985
|
})
|
|
@@ -993,7 +988,7 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
993
988
|
]
|
|
994
989
|
})
|
|
995
990
|
})),
|
|
996
|
-
|
|
991
|
+
D && /* @__PURE__ */ i(ti, {
|
|
997
992
|
type: e,
|
|
998
993
|
variant: C,
|
|
999
994
|
footerVariant: We,
|
|
@@ -1003,12 +998,12 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
1003
998
|
footerSlot: ke,
|
|
1004
999
|
buttonPrimary: ne,
|
|
1005
1000
|
buttonSecondary: de,
|
|
1006
|
-
buttonLink:
|
|
1001
|
+
buttonLink: le,
|
|
1007
1002
|
hasBackgroundImageOrVideo: F,
|
|
1008
|
-
externalVariant:
|
|
1009
|
-
overlayColor:
|
|
1003
|
+
externalVariant: $,
|
|
1004
|
+
overlayColor: ut
|
|
1010
1005
|
}),
|
|
1011
|
-
/* @__PURE__ */ i(
|
|
1006
|
+
/* @__PURE__ */ i($e, {
|
|
1012
1007
|
onClose: ye,
|
|
1013
1008
|
closeButtonLabel: qe,
|
|
1014
1009
|
actions: xe,
|
|
@@ -1017,4 +1012,4 @@ const Gt = /*#__PURE__*/ D.forwardRef((param, p)=>{
|
|
|
1017
1012
|
]
|
|
1018
1013
|
});
|
|
1019
1014
|
});
|
|
1020
|
-
export {
|
|
1015
|
+
export { Zt as CardActionIconButton, Yt as CardActionSpinner, Pi as InternalCard, $e as TopActions, Qt as useVideoWithControls };
|