@purpurds/promotion-card 7.10.1 → 7.12.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/dist/LICENSE.txt +4 -4
- package/dist/promotion-card.cjs.js +13 -13
- package/dist/promotion-card.cjs.js.map +1 -1
- package/dist/promotion-card.es.js +320 -312
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +13 -13
- package/src/promotion-card.stories.tsx +4 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as c, jsx as u, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as c, jsx as u, Fragment as Rr } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Nr } from "react";
|
|
3
|
+
function Lr(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
6
|
var Q = { exports: {} };
|
|
@@ -10,18 +10,18 @@ var Q = { exports: {} };
|
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
11
|
*/
|
|
12
12
|
var X;
|
|
13
|
-
function
|
|
13
|
+
function Dr() {
|
|
14
14
|
return X || (X = 1, function(e) {
|
|
15
15
|
(function() {
|
|
16
|
-
var
|
|
16
|
+
var o = {}.hasOwnProperty;
|
|
17
17
|
function a() {
|
|
18
18
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
19
19
|
var i = arguments[t];
|
|
20
|
-
i && (r = p(r,
|
|
20
|
+
i && (r = p(r, n.call(this, i)));
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function n(r) {
|
|
25
25
|
if (typeof r == "string" || typeof r == "number")
|
|
26
26
|
return this && this[r] || r;
|
|
27
27
|
if (typeof r != "object")
|
|
@@ -32,7 +32,7 @@ function Lr() {
|
|
|
32
32
|
return r.toString();
|
|
33
33
|
var t = "";
|
|
34
34
|
for (var i in r)
|
|
35
|
-
|
|
35
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
36
36
|
return t;
|
|
37
37
|
}
|
|
38
38
|
function p(r, t) {
|
|
@@ -42,8 +42,8 @@ function Lr() {
|
|
|
42
42
|
})();
|
|
43
43
|
}(Q)), Q.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const
|
|
45
|
+
var Pr = Dr();
|
|
46
|
+
const Hr = /* @__PURE__ */ Lr(Pr), Tr = {
|
|
47
47
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
48
48
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
49
49
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -51,22 +51,22 @@ const Pr = /* @__PURE__ */ Rr(Dr), Hr = {
|
|
|
51
51
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
52
52
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
53
53
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
54
|
-
},
|
|
54
|
+
}, qr = Hr.bind(Tr), rr = "purpur-icon", Vr = "md", Wr = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), Kr = ({ content: e = "", title: o } = {}) => {
|
|
55
55
|
const a = [
|
|
56
56
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
57
57
|
{ name: "fill", value: "currentColor" },
|
|
58
58
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
59
|
-
|
|
60
|
-
],
|
|
61
|
-
return `<svg ${Wr(a)}>${
|
|
62
|
-
}, Yr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
59
|
+
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
60
|
+
], n = o ? `<title>${o}</title>` : "";
|
|
61
|
+
return `<svg ${Wr(a)}>${n}${e}</svg>`;
|
|
62
|
+
}, Yr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Or = ({ svg: e, allyTitle: o, className: a, size: n = Vr, ...p }) => {
|
|
63
63
|
const r = Kr({
|
|
64
64
|
content: Yr(e.svg),
|
|
65
|
-
title:
|
|
66
|
-
}), t =
|
|
65
|
+
title: o
|
|
66
|
+
}), t = qr(a, rr, `${rr}--${n}`);
|
|
67
67
|
return /* @__PURE__ */ u("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
Or.displayName = "Icon";
|
|
70
70
|
const Jr = {
|
|
71
71
|
name: "alert",
|
|
72
72
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m13.038 7.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.586 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.664 0 1.25.601 1.25 1.234Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
@@ -108,7 +108,7 @@ const Jr = {
|
|
|
108
108
|
keywords: ["tag"],
|
|
109
109
|
category: "other"
|
|
110
110
|
};
|
|
111
|
-
function
|
|
111
|
+
function oe(e) {
|
|
112
112
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
113
113
|
}
|
|
114
114
|
var er = { exports: {} };
|
|
@@ -118,18 +118,18 @@ var er = { exports: {} };
|
|
|
118
118
|
http://jedwatson.github.io/classnames
|
|
119
119
|
*/
|
|
120
120
|
var tr;
|
|
121
|
-
function
|
|
121
|
+
function ne() {
|
|
122
122
|
return tr || (tr = 1, function(e) {
|
|
123
123
|
(function() {
|
|
124
|
-
var
|
|
124
|
+
var o = {}.hasOwnProperty;
|
|
125
125
|
function a() {
|
|
126
126
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
127
127
|
var i = arguments[t];
|
|
128
|
-
i && (r = p(r,
|
|
128
|
+
i && (r = p(r, n(i)));
|
|
129
129
|
}
|
|
130
130
|
return r;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function n(r) {
|
|
133
133
|
if (typeof r == "string" || typeof r == "number")
|
|
134
134
|
return r;
|
|
135
135
|
if (typeof r != "object")
|
|
@@ -140,7 +140,7 @@ function oe() {
|
|
|
140
140
|
return r.toString();
|
|
141
141
|
var t = "";
|
|
142
142
|
for (var i in r)
|
|
143
|
-
|
|
143
|
+
o.call(r, i) && r[i] && (t = p(t, i));
|
|
144
144
|
return t;
|
|
145
145
|
}
|
|
146
146
|
function p(r, t) {
|
|
@@ -150,8 +150,8 @@ function oe() {
|
|
|
150
150
|
})();
|
|
151
151
|
}(er)), er.exports;
|
|
152
152
|
}
|
|
153
|
-
var pe =
|
|
154
|
-
const ar = /* @__PURE__ */
|
|
153
|
+
var pe = ne();
|
|
154
|
+
const ar = /* @__PURE__ */ oe(pe), L = {
|
|
155
155
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
156
156
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
157
157
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -163,7 +163,7 @@ const ar = /* @__PURE__ */ ne(pe), R = {
|
|
|
163
163
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
164
164
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
165
165
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
166
|
-
},
|
|
166
|
+
}, D = "purpur-badge", h = {
|
|
167
167
|
ATTENTION: "attention",
|
|
168
168
|
BLACK_FRIDAY: "black-friday",
|
|
169
169
|
ERROR: "error",
|
|
@@ -175,45 +175,45 @@ const ar = /* @__PURE__ */ ne(pe), R = {
|
|
|
175
175
|
WARNING: "warning"
|
|
176
176
|
}, ue = (e) => {
|
|
177
177
|
switch (e) {
|
|
178
|
-
case
|
|
179
|
-
case
|
|
178
|
+
case h.ATTENTION:
|
|
179
|
+
case h.SPECIAL:
|
|
180
180
|
return te;
|
|
181
|
-
case
|
|
181
|
+
case h.INFORMATION:
|
|
182
182
|
return ee;
|
|
183
|
-
case
|
|
183
|
+
case h.GENERAL:
|
|
184
184
|
return Xr;
|
|
185
|
-
case
|
|
185
|
+
case h.SUCCESS:
|
|
186
186
|
return Qr;
|
|
187
|
-
case
|
|
187
|
+
case h.WARNING:
|
|
188
188
|
return Jr;
|
|
189
|
-
case
|
|
189
|
+
case h.ERROR:
|
|
190
190
|
return re;
|
|
191
|
-
case
|
|
191
|
+
case h.NEUTRAL:
|
|
192
192
|
return ae;
|
|
193
|
-
case
|
|
193
|
+
case h.BLACK_FRIDAY:
|
|
194
194
|
return ie;
|
|
195
195
|
default:
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
}, le = ({
|
|
199
199
|
children: e,
|
|
200
|
-
showIcon:
|
|
200
|
+
showIcon: o = !0,
|
|
201
201
|
iconAllyTitle: a,
|
|
202
|
-
variant:
|
|
202
|
+
variant: n,
|
|
203
203
|
["data-testid"]: p,
|
|
204
204
|
className: r = "",
|
|
205
205
|
...t
|
|
206
206
|
}) => {
|
|
207
|
-
const i = ue(
|
|
207
|
+
const i = ue(n), s = ar([r, L[D], L[`${D}--${n}`]]);
|
|
208
208
|
return /* @__PURE__ */ c("span", { className: s, "data-testid": p, ...t, children: [
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
o && i && /* @__PURE__ */ u(
|
|
210
|
+
Or,
|
|
211
211
|
{
|
|
212
212
|
"data-testid": `${p}-icon`,
|
|
213
213
|
allyTitle: a,
|
|
214
214
|
size: "xs",
|
|
215
215
|
svg: i,
|
|
216
|
-
className: ar(
|
|
216
|
+
className: ar(L[`${D}__icon`])
|
|
217
217
|
}
|
|
218
218
|
),
|
|
219
219
|
e
|
|
@@ -228,19 +228,19 @@ var ir = { exports: {} };
|
|
|
228
228
|
Licensed under the MIT License (MIT), see
|
|
229
229
|
http://jedwatson.github.io/classnames
|
|
230
230
|
*/
|
|
231
|
-
var
|
|
231
|
+
var or;
|
|
232
232
|
function de() {
|
|
233
|
-
return
|
|
233
|
+
return or || (or = 1, function(e) {
|
|
234
234
|
(function() {
|
|
235
|
-
var
|
|
235
|
+
var o = {}.hasOwnProperty;
|
|
236
236
|
function a() {
|
|
237
237
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
238
238
|
var i = arguments[t];
|
|
239
|
-
i && (r = p(r,
|
|
239
|
+
i && (r = p(r, n.call(this, i)));
|
|
240
240
|
}
|
|
241
241
|
return r;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function n(r) {
|
|
244
244
|
if (typeof r == "string" || typeof r == "number")
|
|
245
245
|
return this && this[r] || r;
|
|
246
246
|
if (typeof r != "object")
|
|
@@ -251,7 +251,7 @@ function de() {
|
|
|
251
251
|
return r.toString();
|
|
252
252
|
var t = "";
|
|
253
253
|
for (var i in r)
|
|
254
|
-
|
|
254
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
255
255
|
return t;
|
|
256
256
|
}
|
|
257
257
|
function p(r, t) {
|
|
@@ -270,25 +270,25 @@ const _ = /* @__PURE__ */ se(ce), _e = {
|
|
|
270
270
|
function fe(e) {
|
|
271
271
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
272
272
|
}
|
|
273
|
-
var
|
|
273
|
+
var nr = { exports: {} };
|
|
274
274
|
/*!
|
|
275
275
|
Copyright (c) 2018 Jed Watson.
|
|
276
276
|
Licensed under the MIT License (MIT), see
|
|
277
277
|
http://jedwatson.github.io/classnames
|
|
278
278
|
*/
|
|
279
279
|
var pr;
|
|
280
|
-
function
|
|
280
|
+
function ge() {
|
|
281
281
|
return pr || (pr = 1, function(e) {
|
|
282
282
|
(function() {
|
|
283
|
-
var
|
|
283
|
+
var o = {}.hasOwnProperty;
|
|
284
284
|
function a() {
|
|
285
285
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
286
286
|
var i = arguments[t];
|
|
287
|
-
i && (r = p(r,
|
|
287
|
+
i && (r = p(r, n.call(this, i)));
|
|
288
288
|
}
|
|
289
289
|
return r;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function n(r) {
|
|
292
292
|
if (typeof r == "string" || typeof r == "number")
|
|
293
293
|
return this && this[r] || r;
|
|
294
294
|
if (typeof r != "object")
|
|
@@ -299,7 +299,7 @@ function he() {
|
|
|
299
299
|
return r.toString();
|
|
300
300
|
var t = "";
|
|
301
301
|
for (var i in r)
|
|
302
|
-
|
|
302
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
303
303
|
return t;
|
|
304
304
|
}
|
|
305
305
|
function p(r, t) {
|
|
@@ -307,10 +307,10 @@ function he() {
|
|
|
307
307
|
}
|
|
308
308
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
309
309
|
})();
|
|
310
|
-
}(
|
|
310
|
+
}(nr)), nr.exports;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
const me = /* @__PURE__ */ fe(
|
|
312
|
+
var he = ge();
|
|
313
|
+
const me = /* @__PURE__ */ fe(he), ve = {
|
|
314
314
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
315
315
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
316
316
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -318,22 +318,22 @@ const me = /* @__PURE__ */ fe(ge), ve = {
|
|
|
318
318
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
319
319
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
320
320
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
321
|
-
}, ye = me.bind(ve), ur = "purpur-icon", we = "md", xe = (e) => e.filter((
|
|
321
|
+
}, ye = me.bind(ve), ur = "purpur-icon", we = "md", xe = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), be = ({ content: e = "", title: o } = {}) => {
|
|
322
322
|
const a = [
|
|
323
323
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
324
324
|
{ name: "fill", value: "currentColor" },
|
|
325
325
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
326
|
-
|
|
327
|
-
],
|
|
328
|
-
return `<svg ${xe(a)}>${
|
|
329
|
-
}, Ce = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
326
|
+
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
327
|
+
], n = o ? `<title>${o}</title>` : "";
|
|
328
|
+
return `<svg ${xe(a)}>${n}${e}</svg>`;
|
|
329
|
+
}, Ce = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Mr = ({ svg: e, allyTitle: o, className: a, size: n = we, ...p }) => {
|
|
330
330
|
const r = be({
|
|
331
331
|
content: Ce(e.svg),
|
|
332
|
-
title:
|
|
333
|
-
}), t = ye(a, ur, `${ur}--${
|
|
332
|
+
title: o
|
|
333
|
+
}), t = ye(a, ur, `${ur}--${n}`);
|
|
334
334
|
return /* @__PURE__ */ u("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
335
335
|
};
|
|
336
|
-
|
|
336
|
+
Mr.displayName = "Icon";
|
|
337
337
|
const Se = {
|
|
338
338
|
name: "alert",
|
|
339
339
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m13.038 7.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.586 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.664 0 1.25.601 1.25 1.234Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
@@ -359,23 +359,23 @@ const Se = {
|
|
|
359
359
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
360
360
|
keywords: ["info"],
|
|
361
361
|
category: "status"
|
|
362
|
-
},
|
|
362
|
+
}, Ne = {
|
|
363
363
|
name: "offering",
|
|
364
364
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M7.118 4.6H7a1.9 1.9 0 0 0-1.9 1.9V8a1.9 1.9 0 0 0 1.5 1.858v.642a.9.9 0 1 0 1.8 0v-.6h3.2v.6a.9.9 0 0 0 1.8 0v-.6h3.7V11a.9.9 0 0 0 1.8 0V9.858A1.9 1.9 0 0 0 20.4 8V6.5a1.9 1.9 0 0 0-1.9-1.9h-.618c-.063-.708-.3-1.394-.756-1.943-.56-.674-1.384-1.057-2.376-1.057-.92 0-1.696.33-2.25.915-.554-.585-1.33-.915-2.25-.915-.992 0-1.816.383-2.376 1.057-.457.549-.693 1.235-.756 1.943Zm1.812 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm4.5 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm-.03 3.5h5.1a.1.1 0 0 0 .1-.1V6.5a.1.1 0 0 0-.1-.1h-5.1v1.7Zm-1.8-1.7H7a.1.1 0 0 0-.1.1V8a.1.1 0 0 0 .1.1h4.6V6.4Zm8.335 5.147c.743-.107 1.52.135 2.201.817.474.473.695 1.011.708 1.548.012.508-.163.927-.318 1.2-.185.326-.47.607-.634.77l-.049.047-4.414 4.414a1.9 1.9 0 0 1-1.343.557H7.914a.1.1 0 0 0-.07.03l-.5.5a1.9 1.9 0 0 1-2.687 0L2.57 19.342a1.9 1.9 0 0 1 0-2.686l4-4a1.9 1.9 0 0 1 1.343-.557H14.5v.9-.9h.041l.065.004a2.73 2.73 0 0 1 .79.185 2.665 2.665 0 0 1 1.46 1.417c.188-.162.375-.324.551-.479.46-.401.815-.722.957-.863.338-.34.882-.719 1.571-.817ZM15.088 15.1a1.06 1.06 0 0 0 .08-.145c.1-.207.113-.38.027-.553a.867.867 0 0 0-.668-.497.628.628 0 0 0-.042-.005h-6.57a.1.1 0 0 0-.071.03l-4 4a.1.1 0 0 0 0 .14l2.085 2.087a.1.1 0 0 0 .142 0l.5-.5a1.9 1.9 0 0 1 1.343-.557h8.172a.1.1 0 0 0 .07-.03l4.415-4.414c.225-.225.334-.335.39-.434a.539.539 0 0 0 .083-.266.283.283 0 0 0-.026-.11.712.712 0 0 0-.154-.21c-.319-.318-.542-.326-.674-.307-.186.026-.392.146-.554.307-.191.192-.595.553-1.043.946-.904.79-2.143 1.838-2.561 2.144l-.238.174H10.5a.9.9 0 0 1 0-1.8h4.588Z" clip-rule="evenodd"/></svg>',
|
|
365
365
|
keywords: ["offering"],
|
|
366
366
|
category: "other"
|
|
367
|
-
},
|
|
367
|
+
}, Oe = {
|
|
368
368
|
name: "question",
|
|
369
369
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13.672 12.056c-.635.547-1.242 1.07-1.164 2.062h-1.385c-.309-1.553.504-2.214 1.23-2.805.514-.419.986-.802.986-1.442 0-.593-.489-1.068-1.267-1.068-.764 0-1.345.422-1.872 1.187L9 9.067C9.712 7.92 10.807 7.3 12.086 7.3 13.906 7.3 15 8.42 15 9.78c0 1.133-.678 1.717-1.328 2.277Zm-.822 3.763c0 .54-.487 1.028-1.041 1.028-.554 0-1.042-.488-1.042-1.028 0-.528.488-1.029 1.042-1.029s1.042.501 1.042 1.029Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
370
370
|
keywords: ["question"],
|
|
371
371
|
category: "status"
|
|
372
|
-
},
|
|
372
|
+
}, Me = {
|
|
373
373
|
name: "tag",
|
|
374
374
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 4a.9.9 0 0 1 .9-.9h6.5a.9.9 0 0 1 .636.264l10 10a.9.9 0 0 1 0 1.272l-4.5 4.5a.9.9 0 1 1-1.272-1.272L19.227 14l-9.1-9.1H4.9v5.227l9.736 9.737a.9.9 0 1 1-1.272 1.272l-10-10A.9.9 0 0 1 3.1 10.5V4ZM8 7.4a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2ZM5.6 8a2.4 2.4 0 1 1 4.8 0 2.4 2.4 0 0 1-4.8 0Z" clip-rule="evenodd"/></svg>',
|
|
375
375
|
keywords: ["tag"],
|
|
376
376
|
category: "other"
|
|
377
377
|
};
|
|
378
|
-
function
|
|
378
|
+
function Ge(e) {
|
|
379
379
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
380
380
|
}
|
|
381
381
|
var lr = { exports: {} };
|
|
@@ -385,18 +385,18 @@ var lr = { exports: {} };
|
|
|
385
385
|
http://jedwatson.github.io/classnames
|
|
386
386
|
*/
|
|
387
387
|
var sr;
|
|
388
|
-
function
|
|
388
|
+
function je() {
|
|
389
389
|
return sr || (sr = 1, function(e) {
|
|
390
390
|
(function() {
|
|
391
|
-
var
|
|
391
|
+
var o = {}.hasOwnProperty;
|
|
392
392
|
function a() {
|
|
393
393
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
394
394
|
var i = arguments[t];
|
|
395
|
-
i && (r = p(r,
|
|
395
|
+
i && (r = p(r, n(i)));
|
|
396
396
|
}
|
|
397
397
|
return r;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function n(r) {
|
|
400
400
|
if (typeof r == "string" || typeof r == "number")
|
|
401
401
|
return r;
|
|
402
402
|
if (typeof r != "object")
|
|
@@ -407,7 +407,7 @@ function Ge() {
|
|
|
407
407
|
return r.toString();
|
|
408
408
|
var t = "";
|
|
409
409
|
for (var i in r)
|
|
410
|
-
|
|
410
|
+
o.call(r, i) && r[i] && (t = p(t, i));
|
|
411
411
|
return t;
|
|
412
412
|
}
|
|
413
413
|
function p(r, t) {
|
|
@@ -417,8 +417,8 @@ function Ge() {
|
|
|
417
417
|
})();
|
|
418
418
|
}(lr)), lr.exports;
|
|
419
419
|
}
|
|
420
|
-
var
|
|
421
|
-
const dr = /* @__PURE__ */
|
|
420
|
+
var Ze = je();
|
|
421
|
+
const dr = /* @__PURE__ */ Ge(Ze), P = {
|
|
422
422
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
423
423
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
424
424
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -430,7 +430,7 @@ const dr = /* @__PURE__ */ Me(je), D = {
|
|
|
430
430
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
431
431
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
432
432
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
433
|
-
},
|
|
433
|
+
}, H = "purpur-badge", m = {
|
|
434
434
|
ATTENTION: "attention",
|
|
435
435
|
BLACK_FRIDAY: "black-friday",
|
|
436
436
|
ERROR: "error",
|
|
@@ -440,11 +440,11 @@ const dr = /* @__PURE__ */ Me(je), D = {
|
|
|
440
440
|
SPECIAL: "special",
|
|
441
441
|
SUCCESS: "success",
|
|
442
442
|
WARNING: "warning"
|
|
443
|
-
},
|
|
443
|
+
}, Ee = (e) => {
|
|
444
444
|
switch (e) {
|
|
445
445
|
case m.ATTENTION:
|
|
446
446
|
case m.SPECIAL:
|
|
447
|
-
return
|
|
447
|
+
return Ne;
|
|
448
448
|
case m.INFORMATION:
|
|
449
449
|
return Be;
|
|
450
450
|
case m.GENERAL:
|
|
@@ -456,87 +456,87 @@ const dr = /* @__PURE__ */ Me(je), D = {
|
|
|
456
456
|
case m.ERROR:
|
|
457
457
|
return Fe;
|
|
458
458
|
case m.NEUTRAL:
|
|
459
|
-
return Ne;
|
|
460
|
-
case m.BLACK_FRIDAY:
|
|
461
459
|
return Oe;
|
|
460
|
+
case m.BLACK_FRIDAY:
|
|
461
|
+
return Me;
|
|
462
462
|
default:
|
|
463
463
|
return;
|
|
464
464
|
}
|
|
465
|
-
},
|
|
465
|
+
}, ke = ({
|
|
466
466
|
children: e,
|
|
467
|
-
showIcon:
|
|
467
|
+
showIcon: o = !0,
|
|
468
468
|
iconAllyTitle: a,
|
|
469
|
-
variant:
|
|
469
|
+
variant: n,
|
|
470
470
|
["data-testid"]: p,
|
|
471
471
|
className: r = "",
|
|
472
472
|
...t
|
|
473
473
|
}) => {
|
|
474
|
-
const i =
|
|
474
|
+
const i = Ee(n), s = dr([r, P[H], P[`${H}--${n}`]]);
|
|
475
475
|
return /* @__PURE__ */ c("span", { className: s, "data-testid": p, ...t, children: [
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
o && i && /* @__PURE__ */ u(
|
|
477
|
+
Mr,
|
|
478
478
|
{
|
|
479
479
|
"data-testid": `${p}-icon`,
|
|
480
480
|
allyTitle: a,
|
|
481
481
|
size: "xs",
|
|
482
482
|
svg: i,
|
|
483
|
-
className: dr(
|
|
483
|
+
className: dr(P[`${H}__icon`])
|
|
484
484
|
}
|
|
485
485
|
),
|
|
486
486
|
e
|
|
487
487
|
] });
|
|
488
488
|
}, Ue = {
|
|
489
489
|
"purpur-card-badge": "_purpur-card-badge_k9ziu_1"
|
|
490
|
-
}, Ie = _.bind(Ue),
|
|
490
|
+
}, Ie = _.bind(Ue), ze = "purpur-card-badge", Re = ({
|
|
491
491
|
["data-testid"]: e = "purpur-card-badge",
|
|
492
|
-
variant:
|
|
492
|
+
variant: o,
|
|
493
493
|
text: a
|
|
494
|
-
}) =>
|
|
495
|
-
|
|
494
|
+
}) => o && a ? /* @__PURE__ */ u(
|
|
495
|
+
ke,
|
|
496
496
|
{
|
|
497
|
-
className: Ie(
|
|
498
|
-
variant:
|
|
497
|
+
className: Ie(ze),
|
|
498
|
+
variant: o,
|
|
499
499
|
showIcon: !1,
|
|
500
500
|
"data-testid": e,
|
|
501
501
|
children: a
|
|
502
502
|
}
|
|
503
|
-
) : null,
|
|
503
|
+
) : null, Le = {
|
|
504
504
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
505
|
-
},
|
|
505
|
+
}, De = _.bind(Le), Pe = "purpur-card-content", He = ({
|
|
506
506
|
["data-testid"]: e = "purpur-card-content",
|
|
507
|
-
children:
|
|
507
|
+
children: o,
|
|
508
508
|
className: a,
|
|
509
|
-
...
|
|
510
|
-
}) => /* @__PURE__ */ u("div", { className:
|
|
509
|
+
...n
|
|
510
|
+
}) => /* @__PURE__ */ u("div", { className: De(Pe, a), "data-testid": e, ...n, children: o }), Te = {
|
|
511
511
|
"purpur-card-content-container": "_purpur-card-content-container_5c1mb_1",
|
|
512
512
|
"purpur-card-content-container--full-height": "_purpur-card-content-container--full-height_5c1mb_6",
|
|
513
513
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_5c1mb_14",
|
|
514
514
|
"purpur-card-content-container--gap-size--sm": "_purpur-card-content-container--gap-size--sm_5c1mb_22",
|
|
515
515
|
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_5c1mb_25",
|
|
516
516
|
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_5c1mb_28"
|
|
517
|
-
},
|
|
517
|
+
}, qe = _.bind(Te), M = "purpur-card-content-container", Ve = ({
|
|
518
518
|
["data-testid"]: e = "purpur-card-content-container",
|
|
519
|
-
children:
|
|
519
|
+
children: o,
|
|
520
520
|
className: a,
|
|
521
|
-
isFooter:
|
|
521
|
+
isFooter: n = !1,
|
|
522
522
|
fullHeight: p = !1,
|
|
523
523
|
gapSize: r = "md",
|
|
524
524
|
...t
|
|
525
525
|
}) => /* @__PURE__ */ u(
|
|
526
526
|
"div",
|
|
527
527
|
{
|
|
528
|
-
className:
|
|
529
|
-
|
|
528
|
+
className: qe([
|
|
529
|
+
M,
|
|
530
530
|
a,
|
|
531
|
-
`${
|
|
531
|
+
`${M}--gap-size--${r}`,
|
|
532
532
|
{
|
|
533
|
-
[`${
|
|
534
|
-
[`${
|
|
533
|
+
[`${M}--full-height`]: p,
|
|
534
|
+
[`${M}--footer`]: n
|
|
535
535
|
}
|
|
536
536
|
]),
|
|
537
537
|
"data-testid": e,
|
|
538
538
|
...t,
|
|
539
|
-
children:
|
|
539
|
+
children: o
|
|
540
540
|
}
|
|
541
541
|
);
|
|
542
542
|
function We(e) {
|
|
@@ -552,15 +552,15 @@ var _r;
|
|
|
552
552
|
function Ke() {
|
|
553
553
|
return _r || (_r = 1, function(e) {
|
|
554
554
|
(function() {
|
|
555
|
-
var
|
|
555
|
+
var o = {}.hasOwnProperty;
|
|
556
556
|
function a() {
|
|
557
557
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
558
558
|
var i = arguments[t];
|
|
559
|
-
i && (r = p(r,
|
|
559
|
+
i && (r = p(r, n.call(this, i)));
|
|
560
560
|
}
|
|
561
561
|
return r;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function n(r) {
|
|
564
564
|
if (typeof r == "string" || typeof r == "number")
|
|
565
565
|
return this && this[r] || r;
|
|
566
566
|
if (typeof r != "object")
|
|
@@ -571,7 +571,7 @@ function Ke() {
|
|
|
571
571
|
return r.toString();
|
|
572
572
|
var t = "";
|
|
573
573
|
for (var i in r)
|
|
574
|
-
|
|
574
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
575
575
|
return t;
|
|
576
576
|
}
|
|
577
577
|
function p(r, t) {
|
|
@@ -598,15 +598,15 @@ const Je = /* @__PURE__ */ We(Ye), Qe = "_rotate_12t9p_1", Xe = "_dash_12t9p_1",
|
|
|
598
598
|
SM: "sm"
|
|
599
599
|
}, tt = ({
|
|
600
600
|
disabled: e = !1,
|
|
601
|
-
negative:
|
|
601
|
+
negative: o = !1,
|
|
602
602
|
size: a = et.SM,
|
|
603
|
-
...
|
|
604
|
-
}) => /* @__PURE__ */ u("div", { className: fr($, `${$}--${a}`), ...
|
|
603
|
+
...n
|
|
604
|
+
}) => /* @__PURE__ */ u("div", { className: fr($, `${$}--${a}`), ...n, children: /* @__PURE__ */ u("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ u(
|
|
605
605
|
"circle",
|
|
606
606
|
{
|
|
607
607
|
className: fr(`${$}__circle`, {
|
|
608
608
|
[`${$}__circle--disabled`]: e,
|
|
609
|
-
[`${$}__circle--negative`]:
|
|
609
|
+
[`${$}__circle--negative`]: o
|
|
610
610
|
}),
|
|
611
611
|
cx: "25",
|
|
612
612
|
cy: "25",
|
|
@@ -631,11 +631,11 @@ const Je = /* @__PURE__ */ We(Ye), Qe = "_rotate_12t9p_1", Xe = "_dash_12t9p_1",
|
|
|
631
631
|
"purpur-card-cta--secondary": "_purpur-card-cta--secondary_1wc0z_131",
|
|
632
632
|
"purpur-card-cta--disabled": "_purpur-card-cta--disabled_1wc0z_131",
|
|
633
633
|
"purpur-card-cta--text": "_purpur-card-cta--text_1wc0z_139"
|
|
634
|
-
}, it = _.bind(at), v = "purpur-card-cta",
|
|
634
|
+
}, it = _.bind(at), v = "purpur-card-cta", ot = ({
|
|
635
635
|
["data-testid"]: e = "purpur-card-cta",
|
|
636
|
-
className:
|
|
636
|
+
className: o,
|
|
637
637
|
children: a,
|
|
638
|
-
disabled:
|
|
638
|
+
disabled: n = !1,
|
|
639
639
|
iconPosition: p = "right",
|
|
640
640
|
loading: r = !1,
|
|
641
641
|
text: t,
|
|
@@ -646,9 +646,9 @@ const Je = /* @__PURE__ */ We(Ye), Qe = "_rotate_12t9p_1", Xe = "_dash_12t9p_1",
|
|
|
646
646
|
{
|
|
647
647
|
className: `${it([
|
|
648
648
|
v,
|
|
649
|
-
|
|
649
|
+
o,
|
|
650
650
|
{
|
|
651
|
-
[`${v}--disabled`]:
|
|
651
|
+
[`${v}--disabled`]: n,
|
|
652
652
|
[`${v}--text`]: !!t,
|
|
653
653
|
[`${v}--cta-styling`]: i,
|
|
654
654
|
[`${v}--button-styling`]: !i,
|
|
@@ -659,35 +659,35 @@ const Je = /* @__PURE__ */ We(Ye), Qe = "_rotate_12t9p_1", Xe = "_dash_12t9p_1",
|
|
|
659
659
|
])} ${v}`,
|
|
660
660
|
"data-testid": e,
|
|
661
661
|
...s,
|
|
662
|
-
children: r ? /* @__PURE__ */ u(tt, { "data-testid": `${e}-spinner`, size: "xs", disabled:
|
|
662
|
+
children: r ? /* @__PURE__ */ u(tt, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ c(Rr, { children: [
|
|
663
663
|
p === "left" && a,
|
|
664
664
|
t,
|
|
665
665
|
p === "right" && a
|
|
666
666
|
] })
|
|
667
667
|
}
|
|
668
668
|
);
|
|
669
|
-
function
|
|
669
|
+
function nt(e) {
|
|
670
670
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
671
671
|
}
|
|
672
|
-
var
|
|
672
|
+
var gr = { exports: {} };
|
|
673
673
|
/*!
|
|
674
674
|
Copyright (c) 2018 Jed Watson.
|
|
675
675
|
Licensed under the MIT License (MIT), see
|
|
676
676
|
http://jedwatson.github.io/classnames
|
|
677
677
|
*/
|
|
678
|
-
var
|
|
678
|
+
var hr;
|
|
679
679
|
function pt() {
|
|
680
|
-
return
|
|
680
|
+
return hr || (hr = 1, function(e) {
|
|
681
681
|
(function() {
|
|
682
|
-
var
|
|
682
|
+
var o = {}.hasOwnProperty;
|
|
683
683
|
function a() {
|
|
684
684
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
685
685
|
var i = arguments[t];
|
|
686
|
-
i && (r = p(r,
|
|
686
|
+
i && (r = p(r, n.call(this, i)));
|
|
687
687
|
}
|
|
688
688
|
return r;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function n(r) {
|
|
691
691
|
if (typeof r == "string" || typeof r == "number")
|
|
692
692
|
return this && this[r] || r;
|
|
693
693
|
if (typeof r != "object")
|
|
@@ -698,7 +698,7 @@ function pt() {
|
|
|
698
698
|
return r.toString();
|
|
699
699
|
var t = "";
|
|
700
700
|
for (var i in r)
|
|
701
|
-
|
|
701
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
702
702
|
return t;
|
|
703
703
|
}
|
|
704
704
|
function p(r, t) {
|
|
@@ -706,10 +706,10 @@ function pt() {
|
|
|
706
706
|
}
|
|
707
707
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
708
708
|
})();
|
|
709
|
-
}(
|
|
709
|
+
}(gr)), gr.exports;
|
|
710
710
|
}
|
|
711
711
|
var ut = pt();
|
|
712
|
-
const lt = /* @__PURE__ */
|
|
712
|
+
const lt = /* @__PURE__ */ nt(ut), st = {
|
|
713
713
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
714
714
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
715
715
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -717,29 +717,29 @@ const lt = /* @__PURE__ */ ot(ut), st = {
|
|
|
717
717
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
718
718
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
719
719
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
720
|
-
}, dt = lt.bind(st), mr = "purpur-icon", ct = "md", _t = (e) => e.filter((
|
|
720
|
+
}, dt = lt.bind(st), mr = "purpur-icon", ct = "md", _t = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), ft = ({ content: e = "", title: o } = {}) => {
|
|
721
721
|
const a = [
|
|
722
722
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
723
723
|
{ name: "fill", value: "currentColor" },
|
|
724
724
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
725
|
-
|
|
726
|
-
],
|
|
727
|
-
return `<svg ${_t(a)}>${
|
|
728
|
-
},
|
|
725
|
+
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
726
|
+
], n = o ? `<title>${o}</title>` : "";
|
|
727
|
+
return `<svg ${_t(a)}>${n}${e}</svg>`;
|
|
728
|
+
}, gt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({ svg: e, allyTitle: o, className: a, size: n = ct, ...p }) => {
|
|
729
729
|
const r = ft({
|
|
730
|
-
content:
|
|
731
|
-
title:
|
|
732
|
-
}), t = dt(a, mr, `${mr}--${
|
|
730
|
+
content: gt(e.svg),
|
|
731
|
+
title: o
|
|
732
|
+
}), t = dt(a, mr, `${mr}--${n}`);
|
|
733
733
|
return /* @__PURE__ */ u("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
734
734
|
};
|
|
735
|
-
|
|
736
|
-
const
|
|
735
|
+
Gr.displayName = "Icon";
|
|
736
|
+
const ht = {
|
|
737
737
|
name: "checkmark",
|
|
738
738
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
|
|
739
739
|
keywords: ["checkmark"],
|
|
740
740
|
category: "utility"
|
|
741
|
-
},
|
|
742
|
-
|
|
741
|
+
}, jr = (e) => /* @__PURE__ */ u(Gr, { ...e, svg: ht });
|
|
742
|
+
jr.displayName = "IconCheckmark";
|
|
743
743
|
function mt(e) {
|
|
744
744
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
745
745
|
}
|
|
@@ -753,15 +753,15 @@ var yr;
|
|
|
753
753
|
function vt() {
|
|
754
754
|
return yr || (yr = 1, function(e) {
|
|
755
755
|
(function() {
|
|
756
|
-
var
|
|
756
|
+
var o = {}.hasOwnProperty;
|
|
757
757
|
function a() {
|
|
758
758
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
759
759
|
var i = arguments[t];
|
|
760
|
-
i && (r = p(r,
|
|
760
|
+
i && (r = p(r, n.call(this, i)));
|
|
761
761
|
}
|
|
762
762
|
return r;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function n(r) {
|
|
765
765
|
if (typeof r == "string" || typeof r == "number")
|
|
766
766
|
return this && this[r] || r;
|
|
767
767
|
if (typeof r != "object")
|
|
@@ -772,7 +772,7 @@ function vt() {
|
|
|
772
772
|
return r.toString();
|
|
773
773
|
var t = "";
|
|
774
774
|
for (var i in r)
|
|
775
|
-
|
|
775
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
776
776
|
return t;
|
|
777
777
|
}
|
|
778
778
|
function p(r, t) {
|
|
@@ -802,15 +802,15 @@ const wt = /* @__PURE__ */ mt(yt), xt = {
|
|
|
802
802
|
PARAGRAPH100: "paragraph-100"
|
|
803
803
|
}, A = "purpur-paragraph", J = ({
|
|
804
804
|
children: e,
|
|
805
|
-
className:
|
|
805
|
+
className: o,
|
|
806
806
|
disabled: a,
|
|
807
|
-
enableHyphenation:
|
|
807
|
+
enableHyphenation: n = !1,
|
|
808
808
|
negative: p = !1,
|
|
809
809
|
variant: r = Ct.PARAGRAPH100,
|
|
810
810
|
...t
|
|
811
811
|
}) => {
|
|
812
|
-
const i = bt(
|
|
813
|
-
[`${A}--hyphens`]:
|
|
812
|
+
const i = bt(o, A, `${A}--${r}`, {
|
|
813
|
+
[`${A}--hyphens`]: n,
|
|
814
814
|
[`${A}--disabled`]: a,
|
|
815
815
|
[`${A}--negative`]: p
|
|
816
816
|
});
|
|
@@ -821,16 +821,16 @@ const St = {
|
|
|
821
821
|
"purpur-card-feature-list": "_purpur-card-feature-list_1hnss_1",
|
|
822
822
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_1hnss_7",
|
|
823
823
|
"purpur-card-feature-list__icon": "_purpur-card-feature-list__icon_1hnss_12"
|
|
824
|
-
},
|
|
824
|
+
}, T = _.bind(St), q = "purpur-card-feature-list", $t = ({
|
|
825
825
|
["data-testid"]: e = "purpur-card-feature-list",
|
|
826
|
-
listItems:
|
|
827
|
-
}) =>
|
|
826
|
+
listItems: o
|
|
827
|
+
}) => o && o.length > 0 ? /* @__PURE__ */ u("ul", { className: T(q), "data-testid": e, children: o.map((a) => /* @__PURE__ */ c(
|
|
828
828
|
"li",
|
|
829
829
|
{
|
|
830
|
-
className:
|
|
830
|
+
className: T(`${q}__list-item`),
|
|
831
831
|
"data-testid": `${e}-item`,
|
|
832
832
|
children: [
|
|
833
|
-
/* @__PURE__ */ u(
|
|
833
|
+
/* @__PURE__ */ u(jr, { size: "xs", className: T(`${q}__icon`) }),
|
|
834
834
|
/* @__PURE__ */ u(J, { children: a })
|
|
835
835
|
]
|
|
836
836
|
},
|
|
@@ -849,15 +849,15 @@ var xr;
|
|
|
849
849
|
function Ft() {
|
|
850
850
|
return xr || (xr = 1, function(e) {
|
|
851
851
|
(function() {
|
|
852
|
-
var
|
|
852
|
+
var o = {}.hasOwnProperty;
|
|
853
853
|
function a() {
|
|
854
854
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
855
855
|
var i = arguments[t];
|
|
856
|
-
i && (r = p(r,
|
|
856
|
+
i && (r = p(r, n(i)));
|
|
857
857
|
}
|
|
858
858
|
return r;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function n(r) {
|
|
861
861
|
if (typeof r == "string" || typeof r == "number")
|
|
862
862
|
return r;
|
|
863
863
|
if (typeof r != "object")
|
|
@@ -868,7 +868,7 @@ function Ft() {
|
|
|
868
868
|
return r.toString();
|
|
869
869
|
var t = "";
|
|
870
870
|
for (var i in r)
|
|
871
|
-
|
|
871
|
+
o.call(r, i) && r[i] && (t = p(t, i));
|
|
872
872
|
return t;
|
|
873
873
|
}
|
|
874
874
|
function p(r, t) {
|
|
@@ -879,60 +879,64 @@ function Ft() {
|
|
|
879
879
|
}(wr)), wr.exports;
|
|
880
880
|
}
|
|
881
881
|
var Bt = Ft();
|
|
882
|
-
const
|
|
883
|
-
"purpur-heading": "_purpur-
|
|
884
|
-
"purpur-heading--hyphens": "_purpur-heading--
|
|
885
|
-
"purpur-heading--negative": "_purpur-heading--
|
|
886
|
-
"purpur-heading--subsection-100": "_purpur-heading--subsection-
|
|
887
|
-
"purpur-heading--title-100": "_purpur-heading--title-
|
|
888
|
-
"purpur-heading--title-200": "_purpur-heading--title-
|
|
889
|
-
"purpur-heading--title-300": "_purpur-heading--title-
|
|
890
|
-
"purpur-heading--title-400": "_purpur-heading--title-
|
|
891
|
-
"purpur-heading--title-500": "_purpur-heading--title-
|
|
892
|
-
"purpur-heading--title-600": "_purpur-heading--title-
|
|
893
|
-
"purpur-heading--title-700": "_purpur-heading--title-
|
|
894
|
-
"purpur-heading--display-
|
|
895
|
-
"purpur-heading--display-
|
|
896
|
-
"purpur-heading--display-
|
|
897
|
-
"purpur-heading--display-
|
|
898
|
-
|
|
882
|
+
const Nt = /* @__PURE__ */ At(Bt), G = {
|
|
883
|
+
"purpur-heading": "_purpur-heading_vo751_1",
|
|
884
|
+
"purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
|
|
885
|
+
"purpur-heading--negative": "_purpur-heading--negative_vo751_11",
|
|
886
|
+
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_vo751_14",
|
|
887
|
+
"purpur-heading--title-100": "_purpur-heading--title-100_vo751_20",
|
|
888
|
+
"purpur-heading--title-200": "_purpur-heading--title-200_vo751_26",
|
|
889
|
+
"purpur-heading--title-300": "_purpur-heading--title-300_vo751_32",
|
|
890
|
+
"purpur-heading--title-400": "_purpur-heading--title-400_vo751_38",
|
|
891
|
+
"purpur-heading--title-500": "_purpur-heading--title-500_vo751_44",
|
|
892
|
+
"purpur-heading--title-600": "_purpur-heading--title-600_vo751_50",
|
|
893
|
+
"purpur-heading--title-700": "_purpur-heading--title-700_vo751_56",
|
|
894
|
+
"purpur-heading--display-5": "_purpur-heading--display-5_vo751_62",
|
|
895
|
+
"purpur-heading--display-10": "_purpur-heading--display-10_vo751_68",
|
|
896
|
+
"purpur-heading--display-15": "_purpur-heading--display-15_vo751_74",
|
|
897
|
+
"purpur-heading--display-20": "_purpur-heading--display-20_vo751_80",
|
|
898
|
+
"purpur-heading--display-25": "_purpur-heading--display-25_vo751_86",
|
|
899
|
+
"purpur-heading--display-50": "_purpur-heading--display-50_vo751_92",
|
|
900
|
+
"purpur-heading--display-100": "_purpur-heading--display-100_vo751_98",
|
|
901
|
+
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
902
|
+
}, Ot = {
|
|
899
903
|
TITLE100: "title-100"
|
|
900
|
-
},
|
|
904
|
+
}, j = "purpur-heading", Zr = ({
|
|
901
905
|
children: e,
|
|
902
|
-
className:
|
|
906
|
+
className: o = "",
|
|
903
907
|
enableHyphenation: a = !1,
|
|
904
|
-
negative:
|
|
908
|
+
negative: n = !1,
|
|
905
909
|
tag: p,
|
|
906
|
-
variant: r =
|
|
910
|
+
variant: r = Ot.TITLE100,
|
|
907
911
|
...t
|
|
908
912
|
}) => {
|
|
909
|
-
const i = p, s =
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
+
const i = p, s = Nt([
|
|
914
|
+
o,
|
|
915
|
+
G[j],
|
|
916
|
+
G[`${j}--${r}`],
|
|
913
917
|
{
|
|
914
|
-
[
|
|
915
|
-
[
|
|
918
|
+
[G[`${j}--hyphens`]]: a,
|
|
919
|
+
[G[`${j}--negative`]]: n
|
|
916
920
|
}
|
|
917
921
|
]);
|
|
918
922
|
return /* @__PURE__ */ u(i, { className: s, ...t, children: e });
|
|
919
923
|
};
|
|
920
|
-
|
|
921
|
-
const
|
|
924
|
+
Zr.displayName = "Heading";
|
|
925
|
+
const Mt = {
|
|
922
926
|
"purpur-card-heading": "_purpur-card-heading_j3j6u_1",
|
|
923
927
|
"purpur-card-heading__header": "_purpur-card-heading__header_j3j6u_6",
|
|
924
928
|
"purpur-card-heading__heading": "_purpur-card-heading__heading_j3j6u_11",
|
|
925
929
|
"purpur-card-heading__icon": "_purpur-card-heading__icon_j3j6u_14"
|
|
926
|
-
},
|
|
930
|
+
}, Gt = {
|
|
927
931
|
"purpur-card-trigger-item--link": "_purpur-card-trigger-item--link_t6ena_1",
|
|
928
932
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_t6ena_5",
|
|
929
933
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_t6ena_18",
|
|
930
934
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_t6ena_1"
|
|
931
|
-
}, br = _.bind(
|
|
935
|
+
}, br = _.bind(Gt), w = "purpur-card-trigger-item", jt = ({
|
|
932
936
|
["data-testid"]: e = "purpur-card-trigger-item",
|
|
933
|
-
["aria-label"]:
|
|
937
|
+
["aria-label"]: o,
|
|
934
938
|
disabled: a = !1,
|
|
935
|
-
href:
|
|
939
|
+
href: n,
|
|
936
940
|
onClick: p,
|
|
937
941
|
children: r,
|
|
938
942
|
linkElement: t = "a"
|
|
@@ -940,11 +944,11 @@ const Ot = {
|
|
|
940
944
|
const i = (x) => {
|
|
941
945
|
a ? x.preventDefault() : p && p();
|
|
942
946
|
}, s = `${w} ${a ? `${w}--disabled` : ""}`;
|
|
943
|
-
return
|
|
947
|
+
return n ? /* @__PURE__ */ u(
|
|
944
948
|
t,
|
|
945
949
|
{
|
|
946
950
|
"aria-disabled": a,
|
|
947
|
-
"aria-label":
|
|
951
|
+
"aria-label": o,
|
|
948
952
|
className: `${br([
|
|
949
953
|
w,
|
|
950
954
|
`${w}--link`,
|
|
@@ -953,7 +957,7 @@ const Ot = {
|
|
|
953
957
|
}
|
|
954
958
|
])} ${s}`,
|
|
955
959
|
"data-testid": e,
|
|
956
|
-
href: a ? void 0 :
|
|
960
|
+
href: a ? void 0 : n,
|
|
957
961
|
tabIndex: a ? 0 : void 0,
|
|
958
962
|
onClick: i,
|
|
959
963
|
children: r
|
|
@@ -962,7 +966,7 @@ const Ot = {
|
|
|
962
966
|
"button",
|
|
963
967
|
{
|
|
964
968
|
"aria-disabled": a,
|
|
965
|
-
"aria-label":
|
|
969
|
+
"aria-label": o,
|
|
966
970
|
className: `${br([
|
|
967
971
|
w,
|
|
968
972
|
`${w}--button`,
|
|
@@ -976,11 +980,11 @@ const Ot = {
|
|
|
976
980
|
children: r
|
|
977
981
|
}
|
|
978
982
|
);
|
|
979
|
-
},
|
|
983
|
+
}, Z = _.bind(Mt), b = "purpur-card-heading", Zt = ({
|
|
980
984
|
["data-testid"]: e = "purpur-card-heading",
|
|
981
|
-
["aria-label"]:
|
|
985
|
+
["aria-label"]: o,
|
|
982
986
|
title: a,
|
|
983
|
-
icon:
|
|
987
|
+
icon: n,
|
|
984
988
|
children: p,
|
|
985
989
|
titleTag: r = "h2",
|
|
986
990
|
enableHyphenation: t,
|
|
@@ -989,27 +993,27 @@ const Ot = {
|
|
|
989
993
|
disabled: x = !1,
|
|
990
994
|
linkElement: U = "a",
|
|
991
995
|
variant: I = "title-100",
|
|
992
|
-
...
|
|
996
|
+
...z
|
|
993
997
|
}) => {
|
|
994
|
-
const B =
|
|
998
|
+
const B = Z(b, {
|
|
995
999
|
[`${b}--is-interactive`]: i || s,
|
|
996
1000
|
[`${b}--disabled`]: x
|
|
997
1001
|
});
|
|
998
1002
|
return /* @__PURE__ */ c("div", { className: B, "data-testid": e, children: [
|
|
999
|
-
/* @__PURE__ */ c("div", { className:
|
|
1000
|
-
|
|
1003
|
+
/* @__PURE__ */ c("div", { className: Z(`${b}__header`), children: [
|
|
1004
|
+
n && /* @__PURE__ */ u("div", { className: Z(`${b}__icon`), children: n }),
|
|
1001
1005
|
/* @__PURE__ */ u(
|
|
1002
|
-
|
|
1006
|
+
Zr,
|
|
1003
1007
|
{
|
|
1004
1008
|
tag: r,
|
|
1005
|
-
className:
|
|
1009
|
+
className: Z(`${b}__heading`),
|
|
1006
1010
|
variant: I,
|
|
1007
1011
|
enableHyphenation: t,
|
|
1008
|
-
...
|
|
1012
|
+
...z,
|
|
1009
1013
|
children: i || s ? /* @__PURE__ */ u(
|
|
1010
|
-
|
|
1014
|
+
jt,
|
|
1011
1015
|
{
|
|
1012
|
-
"aria-label":
|
|
1016
|
+
"aria-label": o,
|
|
1013
1017
|
disabled: x,
|
|
1014
1018
|
href: s,
|
|
1015
1019
|
onClick: i,
|
|
@@ -1022,46 +1026,46 @@ const Ot = {
|
|
|
1022
1026
|
] }),
|
|
1023
1027
|
p
|
|
1024
1028
|
] });
|
|
1025
|
-
},
|
|
1029
|
+
}, Et = {
|
|
1026
1030
|
"purpur-card-media": "_purpur-card-media_udc1o_1"
|
|
1027
|
-
},
|
|
1031
|
+
}, kt = _.bind(Et), Ut = "purpur-card-media", It = ({
|
|
1028
1032
|
["data-testid"]: e = "purpur-card-media",
|
|
1029
|
-
className:
|
|
1033
|
+
className: o,
|
|
1030
1034
|
children: a,
|
|
1031
|
-
...
|
|
1032
|
-
}) => /* @__PURE__ */ u("div", { ...
|
|
1035
|
+
...n
|
|
1036
|
+
}) => /* @__PURE__ */ u("div", { ...n, className: kt([Ut, o]), "data-testid": e, children: a }), zt = {
|
|
1033
1037
|
"purpur-card-media-layout": "_purpur-card-media-layout_1tkaa_1",
|
|
1034
1038
|
"purpur-card-media-layout--image-top": "_purpur-card-media-layout--image-top_1tkaa_11"
|
|
1035
|
-
},
|
|
1039
|
+
}, Rt = _.bind(zt), Cr = "purpur-card-media-layout", Lt = ({
|
|
1036
1040
|
["data-testid"]: e = "purpur-card-media-layout",
|
|
1037
|
-
className:
|
|
1041
|
+
className: o,
|
|
1038
1042
|
children: a,
|
|
1039
|
-
imageTop:
|
|
1043
|
+
imageTop: n = !1,
|
|
1040
1044
|
...p
|
|
1041
1045
|
}) => /* @__PURE__ */ u(
|
|
1042
1046
|
"div",
|
|
1043
1047
|
{
|
|
1044
1048
|
...p,
|
|
1045
|
-
className:
|
|
1049
|
+
className: Rt(Cr, o, { [`${Cr}--image-top`]: n }),
|
|
1046
1050
|
"data-testid": e,
|
|
1047
1051
|
children: a
|
|
1048
1052
|
}
|
|
1049
|
-
),
|
|
1053
|
+
), Dt = {
|
|
1050
1054
|
"purpur-card-overline": "_purpur-card-overline_qhfj0_1"
|
|
1051
|
-
},
|
|
1055
|
+
}, Pt = _.bind(Dt), Ht = "purpur-card-overline", Tt = ({
|
|
1052
1056
|
["data-testid"]: e = "purpur-card-overline",
|
|
1053
|
-
overline:
|
|
1054
|
-
}) =>
|
|
1057
|
+
overline: o
|
|
1058
|
+
}) => o ? /* @__PURE__ */ u(J, { variant: "overline-100", className: Pt(Ht), "data-testid": e, children: o }) : null, qt = {
|
|
1055
1059
|
"purpur-card-root": "_purpur-card-root_eupww_1",
|
|
1056
1060
|
"purpur-card-root--primary": "_purpur-card-root--primary_eupww_7",
|
|
1057
1061
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_eupww_10",
|
|
1058
1062
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_eupww_13"
|
|
1059
|
-
}, Vt = _.bind(
|
|
1063
|
+
}, Vt = _.bind(qt), V = "purpur-card-root", Er = Nr(
|
|
1060
1064
|
({
|
|
1061
1065
|
["data-testid"]: e = "purpur-card-root",
|
|
1062
|
-
children:
|
|
1066
|
+
children: o,
|
|
1063
1067
|
className: a,
|
|
1064
|
-
fullHeight:
|
|
1068
|
+
fullHeight: n = !0,
|
|
1065
1069
|
variant: p,
|
|
1066
1070
|
...r
|
|
1067
1071
|
}, t) => {
|
|
@@ -1070,34 +1074,34 @@ const Ot = {
|
|
|
1070
1074
|
a,
|
|
1071
1075
|
{
|
|
1072
1076
|
[`${V}--${p}`]: p,
|
|
1073
|
-
[`${V}--full-height`]:
|
|
1077
|
+
[`${V}--full-height`]: n
|
|
1074
1078
|
}
|
|
1075
1079
|
]);
|
|
1076
|
-
return /* @__PURE__ */ u("div", { className: i, "data-testid": e, ref: t, ...r, children:
|
|
1080
|
+
return /* @__PURE__ */ u("div", { className: i, "data-testid": e, ref: t, ...r, children: o });
|
|
1077
1081
|
}
|
|
1078
1082
|
);
|
|
1079
|
-
|
|
1080
|
-
const W = _.bind(_e), K = "purpur-card", f = ({ children: e, className:
|
|
1081
|
-
const
|
|
1083
|
+
Er.displayName = "CardRoot";
|
|
1084
|
+
const W = _.bind(_e), K = "purpur-card", f = ({ children: e, className: o, ...a }) => {
|
|
1085
|
+
const n = W([K, o]);
|
|
1082
1086
|
return /* @__PURE__ */ u(
|
|
1083
1087
|
"div",
|
|
1084
1088
|
{
|
|
1085
1089
|
className: W(`${K}__container`, {
|
|
1086
1090
|
[`${K}__container--full-height`]: a.fullHeight
|
|
1087
1091
|
}),
|
|
1088
|
-
children: /* @__PURE__ */ u(
|
|
1092
|
+
children: /* @__PURE__ */ u(Er, { className: W(n), ...a, children: e })
|
|
1089
1093
|
}
|
|
1090
1094
|
);
|
|
1091
1095
|
};
|
|
1092
|
-
f.Badge =
|
|
1093
|
-
f.Content =
|
|
1096
|
+
f.Badge = Re;
|
|
1097
|
+
f.Content = He;
|
|
1094
1098
|
f.ContentContainer = Ve;
|
|
1095
|
-
f.Cta =
|
|
1099
|
+
f.Cta = ot;
|
|
1096
1100
|
f.FeatureList = $t;
|
|
1097
|
-
f.Overline =
|
|
1098
|
-
f.Heading =
|
|
1101
|
+
f.Overline = Tt;
|
|
1102
|
+
f.Heading = Zt;
|
|
1099
1103
|
f.Media = It;
|
|
1100
|
-
f.MediaLayout =
|
|
1104
|
+
f.MediaLayout = Lt;
|
|
1101
1105
|
f.displayName = "Card";
|
|
1102
1106
|
function Wt(e) {
|
|
1103
1107
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -1112,15 +1116,15 @@ var $r;
|
|
|
1112
1116
|
function Kt() {
|
|
1113
1117
|
return $r || ($r = 1, function(e) {
|
|
1114
1118
|
(function() {
|
|
1115
|
-
var
|
|
1119
|
+
var o = {}.hasOwnProperty;
|
|
1116
1120
|
function a() {
|
|
1117
1121
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
1118
1122
|
var i = arguments[t];
|
|
1119
|
-
i && (r = p(r,
|
|
1123
|
+
i && (r = p(r, n(i)));
|
|
1120
1124
|
}
|
|
1121
1125
|
return r;
|
|
1122
1126
|
}
|
|
1123
|
-
function
|
|
1127
|
+
function n(r) {
|
|
1124
1128
|
if (typeof r == "string" || typeof r == "number")
|
|
1125
1129
|
return r;
|
|
1126
1130
|
if (typeof r != "object")
|
|
@@ -1131,7 +1135,7 @@ function Kt() {
|
|
|
1131
1135
|
return r.toString();
|
|
1132
1136
|
var t = "";
|
|
1133
1137
|
for (var i in r)
|
|
1134
|
-
|
|
1138
|
+
o.call(r, i) && r[i] && (t = p(t, i));
|
|
1135
1139
|
return t;
|
|
1136
1140
|
}
|
|
1137
1141
|
function p(r, t) {
|
|
@@ -1142,45 +1146,49 @@ function Kt() {
|
|
|
1142
1146
|
}(Sr)), Sr.exports;
|
|
1143
1147
|
}
|
|
1144
1148
|
var Yt = Kt();
|
|
1145
|
-
const Jt = /* @__PURE__ */ Wt(Yt),
|
|
1146
|
-
"purpur-heading": "_purpur-
|
|
1147
|
-
"purpur-heading--hyphens": "_purpur-heading--
|
|
1148
|
-
"purpur-heading--negative": "_purpur-heading--
|
|
1149
|
-
"purpur-heading--subsection-100": "_purpur-heading--subsection-
|
|
1150
|
-
"purpur-heading--title-100": "_purpur-heading--title-
|
|
1151
|
-
"purpur-heading--title-200": "_purpur-heading--title-
|
|
1152
|
-
"purpur-heading--title-300": "_purpur-heading--title-
|
|
1153
|
-
"purpur-heading--title-400": "_purpur-heading--title-
|
|
1154
|
-
"purpur-heading--title-500": "_purpur-heading--title-
|
|
1155
|
-
"purpur-heading--title-600": "_purpur-heading--title-
|
|
1156
|
-
"purpur-heading--title-700": "_purpur-heading--title-
|
|
1157
|
-
"purpur-heading--display-
|
|
1158
|
-
"purpur-heading--display-
|
|
1159
|
-
"purpur-heading--display-
|
|
1160
|
-
"purpur-heading--display-
|
|
1149
|
+
const Jt = /* @__PURE__ */ Wt(Yt), E = {
|
|
1150
|
+
"purpur-heading": "_purpur-heading_vo751_1",
|
|
1151
|
+
"purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
|
|
1152
|
+
"purpur-heading--negative": "_purpur-heading--negative_vo751_11",
|
|
1153
|
+
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_vo751_14",
|
|
1154
|
+
"purpur-heading--title-100": "_purpur-heading--title-100_vo751_20",
|
|
1155
|
+
"purpur-heading--title-200": "_purpur-heading--title-200_vo751_26",
|
|
1156
|
+
"purpur-heading--title-300": "_purpur-heading--title-300_vo751_32",
|
|
1157
|
+
"purpur-heading--title-400": "_purpur-heading--title-400_vo751_38",
|
|
1158
|
+
"purpur-heading--title-500": "_purpur-heading--title-500_vo751_44",
|
|
1159
|
+
"purpur-heading--title-600": "_purpur-heading--title-600_vo751_50",
|
|
1160
|
+
"purpur-heading--title-700": "_purpur-heading--title-700_vo751_56",
|
|
1161
|
+
"purpur-heading--display-5": "_purpur-heading--display-5_vo751_62",
|
|
1162
|
+
"purpur-heading--display-10": "_purpur-heading--display-10_vo751_68",
|
|
1163
|
+
"purpur-heading--display-15": "_purpur-heading--display-15_vo751_74",
|
|
1164
|
+
"purpur-heading--display-20": "_purpur-heading--display-20_vo751_80",
|
|
1165
|
+
"purpur-heading--display-25": "_purpur-heading--display-25_vo751_86",
|
|
1166
|
+
"purpur-heading--display-50": "_purpur-heading--display-50_vo751_92",
|
|
1167
|
+
"purpur-heading--display-100": "_purpur-heading--display-100_vo751_98",
|
|
1168
|
+
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
1161
1169
|
}, Qt = {
|
|
1162
1170
|
TITLE100: "title-100"
|
|
1163
|
-
},
|
|
1171
|
+
}, k = "purpur-heading", kr = ({
|
|
1164
1172
|
children: e,
|
|
1165
|
-
className:
|
|
1173
|
+
className: o = "",
|
|
1166
1174
|
enableHyphenation: a = !1,
|
|
1167
|
-
negative:
|
|
1175
|
+
negative: n = !1,
|
|
1168
1176
|
tag: p,
|
|
1169
1177
|
variant: r = Qt.TITLE100,
|
|
1170
1178
|
...t
|
|
1171
1179
|
}) => {
|
|
1172
1180
|
const i = p, s = Jt([
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1181
|
+
o,
|
|
1182
|
+
E[k],
|
|
1183
|
+
E[`${k}--${r}`],
|
|
1176
1184
|
{
|
|
1177
|
-
[
|
|
1178
|
-
[
|
|
1185
|
+
[E[`${k}--hyphens`]]: a,
|
|
1186
|
+
[E[`${k}--negative`]]: n
|
|
1179
1187
|
}
|
|
1180
1188
|
]);
|
|
1181
1189
|
return /* @__PURE__ */ u(i, { className: s, ...t, children: e });
|
|
1182
1190
|
};
|
|
1183
|
-
|
|
1191
|
+
kr.displayName = "Heading";
|
|
1184
1192
|
function Xt(e) {
|
|
1185
1193
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1186
1194
|
}
|
|
@@ -1194,15 +1202,15 @@ var Fr;
|
|
|
1194
1202
|
function ra() {
|
|
1195
1203
|
return Fr || (Fr = 1, function(e) {
|
|
1196
1204
|
(function() {
|
|
1197
|
-
var
|
|
1205
|
+
var o = {}.hasOwnProperty;
|
|
1198
1206
|
function a() {
|
|
1199
1207
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
1200
1208
|
var i = arguments[t];
|
|
1201
|
-
i && (r = p(r,
|
|
1209
|
+
i && (r = p(r, n.call(this, i)));
|
|
1202
1210
|
}
|
|
1203
1211
|
return r;
|
|
1204
1212
|
}
|
|
1205
|
-
function
|
|
1213
|
+
function n(r) {
|
|
1206
1214
|
if (typeof r == "string" || typeof r == "number")
|
|
1207
1215
|
return this && this[r] || r;
|
|
1208
1216
|
if (typeof r != "object")
|
|
@@ -1213,7 +1221,7 @@ function ra() {
|
|
|
1213
1221
|
return r.toString();
|
|
1214
1222
|
var t = "";
|
|
1215
1223
|
for (var i in r)
|
|
1216
|
-
|
|
1224
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
1217
1225
|
return t;
|
|
1218
1226
|
}
|
|
1219
1227
|
function p(r, t) {
|
|
@@ -1239,26 +1247,26 @@ const ta = /* @__PURE__ */ Xt(ea), aa = {
|
|
|
1239
1247
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
1240
1248
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
1241
1249
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1242
|
-
}, ia = ta.bind(aa),
|
|
1250
|
+
}, ia = ta.bind(aa), oa = {
|
|
1243
1251
|
PARAGRAPH100: "paragraph-100"
|
|
1244
1252
|
}, F = "purpur-paragraph", Ur = ({
|
|
1245
1253
|
children: e,
|
|
1246
|
-
className:
|
|
1254
|
+
className: o,
|
|
1247
1255
|
disabled: a,
|
|
1248
|
-
enableHyphenation:
|
|
1256
|
+
enableHyphenation: n = !1,
|
|
1249
1257
|
negative: p = !1,
|
|
1250
|
-
variant: r =
|
|
1258
|
+
variant: r = oa.PARAGRAPH100,
|
|
1251
1259
|
...t
|
|
1252
1260
|
}) => {
|
|
1253
|
-
const i = ia(
|
|
1254
|
-
[`${F}--hyphens`]:
|
|
1261
|
+
const i = ia(o, F, `${F}--${r}`, {
|
|
1262
|
+
[`${F}--hyphens`]: n,
|
|
1255
1263
|
[`${F}--disabled`]: a,
|
|
1256
1264
|
[`${F}--negative`]: p
|
|
1257
1265
|
});
|
|
1258
1266
|
return /* @__PURE__ */ u("p", { ...t, className: i, children: e });
|
|
1259
1267
|
};
|
|
1260
1268
|
Ur.displayName = "Paragraph";
|
|
1261
|
-
function
|
|
1269
|
+
function na(e) {
|
|
1262
1270
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1263
1271
|
}
|
|
1264
1272
|
var Y = { exports: {} };
|
|
@@ -1271,15 +1279,15 @@ var Br;
|
|
|
1271
1279
|
function pa() {
|
|
1272
1280
|
return Br || (Br = 1, function(e) {
|
|
1273
1281
|
(function() {
|
|
1274
|
-
var
|
|
1282
|
+
var o = {}.hasOwnProperty;
|
|
1275
1283
|
function a() {
|
|
1276
1284
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
1277
1285
|
var i = arguments[t];
|
|
1278
|
-
i && (r = p(r,
|
|
1286
|
+
i && (r = p(r, n.call(this, i)));
|
|
1279
1287
|
}
|
|
1280
1288
|
return r;
|
|
1281
1289
|
}
|
|
1282
|
-
function
|
|
1290
|
+
function n(r) {
|
|
1283
1291
|
if (typeof r == "string" || typeof r == "number")
|
|
1284
1292
|
return this && this[r] || r;
|
|
1285
1293
|
if (typeof r != "object")
|
|
@@ -1290,7 +1298,7 @@ function pa() {
|
|
|
1290
1298
|
return r.toString();
|
|
1291
1299
|
var t = "";
|
|
1292
1300
|
for (var i in r)
|
|
1293
|
-
|
|
1301
|
+
o.call(r, i) && r[i] && (t = p(t, this && this[i] || i));
|
|
1294
1302
|
return t;
|
|
1295
1303
|
}
|
|
1296
1304
|
function p(r, t) {
|
|
@@ -1301,7 +1309,7 @@ function pa() {
|
|
|
1301
1309
|
}(Y)), Y.exports;
|
|
1302
1310
|
}
|
|
1303
1311
|
var ua = pa();
|
|
1304
|
-
const la = /* @__PURE__ */
|
|
1312
|
+
const la = /* @__PURE__ */ na(ua), sa = {
|
|
1305
1313
|
"purpur-promotion-card": "_purpur-promotion-card_1ufmj_1",
|
|
1306
1314
|
"purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_1ufmj_8",
|
|
1307
1315
|
"purpur-promotion-card__content": "_purpur-promotion-card__content_1ufmj_8",
|
|
@@ -1334,12 +1342,12 @@ const la = /* @__PURE__ */ oa(ua), sa = {
|
|
|
1334
1342
|
primary: "var(--purpur-color-text-tone-on-tone-primary)",
|
|
1335
1343
|
secondary: "var(--purpur-color-text-tone-on-tone-secondary)",
|
|
1336
1344
|
quaternary: "var(--purpur-color-text-tone-on-tone-tertiary)"
|
|
1337
|
-
}, d = la.bind(sa), l = "purpur-promotion-card", fa =
|
|
1345
|
+
}, d = la.bind(sa), l = "purpur-promotion-card", fa = Nr(
|
|
1338
1346
|
({
|
|
1339
1347
|
["data-testid"]: e,
|
|
1340
|
-
variant:
|
|
1348
|
+
variant: o = "primary",
|
|
1341
1349
|
badgeText: a,
|
|
1342
|
-
badgeIcon:
|
|
1350
|
+
badgeIcon: n,
|
|
1343
1351
|
title: p,
|
|
1344
1352
|
titleTag: r = "h2",
|
|
1345
1353
|
titleVariant: t = "title-300",
|
|
@@ -1348,39 +1356,39 @@ const la = /* @__PURE__ */ oa(ua), sa = {
|
|
|
1348
1356
|
actions: x,
|
|
1349
1357
|
children: U,
|
|
1350
1358
|
style: I,
|
|
1351
|
-
alignment:
|
|
1359
|
+
alignment: z = "space-between",
|
|
1352
1360
|
additionalText: B,
|
|
1353
|
-
...
|
|
1361
|
+
...g
|
|
1354
1362
|
}, Ir) => {
|
|
1355
|
-
let
|
|
1356
|
-
if ("decorativeImage" in
|
|
1357
|
-
const { hasGradient: C, decorativeImage: S, ...
|
|
1358
|
-
y = S,
|
|
1359
|
-
} else if ("productImage" in
|
|
1360
|
-
const { hasGradient: C, productImage: S, ...
|
|
1361
|
-
y = S,
|
|
1362
|
-
} else if ("hasGradient" in
|
|
1363
|
-
const { hasGradient: C, ...S } =
|
|
1364
|
-
|
|
1363
|
+
let N = g, y, O;
|
|
1364
|
+
if ("decorativeImage" in g) {
|
|
1365
|
+
const { hasGradient: C, decorativeImage: S, ...R } = g;
|
|
1366
|
+
y = S, O = C, N = R;
|
|
1367
|
+
} else if ("productImage" in g) {
|
|
1368
|
+
const { hasGradient: C, productImage: S, ...R } = g;
|
|
1369
|
+
y = S, O = C, N = R;
|
|
1370
|
+
} else if ("hasGradient" in g) {
|
|
1371
|
+
const { hasGradient: C, ...S } = g;
|
|
1372
|
+
O = C, N = S;
|
|
1365
1373
|
}
|
|
1366
|
-
const
|
|
1367
|
-
"--promotion-card-background": da[
|
|
1368
|
-
"--promotion-card-color": _a[
|
|
1369
|
-
"--promotion-card-background-image": ca[
|
|
1374
|
+
const zr = {
|
|
1375
|
+
"--promotion-card-background": da[o],
|
|
1376
|
+
"--promotion-card-color": _a[o],
|
|
1377
|
+
"--promotion-card-background-image": ca[o]
|
|
1370
1378
|
};
|
|
1371
1379
|
return /* @__PURE__ */ u(f, { ref: Ir, className: d(`${l}__card`), fullHeight: !0, children: /* @__PURE__ */ c(
|
|
1372
1380
|
"div",
|
|
1373
1381
|
{
|
|
1374
1382
|
"data-testid": e,
|
|
1375
1383
|
style: {
|
|
1376
|
-
...
|
|
1384
|
+
...zr,
|
|
1377
1385
|
...I
|
|
1378
1386
|
},
|
|
1379
|
-
className: d(s, l, `${l}--${
|
|
1387
|
+
className: d(s, l, `${l}--${o}`, {
|
|
1380
1388
|
[`${l}--with-image`]: y,
|
|
1381
1389
|
[`${l}--without-image`]: !y
|
|
1382
1390
|
}),
|
|
1383
|
-
...
|
|
1391
|
+
...N,
|
|
1384
1392
|
children: [
|
|
1385
1393
|
/* @__PURE__ */ c(
|
|
1386
1394
|
"div",
|
|
@@ -1390,8 +1398,8 @@ const la = /* @__PURE__ */ oa(ua), sa = {
|
|
|
1390
1398
|
[`${l}__content--without-image`]: !y
|
|
1391
1399
|
}),
|
|
1392
1400
|
children: [
|
|
1393
|
-
a && /* @__PURE__ */ u("div", { "data-testid": "badgeWrapper", className: d(`${l}__badge-wrapper`), children: /* @__PURE__ */ c(le, { variant:
|
|
1394
|
-
|
|
1401
|
+
a && /* @__PURE__ */ u("div", { "data-testid": "badgeWrapper", className: d(`${l}__badge-wrapper`), children: /* @__PURE__ */ c(le, { variant: o === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1402
|
+
n && n,
|
|
1395
1403
|
a
|
|
1396
1404
|
] }) }),
|
|
1397
1405
|
/* @__PURE__ */ c(
|
|
@@ -1399,11 +1407,11 @@ const la = /* @__PURE__ */ oa(ua), sa = {
|
|
|
1399
1407
|
{
|
|
1400
1408
|
className: d(
|
|
1401
1409
|
`${l}__main-content`,
|
|
1402
|
-
`${l}__main-content--${
|
|
1410
|
+
`${l}__main-content--${z}`
|
|
1403
1411
|
),
|
|
1404
1412
|
children: [
|
|
1405
1413
|
/* @__PURE__ */ u(
|
|
1406
|
-
|
|
1414
|
+
kr,
|
|
1407
1415
|
{
|
|
1408
1416
|
tag: r,
|
|
1409
1417
|
variant: t,
|
|
@@ -1435,12 +1443,12 @@ const la = /* @__PURE__ */ oa(ua), sa = {
|
|
|
1435
1443
|
"div",
|
|
1436
1444
|
{
|
|
1437
1445
|
className: d(`${l}__image-wrapper`, {
|
|
1438
|
-
[`${l}__image-wrapper--product`]: "productImage" in
|
|
1439
|
-
[`${l}__image-wrapper--decorative`]: "decorativeImage" in
|
|
1446
|
+
[`${l}__image-wrapper--product`]: "productImage" in g,
|
|
1447
|
+
[`${l}__image-wrapper--decorative`]: "decorativeImage" in g
|
|
1440
1448
|
}),
|
|
1441
1449
|
children: [
|
|
1442
1450
|
y,
|
|
1443
|
-
|
|
1451
|
+
O && /* @__PURE__ */ u(
|
|
1444
1452
|
"div",
|
|
1445
1453
|
{
|
|
1446
1454
|
className: d(`${l}__image-gradient`),
|