@purpurds/promotion-card 5.11.0 → 5.11.2
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 +3 -3
- package/dist/promotion-card.cjs.js +11 -11
- package/dist/promotion-card.cjs.js.map +1 -1
- package/dist/promotion-card.d.ts.map +1 -1
- package/dist/promotion-card.es.js +202 -199
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +19 -19
- package/src/promotion-card.module.scss +1 -2
- package/src/promotion-card.stories.tsx +30 -3
- package/readme.mdx +0 -60
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as _, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as E, Children as B, isValidElement as U, createElement as $, cloneElement as
|
|
2
|
+
import { forwardRef as E, Children as B, isValidElement as U, createElement as $, cloneElement as ar, useEffect as xr, Fragment as br } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function
|
|
4
|
+
function Cr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var or = { exports: {} };
|
|
8
8
|
/*!
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
@@ -39,9 +39,9 @@ var ar = { exports: {} };
|
|
|
39
39
|
}
|
|
40
40
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
43
|
-
var
|
|
44
|
-
const
|
|
42
|
+
})(or);
|
|
43
|
+
var Sr = or.exports;
|
|
44
|
+
const Fr = /* @__PURE__ */ Cr(Sr), Ar = {
|
|
45
45
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
46
46
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
47
47
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -49,56 +49,56 @@ const Sr = /* @__PURE__ */ br(Cr), Fr = {
|
|
|
49
49
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
50
50
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
51
51
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
52
|
-
},
|
|
52
|
+
}, kr = {
|
|
53
53
|
name: "alert",
|
|
54
54
|
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>',
|
|
55
55
|
keywords: ["alert"],
|
|
56
56
|
category: "status"
|
|
57
|
-
},
|
|
57
|
+
}, Or = {
|
|
58
58
|
name: "check-circle",
|
|
59
59
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.487 9.514a.872.872 0 1 0-1.42-1.014l-4.248 5.948-2.18-2.18a.872.872 0 0 0-1.233 1.234l2.908 2.908a.872.872 0 0 0 1.326-.11l4.847-6.786Z"/><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>',
|
|
60
60
|
keywords: ["check-circle"],
|
|
61
61
|
category: "status"
|
|
62
|
-
},
|
|
62
|
+
}, Br = {
|
|
63
63
|
name: "error",
|
|
64
64
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.354 3.05c.732-1.267 2.56-1.267 3.291 0l8.66 15c.732 1.267-.182 2.85-1.645 2.85H3.34c-1.463 0-2.377-1.583-1.646-2.85l8.66-15Zm1.595.862a.092.092 0 0 0-.036.038l-8.66 15a.092.092 0 0 0-.015.05c0 .014.005.032.015.05a.11.11 0 0 0 .036.038.09.09 0 0 0 .05.012H20.66a.088.088 0 0 0 .05-.012.106.106 0 0 0 .037-.038.105.105 0 0 0 .015-.05.092.092 0 0 0-.015-.05l-8.66-15a.092.092 0 0 0-.036-.038A.106.106 0 0 0 12 3.9a.105.105 0 0 0-.05.012Z" clip-rule="evenodd"/><path d="m12.523 14.922.412-6.25a.936.936 0 1 0-1.868 0l.421 6.25h1.035ZM12 17.52c.44 0 .826-.387.826-.815 0-.418-.387-.816-.826-.816-.428 0-.825.398-.825.816 0 .428.397.815.825.815Z"/><path fill-rule="evenodd" d="M12.691 15.096h-1.37l-.431-6.53a1 1 0 0 1 .997-1.066h.227a1 1 0 0 1 .998 1.064l-.42 6.532Zm.244-6.425a.936.936 0 1 0-1.868.002l.421 6.249h1.035l.412-6.25ZM13 16.706c0 .526-.466.99-1 .99-.522 0-1-.463-1-.99 0-.264.125-.51.304-.689.18-.178.429-.301.696-.301.536 0 1 .475 1 .99Zm-.174 0c0 .428-.387.815-.826.815-.428 0-.825-.387-.825-.815 0-.418.397-.816.825-.816.44 0 .826.398.826.816Z" clip-rule="evenodd"/></svg>',
|
|
65
65
|
keywords: ["error"],
|
|
66
66
|
category: "status"
|
|
67
|
-
},
|
|
67
|
+
}, $r = {
|
|
68
68
|
name: "info",
|
|
69
69
|
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>',
|
|
70
70
|
keywords: ["info"],
|
|
71
71
|
category: "status"
|
|
72
|
-
},
|
|
72
|
+
}, Er = {
|
|
73
73
|
name: "offering",
|
|
74
74
|
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>',
|
|
75
75
|
keywords: ["offering"],
|
|
76
76
|
category: "other"
|
|
77
|
-
},
|
|
77
|
+
}, Nr = {
|
|
78
78
|
name: "question",
|
|
79
79
|
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>',
|
|
80
80
|
keywords: ["question"],
|
|
81
81
|
category: "status"
|
|
82
|
-
}, Gr =
|
|
82
|
+
}, Gr = Fr.bind(Ar), T = "purpur-icon", Mr = "md", Zr = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), Ur = ({ content: e = "", title: o } = {}) => {
|
|
83
83
|
const a = [
|
|
84
84
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
85
85
|
{ name: "fill", value: "currentColor" },
|
|
86
86
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
87
87
|
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
88
88
|
], n = o ? `<title>${o}</title>` : "";
|
|
89
|
-
return `<svg ${
|
|
90
|
-
},
|
|
89
|
+
return `<svg ${Zr(a)}>${n}${e}</svg>`;
|
|
90
|
+
}, Ir = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), jr = ({
|
|
91
91
|
["data-testid"]: e,
|
|
92
92
|
svg: o,
|
|
93
93
|
allyTitle: a,
|
|
94
|
-
className: n
|
|
94
|
+
className: n,
|
|
95
95
|
size: p = Mr,
|
|
96
96
|
...r
|
|
97
97
|
}) => {
|
|
98
|
-
const t =
|
|
99
|
-
content:
|
|
98
|
+
const t = Ur({
|
|
99
|
+
content: Ir(o.svg),
|
|
100
100
|
title: a
|
|
101
|
-
}), i = Gr(n,
|
|
101
|
+
}), i = Gr(n, T, `${T}--${p}`);
|
|
102
102
|
return /* @__PURE__ */ l(
|
|
103
103
|
"span",
|
|
104
104
|
{
|
|
@@ -110,10 +110,10 @@ const Sr = /* @__PURE__ */ br(Cr), Fr = {
|
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
112
|
};
|
|
113
|
-
function
|
|
113
|
+
function Rr(e) {
|
|
114
114
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var ir = { exports: {} };
|
|
117
117
|
/*!
|
|
118
118
|
Copyright (c) 2018 Jed Watson.
|
|
119
119
|
Licensed under the MIT License (MIT), see
|
|
@@ -148,9 +148,9 @@ var or = { exports: {} };
|
|
|
148
148
|
}
|
|
149
149
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
150
150
|
})();
|
|
151
|
-
})(
|
|
152
|
-
var
|
|
153
|
-
const
|
|
151
|
+
})(ir);
|
|
152
|
+
var Dr = ir.exports;
|
|
153
|
+
const Lr = /* @__PURE__ */ Rr(Dr), P = {
|
|
154
154
|
"purpur-badge": "_purpur-badge_stlab_1",
|
|
155
155
|
"purpur-badge--attention": "_purpur-badge--attention_stlab_13",
|
|
156
156
|
"purpur-badge--special": "_purpur-badge--special_stlab_17",
|
|
@@ -159,7 +159,7 @@ const Dr = /* @__PURE__ */ jr(Rr), T = {
|
|
|
159
159
|
"purpur-badge--success": "_purpur-badge--success_stlab_29",
|
|
160
160
|
"purpur-badge--warning": "_purpur-badge--warning_stlab_33",
|
|
161
161
|
"purpur-badge--error": "_purpur-badge--error_stlab_37"
|
|
162
|
-
},
|
|
162
|
+
}, z = "purpur-badge", m = {
|
|
163
163
|
ATTENTION: "attention",
|
|
164
164
|
SPECIAL: "special",
|
|
165
165
|
NEUTRAL: "neutral",
|
|
@@ -167,25 +167,25 @@ const Dr = /* @__PURE__ */ jr(Rr), T = {
|
|
|
167
167
|
SUCCESS: "success",
|
|
168
168
|
WARNING: "warning",
|
|
169
169
|
ERROR: "error"
|
|
170
|
-
},
|
|
170
|
+
}, qr = (e) => {
|
|
171
171
|
switch (e) {
|
|
172
172
|
case m.ATTENTION:
|
|
173
173
|
case m.SPECIAL:
|
|
174
|
-
return
|
|
174
|
+
return Er;
|
|
175
175
|
case m.INFORMATION:
|
|
176
|
-
return
|
|
176
|
+
return $r;
|
|
177
177
|
case m.SUCCESS:
|
|
178
|
-
return
|
|
178
|
+
return Or;
|
|
179
179
|
case m.WARNING:
|
|
180
|
-
return
|
|
180
|
+
return kr;
|
|
181
181
|
case m.ERROR:
|
|
182
|
-
return
|
|
182
|
+
return Br;
|
|
183
183
|
case m.NEUTRAL:
|
|
184
|
-
return
|
|
184
|
+
return Nr;
|
|
185
185
|
default:
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
|
-
},
|
|
188
|
+
}, Tr = ({
|
|
189
189
|
children: e,
|
|
190
190
|
showIcon: o = !0,
|
|
191
191
|
variant: a,
|
|
@@ -194,16 +194,16 @@ const Dr = /* @__PURE__ */ jr(Rr), T = {
|
|
|
194
194
|
className: r = "",
|
|
195
195
|
...t
|
|
196
196
|
}) => {
|
|
197
|
-
const i =
|
|
197
|
+
const i = qr(a), u = Lr([r, P[z], P[`${z}--${a}`]]);
|
|
198
198
|
return /* @__PURE__ */ _("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
199
|
-
o && i && /* @__PURE__ */ l(
|
|
199
|
+
o && i && /* @__PURE__ */ l(jr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: i }),
|
|
200
200
|
e
|
|
201
201
|
] });
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function Pr(e) {
|
|
204
204
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var nr = { exports: {} };
|
|
207
207
|
/*!
|
|
208
208
|
Copyright (c) 2018 Jed Watson.
|
|
209
209
|
Licensed under the MIT License (MIT), see
|
|
@@ -238,15 +238,15 @@ var ir = { exports: {} };
|
|
|
238
238
|
}
|
|
239
239
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
240
240
|
})();
|
|
241
|
-
})(
|
|
242
|
-
var
|
|
243
|
-
const f = /* @__PURE__ */
|
|
241
|
+
})(nr);
|
|
242
|
+
var zr = nr.exports;
|
|
243
|
+
const f = /* @__PURE__ */ Pr(zr), Hr = {
|
|
244
244
|
"purpur-card": "_purpur-card_5j8zb_1"
|
|
245
245
|
};
|
|
246
|
-
function
|
|
246
|
+
function Vr(e) {
|
|
247
247
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
248
248
|
}
|
|
249
|
-
var
|
|
249
|
+
var pr = { exports: {} };
|
|
250
250
|
/*!
|
|
251
251
|
Copyright (c) 2018 Jed Watson.
|
|
252
252
|
Licensed under the MIT License (MIT), see
|
|
@@ -281,9 +281,9 @@ var nr = { exports: {} };
|
|
|
281
281
|
}
|
|
282
282
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
283
283
|
})();
|
|
284
|
-
})(
|
|
285
|
-
var
|
|
286
|
-
const
|
|
284
|
+
})(pr);
|
|
285
|
+
var Wr = pr.exports;
|
|
286
|
+
const Xr = /* @__PURE__ */ Vr(Wr), Jr = {
|
|
287
287
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
288
288
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
289
289
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -291,56 +291,56 @@ const Wr = /* @__PURE__ */ Hr(Vr), Xr = {
|
|
|
291
291
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
292
292
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
293
293
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
294
|
-
},
|
|
294
|
+
}, Kr = {
|
|
295
295
|
name: "alert",
|
|
296
296
|
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>',
|
|
297
297
|
keywords: ["alert"],
|
|
298
298
|
category: "status"
|
|
299
|
-
},
|
|
299
|
+
}, Qr = {
|
|
300
300
|
name: "check-circle",
|
|
301
301
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.487 9.514a.872.872 0 1 0-1.42-1.014l-4.248 5.948-2.18-2.18a.872.872 0 0 0-1.233 1.234l2.908 2.908a.872.872 0 0 0 1.326-.11l4.847-6.786Z"/><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>',
|
|
302
302
|
keywords: ["check-circle"],
|
|
303
303
|
category: "status"
|
|
304
|
-
},
|
|
304
|
+
}, Yr = {
|
|
305
305
|
name: "error",
|
|
306
306
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.354 3.05c.732-1.267 2.56-1.267 3.291 0l8.66 15c.732 1.267-.182 2.85-1.645 2.85H3.34c-1.463 0-2.377-1.583-1.646-2.85l8.66-15Zm1.595.862a.092.092 0 0 0-.036.038l-8.66 15a.092.092 0 0 0-.015.05c0 .014.005.032.015.05a.11.11 0 0 0 .036.038.09.09 0 0 0 .05.012H20.66a.088.088 0 0 0 .05-.012.106.106 0 0 0 .037-.038.105.105 0 0 0 .015-.05.092.092 0 0 0-.015-.05l-8.66-15a.092.092 0 0 0-.036-.038A.106.106 0 0 0 12 3.9a.105.105 0 0 0-.05.012Z" clip-rule="evenodd"/><path d="m12.523 14.922.412-6.25a.936.936 0 1 0-1.868 0l.421 6.25h1.035ZM12 17.52c.44 0 .826-.387.826-.815 0-.418-.387-.816-.826-.816-.428 0-.825.398-.825.816 0 .428.397.815.825.815Z"/><path fill-rule="evenodd" d="M12.691 15.096h-1.37l-.431-6.53a1 1 0 0 1 .997-1.066h.227a1 1 0 0 1 .998 1.064l-.42 6.532Zm.244-6.425a.936.936 0 1 0-1.868.002l.421 6.249h1.035l.412-6.25ZM13 16.706c0 .526-.466.99-1 .99-.522 0-1-.463-1-.99 0-.264.125-.51.304-.689.18-.178.429-.301.696-.301.536 0 1 .475 1 .99Zm-.174 0c0 .428-.387.815-.826.815-.428 0-.825-.387-.825-.815 0-.418.397-.816.825-.816.44 0 .826.398.826.816Z" clip-rule="evenodd"/></svg>',
|
|
307
307
|
keywords: ["error"],
|
|
308
308
|
category: "status"
|
|
309
|
-
},
|
|
309
|
+
}, re = {
|
|
310
310
|
name: "info",
|
|
311
311
|
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>',
|
|
312
312
|
keywords: ["info"],
|
|
313
313
|
category: "status"
|
|
314
|
-
},
|
|
314
|
+
}, ee = {
|
|
315
315
|
name: "offering",
|
|
316
316
|
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>',
|
|
317
317
|
keywords: ["offering"],
|
|
318
318
|
category: "other"
|
|
319
|
-
},
|
|
319
|
+
}, te = {
|
|
320
320
|
name: "question",
|
|
321
321
|
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>',
|
|
322
322
|
keywords: ["question"],
|
|
323
323
|
category: "status"
|
|
324
|
-
},
|
|
324
|
+
}, ae = Xr.bind(Jr), H = "purpur-icon", oe = "md", ie = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), ne = ({ content: e = "", title: o } = {}) => {
|
|
325
325
|
const a = [
|
|
326
326
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
327
327
|
{ name: "fill", value: "currentColor" },
|
|
328
328
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
329
329
|
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
330
330
|
], n = o ? `<title>${o}</title>` : "";
|
|
331
|
-
return `<svg ${
|
|
332
|
-
},
|
|
331
|
+
return `<svg ${ie(a)}>${n}${e}</svg>`;
|
|
332
|
+
}, pe = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), le = ({
|
|
333
333
|
["data-testid"]: e,
|
|
334
334
|
svg: o,
|
|
335
335
|
allyTitle: a,
|
|
336
|
-
className: n
|
|
337
|
-
size: p =
|
|
336
|
+
className: n,
|
|
337
|
+
size: p = oe,
|
|
338
338
|
...r
|
|
339
339
|
}) => {
|
|
340
|
-
const t =
|
|
341
|
-
content:
|
|
340
|
+
const t = ne({
|
|
341
|
+
content: pe(o.svg),
|
|
342
342
|
title: a
|
|
343
|
-
}), i =
|
|
343
|
+
}), i = ae(n, H, `${H}--${p}`);
|
|
344
344
|
return /* @__PURE__ */ l(
|
|
345
345
|
"span",
|
|
346
346
|
{
|
|
@@ -352,10 +352,10 @@ const Wr = /* @__PURE__ */ Hr(Vr), Xr = {
|
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
354
|
};
|
|
355
|
-
function
|
|
355
|
+
function se(e) {
|
|
356
356
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
357
357
|
}
|
|
358
|
-
var
|
|
358
|
+
var lr = { exports: {} };
|
|
359
359
|
/*!
|
|
360
360
|
Copyright (c) 2018 Jed Watson.
|
|
361
361
|
Licensed under the MIT License (MIT), see
|
|
@@ -390,9 +390,9 @@ var pr = { exports: {} };
|
|
|
390
390
|
}
|
|
391
391
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
392
392
|
})();
|
|
393
|
-
})(
|
|
394
|
-
var
|
|
395
|
-
const
|
|
393
|
+
})(lr);
|
|
394
|
+
var ue = lr.exports;
|
|
395
|
+
const de = /* @__PURE__ */ se(ue), V = {
|
|
396
396
|
"purpur-badge": "_purpur-badge_stlab_1",
|
|
397
397
|
"purpur-badge--attention": "_purpur-badge--attention_stlab_13",
|
|
398
398
|
"purpur-badge--special": "_purpur-badge--special_stlab_17",
|
|
@@ -401,7 +401,7 @@ const ue = /* @__PURE__ */ le(se), H = {
|
|
|
401
401
|
"purpur-badge--success": "_purpur-badge--success_stlab_29",
|
|
402
402
|
"purpur-badge--warning": "_purpur-badge--warning_stlab_33",
|
|
403
403
|
"purpur-badge--error": "_purpur-badge--error_stlab_37"
|
|
404
|
-
},
|
|
404
|
+
}, W = "purpur-badge", v = {
|
|
405
405
|
ATTENTION: "attention",
|
|
406
406
|
SPECIAL: "special",
|
|
407
407
|
NEUTRAL: "neutral",
|
|
@@ -409,25 +409,25 @@ const ue = /* @__PURE__ */ le(se), H = {
|
|
|
409
409
|
SUCCESS: "success",
|
|
410
410
|
WARNING: "warning",
|
|
411
411
|
ERROR: "error"
|
|
412
|
-
},
|
|
412
|
+
}, ce = (e) => {
|
|
413
413
|
switch (e) {
|
|
414
414
|
case v.ATTENTION:
|
|
415
415
|
case v.SPECIAL:
|
|
416
|
-
return
|
|
416
|
+
return ee;
|
|
417
417
|
case v.INFORMATION:
|
|
418
|
-
return
|
|
418
|
+
return re;
|
|
419
419
|
case v.SUCCESS:
|
|
420
|
-
return
|
|
420
|
+
return Qr;
|
|
421
421
|
case v.WARNING:
|
|
422
|
-
return
|
|
422
|
+
return Kr;
|
|
423
423
|
case v.ERROR:
|
|
424
|
-
return
|
|
424
|
+
return Yr;
|
|
425
425
|
case v.NEUTRAL:
|
|
426
|
-
return
|
|
426
|
+
return te;
|
|
427
427
|
default:
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, _e = ({
|
|
431
431
|
children: e,
|
|
432
432
|
showIcon: o = !0,
|
|
433
433
|
variant: a,
|
|
@@ -436,55 +436,55 @@ const ue = /* @__PURE__ */ le(se), H = {
|
|
|
436
436
|
className: r = "",
|
|
437
437
|
...t
|
|
438
438
|
}) => {
|
|
439
|
-
const i =
|
|
439
|
+
const i = ce(a), u = de([r, V[W], V[`${W}--${a}`]]);
|
|
440
440
|
return /* @__PURE__ */ _("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
441
|
-
o && i && /* @__PURE__ */ l(
|
|
441
|
+
o && i && /* @__PURE__ */ l(le, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: i }),
|
|
442
442
|
e
|
|
443
443
|
] });
|
|
444
|
-
},
|
|
444
|
+
}, fe = {
|
|
445
445
|
"purpur-card-badge": "_purpur-card-badge_r7moe_1"
|
|
446
|
-
},
|
|
446
|
+
}, he = f.bind(fe), ge = "purpur-card-badge", me = ({
|
|
447
447
|
["data-testid"]: e = "purpur-card-badge",
|
|
448
448
|
variant: o,
|
|
449
449
|
text: a
|
|
450
450
|
}) => o && a ? /* @__PURE__ */ l(
|
|
451
|
-
|
|
451
|
+
_e,
|
|
452
452
|
{
|
|
453
|
-
className:
|
|
453
|
+
className: he(ge),
|
|
454
454
|
variant: o,
|
|
455
455
|
showIcon: !1,
|
|
456
456
|
"data-testid": e,
|
|
457
457
|
children: a
|
|
458
458
|
}
|
|
459
|
-
) : null,
|
|
459
|
+
) : null, ve = {
|
|
460
460
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
461
|
-
},
|
|
461
|
+
}, ye = f.bind(ve), we = "purpur-card-content", xe = ({
|
|
462
462
|
["data-testid"]: e = "purpur-card-content",
|
|
463
463
|
children: o
|
|
464
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
464
|
+
}) => /* @__PURE__ */ l("div", { className: ye(we), "data-testid": e, children: o }), be = {
|
|
465
465
|
"purpur-card-content-container": "_purpur-card-content-container_dx1e4_1",
|
|
466
466
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_dx1e4_7"
|
|
467
|
-
},
|
|
467
|
+
}, Ce = f.bind(be), X = "purpur-card-content-container", Se = ({
|
|
468
468
|
["data-testid"]: e = "purpur-card-content-container",
|
|
469
469
|
children: o,
|
|
470
470
|
isFooter: a = !1
|
|
471
471
|
}) => /* @__PURE__ */ l(
|
|
472
472
|
"div",
|
|
473
473
|
{
|
|
474
|
-
className:
|
|
475
|
-
|
|
474
|
+
className: Ce([
|
|
475
|
+
X,
|
|
476
476
|
{
|
|
477
|
-
[`${
|
|
477
|
+
[`${X}--footer`]: a
|
|
478
478
|
}
|
|
479
479
|
]),
|
|
480
480
|
"data-testid": e,
|
|
481
481
|
children: o
|
|
482
482
|
}
|
|
483
483
|
);
|
|
484
|
-
function
|
|
484
|
+
function Fe(e) {
|
|
485
485
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
486
486
|
}
|
|
487
|
-
var
|
|
487
|
+
var sr = { exports: {} };
|
|
488
488
|
/*!
|
|
489
489
|
Copyright (c) 2018 Jed Watson.
|
|
490
490
|
Licensed under the MIT License (MIT), see
|
|
@@ -519,9 +519,9 @@ var lr = { exports: {} };
|
|
|
519
519
|
}
|
|
520
520
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
521
521
|
})();
|
|
522
|
-
})(
|
|
523
|
-
var
|
|
524
|
-
const
|
|
522
|
+
})(sr);
|
|
523
|
+
var Ae = sr.exports;
|
|
524
|
+
const ke = /* @__PURE__ */ Fe(Ae), Oe = {
|
|
525
525
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
526
526
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
527
527
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -529,33 +529,33 @@ const Ae = /* @__PURE__ */ Se(Fe), ke = {
|
|
|
529
529
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
530
530
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
531
531
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
532
|
-
},
|
|
532
|
+
}, Be = {
|
|
533
533
|
name: "arrow-right",
|
|
534
534
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',
|
|
535
535
|
keywords: ["arrow-right"],
|
|
536
536
|
category: "utility"
|
|
537
|
-
},
|
|
537
|
+
}, $e = {
|
|
538
538
|
name: "checkmark",
|
|
539
539
|
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>',
|
|
540
540
|
keywords: ["checkmark"],
|
|
541
541
|
category: "utility"
|
|
542
|
-
},
|
|
543
|
-
|
|
542
|
+
}, ur = (e) => /* @__PURE__ */ l(
|
|
543
|
+
cr,
|
|
544
544
|
{
|
|
545
545
|
...e,
|
|
546
|
-
svg:
|
|
546
|
+
svg: Be
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
|
|
549
|
+
ur.displayName = "IconArrowRight";
|
|
550
|
+
const dr = (e) => /* @__PURE__ */ l(
|
|
551
|
+
cr,
|
|
552
552
|
{
|
|
553
553
|
...e,
|
|
554
|
-
svg:
|
|
554
|
+
svg: $e
|
|
555
555
|
}
|
|
556
556
|
);
|
|
557
|
-
|
|
558
|
-
const
|
|
557
|
+
dr.displayName = "IconCheckmark";
|
|
558
|
+
const Ee = ke.bind(Oe), J = "purpur-icon", Ne = "md", Ge = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), Me = ({ content: e = "", title: o } = {}) => {
|
|
559
559
|
const a = [
|
|
560
560
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
561
561
|
{ name: "fill", value: "currentColor" },
|
|
@@ -563,18 +563,18 @@ const $e = Ae.bind(ke), X = "purpur-icon", Ee = "md", Ge = (e) => e.filter((o) =
|
|
|
563
563
|
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
564
564
|
], n = o ? `<title>${o}</title>` : "";
|
|
565
565
|
return `<svg ${Ge(a)}>${n}${e}</svg>`;
|
|
566
|
-
},
|
|
566
|
+
}, Ze = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), cr = ({
|
|
567
567
|
["data-testid"]: e,
|
|
568
568
|
svg: o,
|
|
569
569
|
allyTitle: a,
|
|
570
|
-
className: n
|
|
571
|
-
size: p =
|
|
570
|
+
className: n,
|
|
571
|
+
size: p = Ne,
|
|
572
572
|
...r
|
|
573
573
|
}) => {
|
|
574
574
|
const t = Me({
|
|
575
|
-
content:
|
|
575
|
+
content: Ze(o.svg),
|
|
576
576
|
title: a
|
|
577
|
-
}), i =
|
|
577
|
+
}), i = Ee(n, J, `${J}--${p}`);
|
|
578
578
|
return /* @__PURE__ */ l(
|
|
579
579
|
"span",
|
|
580
580
|
{
|
|
@@ -586,10 +586,10 @@ const $e = Ae.bind(ke), X = "purpur-icon", Ee = "md", Ge = (e) => e.filter((o) =
|
|
|
586
586
|
}
|
|
587
587
|
);
|
|
588
588
|
};
|
|
589
|
-
function
|
|
589
|
+
function Ue(e) {
|
|
590
590
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
591
591
|
}
|
|
592
|
-
var
|
|
592
|
+
var _r = { exports: {} };
|
|
593
593
|
/*!
|
|
594
594
|
Copyright (c) 2018 Jed Watson.
|
|
595
595
|
Licensed under the MIT License (MIT), see
|
|
@@ -624,9 +624,9 @@ var cr = { exports: {} };
|
|
|
624
624
|
}
|
|
625
625
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
626
626
|
})();
|
|
627
|
-
})(
|
|
628
|
-
var
|
|
629
|
-
const
|
|
627
|
+
})(_r);
|
|
628
|
+
var Ie = _r.exports;
|
|
629
|
+
const je = /* @__PURE__ */ Ue(Ie), F = {
|
|
630
630
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
631
631
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
632
632
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -641,7 +641,7 @@ const Ie = /* @__PURE__ */ Ze(Ue), F = {
|
|
|
641
641
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
642
642
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
643
643
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
644
|
-
},
|
|
644
|
+
}, Re = {
|
|
645
645
|
PARAGRAPH100: "paragraph-100",
|
|
646
646
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
647
647
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -652,17 +652,17 @@ const Ie = /* @__PURE__ */ Ze(Ue), F = {
|
|
|
652
652
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
653
653
|
OVERLINE100: "overline-100",
|
|
654
654
|
OVERLINE200: "overline-200"
|
|
655
|
-
}, A = "purpur-paragraph",
|
|
655
|
+
}, A = "purpur-paragraph", q = ({
|
|
656
656
|
["data-testid"]: e,
|
|
657
657
|
children: o,
|
|
658
|
-
className: a
|
|
658
|
+
className: a,
|
|
659
659
|
disabled: n,
|
|
660
660
|
enableHyphenation: p = !1,
|
|
661
661
|
negative: r = !1,
|
|
662
|
-
variant: t =
|
|
662
|
+
variant: t = Re.PARAGRAPH100,
|
|
663
663
|
...i
|
|
664
664
|
}) => {
|
|
665
|
-
const u =
|
|
665
|
+
const u = je([
|
|
666
666
|
a,
|
|
667
667
|
F[A],
|
|
668
668
|
F[`${A}--${t}`],
|
|
@@ -673,25 +673,27 @@ const Ie = /* @__PURE__ */ Ze(Ue), F = {
|
|
|
673
673
|
}
|
|
674
674
|
]);
|
|
675
675
|
return /* @__PURE__ */ l("p", { ...i, className: u, "data-testid": e, children: o });
|
|
676
|
-
}
|
|
676
|
+
};
|
|
677
|
+
q.displayName = "Paragraph";
|
|
678
|
+
const De = {
|
|
677
679
|
"purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
|
|
678
680
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
|
|
679
|
-
},
|
|
681
|
+
}, K = f.bind(De), Q = "purpur-card-feature-list", Le = ({
|
|
680
682
|
["data-testid"]: e = "purpur-card-feature-list",
|
|
681
683
|
listItems: o
|
|
682
|
-
}) => o && o.length > 0 ? /* @__PURE__ */ l("ul", { className:
|
|
684
|
+
}) => o && o.length > 0 ? /* @__PURE__ */ l("ul", { className: K(Q), "data-testid": e, children: o.map((a) => /* @__PURE__ */ _(
|
|
683
685
|
"li",
|
|
684
686
|
{
|
|
685
|
-
className:
|
|
687
|
+
className: K(`${Q}__list-item`),
|
|
686
688
|
"data-testid": `${e}-item`,
|
|
687
689
|
children: [
|
|
688
|
-
/* @__PURE__ */ l(
|
|
689
|
-
/* @__PURE__ */ l(
|
|
690
|
+
/* @__PURE__ */ l(dr, { size: "xs" }),
|
|
691
|
+
/* @__PURE__ */ l(q, { children: a })
|
|
690
692
|
]
|
|
691
693
|
},
|
|
692
694
|
a
|
|
693
695
|
)) }) : null;
|
|
694
|
-
function
|
|
696
|
+
function qe(e) {
|
|
695
697
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
696
698
|
}
|
|
697
699
|
var fr = { exports: {} };
|
|
@@ -730,41 +732,41 @@ var fr = { exports: {} };
|
|
|
730
732
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
731
733
|
})();
|
|
732
734
|
})(fr);
|
|
733
|
-
var
|
|
734
|
-
const
|
|
735
|
+
var Te = fr.exports;
|
|
736
|
+
const Y = /* @__PURE__ */ qe(Te), Pe = "_rotate_1xozj_1", ze = "_dash_1xozj_1", k = {
|
|
735
737
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
736
|
-
rotate:
|
|
738
|
+
rotate: Pe,
|
|
737
739
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
738
740
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
739
741
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
740
742
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
741
743
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
742
744
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
743
|
-
dash:
|
|
745
|
+
dash: ze,
|
|
744
746
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
745
747
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
746
|
-
}, O = "purpur-spinner",
|
|
748
|
+
}, O = "purpur-spinner", He = {
|
|
747
749
|
XXS: "xxs",
|
|
748
750
|
XS: "xs",
|
|
749
751
|
SM: "sm",
|
|
750
752
|
MD: "md",
|
|
751
753
|
LG: "lg"
|
|
752
|
-
},
|
|
754
|
+
}, Ve = ({
|
|
753
755
|
["data-testid"]: e,
|
|
754
756
|
disabled: o = !1,
|
|
755
757
|
negative: a = !1,
|
|
756
|
-
size: n =
|
|
758
|
+
size: n = He.SM,
|
|
757
759
|
...p
|
|
758
760
|
}) => /* @__PURE__ */ l(
|
|
759
761
|
"div",
|
|
760
762
|
{
|
|
761
|
-
className:
|
|
763
|
+
className: Y([k[O], k[`${O}--${n}`]]),
|
|
762
764
|
"data-testid": e,
|
|
763
765
|
...p,
|
|
764
766
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
765
767
|
"circle",
|
|
766
768
|
{
|
|
767
|
-
className:
|
|
769
|
+
className: Y(k[`${O}__circle`], {
|
|
768
770
|
[k[`${O}__circle--disabled`]]: o,
|
|
769
771
|
[k[`${O}__circle--negative`]]: a
|
|
770
772
|
}),
|
|
@@ -774,7 +776,7 @@ const Q = /* @__PURE__ */ Le(qe), Te = "_rotate_1xozj_1", Pe = "_dash_1xozj_1",
|
|
|
774
776
|
}
|
|
775
777
|
) })
|
|
776
778
|
}
|
|
777
|
-
),
|
|
779
|
+
), We = {
|
|
778
780
|
"purpur-card-link-arrow": "_purpur-card-link-arrow_1r4zu_1",
|
|
779
781
|
"purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_1r4zu_33",
|
|
780
782
|
"purpur-card-link-arrow--icon-only": "_purpur-card-link-arrow--icon-only_1r4zu_36",
|
|
@@ -788,7 +790,7 @@ const Q = /* @__PURE__ */ Le(qe), Te = "_rotate_1xozj_1", Pe = "_dash_1xozj_1",
|
|
|
788
790
|
"purpur-card-link-arrow--secondary-negative": "_purpur-card-link-arrow--secondary-negative_1r4zu_87",
|
|
789
791
|
"purpur-card-link-arrow--expressive": "_purpur-card-link-arrow--expressive_1r4zu_98",
|
|
790
792
|
"purpur-card-link-arrow--expressive-negative": "_purpur-card-link-arrow--expressive-negative_1r4zu_108"
|
|
791
|
-
},
|
|
793
|
+
}, Xe = f.bind(We), w = "purpur-card-link-arrow", Je = ({
|
|
792
794
|
["data-testid"]: e = "purpur-card-link-arrow",
|
|
793
795
|
className: o,
|
|
794
796
|
disabled: a = !1,
|
|
@@ -797,7 +799,7 @@ const Q = /* @__PURE__ */ Le(qe), Te = "_rotate_1xozj_1", Pe = "_dash_1xozj_1",
|
|
|
797
799
|
}) => /* @__PURE__ */ l(
|
|
798
800
|
"div",
|
|
799
801
|
{
|
|
800
|
-
className: `${
|
|
802
|
+
className: `${Xe([
|
|
801
803
|
w,
|
|
802
804
|
o,
|
|
803
805
|
`${w}--md`,
|
|
@@ -809,19 +811,19 @@ const Q = /* @__PURE__ */ Le(qe), Te = "_rotate_1xozj_1", Pe = "_dash_1xozj_1",
|
|
|
809
811
|
])} ${w}`,
|
|
810
812
|
"data-testid": e,
|
|
811
813
|
...p,
|
|
812
|
-
children: n ? /* @__PURE__ */ l(
|
|
814
|
+
children: n ? /* @__PURE__ */ l(Ve, { "data-testid": `${e}-spinner`, size: "xs", disabled: a }) : /* @__PURE__ */ l(ur, { "data-testid": `${e}-arrow`, size: "md" })
|
|
813
815
|
}
|
|
814
|
-
),
|
|
816
|
+
), Ke = {
|
|
815
817
|
"purpur-card-overline": "_purpur-card-overline_142el_1"
|
|
816
|
-
},
|
|
818
|
+
}, Qe = f.bind(Ke), Ye = "purpur-card-overline", rt = ({
|
|
817
819
|
["data-testid"]: e = "purpur-card-overline",
|
|
818
820
|
overline: o
|
|
819
|
-
}) => o ? /* @__PURE__ */ l(
|
|
821
|
+
}) => o ? /* @__PURE__ */ l(q, { className: Qe(Ye), "data-testid": e, children: o }) : null, et = {
|
|
820
822
|
"purpur-card-root": "_purpur-card-root_bqk1d_1",
|
|
821
823
|
"purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
|
|
822
824
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
|
|
823
825
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_bqk1d_14"
|
|
824
|
-
},
|
|
826
|
+
}, tt = {
|
|
825
827
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_1sp43_1",
|
|
826
828
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_1sp43_6",
|
|
827
829
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_1sp43_11"
|
|
@@ -836,21 +838,21 @@ function x() {
|
|
|
836
838
|
return e;
|
|
837
839
|
}, x.apply(this, arguments);
|
|
838
840
|
}
|
|
839
|
-
function
|
|
841
|
+
function at(e, o) {
|
|
840
842
|
typeof e == "function" ? e(o) : e != null && (e.current = o);
|
|
841
843
|
}
|
|
842
|
-
function
|
|
844
|
+
function ot(...e) {
|
|
843
845
|
return (o) => e.forEach(
|
|
844
|
-
(a) =>
|
|
846
|
+
(a) => at(a, o)
|
|
845
847
|
);
|
|
846
848
|
}
|
|
847
849
|
const hr = /* @__PURE__ */ E((e, o) => {
|
|
848
|
-
const { children: a, ...n } = e, p = B.toArray(a), r = p.find(
|
|
850
|
+
const { children: a, ...n } = e, p = B.toArray(a), r = p.find(nt);
|
|
849
851
|
if (r) {
|
|
850
852
|
const t = r.props.children, i = p.map((u) => u === r ? B.count(t) > 1 ? B.only(null) : /* @__PURE__ */ U(t) ? t.props.children : null : u);
|
|
851
853
|
return /* @__PURE__ */ $(L, x({}, n, {
|
|
852
854
|
ref: o
|
|
853
|
-
}), /* @__PURE__ */ U(t) ? /* @__PURE__ */
|
|
855
|
+
}), /* @__PURE__ */ U(t) ? /* @__PURE__ */ ar(t, void 0, i) : null);
|
|
854
856
|
}
|
|
855
857
|
return /* @__PURE__ */ $(L, x({}, n, {
|
|
856
858
|
ref: o
|
|
@@ -859,17 +861,17 @@ const hr = /* @__PURE__ */ E((e, o) => {
|
|
|
859
861
|
hr.displayName = "Slot";
|
|
860
862
|
const L = /* @__PURE__ */ E((e, o) => {
|
|
861
863
|
const { children: a, ...n } = e;
|
|
862
|
-
return /* @__PURE__ */ U(a) ? /* @__PURE__ */
|
|
863
|
-
...
|
|
864
|
-
ref: o ?
|
|
864
|
+
return /* @__PURE__ */ U(a) ? /* @__PURE__ */ ar(a, {
|
|
865
|
+
...pt(n, a.props),
|
|
866
|
+
ref: o ? ot(o, a.ref) : a.ref
|
|
865
867
|
}) : B.count(a) > 1 ? B.only(null) : null;
|
|
866
868
|
});
|
|
867
869
|
L.displayName = "SlotClone";
|
|
868
|
-
const
|
|
869
|
-
function
|
|
870
|
-
return /* @__PURE__ */ U(e) && e.type ===
|
|
870
|
+
const it = ({ children: e }) => /* @__PURE__ */ $(br, null, e);
|
|
871
|
+
function nt(e) {
|
|
872
|
+
return /* @__PURE__ */ U(e) && e.type === it;
|
|
871
873
|
}
|
|
872
|
-
function
|
|
874
|
+
function pt(e, o) {
|
|
873
875
|
const a = {
|
|
874
876
|
...o
|
|
875
877
|
};
|
|
@@ -890,7 +892,7 @@ function nt(e, o) {
|
|
|
890
892
|
...a
|
|
891
893
|
};
|
|
892
894
|
}
|
|
893
|
-
const
|
|
895
|
+
const lt = [
|
|
894
896
|
"a",
|
|
895
897
|
"button",
|
|
896
898
|
"div",
|
|
@@ -907,10 +909,10 @@ const pt = [
|
|
|
907
909
|
"span",
|
|
908
910
|
"svg",
|
|
909
911
|
"ul"
|
|
910
|
-
],
|
|
912
|
+
], st = lt.reduce((e, o) => {
|
|
911
913
|
const a = /* @__PURE__ */ E((n, p) => {
|
|
912
914
|
const { asChild: r, ...t } = n, i = r ? hr : o;
|
|
913
|
-
return
|
|
915
|
+
return xr(() => {
|
|
914
916
|
window[Symbol.for("radix-ui")] = !0;
|
|
915
917
|
}, []), /* @__PURE__ */ $(i, x({}, t, {
|
|
916
918
|
ref: p
|
|
@@ -920,7 +922,7 @@ const pt = [
|
|
|
920
922
|
...e,
|
|
921
923
|
[o]: a
|
|
922
924
|
};
|
|
923
|
-
}, {}),
|
|
925
|
+
}, {}), ut = /* @__PURE__ */ E((e, o) => /* @__PURE__ */ $(st.span, x({}, e, {
|
|
924
926
|
ref: o,
|
|
925
927
|
style: {
|
|
926
928
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -936,12 +938,12 @@ const pt = [
|
|
|
936
938
|
wordWrap: "normal",
|
|
937
939
|
...e.style
|
|
938
940
|
}
|
|
939
|
-
}))),
|
|
941
|
+
}))), dt = ut, rr = ({
|
|
940
942
|
asChild: e,
|
|
941
943
|
children: o,
|
|
942
944
|
className: a = "",
|
|
943
945
|
["data-testid"]: n
|
|
944
|
-
}) => /* @__PURE__ */ l(
|
|
946
|
+
}) => /* @__PURE__ */ l(dt, { asChild: e, "data-testid": n, className: a, children: o }), er = f.bind(tt), y = "purpur-card-trigger-item", ct = ({
|
|
945
947
|
["data-testid"]: e = "purpur-card-trigger-item",
|
|
946
948
|
disabled: o = !1,
|
|
947
949
|
href: a,
|
|
@@ -957,7 +959,7 @@ const pt = [
|
|
|
957
959
|
"a",
|
|
958
960
|
{
|
|
959
961
|
"aria-disabled": o,
|
|
960
|
-
className: `${
|
|
962
|
+
className: `${er([
|
|
961
963
|
y,
|
|
962
964
|
{
|
|
963
965
|
[`${y}--disabled`]: o
|
|
@@ -966,14 +968,14 @@ const pt = [
|
|
|
966
968
|
"data-testid": e,
|
|
967
969
|
href: o ? void 0 : a,
|
|
968
970
|
tabIndex: o ? 0 : void 0,
|
|
969
|
-
children: /* @__PURE__ */ l(
|
|
971
|
+
children: /* @__PURE__ */ l(rr, { children: p })
|
|
970
972
|
}
|
|
971
973
|
)
|
|
972
974
|
) : /* @__PURE__ */ l(
|
|
973
975
|
"button",
|
|
974
976
|
{
|
|
975
977
|
"aria-disabled": o,
|
|
976
|
-
className: `${
|
|
978
|
+
className: `${er([
|
|
977
979
|
y,
|
|
978
980
|
`${y}--button`,
|
|
979
981
|
{
|
|
@@ -983,10 +985,10 @@ const pt = [
|
|
|
983
985
|
"data-testid": e,
|
|
984
986
|
type: "button",
|
|
985
987
|
onClick: r,
|
|
986
|
-
children: /* @__PURE__ */ l(
|
|
988
|
+
children: /* @__PURE__ */ l(rr, { children: p })
|
|
987
989
|
}
|
|
988
990
|
);
|
|
989
|
-
},
|
|
991
|
+
}, _t = f.bind(et), R = "purpur-card-root", gr = E(
|
|
990
992
|
({
|
|
991
993
|
["data-testid"]: e = "purpur-card-root",
|
|
992
994
|
children: o,
|
|
@@ -999,7 +1001,7 @@ const pt = [
|
|
|
999
1001
|
variant: u,
|
|
1000
1002
|
...b
|
|
1001
1003
|
}, I) => {
|
|
1002
|
-
const d =
|
|
1004
|
+
const d = _t([
|
|
1003
1005
|
R,
|
|
1004
1006
|
a,
|
|
1005
1007
|
{
|
|
@@ -1010,7 +1012,7 @@ const pt = [
|
|
|
1010
1012
|
return /* @__PURE__ */ _("div", { className: d, "data-testid": e, ref: I, ...b, children: [
|
|
1011
1013
|
o,
|
|
1012
1014
|
(t || r) && i && /* @__PURE__ */ l(
|
|
1013
|
-
|
|
1015
|
+
ct,
|
|
1014
1016
|
{
|
|
1015
1017
|
disabled: n,
|
|
1016
1018
|
href: r,
|
|
@@ -1022,8 +1024,8 @@ const pt = [
|
|
|
1022
1024
|
}
|
|
1023
1025
|
);
|
|
1024
1026
|
gr.displayName = "CardRoot";
|
|
1025
|
-
const
|
|
1026
|
-
const n =
|
|
1027
|
+
const tr = f.bind(Hr), D = "purpur-card", g = ({ children: e, className: o, ...a }) => {
|
|
1028
|
+
const n = tr([
|
|
1027
1029
|
D,
|
|
1028
1030
|
o,
|
|
1029
1031
|
{
|
|
@@ -1031,16 +1033,16 @@ const er = f.bind(zr), D = "purpur-card", g = ({ children: e, className: o, ...a
|
|
|
1031
1033
|
[`${D}--disabled`]: a.disabled
|
|
1032
1034
|
}
|
|
1033
1035
|
]);
|
|
1034
|
-
return /* @__PURE__ */ l(gr, { className:
|
|
1036
|
+
return /* @__PURE__ */ l(gr, { className: tr(n), ...a, children: e });
|
|
1035
1037
|
};
|
|
1036
|
-
g.Badge =
|
|
1037
|
-
g.LinkArrow =
|
|
1038
|
-
g.Content =
|
|
1039
|
-
g.ContentContainer =
|
|
1040
|
-
g.FeatureList =
|
|
1041
|
-
g.Overline =
|
|
1038
|
+
g.Badge = me;
|
|
1039
|
+
g.LinkArrow = Je;
|
|
1040
|
+
g.Content = xe;
|
|
1041
|
+
g.ContentContainer = Se;
|
|
1042
|
+
g.FeatureList = Le;
|
|
1043
|
+
g.Overline = rt;
|
|
1042
1044
|
g.displayName = "Card";
|
|
1043
|
-
function
|
|
1045
|
+
function ft(e) {
|
|
1044
1046
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1045
1047
|
}
|
|
1046
1048
|
var mr = { exports: {} };
|
|
@@ -1079,8 +1081,8 @@ var mr = { exports: {} };
|
|
|
1079
1081
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1080
1082
|
})();
|
|
1081
1083
|
})(mr);
|
|
1082
|
-
var
|
|
1083
|
-
const
|
|
1084
|
+
var ht = mr.exports;
|
|
1085
|
+
const gt = /* @__PURE__ */ ft(ht), M = {
|
|
1084
1086
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
1085
1087
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
1086
1088
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -1096,7 +1098,7 @@ const ht = /* @__PURE__ */ _t(ft), N = {
|
|
|
1096
1098
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
1097
1099
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
1098
1100
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
1099
|
-
},
|
|
1101
|
+
}, mt = {
|
|
1100
1102
|
TITLE100: "title-100",
|
|
1101
1103
|
TITLE200: "title-200",
|
|
1102
1104
|
TITLE300: "title-300",
|
|
@@ -1105,31 +1107,32 @@ const ht = /* @__PURE__ */ _t(ft), N = {
|
|
|
1105
1107
|
TITLE600: "title-600",
|
|
1106
1108
|
TITLE700: "title-700",
|
|
1107
1109
|
SUBSECTION100: "subsection-100"
|
|
1108
|
-
}, Z = "purpur-heading",
|
|
1110
|
+
}, Z = "purpur-heading", vr = ({
|
|
1109
1111
|
["data-testid"]: e,
|
|
1110
1112
|
children: o,
|
|
1111
1113
|
className: a = "",
|
|
1112
1114
|
enableHyphenation: n = !1,
|
|
1113
1115
|
negative: p = !1,
|
|
1114
1116
|
tag: r,
|
|
1115
|
-
variant: t =
|
|
1117
|
+
variant: t = mt.TITLE100,
|
|
1116
1118
|
...i
|
|
1117
1119
|
}) => {
|
|
1118
|
-
const u = r, b =
|
|
1120
|
+
const u = r, b = gt([
|
|
1119
1121
|
a,
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
+
M[Z],
|
|
1123
|
+
M[`${Z}--${t}`],
|
|
1122
1124
|
{
|
|
1123
|
-
[
|
|
1124
|
-
[
|
|
1125
|
+
[M[`${Z}--hyphens`]]: n,
|
|
1126
|
+
[M[`${Z}--negative`]]: p
|
|
1125
1127
|
}
|
|
1126
1128
|
]);
|
|
1127
1129
|
return /* @__PURE__ */ l(u, { ...i, className: b, "data-testid": e, children: o });
|
|
1128
1130
|
};
|
|
1131
|
+
vr.displayName = "Heading";
|
|
1129
1132
|
function vt(e) {
|
|
1130
1133
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1131
1134
|
}
|
|
1132
|
-
var
|
|
1135
|
+
var yr = { exports: {} };
|
|
1133
1136
|
/*!
|
|
1134
1137
|
Copyright (c) 2018 Jed Watson.
|
|
1135
1138
|
Licensed under the MIT License (MIT), see
|
|
@@ -1164,8 +1167,8 @@ var vr = { exports: {} };
|
|
|
1164
1167
|
}
|
|
1165
1168
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1166
1169
|
})();
|
|
1167
|
-
})(
|
|
1168
|
-
var yt =
|
|
1170
|
+
})(yr);
|
|
1171
|
+
var yt = yr.exports;
|
|
1169
1172
|
const wt = /* @__PURE__ */ vt(yt), xt = {
|
|
1170
1173
|
"purpur-promotion-card": "_purpur-promotion-card_hmb27_1",
|
|
1171
1174
|
"purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_hmb27_8",
|
|
@@ -1208,18 +1211,18 @@ const wt = /* @__PURE__ */ vt(yt), xt = {
|
|
|
1208
1211
|
style: I,
|
|
1209
1212
|
...d
|
|
1210
1213
|
}) => {
|
|
1211
|
-
let
|
|
1214
|
+
let N = d, h, G;
|
|
1212
1215
|
if ("decorativeImage" in d) {
|
|
1213
1216
|
const { hasGradient: C, decorativeImage: S, ...j } = d;
|
|
1214
|
-
h = S,
|
|
1217
|
+
h = S, G = C, N = j;
|
|
1215
1218
|
} else if ("productImage" in d) {
|
|
1216
1219
|
const { hasGradient: C, productImage: S, ...j } = d;
|
|
1217
|
-
h = S,
|
|
1220
|
+
h = S, G = C, N = j;
|
|
1218
1221
|
} else if ("hasGradient" in d) {
|
|
1219
1222
|
const { hasGradient: C, ...S } = d;
|
|
1220
|
-
|
|
1223
|
+
G = C, N = S;
|
|
1221
1224
|
}
|
|
1222
|
-
const
|
|
1225
|
+
const wr = {
|
|
1223
1226
|
"--promotion-card-background": bt[o],
|
|
1224
1227
|
"--promotion-card-color": St[o],
|
|
1225
1228
|
"--promotion-card-background-image": Ct[o]
|
|
@@ -1229,7 +1232,7 @@ const wt = /* @__PURE__ */ vt(yt), xt = {
|
|
|
1229
1232
|
{
|
|
1230
1233
|
"data-testid": e,
|
|
1231
1234
|
style: {
|
|
1232
|
-
...
|
|
1235
|
+
...wr,
|
|
1233
1236
|
...I
|
|
1234
1237
|
},
|
|
1235
1238
|
className: c([
|
|
@@ -1241,7 +1244,7 @@ const wt = /* @__PURE__ */ vt(yt), xt = {
|
|
|
1241
1244
|
[`${s}--without-image`]: !h
|
|
1242
1245
|
}
|
|
1243
1246
|
]),
|
|
1244
|
-
...
|
|
1247
|
+
...N,
|
|
1245
1248
|
children: [
|
|
1246
1249
|
/* @__PURE__ */ _(
|
|
1247
1250
|
"div",
|
|
@@ -1254,13 +1257,13 @@ const wt = /* @__PURE__ */ vt(yt), xt = {
|
|
|
1254
1257
|
}
|
|
1255
1258
|
]),
|
|
1256
1259
|
children: [
|
|
1257
|
-
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: c(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(
|
|
1260
|
+
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: c(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(Tr, { variant: o === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1258
1261
|
n && n,
|
|
1259
1262
|
a
|
|
1260
1263
|
] }) }),
|
|
1261
1264
|
/* @__PURE__ */ _("div", { className: c(`${s}__main-content`), children: [
|
|
1262
1265
|
/* @__PURE__ */ l(
|
|
1263
|
-
|
|
1266
|
+
vr,
|
|
1264
1267
|
{
|
|
1265
1268
|
tag: r,
|
|
1266
1269
|
variant: t,
|
|
@@ -1286,7 +1289,7 @@ const wt = /* @__PURE__ */ vt(yt), xt = {
|
|
|
1286
1289
|
]),
|
|
1287
1290
|
children: [
|
|
1288
1291
|
h,
|
|
1289
|
-
|
|
1292
|
+
G && /* @__PURE__ */ l(
|
|
1290
1293
|
"div",
|
|
1291
1294
|
{
|
|
1292
1295
|
className: c(`${s}__image-gradient`),
|