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