@telefonica/mistica 16.53.0 → 16.55.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/blau.css +4 -0
- package/css/esimflag.css +4 -0
- package/css/mistica.css +1 -1
- package/css/movistar-new.css +5 -1
- package/css/movistar.css +4 -0
- package/css/o2-new.css +25 -21
- package/css/o2.css +4 -0
- package/css/telefonica.css +9 -5
- package/css/tu.css +4 -0
- package/css/vivo-new.css +25 -21
- package/css/vivo.css +4 -0
- package/dist/accordion.css-mistica.js +7 -7
- package/dist/align.css-mistica.js +1 -1
- package/dist/autocomplete.css-mistica.js +4 -4
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +3 -3
- package/dist/box.css-mistica.js +13 -13
- package/dist/box.d.ts +1 -0
- package/dist/box.js +17 -15
- package/dist/boxed.css-mistica.js +24 -24
- package/dist/button-group.css-mistica.js +3 -3
- package/dist/button-layout.css-mistica.js +14 -14
- package/dist/button.css-mistica.js +43 -43
- package/dist/callout.css-mistica.js +11 -11
- package/dist/card-internal.css-mistica.js +25 -22
- package/dist/card-internal.css.d.ts +1 -0
- package/dist/card-internal.d.ts +1 -1
- package/dist/card-internal.js +119 -118
- package/dist/carousel.css-mistica.js +23 -23
- package/dist/checkbox.css-mistica.js +17 -17
- package/dist/chip.css-mistica.js +20 -20
- package/dist/circle.css-mistica.js +1 -1
- package/dist/community/advanced-data-card.css-mistica.js +18 -18
- package/dist/community/blocks.css-mistica.js +2 -2
- package/dist/community/example-component.css-mistica.js +2 -2
- package/dist/counter.css-mistica.js +4 -4
- package/dist/cover-hero.css-mistica.js +11 -11
- 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 +7 -7
- package/dist/divider.css-mistica.js +5 -5
- package/dist/double-field.css-mistica.js +4 -4
- package/dist/drawer.css-mistica.js +11 -11
- 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 +4 -4
- package/dist/file-upload.css-mistica.js +11 -11
- package/dist/fixed-footer-layout.css-mistica.js +11 -11
- package/dist/form.css-mistica.js +2 -2
- 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 +4 -4
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +56 -56
- 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 +2 -2
- package/dist/inline.css-mistica.js +9 -9
- package/dist/list.css-mistica.js +15 -15
- package/dist/loading-bar.css-mistica.js +1 -1
- package/dist/loading-screen.css-mistica.js +10 -10
- package/dist/logo.css-mistica.js +5 -5
- package/dist/media-queries.css-mistica.js +13 -6
- package/dist/media-queries.css.d.ts +3 -0
- package/dist/menu.css-mistica.js +16 -16
- package/dist/mosaic.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +38 -38
- package/dist/navigation-bar.d.ts +3 -1
- package/dist/navigation-bar.js +408 -383
- package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
- package/dist/package-version.js +1 -1
- package/dist/pin-field.css-mistica.js +5 -5
- package/dist/popover.css-mistica.js +1 -1
- package/dist/progress-bar.css-mistica.js +6 -6
- package/dist/radio-button.css-mistica.js +24 -24
- package/dist/rating.css-mistica.js +2 -2
- package/dist/responsive-layout.css-mistica.js +7 -7
- package/dist/responsive-layout.css.d.ts +2 -1
- package/dist/screen-reader-only.css-mistica.js +2 -2
- package/dist/screen-size-context-provider.js +25 -19
- package/dist/screen-size-context.d.ts +2 -0
- package/dist/screen-size-context.js +2 -1
- package/dist/select.css-mistica.js +21 -21
- package/dist/sheet-action-row.css-mistica.js +2 -2
- package/dist/sheet-common.css-mistica.js +4 -4
- package/dist/sheet-info.css-mistica.js +1 -1
- package/dist/sheet-radio-list.d.ts +5 -0
- package/dist/sheet-radio-list.js +18 -13
- package/dist/sheet-types.d.ts +5 -0
- package/dist/skeletons.css-mistica.js +6 -6
- package/dist/skins/blau.js +2 -0
- package/dist/skins/esimflag.js +2 -0
- package/dist/skins/movistar-new.js +5 -3
- package/dist/skins/movistar.js +2 -0
- package/dist/skins/o2-new.js +12 -10
- package/dist/skins/o2.js +2 -0
- package/dist/skins/skin-contract.css-mistica.js +684 -682
- package/dist/skins/skin-contract.css.d.ts +2 -0
- package/dist/skins/telefonica.js +15 -13
- package/dist/skins/tu.js +2 -0
- package/dist/skins/types/colors.d.ts +1 -0
- package/dist/skins/vivo-new.js +12 -10
- package/dist/skins/vivo.js +2 -0
- package/dist/skip-link.css-mistica.js +2 -2
- package/dist/slider.css-mistica.js +24 -24
- package/dist/snackbar.css-mistica.js +8 -8
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/square.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 +7 -7
- package/dist/switch-component.css-mistica.js +40 -40
- package/dist/table.css-mistica.js +9 -9
- package/dist/tabs.css-mistica.js +22 -22
- package/dist/tag.css-mistica.js +4 -4
- package/dist/text-field-base.css-mistica.js +20 -20
- package/dist/text-field-components.css-mistica.js +12 -12
- 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 +11 -11
- package/dist/timer.css-mistica.js +6 -6
- package/dist/tooltip.css-mistica.js +5 -5
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
- 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 +7 -7
- package/dist-es/align.css-mistica.js +1 -1
- package/dist-es/autocomplete.css-mistica.js +2 -2
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/box.css-mistica.js +13 -13
- package/dist-es/box.js +25 -23
- package/dist-es/boxed.css-mistica.js +23 -23
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-layout.css-mistica.js +14 -14
- package/dist-es/button.css-mistica.js +34 -34
- package/dist-es/callout.css-mistica.js +11 -11
- package/dist-es/card-internal.css-mistica.js +17 -17
- package/dist-es/card-internal.js +163 -162
- package/dist-es/carousel.css-mistica.js +9 -9
- package/dist-es/checkbox.css-mistica.js +13 -13
- package/dist-es/chip.css-mistica.js +17 -17
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- 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 +2 -2
- package/dist-es/cover-hero.css-mistica.js +4 -4
- 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 +5 -5
- package/dist-es/divider.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +4 -4
- package/dist-es/drawer.css-mistica.js +2 -2
- 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 +2 -2
- package/dist-es/file-upload.css-mistica.js +8 -8
- package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
- package/dist-es/form.css-mistica.js +2 -2
- 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 +3 -3
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +55 -55
- 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 +2 -2
- package/dist-es/inline.css-mistica.js +9 -9
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +1 -1
- package/dist-es/loading-screen.css-mistica.js +5 -5
- package/dist-es/logo.css-mistica.js +5 -5
- package/dist-es/media-queries.css-mistica.js +3 -2
- package/dist-es/menu.css-mistica.js +14 -14
- package/dist-es/mosaic.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +20 -20
- package/dist-es/navigation-bar.js +524 -499
- package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
- package/dist-es/package-version.js +1 -1
- package/dist-es/pin-field.css-mistica.js +2 -2
- 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 +21 -21
- package/dist-es/rating.css-mistica.js +2 -2
- package/dist-es/responsive-layout.css-mistica.js +7 -7
- package/dist-es/screen-reader-only.css-mistica.js +2 -2
- package/dist-es/screen-size-context-provider.js +35 -29
- package/dist-es/screen-size-context.js +2 -1
- package/dist-es/select.css-mistica.js +18 -18
- package/dist-es/sheet-action-row.css-mistica.js +2 -2
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/sheet-info.css-mistica.js +1 -1
- package/dist-es/sheet-radio-list.js +31 -26
- package/dist-es/skeletons.css-mistica.js +6 -6
- package/dist-es/skins/blau.js +2 -0
- package/dist-es/skins/esimflag.js +2 -0
- package/dist-es/skins/movistar-new.js +5 -3
- package/dist-es/skins/movistar.js +2 -0
- package/dist-es/skins/o2-new.js +12 -10
- package/dist-es/skins/o2.js +2 -0
- package/dist-es/skins/skin-contract.css-mistica.js +684 -682
- package/dist-es/skins/telefonica.js +15 -13
- package/dist-es/skins/tu.js +2 -0
- package/dist-es/skins/vivo-new.js +12 -10
- package/dist-es/skins/vivo.js +2 -0
- package/dist-es/skip-link.css-mistica.js +2 -2
- package/dist-es/slider.css-mistica.js +19 -19
- package/dist-es/snackbar.css-mistica.js +5 -5
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/square.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 +3 -3
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +37 -37
- package/dist-es/table.css-mistica.js +9 -9
- package/dist-es/tabs.css-mistica.js +19 -19
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/text-field-base.css-mistica.js +17 -17
- package/dist-es/text-field-components.css-mistica.js +4 -4
- 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 +10 -10
- package/dist-es/timer.css-mistica.js +6 -6
- package/dist-es/tooltip.css-mistica.js +2 -2
- 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 +3 -3
package/dist-es/card-internal.js
CHANGED
|
@@ -80,48 +80,48 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
80
80
|
}
|
|
81
81
|
import { jsx as i, jsxs as y, Fragment as Q } from "react/jsx-runtime";
|
|
82
82
|
import * as I from "react";
|
|
83
|
-
import { touchableContent as mt, touchableCardOverlayInverse as gt, touchableCardOverlay as bt, contentContainer as ft, textContent as vt, containerPaddingXVariants as Z, containerPaddingBottomVariants as Ge, containerPaddingTopVariants as ge, touchable as
|
|
83
|
+
import { touchableContent as mt, touchableCardOverlayInverse as gt, touchableCardOverlay as bt, contentContainer as ft, textContent as vt, slotContainerSpaceBetween as kt, containerPaddingXVariants as Z, containerPaddingBottomVariants as Ge, containerPaddingTopVariants as ge, touchable as Ve, touchableContainer as xt, topActionsContainer as yt, vars as St, boxed as Bt, container as Rt, backgroundImageOrVideoContainer as Ht, actionsContainerVariants as wt } 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 Lt, playIconButtonLabel as Ct, pauseIconButtonLabel as Tt } from "./text-tokens.js";
|
|
86
86
|
import { Text as J } from "./text.js";
|
|
87
|
-
import { useInnerText as
|
|
87
|
+
import { useInnerText as Ae, useTheme as ie } from "./hooks.js";
|
|
88
88
|
import { useThemeVariant as be, normalizeVariant as Fe, ThemeVariant as fe } from "./theme-variant-context.js";
|
|
89
89
|
import zt from "./tag.js";
|
|
90
90
|
import Oe from "./stack.js";
|
|
91
91
|
import _e from "./image.js";
|
|
92
|
-
import
|
|
92
|
+
import Dt from "./video.js";
|
|
93
93
|
import Me from "./inline.js";
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
94
|
+
import It from "./spinner.js";
|
|
95
|
+
import Nt from "./generated/mistica-icons/icon-play-filled.js";
|
|
96
|
+
import Pt from "./generated/mistica-icons/icon-pause-filled.js";
|
|
97
|
+
import Vt from "./generated/mistica-icons/icon-close-regular.js";
|
|
98
98
|
import { getPrefixedDataAttributes as At } from "./utils/dom.js";
|
|
99
|
-
import { applyCssVars as
|
|
100
|
-
import { InternalBoxed as
|
|
101
|
-
import { BaseTouchable as
|
|
102
|
-
import { aspectRatioToNumber as ve, AspectRatioContainer as
|
|
99
|
+
import { applyCssVars as _ } from "./utils/css.js";
|
|
100
|
+
import { InternalBoxed as Ft } from "./boxed.js";
|
|
101
|
+
import { BaseTouchable as Ot } from "./touchable.js";
|
|
102
|
+
import { aspectRatioToNumber as ve, AspectRatioContainer as Mt } 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 Et, ToggleIconButton as $t } from "./icon-button.js";
|
|
105
|
+
import { combineRefs as jt } from "./utils/common.js";
|
|
106
106
|
import { isRunningAcceptanceTest as Ee } from "./utils/platform.js";
|
|
107
|
-
import
|
|
108
|
-
import
|
|
107
|
+
import w from "classnames";
|
|
108
|
+
import Gt from "./button-group.js";
|
|
109
109
|
import { isBiggerHeading as Xe } from "./utils/headings.js";
|
|
110
|
-
import { applyAlpha as
|
|
111
|
-
const
|
|
112
|
-
let { type: e, children: o, width: a, height: r, aspectRatio: n, "aria-label":
|
|
113
|
-
const x = a && r ? void 0 : ve(n), f = x ?
|
|
114
|
-
[
|
|
115
|
-
}) : {}, k = b ? "none" : void 0,
|
|
110
|
+
import { applyAlpha as _t } from "./utils/color.js";
|
|
111
|
+
const Xt = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
112
|
+
let { type: e, children: o, width: a, height: r, aspectRatio: n, "aria-label": s, "aria-labelledby": u, "aria-description": h, "aria-describedby": m, dataAttributes: d, backgroundColor: b, variant: v } = param;
|
|
113
|
+
const x = a && r ? void 0 : ve(n), f = x ? _({
|
|
114
|
+
[St.aspectRatio]: String(x)
|
|
115
|
+
}) : {}, k = b ? "none" : void 0, l = 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":
|
|
120
|
+
"aria-label": s,
|
|
121
121
|
"aria-labelledby": u,
|
|
122
122
|
"aria-description": h,
|
|
123
123
|
"aria-describedby": m,
|
|
124
|
-
className:
|
|
124
|
+
className: w(Rt)
|
|
125
125
|
}, At(d, "InternalCard")), {
|
|
126
126
|
style: _object_spread({
|
|
127
127
|
width: a || "100%",
|
|
@@ -136,14 +136,14 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
136
136
|
position: "relative",
|
|
137
137
|
minHeight: "100%"
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */ i(
|
|
139
|
+
children: /* @__PURE__ */ i(Ft, {
|
|
140
140
|
width: "100%",
|
|
141
141
|
height: "100%",
|
|
142
142
|
variant: v,
|
|
143
|
-
className:
|
|
144
|
-
background:
|
|
145
|
-
borderRadius:
|
|
146
|
-
border:
|
|
143
|
+
className: w(Bt),
|
|
144
|
+
background: l ? "transparent" : b,
|
|
145
|
+
borderRadius: l ? "none" : g.borderRadii.container,
|
|
146
|
+
border: l ? "none" : k,
|
|
147
147
|
overflow: "visible",
|
|
148
148
|
children: o
|
|
149
149
|
})
|
|
@@ -164,7 +164,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
164
164
|
const n = /* @__PURE__ */ i("div", {
|
|
165
165
|
"data-testid": "asset",
|
|
166
166
|
"aria-hidden": !0,
|
|
167
|
-
style:
|
|
167
|
+
style: _({
|
|
168
168
|
[te.mediaBorderRadius]: g.borderRadii.mediaSmall
|
|
169
169
|
}),
|
|
170
170
|
children: a
|
|
@@ -175,21 +175,21 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
175
175
|
top: 0,
|
|
176
176
|
left: 0
|
|
177
177
|
},
|
|
178
|
-
className:
|
|
178
|
+
className: w(Z[e], ge[e]),
|
|
179
179
|
children: n
|
|
180
180
|
}) : /* @__PURE__ */ i("div", {
|
|
181
|
-
className:
|
|
181
|
+
className: w({
|
|
182
182
|
[Z[e]]: r !== "naked"
|
|
183
183
|
}),
|
|
184
184
|
children: n
|
|
185
185
|
});
|
|
186
|
-
},
|
|
186
|
+
}, Kt = (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:
|
|
192
|
-
style:
|
|
191
|
+
className: Ht,
|
|
192
|
+
style: _({
|
|
193
193
|
[te.mediaBorderRadius]: "0px",
|
|
194
194
|
borderRadius: g.borderRadii.container,
|
|
195
195
|
overflow: "hidden"
|
|
@@ -206,7 +206,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
206
206
|
})
|
|
207
207
|
})
|
|
208
208
|
});
|
|
209
|
-
},
|
|
209
|
+
}, Wt = {
|
|
210
210
|
loading: {
|
|
211
211
|
play: "playing",
|
|
212
212
|
pause: "paused",
|
|
@@ -226,28 +226,28 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
226
226
|
error: {
|
|
227
227
|
reset: "loading"
|
|
228
228
|
}
|
|
229
|
-
},
|
|
229
|
+
}, Yt = (e, o)=>Wt[e][o] || e, qt = (param)=>{
|
|
230
230
|
let { color: e } = param;
|
|
231
|
-
return /* @__PURE__ */ i(
|
|
231
|
+
return /* @__PURE__ */ i(It, {
|
|
232
232
|
color: e,
|
|
233
233
|
size: 16,
|
|
234
234
|
delay: "0"
|
|
235
235
|
});
|
|
236
|
-
},
|
|
236
|
+
}, Jt = (param)=>{
|
|
237
237
|
let { color: e } = param;
|
|
238
|
-
return /* @__PURE__ */ i(
|
|
238
|
+
return /* @__PURE__ */ i(Pt, {
|
|
239
239
|
color: e,
|
|
240
240
|
size: 12
|
|
241
241
|
});
|
|
242
|
-
},
|
|
242
|
+
}, Qt = (param)=>{
|
|
243
243
|
let { color: e } = param;
|
|
244
|
-
return /* @__PURE__ */ i(
|
|
244
|
+
return /* @__PURE__ */ i(Nt, {
|
|
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: h, t: m } = ie(), d = I.useRef(null), b = I.useRef(!1), [v, p] = I.useReducer(
|
|
248
|
+
}, Ut = (param)=>{
|
|
249
|
+
let { src: e, poster: o, ref: a, autoHeight: r, loop: n, autoPlay: s, dataAttributes: u } = param;
|
|
250
|
+
const { texts: h, t: m } = ie(), d = I.useRef(null), b = I.useRef(!1), [v, p] = I.useReducer(Yt, process.env.NODE_ENV === "test" ? "playing" : "loading");
|
|
251
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(), ()=>{
|
|
@@ -259,16 +259,16 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
259
259
|
const x = I.useMemo(()=>{
|
|
260
260
|
if (e === void 0) return;
|
|
261
261
|
const t = ()=>{
|
|
262
|
-
|
|
262
|
+
s === !1 && !b.current && (b.current = !0, p("pause"));
|
|
263
263
|
};
|
|
264
|
-
return /* @__PURE__ */ i(
|
|
265
|
-
ref:
|
|
264
|
+
return /* @__PURE__ */ i(Dt, {
|
|
265
|
+
ref: jt(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:
|
|
271
|
+
autoPlay: s,
|
|
272
272
|
dataAttributes: u,
|
|
273
273
|
onLoad: t,
|
|
274
274
|
onError: ()=>p("fail"),
|
|
@@ -281,7 +281,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
281
281
|
o,
|
|
282
282
|
r,
|
|
283
283
|
n,
|
|
284
|
-
|
|
284
|
+
s,
|
|
285
285
|
u
|
|
286
286
|
]), f = ()=>{
|
|
287
287
|
const t = d.current;
|
|
@@ -290,14 +290,14 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
290
290
|
if (v === "error") return {
|
|
291
291
|
video: x
|
|
292
292
|
};
|
|
293
|
-
const k = v === "loading",
|
|
293
|
+
const k = v === "loading", l = x ? {
|
|
294
294
|
uncheckedProps: {
|
|
295
|
-
Icon: k && !Ee() ?
|
|
295
|
+
Icon: k && !Ee() ? qt : Jt,
|
|
296
296
|
label: k ? "" : h.pauseIconButtonLabel || m(Tt)
|
|
297
297
|
},
|
|
298
298
|
checkedProps: {
|
|
299
|
-
Icon:
|
|
300
|
-
label: h.playIconButtonLabel || m(
|
|
299
|
+
Icon: Qt,
|
|
300
|
+
label: h.playIconButtonLabel || m(Ct)
|
|
301
301
|
},
|
|
302
302
|
onChange: f,
|
|
303
303
|
disabled: Ee() ? !1 : k,
|
|
@@ -305,21 +305,21 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
305
305
|
} : void 0;
|
|
306
306
|
return {
|
|
307
307
|
video: x,
|
|
308
|
-
videoAction:
|
|
308
|
+
videoAction: l
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, Zt = (param)=>{
|
|
311
311
|
let { size: e, buttonPrimary: o, buttonSecondary: a, buttonLink: r } = param;
|
|
312
312
|
return /* @__PURE__ */ i("div", {
|
|
313
|
-
className:
|
|
314
|
-
children: /* @__PURE__ */ i(
|
|
313
|
+
className: wt[e],
|
|
314
|
+
children: /* @__PURE__ */ i(Gt, {
|
|
315
315
|
primaryButton: o,
|
|
316
316
|
secondaryButton: a,
|
|
317
317
|
link: r
|
|
318
318
|
})
|
|
319
319
|
});
|
|
320
|
-
},
|
|
320
|
+
}, ei = (e)=>{
|
|
321
321
|
const o = be();
|
|
322
|
-
if (e.Icon) return /* @__PURE__ */ i(
|
|
322
|
+
if (e.Icon) return /* @__PURE__ */ i(Et, _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 _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
329
329
|
"checkedProps",
|
|
330
330
|
"uncheckedProps"
|
|
331
331
|
]);
|
|
332
|
-
return /* @__PURE__ */ i(
|
|
332
|
+
return /* @__PURE__ */ i($t, _object_spread_props(_object_spread({
|
|
333
333
|
small: !0
|
|
334
334
|
}, n), {
|
|
335
335
|
checkedProps: _object_spread_props(_object_spread({}, a), {
|
|
@@ -344,25 +344,25 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
344
344
|
})
|
|
345
345
|
}));
|
|
346
346
|
}, $e = (param)=>{
|
|
347
|
-
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles:
|
|
347
|
+
let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles: s = {} } = param;
|
|
348
348
|
const { texts: u, t: h } = ie(), m = r ? [
|
|
349
349
|
...r
|
|
350
350
|
] : [];
|
|
351
351
|
return o && m.push({
|
|
352
|
-
label: a || u.closeButtonLabel || h(
|
|
352
|
+
label: a || u.closeButtonLabel || h(Lt),
|
|
353
353
|
onPress: o,
|
|
354
|
-
Icon:
|
|
354
|
+
Icon: Vt
|
|
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: yt,
|
|
359
|
+
style: s,
|
|
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(ei, _object_spread({}, d), b) : d)
|
|
362
362
|
})
|
|
363
363
|
});
|
|
364
|
-
},
|
|
365
|
-
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit:
|
|
364
|
+
}, ti = (param)=>{
|
|
365
|
+
let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit: s, 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
|
} : {
|
|
@@ -393,19 +393,19 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
393
393
|
testid: "image"
|
|
394
394
|
},
|
|
395
395
|
alt: u
|
|
396
|
-
}), t ? c[
|
|
396
|
+
}), t ? c[s] : {}));
|
|
397
397
|
}
|
|
398
398
|
return null;
|
|
399
399
|
})();
|
|
400
400
|
if (!k) return /* @__PURE__ */ i(Q, {});
|
|
401
|
-
const
|
|
401
|
+
const l = _object_spread({}, e === "naked" ? void 0 : _({
|
|
402
402
|
[te.mediaBorderRadius]: "0px"
|
|
403
403
|
}));
|
|
404
404
|
return d === "top" ? /* @__PURE__ */ y(Q, {
|
|
405
405
|
children: [
|
|
406
|
-
/* @__PURE__ */ i(
|
|
406
|
+
/* @__PURE__ */ i(Mt, {
|
|
407
407
|
aspectRatio: p,
|
|
408
|
-
style:
|
|
408
|
+
style: l,
|
|
409
409
|
children: k
|
|
410
410
|
}),
|
|
411
411
|
/* @__PURE__ */ i(ee, {
|
|
@@ -418,7 +418,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
418
418
|
}) : /* @__PURE__ */ y(Q, {
|
|
419
419
|
children: [
|
|
420
420
|
/* @__PURE__ */ i("div", {
|
|
421
|
-
style: _object_spread_props(_object_spread({},
|
|
421
|
+
style: _object_spread_props(_object_spread({}, l), {
|
|
422
422
|
width: b,
|
|
423
423
|
flexShrink: 0,
|
|
424
424
|
flexGrow: 0,
|
|
@@ -435,15 +435,15 @@ const _t = /*#__PURE__*/ I.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
|
+
}, ii = (param)=>{
|
|
439
|
+
let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: n, buttonSecondary: s, buttonLink: u, hasBackgroundImageOrVideo: h, footerVariant: m, footerBackgroundColor: d, footerDivider: b, externalVariant: v, overlayColor: p } = param;
|
|
440
|
+
const x = !!(n || s || u), f = !!(n && s && 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],
|
|
446
|
+
}[a], l = 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), c = b !== null && b !== void 0 ? b : !t;
|
|
447
447
|
return /* @__PURE__ */ y(fe, {
|
|
448
448
|
variant: m || a,
|
|
449
449
|
children: [
|
|
@@ -453,26 +453,26 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
453
453
|
background: t || (h ? p : void 0),
|
|
454
454
|
position: "relative",
|
|
455
455
|
backdropFilter: h ? "blur(12px)" : void 0,
|
|
456
|
-
borderBottomLeftRadius:
|
|
457
|
-
borderBottomRightRadius:
|
|
456
|
+
borderBottomLeftRadius: l ? 0 : g.borderRadii.container,
|
|
457
|
+
borderBottomRightRadius: l ? 0 : g.borderRadii.container
|
|
458
458
|
},
|
|
459
459
|
children: [
|
|
460
460
|
/* @__PURE__ */ i("div", {
|
|
461
461
|
style: {
|
|
462
462
|
borderTop: c ? `1px solid ${k}` : void 0,
|
|
463
|
-
marginRight:
|
|
463
|
+
marginRight: l ? 16 : 0
|
|
464
464
|
}
|
|
465
465
|
}),
|
|
466
466
|
/* @__PURE__ */ i("div", {
|
|
467
467
|
"data-testid": "footer",
|
|
468
|
-
className:
|
|
469
|
-
[Z[o]]: !
|
|
470
|
-
[Ge[o]]: !
|
|
468
|
+
className: w({
|
|
469
|
+
[Z[o]]: !l,
|
|
470
|
+
[Ge[o]]: !l
|
|
471
471
|
}),
|
|
472
472
|
style: {
|
|
473
473
|
paddingTop: 16,
|
|
474
|
-
paddingBottom:
|
|
475
|
-
paddingRight:
|
|
474
|
+
paddingBottom: l ? 0 : void 0,
|
|
475
|
+
paddingRight: l ? 16 : void 0
|
|
476
476
|
},
|
|
477
477
|
children: /* @__PURE__ */ y(Oe, {
|
|
478
478
|
space: 16,
|
|
@@ -489,7 +489,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
489
489
|
alignItems: "center",
|
|
490
490
|
children: [
|
|
491
491
|
n,
|
|
492
|
-
|
|
492
|
+
s
|
|
493
493
|
]
|
|
494
494
|
}),
|
|
495
495
|
/* @__PURE__ */ i("div", {
|
|
@@ -504,7 +504,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
504
504
|
alignItems: "center",
|
|
505
505
|
children: [
|
|
506
506
|
n,
|
|
507
|
-
|
|
507
|
+
s,
|
|
508
508
|
u
|
|
509
509
|
]
|
|
510
510
|
}))
|
|
@@ -515,9 +515,9 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
515
515
|
})
|
|
516
516
|
]
|
|
517
517
|
});
|
|
518
|
-
},
|
|
519
|
-
let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline:
|
|
520
|
-
const { textPresets: t, colorValues: c } = ie(), M = be(),
|
|
518
|
+
}, oi = (param)=>{
|
|
519
|
+
let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline: s, title: u, titleAs: h = "h3", titleLinesMax: m, pretitle: d, pretitleAs: b, pretitleLinesMax: v, subtitle: p, subtitleLinesMax: x, description: f, descriptionLinesMax: k, withTextShadow: l } = param;
|
|
520
|
+
const { textPresets: t, colorValues: c } = ie(), M = be(), C = {
|
|
521
521
|
hyphens: "auto"
|
|
522
522
|
}, E = {
|
|
523
523
|
default: {
|
|
@@ -635,7 +635,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
635
635
|
weight: "regular"
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
}, P = E[n] || E[M] || E.default,
|
|
638
|
+
}, P = E[n] || E[M] || E.default, L = N[r] || N.default, V = l ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, oe = s && // Read order 2. Visual order 1
|
|
639
639
|
/* @__PURE__ */ i("div", {
|
|
640
640
|
style: {
|
|
641
641
|
paddingBottom: 8,
|
|
@@ -643,36 +643,36 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
643
643
|
},
|
|
644
644
|
"data-testid": "headline",
|
|
645
645
|
ref: a,
|
|
646
|
-
children: typeof
|
|
646
|
+
children: typeof s == "string" ? /* @__PURE__ */ i(zt, {
|
|
647
647
|
type: "promo",
|
|
648
|
-
children:
|
|
649
|
-
}) :
|
|
650
|
-
}),
|
|
648
|
+
children: s
|
|
649
|
+
}) : s
|
|
650
|
+
}), T = d && // Read order: 3 or 1. Visual order 2
|
|
651
651
|
/* @__PURE__ */ i("div", {
|
|
652
652
|
style: {
|
|
653
653
|
paddingBottom: 4,
|
|
654
654
|
order: 2
|
|
655
655
|
},
|
|
656
656
|
"data-testid": "pretitle",
|
|
657
|
-
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({},
|
|
657
|
+
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({}, C, L.pretitle), {
|
|
658
658
|
as: b || "p",
|
|
659
659
|
truncate: v,
|
|
660
660
|
color: P.pretitle,
|
|
661
|
-
textShadow:
|
|
661
|
+
textShadow: V,
|
|
662
662
|
children: d
|
|
663
663
|
}))
|
|
664
|
-
}),
|
|
664
|
+
}), X = u && // Read order: 1 or 3. Visual order 3
|
|
665
665
|
/* @__PURE__ */ i("div", {
|
|
666
666
|
style: {
|
|
667
667
|
paddingBottom: 4,
|
|
668
668
|
order: 3
|
|
669
669
|
},
|
|
670
670
|
"data-testid": "title",
|
|
671
|
-
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({},
|
|
671
|
+
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({}, C, L.title), {
|
|
672
672
|
as: h,
|
|
673
673
|
truncate: m,
|
|
674
674
|
color: P.title,
|
|
675
|
-
textShadow:
|
|
675
|
+
textShadow: V,
|
|
676
676
|
children: u
|
|
677
677
|
}))
|
|
678
678
|
}), re = p && // Read order: 4. Visual order 4
|
|
@@ -682,11 +682,11 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
682
682
|
order: 4
|
|
683
683
|
},
|
|
684
684
|
"data-testid": "subtitle",
|
|
685
|
-
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({},
|
|
685
|
+
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({}, C, L.subtitle), {
|
|
686
686
|
as: "p",
|
|
687
687
|
truncate: x,
|
|
688
688
|
color: P.subtitle,
|
|
689
|
-
textShadow:
|
|
689
|
+
textShadow: V,
|
|
690
690
|
children: p
|
|
691
691
|
}))
|
|
692
692
|
}), ae = f && // Read order: 5. Visual order 5
|
|
@@ -696,19 +696,19 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
696
696
|
order: 5
|
|
697
697
|
},
|
|
698
698
|
"data-testid": "description",
|
|
699
|
-
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({},
|
|
699
|
+
children: /* @__PURE__ */ i(J, _object_spread_props(_object_spread({}, C, L.description), {
|
|
700
700
|
as: "p",
|
|
701
701
|
truncate: k,
|
|
702
702
|
color: P.description,
|
|
703
|
-
textShadow:
|
|
703
|
+
textShadow: V,
|
|
704
704
|
children: f
|
|
705
705
|
}))
|
|
706
|
-
}), [
|
|
707
|
-
|
|
708
|
-
|
|
706
|
+
}), [K, $] = u && Xe(h, b) ? [
|
|
707
|
+
X,
|
|
708
|
+
T
|
|
709
709
|
] : [
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
T,
|
|
711
|
+
X
|
|
712
712
|
];
|
|
713
713
|
return /* @__PURE__ */ y("div", {
|
|
714
714
|
style: {
|
|
@@ -716,18 +716,18 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
716
716
|
flexDirection: "column"
|
|
717
717
|
},
|
|
718
718
|
children: [
|
|
719
|
-
X,
|
|
720
|
-
oe,
|
|
721
719
|
K,
|
|
720
|
+
oe,
|
|
721
|
+
$,
|
|
722
722
|
re,
|
|
723
723
|
ae
|
|
724
724
|
]
|
|
725
725
|
});
|
|
726
|
-
},
|
|
726
|
+
}, ri = [
|
|
727
727
|
g.colors.cardContentOverlay,
|
|
728
728
|
g.colors.cardFooterOverlay
|
|
729
|
-
],
|
|
730
|
-
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt:
|
|
729
|
+
], ai = /rgba\([^,]+,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)/g, je = (e, o)=>e.replace(ai, (a, r)=>_t(o, parseFloat(r))), Vi = /*#__PURE__*/ I.forwardRef((_param, et)=>{
|
|
730
|
+
var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt: s = "", 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: l, titleAs: t = "h3", titleLinesMax: c, pretitle: M, pretitleAs: C, pretitleLinesMax: E, subtitle: N, subtitleLinesMax: P, description: L, descriptionLinesMax: V, dataAttributes: oe, variant: T, width: X, height: re, aspectRatio: ae, slot: K, slotAlignment: $ = "content", buttonPrimary: ne, buttonSecondary: de, buttonLink: se, showFooter: Ke, footerBackgroundColor: We, footerVariant: Ye, footerSlot: ke, footerDivider: qe, topActions: xe, onClose: ye, closeButtonLabel: Je, "aria-label": Se, "aria-labelledby": le, "aria-description": Be, "aria-describedby": Re, gradientOverlayColor: W, videoLoop: Qe, videoAutoPlay: Ue, videoDataAttributes: Ze } = _param, A = _object_without_properties(_param, [
|
|
731
731
|
"type",
|
|
732
732
|
"size",
|
|
733
733
|
"backgroundColor",
|
|
@@ -781,29 +781,29 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
781
781
|
"videoAutoPlay",
|
|
782
782
|
"videoDataAttributes"
|
|
783
783
|
]);
|
|
784
|
-
const { text: He, ref: tt } =
|
|
784
|
+
const { text: He, ref: tt } = Ae(), { text: we, ref: it } = Ae(), B = !!(A.href || A.to || A.onPress), ce = !!(ne || de || se), { colorValues: Le } = ie(), pe = e === "media" || e === "naked", ot = pe && (r !== void 0 || n !== void 0), Ce = pe && h !== void 0, Te = ot || Ce, ue = pe && !!d && !Te, R = Te || ue, H = e === "naked", S = R ? v : "top", ze = 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, rt = Ce || Y, { video: Ie, videoAction: me } = Ut({
|
|
785
785
|
src: rt ? h : void 0,
|
|
786
786
|
poster: r,
|
|
787
787
|
ref: m,
|
|
788
|
-
autoHeight: e === "cover" || S !== "top" ? !1 : ve(
|
|
788
|
+
autoHeight: e === "cover" || S !== "top" ? !1 : ve(ze) === 0,
|
|
789
789
|
loop: Qe,
|
|
790
790
|
autoPlay: Ue,
|
|
791
791
|
dataAttributes: Ze
|
|
792
|
-
}),
|
|
793
|
-
s,
|
|
792
|
+
}), j = be(), at = T ? Fe(T) : j, z = T && Fe(T) || (e === "cover" && De ? "media" : "default"), nt = z === "brand" ? gt : bt, D = Ke && (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, dt = f && !(R && S === "left"), st = e !== "cover" && Pe > 0 && !dt && !k, G = e === "cover" || e === "data" && o === "display", O = g.borderRadii.container, lt = he || Y ? "transparent" : a || (z === "media" ? j === "brand" || j === "media" || j === "negative" ? g.colors.backgroundContainerBrandOverBrand : g.colors.backgroundBrand : z === "alternative" ? g.colors.backgroundAlternative : void 0), ct = Se || (le ? void 0 : (l && Xe(t, C) ? [
|
|
794
793
|
l,
|
|
794
|
+
s,
|
|
795
795
|
we,
|
|
796
796
|
M,
|
|
797
797
|
N,
|
|
798
|
-
|
|
798
|
+
L,
|
|
799
799
|
He
|
|
800
800
|
] : [
|
|
801
801
|
M,
|
|
802
802
|
we,
|
|
803
|
-
s,
|
|
804
803
|
l,
|
|
804
|
+
s,
|
|
805
805
|
N,
|
|
806
|
-
|
|
806
|
+
L,
|
|
807
807
|
He
|
|
808
808
|
]).filter(Boolean).join(" ")), pt = ()=>W === "transparent" ? [
|
|
809
809
|
"transparent",
|
|
@@ -811,23 +811,23 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
811
811
|
] : W ? [
|
|
812
812
|
je(Le.cardContentOverlay, W),
|
|
813
813
|
je(Le.cardFooterOverlay, W)
|
|
814
|
-
] :
|
|
815
|
-
return /* @__PURE__ */ y(
|
|
814
|
+
] : ri, [ut, ht] = pt();
|
|
815
|
+
return /* @__PURE__ */ y(Xt, {
|
|
816
816
|
"aria-label": B ? void 0 : Se,
|
|
817
|
-
"aria-labelledby": B ? void 0 :
|
|
817
|
+
"aria-labelledby": B ? void 0 : le,
|
|
818
818
|
"aria-description": B ? void 0 : Be,
|
|
819
819
|
"aria-describedby": B ? void 0 : Re,
|
|
820
820
|
type: e,
|
|
821
821
|
size: o,
|
|
822
822
|
dataAttributes: oe,
|
|
823
823
|
ref: et,
|
|
824
|
-
variant:
|
|
825
|
-
width:
|
|
824
|
+
variant: z,
|
|
825
|
+
width: X,
|
|
826
826
|
height: re,
|
|
827
827
|
aspectRatio: ae,
|
|
828
|
-
backgroundColor:
|
|
828
|
+
backgroundColor: lt,
|
|
829
829
|
children: [
|
|
830
|
-
F && /* @__PURE__ */ i(
|
|
830
|
+
F && /* @__PURE__ */ i(Kt, {
|
|
831
831
|
video: Ie,
|
|
832
832
|
src: r,
|
|
833
833
|
srcSet: n,
|
|
@@ -850,16 +850,16 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
850
850
|
}
|
|
851
851
|
})
|
|
852
852
|
}),
|
|
853
|
-
/* @__PURE__ */ i(
|
|
853
|
+
/* @__PURE__ */ i(Ot, _object_spread_props(_object_spread({
|
|
854
854
|
maybe: !0,
|
|
855
855
|
"aria-label": B ? ct : void 0,
|
|
856
|
-
"aria-labelledby": B ?
|
|
856
|
+
"aria-labelledby": B ? le : void 0,
|
|
857
857
|
"aria-description": B ? Be : void 0,
|
|
858
858
|
"aria-describedby": B ? Re : void 0,
|
|
859
|
-
className:
|
|
860
|
-
},
|
|
859
|
+
className: w(Ve, xt)
|
|
860
|
+
}, A), {
|
|
861
861
|
children: /* @__PURE__ */ y("div", {
|
|
862
|
-
role:
|
|
862
|
+
role: A.href || A.to ? "text" : void 0,
|
|
863
863
|
className: mt,
|
|
864
864
|
style: {
|
|
865
865
|
flexDirection: S === "top" ? "column" : S === "left" ? "row" : "row-reverse",
|
|
@@ -877,7 +877,7 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
877
877
|
// for some reason, this width is required to pass headless screenshot tests
|
|
878
878
|
// otherwise, it gets 0px width and the media is not visible
|
|
879
879
|
width: "100%"
|
|
880
|
-
}, e === "naked" ? void 0 :
|
|
880
|
+
}, e === "naked" ? void 0 : _({
|
|
881
881
|
[te.mediaBorderRadius]: "0px"
|
|
882
882
|
})),
|
|
883
883
|
children: d
|
|
@@ -888,24 +888,24 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
888
888
|
asset: f,
|
|
889
889
|
type: e
|
|
890
890
|
}),
|
|
891
|
-
R && /* @__PURE__ */ i(
|
|
891
|
+
R && /* @__PURE__ */ i(ti, {
|
|
892
892
|
type: e,
|
|
893
893
|
size: o,
|
|
894
|
-
mediaAspectRatio:
|
|
894
|
+
mediaAspectRatio: ze,
|
|
895
895
|
mediaPosition: S,
|
|
896
896
|
asset: f,
|
|
897
897
|
video: Ie,
|
|
898
898
|
imageFit: u,
|
|
899
899
|
imageSrc: r,
|
|
900
900
|
imageSrcSet: n,
|
|
901
|
-
imageAlt:
|
|
901
|
+
imageAlt: s,
|
|
902
902
|
mediaWidth: p,
|
|
903
903
|
circledImage: x
|
|
904
904
|
}),
|
|
905
905
|
/* @__PURE__ */ y("div", {
|
|
906
906
|
"aria-hidden": B,
|
|
907
907
|
"data-testid": "body",
|
|
908
|
-
className:
|
|
908
|
+
className: w(Ve, {
|
|
909
909
|
[ge[o]]: !!f && e !== "naked" && (!R || S === "right")
|
|
910
910
|
}),
|
|
911
911
|
children: [
|
|
@@ -914,18 +914,18 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
914
914
|
asset: f,
|
|
915
915
|
type: e
|
|
916
916
|
}),
|
|
917
|
-
|
|
917
|
+
G && /* @__PURE__ */ i(U, {
|
|
918
918
|
minHeight: e === "cover" && Pe > 0 && !f ? 56 : 0
|
|
919
919
|
}),
|
|
920
920
|
/* @__PURE__ */ y("div", {
|
|
921
|
-
className:
|
|
921
|
+
className: w(Z[o], Ge[o], ge[o]),
|
|
922
922
|
style: {
|
|
923
923
|
display: "flex",
|
|
924
924
|
flexDirection: "column",
|
|
925
|
-
height:
|
|
925
|
+
height: G ? void 0 : "100%",
|
|
926
926
|
background: F ? ut : void 0,
|
|
927
927
|
// padding overrides for specific cases
|
|
928
|
-
paddingTop:
|
|
928
|
+
paddingTop: G && F ? 40 : f || H && S !== "top" ? 16 : H && !R ? 0 : void 0,
|
|
929
929
|
paddingLeft: H && (S !== "left" || !R) ? 0 : void 0,
|
|
930
930
|
paddingRight: H && S !== "right" ? 16 : void 0,
|
|
931
931
|
paddingBottom: D ? 16 : H ? 0 : void 0,
|
|
@@ -938,27 +938,27 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
938
938
|
children: [
|
|
939
939
|
/* @__PURE__ */ i("div", {
|
|
940
940
|
className: vt,
|
|
941
|
-
children: /* @__PURE__ */ i(
|
|
941
|
+
children: /* @__PURE__ */ i(oi, {
|
|
942
942
|
type: e,
|
|
943
943
|
hasCustomBackground: De,
|
|
944
944
|
headlineRef: it,
|
|
945
|
-
variant:
|
|
945
|
+
variant: z,
|
|
946
946
|
size: o,
|
|
947
947
|
headline: k,
|
|
948
948
|
pretitle: M,
|
|
949
|
-
pretitleAs:
|
|
949
|
+
pretitleAs: C,
|
|
950
950
|
pretitleLinesMax: E,
|
|
951
|
-
title:
|
|
951
|
+
title: l,
|
|
952
952
|
titleAs: t,
|
|
953
953
|
titleLinesMax: c,
|
|
954
954
|
subtitle: N,
|
|
955
955
|
subtitleLinesMax: P,
|
|
956
|
-
description:
|
|
957
|
-
descriptionLinesMax:
|
|
956
|
+
description: L,
|
|
957
|
+
descriptionLinesMax: V,
|
|
958
958
|
withTextShadow: F
|
|
959
959
|
})
|
|
960
960
|
}),
|
|
961
|
-
|
|
961
|
+
st && /* @__PURE__ */ i("div", {
|
|
962
962
|
style: {
|
|
963
963
|
flexShrink: 0,
|
|
964
964
|
flexGrow: 0,
|
|
@@ -969,18 +969,19 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
969
969
|
})
|
|
970
970
|
]
|
|
971
971
|
}),
|
|
972
|
-
!
|
|
973
|
-
|
|
972
|
+
!G && $ === "bottom" && /* @__PURE__ */ i(U, {}),
|
|
973
|
+
K && /* @__PURE__ */ i("div", {
|
|
974
974
|
ref: tt,
|
|
975
975
|
"data-testid": "slot",
|
|
976
|
-
|
|
976
|
+
className: w($ === "space-between" && kt),
|
|
977
|
+
children: K
|
|
977
978
|
}),
|
|
978
|
-
!
|
|
979
|
-
Ne && /* @__PURE__ */ i(
|
|
979
|
+
!G && $ === "content" && Ne && /* @__PURE__ */ i(U, {}),
|
|
980
|
+
Ne && /* @__PURE__ */ i(Zt, {
|
|
980
981
|
size: o,
|
|
981
982
|
buttonPrimary: ne,
|
|
982
983
|
buttonSecondary: de,
|
|
983
|
-
buttonLink:
|
|
984
|
+
buttonLink: se
|
|
984
985
|
})
|
|
985
986
|
]
|
|
986
987
|
})
|
|
@@ -989,9 +990,9 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
989
990
|
]
|
|
990
991
|
})
|
|
991
992
|
})),
|
|
992
|
-
D && /* @__PURE__ */ i(
|
|
993
|
+
D && /* @__PURE__ */ i(ii, {
|
|
993
994
|
type: e,
|
|
994
|
-
variant:
|
|
995
|
+
variant: z,
|
|
995
996
|
footerVariant: Ye,
|
|
996
997
|
footerBackgroundColor: We,
|
|
997
998
|
footerDivider: qe,
|
|
@@ -999,18 +1000,18 @@ const _t = /*#__PURE__*/ I.forwardRef((param, p)=>{
|
|
|
999
1000
|
footerSlot: ke,
|
|
1000
1001
|
buttonPrimary: ne,
|
|
1001
1002
|
buttonSecondary: de,
|
|
1002
|
-
buttonLink:
|
|
1003
|
+
buttonLink: se,
|
|
1003
1004
|
hasBackgroundImageOrVideo: F,
|
|
1004
|
-
externalVariant:
|
|
1005
|
+
externalVariant: j,
|
|
1005
1006
|
overlayColor: ht
|
|
1006
1007
|
}),
|
|
1007
1008
|
/* @__PURE__ */ i($e, {
|
|
1008
1009
|
onClose: ye,
|
|
1009
1010
|
closeButtonLabel: Je,
|
|
1010
1011
|
actions: xe,
|
|
1011
|
-
variant: F || R && S !== "left" ? "media" :
|
|
1012
|
+
variant: F || R && S !== "left" ? "media" : z
|
|
1012
1013
|
})
|
|
1013
1014
|
]
|
|
1014
1015
|
});
|
|
1015
1016
|
});
|
|
1016
|
-
export {
|
|
1017
|
+
export { ei as CardActionIconButton, qt as CardActionSpinner, Vi as InternalCard, $e as TopActions, Ut as useVideoWithControls };
|