@purpurds/promotion-card 5.22.0 → 5.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.txt +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 +10 -18
- package/dist/promotion-card.d.ts.map +1 -1
- package/dist/promotion-card.es.js +328 -326
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +11 -11
- package/src/promotion-card.tsx +20 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as _, jsx as l, Fragment as
|
|
2
|
-
import { forwardRef as S, Children as D, isValidElement as H, createElement as
|
|
1
|
+
import { jsxs as _, jsx as l, Fragment as mr } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, Children as D, isValidElement as H, createElement as P, cloneElement as vr, useEffect as Pr, Fragment as qr } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function
|
|
4
|
+
function Tr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var yr = { exports: {} };
|
|
8
8
|
/*!
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
@@ -39,9 +39,9 @@ var vr = { exports: {} };
|
|
|
39
39
|
}
|
|
40
40
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
43
|
-
var
|
|
44
|
-
const
|
|
42
|
+
})(yr);
|
|
43
|
+
var zr = yr.exports;
|
|
44
|
+
const Hr = /* @__PURE__ */ Tr(zr), Vr = {
|
|
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 zr = /* @__PURE__ */ Pr(Tr), Hr = {
|
|
|
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
|
+
}, Wr = {
|
|
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
|
+
}, Xr = {
|
|
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
|
+
}, Kr = {
|
|
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
|
+
}, Yr = {
|
|
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
|
+
}, Jr = {
|
|
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
|
+
}, Qr = {
|
|
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
|
+
}, re = {
|
|
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
|
+
}, ee = Hr.bind(Vr), er = "purpur-icon", te = "md", ae = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), ie = ({ 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 ${ae(a)}>${n}${e}</svg>`;
|
|
95
|
+
}, oe = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), xr = ({
|
|
96
96
|
["data-testid"]: e,
|
|
97
97
|
svg: i,
|
|
98
98
|
allyTitle: a,
|
|
99
99
|
className: n,
|
|
100
|
-
size: p =
|
|
100
|
+
size: p = te,
|
|
101
101
|
...r
|
|
102
102
|
}) => {
|
|
103
|
-
const t =
|
|
104
|
-
content:
|
|
103
|
+
const t = ie({
|
|
104
|
+
content: oe(i.svg),
|
|
105
105
|
title: a
|
|
106
|
-
}), o =
|
|
106
|
+
}), o = ee(n, er, `${er}--${p}`);
|
|
107
107
|
return /* @__PURE__ */ l(
|
|
108
108
|
"span",
|
|
109
109
|
{
|
|
@@ -115,11 +115,11 @@ const zr = /* @__PURE__ */ Pr(Tr), Hr = {
|
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
};
|
|
118
|
-
|
|
119
|
-
function
|
|
118
|
+
xr.displayName = "Icon";
|
|
119
|
+
function ne(e) {
|
|
120
120
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
122
|
+
var wr = { exports: {} };
|
|
123
123
|
/*!
|
|
124
124
|
Copyright (c) 2018 Jed Watson.
|
|
125
125
|
Licensed under the MIT License (MIT), see
|
|
@@ -154,9 +154,9 @@ var xr = { exports: {} };
|
|
|
154
154
|
}
|
|
155
155
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
156
156
|
})();
|
|
157
|
-
})(
|
|
158
|
-
var
|
|
159
|
-
const
|
|
157
|
+
})(wr);
|
|
158
|
+
var pe = wr.exports;
|
|
159
|
+
const le = /* @__PURE__ */ ne(pe), tr = {
|
|
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",
|
|
@@ -166,7 +166,7 @@ const pe = /* @__PURE__ */ oe(ne), er = {
|
|
|
166
166
|
"purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
|
|
167
167
|
"purpur-badge--error": "_purpur-badge--error_1r1mu_37",
|
|
168
168
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
|
|
169
|
-
},
|
|
169
|
+
}, ar = "purpur-badge", b = {
|
|
170
170
|
ATTENTION: "attention",
|
|
171
171
|
SPECIAL: "special",
|
|
172
172
|
NEUTRAL: "neutral",
|
|
@@ -175,27 +175,27 @@ const pe = /* @__PURE__ */ oe(ne), er = {
|
|
|
175
175
|
WARNING: "warning",
|
|
176
176
|
ERROR: "error",
|
|
177
177
|
BLACK_FRIDAY: "black-friday"
|
|
178
|
-
},
|
|
178
|
+
}, ue = (e) => {
|
|
179
179
|
switch (e) {
|
|
180
180
|
case b.ATTENTION:
|
|
181
181
|
case b.SPECIAL:
|
|
182
|
-
return
|
|
182
|
+
return Jr;
|
|
183
183
|
case b.INFORMATION:
|
|
184
|
-
return
|
|
184
|
+
return Yr;
|
|
185
185
|
case b.SUCCESS:
|
|
186
|
-
return
|
|
186
|
+
return Xr;
|
|
187
187
|
case b.WARNING:
|
|
188
|
-
return
|
|
188
|
+
return Wr;
|
|
189
189
|
case b.ERROR:
|
|
190
|
-
return
|
|
190
|
+
return Kr;
|
|
191
191
|
case b.NEUTRAL:
|
|
192
|
-
return Jr;
|
|
193
|
-
case b.BLACK_FRIDAY:
|
|
194
192
|
return Qr;
|
|
193
|
+
case b.BLACK_FRIDAY:
|
|
194
|
+
return re;
|
|
195
195
|
default:
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
},
|
|
198
|
+
}, se = ({
|
|
199
199
|
children: e,
|
|
200
200
|
showIcon: i = !0,
|
|
201
201
|
variant: a,
|
|
@@ -204,20 +204,20 @@ const pe = /* @__PURE__ */ oe(ne), er = {
|
|
|
204
204
|
className: r = "",
|
|
205
205
|
...t
|
|
206
206
|
}) => {
|
|
207
|
-
const o =
|
|
207
|
+
const o = ue(a), u = le([r, tr[ar], tr[`${ar}--${a}`]]);
|
|
208
208
|
return /* @__PURE__ */ _("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
209
|
-
i && o && /* @__PURE__ */ l(
|
|
209
|
+
i && o && /* @__PURE__ */ l(xr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
|
|
210
210
|
e
|
|
211
211
|
] });
|
|
212
|
-
},
|
|
212
|
+
}, de = {
|
|
213
213
|
SM: "sm",
|
|
214
214
|
MD: "md",
|
|
215
215
|
LG: "lg"
|
|
216
216
|
};
|
|
217
|
-
function
|
|
217
|
+
function ce(e) {
|
|
218
218
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
219
219
|
}
|
|
220
|
-
var
|
|
220
|
+
var br = { exports: {} };
|
|
221
221
|
/*!
|
|
222
222
|
Copyright (c) 2018 Jed Watson.
|
|
223
223
|
Licensed under the MIT License (MIT), see
|
|
@@ -252,42 +252,42 @@ var wr = { exports: {} };
|
|
|
252
252
|
}
|
|
253
253
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
254
254
|
})();
|
|
255
|
-
})(
|
|
256
|
-
var
|
|
257
|
-
const
|
|
255
|
+
})(br);
|
|
256
|
+
var _e = br.exports;
|
|
257
|
+
const ir = /* @__PURE__ */ ce(_e), fe = "_rotate_1xozj_1", ge = "_dash_1xozj_1", Z = {
|
|
258
258
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
259
|
-
rotate:
|
|
259
|
+
rotate: fe,
|
|
260
260
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
261
261
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
262
262
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
263
263
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
264
264
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
265
265
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
266
|
-
dash:
|
|
266
|
+
dash: ge,
|
|
267
267
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
268
268
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
269
|
-
}, I = "purpur-spinner",
|
|
269
|
+
}, I = "purpur-spinner", he = {
|
|
270
270
|
XXS: "xxs",
|
|
271
271
|
XS: "xs",
|
|
272
272
|
SM: "sm",
|
|
273
273
|
MD: "md",
|
|
274
274
|
LG: "lg"
|
|
275
|
-
},
|
|
275
|
+
}, me = ({
|
|
276
276
|
["data-testid"]: e,
|
|
277
277
|
disabled: i = !1,
|
|
278
278
|
negative: a = !1,
|
|
279
|
-
size: n =
|
|
279
|
+
size: n = he.SM,
|
|
280
280
|
...p
|
|
281
281
|
}) => /* @__PURE__ */ l(
|
|
282
282
|
"div",
|
|
283
283
|
{
|
|
284
|
-
className:
|
|
284
|
+
className: ir([Z[I], Z[`${I}--${n}`]]),
|
|
285
285
|
"data-testid": e,
|
|
286
286
|
...p,
|
|
287
287
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
288
288
|
"circle",
|
|
289
289
|
{
|
|
290
|
-
className:
|
|
290
|
+
className: ir(Z[`${I}__circle`], {
|
|
291
291
|
[Z[`${I}__circle--disabled`]]: i,
|
|
292
292
|
[Z[`${I}__circle--negative`]]: a
|
|
293
293
|
}),
|
|
@@ -298,10 +298,10 @@ const ar = /* @__PURE__ */ de(ce), _e = "_rotate_1xozj_1", fe = "_dash_1xozj_1",
|
|
|
298
298
|
) })
|
|
299
299
|
}
|
|
300
300
|
);
|
|
301
|
-
function
|
|
301
|
+
function ve(e) {
|
|
302
302
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
303
303
|
}
|
|
304
|
-
var
|
|
304
|
+
var $r = { exports: {} };
|
|
305
305
|
/*!
|
|
306
306
|
Copyright (c) 2018 Jed Watson.
|
|
307
307
|
Licensed under the MIT License (MIT), see
|
|
@@ -336,9 +336,9 @@ var br = { exports: {} };
|
|
|
336
336
|
}
|
|
337
337
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
338
338
|
})();
|
|
339
|
-
})(
|
|
340
|
-
var
|
|
341
|
-
const
|
|
339
|
+
})($r);
|
|
340
|
+
var ye = $r.exports;
|
|
341
|
+
const xe = /* @__PURE__ */ ve(ye), we = {
|
|
342
342
|
"purpur-button": "_purpur-button_1acxn_1",
|
|
343
343
|
"purpur-button--sm": "_purpur-button--sm_1acxn_33",
|
|
344
344
|
"purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
|
|
@@ -359,7 +359,7 @@ const ye = /* @__PURE__ */ me(ve), xe = {
|
|
|
359
359
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
|
|
360
360
|
"purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
|
|
361
361
|
"purpur-button--text": "_purpur-button--text_1acxn_175"
|
|
362
|
-
},
|
|
362
|
+
}, be = xe.bind(we), A = "purpur-button", $e = ({
|
|
363
363
|
children: e,
|
|
364
364
|
className: i,
|
|
365
365
|
["data-testid"]: a,
|
|
@@ -376,7 +376,7 @@ const ye = /* @__PURE__ */ me(ve), xe = {
|
|
|
376
376
|
}, F) => {
|
|
377
377
|
if (r && g === "destructive")
|
|
378
378
|
return null;
|
|
379
|
-
const
|
|
379
|
+
const x = be(
|
|
380
380
|
[
|
|
381
381
|
A,
|
|
382
382
|
`${A}--${o ? `${g}-negative` : g}`,
|
|
@@ -389,13 +389,13 @@ const ye = /* @__PURE__ */ me(ve), xe = {
|
|
|
389
389
|
[`${A}--disabled`]: n || t
|
|
390
390
|
},
|
|
391
391
|
i
|
|
392
|
-
), h = (
|
|
393
|
-
n || t ?
|
|
392
|
+
), h = (q) => {
|
|
393
|
+
n || t ? q.preventDefault() : u && u(q);
|
|
394
394
|
}, k = !!d["aria-disabled"] || n || t;
|
|
395
395
|
return /* @__PURE__ */ _(
|
|
396
396
|
"button",
|
|
397
397
|
{
|
|
398
|
-
className:
|
|
398
|
+
className: x,
|
|
399
399
|
"data-testid": a,
|
|
400
400
|
type: C,
|
|
401
401
|
ref: F,
|
|
@@ -403,18 +403,18 @@ const ye = /* @__PURE__ */ me(ve), xe = {
|
|
|
403
403
|
onClick: h,
|
|
404
404
|
...d,
|
|
405
405
|
children: [
|
|
406
|
-
t && /* @__PURE__ */ l(
|
|
406
|
+
t && /* @__PURE__ */ l(me, { size: c === de.LG ? "xs" : "xxs", negative: o, disabled: k }),
|
|
407
407
|
" ",
|
|
408
408
|
e
|
|
409
409
|
]
|
|
410
410
|
}
|
|
411
411
|
);
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
function
|
|
412
|
+
}, Sr = S($e);
|
|
413
|
+
Sr.displayName = "Button";
|
|
414
|
+
function Se(e) {
|
|
415
415
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
416
416
|
}
|
|
417
|
-
var
|
|
417
|
+
var Cr = { exports: {} };
|
|
418
418
|
/*!
|
|
419
419
|
Copyright (c) 2018 Jed Watson.
|
|
420
420
|
Licensed under the MIT License (MIT), see
|
|
@@ -449,15 +449,15 @@ var Sr = { exports: {} };
|
|
|
449
449
|
}
|
|
450
450
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
451
451
|
})();
|
|
452
|
-
})(
|
|
453
|
-
var
|
|
454
|
-
const
|
|
452
|
+
})(Cr);
|
|
453
|
+
var Ce = Cr.exports;
|
|
454
|
+
const y = /* @__PURE__ */ Se(Ce), ke = {
|
|
455
455
|
"purpur-card": "_purpur-card_1owb4_1"
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function Ae(e) {
|
|
458
458
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
459
459
|
}
|
|
460
|
-
var
|
|
460
|
+
var kr = { exports: {} };
|
|
461
461
|
/*!
|
|
462
462
|
Copyright (c) 2018 Jed Watson.
|
|
463
463
|
Licensed under the MIT License (MIT), see
|
|
@@ -492,9 +492,9 @@ var Cr = { exports: {} };
|
|
|
492
492
|
}
|
|
493
493
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
494
494
|
})();
|
|
495
|
-
})(
|
|
496
|
-
var
|
|
497
|
-
const
|
|
495
|
+
})(kr);
|
|
496
|
+
var Oe = kr.exports;
|
|
497
|
+
const Be = /* @__PURE__ */ Ae(Oe), Fe = {
|
|
498
498
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
499
499
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
500
500
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -502,61 +502,61 @@ const Oe = /* @__PURE__ */ ke(Ae), Be = {
|
|
|
502
502
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
503
503
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
504
504
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
505
|
-
},
|
|
505
|
+
}, Me = {
|
|
506
506
|
name: "alert",
|
|
507
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>',
|
|
508
508
|
keywords: ["alert"],
|
|
509
509
|
category: "status"
|
|
510
|
-
},
|
|
510
|
+
}, Ne = {
|
|
511
511
|
name: "check-circle",
|
|
512
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>',
|
|
513
513
|
keywords: ["check-circle"],
|
|
514
514
|
category: "status"
|
|
515
|
-
},
|
|
515
|
+
}, Ee = {
|
|
516
516
|
name: "error",
|
|
517
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>',
|
|
518
518
|
keywords: ["error"],
|
|
519
519
|
category: "status"
|
|
520
|
-
},
|
|
520
|
+
}, Ge = {
|
|
521
521
|
name: "info",
|
|
522
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>',
|
|
523
523
|
keywords: ["info"],
|
|
524
524
|
category: "status"
|
|
525
|
-
},
|
|
525
|
+
}, Ze = {
|
|
526
526
|
name: "offering",
|
|
527
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>',
|
|
528
528
|
keywords: ["offering"],
|
|
529
529
|
category: "other"
|
|
530
|
-
},
|
|
530
|
+
}, Ie = {
|
|
531
531
|
name: "question",
|
|
532
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>',
|
|
533
533
|
keywords: ["question"],
|
|
534
534
|
category: "status"
|
|
535
|
-
},
|
|
535
|
+
}, je = {
|
|
536
536
|
name: "tag",
|
|
537
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>',
|
|
538
538
|
keywords: ["tag"],
|
|
539
539
|
category: "other"
|
|
540
|
-
},
|
|
540
|
+
}, Ue = Be.bind(Fe), or = "purpur-icon", Le = "md", Re = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), De = ({ content: e = "", title: i } = {}) => {
|
|
541
541
|
const a = [
|
|
542
542
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
543
543
|
{ name: "fill", value: "currentColor" },
|
|
544
544
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
545
545
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
546
546
|
], n = i ? `<title>${i}</title>` : "";
|
|
547
|
-
return `<svg ${
|
|
548
|
-
},
|
|
547
|
+
return `<svg ${Re(a)}>${n}${e}</svg>`;
|
|
548
|
+
}, Pe = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ar = ({
|
|
549
549
|
["data-testid"]: e,
|
|
550
550
|
svg: i,
|
|
551
551
|
allyTitle: a,
|
|
552
552
|
className: n,
|
|
553
|
-
size: p =
|
|
553
|
+
size: p = Le,
|
|
554
554
|
...r
|
|
555
555
|
}) => {
|
|
556
|
-
const t =
|
|
557
|
-
content:
|
|
556
|
+
const t = De({
|
|
557
|
+
content: Pe(i.svg),
|
|
558
558
|
title: a
|
|
559
|
-
}), o =
|
|
559
|
+
}), o = Ue(n, or, `${or}--${p}`);
|
|
560
560
|
return /* @__PURE__ */ l(
|
|
561
561
|
"span",
|
|
562
562
|
{
|
|
@@ -568,11 +568,11 @@ const Oe = /* @__PURE__ */ ke(Ae), Be = {
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
};
|
|
571
|
-
|
|
571
|
+
Ar.displayName = "Icon";
|
|
572
572
|
function qe(e) {
|
|
573
573
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
574
574
|
}
|
|
575
|
-
var
|
|
575
|
+
var Or = { exports: {} };
|
|
576
576
|
/*!
|
|
577
577
|
Copyright (c) 2018 Jed Watson.
|
|
578
578
|
Licensed under the MIT License (MIT), see
|
|
@@ -607,9 +607,9 @@ var Ar = { exports: {} };
|
|
|
607
607
|
}
|
|
608
608
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
609
609
|
})();
|
|
610
|
-
})(
|
|
611
|
-
var
|
|
612
|
-
const
|
|
610
|
+
})(Or);
|
|
611
|
+
var Te = Or.exports;
|
|
612
|
+
const ze = /* @__PURE__ */ qe(Te), nr = {
|
|
613
613
|
"purpur-badge": "_purpur-badge_1r1mu_1",
|
|
614
614
|
"purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
|
|
615
615
|
"purpur-badge--special": "_purpur-badge--special_1r1mu_17",
|
|
@@ -619,7 +619,7 @@ const Te = /* @__PURE__ */ qe(Pe), or = {
|
|
|
619
619
|
"purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
|
|
620
620
|
"purpur-badge--error": "_purpur-badge--error_1r1mu_37",
|
|
621
621
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
|
|
622
|
-
},
|
|
622
|
+
}, pr = "purpur-badge", $ = {
|
|
623
623
|
ATTENTION: "attention",
|
|
624
624
|
SPECIAL: "special",
|
|
625
625
|
NEUTRAL: "neutral",
|
|
@@ -628,27 +628,27 @@ const Te = /* @__PURE__ */ qe(Pe), or = {
|
|
|
628
628
|
WARNING: "warning",
|
|
629
629
|
ERROR: "error",
|
|
630
630
|
BLACK_FRIDAY: "black-friday"
|
|
631
|
-
},
|
|
631
|
+
}, He = (e) => {
|
|
632
632
|
switch (e) {
|
|
633
633
|
case $.ATTENTION:
|
|
634
634
|
case $.SPECIAL:
|
|
635
|
-
return
|
|
635
|
+
return Ze;
|
|
636
636
|
case $.INFORMATION:
|
|
637
|
-
return
|
|
637
|
+
return Ge;
|
|
638
638
|
case $.SUCCESS:
|
|
639
|
-
return
|
|
639
|
+
return Ne;
|
|
640
640
|
case $.WARNING:
|
|
641
|
-
return
|
|
641
|
+
return Me;
|
|
642
642
|
case $.ERROR:
|
|
643
|
-
return
|
|
643
|
+
return Ee;
|
|
644
644
|
case $.NEUTRAL:
|
|
645
|
-
return Ze;
|
|
646
|
-
case $.BLACK_FRIDAY:
|
|
647
645
|
return Ie;
|
|
646
|
+
case $.BLACK_FRIDAY:
|
|
647
|
+
return je;
|
|
648
648
|
default:
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
651
|
-
},
|
|
651
|
+
}, Ve = ({
|
|
652
652
|
children: e,
|
|
653
653
|
showIcon: i = !0,
|
|
654
654
|
variant: a,
|
|
@@ -657,55 +657,55 @@ const Te = /* @__PURE__ */ qe(Pe), or = {
|
|
|
657
657
|
className: r = "",
|
|
658
658
|
...t
|
|
659
659
|
}) => {
|
|
660
|
-
const o =
|
|
660
|
+
const o = He(a), u = ze([r, nr[pr], nr[`${pr}--${a}`]]);
|
|
661
661
|
return /* @__PURE__ */ _("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
662
|
-
i && o && /* @__PURE__ */ l(
|
|
662
|
+
i && o && /* @__PURE__ */ l(Ar, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
|
|
663
663
|
e
|
|
664
664
|
] });
|
|
665
|
-
},
|
|
665
|
+
}, We = {
|
|
666
666
|
"purpur-card-badge": "_purpur-card-badge_r7moe_1"
|
|
667
|
-
},
|
|
667
|
+
}, Xe = y.bind(We), Ke = "purpur-card-badge", Ye = ({
|
|
668
668
|
["data-testid"]: e = "purpur-card-badge",
|
|
669
669
|
variant: i,
|
|
670
670
|
text: a
|
|
671
671
|
}) => i && a ? /* @__PURE__ */ l(
|
|
672
|
-
|
|
672
|
+
Ve,
|
|
673
673
|
{
|
|
674
|
-
className:
|
|
674
|
+
className: Xe(Ke),
|
|
675
675
|
variant: i,
|
|
676
676
|
showIcon: !1,
|
|
677
677
|
"data-testid": e,
|
|
678
678
|
children: a
|
|
679
679
|
}
|
|
680
|
-
) : null,
|
|
680
|
+
) : null, Je = {
|
|
681
681
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
682
|
-
},
|
|
682
|
+
}, Qe = y.bind(Je), rt = "purpur-card-content", et = ({
|
|
683
683
|
["data-testid"]: e = "purpur-card-content",
|
|
684
684
|
children: i
|
|
685
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
685
|
+
}) => /* @__PURE__ */ l("div", { className: Qe(rt), "data-testid": e, children: i }), tt = {
|
|
686
686
|
"purpur-card-content-container": "_purpur-card-content-container_1oawn_1",
|
|
687
687
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_1oawn_12"
|
|
688
|
-
},
|
|
688
|
+
}, at = y.bind(tt), lr = "purpur-card-content-container", it = ({
|
|
689
689
|
["data-testid"]: e = "purpur-card-content-container",
|
|
690
690
|
children: i,
|
|
691
691
|
isFooter: a = !1
|
|
692
692
|
}) => /* @__PURE__ */ l(
|
|
693
693
|
"div",
|
|
694
694
|
{
|
|
695
|
-
className:
|
|
696
|
-
|
|
695
|
+
className: at([
|
|
696
|
+
lr,
|
|
697
697
|
{
|
|
698
|
-
[`${
|
|
698
|
+
[`${lr}--footer`]: a
|
|
699
699
|
}
|
|
700
700
|
]),
|
|
701
701
|
"data-testid": e,
|
|
702
702
|
children: i
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
|
-
function
|
|
705
|
+
function ot(e) {
|
|
706
706
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var Br = { exports: {} };
|
|
709
709
|
/*!
|
|
710
710
|
Copyright (c) 2018 Jed Watson.
|
|
711
711
|
Licensed under the MIT License (MIT), see
|
|
@@ -740,42 +740,42 @@ var Or = { exports: {} };
|
|
|
740
740
|
}
|
|
741
741
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
742
742
|
})();
|
|
743
|
-
})(
|
|
744
|
-
var
|
|
745
|
-
const
|
|
743
|
+
})(Br);
|
|
744
|
+
var nt = Br.exports;
|
|
745
|
+
const ur = /* @__PURE__ */ ot(nt), pt = "_rotate_1xozj_1", lt = "_dash_1xozj_1", j = {
|
|
746
746
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
747
|
-
rotate:
|
|
747
|
+
rotate: pt,
|
|
748
748
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
749
749
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
750
750
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
751
751
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
752
752
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
753
753
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
754
|
-
dash:
|
|
754
|
+
dash: lt,
|
|
755
755
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
756
756
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
757
|
-
}, U = "purpur-spinner",
|
|
757
|
+
}, U = "purpur-spinner", ut = {
|
|
758
758
|
XXS: "xxs",
|
|
759
759
|
XS: "xs",
|
|
760
760
|
SM: "sm",
|
|
761
761
|
MD: "md",
|
|
762
762
|
LG: "lg"
|
|
763
|
-
},
|
|
763
|
+
}, Fr = ({
|
|
764
764
|
["data-testid"]: e,
|
|
765
765
|
disabled: i = !1,
|
|
766
766
|
negative: a = !1,
|
|
767
|
-
size: n =
|
|
767
|
+
size: n = ut.SM,
|
|
768
768
|
...p
|
|
769
769
|
}) => /* @__PURE__ */ l(
|
|
770
770
|
"div",
|
|
771
771
|
{
|
|
772
|
-
className:
|
|
772
|
+
className: ur([j[U], j[`${U}--${n}`]]),
|
|
773
773
|
"data-testid": e,
|
|
774
774
|
...p,
|
|
775
775
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
776
776
|
"circle",
|
|
777
777
|
{
|
|
778
|
-
className:
|
|
778
|
+
className: ur(j[`${U}__circle`], {
|
|
779
779
|
[j[`${U}__circle--disabled`]]: i,
|
|
780
780
|
[j[`${U}__circle--negative`]]: a
|
|
781
781
|
}),
|
|
@@ -785,7 +785,7 @@ const lr = /* @__PURE__ */ it(ot), nt = "_rotate_1xozj_1", pt = "_dash_1xozj_1",
|
|
|
785
785
|
}
|
|
786
786
|
) })
|
|
787
787
|
}
|
|
788
|
-
),
|
|
788
|
+
), st = {
|
|
789
789
|
"purpur-card-cta": "_purpur-card-cta_1fd16_1",
|
|
790
790
|
"purpur-card-cta--sm": "_purpur-card-cta--sm_1fd16_33",
|
|
791
791
|
"purpur-card-cta--icon-only": "_purpur-card-cta--icon-only_1fd16_36",
|
|
@@ -800,7 +800,7 @@ const lr = /* @__PURE__ */ it(ot), nt = "_rotate_1xozj_1", pt = "_dash_1xozj_1",
|
|
|
800
800
|
"purpur-card-cta--expressive": "_purpur-card-cta--expressive_1fd16_98",
|
|
801
801
|
"purpur-card-cta--expressive-negative": "_purpur-card-cta--expressive-negative_1fd16_108",
|
|
802
802
|
"purpur-card-cta--text": "_purpur-card-cta--text_1fd16_128"
|
|
803
|
-
},
|
|
803
|
+
}, dt = y.bind(st), O = "purpur-card-cta", ct = ({
|
|
804
804
|
["data-testid"]: e = "purpur-card-cta",
|
|
805
805
|
className: i,
|
|
806
806
|
children: a,
|
|
@@ -812,7 +812,7 @@ const lr = /* @__PURE__ */ it(ot), nt = "_rotate_1xozj_1", pt = "_dash_1xozj_1",
|
|
|
812
812
|
}) => /* @__PURE__ */ l(
|
|
813
813
|
"div",
|
|
814
814
|
{
|
|
815
|
-
className: `${
|
|
815
|
+
className: `${dt([
|
|
816
816
|
O,
|
|
817
817
|
i,
|
|
818
818
|
`${O}--md`,
|
|
@@ -825,17 +825,17 @@ const lr = /* @__PURE__ */ it(ot), nt = "_rotate_1xozj_1", pt = "_dash_1xozj_1",
|
|
|
825
825
|
])} ${O}`,
|
|
826
826
|
"data-testid": e,
|
|
827
827
|
...o,
|
|
828
|
-
children: r ? /* @__PURE__ */ l(
|
|
828
|
+
children: r ? /* @__PURE__ */ l(Fr, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ _(mr, { children: [
|
|
829
829
|
p === "left" && a,
|
|
830
830
|
t,
|
|
831
831
|
p === "right" && a
|
|
832
832
|
] })
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
|
-
function
|
|
835
|
+
function _t(e) {
|
|
836
836
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
837
837
|
}
|
|
838
|
-
var
|
|
838
|
+
var Mr = { exports: {} };
|
|
839
839
|
/*!
|
|
840
840
|
Copyright (c) 2018 Jed Watson.
|
|
841
841
|
Licensed under the MIT License (MIT), see
|
|
@@ -870,9 +870,9 @@ var Fr = { exports: {} };
|
|
|
870
870
|
}
|
|
871
871
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
872
872
|
})();
|
|
873
|
-
})(
|
|
874
|
-
var
|
|
875
|
-
const
|
|
873
|
+
})(Mr);
|
|
874
|
+
var ft = Mr.exports;
|
|
875
|
+
const gt = /* @__PURE__ */ _t(ft), ht = {
|
|
876
876
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
877
877
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
878
878
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -880,52 +880,52 @@ const ft = /* @__PURE__ */ ct(_t), gt = {
|
|
|
880
880
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
881
881
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
882
882
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
883
|
-
},
|
|
883
|
+
}, mt = {
|
|
884
884
|
name: "arrow-right",
|
|
885
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>',
|
|
886
886
|
keywords: ["arrow-right"],
|
|
887
887
|
category: "utility"
|
|
888
|
-
},
|
|
888
|
+
}, vt = {
|
|
889
889
|
name: "checkmark",
|
|
890
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>',
|
|
891
891
|
keywords: ["checkmark"],
|
|
892
892
|
category: "utility"
|
|
893
|
-
},
|
|
894
|
-
|
|
893
|
+
}, Nr = (e) => /* @__PURE__ */ l(
|
|
894
|
+
J,
|
|
895
895
|
{
|
|
896
896
|
...e,
|
|
897
|
-
svg:
|
|
897
|
+
svg: mt
|
|
898
898
|
}
|
|
899
899
|
);
|
|
900
|
-
|
|
901
|
-
const
|
|
902
|
-
|
|
900
|
+
Nr.displayName = "IconArrowRight";
|
|
901
|
+
const Er = (e) => /* @__PURE__ */ l(
|
|
902
|
+
J,
|
|
903
903
|
{
|
|
904
904
|
...e,
|
|
905
|
-
svg:
|
|
905
|
+
svg: vt
|
|
906
906
|
}
|
|
907
907
|
);
|
|
908
|
-
|
|
909
|
-
const
|
|
908
|
+
Er.displayName = "IconCheckmark";
|
|
909
|
+
const yt = gt.bind(ht), sr = "purpur-icon", xt = "md", wt = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), bt = ({ content: e = "", title: i } = {}) => {
|
|
910
910
|
const a = [
|
|
911
911
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
912
912
|
{ name: "fill", value: "currentColor" },
|
|
913
913
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
914
914
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
915
915
|
], n = i ? `<title>${i}</title>` : "";
|
|
916
|
-
return `<svg ${
|
|
917
|
-
},
|
|
916
|
+
return `<svg ${wt(a)}>${n}${e}</svg>`;
|
|
917
|
+
}, $t = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
|
|
918
918
|
["data-testid"]: e,
|
|
919
919
|
svg: i,
|
|
920
920
|
allyTitle: a,
|
|
921
921
|
className: n,
|
|
922
|
-
size: p =
|
|
922
|
+
size: p = xt,
|
|
923
923
|
...r
|
|
924
924
|
}) => {
|
|
925
|
-
const t =
|
|
926
|
-
content:
|
|
925
|
+
const t = bt({
|
|
926
|
+
content: $t(i.svg),
|
|
927
927
|
title: a
|
|
928
|
-
}), o =
|
|
928
|
+
}), o = yt(n, sr, `${sr}--${p}`);
|
|
929
929
|
return /* @__PURE__ */ l(
|
|
930
930
|
"span",
|
|
931
931
|
{
|
|
@@ -937,11 +937,11 @@ const vt = ft.bind(gt), ur = "purpur-icon", yt = "md", xt = (e) => e.filter((i)
|
|
|
937
937
|
}
|
|
938
938
|
);
|
|
939
939
|
};
|
|
940
|
-
|
|
941
|
-
function
|
|
940
|
+
J.displayName = "Icon";
|
|
941
|
+
function St(e) {
|
|
942
942
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
943
943
|
}
|
|
944
|
-
var
|
|
944
|
+
var Gr = { exports: {} };
|
|
945
945
|
/*!
|
|
946
946
|
Copyright (c) 2018 Jed Watson.
|
|
947
947
|
Licensed under the MIT License (MIT), see
|
|
@@ -976,9 +976,9 @@ var Er = { exports: {} };
|
|
|
976
976
|
}
|
|
977
977
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
978
978
|
})();
|
|
979
|
-
})(
|
|
980
|
-
var
|
|
981
|
-
const
|
|
979
|
+
})(Gr);
|
|
980
|
+
var Ct = Gr.exports;
|
|
981
|
+
const kt = /* @__PURE__ */ St(Ct), L = {
|
|
982
982
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
983
983
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
984
984
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -993,7 +993,7 @@ const Ct = /* @__PURE__ */ $t(St), L = {
|
|
|
993
993
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
994
994
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
995
995
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
996
|
-
},
|
|
996
|
+
}, At = {
|
|
997
997
|
PARAGRAPH100: "paragraph-100",
|
|
998
998
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
999
999
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -1004,17 +1004,17 @@ const Ct = /* @__PURE__ */ $t(St), L = {
|
|
|
1004
1004
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
1005
1005
|
OVERLINE100: "overline-100",
|
|
1006
1006
|
OVERLINE200: "overline-200"
|
|
1007
|
-
}, R = "purpur-paragraph",
|
|
1007
|
+
}, R = "purpur-paragraph", Q = ({
|
|
1008
1008
|
["data-testid"]: e,
|
|
1009
1009
|
children: i,
|
|
1010
1010
|
className: a,
|
|
1011
1011
|
disabled: n,
|
|
1012
1012
|
enableHyphenation: p = !1,
|
|
1013
1013
|
negative: r = !1,
|
|
1014
|
-
variant: t =
|
|
1014
|
+
variant: t = At.PARAGRAPH100,
|
|
1015
1015
|
...o
|
|
1016
1016
|
}) => {
|
|
1017
|
-
const u =
|
|
1017
|
+
const u = kt([
|
|
1018
1018
|
a,
|
|
1019
1019
|
L[R],
|
|
1020
1020
|
L[`${R}--${t}`],
|
|
@@ -1026,25 +1026,25 @@ const Ct = /* @__PURE__ */ $t(St), L = {
|
|
|
1026
1026
|
]);
|
|
1027
1027
|
return /* @__PURE__ */ l("p", { ...o, className: u, "data-testid": e, children: i });
|
|
1028
1028
|
};
|
|
1029
|
-
|
|
1030
|
-
const
|
|
1029
|
+
Q.displayName = "Paragraph";
|
|
1030
|
+
const Ot = {
|
|
1031
1031
|
"purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
|
|
1032
1032
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
|
|
1033
|
-
},
|
|
1033
|
+
}, dr = y.bind(Ot), cr = "purpur-card-feature-list", Bt = ({
|
|
1034
1034
|
["data-testid"]: e = "purpur-card-feature-list",
|
|
1035
1035
|
listItems: i
|
|
1036
|
-
}) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className:
|
|
1036
|
+
}) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className: dr(cr), "data-testid": e, children: i.map((a) => /* @__PURE__ */ _(
|
|
1037
1037
|
"li",
|
|
1038
1038
|
{
|
|
1039
|
-
className:
|
|
1039
|
+
className: dr(`${cr}__list-item`),
|
|
1040
1040
|
"data-testid": `${e}-item`,
|
|
1041
1041
|
children: [
|
|
1042
|
-
/* @__PURE__ */ l(
|
|
1043
|
-
/* @__PURE__ */ l(
|
|
1042
|
+
/* @__PURE__ */ l(Er, { size: "xs" }),
|
|
1043
|
+
/* @__PURE__ */ l(Q, { children: a })
|
|
1044
1044
|
]
|
|
1045
1045
|
},
|
|
1046
1046
|
a
|
|
1047
|
-
)) }) : null,
|
|
1047
|
+
)) }) : null, Ft = {
|
|
1048
1048
|
"purpur-card-link-arrow": "_purpur-card-link-arrow_1r4zu_1",
|
|
1049
1049
|
"purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_1r4zu_33",
|
|
1050
1050
|
"purpur-card-link-arrow--icon-only": "_purpur-card-link-arrow--icon-only_1r4zu_36",
|
|
@@ -1058,7 +1058,7 @@ const At = {
|
|
|
1058
1058
|
"purpur-card-link-arrow--secondary-negative": "_purpur-card-link-arrow--secondary-negative_1r4zu_87",
|
|
1059
1059
|
"purpur-card-link-arrow--expressive": "_purpur-card-link-arrow--expressive_1r4zu_98",
|
|
1060
1060
|
"purpur-card-link-arrow--expressive-negative": "_purpur-card-link-arrow--expressive-negative_1r4zu_108"
|
|
1061
|
-
},
|
|
1061
|
+
}, Mt = y.bind(Ft), N = "purpur-card-link-arrow", Nt = ({
|
|
1062
1062
|
["data-testid"]: e = "purpur-card-link-arrow",
|
|
1063
1063
|
className: i,
|
|
1064
1064
|
disabled: a = !1,
|
|
@@ -1067,76 +1067,76 @@ const At = {
|
|
|
1067
1067
|
}) => /* @__PURE__ */ l(
|
|
1068
1068
|
"div",
|
|
1069
1069
|
{
|
|
1070
|
-
className: `${
|
|
1071
|
-
|
|
1070
|
+
className: `${Mt([
|
|
1071
|
+
N,
|
|
1072
1072
|
i,
|
|
1073
|
-
`${
|
|
1074
|
-
`${
|
|
1075
|
-
`${
|
|
1073
|
+
`${N}--md`,
|
|
1074
|
+
`${N}--icon-only`,
|
|
1075
|
+
`${N}--secondary`,
|
|
1076
1076
|
{
|
|
1077
|
-
[`${
|
|
1077
|
+
[`${N}--disabled`]: a
|
|
1078
1078
|
}
|
|
1079
|
-
])} ${
|
|
1079
|
+
])} ${N}`,
|
|
1080
1080
|
"data-testid": e,
|
|
1081
1081
|
...p,
|
|
1082
|
-
children: n ? /* @__PURE__ */ l(
|
|
1082
|
+
children: n ? /* @__PURE__ */ l(Fr, { "data-testid": `${e}-spinner`, size: "xs", disabled: a }) : /* @__PURE__ */ l(Nr, { "data-testid": `${e}-arrow`, size: "md" })
|
|
1083
1083
|
}
|
|
1084
|
-
),
|
|
1084
|
+
), Et = {
|
|
1085
1085
|
"purpur-card-overline": "_purpur-card-overline_192fe_1"
|
|
1086
|
-
},
|
|
1086
|
+
}, Gt = y.bind(Et), Zt = "purpur-card-overline", It = ({
|
|
1087
1087
|
["data-testid"]: e = "purpur-card-overline",
|
|
1088
1088
|
overline: i
|
|
1089
|
-
}) => i ? /* @__PURE__ */ l(
|
|
1089
|
+
}) => i ? /* @__PURE__ */ l(Q, { className: Gt(Zt), "data-testid": e, children: i }) : null, jt = {
|
|
1090
1090
|
"purpur-card-root": "_purpur-card-root_bqk1d_1",
|
|
1091
1091
|
"purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
|
|
1092
1092
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
|
|
1093
1093
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_bqk1d_14"
|
|
1094
|
-
},
|
|
1094
|
+
}, Ut = {
|
|
1095
1095
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_1sp43_1",
|
|
1096
1096
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_1sp43_6",
|
|
1097
1097
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_1sp43_11"
|
|
1098
1098
|
};
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1099
|
+
function G() {
|
|
1100
|
+
return G = Object.assign ? Object.assign.bind() : function(e) {
|
|
1101
1101
|
for (var i = 1; i < arguments.length; i++) {
|
|
1102
1102
|
var a = arguments[i];
|
|
1103
1103
|
for (var n in a) ({}).hasOwnProperty.call(a, n) && (e[n] = a[n]);
|
|
1104
1104
|
}
|
|
1105
1105
|
return e;
|
|
1106
|
-
},
|
|
1106
|
+
}, G.apply(null, arguments);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Lt(e, i) {
|
|
1109
1109
|
typeof e == "function" ? e(i) : e != null && (e.current = i);
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function Rt(...e) {
|
|
1112
1112
|
return (i) => e.forEach(
|
|
1113
|
-
(a) =>
|
|
1113
|
+
(a) => Lt(a, i)
|
|
1114
1114
|
);
|
|
1115
1115
|
}
|
|
1116
|
-
const
|
|
1117
|
-
const { children: a, ...n } = e, p = D.toArray(a), r = p.find(
|
|
1116
|
+
const Zr = /* @__PURE__ */ S((e, i) => {
|
|
1117
|
+
const { children: a, ...n } = e, p = D.toArray(a), r = p.find(Pt);
|
|
1118
1118
|
if (r) {
|
|
1119
1119
|
const t = r.props.children, o = p.map((u) => u === r ? D.count(t) > 1 ? D.only(null) : /* @__PURE__ */ H(t) ? t.props.children : null : u);
|
|
1120
|
-
return /* @__PURE__ */
|
|
1120
|
+
return /* @__PURE__ */ P(K, G({}, n, {
|
|
1121
1121
|
ref: i
|
|
1122
|
-
}), /* @__PURE__ */ H(t) ? /* @__PURE__ */
|
|
1122
|
+
}), /* @__PURE__ */ H(t) ? /* @__PURE__ */ vr(t, void 0, o) : null);
|
|
1123
1123
|
}
|
|
1124
|
-
return /* @__PURE__ */
|
|
1124
|
+
return /* @__PURE__ */ P(K, G({}, n, {
|
|
1125
1125
|
ref: i
|
|
1126
1126
|
}), a);
|
|
1127
1127
|
});
|
|
1128
|
-
|
|
1129
|
-
const
|
|
1128
|
+
Zr.displayName = "Slot";
|
|
1129
|
+
const K = /* @__PURE__ */ S((e, i) => {
|
|
1130
1130
|
const { children: a, ...n } = e;
|
|
1131
|
-
return /* @__PURE__ */ H(a) ? /* @__PURE__ */
|
|
1131
|
+
return /* @__PURE__ */ H(a) ? /* @__PURE__ */ vr(a, {
|
|
1132
1132
|
...qt(n, a.props),
|
|
1133
|
-
ref: i ?
|
|
1133
|
+
ref: i ? Rt(i, a.ref) : a.ref
|
|
1134
1134
|
}) : D.count(a) > 1 ? D.only(null) : null;
|
|
1135
1135
|
});
|
|
1136
|
-
|
|
1137
|
-
const
|
|
1138
|
-
function
|
|
1139
|
-
return /* @__PURE__ */ H(e) && e.type ===
|
|
1136
|
+
K.displayName = "SlotClone";
|
|
1137
|
+
const Dt = ({ children: e }) => /* @__PURE__ */ P(qr, null, e);
|
|
1138
|
+
function Pt(e) {
|
|
1139
|
+
return /* @__PURE__ */ H(e) && e.type === Dt;
|
|
1140
1140
|
}
|
|
1141
1141
|
function qt(e, i) {
|
|
1142
1142
|
const a = {
|
|
@@ -1159,7 +1159,7 @@ function qt(e, i) {
|
|
|
1159
1159
|
...a
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
|
-
const
|
|
1162
|
+
const Tt = [
|
|
1163
1163
|
"a",
|
|
1164
1164
|
"button",
|
|
1165
1165
|
"div",
|
|
@@ -1176,12 +1176,12 @@ const Pt = [
|
|
|
1176
1176
|
"span",
|
|
1177
1177
|
"svg",
|
|
1178
1178
|
"ul"
|
|
1179
|
-
],
|
|
1179
|
+
], zt = Tt.reduce((e, i) => {
|
|
1180
1180
|
const a = /* @__PURE__ */ S((n, p) => {
|
|
1181
|
-
const { asChild: r, ...t } = n, o = r ?
|
|
1182
|
-
return
|
|
1181
|
+
const { asChild: r, ...t } = n, o = r ? Zr : i;
|
|
1182
|
+
return Pr(() => {
|
|
1183
1183
|
window[Symbol.for("radix-ui")] = !0;
|
|
1184
|
-
}, []), /* @__PURE__ */
|
|
1184
|
+
}, []), /* @__PURE__ */ P(o, G({}, t, {
|
|
1185
1185
|
ref: p
|
|
1186
1186
|
}));
|
|
1187
1187
|
});
|
|
@@ -1189,7 +1189,7 @@ const Pt = [
|
|
|
1189
1189
|
...e,
|
|
1190
1190
|
[i]: a
|
|
1191
1191
|
};
|
|
1192
|
-
}, {}),
|
|
1192
|
+
}, {}), Ht = /* @__PURE__ */ S((e, i) => /* @__PURE__ */ P(zt.span, G({}, e, {
|
|
1193
1193
|
ref: i,
|
|
1194
1194
|
style: {
|
|
1195
1195
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -1205,12 +1205,12 @@ const Pt = [
|
|
|
1205
1205
|
wordWrap: "normal",
|
|
1206
1206
|
...e.style
|
|
1207
1207
|
}
|
|
1208
|
-
}))),
|
|
1208
|
+
}))), Vt = Ht, _r = ({
|
|
1209
1209
|
asChild: e,
|
|
1210
1210
|
children: i,
|
|
1211
1211
|
className: a = "",
|
|
1212
1212
|
["data-testid"]: n
|
|
1213
|
-
}) => /* @__PURE__ */ l(
|
|
1213
|
+
}) => /* @__PURE__ */ l(Vt, { asChild: e, "data-testid": n, className: a, children: i }), fr = y.bind(Ut), B = "purpur-card-trigger-item", Wt = ({
|
|
1214
1214
|
["data-testid"]: e = "purpur-card-trigger-item",
|
|
1215
1215
|
disabled: i = !1,
|
|
1216
1216
|
href: a,
|
|
@@ -1226,7 +1226,7 @@ const Pt = [
|
|
|
1226
1226
|
"a",
|
|
1227
1227
|
{
|
|
1228
1228
|
"aria-disabled": i,
|
|
1229
|
-
className: `${
|
|
1229
|
+
className: `${fr([
|
|
1230
1230
|
B,
|
|
1231
1231
|
{
|
|
1232
1232
|
[`${B}--disabled`]: i
|
|
@@ -1235,14 +1235,14 @@ const Pt = [
|
|
|
1235
1235
|
"data-testid": e,
|
|
1236
1236
|
href: i ? void 0 : a,
|
|
1237
1237
|
tabIndex: i ? 0 : void 0,
|
|
1238
|
-
children: /* @__PURE__ */ l(
|
|
1238
|
+
children: /* @__PURE__ */ l(_r, { children: p })
|
|
1239
1239
|
}
|
|
1240
1240
|
)
|
|
1241
1241
|
) : /* @__PURE__ */ l(
|
|
1242
1242
|
"button",
|
|
1243
1243
|
{
|
|
1244
1244
|
"aria-disabled": i,
|
|
1245
|
-
className: `${
|
|
1245
|
+
className: `${fr([
|
|
1246
1246
|
B,
|
|
1247
1247
|
`${B}--button`,
|
|
1248
1248
|
{
|
|
@@ -1252,10 +1252,10 @@ const Pt = [
|
|
|
1252
1252
|
"data-testid": e,
|
|
1253
1253
|
type: "button",
|
|
1254
1254
|
onClick: r,
|
|
1255
|
-
children: /* @__PURE__ */ l(
|
|
1255
|
+
children: /* @__PURE__ */ l(_r, { children: p })
|
|
1256
1256
|
}
|
|
1257
1257
|
);
|
|
1258
|
-
},
|
|
1258
|
+
}, Xt = y.bind(jt), W = "purpur-card-root", Ir = S(
|
|
1259
1259
|
({
|
|
1260
1260
|
["data-testid"]: e = "purpur-card-root",
|
|
1261
1261
|
children: i,
|
|
@@ -1268,18 +1268,18 @@ const Pt = [
|
|
|
1268
1268
|
variant: u,
|
|
1269
1269
|
...c
|
|
1270
1270
|
}, g) => {
|
|
1271
|
-
const C =
|
|
1272
|
-
|
|
1271
|
+
const C = Xt([
|
|
1272
|
+
W,
|
|
1273
1273
|
a,
|
|
1274
1274
|
{
|
|
1275
|
-
[`${
|
|
1276
|
-
[`${
|
|
1275
|
+
[`${W}--${u}`]: u,
|
|
1276
|
+
[`${W}--full-height`]: p
|
|
1277
1277
|
}
|
|
1278
1278
|
]);
|
|
1279
1279
|
return /* @__PURE__ */ _("div", { className: C, "data-testid": e, ref: g, ...c, children: [
|
|
1280
1280
|
i,
|
|
1281
1281
|
(t || r) && o && /* @__PURE__ */ l(
|
|
1282
|
-
|
|
1282
|
+
Wt,
|
|
1283
1283
|
{
|
|
1284
1284
|
disabled: n,
|
|
1285
1285
|
href: r,
|
|
@@ -1290,30 +1290,30 @@ const Pt = [
|
|
|
1290
1290
|
] });
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
|
-
|
|
1294
|
-
const
|
|
1295
|
-
const n =
|
|
1296
|
-
|
|
1293
|
+
Ir.displayName = "CardRoot";
|
|
1294
|
+
const gr = y.bind(ke), X = "purpur-card", w = ({ children: e, className: i, ...a }) => {
|
|
1295
|
+
const n = gr([
|
|
1296
|
+
X,
|
|
1297
1297
|
i,
|
|
1298
1298
|
{
|
|
1299
|
-
[`${
|
|
1300
|
-
[`${
|
|
1299
|
+
[`${X}--is-interactive`]: a.onClick || a.href,
|
|
1300
|
+
[`${X}--disabled`]: a.disabled
|
|
1301
1301
|
}
|
|
1302
1302
|
]);
|
|
1303
|
-
return /* @__PURE__ */ l(
|
|
1303
|
+
return /* @__PURE__ */ l(Ir, { className: gr(n), ...a, children: e });
|
|
1304
1304
|
};
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
function
|
|
1305
|
+
w.Badge = Ye;
|
|
1306
|
+
w.LinkArrow = Nt;
|
|
1307
|
+
w.Content = et;
|
|
1308
|
+
w.ContentContainer = it;
|
|
1309
|
+
w.Cta = ct;
|
|
1310
|
+
w.FeatureList = Bt;
|
|
1311
|
+
w.Overline = It;
|
|
1312
|
+
w.displayName = "Card";
|
|
1313
|
+
function Kt(e) {
|
|
1314
1314
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1315
1315
|
}
|
|
1316
|
-
var
|
|
1316
|
+
var jr = { exports: {} };
|
|
1317
1317
|
/*!
|
|
1318
1318
|
Copyright (c) 2018 Jed Watson.
|
|
1319
1319
|
Licensed under the MIT License (MIT), see
|
|
@@ -1348,9 +1348,9 @@ var Ir = { exports: {} };
|
|
|
1348
1348
|
}
|
|
1349
1349
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1350
1350
|
})();
|
|
1351
|
-
})(
|
|
1352
|
-
var
|
|
1353
|
-
const
|
|
1351
|
+
})(jr);
|
|
1352
|
+
var Yt = jr.exports;
|
|
1353
|
+
const Jt = /* @__PURE__ */ Kt(Yt), Qt = {
|
|
1354
1354
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
1355
1355
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
1356
1356
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -1358,46 +1358,46 @@ const Yt = /* @__PURE__ */ Xt(Kt), Jt = {
|
|
|
1358
1358
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
1359
1359
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
1360
1360
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
1361
|
-
},
|
|
1361
|
+
}, ra = {
|
|
1362
1362
|
name: "arrow-left",
|
|
1363
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>',
|
|
1364
1364
|
keywords: ["arrow-left"],
|
|
1365
1365
|
category: "utility"
|
|
1366
|
-
},
|
|
1366
|
+
}, ea = {
|
|
1367
1367
|
name: "arrow-right",
|
|
1368
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>',
|
|
1369
1369
|
keywords: ["arrow-right"],
|
|
1370
1370
|
category: "utility"
|
|
1371
|
-
},
|
|
1371
|
+
}, ta = {
|
|
1372
1372
|
name: "external",
|
|
1373
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>',
|
|
1374
1374
|
keywords: ["external"],
|
|
1375
1375
|
category: "media"
|
|
1376
|
-
},
|
|
1376
|
+
}, aa = {
|
|
1377
1377
|
name: "phone",
|
|
1378
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>',
|
|
1379
1379
|
keywords: ["phone"],
|
|
1380
1380
|
category: "device"
|
|
1381
|
-
},
|
|
1381
|
+
}, ia = Jt.bind(Qt), hr = "purpur-icon", oa = "md", na = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), pa = ({ content: e = "", title: i } = {}) => {
|
|
1382
1382
|
const a = [
|
|
1383
1383
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1384
1384
|
{ name: "fill", value: "currentColor" },
|
|
1385
1385
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
1386
1386
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1387
1387
|
], n = i ? `<title>${i}</title>` : "";
|
|
1388
|
-
return `<svg ${
|
|
1389
|
-
},
|
|
1388
|
+
return `<svg ${na(a)}>${n}${e}</svg>`;
|
|
1389
|
+
}, la = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Y = ({
|
|
1390
1390
|
["data-testid"]: e,
|
|
1391
1391
|
svg: i,
|
|
1392
1392
|
allyTitle: a,
|
|
1393
1393
|
className: n,
|
|
1394
|
-
size: p =
|
|
1394
|
+
size: p = oa,
|
|
1395
1395
|
...r
|
|
1396
1396
|
}) => {
|
|
1397
|
-
const t =
|
|
1398
|
-
content:
|
|
1397
|
+
const t = pa({
|
|
1398
|
+
content: la(i.svg),
|
|
1399
1399
|
title: a
|
|
1400
|
-
}), o =
|
|
1400
|
+
}), o = ia(n, hr, `${hr}--${p}`);
|
|
1401
1401
|
return /* @__PURE__ */ l(
|
|
1402
1402
|
"span",
|
|
1403
1403
|
{
|
|
@@ -1409,11 +1409,11 @@ const Yt = /* @__PURE__ */ Xt(Kt), Jt = {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
);
|
|
1411
1411
|
};
|
|
1412
|
-
|
|
1413
|
-
function
|
|
1412
|
+
Y.displayName = "Icon";
|
|
1413
|
+
function ua(e) {
|
|
1414
1414
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1415
1415
|
}
|
|
1416
|
-
var
|
|
1416
|
+
var Ur = { exports: {} };
|
|
1417
1417
|
/*!
|
|
1418
1418
|
Copyright (c) 2018 Jed Watson.
|
|
1419
1419
|
Licensed under the MIT License (MIT), see
|
|
@@ -1448,9 +1448,9 @@ var jr = { exports: {} };
|
|
|
1448
1448
|
}
|
|
1449
1449
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1450
1450
|
})();
|
|
1451
|
-
})(
|
|
1452
|
-
var
|
|
1453
|
-
const
|
|
1451
|
+
})(Ur);
|
|
1452
|
+
var sa = Ur.exports;
|
|
1453
|
+
const da = /* @__PURE__ */ ua(sa), ca = {
|
|
1454
1454
|
"purpur-cta-link": "_purpur-cta-link_1mhg7_1",
|
|
1455
1455
|
"purpur-cta-link--sm": "_purpur-cta-link--sm_1mhg7_33",
|
|
1456
1456
|
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1mhg7_36",
|
|
@@ -1464,12 +1464,12 @@ const sa = /* @__PURE__ */ la(ua), da = {
|
|
|
1464
1464
|
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1mhg7_87",
|
|
1465
1465
|
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1mhg7_98",
|
|
1466
1466
|
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1mhg7_108"
|
|
1467
|
-
},
|
|
1468
|
-
forward:
|
|
1469
|
-
external:
|
|
1470
|
-
back:
|
|
1471
|
-
phone:
|
|
1472
|
-
},
|
|
1467
|
+
}, _a = da.bind(ca), E = "purpur-cta-link", fa = {
|
|
1468
|
+
forward: ea,
|
|
1469
|
+
external: ta,
|
|
1470
|
+
back: ra,
|
|
1471
|
+
phone: aa
|
|
1472
|
+
}, ga = S(
|
|
1473
1473
|
({
|
|
1474
1474
|
children: e,
|
|
1475
1475
|
className: i,
|
|
@@ -1482,34 +1482,34 @@ const sa = /* @__PURE__ */ la(ua), da = {
|
|
|
1482
1482
|
icon: u = "forward",
|
|
1483
1483
|
...c
|
|
1484
1484
|
}, g) => {
|
|
1485
|
-
const C =
|
|
1485
|
+
const C = _a(
|
|
1486
1486
|
[
|
|
1487
1487
|
i,
|
|
1488
|
-
|
|
1489
|
-
`${
|
|
1490
|
-
`${
|
|
1488
|
+
E,
|
|
1489
|
+
`${E}--${r ? `${o}-negative` : o}`,
|
|
1490
|
+
`${E}--${t}`
|
|
1491
1491
|
],
|
|
1492
1492
|
{
|
|
1493
|
-
[`${
|
|
1494
|
-
[`${
|
|
1495
|
-
[`${
|
|
1493
|
+
[`${E}--icon-only`]: p,
|
|
1494
|
+
[`${E}--negative`]: r,
|
|
1495
|
+
[`${E}--full-width`]: n
|
|
1496
1496
|
}
|
|
1497
|
-
), d =
|
|
1498
|
-
(u === "back" || u === "phone") && /* @__PURE__ */ l(
|
|
1497
|
+
), d = fa[u], F = /* @__PURE__ */ _(mr, { children: [
|
|
1498
|
+
(u === "back" || u === "phone") && /* @__PURE__ */ l(Y, { svg: d, size: t === "lg" ? "sm" : "xs" }),
|
|
1499
1499
|
!p && e,
|
|
1500
|
-
(u === "forward" || u === "external") && /* @__PURE__ */ l(
|
|
1501
|
-
] }),
|
|
1500
|
+
(u === "forward" || u === "external") && /* @__PURE__ */ l(Y, { svg: d, size: t === "lg" ? "sm" : "xs" })
|
|
1501
|
+
] }), x = {
|
|
1502
1502
|
...c,
|
|
1503
1503
|
className: C,
|
|
1504
1504
|
"data-testid": a
|
|
1505
1505
|
};
|
|
1506
|
-
return "href" in c && c.href ? /* @__PURE__ */ l("a", { ...
|
|
1506
|
+
return "href" in c && c.href ? /* @__PURE__ */ l("a", { ...x, ref: g, children: F }) : /* @__PURE__ */ l("span", { ...x, ref: g, children: F });
|
|
1507
1507
|
}
|
|
1508
1508
|
);
|
|
1509
|
-
function
|
|
1509
|
+
function ha(e) {
|
|
1510
1510
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1511
1511
|
}
|
|
1512
|
-
var
|
|
1512
|
+
var Lr = { exports: {} };
|
|
1513
1513
|
/*!
|
|
1514
1514
|
Copyright (c) 2018 Jed Watson.
|
|
1515
1515
|
Licensed under the MIT License (MIT), see
|
|
@@ -1544,9 +1544,9 @@ var Ur = { exports: {} };
|
|
|
1544
1544
|
}
|
|
1545
1545
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1546
1546
|
})();
|
|
1547
|
-
})(
|
|
1548
|
-
var
|
|
1549
|
-
const
|
|
1547
|
+
})(Lr);
|
|
1548
|
+
var ma = Lr.exports;
|
|
1549
|
+
const va = /* @__PURE__ */ ha(ma), T = {
|
|
1550
1550
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
1551
1551
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
1552
1552
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -1562,7 +1562,7 @@ const ma = /* @__PURE__ */ ga(ha), T = {
|
|
|
1562
1562
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
1563
1563
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
1564
1564
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
1565
|
-
},
|
|
1565
|
+
}, ya = {
|
|
1566
1566
|
TITLE100: "title-100",
|
|
1567
1567
|
TITLE200: "title-200",
|
|
1568
1568
|
TITLE300: "title-300",
|
|
@@ -1571,17 +1571,17 @@ const ma = /* @__PURE__ */ ga(ha), T = {
|
|
|
1571
1571
|
TITLE600: "title-600",
|
|
1572
1572
|
TITLE700: "title-700",
|
|
1573
1573
|
SUBSECTION100: "subsection-100"
|
|
1574
|
-
}, z = "purpur-heading",
|
|
1574
|
+
}, z = "purpur-heading", Rr = ({
|
|
1575
1575
|
["data-testid"]: e,
|
|
1576
1576
|
children: i,
|
|
1577
1577
|
className: a = "",
|
|
1578
1578
|
enableHyphenation: n = !1,
|
|
1579
1579
|
negative: p = !1,
|
|
1580
1580
|
tag: r,
|
|
1581
|
-
variant: t =
|
|
1581
|
+
variant: t = ya.TITLE100,
|
|
1582
1582
|
...o
|
|
1583
1583
|
}) => {
|
|
1584
|
-
const u = r, c =
|
|
1584
|
+
const u = r, c = va([
|
|
1585
1585
|
a,
|
|
1586
1586
|
T[z],
|
|
1587
1587
|
T[`${z}--${t}`],
|
|
@@ -1592,11 +1592,11 @@ const ma = /* @__PURE__ */ ga(ha), T = {
|
|
|
1592
1592
|
]);
|
|
1593
1593
|
return /* @__PURE__ */ l(u, { ...o, className: c, "data-testid": e, children: i });
|
|
1594
1594
|
};
|
|
1595
|
-
|
|
1596
|
-
function
|
|
1595
|
+
Rr.displayName = "Heading";
|
|
1596
|
+
function xa(e) {
|
|
1597
1597
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1599
|
+
var Dr = { exports: {} };
|
|
1600
1600
|
/*!
|
|
1601
1601
|
Copyright (c) 2018 Jed Watson.
|
|
1602
1602
|
Licensed under the MIT License (MIT), see
|
|
@@ -1631,9 +1631,9 @@ var Rr = { exports: {} };
|
|
|
1631
1631
|
}
|
|
1632
1632
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1633
1633
|
})();
|
|
1634
|
-
})(
|
|
1635
|
-
var
|
|
1636
|
-
const
|
|
1634
|
+
})(Dr);
|
|
1635
|
+
var wa = Dr.exports;
|
|
1636
|
+
const ba = /* @__PURE__ */ xa(wa), $a = {
|
|
1637
1637
|
"purpur-promotion-card": "_purpur-promotion-card_12rh3_1",
|
|
1638
1638
|
"purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_12rh3_8",
|
|
1639
1639
|
"purpur-promotion-card__content": "_purpur-promotion-card__content_12rh3_8",
|
|
@@ -1651,19 +1651,19 @@ const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
|
1651
1651
|
"purpur-promotion-card__image-wrapper": "_purpur-promotion-card__image-wrapper_12rh3_140",
|
|
1652
1652
|
"purpur-promotion-card__image-wrapper--decorative": "_purpur-promotion-card__image-wrapper--decorative_12rh3_143",
|
|
1653
1653
|
"purpur-promotion-card__image-wrapper--product": "_purpur-promotion-card__image-wrapper--product_12rh3_144"
|
|
1654
|
-
},
|
|
1654
|
+
}, Ea = ["primary", "secondary", "quaternary"], Sa = {
|
|
1655
1655
|
primary: "var(--purpur-color-background-tone-on-tone-primary)",
|
|
1656
1656
|
secondary: "var(--purpur-color-background-tone-on-tone-secondary)",
|
|
1657
1657
|
quaternary: "var(--purpur-color-background-tone-on-tone-quaternary)"
|
|
1658
|
-
},
|
|
1658
|
+
}, Ca = {
|
|
1659
1659
|
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>')`,
|
|
1660
1660
|
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>')`,
|
|
1661
1661
|
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>')`
|
|
1662
|
-
},
|
|
1662
|
+
}, ka = {
|
|
1663
1663
|
primary: "var(--purpur-color-text-tone-on-tone-primary)",
|
|
1664
1664
|
secondary: "var(--purpur-color-text-tone-on-tone-secondary)",
|
|
1665
1665
|
quaternary: "var(--purpur-color-text-tone-on-tone-tertiary)"
|
|
1666
|
-
}, f =
|
|
1666
|
+
}, f = ba.bind($a), s = "purpur-promotion-card", Aa = ({
|
|
1667
1667
|
["data-testid"]: e,
|
|
1668
1668
|
variant: i = "primary",
|
|
1669
1669
|
badgeText: a,
|
|
@@ -1678,28 +1678,28 @@ const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
|
1678
1678
|
style: C,
|
|
1679
1679
|
...d
|
|
1680
1680
|
}, F) => {
|
|
1681
|
-
let
|
|
1681
|
+
let x = d, h, k;
|
|
1682
1682
|
if ("decorativeImage" in d) {
|
|
1683
|
-
const { hasGradient: m, decorativeImage:
|
|
1684
|
-
h =
|
|
1683
|
+
const { hasGradient: m, decorativeImage: v, ...M } = d;
|
|
1684
|
+
h = v, k = m, x = M;
|
|
1685
1685
|
} else if ("productImage" in d) {
|
|
1686
|
-
const { hasGradient: m, productImage:
|
|
1687
|
-
h =
|
|
1686
|
+
const { hasGradient: m, productImage: v, ...M } = d;
|
|
1687
|
+
h = v, k = m, x = M;
|
|
1688
1688
|
} else if ("hasGradient" in d) {
|
|
1689
|
-
const { hasGradient: m, ...
|
|
1690
|
-
k = m,
|
|
1689
|
+
const { hasGradient: m, ...v } = d;
|
|
1690
|
+
k = m, x = v;
|
|
1691
1691
|
}
|
|
1692
|
-
const
|
|
1693
|
-
"--promotion-card-background":
|
|
1694
|
-
"--promotion-card-color":
|
|
1695
|
-
"--promotion-card-background-image":
|
|
1692
|
+
const q = {
|
|
1693
|
+
"--promotion-card-background": Sa[i],
|
|
1694
|
+
"--promotion-card-color": ka[i],
|
|
1695
|
+
"--promotion-card-background-image": Ca[i]
|
|
1696
1696
|
};
|
|
1697
|
-
return /* @__PURE__ */ l(
|
|
1697
|
+
return /* @__PURE__ */ l(w, { ref: F, className: f(`${s}__card`), children: /* @__PURE__ */ _(
|
|
1698
1698
|
"div",
|
|
1699
1699
|
{
|
|
1700
1700
|
"data-testid": e,
|
|
1701
1701
|
style: {
|
|
1702
|
-
...
|
|
1702
|
+
...q,
|
|
1703
1703
|
...C
|
|
1704
1704
|
},
|
|
1705
1705
|
className: f([
|
|
@@ -1711,7 +1711,7 @@ const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
|
1711
1711
|
[`${s}--without-image`]: !h
|
|
1712
1712
|
}
|
|
1713
1713
|
]),
|
|
1714
|
-
...
|
|
1714
|
+
...x,
|
|
1715
1715
|
children: [
|
|
1716
1716
|
/* @__PURE__ */ _(
|
|
1717
1717
|
"div",
|
|
@@ -1724,13 +1724,13 @@ const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
]),
|
|
1726
1726
|
children: [
|
|
1727
|
-
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: f(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(
|
|
1727
|
+
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: f(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(se, { variant: i === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1728
1728
|
n && n,
|
|
1729
1729
|
a
|
|
1730
1730
|
] }) }),
|
|
1731
1731
|
/* @__PURE__ */ _("div", { className: f(`${s}__main-content`), children: [
|
|
1732
1732
|
/* @__PURE__ */ l(
|
|
1733
|
-
|
|
1733
|
+
Rr,
|
|
1734
1734
|
{
|
|
1735
1735
|
tag: r,
|
|
1736
1736
|
variant: t,
|
|
@@ -1742,21 +1742,23 @@ const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
|
1742
1742
|
/* @__PURE__ */ _("div", { className: f(`${s}__body`), children: [
|
|
1743
1743
|
/* @__PURE__ */ l("div", { className: f(`${s}__child-content`), children: g }),
|
|
1744
1744
|
c && c.length > 0 && /* @__PURE__ */ l("div", { className: f(`${s}__actions`), children: c.map(
|
|
1745
|
-
({ label: m,
|
|
1746
|
-
|
|
1745
|
+
({ label: m, variant: v, iconOnly: M = void 0, ...V }, rr) => Oa(V) ? /* @__PURE__ */ l(
|
|
1746
|
+
ga,
|
|
1747
1747
|
{
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
negative:
|
|
1748
|
+
iconOnly: M,
|
|
1749
|
+
variant: v ?? rr === 0 ? "primary" : "secondary",
|
|
1750
|
+
negative: v === "primary",
|
|
1751
|
+
...V,
|
|
1751
1752
|
children: m
|
|
1752
1753
|
},
|
|
1753
1754
|
m
|
|
1754
1755
|
) : /* @__PURE__ */ l(
|
|
1755
|
-
|
|
1756
|
+
Sr,
|
|
1756
1757
|
{
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
negative:
|
|
1758
|
+
iconOnly: M,
|
|
1759
|
+
variant: v ?? rr === 0 ? "primary" : "secondary",
|
|
1760
|
+
negative: v === "primary",
|
|
1761
|
+
...V,
|
|
1760
1762
|
children: m
|
|
1761
1763
|
},
|
|
1762
1764
|
m
|
|
@@ -1792,10 +1794,10 @@ const wa = /* @__PURE__ */ ya(xa), ba = {
|
|
|
1792
1794
|
]
|
|
1793
1795
|
}
|
|
1794
1796
|
) });
|
|
1795
|
-
},
|
|
1796
|
-
|
|
1797
|
+
}, Oa = (e) => "href" in e, Ba = S(Aa);
|
|
1798
|
+
Ba.displayName = "PromotionCard";
|
|
1797
1799
|
export {
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
+
Ba as PromotionCard,
|
|
1801
|
+
Ea as promotionCardVariants
|
|
1800
1802
|
};
|
|
1801
1803
|
//# sourceMappingURL=promotion-card.es.js.map
|