@purpurds/promotion-card 5.27.3 → 5.27.4
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 +5 -5
- package/dist/promotion-card.cjs.js +15 -15
- package/dist/promotion-card.cjs.js.map +1 -1
- package/dist/promotion-card.d.ts +4 -4
- package/dist/promotion-card.d.ts.map +1 -1
- package/dist/promotion-card.es.js +363 -337
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +11 -11
- package/src/promotion-card.stories.tsx +5 -0
- package/src/promotion-card.tsx +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as l, Fragment as hr } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as $, Children as D, isValidElement as V, createElement as P, cloneElement as mr, useEffect as Rr, Fragment as Dr } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function
|
|
4
|
+
function Pr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
7
|
var vr = { exports: {} };
|
|
@@ -41,7 +41,7 @@ var vr = { exports: {} };
|
|
|
41
41
|
})();
|
|
42
42
|
})(vr);
|
|
43
43
|
var Tr = vr.exports;
|
|
44
|
-
const
|
|
44
|
+
const zr = /* @__PURE__ */ Pr(Tr), Hr = {
|
|
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,61 +49,61 @@ const Hr = /* @__PURE__ */ Dr(Tr), Vr = {
|
|
|
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
|
+
}, Vr = {
|
|
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
|
+
}, Wr = {
|
|
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
|
+
}, Xr = {
|
|
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
|
+
}, Kr = {
|
|
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
|
+
}, Yr = {
|
|
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
|
+
}, Jr = {
|
|
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
|
-
},
|
|
82
|
+
}, Qr = {
|
|
83
83
|
name: "tag",
|
|
84
84
|
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>',
|
|
85
85
|
keywords: ["tag"],
|
|
86
86
|
category: "other"
|
|
87
|
-
},
|
|
87
|
+
}, re = zr.bind(Hr), rr = "purpur-icon", ee = "md", te = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), ae = ({ content: e = "", title: i } = {}) => {
|
|
88
88
|
const a = [
|
|
89
89
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
90
90
|
{ name: "fill", value: "currentColor" },
|
|
91
91
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
92
92
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
93
93
|
], n = i ? `<title>${i}</title>` : "";
|
|
94
|
-
return `<svg ${
|
|
95
|
-
},
|
|
94
|
+
return `<svg ${te(a)}>${n}${e}</svg>`;
|
|
95
|
+
}, ie = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), yr = ({
|
|
96
96
|
["data-testid"]: e,
|
|
97
97
|
svg: i,
|
|
98
98
|
allyTitle: a,
|
|
99
99
|
className: n,
|
|
100
|
-
size: p =
|
|
100
|
+
size: p = ee,
|
|
101
101
|
...r
|
|
102
102
|
}) => {
|
|
103
|
-
const t =
|
|
104
|
-
content:
|
|
103
|
+
const t = ae({
|
|
104
|
+
content: ie(i.svg),
|
|
105
105
|
title: a
|
|
106
|
-
}), o =
|
|
106
|
+
}), o = re(n, rr, `${rr}--${p}`);
|
|
107
107
|
return /* @__PURE__ */ l(
|
|
108
108
|
"span",
|
|
109
109
|
{
|
|
@@ -116,10 +116,10 @@ const Hr = /* @__PURE__ */ Dr(Tr), Vr = {
|
|
|
116
116
|
);
|
|
117
117
|
};
|
|
118
118
|
yr.displayName = "Icon";
|
|
119
|
-
function
|
|
119
|
+
function oe(e) {
|
|
120
120
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
122
|
+
var xr = { exports: {} };
|
|
123
123
|
/*!
|
|
124
124
|
Copyright (c) 2018 Jed Watson.
|
|
125
125
|
Licensed under the MIT License (MIT), see
|
|
@@ -154,9 +154,9 @@ var wr = { exports: {} };
|
|
|
154
154
|
}
|
|
155
155
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
156
156
|
})();
|
|
157
|
-
})(
|
|
158
|
-
var
|
|
159
|
-
const
|
|
157
|
+
})(xr);
|
|
158
|
+
var ne = xr.exports;
|
|
159
|
+
const pe = /* @__PURE__ */ oe(ne), er = {
|
|
160
160
|
"purpur-badge": "_purpur-badge_1r1mu_1",
|
|
161
161
|
"purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
|
|
162
162
|
"purpur-badge--special": "_purpur-badge--special_1r1mu_17",
|
|
@@ -175,27 +175,27 @@ const le = /* @__PURE__ */ ne(pe), er = {
|
|
|
175
175
|
WARNING: "warning",
|
|
176
176
|
ERROR: "error",
|
|
177
177
|
BLACK_FRIDAY: "black-friday"
|
|
178
|
-
},
|
|
178
|
+
}, le = (e) => {
|
|
179
179
|
switch (e) {
|
|
180
180
|
case b.ATTENTION:
|
|
181
181
|
case b.SPECIAL:
|
|
182
|
-
return
|
|
182
|
+
return Yr;
|
|
183
183
|
case b.INFORMATION:
|
|
184
|
-
return
|
|
184
|
+
return Kr;
|
|
185
185
|
case b.SUCCESS:
|
|
186
|
-
return Yr;
|
|
187
|
-
case b.WARNING:
|
|
188
186
|
return Wr;
|
|
187
|
+
case b.WARNING:
|
|
188
|
+
return Vr;
|
|
189
189
|
case b.ERROR:
|
|
190
|
-
return Kr;
|
|
191
|
-
case b.NEUTRAL:
|
|
192
190
|
return Xr;
|
|
191
|
+
case b.NEUTRAL:
|
|
192
|
+
return Jr;
|
|
193
193
|
case b.BLACK_FRIDAY:
|
|
194
|
-
return
|
|
194
|
+
return Qr;
|
|
195
195
|
default:
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
},
|
|
198
|
+
}, ue = ({
|
|
199
199
|
children: e,
|
|
200
200
|
showIcon: i = !0,
|
|
201
201
|
variant: a,
|
|
@@ -204,18 +204,20 @@ const le = /* @__PURE__ */ ne(pe), er = {
|
|
|
204
204
|
className: r = "",
|
|
205
205
|
...t
|
|
206
206
|
}) => {
|
|
207
|
-
const o =
|
|
207
|
+
const o = le(a), u = pe([r, er[tr], er[`${tr}--${a}`]]);
|
|
208
208
|
return /* @__PURE__ */ f("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
209
209
|
i && o && /* @__PURE__ */ l(yr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
|
|
210
210
|
e
|
|
211
211
|
] });
|
|
212
|
-
},
|
|
212
|
+
}, se = {
|
|
213
|
+
SM: "sm",
|
|
214
|
+
MD: "md",
|
|
213
215
|
LG: "lg"
|
|
214
216
|
};
|
|
215
|
-
function
|
|
217
|
+
function de(e) {
|
|
216
218
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
217
219
|
}
|
|
218
|
-
var
|
|
220
|
+
var wr = { exports: {} };
|
|
219
221
|
/*!
|
|
220
222
|
Copyright (c) 2018 Jed Watson.
|
|
221
223
|
Licensed under the MIT License (MIT), see
|
|
@@ -250,40 +252,44 @@ var xr = { exports: {} };
|
|
|
250
252
|
}
|
|
251
253
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
252
254
|
})();
|
|
253
|
-
})(
|
|
254
|
-
var
|
|
255
|
-
const ar = /* @__PURE__ */ ce
|
|
255
|
+
})(wr);
|
|
256
|
+
var ce = wr.exports;
|
|
257
|
+
const ar = /* @__PURE__ */ de(ce), _e = "_rotate_1xozj_1", fe = "_dash_1xozj_1", I = {
|
|
256
258
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
257
|
-
rotate:
|
|
259
|
+
rotate: _e,
|
|
258
260
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
259
261
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
260
262
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
261
263
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
262
264
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
263
265
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
264
|
-
dash:
|
|
266
|
+
dash: fe,
|
|
265
267
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
266
268
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
267
|
-
}, j = "purpur-spinner",
|
|
268
|
-
|
|
269
|
-
|
|
269
|
+
}, j = "purpur-spinner", ge = {
|
|
270
|
+
XXS: "xxs",
|
|
271
|
+
XS: "xs",
|
|
272
|
+
SM: "sm",
|
|
273
|
+
MD: "md",
|
|
274
|
+
LG: "lg"
|
|
275
|
+
}, he = ({
|
|
270
276
|
["data-testid"]: e,
|
|
271
277
|
disabled: i = !1,
|
|
272
278
|
negative: a = !1,
|
|
273
|
-
size: n =
|
|
279
|
+
size: n = ge.SM,
|
|
274
280
|
...p
|
|
275
281
|
}) => /* @__PURE__ */ l(
|
|
276
282
|
"div",
|
|
277
283
|
{
|
|
278
|
-
className: ar([
|
|
284
|
+
className: ar([I[j], I[`${j}--${n}`]]),
|
|
279
285
|
"data-testid": e,
|
|
280
286
|
...p,
|
|
281
287
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
282
288
|
"circle",
|
|
283
289
|
{
|
|
284
|
-
className: ar(
|
|
285
|
-
[
|
|
286
|
-
[
|
|
290
|
+
className: ar(I[`${j}__circle`], {
|
|
291
|
+
[I[`${j}__circle--disabled`]]: i,
|
|
292
|
+
[I[`${j}__circle--negative`]]: a
|
|
287
293
|
}),
|
|
288
294
|
cx: "25",
|
|
289
295
|
cy: "25",
|
|
@@ -292,7 +298,7 @@ const ar = /* @__PURE__ */ ce(_e), fe = "_rotate_1xozj_1", ge = "_dash_1xozj_1",
|
|
|
292
298
|
) })
|
|
293
299
|
}
|
|
294
300
|
);
|
|
295
|
-
function
|
|
301
|
+
function me(e) {
|
|
296
302
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
297
303
|
}
|
|
298
304
|
var br = { exports: {} };
|
|
@@ -331,8 +337,8 @@ var br = { exports: {} };
|
|
|
331
337
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
332
338
|
})();
|
|
333
339
|
})(br);
|
|
334
|
-
var
|
|
335
|
-
const
|
|
340
|
+
var ve = br.exports;
|
|
341
|
+
const ye = /* @__PURE__ */ me(ve), xe = {
|
|
336
342
|
"purpur-button": "_purpur-button_1acxn_1",
|
|
337
343
|
"purpur-button--sm": "_purpur-button--sm_1acxn_33",
|
|
338
344
|
"purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
|
|
@@ -353,7 +359,7 @@ const we = /* @__PURE__ */ ve(ye), xe = {
|
|
|
353
359
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
|
|
354
360
|
"purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
|
|
355
361
|
"purpur-button--text": "_purpur-button--text_1acxn_175"
|
|
356
|
-
},
|
|
362
|
+
}, we = ye.bind(xe), A = "purpur-button", be = ({
|
|
357
363
|
children: e,
|
|
358
364
|
className: i,
|
|
359
365
|
["data-testid"]: a,
|
|
@@ -365,50 +371,50 @@ const we = /* @__PURE__ */ ve(ye), xe = {
|
|
|
365
371
|
onClick: u,
|
|
366
372
|
size: d = "md",
|
|
367
373
|
variant: g,
|
|
368
|
-
type:
|
|
374
|
+
type: w = "button",
|
|
369
375
|
...c
|
|
370
|
-
},
|
|
376
|
+
}, F) => {
|
|
371
377
|
if (r && g === "destructive")
|
|
372
378
|
return null;
|
|
373
|
-
const v =
|
|
379
|
+
const v = we(
|
|
374
380
|
[
|
|
375
|
-
|
|
376
|
-
`${
|
|
377
|
-
`${
|
|
381
|
+
A,
|
|
382
|
+
`${A}--${o ? `${g}-negative` : g}`,
|
|
383
|
+
`${A}--${d}`
|
|
378
384
|
],
|
|
379
385
|
{
|
|
380
|
-
[`${
|
|
381
|
-
[`${
|
|
382
|
-
[`${
|
|
383
|
-
[`${
|
|
386
|
+
[`${A}--icon-only`]: r,
|
|
387
|
+
[`${A}--negative`]: o,
|
|
388
|
+
[`${A}--full-width`]: p,
|
|
389
|
+
[`${A}--disabled`]: n || t
|
|
384
390
|
},
|
|
385
391
|
i
|
|
386
|
-
), _ = (
|
|
387
|
-
n || t ?
|
|
388
|
-
},
|
|
392
|
+
), _ = (T) => {
|
|
393
|
+
n || t ? T.preventDefault() : u && u(T);
|
|
394
|
+
}, C = !!c["aria-disabled"] || n || t;
|
|
389
395
|
return /* @__PURE__ */ f(
|
|
390
396
|
"button",
|
|
391
397
|
{
|
|
392
398
|
className: v,
|
|
393
399
|
"data-testid": a,
|
|
394
|
-
type:
|
|
395
|
-
ref:
|
|
396
|
-
"aria-disabled":
|
|
400
|
+
type: w,
|
|
401
|
+
ref: F,
|
|
402
|
+
"aria-disabled": C,
|
|
397
403
|
onClick: _,
|
|
398
404
|
...c,
|
|
399
405
|
children: [
|
|
400
|
-
t && /* @__PURE__ */ l(
|
|
406
|
+
t && /* @__PURE__ */ l(he, { size: d === se.LG ? "xs" : "xxs", negative: o, disabled: C }),
|
|
401
407
|
" ",
|
|
402
408
|
e
|
|
403
409
|
]
|
|
404
410
|
}
|
|
405
411
|
);
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
function
|
|
412
|
+
}, Sr = $(be);
|
|
413
|
+
Sr.displayName = "Button";
|
|
414
|
+
function Se(e) {
|
|
409
415
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
410
416
|
}
|
|
411
|
-
var
|
|
417
|
+
var $r = { exports: {} };
|
|
412
418
|
/*!
|
|
413
419
|
Copyright (c) 2018 Jed Watson.
|
|
414
420
|
Licensed under the MIT License (MIT), see
|
|
@@ -443,15 +449,15 @@ var Cr = { exports: {} };
|
|
|
443
449
|
}
|
|
444
450
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
445
451
|
})();
|
|
446
|
-
})(
|
|
447
|
-
var
|
|
448
|
-
const m = /* @__PURE__ */
|
|
452
|
+
})($r);
|
|
453
|
+
var $e = $r.exports;
|
|
454
|
+
const m = /* @__PURE__ */ Se($e), Ce = {
|
|
449
455
|
"purpur-card": "_purpur-card_1owb4_1"
|
|
450
456
|
};
|
|
451
|
-
function
|
|
457
|
+
function ke(e) {
|
|
452
458
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
453
459
|
}
|
|
454
|
-
var
|
|
460
|
+
var Cr = { exports: {} };
|
|
455
461
|
/*!
|
|
456
462
|
Copyright (c) 2018 Jed Watson.
|
|
457
463
|
Licensed under the MIT License (MIT), see
|
|
@@ -486,9 +492,9 @@ var Sr = { exports: {} };
|
|
|
486
492
|
}
|
|
487
493
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
488
494
|
})();
|
|
489
|
-
})(
|
|
490
|
-
var
|
|
491
|
-
const
|
|
495
|
+
})(Cr);
|
|
496
|
+
var Ae = Cr.exports;
|
|
497
|
+
const Oe = /* @__PURE__ */ ke(Ae), Be = {
|
|
492
498
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
493
499
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
494
500
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -496,7 +502,7 @@ const Be = /* @__PURE__ */ Oe(Fe), Ae = {
|
|
|
496
502
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
497
503
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
498
504
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
499
|
-
},
|
|
505
|
+
}, Fe = {
|
|
500
506
|
name: "alert",
|
|
501
507
|
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>',
|
|
502
508
|
keywords: ["alert"],
|
|
@@ -506,32 +512,32 @@ const Be = /* @__PURE__ */ Oe(Fe), Ae = {
|
|
|
506
512
|
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>',
|
|
507
513
|
keywords: ["check-circle"],
|
|
508
514
|
category: "status"
|
|
509
|
-
},
|
|
515
|
+
}, Ne = {
|
|
510
516
|
name: "error",
|
|
511
517
|
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>',
|
|
512
518
|
keywords: ["error"],
|
|
513
519
|
category: "status"
|
|
514
|
-
},
|
|
520
|
+
}, Ee = {
|
|
515
521
|
name: "info",
|
|
516
522
|
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>',
|
|
517
523
|
keywords: ["info"],
|
|
518
524
|
category: "status"
|
|
519
|
-
},
|
|
525
|
+
}, Ge = {
|
|
520
526
|
name: "offering",
|
|
521
527
|
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>',
|
|
522
528
|
keywords: ["offering"],
|
|
523
529
|
category: "other"
|
|
524
|
-
},
|
|
530
|
+
}, Ze = {
|
|
525
531
|
name: "question",
|
|
526
532
|
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>',
|
|
527
533
|
keywords: ["question"],
|
|
528
534
|
category: "status"
|
|
529
|
-
},
|
|
535
|
+
}, Ie = {
|
|
530
536
|
name: "tag",
|
|
531
537
|
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>',
|
|
532
538
|
keywords: ["tag"],
|
|
533
539
|
category: "other"
|
|
534
|
-
},
|
|
540
|
+
}, je = Oe.bind(Be), ir = "purpur-icon", Ue = "md", Le = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), qe = ({ content: e = "", title: i } = {}) => {
|
|
535
541
|
const a = [
|
|
536
542
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
537
543
|
{ name: "fill", value: "currentColor" },
|
|
@@ -539,18 +545,18 @@ const Be = /* @__PURE__ */ Oe(Fe), Ae = {
|
|
|
539
545
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
540
546
|
], n = i ? `<title>${i}</title>` : "";
|
|
541
547
|
return `<svg ${Le(a)}>${n}${e}</svg>`;
|
|
542
|
-
},
|
|
548
|
+
}, Re = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), kr = ({
|
|
543
549
|
["data-testid"]: e,
|
|
544
550
|
svg: i,
|
|
545
551
|
allyTitle: a,
|
|
546
552
|
className: n,
|
|
547
|
-
size: p =
|
|
553
|
+
size: p = Ue,
|
|
548
554
|
...r
|
|
549
555
|
}) => {
|
|
550
|
-
const t =
|
|
551
|
-
content:
|
|
556
|
+
const t = qe({
|
|
557
|
+
content: Re(i.svg),
|
|
552
558
|
title: a
|
|
553
|
-
}), o =
|
|
559
|
+
}), o = je(n, ir, `${ir}--${p}`);
|
|
554
560
|
return /* @__PURE__ */ l(
|
|
555
561
|
"span",
|
|
556
562
|
{
|
|
@@ -563,10 +569,10 @@ const Be = /* @__PURE__ */ Oe(Fe), Ae = {
|
|
|
563
569
|
);
|
|
564
570
|
};
|
|
565
571
|
kr.displayName = "Icon";
|
|
566
|
-
function
|
|
572
|
+
function De(e) {
|
|
567
573
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
568
574
|
}
|
|
569
|
-
var
|
|
575
|
+
var Ar = { exports: {} };
|
|
570
576
|
/*!
|
|
571
577
|
Copyright (c) 2018 Jed Watson.
|
|
572
578
|
Licensed under the MIT License (MIT), see
|
|
@@ -601,9 +607,9 @@ var Or = { exports: {} };
|
|
|
601
607
|
}
|
|
602
608
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
603
609
|
})();
|
|
604
|
-
})(
|
|
605
|
-
var
|
|
606
|
-
const Te = /* @__PURE__ */
|
|
610
|
+
})(Ar);
|
|
611
|
+
var Pe = Ar.exports;
|
|
612
|
+
const Te = /* @__PURE__ */ De(Pe), or = {
|
|
607
613
|
"purpur-badge": "_purpur-badge_1r1mu_1",
|
|
608
614
|
"purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
|
|
609
615
|
"purpur-badge--special": "_purpur-badge--special_1r1mu_17",
|
|
@@ -613,7 +619,7 @@ const Te = /* @__PURE__ */ Re(De), or = {
|
|
|
613
619
|
"purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
|
|
614
620
|
"purpur-badge--error": "_purpur-badge--error_1r1mu_37",
|
|
615
621
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
|
|
616
|
-
}, nr = "purpur-badge",
|
|
622
|
+
}, nr = "purpur-badge", S = {
|
|
617
623
|
ATTENTION: "attention",
|
|
618
624
|
SPECIAL: "special",
|
|
619
625
|
NEUTRAL: "neutral",
|
|
@@ -622,27 +628,27 @@ const Te = /* @__PURE__ */ Re(De), or = {
|
|
|
622
628
|
WARNING: "warning",
|
|
623
629
|
ERROR: "error",
|
|
624
630
|
BLACK_FRIDAY: "black-friday"
|
|
625
|
-
},
|
|
631
|
+
}, ze = (e) => {
|
|
626
632
|
switch (e) {
|
|
627
|
-
case
|
|
628
|
-
case
|
|
633
|
+
case S.ATTENTION:
|
|
634
|
+
case S.SPECIAL:
|
|
635
|
+
return Ge;
|
|
636
|
+
case S.INFORMATION:
|
|
629
637
|
return Ee;
|
|
630
|
-
case
|
|
631
|
-
return Ze;
|
|
632
|
-
case $.SUCCESS:
|
|
638
|
+
case S.SUCCESS:
|
|
633
639
|
return Me;
|
|
634
|
-
case
|
|
640
|
+
case S.WARNING:
|
|
641
|
+
return Fe;
|
|
642
|
+
case S.ERROR:
|
|
635
643
|
return Ne;
|
|
636
|
-
case
|
|
637
|
-
return
|
|
638
|
-
case
|
|
639
|
-
return
|
|
640
|
-
case $.BLACK_FRIDAY:
|
|
641
|
-
return Ue;
|
|
644
|
+
case S.NEUTRAL:
|
|
645
|
+
return Ze;
|
|
646
|
+
case S.BLACK_FRIDAY:
|
|
647
|
+
return Ie;
|
|
642
648
|
default:
|
|
643
649
|
return;
|
|
644
650
|
}
|
|
645
|
-
},
|
|
651
|
+
}, He = ({
|
|
646
652
|
children: e,
|
|
647
653
|
showIcon: i = !0,
|
|
648
654
|
variant: a,
|
|
@@ -651,42 +657,42 @@ const Te = /* @__PURE__ */ Re(De), or = {
|
|
|
651
657
|
className: r = "",
|
|
652
658
|
...t
|
|
653
659
|
}) => {
|
|
654
|
-
const o =
|
|
660
|
+
const o = ze(a), u = Te([r, or[nr], or[`${nr}--${a}`]]);
|
|
655
661
|
return /* @__PURE__ */ f("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
656
662
|
i && o && /* @__PURE__ */ l(kr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
|
|
657
663
|
e
|
|
658
664
|
] });
|
|
659
|
-
},
|
|
665
|
+
}, Ve = {
|
|
660
666
|
"purpur-card-badge": "_purpur-card-badge_r7moe_1"
|
|
661
|
-
},
|
|
667
|
+
}, We = m.bind(Ve), Xe = "purpur-card-badge", Ke = ({
|
|
662
668
|
["data-testid"]: e = "purpur-card-badge",
|
|
663
669
|
variant: i,
|
|
664
670
|
text: a
|
|
665
671
|
}) => i && a ? /* @__PURE__ */ l(
|
|
666
|
-
|
|
672
|
+
He,
|
|
667
673
|
{
|
|
668
|
-
className:
|
|
674
|
+
className: We(Xe),
|
|
669
675
|
variant: i,
|
|
670
676
|
showIcon: !1,
|
|
671
677
|
"data-testid": e,
|
|
672
678
|
children: a
|
|
673
679
|
}
|
|
674
|
-
) : null,
|
|
680
|
+
) : null, Ye = {
|
|
675
681
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
676
|
-
},
|
|
682
|
+
}, Je = m.bind(Ye), Qe = "purpur-card-content", rt = ({
|
|
677
683
|
["data-testid"]: e = "purpur-card-content",
|
|
678
684
|
children: i
|
|
679
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
685
|
+
}) => /* @__PURE__ */ l("div", { className: Je(Qe), "data-testid": e, children: i }), et = {
|
|
680
686
|
"purpur-card-content-container": "_purpur-card-content-container_ueryq_1",
|
|
681
687
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_ueryq_12"
|
|
682
|
-
},
|
|
688
|
+
}, tt = m.bind(et), pr = "purpur-card-content-container", at = ({
|
|
683
689
|
["data-testid"]: e = "purpur-card-content-container",
|
|
684
690
|
children: i,
|
|
685
691
|
isFooter: a = !1
|
|
686
692
|
}) => /* @__PURE__ */ l(
|
|
687
693
|
"div",
|
|
688
694
|
{
|
|
689
|
-
className:
|
|
695
|
+
className: tt([
|
|
690
696
|
pr,
|
|
691
697
|
{
|
|
692
698
|
[`${pr}--footer`]: a
|
|
@@ -696,10 +702,10 @@ const Te = /* @__PURE__ */ Re(De), or = {
|
|
|
696
702
|
children: i
|
|
697
703
|
}
|
|
698
704
|
);
|
|
699
|
-
function
|
|
705
|
+
function it(e) {
|
|
700
706
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
701
707
|
}
|
|
702
|
-
var
|
|
708
|
+
var Or = { exports: {} };
|
|
703
709
|
/*!
|
|
704
710
|
Copyright (c) 2018 Jed Watson.
|
|
705
711
|
Licensed under the MIT License (MIT), see
|
|
@@ -734,40 +740,44 @@ var Fr = { exports: {} };
|
|
|
734
740
|
}
|
|
735
741
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
736
742
|
})();
|
|
737
|
-
})(
|
|
738
|
-
var
|
|
739
|
-
const lr = /* @__PURE__ */ ot
|
|
743
|
+
})(Or);
|
|
744
|
+
var ot = Or.exports;
|
|
745
|
+
const lr = /* @__PURE__ */ it(ot), nt = "_rotate_1xozj_1", pt = "_dash_1xozj_1", U = {
|
|
740
746
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
741
|
-
rotate:
|
|
747
|
+
rotate: nt,
|
|
742
748
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
743
749
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
744
750
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
745
751
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
746
752
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
747
753
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
748
|
-
dash:
|
|
754
|
+
dash: pt,
|
|
749
755
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
750
756
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
751
|
-
},
|
|
752
|
-
|
|
757
|
+
}, L = "purpur-spinner", lt = {
|
|
758
|
+
XXS: "xxs",
|
|
759
|
+
XS: "xs",
|
|
760
|
+
SM: "sm",
|
|
761
|
+
MD: "md",
|
|
762
|
+
LG: "lg"
|
|
753
763
|
}, Br = ({
|
|
754
764
|
["data-testid"]: e,
|
|
755
765
|
disabled: i = !1,
|
|
756
766
|
negative: a = !1,
|
|
757
|
-
size: n =
|
|
767
|
+
size: n = lt.SM,
|
|
758
768
|
...p
|
|
759
769
|
}) => /* @__PURE__ */ l(
|
|
760
770
|
"div",
|
|
761
771
|
{
|
|
762
|
-
className: lr([U[
|
|
772
|
+
className: lr([U[L], U[`${L}--${n}`]]),
|
|
763
773
|
"data-testid": e,
|
|
764
774
|
...p,
|
|
765
775
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
766
776
|
"circle",
|
|
767
777
|
{
|
|
768
|
-
className: lr(U[`${
|
|
769
|
-
[U[`${
|
|
770
|
-
[U[`${
|
|
778
|
+
className: lr(U[`${L}__circle`], {
|
|
779
|
+
[U[`${L}__circle--disabled`]]: i,
|
|
780
|
+
[U[`${L}__circle--negative`]]: a
|
|
771
781
|
}),
|
|
772
782
|
cx: "25",
|
|
773
783
|
cy: "25",
|
|
@@ -775,7 +785,7 @@ const lr = /* @__PURE__ */ ot(nt), pt = "_rotate_1xozj_1", lt = "_dash_1xozj_1",
|
|
|
775
785
|
}
|
|
776
786
|
) })
|
|
777
787
|
}
|
|
778
|
-
),
|
|
788
|
+
), ut = {
|
|
779
789
|
"purpur-card-cta": "_purpur-card-cta_1fd16_1",
|
|
780
790
|
"purpur-card-cta--sm": "_purpur-card-cta--sm_1fd16_33",
|
|
781
791
|
"purpur-card-cta--icon-only": "_purpur-card-cta--icon-only_1fd16_36",
|
|
@@ -790,7 +800,7 @@ const lr = /* @__PURE__ */ ot(nt), pt = "_rotate_1xozj_1", lt = "_dash_1xozj_1",
|
|
|
790
800
|
"purpur-card-cta--expressive": "_purpur-card-cta--expressive_1fd16_98",
|
|
791
801
|
"purpur-card-cta--expressive-negative": "_purpur-card-cta--expressive-negative_1fd16_108",
|
|
792
802
|
"purpur-card-cta--text": "_purpur-card-cta--text_1fd16_128"
|
|
793
|
-
},
|
|
803
|
+
}, st = m.bind(ut), O = "purpur-card-cta", dt = ({
|
|
794
804
|
["data-testid"]: e = "purpur-card-cta",
|
|
795
805
|
className: i,
|
|
796
806
|
children: a,
|
|
@@ -802,17 +812,17 @@ const lr = /* @__PURE__ */ ot(nt), pt = "_rotate_1xozj_1", lt = "_dash_1xozj_1",
|
|
|
802
812
|
}) => /* @__PURE__ */ l(
|
|
803
813
|
"div",
|
|
804
814
|
{
|
|
805
|
-
className: `${
|
|
806
|
-
|
|
815
|
+
className: `${st([
|
|
816
|
+
O,
|
|
807
817
|
i,
|
|
808
|
-
`${
|
|
809
|
-
`${
|
|
818
|
+
`${O}--md`,
|
|
819
|
+
`${O}--secondary`,
|
|
810
820
|
{
|
|
811
|
-
[`${
|
|
812
|
-
[`${
|
|
813
|
-
[`${
|
|
821
|
+
[`${O}--disabled`]: n,
|
|
822
|
+
[`${O}--icon-only`]: !t,
|
|
823
|
+
[`${O}--text`]: !!t
|
|
814
824
|
}
|
|
815
|
-
])} ${
|
|
825
|
+
])} ${O}`,
|
|
816
826
|
"data-testid": e,
|
|
817
827
|
...o,
|
|
818
828
|
children: r ? /* @__PURE__ */ l(Br, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ f(hr, { children: [
|
|
@@ -822,10 +832,10 @@ const lr = /* @__PURE__ */ ot(nt), pt = "_rotate_1xozj_1", lt = "_dash_1xozj_1",
|
|
|
822
832
|
] })
|
|
823
833
|
}
|
|
824
834
|
);
|
|
825
|
-
function
|
|
835
|
+
function ct(e) {
|
|
826
836
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
827
837
|
}
|
|
828
|
-
var
|
|
838
|
+
var Fr = { exports: {} };
|
|
829
839
|
/*!
|
|
830
840
|
Copyright (c) 2018 Jed Watson.
|
|
831
841
|
Licensed under the MIT License (MIT), see
|
|
@@ -860,9 +870,9 @@ var Ar = { exports: {} };
|
|
|
860
870
|
}
|
|
861
871
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
862
872
|
})();
|
|
863
|
-
})(
|
|
864
|
-
var
|
|
865
|
-
const
|
|
873
|
+
})(Fr);
|
|
874
|
+
var _t = Fr.exports;
|
|
875
|
+
const ft = /* @__PURE__ */ ct(_t), gt = {
|
|
866
876
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
867
877
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
868
878
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -870,33 +880,33 @@ const gt = /* @__PURE__ */ _t(ft), ht = {
|
|
|
870
880
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
871
881
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
872
882
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
873
|
-
},
|
|
883
|
+
}, ht = {
|
|
874
884
|
name: "arrow-right",
|
|
875
885
|
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>',
|
|
876
886
|
keywords: ["arrow-right"],
|
|
877
887
|
category: "utility"
|
|
878
|
-
},
|
|
888
|
+
}, mt = {
|
|
879
889
|
name: "checkmark",
|
|
880
890
|
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>',
|
|
881
891
|
keywords: ["checkmark"],
|
|
882
892
|
category: "utility"
|
|
883
|
-
},
|
|
884
|
-
|
|
893
|
+
}, Mr = (e) => /* @__PURE__ */ l(
|
|
894
|
+
J,
|
|
885
895
|
{
|
|
886
896
|
...e,
|
|
887
|
-
svg:
|
|
897
|
+
svg: ht
|
|
888
898
|
}
|
|
889
899
|
);
|
|
890
|
-
|
|
891
|
-
const
|
|
892
|
-
|
|
900
|
+
Mr.displayName = "IconArrowRight";
|
|
901
|
+
const Nr = (e) => /* @__PURE__ */ l(
|
|
902
|
+
J,
|
|
893
903
|
{
|
|
894
904
|
...e,
|
|
895
|
-
svg:
|
|
905
|
+
svg: mt
|
|
896
906
|
}
|
|
897
907
|
);
|
|
898
|
-
|
|
899
|
-
const
|
|
908
|
+
Nr.displayName = "IconCheckmark";
|
|
909
|
+
const vt = ft.bind(gt), ur = "purpur-icon", yt = "md", xt = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), wt = ({ content: e = "", title: i } = {}) => {
|
|
900
910
|
const a = [
|
|
901
911
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
902
912
|
{ name: "fill", value: "currentColor" },
|
|
@@ -904,18 +914,18 @@ const yt = gt.bind(ht), ur = "purpur-icon", wt = "md", xt = (e) => e.filter((i)
|
|
|
904
914
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
905
915
|
], n = i ? `<title>${i}</title>` : "";
|
|
906
916
|
return `<svg ${xt(a)}>${n}${e}</svg>`;
|
|
907
|
-
},
|
|
917
|
+
}, bt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
|
|
908
918
|
["data-testid"]: e,
|
|
909
919
|
svg: i,
|
|
910
920
|
allyTitle: a,
|
|
911
921
|
className: n,
|
|
912
|
-
size: p =
|
|
922
|
+
size: p = yt,
|
|
913
923
|
...r
|
|
914
924
|
}) => {
|
|
915
|
-
const t =
|
|
916
|
-
content:
|
|
925
|
+
const t = wt({
|
|
926
|
+
content: bt(i.svg),
|
|
917
927
|
title: a
|
|
918
|
-
}), o =
|
|
928
|
+
}), o = vt(n, ur, `${ur}--${p}`);
|
|
919
929
|
return /* @__PURE__ */ l(
|
|
920
930
|
"span",
|
|
921
931
|
{
|
|
@@ -927,11 +937,11 @@ const yt = gt.bind(ht), ur = "purpur-icon", wt = "md", xt = (e) => e.filter((i)
|
|
|
927
937
|
}
|
|
928
938
|
);
|
|
929
939
|
};
|
|
930
|
-
|
|
931
|
-
function
|
|
940
|
+
J.displayName = "Icon";
|
|
941
|
+
function St(e) {
|
|
932
942
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
933
943
|
}
|
|
934
|
-
var
|
|
944
|
+
var Er = { exports: {} };
|
|
935
945
|
/*!
|
|
936
946
|
Copyright (c) 2018 Jed Watson.
|
|
937
947
|
Licensed under the MIT License (MIT), see
|
|
@@ -966,9 +976,9 @@ var Gr = { exports: {} };
|
|
|
966
976
|
}
|
|
967
977
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
968
978
|
})();
|
|
969
|
-
})(
|
|
970
|
-
var
|
|
971
|
-
const
|
|
979
|
+
})(Er);
|
|
980
|
+
var $t = Er.exports;
|
|
981
|
+
const Ct = /* @__PURE__ */ St($t), q = {
|
|
972
982
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
973
983
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
974
984
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -983,35 +993,44 @@ const kt = /* @__PURE__ */ Ct(St), q = {
|
|
|
983
993
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
984
994
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
985
995
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
986
|
-
},
|
|
987
|
-
PARAGRAPH100: "paragraph-100"
|
|
988
|
-
|
|
996
|
+
}, kt = {
|
|
997
|
+
PARAGRAPH100: "paragraph-100",
|
|
998
|
+
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
999
|
+
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
1000
|
+
PARAGRAPH200: "paragraph-200",
|
|
1001
|
+
PREAMBLE100: "preamble-100",
|
|
1002
|
+
PREAMBLE200: "preamble-200",
|
|
1003
|
+
ADDITIONAL100: "additional-100",
|
|
1004
|
+
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
1005
|
+
OVERLINE100: "overline-100",
|
|
1006
|
+
OVERLINE200: "overline-200"
|
|
1007
|
+
}, R = "purpur-paragraph", Q = ({
|
|
989
1008
|
["data-testid"]: e,
|
|
990
1009
|
children: i,
|
|
991
1010
|
className: a,
|
|
992
1011
|
disabled: n,
|
|
993
1012
|
enableHyphenation: p = !1,
|
|
994
1013
|
negative: r = !1,
|
|
995
|
-
variant: t =
|
|
1014
|
+
variant: t = kt.PARAGRAPH100,
|
|
996
1015
|
...o
|
|
997
1016
|
}) => {
|
|
998
|
-
const u =
|
|
1017
|
+
const u = Ct([
|
|
999
1018
|
a,
|
|
1000
|
-
q[
|
|
1001
|
-
q[`${
|
|
1019
|
+
q[R],
|
|
1020
|
+
q[`${R}--${t}`],
|
|
1002
1021
|
{
|
|
1003
|
-
[q[`${
|
|
1004
|
-
[q[`${
|
|
1005
|
-
[q[`${
|
|
1022
|
+
[q[`${R}--hyphens`]]: p,
|
|
1023
|
+
[q[`${R}--disabled`]]: n,
|
|
1024
|
+
[q[`${R}--negative`]]: r
|
|
1006
1025
|
}
|
|
1007
1026
|
]);
|
|
1008
1027
|
return /* @__PURE__ */ l("p", { ...o, className: u, "data-testid": e, children: i });
|
|
1009
1028
|
};
|
|
1010
|
-
|
|
1011
|
-
const
|
|
1029
|
+
Q.displayName = "Paragraph";
|
|
1030
|
+
const At = {
|
|
1012
1031
|
"purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
|
|
1013
1032
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
|
|
1014
|
-
}, sr = m.bind(
|
|
1033
|
+
}, sr = m.bind(At), dr = "purpur-card-feature-list", Ot = ({
|
|
1015
1034
|
["data-testid"]: e = "purpur-card-feature-list",
|
|
1016
1035
|
listItems: i
|
|
1017
1036
|
}) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className: sr(dr), "data-testid": e, children: i.map((a) => /* @__PURE__ */ f(
|
|
@@ -1020,12 +1039,12 @@ const Ft = {
|
|
|
1020
1039
|
className: sr(`${dr}__list-item`),
|
|
1021
1040
|
"data-testid": `${e}-item`,
|
|
1022
1041
|
children: [
|
|
1023
|
-
/* @__PURE__ */ l(
|
|
1024
|
-
/* @__PURE__ */ l(
|
|
1042
|
+
/* @__PURE__ */ l(Nr, { size: "xs" }),
|
|
1043
|
+
/* @__PURE__ */ l(Q, { children: a })
|
|
1025
1044
|
]
|
|
1026
1045
|
},
|
|
1027
1046
|
a
|
|
1028
|
-
)) }) : null,
|
|
1047
|
+
)) }) : null, Bt = {
|
|
1029
1048
|
"purpur-card-link-arrow": "_purpur-card-link-arrow_1r4zu_1",
|
|
1030
1049
|
"purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_1r4zu_33",
|
|
1031
1050
|
"purpur-card-link-arrow--icon-only": "_purpur-card-link-arrow--icon-only_1r4zu_36",
|
|
@@ -1039,7 +1058,7 @@ const Ft = {
|
|
|
1039
1058
|
"purpur-card-link-arrow--secondary-negative": "_purpur-card-link-arrow--secondary-negative_1r4zu_87",
|
|
1040
1059
|
"purpur-card-link-arrow--expressive": "_purpur-card-link-arrow--expressive_1r4zu_98",
|
|
1041
1060
|
"purpur-card-link-arrow--expressive-negative": "_purpur-card-link-arrow--expressive-negative_1r4zu_108"
|
|
1042
|
-
},
|
|
1061
|
+
}, Ft = m.bind(Bt), M = "purpur-card-link-arrow", Mt = ({
|
|
1043
1062
|
["data-testid"]: e = "purpur-card-link-arrow",
|
|
1044
1063
|
className: i,
|
|
1045
1064
|
disabled: a = !1,
|
|
@@ -1048,78 +1067,78 @@ const Ft = {
|
|
|
1048
1067
|
}) => /* @__PURE__ */ l(
|
|
1049
1068
|
"div",
|
|
1050
1069
|
{
|
|
1051
|
-
className: `${
|
|
1052
|
-
|
|
1070
|
+
className: `${Ft([
|
|
1071
|
+
M,
|
|
1053
1072
|
i,
|
|
1054
|
-
`${
|
|
1055
|
-
`${
|
|
1056
|
-
`${
|
|
1073
|
+
`${M}--md`,
|
|
1074
|
+
`${M}--icon-only`,
|
|
1075
|
+
`${M}--secondary`,
|
|
1057
1076
|
{
|
|
1058
|
-
[`${
|
|
1077
|
+
[`${M}--disabled`]: a
|
|
1059
1078
|
}
|
|
1060
|
-
])} ${
|
|
1079
|
+
])} ${M}`,
|
|
1061
1080
|
"data-testid": e,
|
|
1062
1081
|
...p,
|
|
1063
|
-
children: n ? /* @__PURE__ */ l(Br, { "data-testid": `${e}-spinner`, size: "xs", disabled: a }) : /* @__PURE__ */ l(
|
|
1082
|
+
children: n ? /* @__PURE__ */ l(Br, { "data-testid": `${e}-spinner`, size: "xs", disabled: a }) : /* @__PURE__ */ l(Mr, { "data-testid": `${e}-arrow`, size: "md" })
|
|
1064
1083
|
}
|
|
1065
|
-
),
|
|
1084
|
+
), Nt = {
|
|
1066
1085
|
"purpur-card-overline": "_purpur-card-overline_192fe_1"
|
|
1067
|
-
},
|
|
1086
|
+
}, Et = m.bind(Nt), Gt = "purpur-card-overline", Zt = ({
|
|
1068
1087
|
["data-testid"]: e = "purpur-card-overline",
|
|
1069
1088
|
overline: i
|
|
1070
|
-
}) => i ? /* @__PURE__ */ l(
|
|
1089
|
+
}) => i ? /* @__PURE__ */ l(Q, { className: Et(Gt), "data-testid": e, children: i }) : null, It = {
|
|
1071
1090
|
"purpur-card-root": "_purpur-card-root_bqk1d_1",
|
|
1072
1091
|
"purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
|
|
1073
1092
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
|
|
1074
1093
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_bqk1d_14"
|
|
1075
|
-
},
|
|
1094
|
+
}, jt = {
|
|
1076
1095
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_1sp43_1",
|
|
1077
1096
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_1sp43_6",
|
|
1078
1097
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_1sp43_11"
|
|
1079
1098
|
};
|
|
1080
|
-
function
|
|
1081
|
-
return
|
|
1099
|
+
function E() {
|
|
1100
|
+
return E = Object.assign ? Object.assign.bind() : function(e) {
|
|
1082
1101
|
for (var i = 1; i < arguments.length; i++) {
|
|
1083
1102
|
var a = arguments[i];
|
|
1084
1103
|
for (var n in a) ({}).hasOwnProperty.call(a, n) && (e[n] = a[n]);
|
|
1085
1104
|
}
|
|
1086
1105
|
return e;
|
|
1087
|
-
},
|
|
1106
|
+
}, E.apply(null, arguments);
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1108
|
+
function Ut(e, i) {
|
|
1090
1109
|
typeof e == "function" ? e(i) : e != null && (e.current = i);
|
|
1091
1110
|
}
|
|
1092
1111
|
function Lt(...e) {
|
|
1093
1112
|
return (i) => e.forEach(
|
|
1094
|
-
(a) =>
|
|
1113
|
+
(a) => Ut(a, i)
|
|
1095
1114
|
);
|
|
1096
1115
|
}
|
|
1097
|
-
const
|
|
1098
|
-
const { children: a, ...n } = e, p =
|
|
1116
|
+
const Gr = /* @__PURE__ */ $((e, i) => {
|
|
1117
|
+
const { children: a, ...n } = e, p = D.toArray(a), r = p.find(Rt);
|
|
1099
1118
|
if (r) {
|
|
1100
|
-
const t = r.props.children, o = p.map((u) => u === r ?
|
|
1101
|
-
return /* @__PURE__ */ P(K,
|
|
1119
|
+
const t = r.props.children, o = p.map((u) => u === r ? D.count(t) > 1 ? D.only(null) : /* @__PURE__ */ V(t) ? t.props.children : null : u);
|
|
1120
|
+
return /* @__PURE__ */ P(K, E({}, n, {
|
|
1102
1121
|
ref: i
|
|
1103
1122
|
}), /* @__PURE__ */ V(t) ? /* @__PURE__ */ mr(t, void 0, o) : null);
|
|
1104
1123
|
}
|
|
1105
|
-
return /* @__PURE__ */ P(K,
|
|
1124
|
+
return /* @__PURE__ */ P(K, E({}, n, {
|
|
1106
1125
|
ref: i
|
|
1107
1126
|
}), a);
|
|
1108
1127
|
});
|
|
1109
|
-
|
|
1110
|
-
const K = /* @__PURE__ */
|
|
1128
|
+
Gr.displayName = "Slot";
|
|
1129
|
+
const K = /* @__PURE__ */ $((e, i) => {
|
|
1111
1130
|
const { children: a, ...n } = e;
|
|
1112
1131
|
return /* @__PURE__ */ V(a) ? /* @__PURE__ */ mr(a, {
|
|
1113
|
-
...
|
|
1132
|
+
...Dt(n, a.props),
|
|
1114
1133
|
ref: i ? Lt(i, a.ref) : a.ref
|
|
1115
|
-
}) :
|
|
1134
|
+
}) : D.count(a) > 1 ? D.only(null) : null;
|
|
1116
1135
|
});
|
|
1117
1136
|
K.displayName = "SlotClone";
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
return /* @__PURE__ */ V(e) && e.type ===
|
|
1137
|
+
const qt = ({ children: e }) => /* @__PURE__ */ P(Dr, null, e);
|
|
1138
|
+
function Rt(e) {
|
|
1139
|
+
return /* @__PURE__ */ V(e) && e.type === qt;
|
|
1121
1140
|
}
|
|
1122
|
-
function
|
|
1141
|
+
function Dt(e, i) {
|
|
1123
1142
|
const a = {
|
|
1124
1143
|
...i
|
|
1125
1144
|
};
|
|
@@ -1140,7 +1159,7 @@ function Rt(e, i) {
|
|
|
1140
1159
|
...a
|
|
1141
1160
|
};
|
|
1142
1161
|
}
|
|
1143
|
-
const
|
|
1162
|
+
const Pt = [
|
|
1144
1163
|
"a",
|
|
1145
1164
|
"button",
|
|
1146
1165
|
"div",
|
|
@@ -1157,12 +1176,12 @@ const Dt = [
|
|
|
1157
1176
|
"span",
|
|
1158
1177
|
"svg",
|
|
1159
1178
|
"ul"
|
|
1160
|
-
], Tt =
|
|
1161
|
-
const a = /* @__PURE__ */
|
|
1162
|
-
const { asChild: r, ...t } = n, o = r ?
|
|
1179
|
+
], Tt = Pt.reduce((e, i) => {
|
|
1180
|
+
const a = /* @__PURE__ */ $((n, p) => {
|
|
1181
|
+
const { asChild: r, ...t } = n, o = r ? Gr : i;
|
|
1163
1182
|
return Rr(() => {
|
|
1164
1183
|
window[Symbol.for("radix-ui")] = !0;
|
|
1165
|
-
}, []), /* @__PURE__ */ P(o,
|
|
1184
|
+
}, []), /* @__PURE__ */ P(o, E({}, t, {
|
|
1166
1185
|
ref: p
|
|
1167
1186
|
}));
|
|
1168
1187
|
});
|
|
@@ -1170,7 +1189,7 @@ const Dt = [
|
|
|
1170
1189
|
...e,
|
|
1171
1190
|
[i]: a
|
|
1172
1191
|
};
|
|
1173
|
-
}, {}),
|
|
1192
|
+
}, {}), zt = /* @__PURE__ */ $((e, i) => /* @__PURE__ */ P(Tt.span, E({}, e, {
|
|
1174
1193
|
ref: i,
|
|
1175
1194
|
style: {
|
|
1176
1195
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -1186,12 +1205,12 @@ const Dt = [
|
|
|
1186
1205
|
wordWrap: "normal",
|
|
1187
1206
|
...e.style
|
|
1188
1207
|
}
|
|
1189
|
-
}))),
|
|
1208
|
+
}))), Ht = zt, cr = ({
|
|
1190
1209
|
asChild: e,
|
|
1191
1210
|
children: i,
|
|
1192
1211
|
className: a = "",
|
|
1193
1212
|
["data-testid"]: n
|
|
1194
|
-
}) => /* @__PURE__ */ l(
|
|
1213
|
+
}) => /* @__PURE__ */ l(Ht, { asChild: e, "data-testid": n, className: a, children: i }), _r = m.bind(jt), B = "purpur-card-trigger-item", Vt = ({
|
|
1195
1214
|
["data-testid"]: e = "purpur-card-trigger-item",
|
|
1196
1215
|
disabled: i = !1,
|
|
1197
1216
|
href: a,
|
|
@@ -1236,7 +1255,7 @@ const Dt = [
|
|
|
1236
1255
|
children: /* @__PURE__ */ l(cr, { children: p })
|
|
1237
1256
|
}
|
|
1238
1257
|
);
|
|
1239
|
-
},
|
|
1258
|
+
}, Wt = m.bind(It), W = "purpur-card-root", Zr = $(
|
|
1240
1259
|
({
|
|
1241
1260
|
["data-testid"]: e = "purpur-card-root",
|
|
1242
1261
|
children: i,
|
|
@@ -1249,7 +1268,7 @@ const Dt = [
|
|
|
1249
1268
|
variant: u,
|
|
1250
1269
|
...d
|
|
1251
1270
|
}, g) => {
|
|
1252
|
-
const
|
|
1271
|
+
const w = Wt([
|
|
1253
1272
|
W,
|
|
1254
1273
|
a,
|
|
1255
1274
|
{
|
|
@@ -1257,10 +1276,10 @@ const Dt = [
|
|
|
1257
1276
|
[`${W}--full-height`]: p
|
|
1258
1277
|
}
|
|
1259
1278
|
]);
|
|
1260
|
-
return /* @__PURE__ */ f("div", { className:
|
|
1279
|
+
return /* @__PURE__ */ f("div", { className: w, "data-testid": e, ref: g, ...d, children: [
|
|
1261
1280
|
i,
|
|
1262
1281
|
(t || r) && o && /* @__PURE__ */ l(
|
|
1263
|
-
|
|
1282
|
+
Vt,
|
|
1264
1283
|
{
|
|
1265
1284
|
disabled: n,
|
|
1266
1285
|
href: r,
|
|
@@ -1271,30 +1290,30 @@ const Dt = [
|
|
|
1271
1290
|
] });
|
|
1272
1291
|
}
|
|
1273
1292
|
);
|
|
1274
|
-
|
|
1275
|
-
const fr = m.bind(
|
|
1293
|
+
Zr.displayName = "CardRoot";
|
|
1294
|
+
const fr = m.bind(Ce), X = "purpur-card", x = ({ children: e, className: i, ...a }) => {
|
|
1276
1295
|
const n = fr([
|
|
1277
|
-
|
|
1296
|
+
X,
|
|
1278
1297
|
i,
|
|
1279
1298
|
{
|
|
1280
|
-
[`${
|
|
1281
|
-
[`${
|
|
1299
|
+
[`${X}--is-interactive`]: a.onClick || a.href,
|
|
1300
|
+
[`${X}--disabled`]: a.disabled
|
|
1282
1301
|
}
|
|
1283
1302
|
]);
|
|
1284
|
-
return /* @__PURE__ */ l(
|
|
1303
|
+
return /* @__PURE__ */ l(Zr, { className: fr(n), ...a, children: e });
|
|
1285
1304
|
};
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
function
|
|
1305
|
+
x.Badge = Ke;
|
|
1306
|
+
x.LinkArrow = Mt;
|
|
1307
|
+
x.Content = rt;
|
|
1308
|
+
x.ContentContainer = at;
|
|
1309
|
+
x.Cta = dt;
|
|
1310
|
+
x.FeatureList = Ot;
|
|
1311
|
+
x.Overline = Zt;
|
|
1312
|
+
x.displayName = "Card";
|
|
1313
|
+
function Xt(e) {
|
|
1295
1314
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1296
1315
|
}
|
|
1297
|
-
var
|
|
1316
|
+
var Ir = { exports: {} };
|
|
1298
1317
|
/*!
|
|
1299
1318
|
Copyright (c) 2018 Jed Watson.
|
|
1300
1319
|
Licensed under the MIT License (MIT), see
|
|
@@ -1329,9 +1348,9 @@ var jr = { exports: {} };
|
|
|
1329
1348
|
}
|
|
1330
1349
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1331
1350
|
})();
|
|
1332
|
-
})(
|
|
1333
|
-
var
|
|
1334
|
-
const
|
|
1351
|
+
})(Ir);
|
|
1352
|
+
var Kt = Ir.exports;
|
|
1353
|
+
const Yt = /* @__PURE__ */ Xt(Kt), Jt = {
|
|
1335
1354
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
1336
1355
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
1337
1356
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -1339,46 +1358,46 @@ const Qt = /* @__PURE__ */ Kt(Jt), Xt = {
|
|
|
1339
1358
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
1340
1359
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
1341
1360
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
1342
|
-
},
|
|
1361
|
+
}, Qt = {
|
|
1343
1362
|
name: "arrow-left",
|
|
1344
1363
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
|
|
1345
1364
|
keywords: ["arrow-left"],
|
|
1346
1365
|
category: "utility"
|
|
1347
|
-
},
|
|
1366
|
+
}, ra = {
|
|
1348
1367
|
name: "arrow-right",
|
|
1349
1368
|
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>',
|
|
1350
1369
|
keywords: ["arrow-right"],
|
|
1351
1370
|
category: "utility"
|
|
1352
|
-
},
|
|
1371
|
+
}, ea = {
|
|
1353
1372
|
name: "external",
|
|
1354
1373
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M15 3.4a.9.9 0 1 1 0-1.8h6.5a.9.9 0 0 1 .9.9V9a.9.9 0 1 1-1.8 0V4.673l-7.964 7.963a.9.9 0 1 1-1.272-1.272L19.327 3.4H15ZM1.6 5c0-1.05.85-1.9 1.9-1.9h6a.9.9 0 0 1 0 1.8h-6a.1.1 0 0 0-.1.1v15.5a.1.1 0 0 0 .1.1h16a.1.1 0 0 0 .1-.1V14a.9.9 0 1 1 1.8 0v6.5a1.9 1.9 0 0 1-1.9 1.9h-16a1.9 1.9 0 0 1-1.9-1.9V5Z" clip-rule="evenodd"/></svg>',
|
|
1355
1374
|
keywords: ["external"],
|
|
1356
1375
|
category: "media"
|
|
1357
|
-
},
|
|
1376
|
+
}, ta = {
|
|
1358
1377
|
name: "phone",
|
|
1359
1378
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M5.341 2.228c.75-.622 1.73-.43 2.305.145l2.783 2.783a1.9 1.9 0 0 1 0 2.687L8.843 9.43a.1.1 0 0 0 0 .142l5.586 5.585a.1.1 0 0 0 .142 0l1.585-1.585a1.9 1.9 0 0 1 2.687 0l3.5 3.5c.343.342.698 1.023.31 1.742-.346.645-1.173 1.615-3.154 2.936-1.75 1.167-3.667 1.269-5.297.903-1.61-.361-3.015-1.192-3.839-2.016a.9.9 0 0 1 1.273-1.272c.573.572 1.669 1.242 2.96 1.532 1.27.285 2.656.188 3.905-.645 1.483-.989 2.137-1.68 2.418-2.06l-3.348-3.347a.1.1 0 0 0-.142 0l-1.586 1.585a1.9 1.9 0 0 1-2.687 0l-5.585-5.585a1.9 1.9 0 0 1 0-2.688l1.585-1.585a.1.1 0 0 0 0-.142L6.41 3.682c-.447.383-1.183 1.102-2.206 2.38-.878 1.097-1.14 2.08-1.127 2.951.013.898.323 1.758.732 2.59.24.488.733 1.079 1.551 1.88.561.549 1.227 1.152 2.002 1.854.344.312.71.644 1.098 1a.9.9 0 0 1-1.215 1.327c-.367-.336-.722-.658-1.061-.965a77.443 77.443 0 0 1-2.082-1.93c-.831-.813-1.523-1.586-1.909-2.372-.456-.93-.896-2.07-.916-3.356-.02-1.314.399-2.7 1.521-4.103 1.148-1.435 1.995-2.254 2.544-2.71Z" clip-rule="evenodd"/></svg>',
|
|
1360
1379
|
keywords: ["phone"],
|
|
1361
1380
|
category: "device"
|
|
1362
|
-
},
|
|
1381
|
+
}, aa = Yt.bind(Jt), gr = "purpur-icon", ia = "md", oa = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), na = ({ content: e = "", title: i } = {}) => {
|
|
1363
1382
|
const a = [
|
|
1364
1383
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1365
1384
|
{ name: "fill", value: "currentColor" },
|
|
1366
1385
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
1367
1386
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1368
1387
|
], n = i ? `<title>${i}</title>` : "";
|
|
1369
|
-
return `<svg ${
|
|
1370
|
-
},
|
|
1388
|
+
return `<svg ${oa(a)}>${n}${e}</svg>`;
|
|
1389
|
+
}, pa = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Y = ({
|
|
1371
1390
|
["data-testid"]: e,
|
|
1372
1391
|
svg: i,
|
|
1373
1392
|
allyTitle: a,
|
|
1374
1393
|
className: n,
|
|
1375
|
-
size: p =
|
|
1394
|
+
size: p = ia,
|
|
1376
1395
|
...r
|
|
1377
1396
|
}) => {
|
|
1378
|
-
const t =
|
|
1379
|
-
content:
|
|
1397
|
+
const t = na({
|
|
1398
|
+
content: pa(i.svg),
|
|
1380
1399
|
title: a
|
|
1381
|
-
}), o =
|
|
1400
|
+
}), o = aa(n, gr, `${gr}--${p}`);
|
|
1382
1401
|
return /* @__PURE__ */ l(
|
|
1383
1402
|
"span",
|
|
1384
1403
|
{
|
|
@@ -1390,11 +1409,11 @@ const Qt = /* @__PURE__ */ Kt(Jt), Xt = {
|
|
|
1390
1409
|
}
|
|
1391
1410
|
);
|
|
1392
1411
|
};
|
|
1393
|
-
|
|
1394
|
-
function
|
|
1412
|
+
Y.displayName = "Icon";
|
|
1413
|
+
function la(e) {
|
|
1395
1414
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1396
1415
|
}
|
|
1397
|
-
var
|
|
1416
|
+
var jr = { exports: {} };
|
|
1398
1417
|
/*!
|
|
1399
1418
|
Copyright (c) 2018 Jed Watson.
|
|
1400
1419
|
Licensed under the MIT License (MIT), see
|
|
@@ -1429,9 +1448,9 @@ var Ur = { exports: {} };
|
|
|
1429
1448
|
}
|
|
1430
1449
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1431
1450
|
})();
|
|
1432
|
-
})(
|
|
1433
|
-
var
|
|
1434
|
-
const
|
|
1451
|
+
})(jr);
|
|
1452
|
+
var ua = jr.exports;
|
|
1453
|
+
const sa = /* @__PURE__ */ la(ua), da = {
|
|
1435
1454
|
"purpur-cta-link": "_purpur-cta-link_1mhg7_1",
|
|
1436
1455
|
"purpur-cta-link--sm": "_purpur-cta-link--sm_1mhg7_33",
|
|
1437
1456
|
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1mhg7_36",
|
|
@@ -1445,12 +1464,12 @@ const da = /* @__PURE__ */ ua(sa), ca = {
|
|
|
1445
1464
|
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1mhg7_87",
|
|
1446
1465
|
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1mhg7_98",
|
|
1447
1466
|
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1mhg7_108"
|
|
1448
|
-
},
|
|
1449
|
-
forward:
|
|
1450
|
-
external:
|
|
1451
|
-
back:
|
|
1452
|
-
phone:
|
|
1453
|
-
},
|
|
1467
|
+
}, ca = sa.bind(da), N = "purpur-cta-link", _a = {
|
|
1468
|
+
forward: ra,
|
|
1469
|
+
external: ea,
|
|
1470
|
+
back: Qt,
|
|
1471
|
+
phone: ta
|
|
1472
|
+
}, fa = $(
|
|
1454
1473
|
({
|
|
1455
1474
|
children: e,
|
|
1456
1475
|
className: i,
|
|
@@ -1463,35 +1482,35 @@ const da = /* @__PURE__ */ ua(sa), ca = {
|
|
|
1463
1482
|
variant: u,
|
|
1464
1483
|
icon: d = "forward",
|
|
1465
1484
|
...g
|
|
1466
|
-
},
|
|
1467
|
-
const c =
|
|
1485
|
+
}, w) => {
|
|
1486
|
+
const c = ca(
|
|
1468
1487
|
[
|
|
1469
1488
|
i,
|
|
1470
|
-
|
|
1471
|
-
`${
|
|
1472
|
-
`${
|
|
1489
|
+
N,
|
|
1490
|
+
`${N}--${t ? `${u}-negative` : u}`,
|
|
1491
|
+
`${N}--${o}`
|
|
1473
1492
|
],
|
|
1474
1493
|
{
|
|
1475
|
-
[`${
|
|
1476
|
-
[`${
|
|
1477
|
-
[`${
|
|
1494
|
+
[`${N}--icon-only`]: p,
|
|
1495
|
+
[`${N}--negative`]: t,
|
|
1496
|
+
[`${N}--full-width`]: n
|
|
1478
1497
|
}
|
|
1479
|
-
),
|
|
1480
|
-
r && (d === "back" || d === "phone") && /* @__PURE__ */ l(
|
|
1498
|
+
), F = _a[d], v = /* @__PURE__ */ f(hr, { children: [
|
|
1499
|
+
r && (d === "back" || d === "phone") && /* @__PURE__ */ l(Y, { svg: F, size: o === "lg" ? "sm" : "xs" }),
|
|
1481
1500
|
(!p || p && !r) && e,
|
|
1482
|
-
r && (d === "forward" || d === "external") && /* @__PURE__ */ l(
|
|
1501
|
+
r && (d === "forward" || d === "external") && /* @__PURE__ */ l(Y, { svg: F, size: o === "lg" ? "sm" : "xs" })
|
|
1483
1502
|
] }), _ = {
|
|
1484
1503
|
...g,
|
|
1485
1504
|
className: c,
|
|
1486
1505
|
"data-testid": a
|
|
1487
1506
|
};
|
|
1488
|
-
return "href" in g && g.href ? /* @__PURE__ */ l("a", { ..._, ref:
|
|
1507
|
+
return "href" in g && g.href ? /* @__PURE__ */ l("a", { ..._, ref: w, children: v }) : /* @__PURE__ */ l("span", { ..._, ref: w, children: v });
|
|
1489
1508
|
}
|
|
1490
1509
|
);
|
|
1491
|
-
function
|
|
1510
|
+
function ga(e) {
|
|
1492
1511
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1493
1512
|
}
|
|
1494
|
-
var
|
|
1513
|
+
var Ur = { exports: {} };
|
|
1495
1514
|
/*!
|
|
1496
1515
|
Copyright (c) 2018 Jed Watson.
|
|
1497
1516
|
Licensed under the MIT License (MIT), see
|
|
@@ -1526,9 +1545,9 @@ var Ir = { exports: {} };
|
|
|
1526
1545
|
}
|
|
1527
1546
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1528
1547
|
})();
|
|
1529
|
-
})(
|
|
1530
|
-
var
|
|
1531
|
-
const
|
|
1548
|
+
})(Ur);
|
|
1549
|
+
var ha = Ur.exports;
|
|
1550
|
+
const ma = /* @__PURE__ */ ga(ha), z = {
|
|
1532
1551
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
1533
1552
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
1534
1553
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -1544,34 +1563,41 @@ const va = /* @__PURE__ */ ha(ma), T = {
|
|
|
1544
1563
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
1545
1564
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
1546
1565
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
1547
|
-
},
|
|
1548
|
-
TITLE100: "title-100"
|
|
1549
|
-
|
|
1566
|
+
}, va = {
|
|
1567
|
+
TITLE100: "title-100",
|
|
1568
|
+
TITLE200: "title-200",
|
|
1569
|
+
TITLE300: "title-300",
|
|
1570
|
+
TITLE400: "title-400",
|
|
1571
|
+
TITLE500: "title-500",
|
|
1572
|
+
TITLE600: "title-600",
|
|
1573
|
+
TITLE700: "title-700",
|
|
1574
|
+
SUBSECTION100: "subsection-100"
|
|
1575
|
+
}, H = "purpur-heading", Lr = ({
|
|
1550
1576
|
["data-testid"]: e,
|
|
1551
1577
|
children: i,
|
|
1552
1578
|
className: a = "",
|
|
1553
1579
|
enableHyphenation: n = !1,
|
|
1554
1580
|
negative: p = !1,
|
|
1555
1581
|
tag: r,
|
|
1556
|
-
variant: t =
|
|
1582
|
+
variant: t = va.TITLE100,
|
|
1557
1583
|
...o
|
|
1558
1584
|
}) => {
|
|
1559
|
-
const u = r, d =
|
|
1585
|
+
const u = r, d = ma([
|
|
1560
1586
|
a,
|
|
1561
|
-
|
|
1562
|
-
|
|
1587
|
+
z[H],
|
|
1588
|
+
z[`${H}--${t}`],
|
|
1563
1589
|
{
|
|
1564
|
-
[
|
|
1565
|
-
[
|
|
1590
|
+
[z[`${H}--hyphens`]]: n,
|
|
1591
|
+
[z[`${H}--negative`]]: p
|
|
1566
1592
|
}
|
|
1567
1593
|
]);
|
|
1568
1594
|
return /* @__PURE__ */ l(u, { ...o, className: d, "data-testid": e, children: i });
|
|
1569
1595
|
};
|
|
1570
|
-
|
|
1571
|
-
function
|
|
1596
|
+
Lr.displayName = "Heading";
|
|
1597
|
+
function ya(e) {
|
|
1572
1598
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1573
1599
|
}
|
|
1574
|
-
var
|
|
1600
|
+
var qr = { exports: {} };
|
|
1575
1601
|
/*!
|
|
1576
1602
|
Copyright (c) 2018 Jed Watson.
|
|
1577
1603
|
Licensed under the MIT License (MIT), see
|
|
@@ -1606,9 +1632,9 @@ var Lr = { exports: {} };
|
|
|
1606
1632
|
}
|
|
1607
1633
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1608
1634
|
})();
|
|
1609
|
-
})(
|
|
1610
|
-
var xa =
|
|
1611
|
-
const
|
|
1635
|
+
})(qr);
|
|
1636
|
+
var xa = qr.exports;
|
|
1637
|
+
const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
1612
1638
|
"purpur-promotion-card": "_purpur-promotion-card_13lr0_1",
|
|
1613
1639
|
"purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_13lr0_8",
|
|
1614
1640
|
"purpur-promotion-card__content": "_purpur-promotion-card__content_13lr0_8",
|
|
@@ -1626,19 +1652,19 @@ const ba = /* @__PURE__ */ wa(xa), $a = {
|
|
|
1626
1652
|
"purpur-promotion-card__image-wrapper": "_purpur-promotion-card__image-wrapper_13lr0_141",
|
|
1627
1653
|
"purpur-promotion-card__image-wrapper--decorative": "_purpur-promotion-card__image-wrapper--decorative_13lr0_144",
|
|
1628
1654
|
"purpur-promotion-card__image-wrapper--product": "_purpur-promotion-card__image-wrapper--product_13lr0_145"
|
|
1629
|
-
}, Ea = ["primary", "secondary", "quaternary"],
|
|
1655
|
+
}, Ea = ["primary", "secondary", "quaternary"], Sa = {
|
|
1630
1656
|
primary: "var(--purpur-color-background-tone-on-tone-primary)",
|
|
1631
1657
|
secondary: "var(--purpur-color-background-tone-on-tone-secondary)",
|
|
1632
1658
|
quaternary: "var(--purpur-color-background-tone-on-tone-quaternary)"
|
|
1633
|
-
},
|
|
1659
|
+
}, $a = {
|
|
1634
1660
|
primary: `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="1125" viewBox="0 0 2000 1125" fill="none"><g clip-path="url(%23clip0_20_36)"><rect width="2000" height="1125" fill="url(%23paint0_linear_20_36)"/><g filter="url(%23filter0_d_20_36)"><path d="M480.784 -336.718L483.018 -338.805C2086.53 -1722.59 2447.86 284.242 2322.13 1089.91C2196.4 1895.57 1114.05 1663.85 598.008 1169.98C188.829 778.383 94.9071 433.168 84.5809 306.459C63.8953 52.6354 248.918 -120.167 480.784 -336.718Z" fill="%23F5E5FF"/></g><g filter="url(%23filter1_d_20_36)"><path d="M478.235 -337.757L480.469 -339.844C2083.98 -1723.63 2445.31 283.203 2319.58 1088.87C2193.85 1894.53 1111.5 1662.81 595.459 1168.95C186.28 777.344 91.9004 426.514 82.0318 305.42C61.3463 51.5961 246.369 -121.206 478.235 -337.757Z" fill="url(%23paint1_linear_20_36)"/></g><path d="M478.351 -359.804L480.585 -361.891C2084.1 -1745.68 2445.43 261.156 2319.7 1066.82C2193.96 1872.48 1111.61 1640.77 595.575 1146.9C186.396 755.297 91.9029 403.076 82.1476 283.373C61.4621 29.5494 246.485 -143.253 478.351 -359.804Z" fill="url(%23paint2_linear_20_36)" stroke="url(%23paint3_linear_20_36)" stroke-width="0.488281"/><g filter="url(%23filter2_d_20_36)"><path d="M895.095 -81.1636L897.087 -83.483C2339.2 -1634.76 2918.4 320.353 2881.77 1134.95C2845.14 1949.54 1743.91 1837.9 1176.83 1403.6C727.176 1059.23 595.967 726.393 571.809 601.58C523.415 351.555 688.373 159.507 895.095 -81.1636Z" fill="%23F5E5FF"/></g><g filter="url(%23filter3_d_20_36)"><path d="M892.877 -81.1463L894.869 -83.4656C2336.98 -1634.74 2916.18 320.371 2879.55 1134.96C2842.92 1949.56 1741.69 1837.92 1174.61 1403.62C724.958 1059.24 592.678 720.879 569.59 601.597C521.196 351.573 686.155 159.524 892.877 -81.1463Z" fill="url(%23paint4_linear_20_36)"/></g><path d="M899.248 -92.3297L901.24 -94.6491C2343.35 -1645.93 2922.56 309.187 2885.93 1123.78C2849.3 1938.37 1748.06 1826.74 1180.98 1392.43C731.329 1048.06 598.784 708.325 575.961 590.414C527.568 340.389 692.526 148.341 899.248 -92.3297Z" fill="url(%23paint5_linear_20_36)" stroke="url(%23paint6_linear_20_36)" stroke-width="0.488281"/></g><defs><filter id="filter0_d_20_36" x="67" y="-812.852" width="2294.05" height="2463.76" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="8"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.0588235 0 0 0 0 0 0 0 0 0 0.129412 0 0 0 0.95 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_20_36"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_20_36" result="shape"/></filter><filter id="filter1_d_20_36" x="-69.5491" y="-947.891" width="2562.05" height="2731.76" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="75"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.0588235 0 0 0 0 0 0 0 0 0 0.129412 0 0 0 0.6 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_20_36"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_20_36" result="shape"/></filter><filter id="filter2_d_20_36" x="547.307" y="-664.639" width="2352.09" height="2436.12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="8"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.0588235 0 0 0 0 0 0 0 0 0 0.129412 0 0 0 0.95 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_20_36"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_20_36" result="shape"/></filter><filter id="filter3_d_20_36" x="361.088" y="-864.621" width="2720.09" height="2804.12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset/><feGaussianBlur stdDeviation="100"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.0588235 0 0 0 0 0 0 0 0 0 0.129412 0 0 0 0.65 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_20_36"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_20_36" result="shape"/></filter><linearGradient id="paint0_linear_20_36" x1="48.3398" y1="4.80196e-07" x2="58.1053" y2="1125" gradientUnits="userSpaceOnUse"><stop stop-color="%23340249"/><stop offset="0.576094" stop-color="%23300244"/><stop offset="1" stop-color="%232D0241"/></linearGradient><linearGradient id="paint1_linear_20_36" x1="80.5668" y1="233.643" x2="606.544" y2="1094.45" gradientUnits="userSpaceOnUse"><stop stop-color="%2359006E"/><stop offset="0.265" stop-color="%2347005E"/><stop offset="0.385" stop-color="%2339004E"/><stop offset="0.720829" stop-color="%23210034"/><stop offset="1" stop-color="%23150026"/></linearGradient><linearGradient id="paint2_linear_20_36" x1="138.672" y1="41.2598" x2="702.488" y2="1106.9" gradientUnits="userSpaceOnUse"><stop stop-color="%2335004A"/><stop offset="0.19574" stop-color="%23320046"/><stop offset="1" stop-color="%2328003B"/></linearGradient><linearGradient id="paint3_linear_20_36" x1="133.5" y1="60.5" x2="546" y2="1048" gradientUnits="userSpaceOnUse"><stop stop-color="%23AC3CAF"/><stop offset="0.506509" stop-color="%234A006B"/><stop offset="1" stop-color="%232B003F"/></linearGradient><linearGradient id="paint4_linear_20_36" x1="560.263" y1="530.414" x2="910.742" y2="1118.56" gradientUnits="userSpaceOnUse"><stop stop-color="%234F0065"/><stop offset="0.340552" stop-color="%2339004E"/><stop offset="0.616738" stop-color="%23230036"/><stop offset="1" stop-color="%23150026"/></linearGradient><linearGradient id="paint5_linear_20_36" x1="781.494" y1="72.6501" x2="2048.67" y2="1066.94" gradientUnits="userSpaceOnUse"><stop stop-color="%232F0044"/><stop offset="0.51248" stop-color="%2328003B"/><stop offset="1" stop-color="%23240037"/></linearGradient><linearGradient id="paint6_linear_20_36" x1="820.5" y1="32.5001" x2="906.975" y2="1110.35" gradientUnits="userSpaceOnUse"><stop stop-color="%238A1994"/><stop offset="0.425" stop-color="%237A1387"/><stop offset="1" stop-color="%2327003A"/></linearGradient><clipPath id="clip0_20_36"><rect width="2000" height="1125" fill="white"/></clipPath></defs></svg>')`,
|
|
1635
1661
|
secondary: `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="1125" viewBox="0 0 2000 1125" fill="none"><g clip-path="url(%23clip0_13_40)"><rect width="2000" height="1125" fill="url(%23paint0_linear_13_40)"/><rect x="-226.435" y="213.022" width="435.932" height="216.966" transform="rotate(-66.9915 -226.435 213.022)" fill="url(%23paint1_linear_13_40)"/><g filter="url(%23filter0_d_13_40)"><path d="M480.784 -336.718L483.018 -338.805C2086.53 -1722.59 2447.86 284.242 2322.13 1089.91C2196.4 1895.57 1114.05 1663.85 598.008 1169.98C188.829 778.383 94.9071 433.168 84.5809 306.459C63.8953 52.6354 248.918 -120.167 480.784 -336.718Z" fill="%23F5E5FF"/></g><g filter="url(%23filter1_d_13_40)"><path d="M478.235 -337.757L480.469 -339.844C2083.98 -1723.63 2445.31 283.203 2319.58 1088.87C2193.85 1894.53 1111.5 1662.81 595.459 1168.95C186.279 777.344 91.9002 426.514 82.0316 305.42C61.346 51.5961 246.369 -121.206 478.235 -337.757Z" fill="url(%23paint2_linear_13_40)"/></g><path d="M478.35 -359.804L480.585 -361.891C2084.1 -1745.68 2445.43 261.156 2319.7 1066.82C2193.96 1872.48 1111.61 1640.77 595.575 1146.9C186.395 755.297 91.9025 403.076 82.1473 283.373C61.4618 29.5494 246.484 -143.253 478.35 -359.804Z" fill="url(%23paint3_linear_13_40)" stroke="url(%23paint4_linear_13_40)" stroke-width="0.488281"/><g filter="url(%23filter2_d_13_40)"><path d="M895.095 -81.1636L897.087 -83.483C2339.2 -1634.76 2918.4 320.353 2881.77 1134.95C2845.14 1949.54 1743.91 1837.9 1176.83 1403.6C727.176 1059.23 595.967 726.393 571.809 601.58C523.415 351.555 688.373 159.507 895.095 -81.1636Z" fill="%23F5E5FF"/></g><g filter="url(%23filter3_d_13_40)"><path d="M892.877 -81.1463L894.869 -83.4656C2336.98 -1634.74 2916.18 320.371 2879.55 1134.96C2842.92 1949.56 1741.69 1837.92 1174.61 1403.62C724.958 1059.24 592.678 720.879 569.59 601.597C521.196 351.573 686.155 159.524 892.877 -81.1463Z" fill="url(%23paint5_linear_13_40)"/></g><path d="M899.248 -92.3297L901.24 -94.6491C2343.35 -1645.93 2922.56 309.187 2885.93 1123.78C2849.3 1938.37 1748.06 1826.74 1180.98 1392.43C731.329 1048.06 598.784 708.325 575.961 590.414C527.568 340.389 692.526 148.341 899.248 -92.3297Z" fill="url(%23paint6_linear_13_40)" stroke="url(%23paint7_linear_13_40)" stroke-width="0.488281"/></g><defs><filter id="filter0_d_13_40" x="67" y="-812.852" width="2294.05" height="2463.76" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="8"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.605849 0 0 0 0 0.52 0 0 0 0 0.65 0 0 0 0.95 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13_40"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13_40" result="shape"/></filter><filter id="filter1_d_13_40" x="20.4507" y="-841.891" width="2382.05" height="2551.76" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="32"/><feGaussianBlur stdDeviation="30"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.628679 0 0 0 0 0.49 0 0 0 0 0.7 0 0 0 0.5 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13_40"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13_40" result="shape"/></filter><filter id="filter2_d_13_40" x="547.307" y="-664.639" width="2352.09" height="2436.12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="8"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.594811 0 0 0 0 0.4875 0 0 0 0 0.65 0 0 0 0.95 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13_40"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13_40" result="shape"/></filter><filter id="filter3_d_13_40" x="381.088" y="-820.621" width="2680.09" height="2764.12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="24"/><feGaussianBlur stdDeviation="90"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.61425 0 0 0 0 0.455 0 0 0 0 0.7 0 0 0 0.62 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13_40"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13_40" result="shape"/></filter><linearGradient id="paint0_linear_13_40" x1="48.3398" y1="4.80196e-07" x2="58.1053" y2="1125" gradientUnits="userSpaceOnUse"><stop stop-color="%23F6E6FF"/><stop offset="0.465" stop-color="%23F5E2FF"/><stop offset="1" stop-color="%23F2DCFE"/></linearGradient><linearGradient id="paint1_linear_13_40" x1="-8.46836" y1="213.022" x2="-8.46836" y2="429.988" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.0001" stop-color="%23FFFEFD"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="paint2_linear_13_40" x1="80.5666" y1="233.643" x2="606.544" y2="1094.45" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.265" stop-color="white"/><stop offset="0.385" stop-color="%23F7EAFF"/><stop offset="0.720829" stop-color="%23D3BCDF"/><stop offset="1" stop-color="%23AA91B7"/></linearGradient><linearGradient id="paint3_linear_13_40" x1="138.672" y1="41.2598" x2="702.487" y2="1106.9" gradientUnits="userSpaceOnUse"><stop stop-color="%23F7E9FF"/><stop offset="0.19574" stop-color="%23F6E7FF"/><stop offset="1" stop-color="%23EBD5F6"/></linearGradient><linearGradient id="paint4_linear_13_40" x1="163.5" y1="527.148" x2="390.5" y2="902.648" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.0001" stop-color="white"/><stop offset="1" stop-color="%23F1DBFC"/></linearGradient><linearGradient id="paint5_linear_13_40" x1="560.263" y1="530.414" x2="910.742" y2="1118.56" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.340552" stop-color="%23F7E9FF"/><stop offset="0.616738" stop-color="%23E1CBED"/><stop offset="1" stop-color="%23AB92B8"/></linearGradient><linearGradient id="paint6_linear_13_40" x1="781.494" y1="72.6501" x2="2048.67" y2="1066.94" gradientUnits="userSpaceOnUse"><stop stop-color="%23F5E3FF"/><stop offset="0.51248" stop-color="%23EBD5F7"/><stop offset="1" stop-color="%23E0C9EB"/></linearGradient><linearGradient id="paint7_linear_13_40" x1="580.804" y1="451.174" x2="906.975" y2="1110.35" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.0001" stop-color="white"/><stop offset="1" stop-color="%23E5DBD5"/></linearGradient><clipPath id="clip0_13_40"><rect width="2000" height="1125" fill="white"/></clipPath></defs></svg>')`,
|
|
1636
1662
|
quaternary: `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="1125" viewBox="0 0 2000 1125" fill="none"><g clip-path="url(%23clip0_16_50)"><rect width="2000" height="1125" fill="url(%23paint0_linear_16_50)"/><rect x="-145.375" y="247.444" width="435.932" height="128.9" transform="rotate(-66.9915 -145.375 247.444)" fill="url(%23paint1_linear_16_50)"/><g filter="url(%23filter0_d_16_50)"><path d="M480.784 -336.718L483.018 -338.805C2086.53 -1722.59 2447.86 284.242 2322.13 1089.91C2196.4 1895.57 1114.05 1663.85 598.008 1169.98C188.829 778.383 94.9071 433.168 84.5809 306.459C63.8953 52.6354 248.918 -120.167 480.784 -336.718Z" fill="%23EFE5DF"/></g><g filter="url(%23filter1_d_16_50)"><path d="M478.235 -337.757L480.469 -339.844C2083.98 -1723.63 2445.31 283.203 2319.58 1088.87C2193.85 1894.53 1111.5 1662.81 595.459 1168.95C186.279 777.344 91.9002 426.514 82.0316 305.42C61.346 51.5961 246.369 -121.206 478.235 -337.757Z" fill="url(%23paint2_linear_16_50)"/></g><path d="M478.35 -359.804L480.585 -361.891C2084.1 -1745.68 2445.43 261.156 2319.7 1066.82C2193.96 1872.48 1111.61 1640.77 595.575 1146.9C186.395 755.297 91.9025 403.076 82.1473 283.373C61.4618 29.5494 246.484 -143.253 478.35 -359.804Z" fill="url(%23paint3_linear_16_50)" stroke="url(%23paint4_linear_16_50)" stroke-width="0.488281"/><g filter="url(%23filter2_d_16_50)"><path d="M895.095 -81.1636L897.087 -83.483C2339.2 -1634.76 2918.4 320.353 2881.77 1134.95C2845.14 1949.54 1743.91 1837.9 1176.83 1403.6C727.176 1059.23 595.967 726.393 571.809 601.58C523.415 351.555 688.373 159.507 895.095 -81.1636Z" fill="%23EFE5DF"/></g><g filter="url(%23filter3_d_16_50)"><path d="M892.877 -81.1463L894.869 -83.4656C2336.98 -1634.74 2916.18 320.371 2879.55 1134.96C2842.92 1949.56 1741.69 1837.92 1174.61 1403.62C724.958 1059.24 592.677 720.879 569.59 601.597C521.196 351.573 686.155 159.524 892.877 -81.1463Z" fill="url(%23paint5_linear_16_50)"/></g><path d="M899.248 -92.3297L901.24 -94.6491C2343.35 -1645.93 2922.56 309.187 2885.93 1123.78C2849.3 1938.37 1748.06 1826.74 1180.98 1392.43C731.329 1048.06 598.784 708.325 575.961 590.414C527.568 340.389 692.526 148.341 899.248 -92.3297Z" fill="url(%23paint6_linear_16_50)" stroke="url(%23paint7_linear_16_50)" stroke-width="0.488281"/></g><defs><filter id="filter0_d_16_50" x="67" y="-812.852" width="2294.05" height="2463.76" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="8"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.607843 0 0 0 0 0.568627 0 0 0 0 0.545098 0 0 0 0.9 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_16_50"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_16_50" result="shape"/></filter><filter id="filter1_d_16_50" x="0.450684" y="-861.891" width="2422.05" height="2591.76" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="32"/><feGaussianBlur stdDeviation="40"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.607843 0 0 0 0 0.568627 0 0 0 0 0.545098 0 0 0 0.5 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_16_50"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_16_50" result="shape"/></filter><filter id="filter2_d_16_50" x="547.307" y="-664.639" width="2352.09" height="2436.12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="16"/><feGaussianBlur stdDeviation="8"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.607843 0 0 0 0 0.568627 0 0 0 0 0.545098 0 0 0 0.9 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_16_50"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_16_50" result="shape"/></filter><filter id="filter3_d_16_50" x="381.088" y="-844.621" width="2680.09" height="2764.12" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset/><feGaussianBlur stdDeviation="90"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.607843 0 0 0 0 0.568627 0 0 0 0 0.545098 0 0 0 0.55 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_16_50"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_16_50" result="shape"/></filter><linearGradient id="paint0_linear_16_50" x1="48.3398" y1="4.80196e-07" x2="58.1053" y2="1125" gradientUnits="userSpaceOnUse"><stop stop-color="%23FDF3EE"/><stop offset="0.625484" stop-color="%23F8EEE8"/><stop offset="1" stop-color="%23F0E5DF"/><stop offset="1" stop-color="%23F0E5E0"/></linearGradient><linearGradient id="paint1_linear_16_50" x1="72.5912" y1="247.444" x2="72.5912" y2="376.344" gradientUnits="userSpaceOnUse"><stop stop-color="%23FFFEFD"/><stop offset="0.0001" stop-color="%23FFFEFD"/><stop offset="1" stop-color="%23FFFDFD" stop-opacity="0"/></linearGradient><linearGradient id="paint2_linear_16_50" x1="80.5666" y1="233.643" x2="606.544" y2="1094.45" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.265" stop-color="white"/><stop offset="0.385" stop-color="%23F5ECE6"/><stop offset="0.720829" stop-color="%23CFC4BE"/><stop offset="1" stop-color="%23C9BDB6"/></linearGradient><linearGradient id="paint3_linear_16_50" x1="138.672" y1="41.2598" x2="702.487" y2="1106.9" gradientUnits="userSpaceOnUse"><stop stop-color="%23FFFAF8"/><stop offset="0.19574" stop-color="%23FEF5EF"/><stop offset="1" stop-color="%23E8DED8"/></linearGradient><linearGradient id="paint4_linear_16_50" x1="163.5" y1="527.148" x2="390.5" y2="902.648" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.0001" stop-color="white"/><stop offset="1" stop-color="%23E5DBD5"/></linearGradient><linearGradient id="paint5_linear_16_50" x1="560.263" y1="530.414" x2="910.742" y2="1118.56" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.340552" stop-color="%23FCF2EC"/><stop offset="0.616738" stop-color="%23D8CEC8"/><stop offset="1" stop-color="%23ACA19C"/></linearGradient><linearGradient id="paint6_linear_16_50" x1="781.494" y1="72.6501" x2="2048.67" y2="1066.94" gradientUnits="userSpaceOnUse"><stop stop-color="%23F8EEE8"/><stop offset="0.51248" stop-color="%23E8DED8"/><stop offset="1" stop-color="%23DDD3CE"/></linearGradient><linearGradient id="paint7_linear_16_50" x1="580.804" y1="451.174" x2="906.975" y2="1110.35" gradientUnits="userSpaceOnUse"><stop stop-color="white"/><stop offset="0.0001" stop-color="white"/><stop offset="1" stop-color="%23E5DBD5"/></linearGradient><clipPath id="clip0_16_50"><rect width="2000" height="1125" fill="white"/></clipPath></defs></svg>')`
|
|
1637
|
-
},
|
|
1663
|
+
}, Ca = {
|
|
1638
1664
|
primary: "var(--purpur-color-text-tone-on-tone-primary)",
|
|
1639
1665
|
secondary: "var(--purpur-color-text-tone-on-tone-secondary)",
|
|
1640
1666
|
quaternary: "var(--purpur-color-text-tone-on-tone-tertiary)"
|
|
1641
|
-
}, h =
|
|
1667
|
+
}, h = wa.bind(ba), s = "purpur-promotion-card", ka = ({
|
|
1642
1668
|
["data-testid"]: e,
|
|
1643
1669
|
variant: i = "primary",
|
|
1644
1670
|
badgeText: a,
|
|
@@ -1650,32 +1676,32 @@ const ba = /* @__PURE__ */ wa(xa), $a = {
|
|
|
1650
1676
|
className: u,
|
|
1651
1677
|
actions: d,
|
|
1652
1678
|
children: g,
|
|
1653
|
-
style:
|
|
1679
|
+
style: w,
|
|
1654
1680
|
...c
|
|
1655
|
-
},
|
|
1656
|
-
let v = c, _,
|
|
1681
|
+
}, F) => {
|
|
1682
|
+
let v = c, _, C;
|
|
1657
1683
|
if ("decorativeImage" in c) {
|
|
1658
|
-
const { hasGradient: y, decorativeImage: k, ...
|
|
1659
|
-
_ = k,
|
|
1684
|
+
const { hasGradient: y, decorativeImage: k, ...G } = c;
|
|
1685
|
+
_ = k, C = y, v = G;
|
|
1660
1686
|
} else if ("productImage" in c) {
|
|
1661
|
-
const { hasGradient: y, productImage: k, ...
|
|
1662
|
-
_ = k,
|
|
1687
|
+
const { hasGradient: y, productImage: k, ...G } = c;
|
|
1688
|
+
_ = k, C = y, v = G;
|
|
1663
1689
|
} else if ("hasGradient" in c) {
|
|
1664
1690
|
const { hasGradient: y, ...k } = c;
|
|
1665
|
-
|
|
1691
|
+
C = y, v = k;
|
|
1666
1692
|
}
|
|
1667
|
-
const
|
|
1668
|
-
"--promotion-card-background":
|
|
1669
|
-
"--promotion-card-color":
|
|
1670
|
-
"--promotion-card-background-image":
|
|
1693
|
+
const T = {
|
|
1694
|
+
"--promotion-card-background": Sa[i],
|
|
1695
|
+
"--promotion-card-color": Ca[i],
|
|
1696
|
+
"--promotion-card-background-image": $a[i]
|
|
1671
1697
|
};
|
|
1672
|
-
return /* @__PURE__ */ l(
|
|
1698
|
+
return /* @__PURE__ */ l(x, { ref: F, className: h(`${s}__card`), children: /* @__PURE__ */ f(
|
|
1673
1699
|
"div",
|
|
1674
1700
|
{
|
|
1675
1701
|
"data-testid": e,
|
|
1676
1702
|
style: {
|
|
1677
|
-
...
|
|
1678
|
-
...
|
|
1703
|
+
...T,
|
|
1704
|
+
...w
|
|
1679
1705
|
},
|
|
1680
1706
|
className: h([
|
|
1681
1707
|
u,
|
|
@@ -1699,13 +1725,13 @@ const ba = /* @__PURE__ */ wa(xa), $a = {
|
|
|
1699
1725
|
}
|
|
1700
1726
|
]),
|
|
1701
1727
|
children: [
|
|
1702
|
-
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: h(`${s}__badge-wrapper`), children: /* @__PURE__ */ f(
|
|
1728
|
+
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: h(`${s}__badge-wrapper`), children: /* @__PURE__ */ f(ue, { variant: i === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1703
1729
|
n && n,
|
|
1704
1730
|
a
|
|
1705
1731
|
] }) }),
|
|
1706
1732
|
/* @__PURE__ */ f("div", { className: h(`${s}__main-content`), children: [
|
|
1707
1733
|
/* @__PURE__ */ l(
|
|
1708
|
-
|
|
1734
|
+
Lr,
|
|
1709
1735
|
{
|
|
1710
1736
|
tag: r,
|
|
1711
1737
|
variant: t,
|
|
@@ -1716,14 +1742,14 @@ const ba = /* @__PURE__ */ wa(xa), $a = {
|
|
|
1716
1742
|
),
|
|
1717
1743
|
/* @__PURE__ */ f("div", { className: h(`${s}__body`), children: [
|
|
1718
1744
|
/* @__PURE__ */ l("div", { className: h(`${s}__child-content`), children: g }),
|
|
1719
|
-
d && d.length > 0 && /* @__PURE__ */ l("div", { className: h(`${s}__actions`), children: d.map(({ label: y,
|
|
1720
|
-
const
|
|
1721
|
-
variant:
|
|
1745
|
+
d && d.length > 0 && /* @__PURE__ */ l("div", { className: h(`${s}__actions`), children: d.map(({ label: y, ...k }, G) => {
|
|
1746
|
+
const Z = {
|
|
1747
|
+
variant: G === 0 ? "primary" : "secondary",
|
|
1722
1748
|
negative: i === "primary",
|
|
1723
|
-
...
|
|
1749
|
+
...k,
|
|
1724
1750
|
children: y
|
|
1725
1751
|
};
|
|
1726
|
-
return
|
|
1752
|
+
return Aa(Z) ? /* @__PURE__ */ l(fa, { ...Z }, y) : "onClick" in Z && !("href" in Z) ? /* @__PURE__ */ l(Sr, { ...Z }, y) : null;
|
|
1727
1753
|
}) })
|
|
1728
1754
|
] })
|
|
1729
1755
|
] })
|
|
@@ -1742,7 +1768,7 @@ const ba = /* @__PURE__ */ wa(xa), $a = {
|
|
|
1742
1768
|
]),
|
|
1743
1769
|
children: [
|
|
1744
1770
|
_,
|
|
1745
|
-
|
|
1771
|
+
C && /* @__PURE__ */ l(
|
|
1746
1772
|
"div",
|
|
1747
1773
|
{
|
|
1748
1774
|
className: h(`${s}__image-gradient`),
|
|
@@ -1755,10 +1781,10 @@ const ba = /* @__PURE__ */ wa(xa), $a = {
|
|
|
1755
1781
|
]
|
|
1756
1782
|
}
|
|
1757
1783
|
) });
|
|
1758
|
-
},
|
|
1759
|
-
|
|
1784
|
+
}, Aa = (e) => "href" in e, Oa = $(ka);
|
|
1785
|
+
Oa.displayName = "PromotionCard";
|
|
1760
1786
|
export {
|
|
1761
|
-
|
|
1787
|
+
Oa as PromotionCard,
|
|
1762
1788
|
Ea as promotionCardVariants
|
|
1763
1789
|
};
|
|
1764
1790
|
//# sourceMappingURL=promotion-card.es.js.map
|