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