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