@telefonica/mistica 14.7.0 → 14.8.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/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +1 -1
- package/dist/boxed.js +17 -18
- package/dist/button-group.css-mistica.js +3 -3
- package/dist/button-layout.css-mistica.js +8 -8
- package/dist/button.css-mistica.js +19 -19
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +11 -8
- package/dist/card.css.d.ts +4 -1
- package/dist/card.d.ts +29 -7
- package/dist/card.js +423 -291
- package/dist/carousel.css-mistica.js +13 -13
- package/dist/checkbox.css-mistica.js +10 -10
- package/dist/chip.css-mistica.js +3 -3
- package/dist/circle.css-mistica.js +2 -2
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/cvv-field.css-mistica.js +3 -3
- package/dist/dialog.css-mistica.js +6 -6
- package/dist/double-field.css-mistica.js +4 -4
- package/dist/empty-state-card.css-mistica.js +2 -2
- package/dist/empty-state.css-mistica.js +2 -2
- package/dist/feedback.css-mistica.js +5 -5
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/fixed-footer-layout.js +16 -16
- package/dist/hero.css-mistica.js +3 -3
- package/dist/highlighted-card.css-mistica.js +4 -4
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +11 -10
- package/dist/icon-button.css-mistica.js +1 -1
- package/dist/icon-button.js +24 -20
- package/dist/image.css-mistica.js +1 -1
- package/dist/image.d.ts +6 -0
- package/dist/image.js +67 -52
- package/dist/list.css-mistica.js +8 -8
- package/dist/loading-bar.css-mistica.js +6 -6
- package/dist/maybe-dismissable.css-mistica.js +3 -3
- package/dist/menu.css-mistica.js +2 -2
- package/dist/navigation-bar.css-mistica.js +14 -14
- package/dist/navigation-breadcrumbs.css-mistica.js +2 -2
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +2 -2
- package/dist/popover.css-mistica.js +9 -9
- package/dist/progress-bar.css-mistica.js +1 -1
- package/dist/radio-button.css-mistica.js +9 -9
- package/dist/responsive-layout.css-mistica.js +6 -6
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +12 -12
- package/dist/skeletons.css-mistica.js +3 -3
- package/dist/skins/blau.js +5 -3
- package/dist/skins/movistar-legacy.js +2 -0
- package/dist/skins/movistar.js +3 -1
- package/dist/skins/o2-classic.js +2 -0
- package/dist/skins/o2.js +3 -1
- package/dist/skins/skin-contract.css-mistica.js +202 -200
- package/dist/skins/skin-contract.css.d.ts +2 -0
- package/dist/skins/telefonica.js +4 -2
- package/dist/skins/{types.d.ts → types/colors.d.ts} +1 -47
- package/dist/skins/types/index.d.ts +48 -0
- package/dist/skins/vivo.js +3 -1
- package/dist/snackbar.css-mistica.js +5 -5
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/spinner.js +40 -60
- package/dist/sprinkles.css-mistica.js +329 -323
- package/dist/stepper.css-mistica.js +8 -8
- package/dist/switch-component.css-mistica.js +22 -22
- package/dist/tabs.css-mistica.js +15 -15
- package/dist/tag.css-mistica.js +2 -2
- package/dist/text-field-base.css-mistica.js +5 -5
- package/dist/text-field-base.js +14 -14
- package/dist/text-field-components.css-mistica.js +9 -9
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/tooltip.css-mistica.js +7 -7
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/video.css-mistica.js +1 -1
- package/dist/video.d.ts +11 -4
- package/dist/video.js +116 -37
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +1 -1
- package/dist-es/boxed.js +27 -28
- package/dist-es/button-group.css-mistica.js +2 -2
- package/dist-es/button-layout.css-mistica.js +6 -6
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +464 -332
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +3 -3
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/cvv-field.css-mistica.js +2 -2
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +4 -4
- package/dist-es/empty-state-card.css-mistica.js +2 -2
- package/dist-es/empty-state.css-mistica.js +2 -2
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.js +30 -30
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +4 -4
- package/dist-es/hooks.js +8 -8
- package/dist-es/icon-button.css-mistica.js +1 -1
- package/dist-es/icon-button.js +27 -23
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/image.js +82 -69
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/maybe-dismissable.css-mistica.js +2 -2
- package/dist-es/menu.css-mistica.js +2 -2
- package/dist-es/navigation-bar.css-mistica.js +11 -11
- package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +1 -1
- package/dist-es/radio-button.css-mistica.js +6 -6
- package/dist-es/responsive-layout.css-mistica.js +5 -5
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +9 -9
- package/dist-es/skeletons.css-mistica.js +2 -2
- package/dist-es/skins/blau.js +5 -3
- package/dist-es/skins/movistar-legacy.js +2 -0
- package/dist-es/skins/movistar.js +3 -1
- package/dist-es/skins/o2-classic.js +2 -0
- package/dist-es/skins/o2.js +3 -1
- package/dist-es/skins/skin-contract.css-mistica.js +202 -200
- package/dist-es/skins/telefonica.js +4 -2
- package/dist-es/skins/vivo.js +3 -1
- package/dist-es/snackbar.css-mistica.js +2 -2
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/spinner.js +68 -88
- package/dist-es/sprinkles.css-mistica.js +329 -323
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +19 -19
- package/dist-es/tabs.css-mistica.js +10 -10
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-base.js +20 -20
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/video.js +127 -48
- package/package.json +3 -3
package/dist-es/card.js
CHANGED
|
@@ -77,99 +77,178 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import * as
|
|
81
|
-
import
|
|
80
|
+
import * as C from "react";
|
|
81
|
+
import ce from "./tag.js";
|
|
82
82
|
import f from "./stack.js";
|
|
83
|
-
import
|
|
84
|
-
import { Text2 as
|
|
85
|
-
import { Boxed as
|
|
86
|
-
import
|
|
87
|
-
import { MediaBorderRadiusProvider as
|
|
88
|
-
import { BaseTouchable as
|
|
89
|
-
import { vars as
|
|
90
|
-
import { boxed as
|
|
91
|
-
import { useTheme as
|
|
92
|
-
import { sprinkles as
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
83
|
+
import w from "./box.js";
|
|
84
|
+
import { Text2 as b, Text6 as he, Text3 as pe, Text as J } from "./text.js";
|
|
85
|
+
import { Boxed as j, InternalBoxed as K } from "./boxed.js";
|
|
86
|
+
import V from "./button-group.js";
|
|
87
|
+
import ue, { MediaBorderRadiusProvider as me } from "./image.js";
|
|
88
|
+
import { BaseTouchable as ge } from "./touchable.js";
|
|
89
|
+
import { vars as y } from "./skins/skin-contract.css-mistica.js";
|
|
90
|
+
import { boxed as P, mediaCard as fe, mediaCardContent as ve, dataCard as ye, actions as Q, snapCardTouchableHover as Ce, snapCardTouchableHoverTransparent as Te, snapCard as xe, videoAction as _, displayCardContainer as U, displayCardBackground as Y, displayCardContent as Z, displayCardGradient as $, cardActionIconButton as q, cardAction as Ie, cardActionInverse as Se } from "./card.css-mistica.js";
|
|
91
|
+
import { useTheme as G } from "./hooks.js";
|
|
92
|
+
import { sprinkles as X } from "./sprinkles.css-mistica.js";
|
|
93
|
+
import be from "./inline.js";
|
|
94
|
+
import Ne from "./icon-button.js";
|
|
95
|
+
import we from "./generated/mistica-icons/icon-close-regular.js";
|
|
96
|
+
import Ae from "./generated/mistica-icons/icon-pause-filled.js";
|
|
97
|
+
import Be from "./generated/mistica-icons/icon-play-filled.js";
|
|
98
|
+
import { combineRefs as Re } from "./utils/common.js";
|
|
99
|
+
import ze from "./spinner.js";
|
|
100
|
+
import De from "./video.js";
|
|
101
|
+
import { useIsInverseVariant as ee, ThemeVariant as re } from "./theme-variant-context.js";
|
|
96
102
|
import { jsx as e, jsxs as t } from "./_virtual/jsx-runtime.js";
|
|
97
|
-
const
|
|
98
|
-
let { actions:
|
|
99
|
-
return e(
|
|
103
|
+
const ie = (param)=>/* @__PURE__ */ {
|
|
104
|
+
let { actions: r , isInverse: i } = param;
|
|
105
|
+
return e(be, {
|
|
100
106
|
space: 0,
|
|
101
|
-
children:
|
|
102
|
-
let { onPress:
|
|
103
|
-
return e(
|
|
107
|
+
children: r.map((param, a)=>{
|
|
108
|
+
let { onPress: n , label: s , Icon: l , iconSize: o = 20 , iconColor: p = y.colors.neutralHigh , iconBackground: c = Ie , iconBackgroundInverse: d = Se } = param;
|
|
109
|
+
return l ? /* @__PURE__ */ e(Ne, {
|
|
104
110
|
size: 48,
|
|
105
|
-
onPress:
|
|
106
|
-
"aria-label":
|
|
107
|
-
className:
|
|
111
|
+
onPress: n,
|
|
112
|
+
"aria-label": s,
|
|
113
|
+
className: q,
|
|
108
114
|
style: {
|
|
109
115
|
display: "flex"
|
|
110
116
|
},
|
|
111
117
|
children: /* @__PURE__ */ e("div", {
|
|
112
|
-
className:
|
|
113
|
-
children: /* @__PURE__ */ e(
|
|
114
|
-
color:
|
|
115
|
-
size:
|
|
118
|
+
className: i ? d : c,
|
|
119
|
+
children: /* @__PURE__ */ e(l, {
|
|
120
|
+
color: p,
|
|
121
|
+
size: o
|
|
116
122
|
})
|
|
117
123
|
})
|
|
118
|
-
},
|
|
124
|
+
}, a) : /* @__PURE__ */ e("div", {
|
|
125
|
+
className: q
|
|
126
|
+
}, a);
|
|
119
127
|
})
|
|
120
128
|
});
|
|
121
|
-
},
|
|
122
|
-
const { texts:
|
|
123
|
-
...
|
|
129
|
+
}, ne = (r, i)=>{
|
|
130
|
+
const { texts: n } = G(), s = r ? [
|
|
131
|
+
...r
|
|
124
132
|
] : [];
|
|
125
|
-
return
|
|
126
|
-
label:
|
|
127
|
-
onPress:
|
|
128
|
-
Icon:
|
|
129
|
-
}),
|
|
130
|
-
},
|
|
133
|
+
return i && s.push({
|
|
134
|
+
label: n.closeButtonLabel,
|
|
135
|
+
onPress: i,
|
|
136
|
+
Icon: we
|
|
137
|
+
}), s;
|
|
138
|
+
}, Pe = {
|
|
131
139
|
"1:1": "1",
|
|
132
140
|
"16:9": "16 / 9",
|
|
133
141
|
"7:10": "7 / 10",
|
|
134
142
|
"9:10": "9 / 10",
|
|
135
143
|
auto: "auto"
|
|
136
|
-
},
|
|
137
|
-
let { children:
|
|
138
|
-
const
|
|
144
|
+
}, F = (param)=>{
|
|
145
|
+
let { children: r , width: i = "100%" , height: n = "100%" , minWidth: s , minHeight: l , aspectRatio: o , actions: p , onClose: c , isInverse: d , "aria-label": a } = param;
|
|
146
|
+
const h = ne(p, c), u = h.length > 0, m = o ? typeof o == "number" ? String(o) : Pe[o] : void 0;
|
|
139
147
|
return /* @__PURE__ */ t("section", {
|
|
140
|
-
"aria-label":
|
|
148
|
+
"aria-label": a,
|
|
141
149
|
style: {
|
|
142
|
-
width:
|
|
143
|
-
height:
|
|
144
|
-
minWidth:
|
|
145
|
-
minHeight:
|
|
146
|
-
aspectRatio:
|
|
150
|
+
width: i,
|
|
151
|
+
height: n,
|
|
152
|
+
minWidth: s,
|
|
153
|
+
minHeight: l,
|
|
154
|
+
aspectRatio: m,
|
|
147
155
|
position: "relative"
|
|
148
156
|
},
|
|
149
157
|
children: [
|
|
150
|
-
|
|
151
|
-
|
|
158
|
+
r,
|
|
159
|
+
u && /* @__PURE__ */ e("div", {
|
|
152
160
|
style: {
|
|
153
161
|
position: "absolute",
|
|
154
162
|
right: 8,
|
|
155
163
|
top: 8,
|
|
156
164
|
zIndex: 2
|
|
157
165
|
},
|
|
158
|
-
children: /* @__PURE__ */ e(
|
|
159
|
-
actions:
|
|
160
|
-
isInverse:
|
|
166
|
+
children: /* @__PURE__ */ e(ie, {
|
|
167
|
+
actions: h,
|
|
168
|
+
isInverse: d
|
|
161
169
|
})
|
|
162
170
|
})
|
|
163
171
|
]
|
|
164
172
|
});
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
|
|
173
|
+
}, ae = (r)=>/* @__PURE__ */ e(ue, {
|
|
174
|
+
width: "100%",
|
|
175
|
+
height: "100%",
|
|
176
|
+
src: r != null ? r : "//:0"
|
|
177
|
+
}), Me = {
|
|
178
|
+
loading: {
|
|
179
|
+
showSpinner: "loadingTimeout",
|
|
180
|
+
play: "playing",
|
|
181
|
+
pause: "paused",
|
|
182
|
+
fail: "error"
|
|
183
|
+
},
|
|
184
|
+
loadingTimeout: {
|
|
185
|
+
play: "playing",
|
|
186
|
+
pause: "paused",
|
|
187
|
+
fail: "error",
|
|
188
|
+
reset: "loading"
|
|
189
|
+
},
|
|
190
|
+
playing: {
|
|
191
|
+
pause: "paused",
|
|
192
|
+
reset: "loading"
|
|
193
|
+
},
|
|
194
|
+
paused: {
|
|
195
|
+
play: "playing",
|
|
196
|
+
reset: "loading"
|
|
197
|
+
},
|
|
198
|
+
error: {
|
|
199
|
+
reset: "loading"
|
|
200
|
+
}
|
|
201
|
+
}, He = (r, i)=>Me[r][i] || r, oe = (r)=>{
|
|
202
|
+
switch(r){
|
|
203
|
+
case "playing":
|
|
204
|
+
return Ae;
|
|
205
|
+
case "paused":
|
|
206
|
+
case "loading":
|
|
207
|
+
return Be;
|
|
208
|
+
case "loadingTimeout":
|
|
209
|
+
return ze;
|
|
210
|
+
default:
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
}, te = (r, i, n)=>{
|
|
214
|
+
const s = C.useRef(null), [l, o] = C.useReducer(He, "loading");
|
|
215
|
+
return C.useEffect(()=>{
|
|
216
|
+
var a;
|
|
217
|
+
const d = setTimeout(()=>o("showSpinner"), 2e3);
|
|
218
|
+
return (a = s.current) == null || a.load(), ()=>{
|
|
219
|
+
clearTimeout(d), o("reset");
|
|
220
|
+
};
|
|
221
|
+
}, [
|
|
222
|
+
r
|
|
223
|
+
]), {
|
|
224
|
+
video: C.useMemo(()=>r ? /* @__PURE__ */ e(De, {
|
|
225
|
+
ref: Re(s, n),
|
|
226
|
+
src: r,
|
|
227
|
+
width: "100%",
|
|
228
|
+
height: "100%",
|
|
229
|
+
poster: i,
|
|
230
|
+
onError: ()=>o("fail"),
|
|
231
|
+
onPause: ()=>o("pause"),
|
|
232
|
+
onPlay: ()=>o("play")
|
|
233
|
+
}) : void 0, [
|
|
234
|
+
n,
|
|
235
|
+
r,
|
|
236
|
+
i
|
|
237
|
+
]),
|
|
238
|
+
videoStatus: l,
|
|
239
|
+
onVideoControlPress: ()=>{
|
|
240
|
+
const d = s.current;
|
|
241
|
+
d && (l === "loading" ? o("showSpinner") : l === "paused" ? d.play() : l === "playing" && d.pause());
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
}, se = (param)=>{
|
|
245
|
+
let { headline: r , pretitle: i , pretitleLinesMax: n , title: s , titleLinesMax: l , subtitle: o , subtitleLinesMax: p , description: c , descriptionLinesMax: d , extra: a , button: h , buttonLink: u } = param;
|
|
246
|
+
const { textPresets: m } = G(), v = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(ce, {
|
|
168
247
|
type: "promo",
|
|
169
|
-
children:
|
|
170
|
-
}) :
|
|
248
|
+
children: r
|
|
249
|
+
}) : r : null;
|
|
171
250
|
return /* @__PURE__ */ t("div", {
|
|
172
|
-
className:
|
|
251
|
+
className: X({
|
|
173
252
|
display: "flex",
|
|
174
253
|
flex: 1,
|
|
175
254
|
justifyContent: "space-between",
|
|
@@ -181,34 +260,34 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
181
260
|
/* @__PURE__ */ t(f, {
|
|
182
261
|
space: 8,
|
|
183
262
|
children: [
|
|
184
|
-
(
|
|
263
|
+
(r || i || s || o) && /* @__PURE__ */ e("header", {
|
|
185
264
|
children: /* @__PURE__ */ t(f, {
|
|
186
265
|
space: 8,
|
|
187
266
|
children: [
|
|
188
|
-
|
|
267
|
+
v(),
|
|
189
268
|
/* @__PURE__ */ t(f, {
|
|
190
269
|
space: 4,
|
|
191
270
|
children: [
|
|
192
|
-
|
|
193
|
-
truncate:
|
|
271
|
+
i && /* @__PURE__ */ e(b, {
|
|
272
|
+
truncate: n,
|
|
194
273
|
as: "div",
|
|
195
274
|
regular: !0,
|
|
196
275
|
hyphens: "auto",
|
|
197
|
-
children:
|
|
276
|
+
children: i
|
|
198
277
|
}),
|
|
199
|
-
/* @__PURE__ */ e(
|
|
278
|
+
/* @__PURE__ */ e(J, {
|
|
200
279
|
mobileSize: 18,
|
|
201
280
|
mobileLineHeight: "24px",
|
|
202
281
|
desktopSize: 20,
|
|
203
282
|
desktopLineHeight: "28px",
|
|
204
|
-
truncate:
|
|
205
|
-
weight:
|
|
283
|
+
truncate: l,
|
|
284
|
+
weight: m.cardTitle.weight,
|
|
206
285
|
as: "h3",
|
|
207
286
|
hyphens: "auto",
|
|
208
|
-
children:
|
|
287
|
+
children: s
|
|
209
288
|
}),
|
|
210
|
-
/* @__PURE__ */ e(
|
|
211
|
-
truncate:
|
|
289
|
+
/* @__PURE__ */ e(b, {
|
|
290
|
+
truncate: p,
|
|
212
291
|
as: "div",
|
|
213
292
|
regular: !0,
|
|
214
293
|
hyphens: "auto",
|
|
@@ -219,150 +298,150 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
219
298
|
]
|
|
220
299
|
})
|
|
221
300
|
}),
|
|
222
|
-
|
|
223
|
-
truncate:
|
|
301
|
+
c && /* @__PURE__ */ e(b, {
|
|
302
|
+
truncate: d,
|
|
224
303
|
as: "p",
|
|
225
304
|
regular: !0,
|
|
226
|
-
color:
|
|
305
|
+
color: y.colors.textSecondary,
|
|
227
306
|
hyphens: "auto",
|
|
228
|
-
children:
|
|
307
|
+
children: c
|
|
229
308
|
})
|
|
230
309
|
]
|
|
231
310
|
}),
|
|
232
|
-
|
|
233
|
-
children:
|
|
311
|
+
a && /* @__PURE__ */ e("div", {
|
|
312
|
+
children: a
|
|
234
313
|
})
|
|
235
314
|
]
|
|
236
315
|
}),
|
|
237
|
-
(
|
|
238
|
-
className:
|
|
239
|
-
children: /* @__PURE__ */ e(
|
|
240
|
-
primaryButton:
|
|
241
|
-
link:
|
|
316
|
+
(h || u) && /* @__PURE__ */ e("div", {
|
|
317
|
+
className: Q,
|
|
318
|
+
children: /* @__PURE__ */ e(V, {
|
|
319
|
+
primaryButton: h,
|
|
320
|
+
link: u
|
|
242
321
|
})
|
|
243
322
|
})
|
|
244
323
|
]
|
|
245
324
|
});
|
|
246
|
-
},
|
|
247
|
-
let { media:
|
|
248
|
-
return e(
|
|
249
|
-
onClose:
|
|
250
|
-
actions:
|
|
251
|
-
"aria-label":
|
|
325
|
+
}, or = /*#__PURE__*/ C.forwardRef((param, g)=>/* @__PURE__ */ {
|
|
326
|
+
let { media: r , headline: i , pretitle: n , pretitleLinesMax: s , subtitle: l , subtitleLinesMax: o , title: p , titleLinesMax: c , description: d , descriptionLinesMax: a , extra: h , actions: u , button: m , buttonLink: v , dataAttributes: I , "aria-label": T , onClose: x } = param;
|
|
327
|
+
return e(F, {
|
|
328
|
+
onClose: x,
|
|
329
|
+
actions: u,
|
|
330
|
+
"aria-label": T,
|
|
252
331
|
isInverse: !0,
|
|
253
|
-
children: /* @__PURE__ */ e(
|
|
254
|
-
className:
|
|
332
|
+
children: /* @__PURE__ */ e(j, {
|
|
333
|
+
className: P,
|
|
255
334
|
dataAttributes: _objectSpread({
|
|
256
335
|
"component-name": "MediaCard"
|
|
257
|
-
},
|
|
258
|
-
ref:
|
|
336
|
+
}, I),
|
|
337
|
+
ref: g,
|
|
259
338
|
width: "100%",
|
|
260
339
|
height: "100%",
|
|
261
340
|
children: /* @__PURE__ */ t("div", {
|
|
262
|
-
className:
|
|
341
|
+
className: fe,
|
|
263
342
|
children: [
|
|
264
|
-
/* @__PURE__ */ e(
|
|
343
|
+
/* @__PURE__ */ e(me, {
|
|
265
344
|
value: !1,
|
|
266
|
-
children:
|
|
345
|
+
children: r
|
|
267
346
|
}),
|
|
268
347
|
/* @__PURE__ */ e("div", {
|
|
269
|
-
className:
|
|
270
|
-
children: /* @__PURE__ */ e(
|
|
271
|
-
headline:
|
|
272
|
-
pretitle:
|
|
273
|
-
pretitleLinesMax:
|
|
274
|
-
title:
|
|
275
|
-
titleLinesMax:
|
|
276
|
-
subtitle:
|
|
348
|
+
className: ve,
|
|
349
|
+
children: /* @__PURE__ */ e(se, {
|
|
350
|
+
headline: i,
|
|
351
|
+
pretitle: n,
|
|
352
|
+
pretitleLinesMax: s,
|
|
353
|
+
title: p,
|
|
354
|
+
titleLinesMax: c,
|
|
355
|
+
subtitle: l,
|
|
277
356
|
subtitleLinesMax: o,
|
|
278
|
-
description:
|
|
279
|
-
descriptionLinesMax:
|
|
280
|
-
extra:
|
|
281
|
-
button:
|
|
282
|
-
buttonLink:
|
|
357
|
+
description: d,
|
|
358
|
+
descriptionLinesMax: a,
|
|
359
|
+
extra: h,
|
|
360
|
+
button: m,
|
|
361
|
+
buttonLink: v
|
|
283
362
|
})
|
|
284
363
|
})
|
|
285
364
|
]
|
|
286
365
|
})
|
|
287
366
|
})
|
|
288
367
|
});
|
|
289
|
-
}),
|
|
290
|
-
let { icon:
|
|
291
|
-
const
|
|
368
|
+
}), tr = /*#__PURE__*/ C.forwardRef((param, g)=>{
|
|
369
|
+
let { icon: r , headline: i , pretitle: n , pretitleLinesMax: s , title: l , titleLinesMax: o , subtitle: p , subtitleLinesMax: c , description: d , descriptionLinesMax: a , extra: h , actions: u , button: m , buttonLink: v , dataAttributes: I , "aria-label": T , onClose: x } = param;
|
|
370
|
+
const N = ne(u, x), z = N.length > 0, A = !!r, D = {
|
|
292
371
|
position: "absolute",
|
|
293
372
|
top: 8,
|
|
294
373
|
right: 8,
|
|
295
374
|
zIndex: 2
|
|
296
|
-
},
|
|
375
|
+
}, B = {
|
|
297
376
|
marginRight: -8,
|
|
298
377
|
marginTop: -16
|
|
299
378
|
};
|
|
300
379
|
return /* @__PURE__ */ e("section", {
|
|
301
|
-
"aria-label":
|
|
380
|
+
"aria-label": T,
|
|
302
381
|
style: {
|
|
303
382
|
height: "100%",
|
|
304
383
|
position: "relative"
|
|
305
384
|
},
|
|
306
|
-
children: /* @__PURE__ */ e(
|
|
307
|
-
className:
|
|
385
|
+
children: /* @__PURE__ */ e(j, {
|
|
386
|
+
className: P,
|
|
308
387
|
dataAttributes: _objectSpread({
|
|
309
388
|
"component-name": "DataCard"
|
|
310
|
-
},
|
|
311
|
-
ref:
|
|
389
|
+
}, I),
|
|
390
|
+
ref: g,
|
|
312
391
|
width: "100%",
|
|
313
392
|
height: "100%",
|
|
314
393
|
children: /* @__PURE__ */ t("div", {
|
|
315
|
-
className:
|
|
394
|
+
className: ye,
|
|
316
395
|
children: [
|
|
317
396
|
/* @__PURE__ */ t("div", {
|
|
318
|
-
className:
|
|
397
|
+
className: X({
|
|
319
398
|
display: "flex"
|
|
320
399
|
}),
|
|
321
400
|
children: [
|
|
322
401
|
/* @__PURE__ */ t(f, {
|
|
323
402
|
space: 16,
|
|
324
|
-
className:
|
|
403
|
+
className: X({
|
|
325
404
|
flex: 1
|
|
326
405
|
}),
|
|
327
406
|
children: [
|
|
328
|
-
|
|
329
|
-
/* @__PURE__ */ e(
|
|
330
|
-
headline:
|
|
331
|
-
pretitle:
|
|
332
|
-
pretitleLinesMax:
|
|
333
|
-
title:
|
|
407
|
+
A ? r : null,
|
|
408
|
+
/* @__PURE__ */ e(se, {
|
|
409
|
+
headline: i,
|
|
410
|
+
pretitle: n,
|
|
411
|
+
pretitleLinesMax: s,
|
|
412
|
+
title: l,
|
|
334
413
|
titleLinesMax: o,
|
|
335
|
-
subtitle:
|
|
336
|
-
subtitleLinesMax:
|
|
337
|
-
description:
|
|
338
|
-
descriptionLinesMax:
|
|
414
|
+
subtitle: p,
|
|
415
|
+
subtitleLinesMax: c,
|
|
416
|
+
description: d,
|
|
417
|
+
descriptionLinesMax: a
|
|
339
418
|
})
|
|
340
419
|
]
|
|
341
420
|
}),
|
|
342
|
-
|
|
343
|
-
style:
|
|
344
|
-
children: /* @__PURE__ */ e(
|
|
345
|
-
actions:
|
|
421
|
+
z && /* @__PURE__ */ e("div", {
|
|
422
|
+
style: A ? D : B,
|
|
423
|
+
children: /* @__PURE__ */ e(ie, {
|
|
424
|
+
actions: N
|
|
346
425
|
})
|
|
347
426
|
})
|
|
348
427
|
]
|
|
349
428
|
}),
|
|
350
|
-
|
|
351
|
-
children:
|
|
429
|
+
h && /* @__PURE__ */ e("div", {
|
|
430
|
+
children: h
|
|
352
431
|
}),
|
|
353
|
-
(
|
|
354
|
-
className:
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
356
|
-
primaryButton:
|
|
357
|
-
link:
|
|
432
|
+
(m || v) && /* @__PURE__ */ e("div", {
|
|
433
|
+
className: Q,
|
|
434
|
+
children: /* @__PURE__ */ e(V, {
|
|
435
|
+
primaryButton: m,
|
|
436
|
+
link: v
|
|
358
437
|
})
|
|
359
438
|
})
|
|
360
439
|
]
|
|
361
440
|
})
|
|
362
441
|
})
|
|
363
442
|
});
|
|
364
|
-
}),
|
|
365
|
-
var { icon:
|
|
443
|
+
}), sr = /*#__PURE__*/ C.forwardRef((_param, h)=>{
|
|
444
|
+
var { icon: r , title: i , titleLinesMax: n , subtitle: s , subtitleLinesMax: l , dataAttributes: o , "aria-label": p , extra: c , isInverse: d = !1 } = _param, a = _objectWithoutProperties(_param, [
|
|
366
445
|
"icon",
|
|
367
446
|
"title",
|
|
368
447
|
"titleLinesMax",
|
|
@@ -373,281 +452,334 @@ const O = (param)=>/* @__PURE__ */ {
|
|
|
373
452
|
"extra",
|
|
374
453
|
"isInverse"
|
|
375
454
|
]);
|
|
376
|
-
const { isDarkMode:
|
|
377
|
-
return /* @__PURE__ */ e(
|
|
378
|
-
className:
|
|
455
|
+
const { isDarkMode: u } = G(), m = Boolean(a.to || a.href || a.onPress);
|
|
456
|
+
return /* @__PURE__ */ e(j, {
|
|
457
|
+
className: P,
|
|
379
458
|
dataAttributes: _objectSpread({
|
|
380
459
|
"component-name": "SnapCard"
|
|
381
460
|
}, o),
|
|
382
|
-
ref:
|
|
383
|
-
isInverse:
|
|
461
|
+
ref: h,
|
|
462
|
+
isInverse: d,
|
|
384
463
|
width: "100%",
|
|
385
464
|
height: "100%",
|
|
386
|
-
children: /* @__PURE__ */ e(
|
|
465
|
+
children: /* @__PURE__ */ e(ge, _objectSpreadProps(_objectSpread({
|
|
387
466
|
maybe: !0
|
|
388
|
-
},
|
|
389
|
-
className:
|
|
390
|
-
"aria-label":
|
|
467
|
+
}, a), {
|
|
468
|
+
className: m && !d && !u ? Ce : Te,
|
|
469
|
+
"aria-label": p,
|
|
391
470
|
children: /* @__PURE__ */ t("section", {
|
|
392
|
-
className:
|
|
471
|
+
className: xe,
|
|
393
472
|
children: [
|
|
394
473
|
/* @__PURE__ */ t("div", {
|
|
395
474
|
children: [
|
|
396
|
-
|
|
475
|
+
r && /* @__PURE__ */ e(w, {
|
|
397
476
|
paddingBottom: 16,
|
|
398
|
-
children:
|
|
477
|
+
children: r
|
|
399
478
|
}),
|
|
400
479
|
/* @__PURE__ */ t(f, {
|
|
401
480
|
space: 4,
|
|
402
481
|
children: [
|
|
403
|
-
|
|
404
|
-
truncate:
|
|
482
|
+
i && /* @__PURE__ */ e(b, {
|
|
483
|
+
truncate: n,
|
|
405
484
|
as: "h3",
|
|
406
485
|
regular: !0,
|
|
407
486
|
hyphens: "auto",
|
|
408
|
-
children:
|
|
487
|
+
children: i
|
|
409
488
|
}),
|
|
410
|
-
|
|
411
|
-
truncate:
|
|
489
|
+
s && /* @__PURE__ */ e(b, {
|
|
490
|
+
truncate: l,
|
|
412
491
|
regular: !0,
|
|
413
|
-
color:
|
|
492
|
+
color: y.colors.textSecondary,
|
|
414
493
|
as: "p",
|
|
415
494
|
hyphens: "auto",
|
|
416
|
-
children:
|
|
495
|
+
children: s
|
|
417
496
|
})
|
|
418
497
|
]
|
|
419
498
|
})
|
|
420
499
|
]
|
|
421
500
|
}),
|
|
422
|
-
|
|
423
|
-
children:
|
|
501
|
+
c && /* @__PURE__ */ e("div", {
|
|
502
|
+
children: c
|
|
424
503
|
})
|
|
425
504
|
]
|
|
426
505
|
})
|
|
427
506
|
}))
|
|
428
507
|
});
|
|
429
|
-
}),
|
|
430
|
-
let { isInverse:
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
508
|
+
}), de = /*#__PURE__*/ C.forwardRef((param, M)=>{
|
|
509
|
+
let { isInverse: r , backgroundImage: i , backgroundVideo: n , backgroundVideoRef: s , poster: l , icon: o , headline: p , pretitle: c , pretitleLinesMax: d , title: a , titleLinesMax: h , description: u , descriptionLinesMax: m , extra: v , button: I , secondaryButton: T , onClose: x , actions: g , buttonLink: N , dataAttributes: z , width: A , height: D , aspectRatio: B , "aria-label": W } = param;
|
|
510
|
+
const S = ae(i), { video: H , videoStatus: E , onVideoControlPress: k } = te(n, l, s);
|
|
511
|
+
n && (g = [
|
|
512
|
+
{
|
|
513
|
+
Icon: oe(E),
|
|
514
|
+
onPress: k,
|
|
515
|
+
label: "Video controls",
|
|
516
|
+
iconSize: E === "loadingTimeout" ? 16 : 12,
|
|
517
|
+
iconColor: y.colors.inverse,
|
|
518
|
+
iconBackground: _,
|
|
519
|
+
iconBackgroundInverse: _
|
|
520
|
+
}
|
|
521
|
+
]);
|
|
522
|
+
const L = ee(), R = !!i || !!n, O = R ? "0 0 16px rgba(0,0,0,0.4)" : void 0, le = (g == null ? void 0 : g.length) || x;
|
|
523
|
+
return /* @__PURE__ */ e(F, {
|
|
524
|
+
width: A,
|
|
525
|
+
height: D,
|
|
526
|
+
aspectRatio: B,
|
|
527
|
+
onClose: x,
|
|
437
528
|
actions: g,
|
|
438
|
-
"aria-label":
|
|
439
|
-
isInverse:
|
|
440
|
-
children: /* @__PURE__ */ e(
|
|
441
|
-
borderRadius:
|
|
442
|
-
className:
|
|
443
|
-
dataAttributes:
|
|
444
|
-
ref:
|
|
529
|
+
"aria-label": W,
|
|
530
|
+
isInverse: r,
|
|
531
|
+
children: /* @__PURE__ */ e(K, {
|
|
532
|
+
borderRadius: y.borderRadii.legacyDisplay,
|
|
533
|
+
className: P,
|
|
534
|
+
dataAttributes: z,
|
|
535
|
+
ref: M,
|
|
445
536
|
width: "100%",
|
|
446
537
|
minHeight: "100%",
|
|
447
|
-
isInverse:
|
|
448
|
-
background:
|
|
538
|
+
isInverse: r,
|
|
539
|
+
background: i || n ? L ? y.colors.backgroundContainerBrandOverInverse : y.colors.backgroundContainer : void 0,
|
|
449
540
|
children: /* @__PURE__ */ t("div", {
|
|
450
|
-
className:
|
|
451
|
-
style: {
|
|
452
|
-
backgroundImage: r ? `url("${CSS.escape(r)}")` : void 0,
|
|
453
|
-
paddingTop: x && !i && !F ? 0 : 24
|
|
454
|
-
},
|
|
541
|
+
className: U,
|
|
455
542
|
children: [
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
543
|
+
/* @__PURE__ */ e(re, {
|
|
544
|
+
isInverse: L,
|
|
545
|
+
children: /* @__PURE__ */ e("div", {
|
|
546
|
+
className: Y,
|
|
547
|
+
style: {
|
|
548
|
+
zIndex: 0
|
|
549
|
+
},
|
|
550
|
+
children: n ? H : i ? S : void 0
|
|
551
|
+
})
|
|
462
552
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
553
|
+
/* @__PURE__ */ t("div", {
|
|
554
|
+
className: Z,
|
|
555
|
+
style: {
|
|
556
|
+
paddingTop: R && !o && !le ? 0 : 24,
|
|
557
|
+
zIndex: 1
|
|
558
|
+
},
|
|
559
|
+
children: [
|
|
560
|
+
o ? /* @__PURE__ */ e(w, {
|
|
561
|
+
paddingBottom: R ? 0 : 40,
|
|
562
|
+
paddingX: 24,
|
|
563
|
+
children: o
|
|
564
|
+
}) : /* @__PURE__ */ e(w, {
|
|
565
|
+
paddingBottom: (g == null ? void 0 : g.length) || x ? R ? 24 : 64 : 0
|
|
566
|
+
}),
|
|
567
|
+
/* @__PURE__ */ e(w, {
|
|
568
|
+
paddingX: 24,
|
|
569
|
+
paddingTop: R ? 40 : 0,
|
|
570
|
+
paddingBottom: 24,
|
|
571
|
+
className: R ? $ : void 0,
|
|
572
|
+
children: /* @__PURE__ */ t(f, {
|
|
573
|
+
space: 24,
|
|
472
574
|
children: [
|
|
473
|
-
/* @__PURE__ */ t(
|
|
474
|
-
space: 8,
|
|
575
|
+
/* @__PURE__ */ t("div", {
|
|
475
576
|
children: [
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
space: 4,
|
|
577
|
+
/* @__PURE__ */ t(f, {
|
|
578
|
+
space: 8,
|
|
579
|
+
children: [
|
|
580
|
+
(p || c || a) && /* @__PURE__ */ e("header", {
|
|
581
|
+
children: /* @__PURE__ */ t(f, {
|
|
582
|
+
space: 16,
|
|
483
583
|
children: [
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
584
|
+
p,
|
|
585
|
+
/* @__PURE__ */ t(f, {
|
|
586
|
+
space: 4,
|
|
587
|
+
children: [
|
|
588
|
+
c && /* @__PURE__ */ e(b, {
|
|
589
|
+
forceMobileSizes: !0,
|
|
590
|
+
truncate: d,
|
|
591
|
+
as: "div",
|
|
592
|
+
regular: !0,
|
|
593
|
+
textShadow: O,
|
|
594
|
+
children: c
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ e(he, {
|
|
597
|
+
forceMobileSizes: !0,
|
|
598
|
+
truncate: h,
|
|
599
|
+
as: "h3",
|
|
600
|
+
textShadow: O,
|
|
601
|
+
hyphens: "auto",
|
|
602
|
+
children: a
|
|
603
|
+
})
|
|
604
|
+
]
|
|
500
605
|
})
|
|
501
606
|
]
|
|
502
607
|
})
|
|
503
|
-
|
|
504
|
-
|
|
608
|
+
}),
|
|
609
|
+
u && /* @__PURE__ */ e(pe, {
|
|
610
|
+
forceMobileSizes: !0,
|
|
611
|
+
truncate: m,
|
|
612
|
+
as: "p",
|
|
613
|
+
regular: !0,
|
|
614
|
+
color: y.colors.textSecondary,
|
|
615
|
+
textShadow: O,
|
|
616
|
+
hyphens: "auto",
|
|
617
|
+
children: u
|
|
618
|
+
})
|
|
619
|
+
]
|
|
505
620
|
}),
|
|
506
|
-
|
|
507
|
-
forceMobileSizes: !0,
|
|
508
|
-
truncate: s,
|
|
509
|
-
as: "p",
|
|
510
|
-
regular: !0,
|
|
511
|
-
color: S.colors.textSecondary,
|
|
512
|
-
textShadow: M,
|
|
513
|
-
hyphens: "auto",
|
|
514
|
-
children: p
|
|
515
|
-
})
|
|
621
|
+
v
|
|
516
622
|
]
|
|
517
623
|
}),
|
|
518
|
-
|
|
624
|
+
(I || T || N) && /* @__PURE__ */ e(V, {
|
|
625
|
+
primaryButton: I,
|
|
626
|
+
secondaryButton: T,
|
|
627
|
+
link: N
|
|
628
|
+
})
|
|
519
629
|
]
|
|
520
|
-
}),
|
|
521
|
-
(m || u || b) && /* @__PURE__ */ e(k, {
|
|
522
|
-
primaryButton: m,
|
|
523
|
-
secondaryButton: u,
|
|
524
|
-
link: b
|
|
525
630
|
})
|
|
526
|
-
|
|
527
|
-
|
|
631
|
+
})
|
|
632
|
+
]
|
|
528
633
|
})
|
|
529
634
|
]
|
|
530
635
|
})
|
|
531
636
|
})
|
|
532
637
|
});
|
|
533
|
-
}),
|
|
534
|
-
var { dataAttributes:
|
|
638
|
+
}), dr = /*#__PURE__*/ C.forwardRef((_param, n)=>/* @__PURE__ */ {
|
|
639
|
+
var { dataAttributes: r } = _param, i = _objectWithoutProperties(_param, [
|
|
535
640
|
"dataAttributes"
|
|
536
641
|
]);
|
|
537
|
-
return e(
|
|
538
|
-
ref:
|
|
642
|
+
return e(de, _objectSpreadProps(_objectSpread({}, i), {
|
|
643
|
+
ref: n,
|
|
539
644
|
isInverse: !0,
|
|
540
|
-
dataAttributes: _objectSpreadProps(_objectSpread({},
|
|
645
|
+
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
541
646
|
"component-name": "DisplayMediaCard"
|
|
542
647
|
})
|
|
543
648
|
}));
|
|
544
|
-
}),
|
|
545
|
-
var { dataAttributes:
|
|
649
|
+
}), lr = /*#__PURE__*/ C.forwardRef((_param, n)=>/* @__PURE__ */ {
|
|
650
|
+
var { dataAttributes: r } = _param, i = _objectWithoutProperties(_param, [
|
|
546
651
|
"dataAttributes"
|
|
547
652
|
]);
|
|
548
|
-
return e(
|
|
549
|
-
ref:
|
|
550
|
-
dataAttributes: _objectSpreadProps(_objectSpread({},
|
|
653
|
+
return e(de, _objectSpreadProps(_objectSpread({}, i), {
|
|
654
|
+
ref: n,
|
|
655
|
+
dataAttributes: _objectSpreadProps(_objectSpread({}, r), {
|
|
551
656
|
"component-name": "DisplayDataCard"
|
|
552
657
|
})
|
|
553
658
|
}));
|
|
554
|
-
}),
|
|
555
|
-
let { dataAttributes:
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
659
|
+
}), Ee = 140, _e = 112, cr = /*#__PURE__*/ C.forwardRef((param, z)=>{
|
|
660
|
+
let { dataAttributes: r , backgroundImage: i , backgroundVideo: n , poster: s , backgroundVideoRef: l , width: o , height: p , aspectRatio: c = "7:10" , ariaLabel: d , actions: a , onClose: h , icon: u , headline: m , pretitle: v , pretitleLinesMax: I , title: T , titleLinesMax: x , description: g , descriptionLinesMax: N } = param;
|
|
661
|
+
const A = ae(i), { video: D , videoStatus: B , onVideoControlPress: W } = te(n, s, l);
|
|
662
|
+
n && (a = [
|
|
663
|
+
{
|
|
664
|
+
Icon: oe(B),
|
|
665
|
+
onPress: W,
|
|
666
|
+
label: "Video controls",
|
|
667
|
+
iconSize: B === "loadingTimeout" ? 16 : 12,
|
|
668
|
+
iconColor: y.colors.inverse,
|
|
669
|
+
iconBackground: _,
|
|
670
|
+
iconBackgroundInverse: _
|
|
671
|
+
}
|
|
672
|
+
]);
|
|
673
|
+
const M = ee(), S = !!i || !!n, H = S ? "0 0 16px rgba(0,0,0,0.4)" : void 0, E = (a == null ? void 0 : a.length) || h, { textPresets: k } = G();
|
|
674
|
+
return /* @__PURE__ */ e(F, {
|
|
675
|
+
width: o,
|
|
676
|
+
height: p,
|
|
677
|
+
minWidth: Ee,
|
|
678
|
+
minHeight: _e,
|
|
562
679
|
aspectRatio: c,
|
|
563
680
|
onClose: h,
|
|
564
|
-
actions:
|
|
565
|
-
"aria-label":
|
|
681
|
+
actions: a,
|
|
682
|
+
"aria-label": d,
|
|
566
683
|
isInverse: !0,
|
|
567
|
-
children: /* @__PURE__ */ e(
|
|
568
|
-
borderRadius:
|
|
569
|
-
className:
|
|
570
|
-
dataAttributes:
|
|
571
|
-
ref:
|
|
684
|
+
children: /* @__PURE__ */ e(K, {
|
|
685
|
+
borderRadius: y.borderRadii.legacyDisplay,
|
|
686
|
+
className: P,
|
|
687
|
+
dataAttributes: r,
|
|
688
|
+
ref: z,
|
|
572
689
|
width: "100%",
|
|
573
690
|
minHeight: "100%",
|
|
574
691
|
isInverse: !0,
|
|
575
|
-
background:
|
|
692
|
+
background: i || n ? M ? y.colors.backgroundContainerBrandOverInverse : y.colors.backgroundContainer : void 0,
|
|
576
693
|
children: /* @__PURE__ */ t("div", {
|
|
577
|
-
className:
|
|
578
|
-
style: {
|
|
579
|
-
backgroundImage: r ? `url("${CSS.escape(r)}")` : void 0,
|
|
580
|
-
paddingTop: v && !p && !R ? 0 : 24
|
|
581
|
-
},
|
|
694
|
+
className: U,
|
|
582
695
|
children: [
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
696
|
+
/* @__PURE__ */ e(re, {
|
|
697
|
+
isInverse: M,
|
|
698
|
+
children: /* @__PURE__ */ e("div", {
|
|
699
|
+
className: Y,
|
|
700
|
+
style: {
|
|
701
|
+
zIndex: 0
|
|
702
|
+
},
|
|
703
|
+
children: n ? D : i ? A : void 0
|
|
704
|
+
})
|
|
589
705
|
}),
|
|
590
|
-
/* @__PURE__ */
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
706
|
+
/* @__PURE__ */ t("div", {
|
|
707
|
+
className: Z,
|
|
708
|
+
style: {
|
|
709
|
+
paddingTop: S && !u && !E ? 0 : 24,
|
|
710
|
+
zIndex: 1
|
|
711
|
+
},
|
|
712
|
+
children: [
|
|
713
|
+
u ? /* @__PURE__ */ e(w, {
|
|
714
|
+
paddingBottom: S ? 0 : 40,
|
|
715
|
+
paddingX: 24,
|
|
716
|
+
children: u
|
|
717
|
+
}) : /* @__PURE__ */ e(w, {
|
|
718
|
+
paddingBottom: (a == null ? void 0 : a.length) || h ? S ? 24 : 64 : 0
|
|
719
|
+
}),
|
|
720
|
+
/* @__PURE__ */ e(w, {
|
|
721
|
+
paddingX: 16,
|
|
722
|
+
paddingTop: S ? 40 : 0,
|
|
723
|
+
paddingBottom: 24,
|
|
724
|
+
className: S ? $ : void 0,
|
|
725
|
+
children: /* @__PURE__ */ e(f, {
|
|
726
|
+
space: 24,
|
|
727
|
+
children: /* @__PURE__ */ e("div", {
|
|
728
|
+
children: /* @__PURE__ */ t(f, {
|
|
729
|
+
space: 8,
|
|
730
|
+
children: [
|
|
731
|
+
(m || v || T) && /* @__PURE__ */ e("header", {
|
|
732
|
+
children: /* @__PURE__ */ t(f, {
|
|
733
|
+
space: 16,
|
|
608
734
|
children: [
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
735
|
+
m,
|
|
736
|
+
/* @__PURE__ */ t(f, {
|
|
737
|
+
space: 4,
|
|
738
|
+
children: [
|
|
739
|
+
v && /* @__PURE__ */ e(b, {
|
|
740
|
+
forceMobileSizes: !0,
|
|
741
|
+
truncate: I,
|
|
742
|
+
as: "div",
|
|
743
|
+
regular: !0,
|
|
744
|
+
textShadow: H,
|
|
745
|
+
hyphens: "auto",
|
|
746
|
+
children: v
|
|
747
|
+
}),
|
|
748
|
+
/* @__PURE__ */ e(J, {
|
|
749
|
+
desktopSize: 20,
|
|
750
|
+
mobileSize: 18,
|
|
751
|
+
mobileLineHeight: "24px",
|
|
752
|
+
desktopLineHeight: "28px",
|
|
753
|
+
truncate: x,
|
|
754
|
+
weight: k.cardTitle.weight,
|
|
755
|
+
as: "h3",
|
|
756
|
+
hyphens: "auto",
|
|
757
|
+
children: T
|
|
758
|
+
})
|
|
759
|
+
]
|
|
628
760
|
})
|
|
629
761
|
]
|
|
630
762
|
})
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
763
|
+
}),
|
|
764
|
+
g && /* @__PURE__ */ e(b, {
|
|
765
|
+
forceMobileSizes: !0,
|
|
766
|
+
truncate: N,
|
|
767
|
+
as: "p",
|
|
768
|
+
regular: !0,
|
|
769
|
+
textShadow: H,
|
|
770
|
+
hyphens: "auto",
|
|
771
|
+
children: g
|
|
772
|
+
})
|
|
773
|
+
]
|
|
642
774
|
})
|
|
643
|
-
|
|
775
|
+
})
|
|
644
776
|
})
|
|
645
777
|
})
|
|
646
|
-
|
|
778
|
+
]
|
|
647
779
|
})
|
|
648
780
|
]
|
|
649
781
|
})
|
|
650
782
|
})
|
|
651
783
|
});
|
|
652
784
|
});
|
|
653
|
-
export {
|
|
785
|
+
export { tr as DataCard, lr as DisplayDataCard, dr as DisplayMediaCard, or as MediaCard, cr as PosterCard, sr as SnapCard };
|