@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-es/card-internal.js
CHANGED
|
@@ -78,57 +78,57 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as
|
|
82
|
-
import * as
|
|
83
|
-
import { container as ht, boxed as
|
|
84
|
-
import { vars as
|
|
85
|
-
import { pauseIconButtonLabel as wt, playIconButtonLabel as
|
|
86
|
-
import { Text as
|
|
87
|
-
import { useInnerText as
|
|
88
|
-
import { useThemeVariant as
|
|
81
|
+
import { jsx as t, jsxs as k, Fragment as W } from "react/jsx-runtime";
|
|
82
|
+
import * as B from "react";
|
|
83
|
+
import { container as ht, boxed as mt, touchable as Ee, touchableContainer as pt, containerPaddingTopVariants as fe, containerPaddingXVariants as ee, containerPaddingBottomVariants as ut, contentContainer as gt, textContent as bt, vars as vt, backgroundImageOrVideoContainer as ft, actionsContainerVariants as xt, topActionsContainer as kt, touchableCardOverlayInverse as yt, touchableCardOverlay as Rt } from "./card-internal.css-mistica.js";
|
|
84
|
+
import { vars as ie } from "./image.css-mistica.js";
|
|
85
|
+
import { pauseIconButtonLabel as wt, playIconButtonLabel as It, closeButtonLabel as Ht } from "./text-tokens.js";
|
|
86
|
+
import { Text as U } from "./text.js";
|
|
87
|
+
import { useInnerText as $e, useTheme as oe } from "./hooks.js";
|
|
88
|
+
import { useThemeVariant as Ke, useIsInverseVariant as Bt, ThemeVariant as xe } from "./theme-variant-context.js";
|
|
89
89
|
import Ct from "./tag.js";
|
|
90
|
-
import
|
|
91
|
-
import
|
|
90
|
+
import je from "./stack.js";
|
|
91
|
+
import Xe from "./image.js";
|
|
92
92
|
import zt from "./video.js";
|
|
93
|
-
import
|
|
93
|
+
import Me from "./inline.js";
|
|
94
94
|
import Tt from "./spinner.js";
|
|
95
95
|
import St from "./generated/mistica-icons/icon-play-filled.js";
|
|
96
96
|
import Lt from "./generated/mistica-icons/icon-pause-filled.js";
|
|
97
97
|
import Vt from "./generated/mistica-icons/icon-close-regular.js";
|
|
98
98
|
import { getPrefixedDataAttributes as Nt } from "./utils/dom.js";
|
|
99
|
-
import { applyCssVars as
|
|
99
|
+
import { applyCssVars as G } from "./utils/css.js";
|
|
100
100
|
import { InternalBoxed as At } from "./boxed.js";
|
|
101
101
|
import { BaseTouchable as Ot } from "./touchable.js";
|
|
102
|
-
import { aspectRatioToNumber as
|
|
103
|
-
import { vars as
|
|
102
|
+
import { aspectRatioToNumber as ke, AspectRatioContainer as Pt } from "./utils/aspect-ratio-support.js";
|
|
103
|
+
import { vars as b } from "./skins/skin-contract.css-mistica.js";
|
|
104
104
|
import { IconButton as Ft, ToggleIconButton as Et } from "./icon-button.js";
|
|
105
105
|
import { combineRefs as $t } from "./utils/common.js";
|
|
106
|
-
import { isRunningAcceptanceTest as
|
|
107
|
-
import
|
|
106
|
+
import { isRunningAcceptanceTest as Ge } from "./utils/platform.js";
|
|
107
|
+
import C from "classnames";
|
|
108
108
|
import jt from "./button-group.js";
|
|
109
|
-
import { isBiggerHeading as
|
|
109
|
+
import { isBiggerHeading as Ye } from "./utils/headings.js";
|
|
110
110
|
import { getRGBComponents as Mt } from "./utils/color.js";
|
|
111
|
-
const Gt = /*#__PURE__*/
|
|
112
|
-
let { type:
|
|
113
|
-
const
|
|
114
|
-
[vt.aspectRatio]: String(
|
|
115
|
-
}) : {},
|
|
111
|
+
const Gt = /*#__PURE__*/ B.forwardRef((param, m)=>{
|
|
112
|
+
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;
|
|
113
|
+
const x = r && n ? void 0 : ke(a), f = x ? G({
|
|
114
|
+
[vt.aspectRatio]: String(x)
|
|
115
|
+
}) : {}, p = v ? "none" : void 0, g = 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
|
-
/* @__PURE__ */
|
|
119
|
-
ref:
|
|
120
|
-
"aria-label":
|
|
121
|
-
"aria-labelledby":
|
|
118
|
+
/* @__PURE__ */ t("section", _object_spread_props(_object_spread({
|
|
119
|
+
ref: m,
|
|
120
|
+
"aria-label": c,
|
|
121
|
+
"aria-labelledby": h,
|
|
122
122
|
"aria-description": d,
|
|
123
|
-
"aria-describedby":
|
|
124
|
-
className:
|
|
125
|
-
}, Nt(
|
|
123
|
+
"aria-describedby": l,
|
|
124
|
+
className: C(ht)
|
|
125
|
+
}, Nt(s, "InternalCard")), {
|
|
126
126
|
style: _object_spread({
|
|
127
|
-
width:
|
|
128
|
-
height:
|
|
127
|
+
width: r || "100%",
|
|
128
|
+
height: n || "100%",
|
|
129
129
|
position: "relative"
|
|
130
|
-
},
|
|
131
|
-
children: /* @__PURE__ */
|
|
130
|
+
}, f),
|
|
131
|
+
children: /* @__PURE__ */ t("div", {
|
|
132
132
|
style: {
|
|
133
133
|
display: "flex",
|
|
134
134
|
flexDirection: "column",
|
|
@@ -136,72 +136,72 @@ const Gt = /*#__PURE__*/ I.forwardRef((param, h)=>{
|
|
|
136
136
|
position: "relative",
|
|
137
137
|
minHeight: "100%"
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ t(At, {
|
|
140
140
|
width: "100%",
|
|
141
141
|
height: "100%",
|
|
142
|
-
variant:
|
|
143
|
-
className:
|
|
144
|
-
background:
|
|
145
|
-
borderRadius:
|
|
146
|
-
border:
|
|
142
|
+
variant: R,
|
|
143
|
+
className: C(mt),
|
|
144
|
+
background: g ? "transparent" : v,
|
|
145
|
+
borderRadius: g ? "none" : b.borderRadii.container,
|
|
146
|
+
border: g ? "none" : p,
|
|
147
147
|
overflow: "visible",
|
|
148
148
|
children: o
|
|
149
149
|
})
|
|
150
150
|
})
|
|
151
151
|
})));
|
|
152
|
-
}),
|
|
153
|
-
let { minHeight:
|
|
154
|
-
return /* @__PURE__ */
|
|
152
|
+
}), Z = (param)=>{
|
|
153
|
+
let { minHeight: e } = param;
|
|
154
|
+
return /* @__PURE__ */ t("div", {
|
|
155
155
|
style: {
|
|
156
156
|
flexGrow: 1,
|
|
157
157
|
flexShrink: 0,
|
|
158
|
-
minHeight:
|
|
158
|
+
minHeight: e
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
-
},
|
|
162
|
-
let { size:
|
|
163
|
-
if (!
|
|
164
|
-
const a = /* @__PURE__ */
|
|
161
|
+
}, te = (param)=>{
|
|
162
|
+
let { size: e, absolute: o, asset: r, type: n } = param;
|
|
163
|
+
if (!r) return null;
|
|
164
|
+
const a = /* @__PURE__ */ t("div", {
|
|
165
165
|
"data-testid": "asset",
|
|
166
166
|
"aria-hidden": !0,
|
|
167
|
-
style:
|
|
168
|
-
[
|
|
167
|
+
style: G({
|
|
168
|
+
[ie.mediaBorderRadius]: b.borderRadii.mediaSmall
|
|
169
169
|
}),
|
|
170
|
-
children:
|
|
170
|
+
children: r
|
|
171
171
|
});
|
|
172
|
-
return o ? /* @__PURE__ */
|
|
172
|
+
return o ? /* @__PURE__ */ t("div", {
|
|
173
173
|
style: {
|
|
174
174
|
position: "absolute",
|
|
175
175
|
top: 0,
|
|
176
176
|
left: 0
|
|
177
177
|
},
|
|
178
|
-
className:
|
|
178
|
+
className: C(ee[e], fe[e]),
|
|
179
179
|
children: a
|
|
180
|
-
}) : /* @__PURE__ */
|
|
181
|
-
className:
|
|
182
|
-
[
|
|
180
|
+
}) : /* @__PURE__ */ t("div", {
|
|
181
|
+
className: C({
|
|
182
|
+
[ee[e]]: n !== "naked"
|
|
183
183
|
}),
|
|
184
184
|
children: a
|
|
185
185
|
});
|
|
186
186
|
}, Dt = (param)=>{
|
|
187
|
-
let { video:
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
variant:
|
|
190
|
-
children: /* @__PURE__ */
|
|
187
|
+
let { video: e, src: o, srcSet: r, backgroundVariant: n } = param;
|
|
188
|
+
return /* @__PURE__ */ t(xe, {
|
|
189
|
+
variant: n,
|
|
190
|
+
children: /* @__PURE__ */ t("div", {
|
|
191
191
|
className: ft,
|
|
192
|
-
style:
|
|
193
|
-
[
|
|
194
|
-
borderRadius:
|
|
192
|
+
style: G({
|
|
193
|
+
[ie.mediaBorderRadius]: "0px",
|
|
194
|
+
borderRadius: b.borderRadii.container,
|
|
195
195
|
overflow: "hidden"
|
|
196
196
|
}),
|
|
197
|
-
children:
|
|
197
|
+
children: e || /* @__PURE__ */ t(Xe, {
|
|
198
198
|
dataAttributes: {
|
|
199
199
|
testid: "image"
|
|
200
200
|
},
|
|
201
201
|
width: "100%",
|
|
202
202
|
height: "100%",
|
|
203
203
|
src: o || "",
|
|
204
|
-
srcSet:
|
|
204
|
+
srcSet: r,
|
|
205
205
|
alt: ""
|
|
206
206
|
})
|
|
207
207
|
})
|
|
@@ -232,266 +232,266 @@ const Gt = /*#__PURE__*/ I.forwardRef((param, h)=>{
|
|
|
232
232
|
error: {
|
|
233
233
|
reset: "loading"
|
|
234
234
|
}
|
|
235
|
-
}, Kt = (
|
|
236
|
-
let { color:
|
|
237
|
-
return /* @__PURE__ */
|
|
238
|
-
color:
|
|
235
|
+
}, Kt = (e, o)=>_t[e][o] || e, Xt = (param)=>{
|
|
236
|
+
let { color: e } = param;
|
|
237
|
+
return /* @__PURE__ */ t(Tt, {
|
|
238
|
+
color: e,
|
|
239
239
|
size: 16,
|
|
240
240
|
delay: "0"
|
|
241
241
|
});
|
|
242
242
|
}, Yt = (param)=>{
|
|
243
|
-
let { color:
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
color:
|
|
243
|
+
let { color: e } = param;
|
|
244
|
+
return /* @__PURE__ */ t(Lt, {
|
|
245
|
+
color: e,
|
|
246
246
|
size: 12
|
|
247
247
|
});
|
|
248
248
|
}, qt = (param)=>{
|
|
249
|
-
let { color:
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
color:
|
|
249
|
+
let { color: e } = param;
|
|
250
|
+
return /* @__PURE__ */ t(St, {
|
|
251
|
+
color: e,
|
|
252
252
|
size: 12
|
|
253
253
|
});
|
|
254
|
-
}, Jt = (
|
|
255
|
-
const { texts: a, t:
|
|
256
|
-
|
|
257
|
-
var
|
|
258
|
-
const
|
|
259
|
-
return (
|
|
260
|
-
clearTimeout(
|
|
254
|
+
}, Jt = (e, o, r, n)=>{
|
|
255
|
+
const { texts: a, t: c } = oe(), h = B.useRef(null), [d, l] = B.useReducer(Kt, process.env.NODE_ENV === "test" ? "playing" : "loading");
|
|
256
|
+
B.useEffect(()=>{
|
|
257
|
+
var x;
|
|
258
|
+
const m = setTimeout(()=>l("showSpinner"), 2e3);
|
|
259
|
+
return (x = h.current) == null || x.load(), ()=>{
|
|
260
|
+
clearTimeout(m), l("reset");
|
|
261
261
|
};
|
|
262
262
|
}, [
|
|
263
|
-
|
|
263
|
+
e
|
|
264
264
|
]);
|
|
265
|
-
const
|
|
266
|
-
ref: $t(
|
|
267
|
-
src:
|
|
265
|
+
const s = B.useMemo(()=>e !== void 0 ? /* @__PURE__ */ t(zt, {
|
|
266
|
+
ref: $t(h, r),
|
|
267
|
+
src: e,
|
|
268
268
|
poster: o,
|
|
269
269
|
width: "100%",
|
|
270
|
-
height:
|
|
271
|
-
onError: ()=>
|
|
272
|
-
onPause: ()=>
|
|
273
|
-
onPlay: ()=>
|
|
270
|
+
height: n ? void 0 : "100%",
|
|
271
|
+
onError: ()=>l("fail"),
|
|
272
|
+
onPause: ()=>l("pause"),
|
|
273
|
+
onPlay: ()=>l("play")
|
|
274
274
|
}) : void 0, [
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
r,
|
|
276
|
+
e,
|
|
277
277
|
o,
|
|
278
|
-
|
|
279
|
-
]),
|
|
280
|
-
const
|
|
281
|
-
|
|
278
|
+
n
|
|
279
|
+
]), v = ()=>{
|
|
280
|
+
const m = h.current;
|
|
281
|
+
m && (d === "loading" ? l("showSpinner") : d === "paused" ? m.play() : d === "playing" && m.pause());
|
|
282
282
|
};
|
|
283
283
|
if (d === "error") return {
|
|
284
|
-
video:
|
|
284
|
+
video: s
|
|
285
285
|
};
|
|
286
|
-
const
|
|
286
|
+
const R = s ? {
|
|
287
287
|
uncheckedProps: {
|
|
288
|
-
Icon: d === "loadingTimeout" && !
|
|
289
|
-
label: d === "loadingTimeout" ? "" : a.pauseIconButtonLabel ||
|
|
288
|
+
Icon: d === "loadingTimeout" && !Ge() ? Xt : Yt,
|
|
289
|
+
label: d === "loadingTimeout" ? "" : a.pauseIconButtonLabel || c(wt)
|
|
290
290
|
},
|
|
291
291
|
checkedProps: {
|
|
292
292
|
Icon: qt,
|
|
293
|
-
label: a.playIconButtonLabel ||
|
|
293
|
+
label: a.playIconButtonLabel || c(It)
|
|
294
294
|
},
|
|
295
|
-
onChange:
|
|
296
|
-
disabled:
|
|
295
|
+
onChange: v,
|
|
296
|
+
disabled: Ge() ? !1 : d === "loadingTimeout",
|
|
297
297
|
checked: d === "paused"
|
|
298
298
|
} : void 0;
|
|
299
299
|
return {
|
|
300
|
-
video:
|
|
301
|
-
videoAction:
|
|
300
|
+
video: s,
|
|
301
|
+
videoAction: R
|
|
302
302
|
};
|
|
303
303
|
}, Qt = (param)=>{
|
|
304
|
-
let { size:
|
|
305
|
-
return /* @__PURE__ */
|
|
306
|
-
className: xt[
|
|
307
|
-
children: /* @__PURE__ */
|
|
304
|
+
let { size: e, buttonPrimary: o, buttonSecondary: r, buttonLink: n } = param;
|
|
305
|
+
return /* @__PURE__ */ t("div", {
|
|
306
|
+
className: xt[e],
|
|
307
|
+
children: /* @__PURE__ */ t(jt, {
|
|
308
308
|
primaryButton: o,
|
|
309
|
-
secondaryButton:
|
|
310
|
-
link:
|
|
309
|
+
secondaryButton: r,
|
|
310
|
+
link: n
|
|
311
311
|
})
|
|
312
312
|
});
|
|
313
|
-
}, Ut = (
|
|
314
|
-
const o =
|
|
315
|
-
if (
|
|
313
|
+
}, Ut = (e)=>{
|
|
314
|
+
const o = Ke();
|
|
315
|
+
if (e.Icon) return /* @__PURE__ */ t(Ft, _object_spread_props(_object_spread({}, e), {
|
|
316
316
|
small: !0,
|
|
317
|
-
"aria-label":
|
|
317
|
+
"aria-label": e.label,
|
|
318
318
|
type: "neutral",
|
|
319
319
|
backgroundType: "transparent"
|
|
320
320
|
}));
|
|
321
|
-
const { checkedProps:
|
|
321
|
+
const { checkedProps: r, uncheckedProps: n } = e, a = _object_without_properties(e, [
|
|
322
322
|
"checkedProps",
|
|
323
323
|
"uncheckedProps"
|
|
324
324
|
]);
|
|
325
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ t(Et, _object_spread_props(_object_spread({
|
|
326
326
|
small: !0
|
|
327
327
|
}, a), {
|
|
328
|
-
checkedProps: _object_spread_props(_object_spread({},
|
|
329
|
-
"aria-label":
|
|
328
|
+
checkedProps: _object_spread_props(_object_spread({}, r), {
|
|
329
|
+
"aria-label": e.checkedProps.label,
|
|
330
330
|
type: o === "media" ? "neutral" : "brand",
|
|
331
331
|
backgroundType: "solid"
|
|
332
332
|
}),
|
|
333
|
-
uncheckedProps: _object_spread_props(_object_spread({},
|
|
334
|
-
"aria-label":
|
|
333
|
+
uncheckedProps: _object_spread_props(_object_spread({}, n), {
|
|
334
|
+
"aria-label": e.uncheckedProps.label,
|
|
335
335
|
type: "neutral",
|
|
336
336
|
backgroundType: "transparent"
|
|
337
337
|
})
|
|
338
338
|
}));
|
|
339
|
-
},
|
|
340
|
-
let { testid:
|
|
341
|
-
const { texts:
|
|
342
|
-
...
|
|
339
|
+
}, De = (param)=>{
|
|
340
|
+
let { testid: e = "topActions", onClose: o, closeButtonLabel: r, actions: n, variant: a, containerStyles: c = {} } = param;
|
|
341
|
+
const { texts: h, t: d } = oe(), l = n ? [
|
|
342
|
+
...n
|
|
343
343
|
] : [];
|
|
344
|
-
return o &&
|
|
345
|
-
label:
|
|
344
|
+
return o && l.push({
|
|
345
|
+
label: r || h.closeButtonLabel || d(Ht),
|
|
346
346
|
onPress: o,
|
|
347
347
|
Icon: Vt
|
|
348
|
-
}),
|
|
348
|
+
}), l.length === 0 ? /* @__PURE__ */ t(W, {}) : /* @__PURE__ */ t(xe, {
|
|
349
349
|
variant: a,
|
|
350
|
-
children: /* @__PURE__ */
|
|
350
|
+
children: /* @__PURE__ */ t("div", {
|
|
351
351
|
className: kt,
|
|
352
|
-
style:
|
|
353
|
-
"data-testid":
|
|
354
|
-
children:
|
|
352
|
+
style: c,
|
|
353
|
+
"data-testid": e,
|
|
354
|
+
children: l.map((s, v)=>"Icon" in s || "checkedProps" in s ? /* @__PURE__ */ t(Ut, _object_spread({}, s), v) : s)
|
|
355
355
|
})
|
|
356
356
|
});
|
|
357
357
|
}, Wt = (param)=>{
|
|
358
|
-
let { type:
|
|
359
|
-
const
|
|
358
|
+
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;
|
|
359
|
+
const m = ke(l), x = e === "naked" && R ? {
|
|
360
360
|
circular: !0
|
|
361
361
|
} : {
|
|
362
362
|
width: "100%",
|
|
363
|
-
height:
|
|
364
|
-
},
|
|
363
|
+
height: s === "top" && m === 0 ? void 0 : "100%"
|
|
364
|
+
}, p = (()=>{
|
|
365
365
|
if (d) return d;
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
366
|
+
if (n !== void 0 || a !== void 0) {
|
|
367
|
+
const i = s === "left" || s === "right", u = {
|
|
368
368
|
fit: {
|
|
369
369
|
objectFit: "contain",
|
|
370
|
-
objectPosition: `bottom ${
|
|
370
|
+
objectPosition: `bottom ${s}`
|
|
371
371
|
},
|
|
372
372
|
fill: {
|
|
373
373
|
objectFit: "cover",
|
|
374
|
-
objectPosition:
|
|
374
|
+
objectPosition: s
|
|
375
375
|
},
|
|
376
376
|
"fill-center": {
|
|
377
377
|
objectFit: "cover",
|
|
378
378
|
objectPosition: "center"
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
|
-
return /* @__PURE__ */
|
|
382
|
-
src:
|
|
381
|
+
return /* @__PURE__ */ t(Xe, _object_spread(_object_spread_props(_object_spread({
|
|
382
|
+
src: n || "",
|
|
383
383
|
srcSet: a
|
|
384
|
-
},
|
|
384
|
+
}, x), {
|
|
385
385
|
dataAttributes: {
|
|
386
386
|
testid: "image"
|
|
387
387
|
},
|
|
388
|
-
alt:
|
|
389
|
-
}),
|
|
388
|
+
alt: h
|
|
389
|
+
}), i ? u[c] : {}));
|
|
390
390
|
}
|
|
391
391
|
return null;
|
|
392
392
|
})();
|
|
393
|
-
if (!
|
|
394
|
-
const
|
|
395
|
-
[
|
|
393
|
+
if (!p) return /* @__PURE__ */ t(W, {});
|
|
394
|
+
const g = _object_spread({}, e === "naked" ? void 0 : G({
|
|
395
|
+
[ie.mediaBorderRadius]: "0px"
|
|
396
396
|
}));
|
|
397
|
-
return
|
|
397
|
+
return s === "top" ? /* @__PURE__ */ k(W, {
|
|
398
398
|
children: [
|
|
399
|
-
/* @__PURE__ */
|
|
400
|
-
aspectRatio:
|
|
401
|
-
style:
|
|
402
|
-
children:
|
|
399
|
+
/* @__PURE__ */ t(Pt, {
|
|
400
|
+
aspectRatio: m,
|
|
401
|
+
style: g,
|
|
402
|
+
children: p
|
|
403
403
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ t(te, {
|
|
405
405
|
absolute: !0,
|
|
406
406
|
size: o,
|
|
407
|
-
asset:
|
|
408
|
-
type:
|
|
407
|
+
asset: r,
|
|
408
|
+
type: e
|
|
409
409
|
})
|
|
410
410
|
]
|
|
411
|
-
}) : /* @__PURE__ */
|
|
411
|
+
}) : /* @__PURE__ */ k(W, {
|
|
412
412
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
style: _object_spread_props(_object_spread({},
|
|
415
|
-
width:
|
|
413
|
+
/* @__PURE__ */ t("div", {
|
|
414
|
+
style: _object_spread_props(_object_spread({}, g), {
|
|
415
|
+
width: v,
|
|
416
416
|
flexShrink: 0,
|
|
417
417
|
flexGrow: 0,
|
|
418
418
|
height: "100%",
|
|
419
419
|
position: "relative"
|
|
420
420
|
}),
|
|
421
|
-
children:
|
|
421
|
+
children: p
|
|
422
422
|
}),
|
|
423
|
-
|
|
423
|
+
s !== "right" && /* @__PURE__ */ t(te, {
|
|
424
424
|
absolute: !0,
|
|
425
425
|
size: o,
|
|
426
|
-
asset:
|
|
427
|
-
type:
|
|
426
|
+
asset: r,
|
|
427
|
+
type: e
|
|
428
428
|
})
|
|
429
429
|
]
|
|
430
430
|
});
|
|
431
431
|
}, Zt = (param)=>{
|
|
432
|
-
let { type:
|
|
433
|
-
const
|
|
434
|
-
return /* @__PURE__ */
|
|
435
|
-
variant:
|
|
432
|
+
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;
|
|
433
|
+
const m = !!(a || c || h), x = !!(a && c && h), f = r === "inverse" || r === "media", p = e === "naked", g = s || (l && l !== r ? l === "default" ? b.colors.backgroundContainer : v ? b.colors.backgroundContainerBrandOverInverse : b.colors.backgroundContainerBrand : void 0);
|
|
434
|
+
return /* @__PURE__ */ k(xe, {
|
|
435
|
+
variant: l || r,
|
|
436
436
|
children: [
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ t(Z, {}),
|
|
438
|
+
/* @__PURE__ */ k("div", {
|
|
439
439
|
style: {
|
|
440
|
-
background:
|
|
440
|
+
background: g || (d ? R : void 0),
|
|
441
441
|
position: "relative",
|
|
442
442
|
backdropFilter: d ? "blur(12px)" : void 0,
|
|
443
|
-
borderBottomLeftRadius:
|
|
444
|
-
borderBottomRightRadius:
|
|
443
|
+
borderBottomLeftRadius: p ? 0 : b.borderRadii.container,
|
|
444
|
+
borderBottomRightRadius: p ? 0 : b.borderRadii.container
|
|
445
445
|
},
|
|
446
446
|
children: [
|
|
447
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ t("div", {
|
|
448
448
|
style: {
|
|
449
|
-
borderTop:
|
|
450
|
-
marginRight:
|
|
449
|
+
borderTop: g ? void 0 : `1px solid ${f ? b.colors.dividerInverse : b.colors.divider}`,
|
|
450
|
+
marginRight: p ? 16 : 0
|
|
451
451
|
}
|
|
452
452
|
}),
|
|
453
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ t("div", {
|
|
454
454
|
"data-testid": "footer",
|
|
455
|
-
className:
|
|
456
|
-
[
|
|
455
|
+
className: C({
|
|
456
|
+
[ee[o]]: !p
|
|
457
457
|
}),
|
|
458
458
|
style: {
|
|
459
459
|
paddingTop: 16,
|
|
460
|
-
paddingBottom:
|
|
461
|
-
paddingRight:
|
|
460
|
+
paddingBottom: p ? 0 : 16,
|
|
461
|
+
paddingRight: p ? 16 : void 0
|
|
462
462
|
},
|
|
463
|
-
children: /* @__PURE__ */
|
|
463
|
+
children: /* @__PURE__ */ k(je, {
|
|
464
464
|
space: 16,
|
|
465
465
|
children: [
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
n,
|
|
467
|
+
m && // @FIXME: We should use the ButtonGroup component
|
|
468
468
|
// https://jira.tid.es/browse/WEB-2278
|
|
469
469
|
// https://www.figma.com/design/koROdh3HpEPG2O8jG52Emh/%F0%9F%94%B8-Buttons-Specs?node-id=4337-1606&t=HtImvar8DMbivDqC-0
|
|
470
|
-
(
|
|
470
|
+
(x ? /* @__PURE__ */ k(je, {
|
|
471
471
|
space: 16,
|
|
472
472
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ k(Me, {
|
|
474
474
|
space: "between",
|
|
475
475
|
alignItems: "center",
|
|
476
476
|
children: [
|
|
477
477
|
a,
|
|
478
|
-
|
|
478
|
+
c
|
|
479
479
|
]
|
|
480
480
|
}),
|
|
481
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ t("div", {
|
|
482
482
|
style: {
|
|
483
483
|
marginLeft: -12
|
|
484
484
|
},
|
|
485
|
-
children:
|
|
485
|
+
children: h
|
|
486
486
|
})
|
|
487
487
|
]
|
|
488
|
-
}) : /* @__PURE__ */
|
|
488
|
+
}) : /* @__PURE__ */ k(Me, {
|
|
489
489
|
space: "between",
|
|
490
490
|
alignItems: "center",
|
|
491
491
|
children: [
|
|
492
492
|
a,
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
c,
|
|
494
|
+
h
|
|
495
495
|
]
|
|
496
496
|
}))
|
|
497
497
|
]
|
|
@@ -502,212 +502,212 @@ const Gt = /*#__PURE__*/ I.forwardRef((param, h)=>{
|
|
|
502
502
|
]
|
|
503
503
|
});
|
|
504
504
|
}, ei = (param)=>{
|
|
505
|
-
let { headlineRef:
|
|
506
|
-
const { textPresets:
|
|
505
|
+
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;
|
|
506
|
+
const { textPresets: i, colorValues: u } = oe(), F = Ke(), z = {
|
|
507
507
|
hyphens: "auto"
|
|
508
|
-
},
|
|
508
|
+
}, E = {
|
|
509
509
|
default: {
|
|
510
|
-
pretitle:
|
|
511
|
-
title:
|
|
512
|
-
subtitle:
|
|
513
|
-
description:
|
|
510
|
+
pretitle: u.textPrimary,
|
|
511
|
+
title: u.textPrimary,
|
|
512
|
+
subtitle: u.textPrimary,
|
|
513
|
+
description: u.textSecondary
|
|
514
514
|
},
|
|
515
515
|
inverse: {
|
|
516
|
-
pretitle:
|
|
517
|
-
title:
|
|
518
|
-
subtitle:
|
|
519
|
-
description:
|
|
516
|
+
pretitle: u.textPrimaryInverse,
|
|
517
|
+
title: u.textPrimaryInverse,
|
|
518
|
+
subtitle: u.textPrimaryInverse,
|
|
519
|
+
description: u.textSecondaryInverse
|
|
520
520
|
},
|
|
521
521
|
media: {
|
|
522
|
-
pretitle:
|
|
523
|
-
title:
|
|
524
|
-
subtitle:
|
|
525
|
-
description:
|
|
522
|
+
pretitle: u.textPrimaryInverse,
|
|
523
|
+
title: u.textPrimaryInverse,
|
|
524
|
+
subtitle: u.textPrimaryInverse,
|
|
525
|
+
description: e === "cover" && o ? u.textPrimaryInverse : u.textSecondaryInverse
|
|
526
526
|
}
|
|
527
|
-
},
|
|
527
|
+
}, V = {
|
|
528
528
|
snap: {
|
|
529
529
|
pretitle: {
|
|
530
|
-
mobileSize:
|
|
531
|
-
desktopSize:
|
|
532
|
-
mobileLineHeight:
|
|
533
|
-
desktopLineHeight:
|
|
530
|
+
mobileSize: i.text2.size.mobile,
|
|
531
|
+
desktopSize: i.text2.size.desktop,
|
|
532
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
533
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
534
534
|
weight: "regular"
|
|
535
535
|
},
|
|
536
536
|
title: {
|
|
537
|
-
mobileSize:
|
|
538
|
-
desktopSize:
|
|
539
|
-
mobileLineHeight:
|
|
540
|
-
desktopLineHeight:
|
|
541
|
-
weight:
|
|
537
|
+
mobileSize: i.text2.size.mobile,
|
|
538
|
+
desktopSize: i.text2.size.desktop,
|
|
539
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
540
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
541
|
+
weight: i.cardTitle.weight
|
|
542
542
|
},
|
|
543
543
|
subtitle: {
|
|
544
|
-
mobileSize:
|
|
545
|
-
desktopSize:
|
|
546
|
-
mobileLineHeight:
|
|
547
|
-
desktopLineHeight:
|
|
544
|
+
mobileSize: i.text2.size.mobile,
|
|
545
|
+
desktopSize: i.text2.size.desktop,
|
|
546
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
547
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
548
548
|
weight: "regular"
|
|
549
549
|
},
|
|
550
550
|
description: {
|
|
551
|
-
mobileSize:
|
|
552
|
-
desktopSize:
|
|
553
|
-
mobileLineHeight:
|
|
554
|
-
desktopLineHeight:
|
|
551
|
+
mobileSize: i.text2.size.mobile,
|
|
552
|
+
desktopSize: i.text2.size.desktop,
|
|
553
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
554
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
555
555
|
weight: "regular"
|
|
556
556
|
}
|
|
557
557
|
},
|
|
558
558
|
default: {
|
|
559
559
|
pretitle: {
|
|
560
|
-
mobileSize:
|
|
561
|
-
desktopSize:
|
|
562
|
-
mobileLineHeight:
|
|
563
|
-
desktopLineHeight:
|
|
560
|
+
mobileSize: i.text2.size.mobile,
|
|
561
|
+
desktopSize: i.text2.size.desktop,
|
|
562
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
563
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
564
564
|
weight: "regular"
|
|
565
565
|
},
|
|
566
566
|
title: {
|
|
567
|
-
mobileSize:
|
|
568
|
-
desktopSize:
|
|
569
|
-
mobileLineHeight:
|
|
570
|
-
desktopLineHeight:
|
|
571
|
-
weight:
|
|
567
|
+
mobileSize: i.text4.size.mobile,
|
|
568
|
+
desktopSize: i.text4.size.desktop,
|
|
569
|
+
mobileLineHeight: i.text4.lineHeight.mobile,
|
|
570
|
+
desktopLineHeight: i.text4.lineHeight.desktop,
|
|
571
|
+
weight: i.cardTitle.weight
|
|
572
572
|
},
|
|
573
573
|
subtitle: {
|
|
574
|
-
mobileSize:
|
|
575
|
-
desktopSize:
|
|
576
|
-
mobileLineHeight:
|
|
577
|
-
desktopLineHeight:
|
|
574
|
+
mobileSize: i.text2.size.mobile,
|
|
575
|
+
desktopSize: i.text2.size.desktop,
|
|
576
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
577
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
578
578
|
weight: "regular"
|
|
579
579
|
},
|
|
580
580
|
description: {
|
|
581
|
-
mobileSize:
|
|
582
|
-
desktopSize:
|
|
583
|
-
mobileLineHeight:
|
|
584
|
-
desktopLineHeight:
|
|
581
|
+
mobileSize: i.text2.size.mobile,
|
|
582
|
+
desktopSize: i.text2.size.desktop,
|
|
583
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
584
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
585
585
|
weight: "regular"
|
|
586
586
|
}
|
|
587
587
|
},
|
|
588
588
|
display: {
|
|
589
589
|
pretitle: {
|
|
590
|
-
mobileSize:
|
|
591
|
-
desktopSize:
|
|
592
|
-
mobileLineHeight:
|
|
593
|
-
desktopLineHeight:
|
|
590
|
+
mobileSize: i.text2.size.mobile,
|
|
591
|
+
desktopSize: i.text2.size.desktop,
|
|
592
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
593
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
594
594
|
weight: "regular"
|
|
595
595
|
},
|
|
596
596
|
title: {
|
|
597
|
-
mobileSize:
|
|
598
|
-
desktopSize:
|
|
599
|
-
mobileLineHeight:
|
|
600
|
-
desktopLineHeight:
|
|
601
|
-
weight:
|
|
597
|
+
mobileSize: i.text6.size.mobile,
|
|
598
|
+
desktopSize: i.text6.size.desktop,
|
|
599
|
+
mobileLineHeight: i.text6.lineHeight.mobile,
|
|
600
|
+
desktopLineHeight: i.text6.lineHeight.desktop,
|
|
601
|
+
weight: i.text6.weight
|
|
602
602
|
},
|
|
603
603
|
subtitle: {
|
|
604
|
-
mobileSize:
|
|
605
|
-
desktopSize:
|
|
606
|
-
mobileLineHeight:
|
|
607
|
-
desktopLineHeight:
|
|
604
|
+
mobileSize: i.text2.size.mobile,
|
|
605
|
+
desktopSize: i.text2.size.desktop,
|
|
606
|
+
mobileLineHeight: i.text2.lineHeight.mobile,
|
|
607
|
+
desktopLineHeight: i.text2.lineHeight.desktop,
|
|
608
608
|
weight: "regular"
|
|
609
609
|
},
|
|
610
610
|
description: {
|
|
611
|
-
mobileSize:
|
|
612
|
-
desktopSize:
|
|
613
|
-
mobileLineHeight:
|
|
614
|
-
desktopLineHeight:
|
|
611
|
+
mobileSize: i.text3.size.mobile,
|
|
612
|
+
desktopSize: i.text3.size.desktop,
|
|
613
|
+
mobileLineHeight: i.text3.lineHeight.mobile,
|
|
614
|
+
desktopLineHeight: i.text3.lineHeight.desktop,
|
|
615
615
|
weight: "regular"
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
},
|
|
619
|
-
/* @__PURE__ */
|
|
618
|
+
}, 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
|
|
619
|
+
/* @__PURE__ */ t("div", {
|
|
620
620
|
style: {
|
|
621
621
|
paddingBottom: 8,
|
|
622
622
|
order: 1
|
|
623
623
|
},
|
|
624
624
|
"data-testid": "headline",
|
|
625
|
-
ref:
|
|
626
|
-
children: typeof
|
|
625
|
+
ref: r,
|
|
626
|
+
children: typeof c == "string" ? /* @__PURE__ */ t(Ct, {
|
|
627
627
|
type: "promo",
|
|
628
|
-
children:
|
|
629
|
-
}) :
|
|
630
|
-
}),
|
|
631
|
-
/* @__PURE__ */
|
|
628
|
+
children: c
|
|
629
|
+
}) : c
|
|
630
|
+
}), $ = s && // Read order: 3 or 1. Visual order 2
|
|
631
|
+
/* @__PURE__ */ t("div", {
|
|
632
632
|
style: {
|
|
633
633
|
paddingBottom: 4,
|
|
634
634
|
order: 2
|
|
635
635
|
},
|
|
636
636
|
"data-testid": "pretitle",
|
|
637
|
-
children: /* @__PURE__ */
|
|
638
|
-
as:
|
|
639
|
-
truncate:
|
|
640
|
-
color:
|
|
641
|
-
textShadow:
|
|
642
|
-
children:
|
|
637
|
+
children: /* @__PURE__ */ t(U, _object_spread_props(_object_spread({}, z, I.pretitle), {
|
|
638
|
+
as: v || "p",
|
|
639
|
+
truncate: R,
|
|
640
|
+
color: N.pretitle,
|
|
641
|
+
textShadow: A,
|
|
642
|
+
children: s
|
|
643
643
|
}))
|
|
644
|
-
}),
|
|
645
|
-
/* @__PURE__ */
|
|
644
|
+
}), D = h && // Read order: 1 or 3. Visual order 3
|
|
645
|
+
/* @__PURE__ */ t("div", {
|
|
646
646
|
style: {
|
|
647
647
|
paddingBottom: 4,
|
|
648
648
|
order: 3
|
|
649
649
|
},
|
|
650
650
|
"data-testid": "title",
|
|
651
|
-
children: /* @__PURE__ */
|
|
652
|
-
as:
|
|
653
|
-
truncate:
|
|
654
|
-
color:
|
|
655
|
-
textShadow:
|
|
656
|
-
children:
|
|
651
|
+
children: /* @__PURE__ */ t(U, _object_spread_props(_object_spread({}, z, I.title), {
|
|
652
|
+
as: d,
|
|
653
|
+
truncate: l,
|
|
654
|
+
color: N.title,
|
|
655
|
+
textShadow: A,
|
|
656
|
+
children: h
|
|
657
657
|
}))
|
|
658
|
-
}),
|
|
659
|
-
/* @__PURE__ */
|
|
658
|
+
}), ne = m && // Read order: 4. Visual order 4
|
|
659
|
+
/* @__PURE__ */ t("div", {
|
|
660
660
|
style: {
|
|
661
661
|
paddingBottom: 0,
|
|
662
662
|
order: 4
|
|
663
663
|
},
|
|
664
664
|
"data-testid": "subtitle",
|
|
665
|
-
children: /* @__PURE__ */
|
|
665
|
+
children: /* @__PURE__ */ t(U, _object_spread_props(_object_spread({}, z, I.subtitle), {
|
|
666
666
|
as: "p",
|
|
667
|
-
truncate:
|
|
668
|
-
color:
|
|
669
|
-
textShadow:
|
|
670
|
-
children:
|
|
667
|
+
truncate: x,
|
|
668
|
+
color: N.subtitle,
|
|
669
|
+
textShadow: A,
|
|
670
|
+
children: m
|
|
671
671
|
}))
|
|
672
|
-
}),
|
|
673
|
-
/* @__PURE__ */
|
|
672
|
+
}), ae = f && // Read order: 5. Visual order 5
|
|
673
|
+
/* @__PURE__ */ t("div", {
|
|
674
674
|
style: {
|
|
675
675
|
paddingTop: 4,
|
|
676
676
|
order: 5
|
|
677
677
|
},
|
|
678
678
|
"data-testid": "description",
|
|
679
|
-
children: /* @__PURE__ */
|
|
679
|
+
children: /* @__PURE__ */ t(U, _object_spread_props(_object_spread({}, z, I.description), {
|
|
680
680
|
as: "p",
|
|
681
|
-
truncate:
|
|
682
|
-
color:
|
|
683
|
-
textShadow:
|
|
684
|
-
children:
|
|
681
|
+
truncate: p,
|
|
682
|
+
color: N.description,
|
|
683
|
+
textShadow: A,
|
|
684
|
+
children: f
|
|
685
685
|
}))
|
|
686
|
-
}), [
|
|
687
|
-
|
|
688
|
-
|
|
686
|
+
}), [_, K] = h && Ye(d, v) ? [
|
|
687
|
+
D,
|
|
688
|
+
$
|
|
689
689
|
] : [
|
|
690
|
-
|
|
691
|
-
|
|
690
|
+
$,
|
|
691
|
+
D
|
|
692
692
|
];
|
|
693
|
-
return /* @__PURE__ */
|
|
693
|
+
return /* @__PURE__ */ k("div", {
|
|
694
694
|
style: {
|
|
695
695
|
display: "flex",
|
|
696
696
|
flexDirection: "column"
|
|
697
697
|
},
|
|
698
698
|
children: [
|
|
699
|
-
|
|
700
|
-
F,
|
|
699
|
+
_,
|
|
701
700
|
re,
|
|
702
|
-
|
|
703
|
-
|
|
701
|
+
K,
|
|
702
|
+
ne,
|
|
703
|
+
ae
|
|
704
704
|
]
|
|
705
705
|
});
|
|
706
|
-
},
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
], Li = /*#__PURE__*/
|
|
710
|
-
var { type:
|
|
706
|
+
}, _e = [
|
|
707
|
+
b.colors.cardContentOverlay,
|
|
708
|
+
b.colors.cardFooterOverlay
|
|
709
|
+
], Li = /*#__PURE__*/ B.forwardRef((_param, We)=>{
|
|
710
|
+
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, [
|
|
711
711
|
"type",
|
|
712
712
|
"size",
|
|
713
713
|
"backgroundColor",
|
|
@@ -757,208 +757,210 @@ const Gt = /*#__PURE__*/ I.forwardRef((param, h)=>{
|
|
|
757
757
|
"aria-describedby",
|
|
758
758
|
"gradientOverlayColor"
|
|
759
759
|
]);
|
|
760
|
-
const { text: Be, ref:
|
|
761
|
-
|
|
762
|
-
if (
|
|
760
|
+
const { text: Be, ref: Ze } = $e(), { text: Ce, ref: et } = $e(), w = !!(j.href || j.to || j.onPress), he = !!(se || de || le), { colorValues: q } = oe(), 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 : ke(Se) === 0), be = Bt(), ot = $ || (be ? "inverse" : "default"), S = $ || (e === "cover" && Le ? "media" : "default"), rt = S === "inverse" ? yt : Rt, 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 = b.borderRadii.container, st = ue || J ? "transparent" : r || (S === "media" ? be ? b.colors.backgroundContainerBrandOverInverse : b.colors.backgroundBrand : S === "alternative" ? b.colors.backgroundAlternative : void 0), [[dt, lt], ve] = B.useState(_e);
|
|
761
|
+
B.useEffect(()=>{
|
|
762
|
+
if (Y === "transparent") return ve([
|
|
763
763
|
"transparent",
|
|
764
764
|
"transparent"
|
|
765
765
|
]);
|
|
766
|
-
if (
|
|
767
|
-
const
|
|
768
|
-
if (!
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
766
|
+
if (Y) {
|
|
767
|
+
const Oe = Mt(Y);
|
|
768
|
+
if (!Oe) return;
|
|
769
|
+
const Pe = Oe.join(","), Fe = /rgba\s*\(\s*\d+\s*,\s*\d+\s*,\s*\d+/g;
|
|
770
|
+
ve([
|
|
771
|
+
q.cardContentOverlay.replace(Fe, `rgba(${Pe}`),
|
|
772
|
+
q.cardFooterOverlay.replace(Fe, `rgba(${Pe}`)
|
|
773
773
|
]);
|
|
774
|
-
} else
|
|
774
|
+
} else ve(_e);
|
|
775
775
|
}, [
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
776
|
+
Y,
|
|
777
|
+
q.cardContentOverlay,
|
|
778
|
+
q.cardFooterOverlay
|
|
779
779
|
]);
|
|
780
|
-
const ct = we || (
|
|
781
|
-
|
|
780
|
+
const ct = we || (ce ? void 0 : (g && Ye(i, z) ? [
|
|
781
|
+
g,
|
|
782
782
|
Ce,
|
|
783
|
-
C,
|
|
784
|
-
w,
|
|
785
783
|
F,
|
|
784
|
+
V,
|
|
785
|
+
I,
|
|
786
786
|
Be
|
|
787
787
|
] : [
|
|
788
|
-
C,
|
|
789
|
-
Ce,
|
|
790
|
-
s,
|
|
791
|
-
w,
|
|
792
788
|
F,
|
|
789
|
+
Ce,
|
|
790
|
+
g,
|
|
791
|
+
V,
|
|
792
|
+
I,
|
|
793
793
|
Be
|
|
794
794
|
]).filter(Boolean).join(" "));
|
|
795
|
-
return /* @__PURE__ */
|
|
796
|
-
"aria-label":
|
|
797
|
-
"aria-labelledby":
|
|
798
|
-
"aria-description":
|
|
799
|
-
"aria-describedby":
|
|
800
|
-
type:
|
|
795
|
+
return /* @__PURE__ */ k(Gt, {
|
|
796
|
+
"aria-label": w ? void 0 : we,
|
|
797
|
+
"aria-labelledby": w ? void 0 : ce,
|
|
798
|
+
"aria-description": w ? void 0 : Ie,
|
|
799
|
+
"aria-describedby": w ? void 0 : He,
|
|
800
|
+
type: e,
|
|
801
801
|
size: o,
|
|
802
|
-
dataAttributes:
|
|
803
|
-
ref:
|
|
804
|
-
variant:
|
|
805
|
-
width:
|
|
806
|
-
height:
|
|
807
|
-
aspectRatio:
|
|
802
|
+
dataAttributes: re,
|
|
803
|
+
ref: We,
|
|
804
|
+
variant: S,
|
|
805
|
+
width: D,
|
|
806
|
+
height: ne,
|
|
807
|
+
aspectRatio: ae,
|
|
808
808
|
backgroundColor: st,
|
|
809
809
|
children: [
|
|
810
|
-
|
|
811
|
-
video:
|
|
812
|
-
src:
|
|
810
|
+
O && /* @__PURE__ */ t(Dt, {
|
|
811
|
+
video: Ve,
|
|
812
|
+
src: n,
|
|
813
813
|
srcSet: a,
|
|
814
814
|
backgroundVariant: ot
|
|
815
815
|
}),
|
|
816
|
-
|
|
817
|
-
/* @__PURE__ */
|
|
816
|
+
ge && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
|
|
817
|
+
/* @__PURE__ */ t("div", {
|
|
818
818
|
"data-testid": "videoAction",
|
|
819
|
-
children: /* @__PURE__ */
|
|
819
|
+
children: /* @__PURE__ */ t(De, {
|
|
820
820
|
testid: "videoAction",
|
|
821
821
|
variant: "media",
|
|
822
822
|
actions: [
|
|
823
|
-
|
|
823
|
+
ge
|
|
824
824
|
],
|
|
825
825
|
containerStyles: {
|
|
826
826
|
position: "absolute",
|
|
827
827
|
top: 16,
|
|
828
|
-
left:
|
|
829
|
-
right:
|
|
828
|
+
left: y === "left" ? typeof m == "number" ? `calc(${m}px - 48px)` : `calc(${m} - 48px)` : "auto",
|
|
829
|
+
right: y !== "left" ? Q * 48 + 16 : "auto"
|
|
830
830
|
}
|
|
831
831
|
})
|
|
832
832
|
}),
|
|
833
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ k(Ot, _object_spread_props(_object_spread({
|
|
834
834
|
maybe: !0,
|
|
835
|
-
"aria-label":
|
|
836
|
-
"aria-labelledby":
|
|
837
|
-
"aria-description":
|
|
838
|
-
"aria-describedby":
|
|
839
|
-
className:
|
|
840
|
-
},
|
|
835
|
+
"aria-label": w ? ct : void 0,
|
|
836
|
+
"aria-labelledby": w ? ce : void 0,
|
|
837
|
+
"aria-description": w ? Ie : void 0,
|
|
838
|
+
"aria-describedby": w ? He : void 0,
|
|
839
|
+
className: C(Ee, pt)
|
|
840
|
+
}, j), {
|
|
841
841
|
style: {
|
|
842
|
-
flexDirection:
|
|
842
|
+
flexDirection: y === "top" ? "column" : y === "left" ? "row" : "row-reverse",
|
|
843
843
|
justifyItems: "stretch",
|
|
844
|
-
borderTopLeftRadius: `calc(${
|
|
845
|
-
borderTopRightRadius: `calc(${
|
|
846
|
-
borderBottomLeftRadius:
|
|
847
|
-
borderBottomRightRadius:
|
|
844
|
+
borderTopLeftRadius: `calc(${P} - 1px)`,
|
|
845
|
+
borderTopRightRadius: `calc(${P} - 1px)`,
|
|
846
|
+
borderBottomLeftRadius: L || T ? 0 : `calc(${P} - 1px)`,
|
|
847
|
+
borderBottomRightRadius: L || T ? 0 : `calc(${P} - 1px)`,
|
|
848
848
|
overflow: "hidden",
|
|
849
849
|
zIndex: 1
|
|
850
850
|
},
|
|
851
851
|
children: [
|
|
852
|
-
|
|
852
|
+
w && /* @__PURE__ */ t("div", {
|
|
853
853
|
className: rt
|
|
854
854
|
}),
|
|
855
|
-
|
|
855
|
+
pe && /* @__PURE__ */ t("div", {
|
|
856
856
|
style: _object_spread({
|
|
857
857
|
// for some reason, this width is required to pass headless screenshot tests
|
|
858
858
|
// otherwise, it gets 0px width and the media is not visible
|
|
859
859
|
width: "100%"
|
|
860
|
-
},
|
|
861
|
-
[
|
|
860
|
+
}, e === "naked" ? void 0 : G({
|
|
861
|
+
[ie.mediaBorderRadius]: "0px"
|
|
862
862
|
})),
|
|
863
|
-
children:
|
|
863
|
+
children: s
|
|
864
864
|
}),
|
|
865
|
-
|
|
865
|
+
pe && /* @__PURE__ */ t(te, {
|
|
866
866
|
absolute: !0,
|
|
867
867
|
size: o,
|
|
868
|
-
asset:
|
|
869
|
-
type:
|
|
868
|
+
asset: f,
|
|
869
|
+
type: e
|
|
870
870
|
}),
|
|
871
|
-
H && /* @__PURE__ */
|
|
872
|
-
type:
|
|
871
|
+
H && /* @__PURE__ */ t(Wt, {
|
|
872
|
+
type: e,
|
|
873
873
|
size: o,
|
|
874
874
|
mediaAspectRatio: Se,
|
|
875
|
-
mediaPosition:
|
|
876
|
-
asset:
|
|
877
|
-
video:
|
|
878
|
-
imageFit:
|
|
879
|
-
imageSrc:
|
|
875
|
+
mediaPosition: y,
|
|
876
|
+
asset: f,
|
|
877
|
+
video: Ve,
|
|
878
|
+
imageFit: h,
|
|
879
|
+
imageSrc: n,
|
|
880
880
|
imageSrcSet: a,
|
|
881
|
-
imageAlt:
|
|
882
|
-
mediaWidth:
|
|
883
|
-
circledImage:
|
|
881
|
+
imageAlt: c,
|
|
882
|
+
mediaWidth: m,
|
|
883
|
+
circledImage: x
|
|
884
884
|
}),
|
|
885
|
-
/* @__PURE__ */
|
|
886
|
-
"aria-hidden":
|
|
885
|
+
/* @__PURE__ */ k("div", {
|
|
886
|
+
"aria-hidden": w,
|
|
887
887
|
"data-testid": "body",
|
|
888
|
-
className:
|
|
889
|
-
[
|
|
888
|
+
className: C(Ee, {
|
|
889
|
+
[fe[o]]: !!f && e !== "naked" && (!H || y === "right")
|
|
890
890
|
}),
|
|
891
891
|
children: [
|
|
892
|
-
(!H ||
|
|
892
|
+
(!H || y === "right") && /* @__PURE__ */ t(te, {
|
|
893
893
|
size: o,
|
|
894
|
-
asset:
|
|
895
|
-
type:
|
|
894
|
+
asset: f,
|
|
895
|
+
type: e
|
|
896
896
|
}),
|
|
897
|
-
|
|
898
|
-
minHeight:
|
|
897
|
+
M && /* @__PURE__ */ t(Z, {
|
|
898
|
+
minHeight: e === "cover" && Ae > 0 && !f ? 48 + 8 : 0
|
|
899
899
|
}),
|
|
900
|
-
/* @__PURE__ */
|
|
901
|
-
className:
|
|
900
|
+
/* @__PURE__ */ k("div", {
|
|
901
|
+
className: C(ee[o], ut[o], fe[o]),
|
|
902
902
|
style: {
|
|
903
903
|
display: "flex",
|
|
904
904
|
flexDirection: "column",
|
|
905
|
-
height:
|
|
906
|
-
background:
|
|
905
|
+
height: M ? void 0 : "100%",
|
|
906
|
+
background: O ? dt : void 0,
|
|
907
907
|
// padding overrides for specific cases
|
|
908
|
-
paddingTop:
|
|
909
|
-
paddingLeft:
|
|
910
|
-
paddingRight:
|
|
911
|
-
paddingBottom:
|
|
912
|
-
borderBottomLeftRadius:
|
|
913
|
-
borderBottomRightRadius:
|
|
908
|
+
paddingTop: M && O ? 40 : f || T && y !== "top" ? 16 : T && !H ? 0 : void 0,
|
|
909
|
+
paddingLeft: T && (y !== "left" || !H) ? 0 : void 0,
|
|
910
|
+
paddingRight: T && y !== "right" ? 16 : void 0,
|
|
911
|
+
paddingBottom: L ? 16 : T ? 0 : void 0,
|
|
912
|
+
borderBottomLeftRadius: L ? 0 : P,
|
|
913
|
+
borderBottomRightRadius: L ? 0 : P
|
|
914
914
|
},
|
|
915
915
|
children: [
|
|
916
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ k("div", {
|
|
917
917
|
className: gt,
|
|
918
918
|
children: [
|
|
919
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ t("div", {
|
|
920
920
|
className: bt,
|
|
921
|
-
children: /* @__PURE__ */
|
|
922
|
-
|
|
923
|
-
|
|
921
|
+
children: /* @__PURE__ */ t(ei, {
|
|
922
|
+
type: e,
|
|
923
|
+
hasCustomBackground: Le,
|
|
924
|
+
headlineRef: et,
|
|
925
|
+
variant: S,
|
|
924
926
|
size: o,
|
|
925
|
-
headline:
|
|
926
|
-
pretitle:
|
|
927
|
-
pretitleAs:
|
|
928
|
-
pretitleLinesMax:
|
|
929
|
-
title:
|
|
930
|
-
titleAs:
|
|
931
|
-
titleLinesMax:
|
|
932
|
-
subtitle:
|
|
927
|
+
headline: p,
|
|
928
|
+
pretitle: F,
|
|
929
|
+
pretitleAs: z,
|
|
930
|
+
pretitleLinesMax: E,
|
|
931
|
+
title: g,
|
|
932
|
+
titleAs: i,
|
|
933
|
+
titleLinesMax: u,
|
|
934
|
+
subtitle: V,
|
|
933
935
|
subtitleLinesMax: N,
|
|
934
|
-
description:
|
|
935
|
-
descriptionLinesMax:
|
|
936
|
-
withTextShadow:
|
|
936
|
+
description: I,
|
|
937
|
+
descriptionLinesMax: A,
|
|
938
|
+
withTextShadow: O
|
|
937
939
|
})
|
|
938
940
|
}),
|
|
939
|
-
at && /* @__PURE__ */
|
|
941
|
+
at && /* @__PURE__ */ t("div", {
|
|
940
942
|
style: {
|
|
941
943
|
flexShrink: 0,
|
|
942
944
|
flexGrow: 0,
|
|
943
|
-
width:
|
|
944
|
-
(
|
|
945
|
+
width: Q * 48 - // required space depends on the card padding
|
|
946
|
+
(e === "naked" ? 0 : o === "display" ? 24 : 16) - //
|
|
945
947
|
8
|
|
946
948
|
}
|
|
947
949
|
})
|
|
948
950
|
]
|
|
949
951
|
}),
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
ref:
|
|
952
|
+
!M && K === "bottom" && /* @__PURE__ */ t(Z, {}),
|
|
953
|
+
_ && /* @__PURE__ */ t("div", {
|
|
954
|
+
ref: Ze,
|
|
953
955
|
"data-testid": "slot",
|
|
954
|
-
children:
|
|
956
|
+
children: _
|
|
955
957
|
}),
|
|
956
|
-
|
|
957
|
-
|
|
958
|
+
!M && K === "content" && Ne && /* @__PURE__ */ t(Z, {}),
|
|
959
|
+
Ne && /* @__PURE__ */ t(Qt, {
|
|
958
960
|
size: o,
|
|
959
|
-
buttonPrimary:
|
|
960
|
-
buttonSecondary:
|
|
961
|
-
buttonLink:
|
|
961
|
+
buttonPrimary: se,
|
|
962
|
+
buttonSecondary: de,
|
|
963
|
+
buttonLink: le
|
|
962
964
|
})
|
|
963
965
|
]
|
|
964
966
|
})
|
|
@@ -966,27 +968,27 @@ const Gt = /*#__PURE__*/ I.forwardRef((param, h)=>{
|
|
|
966
968
|
})
|
|
967
969
|
]
|
|
968
970
|
})),
|
|
969
|
-
|
|
970
|
-
type:
|
|
971
|
-
variant:
|
|
972
|
-
footerVariant:
|
|
973
|
-
footerBackgroundColor:
|
|
971
|
+
L && /* @__PURE__ */ t(Zt, {
|
|
972
|
+
type: e,
|
|
973
|
+
variant: S,
|
|
974
|
+
footerVariant: Qe,
|
|
975
|
+
footerBackgroundColor: Je,
|
|
974
976
|
size: o,
|
|
975
977
|
footerSlot: ye,
|
|
976
|
-
buttonPrimary:
|
|
977
|
-
buttonSecondary:
|
|
978
|
-
buttonLink:
|
|
979
|
-
hasBackgroundImageOrVideo:
|
|
980
|
-
isInverseOutside:
|
|
978
|
+
buttonPrimary: se,
|
|
979
|
+
buttonSecondary: de,
|
|
980
|
+
buttonLink: le,
|
|
981
|
+
hasBackgroundImageOrVideo: O,
|
|
982
|
+
isInverseOutside: be,
|
|
981
983
|
overlayColor: lt
|
|
982
984
|
}),
|
|
983
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ t(De, {
|
|
984
986
|
onClose: Re,
|
|
985
|
-
closeButtonLabel:
|
|
986
|
-
actions:
|
|
987
|
-
variant:
|
|
987
|
+
closeButtonLabel: Ue,
|
|
988
|
+
actions: X,
|
|
989
|
+
variant: O || H && y !== "left" ? "media" : S
|
|
988
990
|
})
|
|
989
991
|
]
|
|
990
992
|
});
|
|
991
993
|
});
|
|
992
|
-
export { Ut as CardActionIconButton, Xt as CardActionSpinner, Li as InternalCard,
|
|
994
|
+
export { Ut as CardActionIconButton, Xt as CardActionSpinner, Li as InternalCard, De as TopActions, Jt as useVideoWithControls };
|