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