@telefonica/mistica 14.48.0 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +5 -5
- package/dist/accordion.d.ts +2 -6
- package/dist/avatar.css-mistica.js +3 -3
- package/dist/badge.css-mistica.js +6 -6
- package/dist/boxed.css-mistica.js +3 -3
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +9 -9
- package/dist/button.css-mistica.js +27 -27
- package/dist/button.d.ts +12 -4
- package/dist/button.js +68 -63
- package/dist/callout.css-mistica.js +2 -2
- package/dist/callout.d.ts +1 -0
- package/dist/callout.js +11 -11
- package/dist/card.css-mistica.js +13 -13
- package/dist/card.d.ts +6 -0
- package/dist/card.js +301 -293
- package/dist/carousel.css-mistica.js +19 -19
- package/dist/checkbox.css-mistica.js +9 -9
- package/dist/chip.css-mistica.js +10 -10
- package/dist/circle.css-mistica.js +2 -2
- package/dist/community/advanced-data-card.css-mistica.js +12 -12
- package/dist/community/blocks.css-mistica.js +1 -1
- package/dist/counter.css-mistica.js +4 -4
- package/dist/credit-card-number-field.css-mistica.js +5 -5
- package/dist/cvv-field.js +30 -29
- package/dist/dialog.css-mistica.js +6 -6
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/empty-state-card.css-mistica.js +3 -3
- package/dist/empty-state-card.d.ts +1 -0
- package/dist/empty-state-card.js +10 -9
- package/dist/empty-state.css-mistica.js +4 -4
- package/dist/empty-state.d.ts +1 -0
- package/dist/empty-state.js +14 -14
- package/dist/feedback.css-mistica.js +5 -5
- package/dist/feedback.js +61 -79
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/header.css-mistica.js +1 -1
- package/dist/header.d.ts +2 -0
- package/dist/header.js +46 -47
- package/dist/hero.css-mistica.js +2 -2
- package/dist/hero.d.ts +1 -0
- package/dist/hero.js +29 -29
- package/dist/highlighted-card.css-mistica.js +7 -7
- package/dist/highlighted-card.d.ts +1 -2
- package/dist/highlighted-card.js +9 -9
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +14 -17
- package/dist/icon-button.css.d.ts +1 -1
- package/dist/icon-button.d.ts +0 -14
- package/dist/icon-button.js +84 -87
- package/dist/icons/icon-error.js +5 -5
- package/dist/icons/icon-info.js +5 -5
- package/dist/icons/icon-success.js +6 -7
- package/dist/image.css-mistica.js +3 -3
- package/dist/image.js +36 -32
- package/dist/index.d.ts +5 -12
- package/dist/index.js +10 -17
- package/dist/inline.js +8 -7
- package/dist/list.css-mistica.js +12 -12
- package/dist/list.d.ts +1 -4
- package/dist/list.js +143 -138
- package/dist/loading-bar.css-mistica.js +4 -4
- package/dist/loading-screen.css-mistica.js +3 -3
- package/dist/logo.d.ts +1 -0
- package/dist/logo.js +155 -137
- package/dist/maybe-dismissable.css-mistica.js +1 -1
- package/dist/maybe-dismissable.js +3 -4
- package/dist/menu.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +22 -22
- package/dist/navigation-bar.d.ts +2 -1
- package/dist/navigation-bar.js +53 -52
- package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
- package/dist/package-version.js +1 -1
- package/dist/pin-field.css-mistica.js +4 -4
- package/dist/popover.d.ts +0 -4
- package/dist/popover.js +10 -11
- package/dist/progress-bar.css-mistica.js +3 -3
- package/dist/radio-button.css-mistica.js +8 -8
- package/dist/responsive-layout.css-mistica.js +5 -5
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +10 -10
- package/dist/select.d.ts +1 -0
- package/dist/select.js +65 -65
- package/dist/sheet.css-mistica.js +8 -8
- package/dist/skeletons.css-mistica.js +5 -5
- package/dist/skins/blau.js +5 -3
- package/dist/skins/constants.d.ts +1 -2
- package/dist/skins/constants.js +7 -10
- package/dist/skins/movistar.d.ts +1 -0
- package/dist/skins/movistar.js +6 -3
- package/dist/skins/o2-new.d.ts +50 -0
- package/dist/skins/o2-new.js +397 -0
- package/dist/skins/o2.d.ts +1 -0
- package/dist/skins/o2.js +6 -3
- package/dist/skins/skin-contract.css-mistica.js +138 -136
- package/dist/skins/skin-contract.css.d.ts +2 -0
- package/dist/skins/telefonica.d.ts +1 -0
- package/dist/skins/telefonica.js +6 -3
- package/dist/skins/tu.d.ts +1 -0
- package/dist/skins/tu.js +6 -3
- package/dist/skins/types/colors.d.ts +1 -0
- package/dist/skins/types/index.d.ts +1 -1
- package/dist/skins/utils.js +7 -7
- package/dist/skins/vivo-new.js +5 -3
- package/dist/skins/vivo.js +5 -3
- package/dist/slider.css-mistica.js +7 -7
- package/dist/slider.d.ts +0 -8
- package/dist/slider.js +95 -97
- package/dist/snackbar.css-mistica.js +12 -12
- package/dist/spinner.css-mistica.js +5 -5
- package/dist/sprinkles.css-mistica.js +792 -786
- package/dist/stacking-group.css-mistica.js +2 -2
- package/dist/stepper.css-mistica.js +9 -9
- package/dist/switch-component.css-mistica.js +26 -23
- package/dist/switch-component.css.d.ts +1 -0
- package/dist/switch-component.js +11 -10
- package/dist/tabs.css-mistica.js +9 -9
- package/dist/tag.css-mistica.js +1 -1
- package/dist/tag.js +34 -39
- package/dist/text-field-base.css-mistica.js +5 -5
- package/dist/text-field-components.css-mistica.js +11 -11
- package/dist/text-link.css-mistica.js +3 -3
- package/dist/text-link.d.ts +5 -0
- package/dist/tooltip.css-mistica.js +2 -2
- package/dist/tooltip.d.ts +0 -16
- package/dist/tooltip.js +78 -80
- package/dist/touchable.css-mistica.js +5 -5
- package/dist/touchable.d.ts +33 -19
- package/dist/touchable.js +54 -51
- package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
- package/dist/utils/browser.d.ts +1 -0
- package/dist/utils/browser.js +14 -0
- package/dist/video.css-mistica.js +1 -1
- package/dist-es/accordion.css-mistica.js +3 -3
- package/dist-es/avatar.css-mistica.js +2 -2
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/boxed.css-mistica.js +2 -2
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +6 -6
- package/dist-es/button.css-mistica.js +16 -16
- package/dist-es/button.js +89 -84
- package/dist-es/callout.css-mistica.js +2 -2
- package/dist-es/callout.js +37 -37
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +442 -434
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +7 -7
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/blocks.css-mistica.js +1 -1
- package/dist-es/counter.css-mistica.js +2 -2
- package/dist-es/credit-card-number-field.css-mistica.js +4 -4
- package/dist-es/cvv-field.js +55 -54
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +2 -2
- package/dist-es/empty-state-card.js +30 -29
- package/dist-es/empty-state.css-mistica.js +3 -3
- package/dist-es/empty-state.js +34 -34
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/feedback.js +102 -120
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/header.css-mistica.js +1 -1
- package/dist-es/header.js +69 -70
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/hero.js +56 -56
- package/dist-es/highlighted-card.css-mistica.js +5 -5
- package/dist-es/highlighted-card.js +26 -26
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +9 -12
- package/dist-es/icon-button.js +94 -97
- package/dist-es/icons/icon-error.js +6 -6
- package/dist-es/icons/icon-info.js +6 -6
- package/dist-es/icons/icon-success.js +9 -10
- package/dist-es/image.css-mistica.js +2 -2
- package/dist-es/image.js +38 -34
- package/dist-es/index.js +1762 -1763
- package/dist-es/inline.js +13 -12
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +184 -179
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/loading-screen.css-mistica.js +2 -2
- package/dist-es/logo.js +172 -157
- package/dist-es/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/maybe-dismissable.js +7 -8
- package/dist-es/menu.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +9 -9
- package/dist-es/navigation-bar.js +72 -71
- 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.js +27 -28
- package/dist-es/progress-bar.css-mistica.js +2 -2
- package/dist-es/radio-button.css-mistica.js +5 -5
- 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 +9 -9
- package/dist-es/select.js +97 -97
- package/dist-es/sheet.css-mistica.js +2 -2
- package/dist-es/skeletons.css-mistica.js +2 -2
- package/dist-es/skins/blau.js +5 -3
- package/dist-es/skins/constants.js +2 -2
- package/dist-es/skins/movistar.js +8 -5
- package/dist-es/skins/o2-new.js +380 -0
- package/dist-es/skins/o2.js +6 -3
- package/dist-es/skins/skin-contract.css-mistica.js +138 -136
- package/dist-es/skins/telefonica.js +6 -3
- package/dist-es/skins/tu.js +6 -3
- package/dist-es/skins/utils.js +11 -11
- package/dist-es/skins/vivo-new.js +5 -3
- package/dist-es/skins/vivo.js +5 -3
- package/dist-es/slider.css-mistica.js +2 -2
- package/dist-es/slider.js +117 -119
- package/dist-es/snackbar.css-mistica.js +5 -5
- package/dist-es/spinner.css-mistica.js +2 -2
- package/dist-es/sprinkles.css-mistica.js +792 -786
- package/dist-es/stacking-group.css-mistica.js +2 -2
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +19 -19
- package/dist-es/switch-component.js +24 -23
- package/dist-es/tabs.css-mistica.js +6 -6
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/tag.js +52 -57
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +3 -3
- package/dist-es/tooltip.css-mistica.js +2 -2
- package/dist-es/tooltip.js +83 -85
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/touchable.js +68 -65
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/utils/browser.js +5 -0
- package/dist-es/video.css-mistica.js +1 -1
- package/package.json +2 -2
- package/dist/skins/movistar-legacy.d.ts +0 -47
- package/dist/skins/movistar-legacy.js +0 -392
- package/dist/skins/o2-classic.d.ts +0 -56
- package/dist/skins/o2-classic.js +0 -324
- package/dist-es/skins/movistar-legacy.js +0 -375
- package/dist-es/skins/o2-classic.js +0 -307
package/dist-es/card.js
CHANGED
|
@@ -78,55 +78,54 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as e, jsxs as i, Fragment as
|
|
82
|
-
import * as
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import { Text2 as
|
|
87
|
-
import { Boxed as
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import { BaseTouchable as
|
|
91
|
-
import { vars as
|
|
92
|
-
import { cardContainer as
|
|
93
|
-
import { vars as
|
|
94
|
-
import { useTheme as
|
|
95
|
-
import { sprinkles as
|
|
96
|
-
import { InternalIconButton as
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import { combineRefs as
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import { ThemeVariant as
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import { getPrefixedDataAttributes as
|
|
107
|
-
import { isRunningAcceptanceTest as
|
|
108
|
-
import { applyCssVars as
|
|
81
|
+
import { jsx as e, jsxs as i, Fragment as ze } from "react/jsx-runtime";
|
|
82
|
+
import * as C from "react";
|
|
83
|
+
import De from "./tag.js";
|
|
84
|
+
import k from "./stack.js";
|
|
85
|
+
import M from "./box.js";
|
|
86
|
+
import { Text2 as S, Text6 as Oe, Text3 as Pe, Text as ce } from "./text.js";
|
|
87
|
+
import { Boxed as ae, InternalBoxed as me } from "./boxed.js";
|
|
88
|
+
import ie from "./button-group.js";
|
|
89
|
+
import ne from "./image.js";
|
|
90
|
+
import { BaseTouchable as V } from "./touchable.js";
|
|
91
|
+
import { vars as p } from "./skins/skin-contract.css-mistica.js";
|
|
92
|
+
import { cardContainer as He, touchableContainer as G, boxed as J, touchable as E, touchableMediaCardOverlay as Ve, mediaCard as te, mediaCardContent as Ge, mediaCardIcon as he, touchableNakedMediaOverlay as ue, circularMediaOverlay as pe, nakedCardContent as ve, touchableCardOverlay as Q, dataCard as Ee, vars as ye, dataCardTopActionsWithoutIcon as Xe, actions as fe, snapCard as je, displayCardContainer as ge, displayCardBackground as be, displayCardContent as Ce, displayCardGradient as Ne, touchableCardOverlayInverse as de, touchableCardOverlayMedia as Te } from "./card.css-mistica.js";
|
|
93
|
+
import { vars as H } from "./image.css-mistica.js";
|
|
94
|
+
import { useTheme as U } from "./hooks.js";
|
|
95
|
+
import { sprinkles as Fe } from "./sprinkles.css-mistica.js";
|
|
96
|
+
import { InternalIconButton as We, InternalToggleIconButton as $e } from "./icon-button.js";
|
|
97
|
+
import qe from "./generated/mistica-icons/icon-close-regular.js";
|
|
98
|
+
import Je from "./generated/mistica-icons/icon-pause-filled.js";
|
|
99
|
+
import Ke from "./generated/mistica-icons/icon-play-filled.js";
|
|
100
|
+
import { combineRefs as Le } from "./utils/common.js";
|
|
101
|
+
import Qe from "./spinner.js";
|
|
102
|
+
import Ue from "./video.js";
|
|
103
|
+
import { ThemeVariant as oe, useIsInverseVariant as ke } from "./theme-variant-context.js";
|
|
104
|
+
import se from "classnames";
|
|
105
|
+
import xe from "./inline.js";
|
|
106
|
+
import { getPrefixedDataAttributes as Ye } from "./utils/dom.js";
|
|
107
|
+
import { isRunningAcceptanceTest as Ze } from "./utils/platform.js";
|
|
108
|
+
import { applyCssVars as D } from "./utils/css.js";
|
|
109
109
|
const Ie = (r, a)=>{
|
|
110
|
-
const { texts:
|
|
110
|
+
const { texts: t } = U(), s = r ? [
|
|
111
111
|
...r
|
|
112
112
|
] : [];
|
|
113
113
|
return a && s.push({
|
|
114
|
-
label:
|
|
114
|
+
label: t.closeButtonLabel,
|
|
115
115
|
onPress: a,
|
|
116
|
-
Icon:
|
|
116
|
+
Icon: qe
|
|
117
117
|
}), s;
|
|
118
|
-
},
|
|
119
|
-
const a =
|
|
120
|
-
return /* @__PURE__ */ e(
|
|
118
|
+
}, Se = /*#__PURE__*/ C.createContext("default"), _e = (r)=>{
|
|
119
|
+
const a = C.useContext(Se);
|
|
120
|
+
return /* @__PURE__ */ e(oe, {
|
|
121
121
|
isInverse: a === "inverse",
|
|
122
|
-
children: r.Icon ? /* @__PURE__ */ e(
|
|
122
|
+
children: r.Icon ? /* @__PURE__ */ e(We, _object_spread_props(_object_spread({}, r), {
|
|
123
123
|
"aria-label": r.label,
|
|
124
124
|
small: !0,
|
|
125
125
|
isOverMedia: a === "media",
|
|
126
126
|
type: "neutral",
|
|
127
|
-
backgroundType: "transparent"
|
|
128
|
-
|
|
129
|
-
})) : /* @__PURE__ */ e(We, _object_spread_props(_object_spread({}, r), {
|
|
127
|
+
backgroundType: "transparent"
|
|
128
|
+
})) : /* @__PURE__ */ e($e, _object_spread_props(_object_spread({}, r), {
|
|
130
129
|
checkedProps: _object_spread_props(_object_spread({}, r.checkedProps), {
|
|
131
130
|
"aria-label": r.checkedProps.label,
|
|
132
131
|
type: a === "media" ? "neutral" : "brand",
|
|
@@ -138,14 +137,13 @@ const Ie = (r, a)=>{
|
|
|
138
137
|
backgroundType: "transparent"
|
|
139
138
|
}),
|
|
140
139
|
small: !0,
|
|
141
|
-
isOverMedia: a === "media"
|
|
142
|
-
hasInteractiveAreaBleed: !0
|
|
140
|
+
isOverMedia: a === "media"
|
|
143
141
|
}))
|
|
144
142
|
});
|
|
145
|
-
},
|
|
146
|
-
let { actions: r, padding: a = 16, onClose:
|
|
147
|
-
const
|
|
148
|
-
return
|
|
143
|
+
}, K = (param)=>{
|
|
144
|
+
let { actions: r, padding: a = 16, onClose: t, type: s = "default" } = param;
|
|
145
|
+
const l = Ie(r, t);
|
|
146
|
+
return l.length > 0 ? /* @__PURE__ */ e(Se.Provider, {
|
|
149
147
|
value: s,
|
|
150
148
|
children: /* @__PURE__ */ e("div", {
|
|
151
149
|
style: {
|
|
@@ -154,38 +152,38 @@ const Ie = (r, a)=>{
|
|
|
154
152
|
top: a,
|
|
155
153
|
zIndex: 3
|
|
156
154
|
},
|
|
157
|
-
children: /* @__PURE__ */ e(
|
|
155
|
+
children: /* @__PURE__ */ e(xe, {
|
|
158
156
|
space: 16,
|
|
159
|
-
children:
|
|
157
|
+
children: l.map((n, c)=>"Icon" in n || "checkedProps" in n ? /* @__PURE__ */ e(_e, _object_spread({}, n), c) : n)
|
|
160
158
|
})
|
|
161
159
|
})
|
|
162
|
-
}) : /* @__PURE__ */ e(
|
|
163
|
-
},
|
|
160
|
+
}) : /* @__PURE__ */ e(ze, {});
|
|
161
|
+
}, er = (r)=>r ? typeof r == "number" ? r : ({
|
|
164
162
|
"1:1": 1,
|
|
165
163
|
"16:9": 16 / 9,
|
|
166
164
|
"7:10": 7 / 10,
|
|
167
165
|
"9:10": 9 / 10,
|
|
168
166
|
auto: 0
|
|
169
|
-
})[r] : 0,
|
|
170
|
-
let { children: r, width: a, height:
|
|
171
|
-
const
|
|
172
|
-
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({},
|
|
173
|
-
ref:
|
|
174
|
-
"aria-label":
|
|
175
|
-
className:
|
|
167
|
+
})[r] : 0, X = /*#__PURE__*/ C.forwardRef((param, c)=>{
|
|
168
|
+
let { children: r, width: a, height: t, aspectRatio: s, dataAttributes: l, className: d, "aria-label": n } = param;
|
|
169
|
+
const m = a && t ? void 0 : er(s);
|
|
170
|
+
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, Ye(l)), {
|
|
171
|
+
ref: c,
|
|
172
|
+
"aria-label": n,
|
|
173
|
+
className: se(d, He),
|
|
176
174
|
style: _object_spread({
|
|
177
175
|
width: a || "100%",
|
|
178
|
-
height:
|
|
179
|
-
},
|
|
180
|
-
[
|
|
176
|
+
height: t || "100%"
|
|
177
|
+
}, m ? D({
|
|
178
|
+
[ye.aspectRatio]: String(m)
|
|
181
179
|
}) : {}),
|
|
182
180
|
children: r
|
|
183
181
|
}));
|
|
184
|
-
}), Be = (r)=>/* @__PURE__ */ e(
|
|
182
|
+
}), Be = (r)=>/* @__PURE__ */ e(ne, {
|
|
185
183
|
width: "100%",
|
|
186
184
|
height: "100%",
|
|
187
185
|
src: r || ""
|
|
188
|
-
}),
|
|
186
|
+
}), rr = {
|
|
189
187
|
loading: {
|
|
190
188
|
showSpinner: "loadingTimeout",
|
|
191
189
|
play: "playing",
|
|
@@ -211,81 +209,81 @@ const Ie = (r, a)=>{
|
|
|
211
209
|
error: {
|
|
212
210
|
reset: "loading"
|
|
213
211
|
}
|
|
214
|
-
},
|
|
212
|
+
}, ar = (r, a)=>rr[r][a] || r, ir = (param)=>{
|
|
215
213
|
let { color: r } = param;
|
|
216
|
-
return /* @__PURE__ */ e(
|
|
214
|
+
return /* @__PURE__ */ e(Qe, {
|
|
217
215
|
color: r,
|
|
218
216
|
size: 16,
|
|
219
217
|
delay: "0"
|
|
220
218
|
});
|
|
221
|
-
},
|
|
219
|
+
}, nr = (param)=>{
|
|
222
220
|
let { color: r } = param;
|
|
223
|
-
return /* @__PURE__ */ e(
|
|
221
|
+
return /* @__PURE__ */ e(Je, {
|
|
224
222
|
color: r,
|
|
225
223
|
size: 12
|
|
226
224
|
});
|
|
227
|
-
},
|
|
225
|
+
}, tr = (param)=>{
|
|
228
226
|
let { color: r } = param;
|
|
229
|
-
return /* @__PURE__ */ e(
|
|
227
|
+
return /* @__PURE__ */ e(Ke, {
|
|
230
228
|
color: r,
|
|
231
229
|
size: 12
|
|
232
230
|
});
|
|
233
|
-
},
|
|
234
|
-
const { texts: s } =
|
|
235
|
-
|
|
236
|
-
var
|
|
237
|
-
const
|
|
238
|
-
return (
|
|
239
|
-
clearTimeout(
|
|
231
|
+
}, Re = (r, a, t)=>{
|
|
232
|
+
const { texts: s } = U(), l = C.useRef(null), [d, n] = C.useReducer(ar, "loading");
|
|
233
|
+
C.useEffect(()=>{
|
|
234
|
+
var o;
|
|
235
|
+
const h = setTimeout(()=>n("showSpinner"), 2e3);
|
|
236
|
+
return (o = l.current) == null || o.load(), ()=>{
|
|
237
|
+
clearTimeout(h), n("reset");
|
|
240
238
|
};
|
|
241
239
|
}, [
|
|
242
240
|
r
|
|
243
241
|
]);
|
|
244
|
-
const
|
|
245
|
-
ref:
|
|
242
|
+
const c = C.useMemo(()=>r !== void 0 ? /* @__PURE__ */ e(Ue, {
|
|
243
|
+
ref: Le(l, t),
|
|
246
244
|
src: r,
|
|
247
245
|
width: "100%",
|
|
248
246
|
height: "100%",
|
|
249
247
|
poster: a,
|
|
250
|
-
onError: ()=>
|
|
251
|
-
onPause: ()=>
|
|
252
|
-
onPlay: ()=>
|
|
248
|
+
onError: ()=>n("fail"),
|
|
249
|
+
onPause: ()=>n("pause"),
|
|
250
|
+
onPlay: ()=>n("play")
|
|
253
251
|
}) : void 0, [
|
|
254
|
-
|
|
252
|
+
t,
|
|
255
253
|
r,
|
|
256
254
|
a
|
|
257
|
-
]),
|
|
258
|
-
const
|
|
259
|
-
|
|
255
|
+
]), m = ()=>{
|
|
256
|
+
const h = l.current;
|
|
257
|
+
h && (d === "loading" ? n("showSpinner") : d === "paused" ? h.play() : d === "playing" && h.pause());
|
|
260
258
|
};
|
|
261
|
-
if (
|
|
262
|
-
video:
|
|
259
|
+
if (d === "error") return {
|
|
260
|
+
video: c
|
|
263
261
|
};
|
|
264
|
-
const
|
|
262
|
+
const u = {
|
|
265
263
|
uncheckedProps: {
|
|
266
|
-
Icon:
|
|
267
|
-
label:
|
|
264
|
+
Icon: d === "loadingTimeout" && !Ze() ? ir : nr,
|
|
265
|
+
label: d === "loadingTimeout" ? "" : s.pauseIconButtonLabel
|
|
268
266
|
},
|
|
269
267
|
checkedProps: {
|
|
270
|
-
Icon:
|
|
268
|
+
Icon: tr,
|
|
271
269
|
label: s.playIconButtonLabel
|
|
272
270
|
},
|
|
273
|
-
onChange:
|
|
274
|
-
disabled:
|
|
275
|
-
checked:
|
|
271
|
+
onChange: m,
|
|
272
|
+
disabled: d === "loadingTimeout",
|
|
273
|
+
checked: d === "paused"
|
|
276
274
|
};
|
|
277
275
|
return {
|
|
278
|
-
video:
|
|
279
|
-
videoAction:
|
|
276
|
+
video: c,
|
|
277
|
+
videoAction: u
|
|
280
278
|
};
|
|
281
|
-
},
|
|
282
|
-
let { headline: r, pretitle: a, pretitleLinesMax:
|
|
283
|
-
const { textPresets: f } =
|
|
279
|
+
}, le = (param)=>{
|
|
280
|
+
let { headline: r, pretitle: a, pretitleLinesMax: t, title: s, titleAs: l = "h3", titleLinesMax: d, subtitle: n, subtitleLinesMax: c, description: m, descriptionLinesMax: u, extra: h, button: o, buttonLink: y } = param;
|
|
281
|
+
const { textPresets: f } = U(), b = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(De, {
|
|
284
282
|
type: "promo",
|
|
285
283
|
children: r
|
|
286
284
|
}) : r : null;
|
|
287
285
|
return /* @__PURE__ */ i("div", {
|
|
288
|
-
className:
|
|
286
|
+
className: Fe({
|
|
289
287
|
display: "flex",
|
|
290
288
|
flex: 1,
|
|
291
289
|
justifyContent: "space-between",
|
|
@@ -294,73 +292,73 @@ const Ie = (r, a)=>{
|
|
|
294
292
|
children: [
|
|
295
293
|
/* @__PURE__ */ i("div", {
|
|
296
294
|
children: [
|
|
297
|
-
/* @__PURE__ */ i(
|
|
295
|
+
/* @__PURE__ */ i(k, {
|
|
298
296
|
space: 8,
|
|
299
297
|
children: [
|
|
300
|
-
(r || a || s ||
|
|
301
|
-
children: /* @__PURE__ */ i(
|
|
298
|
+
(r || a || s || n) && /* @__PURE__ */ e("header", {
|
|
299
|
+
children: /* @__PURE__ */ i(k, {
|
|
302
300
|
space: 8,
|
|
303
301
|
children: [
|
|
304
|
-
|
|
305
|
-
/* @__PURE__ */ i(
|
|
302
|
+
b(),
|
|
303
|
+
/* @__PURE__ */ i(k, {
|
|
306
304
|
space: 4,
|
|
307
305
|
children: [
|
|
308
|
-
a && /* @__PURE__ */ e(
|
|
309
|
-
truncate:
|
|
306
|
+
a && /* @__PURE__ */ e(S, {
|
|
307
|
+
truncate: t,
|
|
310
308
|
as: "div",
|
|
311
309
|
regular: !0,
|
|
312
310
|
hyphens: "auto",
|
|
313
311
|
children: a
|
|
314
312
|
}),
|
|
315
|
-
/* @__PURE__ */ e(
|
|
313
|
+
/* @__PURE__ */ e(ce, {
|
|
316
314
|
mobileSize: 18,
|
|
317
315
|
mobileLineHeight: "24px",
|
|
318
316
|
desktopSize: 20,
|
|
319
317
|
desktopLineHeight: "28px",
|
|
320
|
-
truncate:
|
|
318
|
+
truncate: d,
|
|
321
319
|
weight: f.cardTitle.weight,
|
|
322
|
-
as:
|
|
320
|
+
as: l,
|
|
323
321
|
hyphens: "auto",
|
|
324
322
|
children: s
|
|
325
323
|
}),
|
|
326
|
-
/* @__PURE__ */ e(
|
|
327
|
-
truncate:
|
|
324
|
+
/* @__PURE__ */ e(S, {
|
|
325
|
+
truncate: c,
|
|
328
326
|
as: "div",
|
|
329
327
|
regular: !0,
|
|
330
328
|
hyphens: "auto",
|
|
331
|
-
children:
|
|
329
|
+
children: n
|
|
332
330
|
})
|
|
333
331
|
]
|
|
334
332
|
})
|
|
335
333
|
]
|
|
336
334
|
})
|
|
337
335
|
}),
|
|
338
|
-
|
|
339
|
-
truncate:
|
|
336
|
+
m && /* @__PURE__ */ e(S, {
|
|
337
|
+
truncate: u,
|
|
340
338
|
as: "p",
|
|
341
339
|
regular: !0,
|
|
342
|
-
color:
|
|
340
|
+
color: p.colors.textSecondary,
|
|
343
341
|
hyphens: "auto",
|
|
344
|
-
children:
|
|
342
|
+
children: m
|
|
345
343
|
})
|
|
346
344
|
]
|
|
347
345
|
}),
|
|
348
|
-
|
|
349
|
-
children:
|
|
346
|
+
h && /* @__PURE__ */ e("div", {
|
|
347
|
+
children: h
|
|
350
348
|
})
|
|
351
349
|
]
|
|
352
350
|
}),
|
|
353
|
-
(o ||
|
|
354
|
-
className:
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
351
|
+
(o || y) && /* @__PURE__ */ e("div", {
|
|
352
|
+
className: fe,
|
|
353
|
+
children: /* @__PURE__ */ e(ie, {
|
|
356
354
|
primaryButton: o,
|
|
357
|
-
link:
|
|
355
|
+
link: y
|
|
358
356
|
})
|
|
359
357
|
})
|
|
360
358
|
]
|
|
361
359
|
});
|
|
362
|
-
},
|
|
363
|
-
var { media: r, icon: a, headline:
|
|
360
|
+
}, Dr = /*#__PURE__*/ C.forwardRef((_param, A)=>{
|
|
361
|
+
var { media: r, icon: a, headline: t, pretitle: s, pretitleLinesMax: l, subtitle: d, subtitleLinesMax: n, title: c, titleAs: m = "h3", titleLinesMax: u, description: h, descriptionLinesMax: o, extra: y, actions: f, button: b, buttonLink: B, dataAttributes: R, "aria-label": x, onClose: T } = _param, g = _object_without_properties(_param, [
|
|
364
362
|
"media",
|
|
365
363
|
"icon",
|
|
366
364
|
"headline",
|
|
@@ -369,6 +367,7 @@ const Ie = (r, a)=>{
|
|
|
369
367
|
"subtitle",
|
|
370
368
|
"subtitleLinesMax",
|
|
371
369
|
"title",
|
|
370
|
+
"titleAs",
|
|
372
371
|
"titleLinesMax",
|
|
373
372
|
"description",
|
|
374
373
|
"descriptionLinesMax",
|
|
@@ -380,56 +379,57 @@ const Ie = (r, a)=>{
|
|
|
380
379
|
"aria-label",
|
|
381
380
|
"onClose"
|
|
382
381
|
]);
|
|
383
|
-
const
|
|
384
|
-
return /* @__PURE__ */ i(
|
|
382
|
+
const w = g.href || g.to || g.onPress;
|
|
383
|
+
return /* @__PURE__ */ i(X, {
|
|
385
384
|
dataAttributes: _object_spread({
|
|
386
385
|
"component-name": "MediaCard"
|
|
387
|
-
},
|
|
386
|
+
}, R),
|
|
388
387
|
ref: A,
|
|
389
|
-
"aria-label":
|
|
390
|
-
className:
|
|
388
|
+
"aria-label": x,
|
|
389
|
+
className: G,
|
|
391
390
|
children: [
|
|
392
|
-
/* @__PURE__ */ e(
|
|
393
|
-
className:
|
|
391
|
+
/* @__PURE__ */ e(ae, {
|
|
392
|
+
className: J,
|
|
394
393
|
width: "100%",
|
|
395
394
|
height: "100%",
|
|
396
|
-
children: /* @__PURE__ */ i(
|
|
395
|
+
children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
|
|
397
396
|
maybe: !0
|
|
398
|
-
},
|
|
399
|
-
className:
|
|
400
|
-
"aria-label":
|
|
397
|
+
}, g), {
|
|
398
|
+
className: E,
|
|
399
|
+
"aria-label": x,
|
|
401
400
|
children: [
|
|
402
|
-
|
|
403
|
-
className:
|
|
401
|
+
w && /* @__PURE__ */ e("div", {
|
|
402
|
+
className: Ve
|
|
404
403
|
}),
|
|
405
404
|
/* @__PURE__ */ i("div", {
|
|
406
|
-
className:
|
|
405
|
+
className: te,
|
|
407
406
|
children: [
|
|
408
407
|
/* @__PURE__ */ e("div", {
|
|
409
|
-
style:
|
|
410
|
-
[
|
|
408
|
+
style: D({
|
|
409
|
+
[H.mediaBorderRadius]: "0px"
|
|
411
410
|
}),
|
|
412
411
|
children: r
|
|
413
412
|
}),
|
|
414
413
|
/* @__PURE__ */ e("div", {
|
|
415
|
-
className:
|
|
416
|
-
children: /* @__PURE__ */ e(
|
|
417
|
-
headline:
|
|
414
|
+
className: Ge,
|
|
415
|
+
children: /* @__PURE__ */ e(le, {
|
|
416
|
+
headline: t,
|
|
418
417
|
pretitle: s,
|
|
419
|
-
pretitleLinesMax:
|
|
420
|
-
title:
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
418
|
+
pretitleLinesMax: l,
|
|
419
|
+
title: c,
|
|
420
|
+
titleAs: m,
|
|
421
|
+
titleLinesMax: u,
|
|
422
|
+
subtitle: d,
|
|
423
|
+
subtitleLinesMax: n,
|
|
424
|
+
description: h,
|
|
425
425
|
descriptionLinesMax: o,
|
|
426
|
-
extra:
|
|
427
|
-
button:
|
|
428
|
-
buttonLink:
|
|
426
|
+
extra: y,
|
|
427
|
+
button: b,
|
|
428
|
+
buttonLink: B
|
|
429
429
|
})
|
|
430
430
|
}),
|
|
431
|
-
a && /* @__PURE__ */ e(
|
|
432
|
-
className:
|
|
431
|
+
a && /* @__PURE__ */ e(M, {
|
|
432
|
+
className: he,
|
|
433
433
|
paddingLeft: {
|
|
434
434
|
mobile: 16,
|
|
435
435
|
desktop: 24
|
|
@@ -439,8 +439,8 @@ const Ie = (r, a)=>{
|
|
|
439
439
|
desktop: 24
|
|
440
440
|
},
|
|
441
441
|
children: /* @__PURE__ */ e("div", {
|
|
442
|
-
style:
|
|
443
|
-
[
|
|
442
|
+
style: D({
|
|
443
|
+
[H.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
444
444
|
}),
|
|
445
445
|
children: a
|
|
446
446
|
})
|
|
@@ -450,15 +450,15 @@ const Ie = (r, a)=>{
|
|
|
450
450
|
]
|
|
451
451
|
}))
|
|
452
452
|
}),
|
|
453
|
-
/* @__PURE__ */ e(
|
|
454
|
-
onClose:
|
|
453
|
+
/* @__PURE__ */ e(K, {
|
|
454
|
+
onClose: T,
|
|
455
455
|
actions: f,
|
|
456
456
|
type: "media"
|
|
457
457
|
})
|
|
458
458
|
]
|
|
459
459
|
});
|
|
460
|
-
}),
|
|
461
|
-
var { media: r, icon: a, headline:
|
|
460
|
+
}), Or = /*#__PURE__*/ C.forwardRef((_param, A)=>{
|
|
461
|
+
var { media: r, icon: a, headline: t, pretitle: s, pretitleLinesMax: l, subtitle: d, subtitleLinesMax: n, title: c, titleAs: m = "h3", titleLinesMax: u, description: h, descriptionLinesMax: o, extra: y, actions: f, button: b, buttonLink: B, dataAttributes: R, "aria-label": x, onClose: T } = _param, g = _object_without_properties(_param, [
|
|
462
462
|
"media",
|
|
463
463
|
"icon",
|
|
464
464
|
"headline",
|
|
@@ -467,6 +467,7 @@ const Ie = (r, a)=>{
|
|
|
467
467
|
"subtitle",
|
|
468
468
|
"subtitleLinesMax",
|
|
469
469
|
"title",
|
|
470
|
+
"titleAs",
|
|
470
471
|
"titleLinesMax",
|
|
471
472
|
"description",
|
|
472
473
|
"descriptionLinesMax",
|
|
@@ -478,55 +479,56 @@ const Ie = (r, a)=>{
|
|
|
478
479
|
"aria-label",
|
|
479
480
|
"onClose"
|
|
480
481
|
]);
|
|
481
|
-
const
|
|
482
|
-
return /* @__PURE__ */ i(
|
|
482
|
+
const w = g.href || g.to || g.onPress, O = r && r.type === ne && r.props.circular;
|
|
483
|
+
return /* @__PURE__ */ i(X, {
|
|
483
484
|
ref: A,
|
|
484
485
|
dataAttributes: _object_spread({
|
|
485
486
|
"component-name": "NakedCard"
|
|
486
|
-
},
|
|
487
|
-
"aria-label":
|
|
488
|
-
className:
|
|
487
|
+
}, R),
|
|
488
|
+
"aria-label": x,
|
|
489
|
+
className: w ? G : void 0,
|
|
489
490
|
children: [
|
|
490
|
-
/* @__PURE__ */ e(
|
|
491
|
+
/* @__PURE__ */ e(V, _object_spread_props(_object_spread({
|
|
491
492
|
maybe: !0
|
|
492
|
-
},
|
|
493
|
-
className:
|
|
494
|
-
"aria-label":
|
|
493
|
+
}, g), {
|
|
494
|
+
className: E,
|
|
495
|
+
"aria-label": x,
|
|
495
496
|
children: /* @__PURE__ */ i("div", {
|
|
496
|
-
className:
|
|
497
|
+
className: te,
|
|
497
498
|
children: [
|
|
498
499
|
/* @__PURE__ */ i("div", {
|
|
499
500
|
style: {
|
|
500
501
|
position: "relative"
|
|
501
502
|
},
|
|
502
503
|
children: [
|
|
503
|
-
|
|
504
|
-
className:
|
|
505
|
-
[
|
|
504
|
+
w && /* @__PURE__ */ e("div", {
|
|
505
|
+
className: se(ue, {
|
|
506
|
+
[pe]: O
|
|
506
507
|
})
|
|
507
508
|
}),
|
|
508
509
|
r
|
|
509
510
|
]
|
|
510
511
|
}),
|
|
511
512
|
/* @__PURE__ */ e("div", {
|
|
512
|
-
className:
|
|
513
|
-
children: /* @__PURE__ */ e(
|
|
514
|
-
headline:
|
|
513
|
+
className: ve,
|
|
514
|
+
children: /* @__PURE__ */ e(le, {
|
|
515
|
+
headline: t,
|
|
515
516
|
pretitle: s,
|
|
516
|
-
pretitleLinesMax:
|
|
517
|
-
title:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
517
|
+
pretitleLinesMax: l,
|
|
518
|
+
title: c,
|
|
519
|
+
titleAs: m,
|
|
520
|
+
titleLinesMax: u,
|
|
521
|
+
subtitle: d,
|
|
522
|
+
subtitleLinesMax: n,
|
|
523
|
+
description: h,
|
|
522
524
|
descriptionLinesMax: o,
|
|
523
|
-
extra:
|
|
524
|
-
button:
|
|
525
|
-
buttonLink:
|
|
525
|
+
extra: y,
|
|
526
|
+
button: b,
|
|
527
|
+
buttonLink: B
|
|
526
528
|
})
|
|
527
529
|
}),
|
|
528
|
-
a && /* @__PURE__ */ e(
|
|
529
|
-
className:
|
|
530
|
+
a && /* @__PURE__ */ e(M, {
|
|
531
|
+
className: he,
|
|
530
532
|
paddingLeft: {
|
|
531
533
|
mobile: 16,
|
|
532
534
|
desktop: 24
|
|
@@ -536,8 +538,8 @@ const Ie = (r, a)=>{
|
|
|
536
538
|
desktop: 24
|
|
537
539
|
},
|
|
538
540
|
children: /* @__PURE__ */ e("div", {
|
|
539
|
-
style:
|
|
540
|
-
[
|
|
541
|
+
style: D({
|
|
542
|
+
[H.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
541
543
|
}),
|
|
542
544
|
children: a
|
|
543
545
|
})
|
|
@@ -545,17 +547,18 @@ const Ie = (r, a)=>{
|
|
|
545
547
|
]
|
|
546
548
|
})
|
|
547
549
|
})),
|
|
548
|
-
/* @__PURE__ */ e(
|
|
549
|
-
onClose:
|
|
550
|
+
/* @__PURE__ */ e(K, {
|
|
551
|
+
onClose: T,
|
|
550
552
|
actions: f,
|
|
551
553
|
type: "media"
|
|
552
554
|
})
|
|
553
555
|
]
|
|
554
556
|
});
|
|
555
|
-
}),
|
|
556
|
-
var { media: r, title: a, titleLinesMax:
|
|
557
|
+
}), Pr = /*#__PURE__*/ C.forwardRef((_param, y)=>{
|
|
558
|
+
var { media: r, title: a, titleAs: t = "h3", titleLinesMax: s, subtitle: l, subtitleLinesMax: d, description: n, descriptionLinesMax: c, extra: m, dataAttributes: u, "aria-label": h } = _param, o = _object_without_properties(_param, [
|
|
557
559
|
"media",
|
|
558
560
|
"title",
|
|
561
|
+
"titleAs",
|
|
559
562
|
"titleLinesMax",
|
|
560
563
|
"subtitle",
|
|
561
564
|
"subtitleLinesMax",
|
|
@@ -565,21 +568,21 @@ const Ie = (r, a)=>{
|
|
|
565
568
|
"dataAttributes",
|
|
566
569
|
"aria-label"
|
|
567
570
|
]);
|
|
568
|
-
const f = o.href || o.to || o.onPress,
|
|
569
|
-
return /* @__PURE__ */ e(
|
|
570
|
-
ref:
|
|
571
|
+
const f = o.href || o.to || o.onPress, b = r && r.type === ne && r.props.circular;
|
|
572
|
+
return /* @__PURE__ */ e(X, {
|
|
573
|
+
ref: y,
|
|
571
574
|
dataAttributes: _object_spread({
|
|
572
575
|
"component-name": "SmallNakedCard"
|
|
573
|
-
},
|
|
574
|
-
"aria-label":
|
|
575
|
-
className: f ?
|
|
576
|
-
children: /* @__PURE__ */ e(
|
|
576
|
+
}, u),
|
|
577
|
+
"aria-label": h,
|
|
578
|
+
className: f ? G : void 0,
|
|
579
|
+
children: /* @__PURE__ */ e(V, _object_spread_props(_object_spread({
|
|
577
580
|
maybe: !0
|
|
578
581
|
}, o), {
|
|
579
|
-
className:
|
|
580
|
-
"aria-label":
|
|
582
|
+
className: E,
|
|
583
|
+
"aria-label": h,
|
|
581
584
|
children: /* @__PURE__ */ i("div", {
|
|
582
|
-
className:
|
|
585
|
+
className: te,
|
|
583
586
|
children: [
|
|
584
587
|
/* @__PURE__ */ i("div", {
|
|
585
588
|
style: {
|
|
@@ -587,49 +590,49 @@ const Ie = (r, a)=>{
|
|
|
587
590
|
},
|
|
588
591
|
children: [
|
|
589
592
|
f && /* @__PURE__ */ e("div", {
|
|
590
|
-
className:
|
|
591
|
-
[
|
|
593
|
+
className: se(ue, {
|
|
594
|
+
[pe]: b
|
|
592
595
|
})
|
|
593
596
|
}),
|
|
594
597
|
r
|
|
595
598
|
]
|
|
596
599
|
}),
|
|
597
600
|
/* @__PURE__ */ i("div", {
|
|
598
|
-
className:
|
|
601
|
+
className: ve,
|
|
599
602
|
children: [
|
|
600
603
|
/* @__PURE__ */ i("div", {
|
|
601
604
|
children: [
|
|
602
|
-
/* @__PURE__ */ i(
|
|
605
|
+
/* @__PURE__ */ i(k, {
|
|
603
606
|
space: 8,
|
|
604
607
|
children: [
|
|
605
|
-
a && /* @__PURE__ */ e(
|
|
606
|
-
truncate:
|
|
607
|
-
as:
|
|
608
|
+
a && /* @__PURE__ */ e(S, {
|
|
609
|
+
truncate: s,
|
|
610
|
+
as: t,
|
|
608
611
|
regular: !0,
|
|
609
612
|
hyphens: "auto",
|
|
610
613
|
children: a
|
|
611
614
|
}),
|
|
612
|
-
|
|
613
|
-
truncate:
|
|
615
|
+
l && /* @__PURE__ */ e(S, {
|
|
616
|
+
truncate: d,
|
|
614
617
|
regular: !0,
|
|
615
618
|
as: "p",
|
|
616
619
|
hyphens: "auto",
|
|
617
|
-
children:
|
|
620
|
+
children: l
|
|
618
621
|
})
|
|
619
622
|
]
|
|
620
623
|
}),
|
|
621
|
-
|
|
622
|
-
truncate:
|
|
624
|
+
n && /* @__PURE__ */ e(S, {
|
|
625
|
+
truncate: c,
|
|
623
626
|
regular: !0,
|
|
624
627
|
as: "p",
|
|
625
|
-
color:
|
|
628
|
+
color: p.colors.textSecondary,
|
|
626
629
|
hyphens: "auto",
|
|
627
|
-
children:
|
|
630
|
+
children: n
|
|
628
631
|
})
|
|
629
632
|
]
|
|
630
633
|
}),
|
|
631
|
-
|
|
632
|
-
children:
|
|
634
|
+
m && /* @__PURE__ */ e("div", {
|
|
635
|
+
children: m
|
|
633
636
|
})
|
|
634
637
|
]
|
|
635
638
|
})
|
|
@@ -637,13 +640,14 @@ const Ie = (r, a)=>{
|
|
|
637
640
|
})
|
|
638
641
|
}))
|
|
639
642
|
});
|
|
640
|
-
}),
|
|
641
|
-
var { icon: r, headline: a, pretitle:
|
|
643
|
+
}), Hr = /*#__PURE__*/ C.forwardRef((_param, A)=>{
|
|
644
|
+
var { icon: r, headline: a, pretitle: t, pretitleLinesMax: s, title: l, titleAs: d = "h3", titleLinesMax: n, subtitle: c, subtitleLinesMax: m, description: u, descriptionLinesMax: h, extra: o, actions: y, button: f, buttonLink: b, dataAttributes: B, "aria-label": R, onClose: x, aspectRatio: T } = _param, g = _object_without_properties(_param, [
|
|
642
645
|
"icon",
|
|
643
646
|
"headline",
|
|
644
647
|
"pretitle",
|
|
645
648
|
"pretitleLinesMax",
|
|
646
649
|
"title",
|
|
650
|
+
"titleAs",
|
|
647
651
|
"titleLinesMax",
|
|
648
652
|
"subtitle",
|
|
649
653
|
"subtitleLinesMax",
|
|
@@ -658,73 +662,74 @@ const Ie = (r, a)=>{
|
|
|
658
662
|
"onClose",
|
|
659
663
|
"aspectRatio"
|
|
660
664
|
]);
|
|
661
|
-
const
|
|
662
|
-
return /* @__PURE__ */ i(
|
|
665
|
+
const w = !!r || !!a, O = g.href || g.to || g.onPress, F = Ie(y, x);
|
|
666
|
+
return /* @__PURE__ */ i(X, {
|
|
663
667
|
dataAttributes: _object_spread({
|
|
664
668
|
"component-name": "DataCard"
|
|
665
|
-
},
|
|
669
|
+
}, B),
|
|
666
670
|
ref: A,
|
|
667
|
-
"aria-label":
|
|
668
|
-
className:
|
|
669
|
-
aspectRatio:
|
|
671
|
+
"aria-label": R,
|
|
672
|
+
className: G,
|
|
673
|
+
aspectRatio: T,
|
|
670
674
|
children: [
|
|
671
|
-
/* @__PURE__ */ e(
|
|
672
|
-
className:
|
|
675
|
+
/* @__PURE__ */ e(ae, {
|
|
676
|
+
className: J,
|
|
673
677
|
width: "100%",
|
|
674
678
|
minHeight: "100%",
|
|
675
|
-
children: /* @__PURE__ */ i(
|
|
679
|
+
children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
|
|
676
680
|
maybe: !0
|
|
677
|
-
},
|
|
678
|
-
className:
|
|
679
|
-
"aria-label":
|
|
681
|
+
}, g), {
|
|
682
|
+
className: E,
|
|
683
|
+
"aria-label": R,
|
|
680
684
|
children: [
|
|
681
|
-
|
|
682
|
-
className:
|
|
685
|
+
O && /* @__PURE__ */ e("div", {
|
|
686
|
+
className: Q
|
|
683
687
|
}),
|
|
684
688
|
/* @__PURE__ */ i("div", {
|
|
685
|
-
className:
|
|
689
|
+
className: Ee,
|
|
686
690
|
children: [
|
|
687
|
-
/* @__PURE__ */ i(
|
|
691
|
+
/* @__PURE__ */ i(xe, {
|
|
688
692
|
space: 0,
|
|
689
693
|
children: [
|
|
690
|
-
/* @__PURE__ */ i(
|
|
694
|
+
/* @__PURE__ */ i(k, {
|
|
691
695
|
space: 16,
|
|
692
696
|
children: [
|
|
693
697
|
r && /* @__PURE__ */ e("div", {
|
|
694
|
-
style:
|
|
695
|
-
[
|
|
698
|
+
style: D({
|
|
699
|
+
[H.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
696
700
|
}),
|
|
697
701
|
children: r
|
|
698
702
|
}),
|
|
699
|
-
/* @__PURE__ */ e(
|
|
703
|
+
/* @__PURE__ */ e(le, {
|
|
700
704
|
headline: a,
|
|
701
|
-
pretitle:
|
|
705
|
+
pretitle: t,
|
|
702
706
|
pretitleLinesMax: s,
|
|
703
|
-
title:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
707
|
+
title: l,
|
|
708
|
+
titleAs: d,
|
|
709
|
+
titleLinesMax: n,
|
|
710
|
+
subtitle: c,
|
|
711
|
+
subtitleLinesMax: m,
|
|
712
|
+
description: u,
|
|
713
|
+
descriptionLinesMax: h
|
|
709
714
|
})
|
|
710
715
|
]
|
|
711
716
|
}),
|
|
712
|
-
!
|
|
713
|
-
style:
|
|
714
|
-
[
|
|
717
|
+
!w && /* @__PURE__ */ e("div", {
|
|
718
|
+
style: D({
|
|
719
|
+
[ye.topActionsCount]: String(F.length)
|
|
715
720
|
}),
|
|
716
|
-
className:
|
|
721
|
+
className: Xe
|
|
717
722
|
})
|
|
718
723
|
]
|
|
719
724
|
}),
|
|
720
725
|
o && /* @__PURE__ */ e("div", {
|
|
721
726
|
children: o
|
|
722
727
|
}),
|
|
723
|
-
(f ||
|
|
724
|
-
className:
|
|
725
|
-
children: /* @__PURE__ */ e(
|
|
728
|
+
(f || b) && /* @__PURE__ */ e("div", {
|
|
729
|
+
className: fe,
|
|
730
|
+
children: /* @__PURE__ */ e(ie, {
|
|
726
731
|
primaryButton: f,
|
|
727
|
-
link:
|
|
732
|
+
link: b
|
|
728
733
|
})
|
|
729
734
|
})
|
|
730
735
|
]
|
|
@@ -732,17 +737,18 @@ const Ie = (r, a)=>{
|
|
|
732
737
|
]
|
|
733
738
|
}))
|
|
734
739
|
}),
|
|
735
|
-
/* @__PURE__ */ e(
|
|
736
|
-
onClose:
|
|
737
|
-
actions:
|
|
740
|
+
/* @__PURE__ */ e(K, {
|
|
741
|
+
onClose: x,
|
|
742
|
+
actions: y,
|
|
738
743
|
type: "default"
|
|
739
744
|
})
|
|
740
745
|
]
|
|
741
746
|
});
|
|
742
|
-
}),
|
|
743
|
-
var { icon: r, title: a, titleLinesMax:
|
|
747
|
+
}), Vr = /*#__PURE__*/ C.forwardRef((_param, y)=>{
|
|
748
|
+
var { icon: r, title: a, titleAs: t = "h3", titleLinesMax: s, subtitle: l, subtitleLinesMax: d, dataAttributes: n, "aria-label": c, extra: m, isInverse: u = !1, aspectRatio: h } = _param, o = _object_without_properties(_param, [
|
|
744
749
|
"icon",
|
|
745
750
|
"title",
|
|
751
|
+
"titleAs",
|
|
746
752
|
"titleLinesMax",
|
|
747
753
|
"subtitle",
|
|
748
754
|
"subtitleLinesMax",
|
|
@@ -752,66 +758,66 @@ const Ie = (r, a)=>{
|
|
|
752
758
|
"isInverse",
|
|
753
759
|
"aspectRatio"
|
|
754
760
|
]);
|
|
755
|
-
const f = o.href || o.to || o.onPress,
|
|
756
|
-
return /* @__PURE__ */ e(
|
|
761
|
+
const f = o.href || o.to || o.onPress, b = u ? de : Q;
|
|
762
|
+
return /* @__PURE__ */ e(X, {
|
|
757
763
|
dataAttributes: _object_spread({
|
|
758
764
|
"component-name": "SnapCard"
|
|
759
|
-
},
|
|
760
|
-
ref:
|
|
761
|
-
className:
|
|
762
|
-
aspectRatio:
|
|
763
|
-
children: /* @__PURE__ */ e(
|
|
764
|
-
className:
|
|
765
|
-
isInverse:
|
|
765
|
+
}, n),
|
|
766
|
+
ref: y,
|
|
767
|
+
className: G,
|
|
768
|
+
aspectRatio: h,
|
|
769
|
+
children: /* @__PURE__ */ e(ae, {
|
|
770
|
+
className: J,
|
|
771
|
+
isInverse: u,
|
|
766
772
|
width: "100%",
|
|
767
773
|
minHeight: "100%",
|
|
768
|
-
children: /* @__PURE__ */ i(
|
|
774
|
+
children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
|
|
769
775
|
maybe: !0
|
|
770
776
|
}, o), {
|
|
771
|
-
className:
|
|
772
|
-
"aria-label":
|
|
777
|
+
className: E,
|
|
778
|
+
"aria-label": c,
|
|
773
779
|
children: [
|
|
774
780
|
f && /* @__PURE__ */ e("div", {
|
|
775
|
-
className:
|
|
781
|
+
className: b
|
|
776
782
|
}),
|
|
777
783
|
/* @__PURE__ */ i("section", {
|
|
778
|
-
className:
|
|
784
|
+
className: je,
|
|
779
785
|
children: [
|
|
780
786
|
/* @__PURE__ */ i("div", {
|
|
781
787
|
children: [
|
|
782
788
|
r && /* @__PURE__ */ e("div", {
|
|
783
|
-
style:
|
|
784
|
-
[
|
|
789
|
+
style: D({
|
|
790
|
+
[H.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
785
791
|
}),
|
|
786
|
-
children: /* @__PURE__ */ e(
|
|
792
|
+
children: /* @__PURE__ */ e(M, {
|
|
787
793
|
paddingBottom: 16,
|
|
788
794
|
children: r
|
|
789
795
|
})
|
|
790
796
|
}),
|
|
791
|
-
/* @__PURE__ */ i(
|
|
797
|
+
/* @__PURE__ */ i(k, {
|
|
792
798
|
space: 4,
|
|
793
799
|
children: [
|
|
794
|
-
a && /* @__PURE__ */ e(
|
|
795
|
-
truncate:
|
|
796
|
-
as:
|
|
800
|
+
a && /* @__PURE__ */ e(S, {
|
|
801
|
+
truncate: s,
|
|
802
|
+
as: t,
|
|
797
803
|
regular: !0,
|
|
798
804
|
hyphens: "auto",
|
|
799
805
|
children: a
|
|
800
806
|
}),
|
|
801
|
-
|
|
802
|
-
truncate:
|
|
807
|
+
l && /* @__PURE__ */ e(S, {
|
|
808
|
+
truncate: d,
|
|
803
809
|
regular: !0,
|
|
804
|
-
color:
|
|
810
|
+
color: p.colors.textSecondary,
|
|
805
811
|
as: "p",
|
|
806
812
|
hyphens: "auto",
|
|
807
|
-
children:
|
|
813
|
+
children: l
|
|
808
814
|
})
|
|
809
815
|
]
|
|
810
816
|
})
|
|
811
817
|
]
|
|
812
818
|
}),
|
|
813
|
-
|
|
814
|
-
children:
|
|
819
|
+
m && /* @__PURE__ */ e("div", {
|
|
820
|
+
children: m
|
|
815
821
|
})
|
|
816
822
|
]
|
|
817
823
|
})
|
|
@@ -819,8 +825,8 @@ const Ie = (r, a)=>{
|
|
|
819
825
|
}))
|
|
820
826
|
})
|
|
821
827
|
});
|
|
822
|
-
}), Ae = /*#__PURE__*/
|
|
823
|
-
var { isInverse: r, backgroundImage: a, backgroundVideo:
|
|
828
|
+
}), Ae = /*#__PURE__*/ C.forwardRef((_param, Y)=>{
|
|
829
|
+
var { isInverse: r, backgroundImage: a, backgroundVideo: t, backgroundVideoRef: s, poster: l, icon: d, headline: n, pretitle: c, pretitleLinesMax: m, title: u, titleAs: h = "h3", titleLinesMax: o, description: y, descriptionLinesMax: f, extra: b, button: B, secondaryButton: R, onClose: x, actions: T, buttonLink: g, dataAttributes: A, width: w, height: O, aspectRatio: F, "aria-label": W } = _param, z = _object_without_properties(_param, [
|
|
824
830
|
"isInverse",
|
|
825
831
|
"backgroundImage",
|
|
826
832
|
"backgroundVideo",
|
|
@@ -831,6 +837,7 @@ const Ie = (r, a)=>{
|
|
|
831
837
|
"pretitle",
|
|
832
838
|
"pretitleLinesMax",
|
|
833
839
|
"title",
|
|
840
|
+
"titleAs",
|
|
834
841
|
"titleLinesMax",
|
|
835
842
|
"description",
|
|
836
843
|
"descriptionLinesMax",
|
|
@@ -846,125 +853,125 @@ const Ie = (r, a)=>{
|
|
|
846
853
|
"aspectRatio",
|
|
847
854
|
"aria-label"
|
|
848
855
|
]);
|
|
849
|
-
const
|
|
850
|
-
v && (
|
|
851
|
-
|
|
856
|
+
const I = a !== void 0, v = t !== void 0, Z = Be(a), { video: _, videoAction: $ } = Re(t, l, s);
|
|
857
|
+
v && (T = $ ? [
|
|
858
|
+
$
|
|
852
859
|
] : []);
|
|
853
|
-
const
|
|
854
|
-
return /* @__PURE__ */ i(
|
|
860
|
+
const j = ke(), N = I || v, P = N ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (T == null ? void 0 : T.length) || x, ee = z.href || z.to || z.onPress, re = I || v ? Te : r ? de : Q;
|
|
861
|
+
return /* @__PURE__ */ i(X, {
|
|
855
862
|
dataAttributes: A,
|
|
856
|
-
ref:
|
|
857
|
-
width:
|
|
858
|
-
height:
|
|
859
|
-
aspectRatio:
|
|
860
|
-
"aria-label":
|
|
861
|
-
className:
|
|
863
|
+
ref: Y,
|
|
864
|
+
width: w,
|
|
865
|
+
height: O,
|
|
866
|
+
aspectRatio: F,
|
|
867
|
+
"aria-label": W,
|
|
868
|
+
className: G,
|
|
862
869
|
children: [
|
|
863
|
-
/* @__PURE__ */ e(
|
|
864
|
-
borderRadius:
|
|
865
|
-
className:
|
|
870
|
+
/* @__PURE__ */ e(me, {
|
|
871
|
+
borderRadius: p.borderRadii.legacyDisplay,
|
|
872
|
+
className: J,
|
|
866
873
|
width: "100%",
|
|
867
874
|
minHeight: "100%",
|
|
868
875
|
isInverse: r,
|
|
869
|
-
background:
|
|
870
|
-
children: /* @__PURE__ */ i(
|
|
876
|
+
background: I || v ? j ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundContainer : void 0,
|
|
877
|
+
children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
|
|
871
878
|
maybe: !0
|
|
872
|
-
},
|
|
873
|
-
className:
|
|
874
|
-
"aria-label":
|
|
879
|
+
}, z), {
|
|
880
|
+
className: E,
|
|
881
|
+
"aria-label": W,
|
|
875
882
|
children: [
|
|
876
|
-
|
|
877
|
-
className:
|
|
883
|
+
ee && /* @__PURE__ */ e("div", {
|
|
884
|
+
className: re
|
|
878
885
|
}),
|
|
879
886
|
/* @__PURE__ */ i("div", {
|
|
880
|
-
className:
|
|
887
|
+
className: ge,
|
|
881
888
|
children: [
|
|
882
|
-
(
|
|
883
|
-
isInverse:
|
|
889
|
+
(I || v) && /* @__PURE__ */ e(oe, {
|
|
890
|
+
isInverse: j,
|
|
884
891
|
children: /* @__PURE__ */ e("div", {
|
|
885
|
-
className:
|
|
886
|
-
children: v ?
|
|
892
|
+
className: be,
|
|
893
|
+
children: v ? _ : Z
|
|
887
894
|
})
|
|
888
895
|
}),
|
|
889
896
|
/* @__PURE__ */ i("div", {
|
|
890
|
-
className:
|
|
897
|
+
className: Ce,
|
|
891
898
|
style: {
|
|
892
|
-
paddingTop:
|
|
899
|
+
paddingTop: N && !d && !q && !v ? 0 : 24
|
|
893
900
|
},
|
|
894
901
|
children: [
|
|
895
|
-
|
|
896
|
-
style:
|
|
897
|
-
[
|
|
902
|
+
d ? /* @__PURE__ */ e("div", {
|
|
903
|
+
style: D({
|
|
904
|
+
[H.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
898
905
|
}),
|
|
899
|
-
children: /* @__PURE__ */ e(
|
|
900
|
-
paddingBottom:
|
|
906
|
+
children: /* @__PURE__ */ e(M, {
|
|
907
|
+
paddingBottom: N ? 0 : 40,
|
|
901
908
|
paddingX: 24,
|
|
902
|
-
children:
|
|
909
|
+
children: d
|
|
903
910
|
})
|
|
904
|
-
}) : /* @__PURE__ */ e(
|
|
905
|
-
paddingBottom:
|
|
911
|
+
}) : /* @__PURE__ */ e(M, {
|
|
912
|
+
paddingBottom: q || v ? N ? 24 : 64 : 0
|
|
906
913
|
}),
|
|
907
|
-
/* @__PURE__ */ e(
|
|
914
|
+
/* @__PURE__ */ e(M, {
|
|
908
915
|
paddingX: 24,
|
|
909
|
-
paddingTop:
|
|
916
|
+
paddingTop: N ? 40 : 0,
|
|
910
917
|
paddingBottom: 24,
|
|
911
|
-
className:
|
|
912
|
-
children: /* @__PURE__ */ i(
|
|
918
|
+
className: N ? Ne : void 0,
|
|
919
|
+
children: /* @__PURE__ */ i(k, {
|
|
913
920
|
space: 24,
|
|
914
921
|
children: [
|
|
915
922
|
/* @__PURE__ */ i("div", {
|
|
916
923
|
children: [
|
|
917
|
-
/* @__PURE__ */ i(
|
|
924
|
+
/* @__PURE__ */ i(k, {
|
|
918
925
|
space: 8,
|
|
919
926
|
children: [
|
|
920
|
-
(
|
|
921
|
-
children: /* @__PURE__ */ i(
|
|
927
|
+
(n || c || u) && /* @__PURE__ */ e("header", {
|
|
928
|
+
children: /* @__PURE__ */ i(k, {
|
|
922
929
|
space: 16,
|
|
923
930
|
children: [
|
|
924
|
-
|
|
925
|
-
/* @__PURE__ */ i(
|
|
931
|
+
n,
|
|
932
|
+
/* @__PURE__ */ i(k, {
|
|
926
933
|
space: 4,
|
|
927
934
|
children: [
|
|
928
|
-
|
|
935
|
+
c && /* @__PURE__ */ e(S, {
|
|
929
936
|
forceMobileSizes: !0,
|
|
930
|
-
truncate:
|
|
937
|
+
truncate: m,
|
|
931
938
|
as: "div",
|
|
932
939
|
regular: !0,
|
|
933
|
-
textShadow:
|
|
934
|
-
children:
|
|
940
|
+
textShadow: P,
|
|
941
|
+
children: c
|
|
935
942
|
}),
|
|
936
|
-
/* @__PURE__ */ e(
|
|
943
|
+
/* @__PURE__ */ e(Oe, {
|
|
937
944
|
forceMobileSizes: !0,
|
|
938
945
|
truncate: o,
|
|
939
|
-
as:
|
|
940
|
-
textShadow:
|
|
946
|
+
as: h,
|
|
947
|
+
textShadow: P,
|
|
941
948
|
hyphens: "auto",
|
|
942
|
-
children:
|
|
949
|
+
children: u
|
|
943
950
|
})
|
|
944
951
|
]
|
|
945
952
|
})
|
|
946
953
|
]
|
|
947
954
|
})
|
|
948
955
|
}),
|
|
949
|
-
|
|
956
|
+
y && /* @__PURE__ */ e(Pe, {
|
|
950
957
|
forceMobileSizes: !0,
|
|
951
958
|
truncate: f,
|
|
952
959
|
as: "p",
|
|
953
960
|
regular: !0,
|
|
954
|
-
color:
|
|
955
|
-
textShadow:
|
|
961
|
+
color: N ? p.colors.textPrimary : p.colors.textSecondary,
|
|
962
|
+
textShadow: P,
|
|
956
963
|
hyphens: "auto",
|
|
957
|
-
children:
|
|
964
|
+
children: y
|
|
958
965
|
})
|
|
959
966
|
]
|
|
960
967
|
}),
|
|
961
|
-
|
|
968
|
+
b
|
|
962
969
|
]
|
|
963
970
|
}),
|
|
964
|
-
(
|
|
965
|
-
primaryButton:
|
|
966
|
-
secondaryButton:
|
|
967
|
-
link:
|
|
971
|
+
(B || R || g) && /* @__PURE__ */ e(ie, {
|
|
972
|
+
primaryButton: B,
|
|
973
|
+
secondaryButton: R,
|
|
974
|
+
link: g
|
|
968
975
|
})
|
|
969
976
|
]
|
|
970
977
|
})
|
|
@@ -976,36 +983,36 @@ const Ie = (r, a)=>{
|
|
|
976
983
|
]
|
|
977
984
|
}))
|
|
978
985
|
}),
|
|
979
|
-
/* @__PURE__ */ e(
|
|
980
|
-
onClose:
|
|
981
|
-
actions:
|
|
982
|
-
type:
|
|
986
|
+
/* @__PURE__ */ e(K, {
|
|
987
|
+
onClose: x,
|
|
988
|
+
actions: T,
|
|
989
|
+
type: I || v ? "media" : r ? "inverse" : "default"
|
|
983
990
|
})
|
|
984
991
|
]
|
|
985
992
|
});
|
|
986
|
-
}),
|
|
993
|
+
}), Gr = /*#__PURE__*/ C.forwardRef((_param, t)=>{
|
|
987
994
|
var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
|
|
988
995
|
"dataAttributes"
|
|
989
996
|
]);
|
|
990
997
|
return /* @__PURE__ */ e(Ae, _object_spread_props(_object_spread({}, a), {
|
|
991
|
-
ref:
|
|
998
|
+
ref: t,
|
|
992
999
|
isInverse: !0,
|
|
993
1000
|
dataAttributes: _object_spread({
|
|
994
1001
|
"component-name": "DisplayMediaCard"
|
|
995
1002
|
}, r)
|
|
996
1003
|
}));
|
|
997
|
-
}),
|
|
1004
|
+
}), Er = /*#__PURE__*/ C.forwardRef((_param, t)=>{
|
|
998
1005
|
var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
|
|
999
1006
|
"dataAttributes"
|
|
1000
1007
|
]);
|
|
1001
1008
|
return /* @__PURE__ */ e(Ae, _object_spread_props(_object_spread({}, a), {
|
|
1002
|
-
ref:
|
|
1009
|
+
ref: t,
|
|
1003
1010
|
dataAttributes: _object_spread({
|
|
1004
1011
|
"component-name": "DisplayDataCard"
|
|
1005
1012
|
}, r)
|
|
1006
1013
|
}));
|
|
1007
|
-
}),
|
|
1008
|
-
var { dataAttributes: r, backgroundImage: a, backgroundVideo:
|
|
1014
|
+
}), Xr = /*#__PURE__*/ C.forwardRef((_param, Y)=>{
|
|
1015
|
+
var { dataAttributes: r, backgroundImage: a, backgroundVideo: t, poster: s, backgroundVideoRef: l, width: d, height: n, aspectRatio: c = "7:10", ariaLabel: m, actions: u, onClose: h, icon: o, headline: y, pretitle: f, pretitleLinesMax: b, title: B, titleAs: R = "h3", titleLinesMax: x, subtitle: T, subtitleLinesMax: g, description: A, descriptionLinesMax: w, variant: O, isInverse: F, backgroundColor: W } = _param, z = _object_without_properties(_param, [
|
|
1009
1016
|
"dataAttributes",
|
|
1010
1017
|
"backgroundImage",
|
|
1011
1018
|
"backgroundVideo",
|
|
@@ -1022,6 +1029,7 @@ const Ie = (r, a)=>{
|
|
|
1022
1029
|
"pretitle",
|
|
1023
1030
|
"pretitleLinesMax",
|
|
1024
1031
|
"title",
|
|
1032
|
+
"titleAs",
|
|
1025
1033
|
"titleLinesMax",
|
|
1026
1034
|
"subtitle",
|
|
1027
1035
|
"subtitleLinesMax",
|
|
@@ -1031,138 +1039,138 @@ const Ie = (r, a)=>{
|
|
|
1031
1039
|
"isInverse",
|
|
1032
1040
|
"backgroundColor"
|
|
1033
1041
|
]);
|
|
1034
|
-
const
|
|
1035
|
-
v && (
|
|
1036
|
-
|
|
1042
|
+
const I = a !== void 0, v = t !== void 0, Z = Be(a), { video: _, videoAction: $ } = Re(t, s, l);
|
|
1043
|
+
v && (u = $ ? [
|
|
1044
|
+
$
|
|
1037
1045
|
] : []);
|
|
1038
|
-
const
|
|
1039
|
-
default:
|
|
1040
|
-
inverse:
|
|
1041
|
-
alternative:
|
|
1042
|
-
})[
|
|
1043
|
-
return /* @__PURE__ */ i(
|
|
1044
|
-
width:
|
|
1045
|
-
height:
|
|
1046
|
+
const j = ke(), N = I || v, P = N ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (u == null ? void 0 : u.length) || h, { textPresets: ee } = U(), re = z.href || z.to || z.onPress, L = O || (F ? "inverse" : "default"), we = ()=>W || ({
|
|
1047
|
+
default: p.colors.backgroundContainer,
|
|
1048
|
+
inverse: j ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundBrand,
|
|
1049
|
+
alternative: p.colors.backgroundAlternative
|
|
1050
|
+
})[L], Me = I || v ? Te : L === "inverse" ? de : Q;
|
|
1051
|
+
return /* @__PURE__ */ i(X, {
|
|
1052
|
+
width: d,
|
|
1053
|
+
height: n,
|
|
1046
1054
|
dataAttributes: _object_spread({
|
|
1047
1055
|
"component-name": "PosterCard"
|
|
1048
1056
|
}, r),
|
|
1049
|
-
ref:
|
|
1050
|
-
aspectRatio:
|
|
1051
|
-
"aria-label":
|
|
1052
|
-
className:
|
|
1057
|
+
ref: Y,
|
|
1058
|
+
aspectRatio: c,
|
|
1059
|
+
"aria-label": m,
|
|
1060
|
+
className: G,
|
|
1053
1061
|
children: [
|
|
1054
|
-
/* @__PURE__ */ e(
|
|
1055
|
-
borderRadius:
|
|
1056
|
-
className:
|
|
1062
|
+
/* @__PURE__ */ e(me, {
|
|
1063
|
+
borderRadius: p.borderRadii.legacyDisplay,
|
|
1064
|
+
className: J,
|
|
1057
1065
|
width: "100%",
|
|
1058
1066
|
minHeight: "100%",
|
|
1059
|
-
isInverse:
|
|
1060
|
-
background:
|
|
1061
|
-
children: /* @__PURE__ */ i(
|
|
1067
|
+
isInverse: I || v || L === "inverse",
|
|
1068
|
+
background: I || v ? j ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundContainer : we(),
|
|
1069
|
+
children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
|
|
1062
1070
|
maybe: !0
|
|
1063
|
-
},
|
|
1064
|
-
className:
|
|
1065
|
-
"aria-label":
|
|
1071
|
+
}, z), {
|
|
1072
|
+
className: E,
|
|
1073
|
+
"aria-label": m,
|
|
1066
1074
|
children: [
|
|
1067
|
-
|
|
1068
|
-
className:
|
|
1075
|
+
re && /* @__PURE__ */ e("div", {
|
|
1076
|
+
className: Me
|
|
1069
1077
|
}),
|
|
1070
1078
|
/* @__PURE__ */ i("div", {
|
|
1071
|
-
className:
|
|
1079
|
+
className: ge,
|
|
1072
1080
|
children: [
|
|
1073
|
-
(
|
|
1074
|
-
isInverse:
|
|
1081
|
+
(I || v) && /* @__PURE__ */ e(oe, {
|
|
1082
|
+
isInverse: j,
|
|
1075
1083
|
children: /* @__PURE__ */ e("div", {
|
|
1076
|
-
className:
|
|
1077
|
-
children: v ?
|
|
1084
|
+
className: be,
|
|
1085
|
+
children: v ? _ : Z
|
|
1078
1086
|
})
|
|
1079
1087
|
}),
|
|
1080
|
-
/* @__PURE__ */ i(
|
|
1081
|
-
className:
|
|
1082
|
-
paddingTop:
|
|
1083
|
-
mobile:
|
|
1088
|
+
/* @__PURE__ */ i(M, {
|
|
1089
|
+
className: Ce,
|
|
1090
|
+
paddingTop: N && !o && !q && !v ? 0 : {
|
|
1091
|
+
mobile: o ? 16 : 24,
|
|
1084
1092
|
desktop: 24
|
|
1085
1093
|
},
|
|
1086
1094
|
children: [
|
|
1087
|
-
|
|
1088
|
-
style:
|
|
1089
|
-
[
|
|
1095
|
+
o ? /* @__PURE__ */ e("div", {
|
|
1096
|
+
style: D({
|
|
1097
|
+
[H.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
1090
1098
|
}),
|
|
1091
|
-
children: /* @__PURE__ */ e(
|
|
1092
|
-
paddingBottom:
|
|
1099
|
+
children: /* @__PURE__ */ e(M, {
|
|
1100
|
+
paddingBottom: N ? 0 : 40,
|
|
1093
1101
|
paddingX: {
|
|
1094
1102
|
mobile: 16,
|
|
1095
1103
|
desktop: 24
|
|
1096
1104
|
},
|
|
1097
|
-
children:
|
|
1105
|
+
children: o
|
|
1098
1106
|
})
|
|
1099
|
-
}) : /* @__PURE__ */ e(
|
|
1100
|
-
paddingBottom:
|
|
1107
|
+
}) : /* @__PURE__ */ e(M, {
|
|
1108
|
+
paddingBottom: q || v ? N ? 24 : 64 : 0
|
|
1101
1109
|
}),
|
|
1102
|
-
/* @__PURE__ */ e(
|
|
1110
|
+
/* @__PURE__ */ e(M, {
|
|
1103
1111
|
paddingX: {
|
|
1104
1112
|
mobile: 16,
|
|
1105
1113
|
desktop: 24
|
|
1106
1114
|
},
|
|
1107
|
-
paddingTop:
|
|
1115
|
+
paddingTop: N ? 40 : 0,
|
|
1108
1116
|
paddingBottom: 24,
|
|
1109
|
-
className:
|
|
1110
|
-
children: /* @__PURE__ */ e(
|
|
1117
|
+
className: N ? Ne : void 0,
|
|
1118
|
+
children: /* @__PURE__ */ e(k, {
|
|
1111
1119
|
space: 24,
|
|
1112
1120
|
children: /* @__PURE__ */ e("div", {
|
|
1113
|
-
children: /* @__PURE__ */ i(
|
|
1121
|
+
children: /* @__PURE__ */ i(k, {
|
|
1114
1122
|
space: 8,
|
|
1115
1123
|
children: [
|
|
1116
|
-
(
|
|
1117
|
-
children: /* @__PURE__ */ i(
|
|
1124
|
+
(y || f || B || T) && /* @__PURE__ */ e("header", {
|
|
1125
|
+
children: /* @__PURE__ */ i(k, {
|
|
1118
1126
|
space: 16,
|
|
1119
1127
|
children: [
|
|
1120
|
-
|
|
1121
|
-
/* @__PURE__ */ i(
|
|
1128
|
+
y,
|
|
1129
|
+
/* @__PURE__ */ i(k, {
|
|
1122
1130
|
space: 4,
|
|
1123
1131
|
children: [
|
|
1124
|
-
|
|
1132
|
+
f && /* @__PURE__ */ e(S, {
|
|
1125
1133
|
forceMobileSizes: !0,
|
|
1126
|
-
truncate:
|
|
1134
|
+
truncate: b,
|
|
1127
1135
|
as: "div",
|
|
1128
1136
|
regular: !0,
|
|
1129
|
-
textShadow:
|
|
1137
|
+
textShadow: P,
|
|
1130
1138
|
hyphens: "auto",
|
|
1131
|
-
children:
|
|
1139
|
+
children: f
|
|
1132
1140
|
}),
|
|
1133
|
-
/* @__PURE__ */ e(
|
|
1141
|
+
/* @__PURE__ */ e(ce, {
|
|
1134
1142
|
desktopSize: 20,
|
|
1135
1143
|
mobileSize: 18,
|
|
1136
1144
|
mobileLineHeight: "24px",
|
|
1137
1145
|
desktopLineHeight: "28px",
|
|
1138
|
-
truncate:
|
|
1139
|
-
weight:
|
|
1140
|
-
as:
|
|
1146
|
+
truncate: x,
|
|
1147
|
+
weight: ee.cardTitle.weight,
|
|
1148
|
+
as: R,
|
|
1141
1149
|
hyphens: "auto",
|
|
1142
|
-
children:
|
|
1150
|
+
children: B
|
|
1143
1151
|
}),
|
|
1144
|
-
/* @__PURE__ */ e(
|
|
1152
|
+
/* @__PURE__ */ e(S, {
|
|
1145
1153
|
forceMobileSizes: !0,
|
|
1146
|
-
truncate:
|
|
1154
|
+
truncate: g,
|
|
1147
1155
|
as: "div",
|
|
1148
1156
|
regular: !0,
|
|
1149
|
-
textShadow:
|
|
1157
|
+
textShadow: P,
|
|
1150
1158
|
hyphens: "auto",
|
|
1151
|
-
children:
|
|
1159
|
+
children: T
|
|
1152
1160
|
})
|
|
1153
1161
|
]
|
|
1154
1162
|
})
|
|
1155
1163
|
]
|
|
1156
1164
|
})
|
|
1157
1165
|
}),
|
|
1158
|
-
A && /* @__PURE__ */ e(
|
|
1166
|
+
A && /* @__PURE__ */ e(S, {
|
|
1159
1167
|
forceMobileSizes: !0,
|
|
1160
|
-
truncate:
|
|
1168
|
+
truncate: w,
|
|
1161
1169
|
as: "p",
|
|
1162
1170
|
regular: !0,
|
|
1163
|
-
textShadow:
|
|
1171
|
+
textShadow: P,
|
|
1164
1172
|
hyphens: "auto",
|
|
1165
|
-
color:
|
|
1173
|
+
color: N ? p.colors.textPrimary : p.colors.textSecondary,
|
|
1166
1174
|
children: A
|
|
1167
1175
|
})
|
|
1168
1176
|
]
|
|
@@ -1177,12 +1185,12 @@ const Ie = (r, a)=>{
|
|
|
1177
1185
|
]
|
|
1178
1186
|
}))
|
|
1179
1187
|
}),
|
|
1180
|
-
/* @__PURE__ */ e(
|
|
1181
|
-
onClose:
|
|
1182
|
-
actions:
|
|
1183
|
-
type:
|
|
1188
|
+
/* @__PURE__ */ e(K, {
|
|
1189
|
+
onClose: h,
|
|
1190
|
+
actions: u,
|
|
1191
|
+
type: I || v ? "media" : L === "inverse" ? "inverse" : "default"
|
|
1184
1192
|
})
|
|
1185
1193
|
]
|
|
1186
1194
|
});
|
|
1187
1195
|
});
|
|
1188
|
-
export {
|
|
1196
|
+
export { _e as CardActionIconButton, ir as CardActionSpinner, K as CardActionsGroup, Hr as DataCard, Er as DisplayDataCard, Gr as DisplayMediaCard, Dr as MediaCard, Or as NakedCard, Xr as PosterCard, Pr as SmallNakedCard, Vr as SnapCard };
|