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