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