@telefonica/mistica 15.17.0 → 15.19.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 +61 -52
- package/dist/button.css.d.ts +33 -17
- package/dist/button.d.ts +9 -46
- package/dist/button.js +188 -237
- package/dist/callout.d.ts +1 -0
- package/dist/callout.js +10 -10
- package/dist/card.d.ts +6 -1
- package/dist/card.js +375 -365
- package/dist/chip.d.ts +1 -0
- package/dist/chip.js +15 -15
- package/dist/dialog.d.ts +1 -0
- package/dist/dialog.js +18 -17
- package/dist/feedback.js +58 -52
- package/dist/inline.css-mistica.js +11 -8
- package/dist/inline.css.d.ts +1 -0
- package/dist/inline.js +12 -12
- package/dist/logo-blau.d.ts +4 -0
- package/dist/logo-blau.js +74 -0
- package/dist/logo-common.d.ts +9 -0
- package/dist/logo-common.js +21 -0
- package/dist/logo-movistar.d.ts +4 -0
- package/dist/logo-movistar.js +99 -0
- package/dist/logo-o2-new.d.ts +4 -0
- package/dist/logo-o2-new.js +29 -0
- package/dist/logo-o2.d.ts +4 -0
- package/dist/logo-o2.js +29 -0
- package/dist/logo-telefonica.d.ts +4 -0
- package/dist/logo-telefonica.js +197 -0
- package/dist/logo-tu.d.ts +4 -0
- package/dist/logo-tu.js +28 -0
- package/dist/logo-vivo.d.ts +4 -0
- package/dist/logo-vivo.js +81 -0
- package/dist/logo.d.ts +10 -10
- package/dist/logo.js +174 -534
- package/dist/navigation-bar.d.ts +7 -0
- package/dist/navigation-bar.js +99 -91
- package/dist/package-version.js +1 -1
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +9 -7
- package/dist/snackbar-context.js +23 -22
- package/dist/snackbar.d.ts +1 -0
- package/dist/snackbar.js +51 -47
- package/dist/text.d.ts +1 -0
- package/dist/text.js +133 -109
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +110 -110
- package/dist-es/button.css-mistica.js +36 -18
- package/dist-es/button.js +219 -268
- package/dist-es/callout.js +38 -38
- package/dist-es/card.js +492 -482
- package/dist-es/chip.js +25 -25
- package/dist-es/dialog.js +22 -21
- package/dist-es/feedback.js +96 -89
- package/dist-es/inline.css-mistica.js +3 -3
- package/dist-es/inline.js +23 -23
- package/dist-es/logo-blau.js +65 -0
- package/dist-es/logo-common.js +12 -0
- package/dist-es/logo-movistar.js +90 -0
- package/dist-es/logo-o2-new.js +20 -0
- package/dist-es/logo-o2.js +20 -0
- package/dist-es/logo-telefonica.js +188 -0
- package/dist-es/logo-tu.js +19 -0
- package/dist-es/logo-vivo.js +72 -0
- package/dist-es/logo.js +132 -533
- package/dist-es/navigation-bar.js +163 -155
- package/dist-es/package-version.js +1 -1
- package/dist-es/popover.js +26 -24
- package/dist-es/snackbar-context.js +25 -24
- package/dist-es/snackbar.js +81 -77
- package/dist-es/style.css +1 -1
- package/dist-es/text.js +143 -119
- package/dist-es/tooltip.js +149 -149
- package/package.json +1 -1
package/dist-es/card.js
CHANGED
|
@@ -78,62 +78,62 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as e, jsxs as l, Fragment as
|
|
81
|
+
import { jsx as e, jsxs as l, Fragment as We } from "react/jsx-runtime";
|
|
82
82
|
import * as b from "react";
|
|
83
|
-
import
|
|
84
|
-
import
|
|
83
|
+
import _e from "./tag.js";
|
|
84
|
+
import ne from "./stack.js";
|
|
85
85
|
import P from "./box.js";
|
|
86
|
-
import { Text as
|
|
87
|
-
import { Boxed as
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import { BaseTouchable as
|
|
91
|
-
import { vars as
|
|
92
|
-
import { cardContainer as
|
|
93
|
-
import { vars as
|
|
94
|
-
import { useTheme as
|
|
95
|
-
import { sprinkles as
|
|
96
|
-
import { InternalIconButton as
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import { combineRefs as
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import { ThemeVariant as
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import { getPrefixedDataAttributes as
|
|
107
|
-
import { isRunningAcceptanceTest as
|
|
108
|
-
import { applyCssVars as
|
|
109
|
-
const
|
|
110
|
-
const [a, r] = b.useState(""), t = b.useCallback((
|
|
111
|
-
|
|
86
|
+
import { Text as ie, textProps as oe, Text2 as D, Text6 as $e, Text3 as qe } from "./text.js";
|
|
87
|
+
import { Boxed as he, InternalBoxed as be } from "./boxed.js";
|
|
88
|
+
import ue from "./button-group.js";
|
|
89
|
+
import pe from "./image.js";
|
|
90
|
+
import { BaseTouchable as _ } from "./touchable.js";
|
|
91
|
+
import { vars as p } from "./skins/skin-contract.css-mistica.js";
|
|
92
|
+
import { cardContainer as Je, touchableContainer as $, boxed as Q, touchable as q, touchableMediaCardOverlay as Ke, mediaCard as fe, mediaCardContent as Qe, mediaCardIcon as Ce, touchableNakedMediaOverlay as Te, circularMediaOverlay as Ne, nakedCardContent as Be, touchableCardOverlay as de, dataCard as Ue, vars as Re, dataCardTopActionsWithoutIcon as Ye, actions as ke, snapCard as Ze, displayCardContainer as Ie, displayCardBackground as we, displayCardContent as Se, displayCardGradient as Ae, flexColumn as Me, touchableCardOverlayInverse as ve, touchableCardOverlayMedia as De } from "./card.css-mistica.js";
|
|
93
|
+
import { vars as W } from "./image.css-mistica.js";
|
|
94
|
+
import { useTheme as K } from "./hooks.js";
|
|
95
|
+
import { sprinkles as ea } from "./sprinkles.css-mistica.js";
|
|
96
|
+
import { InternalIconButton as aa, InternalToggleIconButton as ra } from "./icon-button.js";
|
|
97
|
+
import ta from "./generated/mistica-icons/icon-close-regular.js";
|
|
98
|
+
import na from "./generated/mistica-icons/icon-pause-filled.js";
|
|
99
|
+
import ia from "./generated/mistica-icons/icon-play-filled.js";
|
|
100
|
+
import { combineRefs as oa } from "./utils/common.js";
|
|
101
|
+
import da from "./spinner.js";
|
|
102
|
+
import sa from "./video.js";
|
|
103
|
+
import { ThemeVariant as ye, useIsInverseVariant as Oe } from "./theme-variant-context.js";
|
|
104
|
+
import ge from "classnames";
|
|
105
|
+
import ze from "./inline.js";
|
|
106
|
+
import { getPrefixedDataAttributes as la } from "./utils/dom.js";
|
|
107
|
+
import { isRunningAcceptanceTest as ca } from "./utils/platform.js";
|
|
108
|
+
import { applyCssVars as H } from "./utils/css.js";
|
|
109
|
+
const A = ()=>{
|
|
110
|
+
const [a, r] = b.useState(""), t = b.useCallback((i)=>{
|
|
111
|
+
i && r((process.env.NODE_ENV === "test" ? i.textContent : i.innerText) || "");
|
|
112
112
|
}, []);
|
|
113
113
|
return {
|
|
114
114
|
text: a,
|
|
115
115
|
ref: t
|
|
116
116
|
};
|
|
117
|
-
},
|
|
118
|
-
const { texts:
|
|
117
|
+
}, je = (a, r, t)=>{
|
|
118
|
+
const { texts: i } = K(), n = a ? [
|
|
119
119
|
...a
|
|
120
120
|
] : [];
|
|
121
121
|
return r && n.push({
|
|
122
|
-
label: t.closeButtonLabel,
|
|
122
|
+
label: t !== null && t !== void 0 ? t : i.closeButtonLabel,
|
|
123
123
|
onPress: r,
|
|
124
|
-
Icon:
|
|
124
|
+
Icon: ta
|
|
125
125
|
}), n;
|
|
126
|
-
},
|
|
127
|
-
const r = b.useContext(
|
|
128
|
-
return /* @__PURE__ */ e(
|
|
126
|
+
}, Pe = /*#__PURE__*/ b.createContext("default"), ma = (a)=>{
|
|
127
|
+
const r = b.useContext(Pe);
|
|
128
|
+
return /* @__PURE__ */ e(ye, {
|
|
129
129
|
isInverse: r === "inverse",
|
|
130
|
-
children: a.Icon ? /* @__PURE__ */ e(
|
|
130
|
+
children: a.Icon ? /* @__PURE__ */ e(aa, _object_spread_props(_object_spread({}, a), {
|
|
131
131
|
"aria-label": a.label,
|
|
132
132
|
small: !0,
|
|
133
133
|
isOverMedia: r === "media",
|
|
134
134
|
type: "neutral",
|
|
135
135
|
backgroundType: "transparent"
|
|
136
|
-
})) : /* @__PURE__ */ e(
|
|
136
|
+
})) : /* @__PURE__ */ e(ra, _object_spread_props(_object_spread({}, a), {
|
|
137
137
|
checkedProps: _object_spread_props(_object_spread({}, a.checkedProps), {
|
|
138
138
|
"aria-label": a.checkedProps.label,
|
|
139
139
|
type: r === "media" ? "neutral" : "brand",
|
|
@@ -148,11 +148,11 @@ const S = ()=>{
|
|
|
148
148
|
isOverMedia: r === "media"
|
|
149
149
|
}))
|
|
150
150
|
});
|
|
151
|
-
},
|
|
152
|
-
let { actions: a, padding: r = 16, onClose: t, type:
|
|
153
|
-
const
|
|
154
|
-
return
|
|
155
|
-
value:
|
|
151
|
+
}, U = (param)=>{
|
|
152
|
+
let { actions: a, padding: r = 16, onClose: t, type: i = "default", closeButtonLabel: n } = param;
|
|
153
|
+
const o = je(a, t, n);
|
|
154
|
+
return o.length > 0 ? /* @__PURE__ */ e(Pe.Provider, {
|
|
155
|
+
value: i,
|
|
156
156
|
children: /* @__PURE__ */ e("div", {
|
|
157
157
|
style: {
|
|
158
158
|
position: "absolute",
|
|
@@ -160,38 +160,38 @@ const S = ()=>{
|
|
|
160
160
|
top: r,
|
|
161
161
|
zIndex: 3
|
|
162
162
|
},
|
|
163
|
-
children: /* @__PURE__ */ e(
|
|
163
|
+
children: /* @__PURE__ */ e(ze, {
|
|
164
164
|
space: 16,
|
|
165
|
-
children:
|
|
165
|
+
children: o.map((d, f)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ e(ma, _object_spread({}, d), f) : d)
|
|
166
166
|
})
|
|
167
167
|
})
|
|
168
|
-
}) : /* @__PURE__ */ e(
|
|
169
|
-
},
|
|
168
|
+
}) : /* @__PURE__ */ e(We, {});
|
|
169
|
+
}, ha = (a)=>a ? typeof a == "number" ? a : ({
|
|
170
170
|
"1:1": 1,
|
|
171
171
|
"16:9": 16 / 9,
|
|
172
172
|
"7:10": 7 / 10,
|
|
173
173
|
"9:10": 9 / 10,
|
|
174
174
|
auto: 0
|
|
175
|
-
})[a] : 0,
|
|
176
|
-
let { children: a, width: r, height: t, aspectRatio:
|
|
177
|
-
const
|
|
178
|
-
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({},
|
|
179
|
-
ref:
|
|
180
|
-
"aria-label":
|
|
181
|
-
className:
|
|
175
|
+
})[a] : 0, J = /*#__PURE__*/ b.forwardRef((param, d)=>{
|
|
176
|
+
let { children: a, width: r, height: t, aspectRatio: i, dataAttributes: n, className: o, "aria-label": s } = param;
|
|
177
|
+
const f = r && t ? void 0 : ha(i);
|
|
178
|
+
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, la(n)), {
|
|
179
|
+
ref: d,
|
|
180
|
+
"aria-label": s,
|
|
181
|
+
className: ge(o, Je),
|
|
182
182
|
style: _object_spread({
|
|
183
183
|
width: r || "100%",
|
|
184
184
|
height: t || "100%"
|
|
185
|
-
},
|
|
186
|
-
[
|
|
185
|
+
}, f ? H({
|
|
186
|
+
[Re.aspectRatio]: String(f)
|
|
187
187
|
}) : {}),
|
|
188
188
|
children: a
|
|
189
189
|
}));
|
|
190
|
-
}),
|
|
190
|
+
}), Ve = (a)=>/* @__PURE__ */ e(pe, {
|
|
191
191
|
width: "100%",
|
|
192
192
|
height: "100%",
|
|
193
193
|
src: a || ""
|
|
194
|
-
}),
|
|
194
|
+
}), ua = {
|
|
195
195
|
loading: {
|
|
196
196
|
showSpinner: "loadingTimeout",
|
|
197
197
|
play: "playing",
|
|
@@ -217,78 +217,78 @@ const S = ()=>{
|
|
|
217
217
|
error: {
|
|
218
218
|
reset: "loading"
|
|
219
219
|
}
|
|
220
|
-
},
|
|
220
|
+
}, pa = (a, r)=>ua[a][r] || a, fa = (param)=>{
|
|
221
221
|
let { color: a } = param;
|
|
222
|
-
return /* @__PURE__ */ e(
|
|
222
|
+
return /* @__PURE__ */ e(da, {
|
|
223
223
|
color: a,
|
|
224
224
|
size: 16,
|
|
225
225
|
delay: "0"
|
|
226
226
|
});
|
|
227
|
-
},
|
|
227
|
+
}, va = (param)=>{
|
|
228
228
|
let { color: a } = param;
|
|
229
|
-
return /* @__PURE__ */ e(
|
|
229
|
+
return /* @__PURE__ */ e(na, {
|
|
230
230
|
color: a,
|
|
231
231
|
size: 12
|
|
232
232
|
});
|
|
233
|
-
},
|
|
233
|
+
}, ya = (param)=>{
|
|
234
234
|
let { color: a } = param;
|
|
235
|
-
return /* @__PURE__ */ e(
|
|
235
|
+
return /* @__PURE__ */ e(ia, {
|
|
236
236
|
color: a,
|
|
237
237
|
size: 12
|
|
238
238
|
});
|
|
239
|
-
},
|
|
240
|
-
const { texts:
|
|
239
|
+
}, Ee = (a, r, t)=>{
|
|
240
|
+
const { texts: i } = K(), n = b.useRef(null), [o, s] = b.useReducer(pa, "loading");
|
|
241
241
|
b.useEffect(()=>{
|
|
242
|
-
var
|
|
243
|
-
const c = setTimeout(()=>
|
|
244
|
-
return (
|
|
245
|
-
clearTimeout(c),
|
|
242
|
+
var u;
|
|
243
|
+
const c = setTimeout(()=>s("showSpinner"), 2e3);
|
|
244
|
+
return (u = n.current) == null || u.load(), ()=>{
|
|
245
|
+
clearTimeout(c), s("reset");
|
|
246
246
|
};
|
|
247
247
|
}, [
|
|
248
248
|
a
|
|
249
249
|
]);
|
|
250
|
-
const
|
|
251
|
-
ref:
|
|
250
|
+
const d = b.useMemo(()=>a !== void 0 ? /* @__PURE__ */ e(sa, {
|
|
251
|
+
ref: oa(n, t),
|
|
252
252
|
src: a,
|
|
253
253
|
width: "100%",
|
|
254
254
|
height: "100%",
|
|
255
255
|
poster: r,
|
|
256
|
-
onError: ()=>
|
|
257
|
-
onPause: ()=>
|
|
258
|
-
onPlay: ()=>
|
|
256
|
+
onError: ()=>s("fail"),
|
|
257
|
+
onPause: ()=>s("pause"),
|
|
258
|
+
onPlay: ()=>s("play")
|
|
259
259
|
}) : void 0, [
|
|
260
260
|
t,
|
|
261
261
|
a,
|
|
262
262
|
r
|
|
263
|
-
]),
|
|
264
|
-
const c =
|
|
265
|
-
c && (
|
|
263
|
+
]), f = ()=>{
|
|
264
|
+
const c = n.current;
|
|
265
|
+
c && (o === "loading" ? s("showSpinner") : o === "paused" ? c.play() : o === "playing" && c.pause());
|
|
266
266
|
};
|
|
267
|
-
if (
|
|
268
|
-
video:
|
|
267
|
+
if (o === "error") return {
|
|
268
|
+
video: d
|
|
269
269
|
};
|
|
270
|
-
const
|
|
270
|
+
const h = d ? {
|
|
271
271
|
uncheckedProps: {
|
|
272
|
-
Icon:
|
|
273
|
-
label:
|
|
272
|
+
Icon: o === "loadingTimeout" && !ca() ? fa : va,
|
|
273
|
+
label: o === "loadingTimeout" ? "" : i.pauseIconButtonLabel
|
|
274
274
|
},
|
|
275
275
|
checkedProps: {
|
|
276
|
-
Icon:
|
|
277
|
-
label:
|
|
276
|
+
Icon: ya,
|
|
277
|
+
label: i.playIconButtonLabel
|
|
278
278
|
},
|
|
279
|
-
onChange:
|
|
280
|
-
disabled:
|
|
281
|
-
checked:
|
|
279
|
+
onChange: f,
|
|
280
|
+
disabled: o === "loadingTimeout",
|
|
281
|
+
checked: o === "paused"
|
|
282
282
|
} : void 0;
|
|
283
283
|
return {
|
|
284
|
-
video:
|
|
285
|
-
videoAction:
|
|
284
|
+
video: d,
|
|
285
|
+
videoAction: h
|
|
286
286
|
};
|
|
287
|
-
},
|
|
288
|
-
let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax:
|
|
289
|
-
const { textPresets:
|
|
287
|
+
}, xe = (param)=>{
|
|
288
|
+
let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax: i, title: n, titleAs: o = "h3", titleLinesMax: s, subtitle: d, subtitleLinesMax: f, description: h, descriptionLinesMax: c, extra: u, extraRef: g, button: m, buttonLink: C } = param;
|
|
289
|
+
const { textPresets: x } = K();
|
|
290
290
|
return /* @__PURE__ */ l("div", {
|
|
291
|
-
className:
|
|
291
|
+
className: ea({
|
|
292
292
|
display: "flex",
|
|
293
293
|
flex: 1,
|
|
294
294
|
justifyContent: "space-between",
|
|
@@ -296,18 +296,18 @@ const S = ()=>{
|
|
|
296
296
|
}),
|
|
297
297
|
children: [
|
|
298
298
|
/* @__PURE__ */ l("div", {
|
|
299
|
-
className:
|
|
299
|
+
className: Me,
|
|
300
300
|
children: [
|
|
301
|
-
|
|
301
|
+
n && /* @__PURE__ */ e("div", {
|
|
302
302
|
style: {
|
|
303
|
-
paddingBottom:
|
|
303
|
+
paddingBottom: d || h ? 4 : 0
|
|
304
304
|
},
|
|
305
|
-
children: /* @__PURE__ */ e(
|
|
306
|
-
truncate:
|
|
307
|
-
weight:
|
|
308
|
-
as:
|
|
305
|
+
children: /* @__PURE__ */ e(ie, _object_spread_props(_object_spread({}, oe.text4), {
|
|
306
|
+
truncate: s,
|
|
307
|
+
weight: x.cardTitle.weight,
|
|
308
|
+
as: o,
|
|
309
309
|
hyphens: "auto",
|
|
310
|
-
children:
|
|
310
|
+
children: n
|
|
311
311
|
}))
|
|
312
312
|
}),
|
|
313
313
|
a && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
@@ -317,7 +317,7 @@ const S = ()=>{
|
|
|
317
317
|
order: -2,
|
|
318
318
|
paddingBottom: 8
|
|
319
319
|
},
|
|
320
|
-
children: typeof a == "string" ? /* @__PURE__ */ e(
|
|
320
|
+
children: typeof a == "string" ? /* @__PURE__ */ e(_e, {
|
|
321
321
|
type: "promo",
|
|
322
322
|
children: a
|
|
323
323
|
}) : a
|
|
@@ -328,57 +328,57 @@ const S = ()=>{
|
|
|
328
328
|
paddingBottom: 4
|
|
329
329
|
},
|
|
330
330
|
children: /* @__PURE__ */ e(D, {
|
|
331
|
-
truncate:
|
|
331
|
+
truncate: i,
|
|
332
332
|
as: "div",
|
|
333
333
|
regular: !0,
|
|
334
334
|
hyphens: "auto",
|
|
335
335
|
children: t
|
|
336
336
|
})
|
|
337
337
|
}),
|
|
338
|
-
|
|
338
|
+
d && /* @__PURE__ */ e("div", {
|
|
339
339
|
style: {
|
|
340
|
-
paddingBottom:
|
|
340
|
+
paddingBottom: h ? 4 : 0
|
|
341
341
|
},
|
|
342
342
|
children: /* @__PURE__ */ e(D, {
|
|
343
|
-
truncate:
|
|
343
|
+
truncate: f,
|
|
344
344
|
as: "div",
|
|
345
345
|
regular: !0,
|
|
346
346
|
hyphens: "auto",
|
|
347
|
-
children:
|
|
347
|
+
children: d
|
|
348
348
|
})
|
|
349
349
|
}),
|
|
350
|
-
|
|
350
|
+
h && // this is tricky, when headline exists, the 8px padding is added by it.
|
|
351
351
|
// Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
|
|
352
352
|
/* @__PURE__ */ e("div", {
|
|
353
353
|
style: {
|
|
354
|
-
paddingTop: t ||
|
|
354
|
+
paddingTop: t || n || d ? 4 : 0
|
|
355
355
|
},
|
|
356
356
|
children: /* @__PURE__ */ e(D, {
|
|
357
357
|
truncate: c,
|
|
358
358
|
as: "p",
|
|
359
359
|
regular: !0,
|
|
360
|
-
color:
|
|
360
|
+
color: p.colors.textSecondary,
|
|
361
361
|
hyphens: "auto",
|
|
362
|
-
children:
|
|
362
|
+
children: h
|
|
363
363
|
})
|
|
364
364
|
}),
|
|
365
|
-
|
|
366
|
-
ref:
|
|
367
|
-
children:
|
|
365
|
+
u && /* @__PURE__ */ e("div", {
|
|
366
|
+
ref: g,
|
|
367
|
+
children: u
|
|
368
368
|
})
|
|
369
369
|
]
|
|
370
370
|
}),
|
|
371
|
-
(
|
|
372
|
-
className:
|
|
373
|
-
children: /* @__PURE__ */ e(
|
|
374
|
-
primaryButton:
|
|
375
|
-
link:
|
|
371
|
+
(m || C) && /* @__PURE__ */ e("div", {
|
|
372
|
+
className: ke,
|
|
373
|
+
children: /* @__PURE__ */ e(ue, {
|
|
374
|
+
primaryButton: m,
|
|
375
|
+
link: C
|
|
376
376
|
})
|
|
377
377
|
})
|
|
378
378
|
]
|
|
379
379
|
});
|
|
380
|
-
},
|
|
381
|
-
var { media: a, icon: r, headline: t, pretitle:
|
|
380
|
+
}, _a = /*#__PURE__*/ b.forwardRef((_param, V)=>{
|
|
381
|
+
var { media: a, icon: r, headline: t, pretitle: i, pretitleLinesMax: n, subtitle: o, subtitleLinesMax: s, title: d, titleAs: f = "h3", titleLinesMax: h, description: c, descriptionLinesMax: u, extra: g, actions: m, button: C, buttonLink: x, dataAttributes: T, "aria-label": y, onClose: k, closeButtonLabel: B } = _param, v = _object_without_properties(_param, [
|
|
382
382
|
"media",
|
|
383
383
|
"icon",
|
|
384
384
|
"headline",
|
|
@@ -397,68 +397,69 @@ const S = ()=>{
|
|
|
397
397
|
"buttonLink",
|
|
398
398
|
"dataAttributes",
|
|
399
399
|
"aria-label",
|
|
400
|
-
"onClose"
|
|
400
|
+
"onClose",
|
|
401
|
+
"closeButtonLabel"
|
|
401
402
|
]);
|
|
402
|
-
const
|
|
403
|
-
s,
|
|
404
|
-
M,
|
|
405
|
-
n,
|
|
403
|
+
const N = !!(v.href || v.to || v.onPress), { text: M, ref: E } = A(), { text: O, ref: w } = A(), z = y || [
|
|
406
404
|
d,
|
|
405
|
+
M,
|
|
406
|
+
i,
|
|
407
|
+
o,
|
|
407
408
|
c,
|
|
408
409
|
O
|
|
409
410
|
].filter(Boolean).join(" ");
|
|
410
|
-
return /* @__PURE__ */ l(
|
|
411
|
+
return /* @__PURE__ */ l(J, {
|
|
411
412
|
dataAttributes: _object_spread({
|
|
412
413
|
"component-name": "MediaCard"
|
|
413
|
-
},
|
|
414
|
-
ref:
|
|
415
|
-
"aria-label":
|
|
416
|
-
className:
|
|
414
|
+
}, T),
|
|
415
|
+
ref: V,
|
|
416
|
+
"aria-label": N ? void 0 : y,
|
|
417
|
+
className: $,
|
|
417
418
|
children: [
|
|
418
|
-
/* @__PURE__ */ e(
|
|
419
|
-
className:
|
|
419
|
+
/* @__PURE__ */ e(he, {
|
|
420
|
+
className: Q,
|
|
420
421
|
width: "100%",
|
|
421
422
|
height: "100%",
|
|
422
|
-
children: /* @__PURE__ */ l(
|
|
423
|
+
children: /* @__PURE__ */ l(_, _object_spread_props(_object_spread({
|
|
423
424
|
maybe: !0
|
|
424
|
-
},
|
|
425
|
-
className:
|
|
426
|
-
"aria-label":
|
|
425
|
+
}, v), {
|
|
426
|
+
className: q,
|
|
427
|
+
"aria-label": N ? z : void 0,
|
|
427
428
|
children: [
|
|
428
|
-
|
|
429
|
-
className:
|
|
429
|
+
N && /* @__PURE__ */ e("div", {
|
|
430
|
+
className: Ke
|
|
430
431
|
}),
|
|
431
432
|
/* @__PURE__ */ l("div", {
|
|
432
|
-
className:
|
|
433
|
+
className: fe,
|
|
433
434
|
children: [
|
|
434
435
|
/* @__PURE__ */ e("div", {
|
|
435
|
-
style:
|
|
436
|
-
[
|
|
436
|
+
style: H({
|
|
437
|
+
[W.mediaBorderRadius]: "0px"
|
|
437
438
|
}),
|
|
438
439
|
children: a
|
|
439
440
|
}),
|
|
440
441
|
/* @__PURE__ */ e("div", {
|
|
441
|
-
className:
|
|
442
|
-
children: /* @__PURE__ */ e(
|
|
442
|
+
className: Qe,
|
|
443
|
+
children: /* @__PURE__ */ e(xe, {
|
|
443
444
|
headline: t,
|
|
444
|
-
headlineRef:
|
|
445
|
-
pretitle:
|
|
446
|
-
pretitleLinesMax:
|
|
447
|
-
title:
|
|
448
|
-
titleAs:
|
|
449
|
-
titleLinesMax:
|
|
450
|
-
subtitle:
|
|
451
|
-
subtitleLinesMax:
|
|
445
|
+
headlineRef: E,
|
|
446
|
+
pretitle: i,
|
|
447
|
+
pretitleLinesMax: n,
|
|
448
|
+
title: d,
|
|
449
|
+
titleAs: f,
|
|
450
|
+
titleLinesMax: h,
|
|
451
|
+
subtitle: o,
|
|
452
|
+
subtitleLinesMax: s,
|
|
452
453
|
description: c,
|
|
453
|
-
descriptionLinesMax:
|
|
454
|
-
extra:
|
|
455
|
-
extraRef:
|
|
456
|
-
button:
|
|
457
|
-
buttonLink:
|
|
454
|
+
descriptionLinesMax: u,
|
|
455
|
+
extra: g,
|
|
456
|
+
extraRef: w,
|
|
457
|
+
button: C,
|
|
458
|
+
buttonLink: x
|
|
458
459
|
})
|
|
459
460
|
}),
|
|
460
461
|
r && /* @__PURE__ */ e(P, {
|
|
461
|
-
className:
|
|
462
|
+
className: Ce,
|
|
462
463
|
paddingLeft: {
|
|
463
464
|
mobile: 16,
|
|
464
465
|
desktop: 24
|
|
@@ -468,8 +469,8 @@ const S = ()=>{
|
|
|
468
469
|
desktop: 24
|
|
469
470
|
},
|
|
470
471
|
children: /* @__PURE__ */ e("div", {
|
|
471
|
-
style:
|
|
472
|
-
[
|
|
472
|
+
style: H({
|
|
473
|
+
[W.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
473
474
|
}),
|
|
474
475
|
children: r
|
|
475
476
|
})
|
|
@@ -479,15 +480,16 @@ const S = ()=>{
|
|
|
479
480
|
]
|
|
480
481
|
}))
|
|
481
482
|
}),
|
|
482
|
-
/* @__PURE__ */ e(
|
|
483
|
-
onClose:
|
|
484
|
-
|
|
483
|
+
/* @__PURE__ */ e(U, {
|
|
484
|
+
onClose: k,
|
|
485
|
+
closeButtonLabel: B,
|
|
486
|
+
actions: m,
|
|
485
487
|
type: "media"
|
|
486
488
|
})
|
|
487
489
|
]
|
|
488
490
|
});
|
|
489
|
-
}),
|
|
490
|
-
var { media: a, icon: r, headline: t, pretitle:
|
|
491
|
+
}), $a = /*#__PURE__*/ b.forwardRef((_param, V)=>{
|
|
492
|
+
var { media: a, icon: r, headline: t, pretitle: i, pretitleLinesMax: n, subtitle: o, subtitleLinesMax: s, title: d, titleAs: f = "h3", titleLinesMax: h, description: c, descriptionLinesMax: u, extra: g, actions: m, button: C, buttonLink: x, dataAttributes: T, "aria-label": y, onClose: k, closeButtonLabel: B } = _param, v = _object_without_properties(_param, [
|
|
491
493
|
"media",
|
|
492
494
|
"icon",
|
|
493
495
|
"headline",
|
|
@@ -506,67 +508,68 @@ const S = ()=>{
|
|
|
506
508
|
"buttonLink",
|
|
507
509
|
"dataAttributes",
|
|
508
510
|
"aria-label",
|
|
509
|
-
"onClose"
|
|
511
|
+
"onClose",
|
|
512
|
+
"closeButtonLabel"
|
|
510
513
|
]);
|
|
511
|
-
const
|
|
512
|
-
s,
|
|
513
|
-
V,
|
|
514
|
-
n,
|
|
514
|
+
const N = !!(v.href || v.to || v.onPress), M = a && a.type === pe && a.props.circular, { text: E, ref: O } = A(), { text: w, ref: z } = A(), R = y || [
|
|
515
515
|
d,
|
|
516
|
+
E,
|
|
517
|
+
i,
|
|
518
|
+
o,
|
|
516
519
|
c,
|
|
517
|
-
|
|
520
|
+
w
|
|
518
521
|
].filter(Boolean).join(" ");
|
|
519
|
-
return /* @__PURE__ */ l(
|
|
520
|
-
ref:
|
|
522
|
+
return /* @__PURE__ */ l(J, {
|
|
523
|
+
ref: V,
|
|
521
524
|
dataAttributes: _object_spread({
|
|
522
525
|
"component-name": "NakedCard"
|
|
523
|
-
},
|
|
524
|
-
"aria-label":
|
|
525
|
-
className:
|
|
526
|
+
}, T),
|
|
527
|
+
"aria-label": N ? void 0 : y,
|
|
528
|
+
className: N ? $ : void 0,
|
|
526
529
|
children: [
|
|
527
|
-
/* @__PURE__ */ e(
|
|
530
|
+
/* @__PURE__ */ e(_, _object_spread_props(_object_spread({
|
|
528
531
|
maybe: !0
|
|
529
|
-
},
|
|
530
|
-
className:
|
|
531
|
-
"aria-label":
|
|
532
|
+
}, v), {
|
|
533
|
+
className: q,
|
|
534
|
+
"aria-label": N ? R : void 0,
|
|
532
535
|
children: /* @__PURE__ */ l("div", {
|
|
533
|
-
className:
|
|
536
|
+
className: fe,
|
|
534
537
|
children: [
|
|
535
538
|
/* @__PURE__ */ l("div", {
|
|
536
539
|
style: {
|
|
537
540
|
position: "relative"
|
|
538
541
|
},
|
|
539
542
|
children: [
|
|
540
|
-
|
|
541
|
-
className:
|
|
542
|
-
[
|
|
543
|
+
N && /* @__PURE__ */ e("div", {
|
|
544
|
+
className: ge(Te, {
|
|
545
|
+
[Ne]: M
|
|
543
546
|
})
|
|
544
547
|
}),
|
|
545
548
|
a
|
|
546
549
|
]
|
|
547
550
|
}),
|
|
548
551
|
/* @__PURE__ */ e("div", {
|
|
549
|
-
className:
|
|
550
|
-
children: /* @__PURE__ */ e(
|
|
552
|
+
className: Be,
|
|
553
|
+
children: /* @__PURE__ */ e(xe, {
|
|
551
554
|
headline: t,
|
|
552
555
|
headlineRef: O,
|
|
553
|
-
pretitle:
|
|
554
|
-
pretitleLinesMax:
|
|
555
|
-
title:
|
|
556
|
-
titleAs:
|
|
557
|
-
titleLinesMax:
|
|
558
|
-
subtitle:
|
|
559
|
-
subtitleLinesMax:
|
|
556
|
+
pretitle: i,
|
|
557
|
+
pretitleLinesMax: n,
|
|
558
|
+
title: d,
|
|
559
|
+
titleAs: f,
|
|
560
|
+
titleLinesMax: h,
|
|
561
|
+
subtitle: o,
|
|
562
|
+
subtitleLinesMax: s,
|
|
560
563
|
description: c,
|
|
561
|
-
descriptionLinesMax:
|
|
562
|
-
extra:
|
|
564
|
+
descriptionLinesMax: u,
|
|
565
|
+
extra: g,
|
|
563
566
|
extraRef: z,
|
|
564
|
-
button:
|
|
565
|
-
buttonLink:
|
|
567
|
+
button: C,
|
|
568
|
+
buttonLink: x
|
|
566
569
|
})
|
|
567
570
|
}),
|
|
568
571
|
r && /* @__PURE__ */ e(P, {
|
|
569
|
-
className:
|
|
572
|
+
className: Ce,
|
|
570
573
|
paddingLeft: {
|
|
571
574
|
mobile: 16,
|
|
572
575
|
desktop: 24
|
|
@@ -576,8 +579,8 @@ const S = ()=>{
|
|
|
576
579
|
desktop: 24
|
|
577
580
|
},
|
|
578
581
|
children: /* @__PURE__ */ e("div", {
|
|
579
|
-
style:
|
|
580
|
-
[
|
|
582
|
+
style: H({
|
|
583
|
+
[W.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
581
584
|
}),
|
|
582
585
|
children: r
|
|
583
586
|
})
|
|
@@ -585,15 +588,16 @@ const S = ()=>{
|
|
|
585
588
|
]
|
|
586
589
|
})
|
|
587
590
|
})),
|
|
588
|
-
/* @__PURE__ */ e(
|
|
589
|
-
onClose:
|
|
590
|
-
|
|
591
|
+
/* @__PURE__ */ e(U, {
|
|
592
|
+
onClose: k,
|
|
593
|
+
closeButtonLabel: B,
|
|
594
|
+
actions: m,
|
|
591
595
|
type: "media"
|
|
592
596
|
})
|
|
593
597
|
]
|
|
594
598
|
});
|
|
595
|
-
}),
|
|
596
|
-
var { media: a, title: r, titleAs: t = "h3", titleLinesMax:
|
|
599
|
+
}), qa = /*#__PURE__*/ b.forwardRef((_param, g)=>{
|
|
600
|
+
var { media: a, title: r, titleAs: t = "h3", titleLinesMax: i, subtitle: n, subtitleLinesMax: o, description: s, descriptionLinesMax: d, extra: f, dataAttributes: h, "aria-label": c } = _param, u = _object_without_properties(_param, [
|
|
597
601
|
"media",
|
|
598
602
|
"title",
|
|
599
603
|
"titleAs",
|
|
@@ -606,75 +610,75 @@ const S = ()=>{
|
|
|
606
610
|
"dataAttributes",
|
|
607
611
|
"aria-label"
|
|
608
612
|
]);
|
|
609
|
-
const
|
|
613
|
+
const m = !!(u.href || u.to || u.onPress), C = a && a.type === pe && a.props.circular, { textPresets: x } = K(), { text: T, ref: y } = A(), k = c || [
|
|
610
614
|
r,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
615
|
+
n,
|
|
616
|
+
s,
|
|
617
|
+
T
|
|
614
618
|
].filter(Boolean).join(" ");
|
|
615
|
-
return /* @__PURE__ */ e(
|
|
616
|
-
ref:
|
|
619
|
+
return /* @__PURE__ */ e(J, {
|
|
620
|
+
ref: g,
|
|
617
621
|
dataAttributes: _object_spread({
|
|
618
622
|
"component-name": "SmallNakedCard"
|
|
619
|
-
},
|
|
620
|
-
"aria-label":
|
|
621
|
-
className:
|
|
622
|
-
children: /* @__PURE__ */ e(
|
|
623
|
+
}, h),
|
|
624
|
+
"aria-label": m ? void 0 : c,
|
|
625
|
+
className: m ? $ : void 0,
|
|
626
|
+
children: /* @__PURE__ */ e(_, _object_spread_props(_object_spread({
|
|
623
627
|
maybe: !0
|
|
624
|
-
},
|
|
625
|
-
className:
|
|
626
|
-
"aria-label":
|
|
628
|
+
}, u), {
|
|
629
|
+
className: q,
|
|
630
|
+
"aria-label": m ? k : void 0,
|
|
627
631
|
children: /* @__PURE__ */ l("div", {
|
|
628
|
-
className:
|
|
632
|
+
className: fe,
|
|
629
633
|
children: [
|
|
630
634
|
/* @__PURE__ */ l("div", {
|
|
631
635
|
style: {
|
|
632
636
|
position: "relative"
|
|
633
637
|
},
|
|
634
638
|
children: [
|
|
635
|
-
|
|
636
|
-
className:
|
|
637
|
-
[
|
|
639
|
+
m && /* @__PURE__ */ e("div", {
|
|
640
|
+
className: ge(Te, {
|
|
641
|
+
[Ne]: C
|
|
638
642
|
})
|
|
639
643
|
}),
|
|
640
644
|
a
|
|
641
645
|
]
|
|
642
646
|
}),
|
|
643
647
|
/* @__PURE__ */ l("div", {
|
|
644
|
-
className:
|
|
648
|
+
className: Be,
|
|
645
649
|
children: [
|
|
646
650
|
/* @__PURE__ */ e("div", {
|
|
647
|
-
children: /* @__PURE__ */ l(
|
|
651
|
+
children: /* @__PURE__ */ l(ne, {
|
|
648
652
|
space: 4,
|
|
649
653
|
children: [
|
|
650
|
-
r && /* @__PURE__ */ e(
|
|
651
|
-
truncate:
|
|
652
|
-
weight:
|
|
654
|
+
r && /* @__PURE__ */ e(ie, _object_spread_props(_object_spread({}, oe.text2), {
|
|
655
|
+
truncate: i,
|
|
656
|
+
weight: x.cardTitle.weight,
|
|
653
657
|
as: t,
|
|
654
658
|
hyphens: "auto",
|
|
655
659
|
children: r
|
|
656
660
|
})),
|
|
657
|
-
|
|
658
|
-
truncate:
|
|
661
|
+
n && /* @__PURE__ */ e(D, {
|
|
662
|
+
truncate: o,
|
|
659
663
|
regular: !0,
|
|
660
664
|
as: "p",
|
|
661
665
|
hyphens: "auto",
|
|
662
|
-
children:
|
|
666
|
+
children: n
|
|
663
667
|
}),
|
|
664
|
-
|
|
665
|
-
truncate:
|
|
668
|
+
s && /* @__PURE__ */ e(D, {
|
|
669
|
+
truncate: d,
|
|
666
670
|
regular: !0,
|
|
667
671
|
as: "p",
|
|
668
|
-
color:
|
|
672
|
+
color: p.colors.textSecondary,
|
|
669
673
|
hyphens: "auto",
|
|
670
|
-
children:
|
|
674
|
+
children: s
|
|
671
675
|
})
|
|
672
676
|
]
|
|
673
677
|
})
|
|
674
678
|
}),
|
|
675
|
-
|
|
676
|
-
ref:
|
|
677
|
-
children:
|
|
679
|
+
f && /* @__PURE__ */ e("div", {
|
|
680
|
+
ref: y,
|
|
681
|
+
children: f
|
|
678
682
|
})
|
|
679
683
|
]
|
|
680
684
|
})
|
|
@@ -682,8 +686,8 @@ const S = ()=>{
|
|
|
682
686
|
})
|
|
683
687
|
}))
|
|
684
688
|
});
|
|
685
|
-
}),
|
|
686
|
-
var { icon: a, headline: r, pretitle: t, pretitleLinesMax:
|
|
689
|
+
}), Ja = /*#__PURE__*/ b.forwardRef((_param, V)=>{
|
|
690
|
+
var { icon: a, headline: r, pretitle: t, pretitleLinesMax: i, title: n, titleAs: o = "h3", titleLinesMax: s, subtitle: d, subtitleLinesMax: f, description: h, descriptionLinesMax: c, extra: u, actions: g, button: m, buttonLink: C, dataAttributes: x, "aria-label": T, onClose: y, closeButtonLabel: k, aspectRatio: B } = _param, v = _object_without_properties(_param, [
|
|
687
691
|
"icon",
|
|
688
692
|
"headline",
|
|
689
693
|
"pretitle",
|
|
@@ -702,84 +706,85 @@ const S = ()=>{
|
|
|
702
706
|
"dataAttributes",
|
|
703
707
|
"aria-label",
|
|
704
708
|
"onClose",
|
|
709
|
+
"closeButtonLabel",
|
|
705
710
|
"aspectRatio"
|
|
706
711
|
]);
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
712
|
+
const N = !!a || !!r, M = !!(v.href || v.to || v.onPress), { text: E, ref: O } = A(), { text: w, ref: z } = A(), R = je(g, y), I = T || [
|
|
713
|
+
n,
|
|
714
|
+
E,
|
|
710
715
|
t,
|
|
711
|
-
|
|
712
|
-
|
|
716
|
+
h,
|
|
717
|
+
w
|
|
713
718
|
].filter(Boolean).join(" ");
|
|
714
|
-
return /* @__PURE__ */ l(
|
|
719
|
+
return /* @__PURE__ */ l(J, {
|
|
715
720
|
dataAttributes: _object_spread({
|
|
716
721
|
"component-name": "DataCard"
|
|
717
|
-
},
|
|
718
|
-
ref:
|
|
719
|
-
"aria-label": M ? void 0 :
|
|
720
|
-
className:
|
|
721
|
-
aspectRatio:
|
|
722
|
+
}, x),
|
|
723
|
+
ref: V,
|
|
724
|
+
"aria-label": M ? void 0 : T,
|
|
725
|
+
className: $,
|
|
726
|
+
aspectRatio: B,
|
|
722
727
|
children: [
|
|
723
|
-
/* @__PURE__ */ e(
|
|
724
|
-
className:
|
|
728
|
+
/* @__PURE__ */ e(he, {
|
|
729
|
+
className: Q,
|
|
725
730
|
width: "100%",
|
|
726
731
|
minHeight: "100%",
|
|
727
|
-
children: /* @__PURE__ */ l(
|
|
732
|
+
children: /* @__PURE__ */ l(_, _object_spread_props(_object_spread({
|
|
728
733
|
maybe: !0
|
|
729
|
-
},
|
|
730
|
-
className:
|
|
731
|
-
"aria-label": M ?
|
|
734
|
+
}, v), {
|
|
735
|
+
className: q,
|
|
736
|
+
"aria-label": M ? I : void 0,
|
|
732
737
|
children: [
|
|
733
738
|
M && /* @__PURE__ */ e("div", {
|
|
734
|
-
className:
|
|
739
|
+
className: de
|
|
735
740
|
}),
|
|
736
741
|
/* @__PURE__ */ l("div", {
|
|
737
|
-
className:
|
|
742
|
+
className: Ue,
|
|
738
743
|
children: [
|
|
739
|
-
/* @__PURE__ */ l(
|
|
744
|
+
/* @__PURE__ */ l(ze, {
|
|
740
745
|
space: 0,
|
|
741
746
|
children: [
|
|
742
|
-
/* @__PURE__ */ l(
|
|
747
|
+
/* @__PURE__ */ l(ne, {
|
|
743
748
|
space: 16,
|
|
744
749
|
children: [
|
|
745
750
|
a && /* @__PURE__ */ e("div", {
|
|
746
|
-
style:
|
|
747
|
-
[
|
|
751
|
+
style: H({
|
|
752
|
+
[W.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
748
753
|
}),
|
|
749
754
|
children: a
|
|
750
755
|
}),
|
|
751
|
-
/* @__PURE__ */ e(
|
|
756
|
+
/* @__PURE__ */ e(xe, {
|
|
752
757
|
headline: r,
|
|
753
758
|
headlineRef: O,
|
|
754
759
|
pretitle: t,
|
|
755
|
-
pretitleLinesMax:
|
|
756
|
-
title:
|
|
757
|
-
titleAs:
|
|
758
|
-
titleLinesMax:
|
|
759
|
-
subtitle:
|
|
760
|
-
subtitleLinesMax:
|
|
761
|
-
description:
|
|
760
|
+
pretitleLinesMax: i,
|
|
761
|
+
title: n,
|
|
762
|
+
titleAs: o,
|
|
763
|
+
titleLinesMax: s,
|
|
764
|
+
subtitle: d,
|
|
765
|
+
subtitleLinesMax: f,
|
|
766
|
+
description: h,
|
|
762
767
|
descriptionLinesMax: c
|
|
763
768
|
})
|
|
764
769
|
]
|
|
765
770
|
}),
|
|
766
|
-
!
|
|
767
|
-
style:
|
|
768
|
-
[
|
|
771
|
+
!N && /* @__PURE__ */ e("div", {
|
|
772
|
+
style: H({
|
|
773
|
+
[Re.topActionsCount]: String(R.length)
|
|
769
774
|
}),
|
|
770
|
-
className:
|
|
775
|
+
className: Ye
|
|
771
776
|
})
|
|
772
777
|
]
|
|
773
778
|
}),
|
|
774
|
-
|
|
779
|
+
u && /* @__PURE__ */ e("div", {
|
|
775
780
|
ref: z,
|
|
776
|
-
children:
|
|
781
|
+
children: u
|
|
777
782
|
}),
|
|
778
|
-
(
|
|
779
|
-
className:
|
|
780
|
-
children: /* @__PURE__ */ e(
|
|
781
|
-
primaryButton:
|
|
782
|
-
link:
|
|
783
|
+
(m || C) && /* @__PURE__ */ e("div", {
|
|
784
|
+
className: ke,
|
|
785
|
+
children: /* @__PURE__ */ e(ue, {
|
|
786
|
+
primaryButton: m,
|
|
787
|
+
link: C
|
|
783
788
|
})
|
|
784
789
|
})
|
|
785
790
|
]
|
|
@@ -787,15 +792,16 @@ const S = ()=>{
|
|
|
787
792
|
]
|
|
788
793
|
}))
|
|
789
794
|
}),
|
|
790
|
-
/* @__PURE__ */ e(
|
|
791
|
-
onClose:
|
|
792
|
-
|
|
795
|
+
/* @__PURE__ */ e(U, {
|
|
796
|
+
onClose: y,
|
|
797
|
+
closeButtonLabel: k,
|
|
798
|
+
actions: g,
|
|
793
799
|
type: "default"
|
|
794
800
|
})
|
|
795
801
|
]
|
|
796
802
|
});
|
|
797
|
-
}),
|
|
798
|
-
var { icon: a, title: r, titleAs: t = "h3", titleLinesMax:
|
|
803
|
+
}), Ka = /*#__PURE__*/ b.forwardRef((_param, C)=>{
|
|
804
|
+
var { icon: a, title: r, titleAs: t = "h3", titleLinesMax: i, subtitle: n, subtitleLinesMax: o, description: s, descriptionLinesMax: d, dataAttributes: f, "aria-label": h, extra: c, isInverse: u = !1, aspectRatio: g } = _param, m = _object_without_properties(_param, [
|
|
799
805
|
"icon",
|
|
800
806
|
"title",
|
|
801
807
|
"titleAs",
|
|
@@ -810,80 +816,80 @@ const S = ()=>{
|
|
|
810
816
|
"isInverse",
|
|
811
817
|
"aspectRatio"
|
|
812
818
|
]);
|
|
813
|
-
const { textPresets:
|
|
819
|
+
const { textPresets: x } = K(), T = !!(m.href || m.to || m.onPress), y = u ? ve : de, { text: k, ref: B } = A(), v = h || [
|
|
814
820
|
r,
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
821
|
+
n,
|
|
822
|
+
s,
|
|
823
|
+
k
|
|
818
824
|
].filter(Boolean).join(" ");
|
|
819
|
-
return /* @__PURE__ */ e(
|
|
825
|
+
return /* @__PURE__ */ e(J, {
|
|
820
826
|
dataAttributes: _object_spread({
|
|
821
827
|
"component-name": "SnapCard"
|
|
822
|
-
},
|
|
823
|
-
ref:
|
|
824
|
-
className:
|
|
825
|
-
aspectRatio:
|
|
826
|
-
"aria-label":
|
|
827
|
-
children: /* @__PURE__ */ e(
|
|
828
|
-
className:
|
|
829
|
-
isInverse:
|
|
828
|
+
}, f),
|
|
829
|
+
ref: C,
|
|
830
|
+
className: $,
|
|
831
|
+
aspectRatio: g,
|
|
832
|
+
"aria-label": T ? void 0 : h,
|
|
833
|
+
children: /* @__PURE__ */ e(he, {
|
|
834
|
+
className: Q,
|
|
835
|
+
isInverse: u,
|
|
830
836
|
width: "100%",
|
|
831
837
|
minHeight: "100%",
|
|
832
|
-
children: /* @__PURE__ */ l(
|
|
838
|
+
children: /* @__PURE__ */ l(_, _object_spread_props(_object_spread({
|
|
833
839
|
maybe: !0
|
|
834
|
-
},
|
|
835
|
-
className:
|
|
836
|
-
"aria-label":
|
|
840
|
+
}, m), {
|
|
841
|
+
className: q,
|
|
842
|
+
"aria-label": T ? v : void 0,
|
|
837
843
|
children: [
|
|
838
|
-
|
|
839
|
-
className:
|
|
844
|
+
T && /* @__PURE__ */ e("div", {
|
|
845
|
+
className: y
|
|
840
846
|
}),
|
|
841
847
|
/* @__PURE__ */ l("section", {
|
|
842
|
-
className:
|
|
848
|
+
className: Ze,
|
|
843
849
|
children: [
|
|
844
850
|
/* @__PURE__ */ l("div", {
|
|
845
851
|
children: [
|
|
846
852
|
a && /* @__PURE__ */ e("div", {
|
|
847
|
-
style:
|
|
848
|
-
[
|
|
853
|
+
style: H({
|
|
854
|
+
[W.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
849
855
|
}),
|
|
850
856
|
children: /* @__PURE__ */ e(P, {
|
|
851
857
|
paddingBottom: 16,
|
|
852
858
|
children: a
|
|
853
859
|
})
|
|
854
860
|
}),
|
|
855
|
-
/* @__PURE__ */ l(
|
|
861
|
+
/* @__PURE__ */ l(ne, {
|
|
856
862
|
space: 4,
|
|
857
863
|
children: [
|
|
858
|
-
r && /* @__PURE__ */ e(
|
|
859
|
-
truncate:
|
|
860
|
-
weight:
|
|
864
|
+
r && /* @__PURE__ */ e(ie, _object_spread_props(_object_spread({}, oe.text2), {
|
|
865
|
+
truncate: i,
|
|
866
|
+
weight: x.cardTitle.weight,
|
|
861
867
|
as: t,
|
|
862
868
|
hyphens: "auto",
|
|
863
869
|
children: r
|
|
864
870
|
})),
|
|
865
|
-
|
|
866
|
-
truncate:
|
|
871
|
+
n && /* @__PURE__ */ e(D, {
|
|
872
|
+
truncate: o,
|
|
867
873
|
regular: !0,
|
|
868
|
-
color:
|
|
874
|
+
color: p.colors.textPrimary,
|
|
869
875
|
as: "p",
|
|
870
876
|
hyphens: "auto",
|
|
871
|
-
children:
|
|
877
|
+
children: n
|
|
872
878
|
}),
|
|
873
|
-
|
|
874
|
-
truncate:
|
|
879
|
+
s && /* @__PURE__ */ e(D, {
|
|
880
|
+
truncate: d,
|
|
875
881
|
regular: !0,
|
|
876
|
-
color:
|
|
882
|
+
color: p.colors.textSecondary,
|
|
877
883
|
as: "p",
|
|
878
884
|
hyphens: "auto",
|
|
879
|
-
children:
|
|
885
|
+
children: s
|
|
880
886
|
})
|
|
881
887
|
]
|
|
882
888
|
})
|
|
883
889
|
]
|
|
884
890
|
}),
|
|
885
891
|
c && /* @__PURE__ */ e("div", {
|
|
886
|
-
ref:
|
|
892
|
+
ref: B,
|
|
887
893
|
children: c
|
|
888
894
|
})
|
|
889
895
|
]
|
|
@@ -892,20 +898,20 @@ const S = ()=>{
|
|
|
892
898
|
}))
|
|
893
899
|
})
|
|
894
900
|
});
|
|
895
|
-
}),
|
|
896
|
-
let { title: a, headline: r, pretitle: t, subtitle:
|
|
901
|
+
}), Ge = (param)=>{
|
|
902
|
+
let { title: a, headline: r, pretitle: t, subtitle: i, description: n, extra: o, headlineRef: s, extraRef: d } = param;
|
|
897
903
|
return /* @__PURE__ */ l("div", {
|
|
898
|
-
className:
|
|
904
|
+
className: Me,
|
|
899
905
|
children: [
|
|
900
906
|
a && /* @__PURE__ */ e("div", {
|
|
901
907
|
style: {
|
|
902
|
-
paddingBottom:
|
|
908
|
+
paddingBottom: i || n ? 4 : 0
|
|
903
909
|
},
|
|
904
910
|
children: a
|
|
905
911
|
}),
|
|
906
912
|
r && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
907
913
|
/* @__PURE__ */ e("div", {
|
|
908
|
-
ref:
|
|
914
|
+
ref: s,
|
|
909
915
|
style: {
|
|
910
916
|
order: -2,
|
|
911
917
|
paddingBottom: 16
|
|
@@ -919,28 +925,28 @@ const S = ()=>{
|
|
|
919
925
|
},
|
|
920
926
|
children: t
|
|
921
927
|
}),
|
|
922
|
-
|
|
928
|
+
i && /* @__PURE__ */ e("div", {
|
|
923
929
|
style: {
|
|
924
|
-
paddingBottom:
|
|
930
|
+
paddingBottom: i ? 4 : 0
|
|
925
931
|
},
|
|
926
|
-
children:
|
|
932
|
+
children: i
|
|
927
933
|
}),
|
|
928
|
-
|
|
934
|
+
n && // this is tricky, the padding between a headline and a description is 16px
|
|
929
935
|
// but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
|
|
930
936
|
/* @__PURE__ */ e("div", {
|
|
931
937
|
style: {
|
|
932
|
-
paddingTop: t || a ||
|
|
938
|
+
paddingTop: t || a || i ? 4 : 0
|
|
933
939
|
},
|
|
934
|
-
children:
|
|
940
|
+
children: n
|
|
935
941
|
}),
|
|
936
|
-
|
|
937
|
-
ref:
|
|
938
|
-
children:
|
|
942
|
+
o && /* @__PURE__ */ e("div", {
|
|
943
|
+
ref: d,
|
|
944
|
+
children: o
|
|
939
945
|
})
|
|
940
946
|
]
|
|
941
947
|
});
|
|
942
|
-
},
|
|
943
|
-
var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef:
|
|
948
|
+
}, He = /*#__PURE__*/ b.forwardRef((_param, z)=>{
|
|
949
|
+
var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef: i, poster: n, icon: o, headline: s, pretitle: d, pretitleLinesMax: f, title: h, titleAs: c = "h3", titleLinesMax: u, description: g, descriptionLinesMax: m, extra: C, button: x, secondaryButton: T, onClose: y, closeButtonLabel: k, actions: B, buttonLink: v, dataAttributes: V, width: N, height: M, aspectRatio: E, "aria-label": O } = _param, w = _object_without_properties(_param, [
|
|
944
950
|
"isInverse",
|
|
945
951
|
"backgroundImage",
|
|
946
952
|
"backgroundVideo",
|
|
@@ -959,6 +965,7 @@ const S = ()=>{
|
|
|
959
965
|
"button",
|
|
960
966
|
"secondaryButton",
|
|
961
967
|
"onClose",
|
|
968
|
+
"closeButtonLabel",
|
|
962
969
|
"actions",
|
|
963
970
|
"buttonLink",
|
|
964
971
|
"dataAttributes",
|
|
@@ -967,114 +974,114 @@ const S = ()=>{
|
|
|
967
974
|
"aspectRatio",
|
|
968
975
|
"aria-label"
|
|
969
976
|
]);
|
|
970
|
-
const R = r !== void 0,
|
|
971
|
-
|
|
972
|
-
|
|
977
|
+
const R = r !== void 0, I = t !== void 0, X = Ve(r), { video: S, videoAction: Y } = Ee(t, n, i), { text: se, ref: Z } = A(), { text: le, ref: ce } = A();
|
|
978
|
+
I && (B = Y ? [
|
|
979
|
+
Y
|
|
973
980
|
] : []);
|
|
974
|
-
const
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
981
|
+
const ee = Oe(), G = R || I, F = G ? "0 0 16px rgba(0,0,0,0.4)" : void 0, j = (B == null ? void 0 : B.length) || y, L = !!(w.href || w.to || w.onPress), ae = R || I ? De : a ? ve : de, me = O || [
|
|
982
|
+
h,
|
|
983
|
+
se,
|
|
984
|
+
d,
|
|
985
|
+
g,
|
|
986
|
+
le
|
|
980
987
|
].filter(Boolean).join(" ");
|
|
981
|
-
return /* @__PURE__ */ l(
|
|
982
|
-
dataAttributes:
|
|
988
|
+
return /* @__PURE__ */ l(J, {
|
|
989
|
+
dataAttributes: V,
|
|
983
990
|
ref: z,
|
|
984
|
-
width:
|
|
991
|
+
width: N,
|
|
985
992
|
height: M,
|
|
986
|
-
aspectRatio:
|
|
987
|
-
"aria-label":
|
|
988
|
-
className:
|
|
993
|
+
aspectRatio: E,
|
|
994
|
+
"aria-label": L ? void 0 : O,
|
|
995
|
+
className: $,
|
|
989
996
|
children: [
|
|
990
|
-
/* @__PURE__ */ e(
|
|
991
|
-
borderRadius:
|
|
992
|
-
className:
|
|
997
|
+
/* @__PURE__ */ e(be, {
|
|
998
|
+
borderRadius: p.borderRadii.legacyDisplay,
|
|
999
|
+
className: Q,
|
|
993
1000
|
width: "100%",
|
|
994
1001
|
minHeight: "100%",
|
|
995
1002
|
isInverse: a,
|
|
996
|
-
background: R ||
|
|
997
|
-
children: /* @__PURE__ */ l(
|
|
1003
|
+
background: R || I ? ee ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundContainer : void 0,
|
|
1004
|
+
children: /* @__PURE__ */ l(_, _object_spread_props(_object_spread({
|
|
998
1005
|
maybe: !0
|
|
999
|
-
},
|
|
1000
|
-
className:
|
|
1001
|
-
"aria-label":
|
|
1006
|
+
}, w), {
|
|
1007
|
+
className: q,
|
|
1008
|
+
"aria-label": L ? me : void 0,
|
|
1002
1009
|
children: [
|
|
1003
|
-
|
|
1004
|
-
className:
|
|
1010
|
+
L && /* @__PURE__ */ e("div", {
|
|
1011
|
+
className: ae
|
|
1005
1012
|
}),
|
|
1006
1013
|
/* @__PURE__ */ l("div", {
|
|
1007
|
-
className:
|
|
1014
|
+
className: Ie,
|
|
1008
1015
|
children: [
|
|
1009
|
-
(R ||
|
|
1010
|
-
isInverse:
|
|
1016
|
+
(R || I) && /* @__PURE__ */ e(ye, {
|
|
1017
|
+
isInverse: ee,
|
|
1011
1018
|
children: /* @__PURE__ */ e("div", {
|
|
1012
|
-
className:
|
|
1013
|
-
children:
|
|
1019
|
+
className: we,
|
|
1020
|
+
children: I ? S : X
|
|
1014
1021
|
})
|
|
1015
1022
|
}),
|
|
1016
1023
|
/* @__PURE__ */ l("div", {
|
|
1017
|
-
className:
|
|
1024
|
+
className: Se,
|
|
1018
1025
|
style: {
|
|
1019
|
-
paddingTop:
|
|
1026
|
+
paddingTop: G && !o && !j && !I ? 0 : 24
|
|
1020
1027
|
},
|
|
1021
1028
|
children: [
|
|
1022
|
-
|
|
1023
|
-
style:
|
|
1024
|
-
[
|
|
1029
|
+
o ? /* @__PURE__ */ e("div", {
|
|
1030
|
+
style: H({
|
|
1031
|
+
[W.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
1025
1032
|
}),
|
|
1026
1033
|
children: /* @__PURE__ */ e(P, {
|
|
1027
|
-
paddingBottom:
|
|
1034
|
+
paddingBottom: G ? 0 : 40,
|
|
1028
1035
|
paddingX: 24,
|
|
1029
|
-
children:
|
|
1036
|
+
children: o
|
|
1030
1037
|
})
|
|
1031
1038
|
}) : /* @__PURE__ */ e(P, {
|
|
1032
|
-
paddingBottom: j ||
|
|
1039
|
+
paddingBottom: j || I ? G ? 24 : 64 : 0
|
|
1033
1040
|
}),
|
|
1034
1041
|
/* @__PURE__ */ e(P, {
|
|
1035
1042
|
paddingX: 24,
|
|
1036
|
-
paddingTop:
|
|
1043
|
+
paddingTop: G ? 40 : 0,
|
|
1037
1044
|
paddingBottom: 24,
|
|
1038
|
-
className:
|
|
1039
|
-
children: /* @__PURE__ */ l(
|
|
1045
|
+
className: G ? Ae : void 0,
|
|
1046
|
+
children: /* @__PURE__ */ l(ne, {
|
|
1040
1047
|
space: 24,
|
|
1041
1048
|
children: [
|
|
1042
|
-
/* @__PURE__ */ e(
|
|
1043
|
-
title:
|
|
1049
|
+
/* @__PURE__ */ e(Ge, {
|
|
1050
|
+
title: h ? /* @__PURE__ */ e($e, {
|
|
1044
1051
|
forceMobileSizes: !0,
|
|
1045
|
-
truncate:
|
|
1052
|
+
truncate: u,
|
|
1046
1053
|
as: c,
|
|
1047
|
-
textShadow:
|
|
1054
|
+
textShadow: F,
|
|
1048
1055
|
hyphens: "auto",
|
|
1049
|
-
children:
|
|
1056
|
+
children: h
|
|
1050
1057
|
}) : void 0,
|
|
1051
|
-
headline:
|
|
1052
|
-
pretitle:
|
|
1058
|
+
headline: s,
|
|
1059
|
+
pretitle: d ? /* @__PURE__ */ e(D, {
|
|
1053
1060
|
forceMobileSizes: !0,
|
|
1054
|
-
truncate:
|
|
1061
|
+
truncate: f,
|
|
1055
1062
|
as: "div",
|
|
1056
1063
|
regular: !0,
|
|
1057
|
-
textShadow:
|
|
1058
|
-
children:
|
|
1064
|
+
textShadow: F,
|
|
1065
|
+
children: d
|
|
1059
1066
|
}) : void 0,
|
|
1060
|
-
description:
|
|
1067
|
+
description: g ? /* @__PURE__ */ e(qe, {
|
|
1061
1068
|
forceMobileSizes: !0,
|
|
1062
|
-
truncate:
|
|
1069
|
+
truncate: m,
|
|
1063
1070
|
as: "p",
|
|
1064
1071
|
regular: !0,
|
|
1065
|
-
color:
|
|
1066
|
-
textShadow:
|
|
1072
|
+
color: G ? p.colors.textPrimary : p.colors.textSecondary,
|
|
1073
|
+
textShadow: F,
|
|
1067
1074
|
hyphens: "auto",
|
|
1068
|
-
children:
|
|
1075
|
+
children: g
|
|
1069
1076
|
}) : void 0,
|
|
1070
|
-
extra:
|
|
1071
|
-
headlineRef:
|
|
1072
|
-
extraRef:
|
|
1077
|
+
extra: C,
|
|
1078
|
+
headlineRef: Z,
|
|
1079
|
+
extraRef: ce
|
|
1073
1080
|
}),
|
|
1074
|
-
(
|
|
1075
|
-
primaryButton:
|
|
1076
|
-
secondaryButton:
|
|
1077
|
-
link:
|
|
1081
|
+
(x || T || v) && /* @__PURE__ */ e(ue, {
|
|
1082
|
+
primaryButton: x,
|
|
1083
|
+
secondaryButton: T,
|
|
1084
|
+
link: v
|
|
1078
1085
|
})
|
|
1079
1086
|
]
|
|
1080
1087
|
})
|
|
@@ -1086,36 +1093,37 @@ const S = ()=>{
|
|
|
1086
1093
|
]
|
|
1087
1094
|
}))
|
|
1088
1095
|
}),
|
|
1089
|
-
/* @__PURE__ */ e(
|
|
1090
|
-
onClose:
|
|
1091
|
-
|
|
1092
|
-
|
|
1096
|
+
/* @__PURE__ */ e(U, {
|
|
1097
|
+
onClose: y,
|
|
1098
|
+
closeButtonLabel: k,
|
|
1099
|
+
actions: B,
|
|
1100
|
+
type: R || I ? "media" : a ? "inverse" : "default"
|
|
1093
1101
|
})
|
|
1094
1102
|
]
|
|
1095
1103
|
});
|
|
1096
|
-
}),
|
|
1104
|
+
}), Qa = /*#__PURE__*/ b.forwardRef((_param, t)=>{
|
|
1097
1105
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1098
1106
|
"dataAttributes"
|
|
1099
1107
|
]);
|
|
1100
|
-
return /* @__PURE__ */ e(
|
|
1108
|
+
return /* @__PURE__ */ e(He, _object_spread_props(_object_spread({}, r), {
|
|
1101
1109
|
ref: t,
|
|
1102
1110
|
isInverse: !0,
|
|
1103
1111
|
dataAttributes: _object_spread({
|
|
1104
1112
|
"component-name": "DisplayMediaCard"
|
|
1105
1113
|
}, a)
|
|
1106
1114
|
}));
|
|
1107
|
-
}),
|
|
1115
|
+
}), Ua = /*#__PURE__*/ b.forwardRef((_param, t)=>{
|
|
1108
1116
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1109
1117
|
"dataAttributes"
|
|
1110
1118
|
]);
|
|
1111
|
-
return /* @__PURE__ */ e(
|
|
1119
|
+
return /* @__PURE__ */ e(He, _object_spread_props(_object_spread({}, r), {
|
|
1112
1120
|
ref: t,
|
|
1113
1121
|
dataAttributes: _object_spread({
|
|
1114
1122
|
"component-name": "DisplayDataCard"
|
|
1115
1123
|
}, a)
|
|
1116
1124
|
}));
|
|
1117
|
-
}),
|
|
1118
|
-
var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster:
|
|
1125
|
+
}), Ya = /*#__PURE__*/ b.forwardRef((_param, I)=>{
|
|
1126
|
+
var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: i, backgroundVideoRef: n, width: o, height: s, aspectRatio: d = "7:10", ariaLabel: f, ["aria-label"]: h = f, actions: c, onClose: u, closeButtonLabel: g, icon: m, headline: C, pretitle: x, pretitleLinesMax: T, title: y, titleAs: k = "h3", titleLinesMax: B, subtitle: v, subtitleLinesMax: V, description: N, descriptionLinesMax: M, extra: E, variant: O, isInverse: w, backgroundColor: z } = _param, R = _object_without_properties(_param, [
|
|
1119
1127
|
"dataAttributes",
|
|
1120
1128
|
"backgroundImage",
|
|
1121
1129
|
"backgroundVideo",
|
|
@@ -1128,6 +1136,7 @@ const S = ()=>{
|
|
|
1128
1136
|
"aria-label",
|
|
1129
1137
|
"actions",
|
|
1130
1138
|
"onClose",
|
|
1139
|
+
"closeButtonLabel",
|
|
1131
1140
|
"icon",
|
|
1132
1141
|
"headline",
|
|
1133
1142
|
"pretitle",
|
|
@@ -1144,70 +1153,70 @@ const S = ()=>{
|
|
|
1144
1153
|
"isInverse",
|
|
1145
1154
|
"backgroundColor"
|
|
1146
1155
|
]);
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1149
|
-
|
|
1156
|
+
const X = r !== void 0, S = t !== void 0, Y = Ve(r), { video: se, videoAction: Z } = Ee(t, i, n), { text: le, ref: ce } = A(), { text: ee, ref: G } = A();
|
|
1157
|
+
S && (c = Z ? [
|
|
1158
|
+
Z
|
|
1150
1159
|
] : []);
|
|
1151
|
-
const
|
|
1152
|
-
default:
|
|
1153
|
-
inverse:
|
|
1154
|
-
alternative:
|
|
1155
|
-
})[
|
|
1160
|
+
const F = Oe(), j = X || S, L = j ? "0 0 16px rgba(0,0,0,0.4)" : void 0, ae = (c == null ? void 0 : c.length) || u, { textPresets: me } = K(), re = !!(R.href || R.to || R.onPress), te = O || (w ? "inverse" : "default"), Xe = ()=>z || ({
|
|
1161
|
+
default: p.colors.backgroundContainer,
|
|
1162
|
+
inverse: F ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundBrand,
|
|
1163
|
+
alternative: p.colors.backgroundAlternative
|
|
1164
|
+
})[te], Fe = X || S ? De : te === "inverse" ? ve : de, Le = h || [
|
|
1165
|
+
y,
|
|
1166
|
+
le,
|
|
1156
1167
|
x,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
B,
|
|
1161
|
-
Z
|
|
1168
|
+
v,
|
|
1169
|
+
N,
|
|
1170
|
+
ee
|
|
1162
1171
|
].filter(Boolean).join(" ");
|
|
1163
|
-
return /* @__PURE__ */ l(
|
|
1164
|
-
width:
|
|
1165
|
-
height:
|
|
1172
|
+
return /* @__PURE__ */ l(J, {
|
|
1173
|
+
width: o,
|
|
1174
|
+
height: s,
|
|
1166
1175
|
dataAttributes: _object_spread({
|
|
1167
1176
|
"component-name": "PosterCard"
|
|
1168
1177
|
}, a),
|
|
1169
|
-
ref:
|
|
1170
|
-
aspectRatio:
|
|
1171
|
-
className:
|
|
1172
|
-
"aria-label":
|
|
1178
|
+
ref: I,
|
|
1179
|
+
aspectRatio: d,
|
|
1180
|
+
className: $,
|
|
1181
|
+
"aria-label": re ? void 0 : h,
|
|
1173
1182
|
children: [
|
|
1174
|
-
/* @__PURE__ */ e(
|
|
1175
|
-
borderRadius:
|
|
1176
|
-
className:
|
|
1183
|
+
/* @__PURE__ */ e(be, {
|
|
1184
|
+
borderRadius: p.borderRadii.legacyDisplay,
|
|
1185
|
+
className: Q,
|
|
1177
1186
|
width: "100%",
|
|
1178
1187
|
minHeight: "100%",
|
|
1179
|
-
isInverse:
|
|
1180
|
-
background:
|
|
1181
|
-
children: /* @__PURE__ */ l(
|
|
1188
|
+
isInverse: X || S || te === "inverse",
|
|
1189
|
+
background: X || S ? F ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundContainer : Xe(),
|
|
1190
|
+
children: /* @__PURE__ */ l(_, _object_spread_props(_object_spread({
|
|
1182
1191
|
maybe: !0
|
|
1183
1192
|
}, R), {
|
|
1184
|
-
className:
|
|
1185
|
-
"aria-label":
|
|
1193
|
+
className: q,
|
|
1194
|
+
"aria-label": re ? Le : void 0,
|
|
1186
1195
|
children: [
|
|
1187
|
-
|
|
1188
|
-
className:
|
|
1196
|
+
re && /* @__PURE__ */ e("div", {
|
|
1197
|
+
className: Fe
|
|
1189
1198
|
}),
|
|
1190
1199
|
/* @__PURE__ */ l("div", {
|
|
1191
|
-
className:
|
|
1192
|
-
"aria-hidden":
|
|
1200
|
+
className: Ie,
|
|
1201
|
+
"aria-hidden": re,
|
|
1193
1202
|
children: [
|
|
1194
|
-
(
|
|
1195
|
-
isInverse:
|
|
1203
|
+
(X || S) && /* @__PURE__ */ e(ye, {
|
|
1204
|
+
isInverse: F,
|
|
1196
1205
|
children: /* @__PURE__ */ e("div", {
|
|
1197
|
-
className:
|
|
1198
|
-
children:
|
|
1206
|
+
className: we,
|
|
1207
|
+
children: S ? se : Y
|
|
1199
1208
|
})
|
|
1200
1209
|
}),
|
|
1201
1210
|
/* @__PURE__ */ l(P, {
|
|
1202
|
-
className:
|
|
1203
|
-
paddingTop: j && !
|
|
1204
|
-
mobile:
|
|
1211
|
+
className: Se,
|
|
1212
|
+
paddingTop: j && !m && !ae && !S ? 0 : {
|
|
1213
|
+
mobile: m ? 16 : 24,
|
|
1205
1214
|
desktop: 24
|
|
1206
1215
|
},
|
|
1207
1216
|
children: [
|
|
1208
|
-
|
|
1209
|
-
style:
|
|
1210
|
-
[
|
|
1217
|
+
m ? /* @__PURE__ */ e("div", {
|
|
1218
|
+
style: H({
|
|
1219
|
+
[W.mediaBorderRadius]: p.borderRadii.mediaSmall
|
|
1211
1220
|
}),
|
|
1212
1221
|
children: /* @__PURE__ */ e(P, {
|
|
1213
1222
|
paddingBottom: j ? 0 : 40,
|
|
@@ -1215,10 +1224,10 @@ const S = ()=>{
|
|
|
1215
1224
|
mobile: 16,
|
|
1216
1225
|
desktop: 24
|
|
1217
1226
|
},
|
|
1218
|
-
children:
|
|
1227
|
+
children: m
|
|
1219
1228
|
})
|
|
1220
1229
|
}) : /* @__PURE__ */ e(P, {
|
|
1221
|
-
paddingBottom:
|
|
1230
|
+
paddingBottom: ae || S ? j ? 24 : 64 : 0
|
|
1222
1231
|
}),
|
|
1223
1232
|
/* @__PURE__ */ e(P, {
|
|
1224
1233
|
paddingX: {
|
|
@@ -1227,43 +1236,43 @@ const S = ()=>{
|
|
|
1227
1236
|
},
|
|
1228
1237
|
paddingTop: j ? 40 : 0,
|
|
1229
1238
|
paddingBottom: 24,
|
|
1230
|
-
className: j ?
|
|
1231
|
-
children: /* @__PURE__ */ e(
|
|
1232
|
-
title:
|
|
1233
|
-
truncate:
|
|
1234
|
-
weight:
|
|
1235
|
-
as:
|
|
1236
|
-
children:
|
|
1239
|
+
className: j ? Ae : void 0,
|
|
1240
|
+
children: /* @__PURE__ */ e(Ge, {
|
|
1241
|
+
title: y ? /* @__PURE__ */ e(ie, _object_spread_props(_object_spread({}, oe.text4), {
|
|
1242
|
+
truncate: B,
|
|
1243
|
+
weight: me.cardTitle.weight,
|
|
1244
|
+
as: k,
|
|
1245
|
+
children: y
|
|
1237
1246
|
})) : void 0,
|
|
1238
|
-
headline:
|
|
1239
|
-
pretitle:
|
|
1247
|
+
headline: C,
|
|
1248
|
+
pretitle: x ? /* @__PURE__ */ e(D, {
|
|
1240
1249
|
forceMobileSizes: !0,
|
|
1241
|
-
truncate:
|
|
1250
|
+
truncate: T,
|
|
1242
1251
|
as: "div",
|
|
1243
1252
|
regular: !0,
|
|
1244
|
-
textShadow:
|
|
1245
|
-
children:
|
|
1253
|
+
textShadow: L,
|
|
1254
|
+
children: x
|
|
1246
1255
|
}) : void 0,
|
|
1247
|
-
subtitle:
|
|
1256
|
+
subtitle: v ? /* @__PURE__ */ e(D, {
|
|
1248
1257
|
forceMobileSizes: !0,
|
|
1249
|
-
truncate:
|
|
1258
|
+
truncate: V,
|
|
1250
1259
|
as: "div",
|
|
1251
1260
|
regular: !0,
|
|
1252
|
-
textShadow:
|
|
1253
|
-
children:
|
|
1261
|
+
textShadow: L,
|
|
1262
|
+
children: v
|
|
1254
1263
|
}) : void 0,
|
|
1255
|
-
description:
|
|
1264
|
+
description: N ? /* @__PURE__ */ e(D, {
|
|
1256
1265
|
forceMobileSizes: !0,
|
|
1257
1266
|
truncate: M,
|
|
1258
1267
|
as: "p",
|
|
1259
1268
|
regular: !0,
|
|
1260
|
-
textShadow:
|
|
1261
|
-
color: j ?
|
|
1262
|
-
children:
|
|
1269
|
+
textShadow: L,
|
|
1270
|
+
color: j ? p.colors.textPrimary : p.colors.textSecondary,
|
|
1271
|
+
children: N
|
|
1263
1272
|
}) : void 0,
|
|
1264
|
-
headlineRef:
|
|
1265
|
-
extra:
|
|
1266
|
-
extraRef:
|
|
1273
|
+
headlineRef: ce,
|
|
1274
|
+
extra: E,
|
|
1275
|
+
extraRef: G
|
|
1267
1276
|
})
|
|
1268
1277
|
})
|
|
1269
1278
|
]
|
|
@@ -1273,12 +1282,13 @@ const S = ()=>{
|
|
|
1273
1282
|
]
|
|
1274
1283
|
}))
|
|
1275
1284
|
}),
|
|
1276
|
-
/* @__PURE__ */ e(
|
|
1277
|
-
onClose:
|
|
1285
|
+
/* @__PURE__ */ e(U, {
|
|
1286
|
+
onClose: u,
|
|
1287
|
+
closeButtonLabel: g,
|
|
1278
1288
|
actions: c,
|
|
1279
|
-
type:
|
|
1289
|
+
type: X || S ? "media" : te === "inverse" ? "inverse" : "default"
|
|
1280
1290
|
})
|
|
1281
1291
|
]
|
|
1282
1292
|
});
|
|
1283
1293
|
});
|
|
1284
|
-
export {
|
|
1294
|
+
export { ma as CardActionIconButton, fa as CardActionSpinner, U as CardActionsGroup, Ja as DataCard, Ua as DisplayDataCard, Qa as DisplayMediaCard, _a as MediaCard, $a as NakedCard, Ya as PosterCard, qa as SmallNakedCard, Ka as SnapCard, Ee as useVideoWithControls };
|