@purpurds/promotion-card 5.20.0 → 5.21.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.es.js +182 -178
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +16 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as g, jsx as l, Fragment as
|
|
2
|
-
import { forwardRef as O, Children as L, isValidElement as z, createElement as R, cloneElement as
|
|
1
|
+
import { jsxs as g, jsx as l, Fragment as gr } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, Children as L, isValidElement as z, createElement as R, cloneElement as hr, useEffect as Lr, Fragment as Rr } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function
|
|
4
|
+
function Dr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var mr = { exports: {} };
|
|
8
8
|
/*!
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
@@ -39,9 +39,9 @@ var hr = { exports: {} };
|
|
|
39
39
|
}
|
|
40
40
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
43
|
-
var
|
|
44
|
-
const
|
|
42
|
+
})(mr);
|
|
43
|
+
var Pr = mr.exports;
|
|
44
|
+
const Tr = /* @__PURE__ */ Dr(Pr), zr = {
|
|
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 Dr = /* @__PURE__ */ Lr(Rr), Pr = {
|
|
|
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
|
+
}, Hr = {
|
|
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
|
+
}, Vr = {
|
|
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
|
+
}, Wr = {
|
|
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
|
+
}, Xr = {
|
|
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
|
+
}, Kr = {
|
|
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
|
+
}, Yr = {
|
|
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
|
+
}, Jr = {
|
|
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
|
+
}, Qr = Tr.bind(zr), Q = "purpur-icon", re = "md", ee = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), te = ({ 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 ${ee(a)}>${n}${e}</svg>`;
|
|
95
|
+
}, ae = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), vr = ({
|
|
96
96
|
["data-testid"]: e,
|
|
97
97
|
svg: i,
|
|
98
98
|
allyTitle: a,
|
|
99
99
|
className: n,
|
|
100
|
-
size: p =
|
|
100
|
+
size: p = re,
|
|
101
101
|
...r
|
|
102
102
|
}) => {
|
|
103
|
-
const t =
|
|
104
|
-
content:
|
|
103
|
+
const t = te({
|
|
104
|
+
content: ae(i.svg),
|
|
105
105
|
title: a
|
|
106
|
-
}), o =
|
|
106
|
+
}), o = Qr(n, Q, `${Q}--${p}`);
|
|
107
107
|
return /* @__PURE__ */ l(
|
|
108
108
|
"span",
|
|
109
109
|
{
|
|
@@ -115,10 +115,11 @@ const Dr = /* @__PURE__ */ Lr(Rr), Pr = {
|
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
};
|
|
118
|
-
|
|
118
|
+
vr.displayName = "Icon";
|
|
119
|
+
function ie(e) {
|
|
119
120
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
120
121
|
}
|
|
121
|
-
var
|
|
122
|
+
var yr = { exports: {} };
|
|
122
123
|
/*!
|
|
123
124
|
Copyright (c) 2018 Jed Watson.
|
|
124
125
|
Licensed under the MIT License (MIT), see
|
|
@@ -153,9 +154,9 @@ var mr = { exports: {} };
|
|
|
153
154
|
}
|
|
154
155
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
155
156
|
})();
|
|
156
|
-
})(
|
|
157
|
-
var
|
|
158
|
-
const
|
|
157
|
+
})(yr);
|
|
158
|
+
var oe = yr.exports;
|
|
159
|
+
const ne = /* @__PURE__ */ ie(oe), rr = {
|
|
159
160
|
"purpur-badge": "_purpur-badge_1r1mu_1",
|
|
160
161
|
"purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
|
|
161
162
|
"purpur-badge--special": "_purpur-badge--special_1r1mu_17",
|
|
@@ -165,7 +166,7 @@ const oe = /* @__PURE__ */ ae(ie), J = {
|
|
|
165
166
|
"purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
|
|
166
167
|
"purpur-badge--error": "_purpur-badge--error_1r1mu_37",
|
|
167
168
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
|
|
168
|
-
},
|
|
169
|
+
}, er = "purpur-badge", b = {
|
|
169
170
|
ATTENTION: "attention",
|
|
170
171
|
SPECIAL: "special",
|
|
171
172
|
NEUTRAL: "neutral",
|
|
@@ -174,27 +175,27 @@ const oe = /* @__PURE__ */ ae(ie), J = {
|
|
|
174
175
|
WARNING: "warning",
|
|
175
176
|
ERROR: "error",
|
|
176
177
|
BLACK_FRIDAY: "black-friday"
|
|
177
|
-
},
|
|
178
|
+
}, pe = (e) => {
|
|
178
179
|
switch (e) {
|
|
179
180
|
case b.ATTENTION:
|
|
180
181
|
case b.SPECIAL:
|
|
181
|
-
return
|
|
182
|
+
return Kr;
|
|
182
183
|
case b.INFORMATION:
|
|
183
|
-
return
|
|
184
|
+
return Xr;
|
|
184
185
|
case b.SUCCESS:
|
|
185
|
-
return
|
|
186
|
+
return Vr;
|
|
186
187
|
case b.WARNING:
|
|
187
|
-
return Tr;
|
|
188
|
-
case b.ERROR:
|
|
189
188
|
return Hr;
|
|
189
|
+
case b.ERROR:
|
|
190
|
+
return Wr;
|
|
190
191
|
case b.NEUTRAL:
|
|
191
|
-
return
|
|
192
|
+
return Yr;
|
|
192
193
|
case b.BLACK_FRIDAY:
|
|
193
|
-
return
|
|
194
|
+
return Jr;
|
|
194
195
|
default:
|
|
195
196
|
return;
|
|
196
197
|
}
|
|
197
|
-
},
|
|
198
|
+
}, le = ({
|
|
198
199
|
children: e,
|
|
199
200
|
showIcon: i = !0,
|
|
200
201
|
variant: a,
|
|
@@ -203,20 +204,20 @@ const oe = /* @__PURE__ */ ae(ie), J = {
|
|
|
203
204
|
className: r = "",
|
|
204
205
|
...t
|
|
205
206
|
}) => {
|
|
206
|
-
const o =
|
|
207
|
+
const o = pe(a), u = ne([r, rr[er], rr[`${er}--${a}`]]);
|
|
207
208
|
return /* @__PURE__ */ g("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
208
|
-
i && o && /* @__PURE__ */ l(
|
|
209
|
+
i && o && /* @__PURE__ */ l(vr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
|
|
209
210
|
e
|
|
210
211
|
] });
|
|
211
|
-
},
|
|
212
|
+
}, ue = {
|
|
212
213
|
SM: "sm",
|
|
213
214
|
MD: "md",
|
|
214
215
|
LG: "lg"
|
|
215
216
|
};
|
|
216
|
-
function
|
|
217
|
+
function se(e) {
|
|
217
218
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
218
219
|
}
|
|
219
|
-
var
|
|
220
|
+
var xr = { exports: {} };
|
|
220
221
|
/*!
|
|
221
222
|
Copyright (c) 2018 Jed Watson.
|
|
222
223
|
Licensed under the MIT License (MIT), see
|
|
@@ -251,42 +252,42 @@ var vr = { exports: {} };
|
|
|
251
252
|
}
|
|
252
253
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
253
254
|
})();
|
|
254
|
-
})(
|
|
255
|
-
var
|
|
256
|
-
const
|
|
255
|
+
})(xr);
|
|
256
|
+
var de = xr.exports;
|
|
257
|
+
const tr = /* @__PURE__ */ se(de), ce = "_rotate_1xozj_1", _e = "_dash_1xozj_1", G = {
|
|
257
258
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
258
|
-
rotate:
|
|
259
|
+
rotate: ce,
|
|
259
260
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
260
261
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
261
262
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
262
263
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
263
264
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
264
265
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
265
|
-
dash:
|
|
266
|
+
dash: _e,
|
|
266
267
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
267
268
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
268
|
-
}, Z = "purpur-spinner",
|
|
269
|
+
}, Z = "purpur-spinner", fe = {
|
|
269
270
|
XXS: "xxs",
|
|
270
271
|
XS: "xs",
|
|
271
272
|
SM: "sm",
|
|
272
273
|
MD: "md",
|
|
273
274
|
LG: "lg"
|
|
274
|
-
},
|
|
275
|
+
}, ge = ({
|
|
275
276
|
["data-testid"]: e,
|
|
276
277
|
disabled: i = !1,
|
|
277
278
|
negative: a = !1,
|
|
278
|
-
size: n =
|
|
279
|
+
size: n = fe.SM,
|
|
279
280
|
...p
|
|
280
281
|
}) => /* @__PURE__ */ l(
|
|
281
282
|
"div",
|
|
282
283
|
{
|
|
283
|
-
className:
|
|
284
|
+
className: tr([G[Z], G[`${Z}--${n}`]]),
|
|
284
285
|
"data-testid": e,
|
|
285
286
|
...p,
|
|
286
287
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
287
288
|
"circle",
|
|
288
289
|
{
|
|
289
|
-
className:
|
|
290
|
+
className: tr(G[`${Z}__circle`], {
|
|
290
291
|
[G[`${Z}__circle--disabled`]]: i,
|
|
291
292
|
[G[`${Z}__circle--negative`]]: a
|
|
292
293
|
}),
|
|
@@ -297,10 +298,10 @@ const rr = /* @__PURE__ */ ue(se), de = "_rotate_1xozj_1", ce = "_dash_1xozj_1",
|
|
|
297
298
|
) })
|
|
298
299
|
}
|
|
299
300
|
);
|
|
300
|
-
function
|
|
301
|
+
function he(e) {
|
|
301
302
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
302
303
|
}
|
|
303
|
-
var
|
|
304
|
+
var wr = { exports: {} };
|
|
304
305
|
/*!
|
|
305
306
|
Copyright (c) 2018 Jed Watson.
|
|
306
307
|
Licensed under the MIT License (MIT), see
|
|
@@ -335,9 +336,9 @@ var yr = { exports: {} };
|
|
|
335
336
|
}
|
|
336
337
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
337
338
|
})();
|
|
338
|
-
})(
|
|
339
|
-
var
|
|
340
|
-
const
|
|
339
|
+
})(wr);
|
|
340
|
+
var me = wr.exports;
|
|
341
|
+
const ve = /* @__PURE__ */ he(me), ye = {
|
|
341
342
|
"purpur-button": "_purpur-button_1acxn_1",
|
|
342
343
|
"purpur-button--sm": "_purpur-button--sm_1acxn_33",
|
|
343
344
|
"purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
|
|
@@ -358,7 +359,7 @@ const me = /* @__PURE__ */ ge(he), ve = {
|
|
|
358
359
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
|
|
359
360
|
"purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
|
|
360
361
|
"purpur-button--text": "_purpur-button--text_1acxn_175"
|
|
361
|
-
},
|
|
362
|
+
}, xe = ve.bind(ye), C = "purpur-button", we = ({
|
|
362
363
|
children: e,
|
|
363
364
|
className: i,
|
|
364
365
|
["data-testid"]: a,
|
|
@@ -375,7 +376,7 @@ const me = /* @__PURE__ */ ge(he), ve = {
|
|
|
375
376
|
}, y) => {
|
|
376
377
|
if (r && m === "destructive")
|
|
377
378
|
return null;
|
|
378
|
-
const _ =
|
|
379
|
+
const _ = xe(
|
|
379
380
|
[
|
|
380
381
|
C,
|
|
381
382
|
`${C}--${o ? `${m}-negative` : m}`,
|
|
@@ -402,18 +403,18 @@ const me = /* @__PURE__ */ ge(he), ve = {
|
|
|
402
403
|
onClick: B,
|
|
403
404
|
...d,
|
|
404
405
|
children: [
|
|
405
|
-
t && /* @__PURE__ */ l(
|
|
406
|
+
t && /* @__PURE__ */ l(ge, { size: c === ue.LG ? "xs" : "xxs", negative: o, disabled: D }),
|
|
406
407
|
" ",
|
|
407
408
|
e
|
|
408
409
|
]
|
|
409
410
|
}
|
|
410
411
|
);
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
function
|
|
412
|
+
}, br = O(we);
|
|
413
|
+
br.displayName = "Button";
|
|
414
|
+
function be(e) {
|
|
414
415
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
415
416
|
}
|
|
416
|
-
var
|
|
417
|
+
var $r = { exports: {} };
|
|
417
418
|
/*!
|
|
418
419
|
Copyright (c) 2018 Jed Watson.
|
|
419
420
|
Licensed under the MIT License (MIT), see
|
|
@@ -448,15 +449,15 @@ var wr = { exports: {} };
|
|
|
448
449
|
}
|
|
449
450
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
450
451
|
})();
|
|
451
|
-
})(
|
|
452
|
-
var
|
|
453
|
-
const v = /* @__PURE__ */
|
|
452
|
+
})($r);
|
|
453
|
+
var $e = $r.exports;
|
|
454
|
+
const v = /* @__PURE__ */ be($e), Se = {
|
|
454
455
|
"purpur-card": "_purpur-card_1owb4_1"
|
|
455
456
|
};
|
|
456
|
-
function
|
|
457
|
+
function Ce(e) {
|
|
457
458
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
458
459
|
}
|
|
459
|
-
var
|
|
460
|
+
var Sr = { exports: {} };
|
|
460
461
|
/*!
|
|
461
462
|
Copyright (c) 2018 Jed Watson.
|
|
462
463
|
Licensed under the MIT License (MIT), see
|
|
@@ -491,9 +492,9 @@ var br = { exports: {} };
|
|
|
491
492
|
}
|
|
492
493
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
493
494
|
})();
|
|
494
|
-
})(
|
|
495
|
-
var
|
|
496
|
-
const
|
|
495
|
+
})(Sr);
|
|
496
|
+
var ke = Sr.exports;
|
|
497
|
+
const Ae = /* @__PURE__ */ Ce(ke), Oe = {
|
|
497
498
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
498
499
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
499
500
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -501,61 +502,61 @@ const ke = /* @__PURE__ */ Se(Ce), Ae = {
|
|
|
501
502
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
502
503
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
503
504
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
504
|
-
},
|
|
505
|
+
}, Be = {
|
|
505
506
|
name: "alert",
|
|
506
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>',
|
|
507
508
|
keywords: ["alert"],
|
|
508
509
|
category: "status"
|
|
509
|
-
},
|
|
510
|
+
}, Fe = {
|
|
510
511
|
name: "check-circle",
|
|
511
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>',
|
|
512
513
|
keywords: ["check-circle"],
|
|
513
514
|
category: "status"
|
|
514
|
-
},
|
|
515
|
+
}, Me = {
|
|
515
516
|
name: "error",
|
|
516
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>',
|
|
517
518
|
keywords: ["error"],
|
|
518
519
|
category: "status"
|
|
519
|
-
},
|
|
520
|
+
}, Ne = {
|
|
520
521
|
name: "info",
|
|
521
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>',
|
|
522
523
|
keywords: ["info"],
|
|
523
524
|
category: "status"
|
|
524
|
-
},
|
|
525
|
+
}, Ee = {
|
|
525
526
|
name: "offering",
|
|
526
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>',
|
|
527
528
|
keywords: ["offering"],
|
|
528
529
|
category: "other"
|
|
529
|
-
},
|
|
530
|
+
}, Ge = {
|
|
530
531
|
name: "question",
|
|
531
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>',
|
|
532
533
|
keywords: ["question"],
|
|
533
534
|
category: "status"
|
|
534
|
-
},
|
|
535
|
+
}, Ze = {
|
|
535
536
|
name: "tag",
|
|
536
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>',
|
|
537
538
|
keywords: ["tag"],
|
|
538
539
|
category: "other"
|
|
539
|
-
},
|
|
540
|
+
}, Ie = Ae.bind(Oe), ar = "purpur-icon", je = "md", Ue = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), qe = ({ content: e = "", title: i } = {}) => {
|
|
540
541
|
const a = [
|
|
541
542
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
542
543
|
{ name: "fill", value: "currentColor" },
|
|
543
544
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
544
545
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
545
546
|
], n = i ? `<title>${i}</title>` : "";
|
|
546
|
-
return `<svg ${
|
|
547
|
-
},
|
|
547
|
+
return `<svg ${Ue(a)}>${n}${e}</svg>`;
|
|
548
|
+
}, Le = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Cr = ({
|
|
548
549
|
["data-testid"]: e,
|
|
549
550
|
svg: i,
|
|
550
551
|
allyTitle: a,
|
|
551
552
|
className: n,
|
|
552
|
-
size: p =
|
|
553
|
+
size: p = je,
|
|
553
554
|
...r
|
|
554
555
|
}) => {
|
|
555
|
-
const t =
|
|
556
|
-
content:
|
|
556
|
+
const t = qe({
|
|
557
|
+
content: Le(i.svg),
|
|
557
558
|
title: a
|
|
558
|
-
}), o =
|
|
559
|
+
}), o = Ie(n, ar, `${ar}--${p}`);
|
|
559
560
|
return /* @__PURE__ */ l(
|
|
560
561
|
"span",
|
|
561
562
|
{
|
|
@@ -567,10 +568,11 @@ const ke = /* @__PURE__ */ Se(Ce), Ae = {
|
|
|
567
568
|
}
|
|
568
569
|
);
|
|
569
570
|
};
|
|
571
|
+
Cr.displayName = "Icon";
|
|
570
572
|
function Re(e) {
|
|
571
573
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
572
574
|
}
|
|
573
|
-
var
|
|
575
|
+
var kr = { exports: {} };
|
|
574
576
|
/*!
|
|
575
577
|
Copyright (c) 2018 Jed Watson.
|
|
576
578
|
Licensed under the MIT License (MIT), see
|
|
@@ -605,9 +607,9 @@ var $r = { exports: {} };
|
|
|
605
607
|
}
|
|
606
608
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
607
609
|
})();
|
|
608
|
-
})(
|
|
609
|
-
var De =
|
|
610
|
-
const Pe = /* @__PURE__ */ Re(De),
|
|
610
|
+
})(kr);
|
|
611
|
+
var De = kr.exports;
|
|
612
|
+
const Pe = /* @__PURE__ */ Re(De), ir = {
|
|
611
613
|
"purpur-badge": "_purpur-badge_1r1mu_1",
|
|
612
614
|
"purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
|
|
613
615
|
"purpur-badge--special": "_purpur-badge--special_1r1mu_17",
|
|
@@ -617,7 +619,7 @@ const Pe = /* @__PURE__ */ Re(De), tr = {
|
|
|
617
619
|
"purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
|
|
618
620
|
"purpur-badge--error": "_purpur-badge--error_1r1mu_37",
|
|
619
621
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
|
|
620
|
-
},
|
|
622
|
+
}, or = "purpur-badge", $ = {
|
|
621
623
|
ATTENTION: "attention",
|
|
622
624
|
SPECIAL: "special",
|
|
623
625
|
NEUTRAL: "neutral",
|
|
@@ -630,19 +632,19 @@ const Pe = /* @__PURE__ */ Re(De), tr = {
|
|
|
630
632
|
switch (e) {
|
|
631
633
|
case $.ATTENTION:
|
|
632
634
|
case $.SPECIAL:
|
|
633
|
-
return
|
|
635
|
+
return Ee;
|
|
634
636
|
case $.INFORMATION:
|
|
635
|
-
return
|
|
637
|
+
return Ne;
|
|
636
638
|
case $.SUCCESS:
|
|
637
|
-
return
|
|
639
|
+
return Fe;
|
|
638
640
|
case $.WARNING:
|
|
639
|
-
return
|
|
641
|
+
return Be;
|
|
640
642
|
case $.ERROR:
|
|
641
|
-
return
|
|
643
|
+
return Me;
|
|
642
644
|
case $.NEUTRAL:
|
|
643
|
-
return Ee;
|
|
644
|
-
case $.BLACK_FRIDAY:
|
|
645
645
|
return Ge;
|
|
646
|
+
case $.BLACK_FRIDAY:
|
|
647
|
+
return Ze;
|
|
646
648
|
default:
|
|
647
649
|
return;
|
|
648
650
|
}
|
|
@@ -655,9 +657,9 @@ const Pe = /* @__PURE__ */ Re(De), tr = {
|
|
|
655
657
|
className: r = "",
|
|
656
658
|
...t
|
|
657
659
|
}) => {
|
|
658
|
-
const o = Te(a), u = Pe([r,
|
|
660
|
+
const o = Te(a), u = Pe([r, ir[or], ir[`${or}--${a}`]]);
|
|
659
661
|
return /* @__PURE__ */ g("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
|
|
660
|
-
i && o && /* @__PURE__ */ l(
|
|
662
|
+
i && o && /* @__PURE__ */ l(Cr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
|
|
661
663
|
e
|
|
662
664
|
] });
|
|
663
665
|
}, He = {
|
|
@@ -683,7 +685,7 @@ const Pe = /* @__PURE__ */ Re(De), tr = {
|
|
|
683
685
|
}) => /* @__PURE__ */ l("div", { className: Ye(Je), "data-testid": e, children: i }), rt = {
|
|
684
686
|
"purpur-card-content-container": "_purpur-card-content-container_1oawn_1",
|
|
685
687
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_1oawn_12"
|
|
686
|
-
}, et = v.bind(rt),
|
|
688
|
+
}, et = v.bind(rt), nr = "purpur-card-content-container", tt = ({
|
|
687
689
|
["data-testid"]: e = "purpur-card-content-container",
|
|
688
690
|
children: i,
|
|
689
691
|
isFooter: a = !1
|
|
@@ -691,9 +693,9 @@ const Pe = /* @__PURE__ */ Re(De), tr = {
|
|
|
691
693
|
"div",
|
|
692
694
|
{
|
|
693
695
|
className: et([
|
|
694
|
-
|
|
696
|
+
nr,
|
|
695
697
|
{
|
|
696
|
-
[`${
|
|
698
|
+
[`${nr}--footer`]: a
|
|
697
699
|
}
|
|
698
700
|
]),
|
|
699
701
|
"data-testid": e,
|
|
@@ -703,7 +705,7 @@ const Pe = /* @__PURE__ */ Re(De), tr = {
|
|
|
703
705
|
function at(e) {
|
|
704
706
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
705
707
|
}
|
|
706
|
-
var
|
|
708
|
+
var Ar = { exports: {} };
|
|
707
709
|
/*!
|
|
708
710
|
Copyright (c) 2018 Jed Watson.
|
|
709
711
|
Licensed under the MIT License (MIT), see
|
|
@@ -738,9 +740,9 @@ var Sr = { exports: {} };
|
|
|
738
740
|
}
|
|
739
741
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
740
742
|
})();
|
|
741
|
-
})(
|
|
742
|
-
var it =
|
|
743
|
-
const
|
|
743
|
+
})(Ar);
|
|
744
|
+
var it = Ar.exports;
|
|
745
|
+
const pr = /* @__PURE__ */ at(it), ot = "_rotate_1xozj_1", nt = "_dash_1xozj_1", I = {
|
|
744
746
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
745
747
|
rotate: ot,
|
|
746
748
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
@@ -758,7 +760,7 @@ const or = /* @__PURE__ */ at(it), ot = "_rotate_1xozj_1", nt = "_dash_1xozj_1",
|
|
|
758
760
|
SM: "sm",
|
|
759
761
|
MD: "md",
|
|
760
762
|
LG: "lg"
|
|
761
|
-
},
|
|
763
|
+
}, Or = ({
|
|
762
764
|
["data-testid"]: e,
|
|
763
765
|
disabled: i = !1,
|
|
764
766
|
negative: a = !1,
|
|
@@ -767,13 +769,13 @@ const or = /* @__PURE__ */ at(it), ot = "_rotate_1xozj_1", nt = "_dash_1xozj_1",
|
|
|
767
769
|
}) => /* @__PURE__ */ l(
|
|
768
770
|
"div",
|
|
769
771
|
{
|
|
770
|
-
className:
|
|
772
|
+
className: pr([I[j], I[`${j}--${n}`]]),
|
|
771
773
|
"data-testid": e,
|
|
772
774
|
...p,
|
|
773
775
|
children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
774
776
|
"circle",
|
|
775
777
|
{
|
|
776
|
-
className:
|
|
778
|
+
className: pr(I[`${j}__circle`], {
|
|
777
779
|
[I[`${j}__circle--disabled`]]: i,
|
|
778
780
|
[I[`${j}__circle--negative`]]: a
|
|
779
781
|
}),
|
|
@@ -823,7 +825,7 @@ const or = /* @__PURE__ */ at(it), ot = "_rotate_1xozj_1", nt = "_dash_1xozj_1",
|
|
|
823
825
|
])} ${k}`,
|
|
824
826
|
"data-testid": e,
|
|
825
827
|
...o,
|
|
826
|
-
children: r ? /* @__PURE__ */ l(
|
|
828
|
+
children: r ? /* @__PURE__ */ l(Or, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ g(gr, { children: [
|
|
827
829
|
p === "left" && a,
|
|
828
830
|
t,
|
|
829
831
|
p === "right" && a
|
|
@@ -833,7 +835,7 @@ const or = /* @__PURE__ */ at(it), ot = "_rotate_1xozj_1", nt = "_dash_1xozj_1",
|
|
|
833
835
|
function dt(e) {
|
|
834
836
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
835
837
|
}
|
|
836
|
-
var
|
|
838
|
+
var Br = { exports: {} };
|
|
837
839
|
/*!
|
|
838
840
|
Copyright (c) 2018 Jed Watson.
|
|
839
841
|
Licensed under the MIT License (MIT), see
|
|
@@ -868,8 +870,8 @@ var kr = { exports: {} };
|
|
|
868
870
|
}
|
|
869
871
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
870
872
|
})();
|
|
871
|
-
})(
|
|
872
|
-
var ct =
|
|
873
|
+
})(Br);
|
|
874
|
+
var ct = Br.exports;
|
|
873
875
|
const _t = /* @__PURE__ */ dt(ct), ft = {
|
|
874
876
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
875
877
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
@@ -888,23 +890,23 @@ const _t = /* @__PURE__ */ dt(ct), ft = {
|
|
|
888
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>',
|
|
889
891
|
keywords: ["checkmark"],
|
|
890
892
|
category: "utility"
|
|
891
|
-
},
|
|
892
|
-
|
|
893
|
+
}, Fr = (e) => /* @__PURE__ */ l(
|
|
894
|
+
K,
|
|
893
895
|
{
|
|
894
896
|
...e,
|
|
895
897
|
svg: gt
|
|
896
898
|
}
|
|
897
899
|
);
|
|
898
|
-
|
|
899
|
-
const
|
|
900
|
-
|
|
900
|
+
Fr.displayName = "IconArrowRight";
|
|
901
|
+
const Mr = (e) => /* @__PURE__ */ l(
|
|
902
|
+
K,
|
|
901
903
|
{
|
|
902
904
|
...e,
|
|
903
905
|
svg: ht
|
|
904
906
|
}
|
|
905
907
|
);
|
|
906
|
-
|
|
907
|
-
const mt = _t.bind(ft),
|
|
908
|
+
Mr.displayName = "IconCheckmark";
|
|
909
|
+
const mt = _t.bind(ft), lr = "purpur-icon", vt = "md", yt = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), xt = ({ content: e = "", title: i } = {}) => {
|
|
908
910
|
const a = [
|
|
909
911
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
910
912
|
{ name: "fill", value: "currentColor" },
|
|
@@ -912,7 +914,7 @@ const mt = _t.bind(ft), nr = "purpur-icon", vt = "md", yt = (e) => e.filter((i)
|
|
|
912
914
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
913
915
|
], n = i ? `<title>${i}</title>` : "";
|
|
914
916
|
return `<svg ${yt(a)}>${n}${e}</svg>`;
|
|
915
|
-
}, wt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
917
|
+
}, wt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), K = ({
|
|
916
918
|
["data-testid"]: e,
|
|
917
919
|
svg: i,
|
|
918
920
|
allyTitle: a,
|
|
@@ -923,7 +925,7 @@ const mt = _t.bind(ft), nr = "purpur-icon", vt = "md", yt = (e) => e.filter((i)
|
|
|
923
925
|
const t = xt({
|
|
924
926
|
content: wt(i.svg),
|
|
925
927
|
title: a
|
|
926
|
-
}), o = mt(n,
|
|
928
|
+
}), o = mt(n, lr, `${lr}--${p}`);
|
|
927
929
|
return /* @__PURE__ */ l(
|
|
928
930
|
"span",
|
|
929
931
|
{
|
|
@@ -935,10 +937,11 @@ const mt = _t.bind(ft), nr = "purpur-icon", vt = "md", yt = (e) => e.filter((i)
|
|
|
935
937
|
}
|
|
936
938
|
);
|
|
937
939
|
};
|
|
940
|
+
K.displayName = "Icon";
|
|
938
941
|
function bt(e) {
|
|
939
942
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
940
943
|
}
|
|
941
|
-
var
|
|
944
|
+
var Nr = { exports: {} };
|
|
942
945
|
/*!
|
|
943
946
|
Copyright (c) 2018 Jed Watson.
|
|
944
947
|
Licensed under the MIT License (MIT), see
|
|
@@ -973,8 +976,8 @@ var Fr = { exports: {} };
|
|
|
973
976
|
}
|
|
974
977
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
975
978
|
})();
|
|
976
|
-
})(
|
|
977
|
-
var $t =
|
|
979
|
+
})(Nr);
|
|
980
|
+
var $t = Nr.exports;
|
|
978
981
|
const St = /* @__PURE__ */ bt($t), U = {
|
|
979
982
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
980
983
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
@@ -1001,7 +1004,7 @@ const St = /* @__PURE__ */ bt($t), U = {
|
|
|
1001
1004
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
1002
1005
|
OVERLINE100: "overline-100",
|
|
1003
1006
|
OVERLINE200: "overline-200"
|
|
1004
|
-
}, q = "purpur-paragraph",
|
|
1007
|
+
}, q = "purpur-paragraph", Y = ({
|
|
1005
1008
|
["data-testid"]: e,
|
|
1006
1009
|
children: i,
|
|
1007
1010
|
className: a,
|
|
@@ -1023,21 +1026,21 @@ const St = /* @__PURE__ */ bt($t), U = {
|
|
|
1023
1026
|
]);
|
|
1024
1027
|
return /* @__PURE__ */ l("p", { ...o, className: u, "data-testid": e, children: i });
|
|
1025
1028
|
};
|
|
1026
|
-
|
|
1029
|
+
Y.displayName = "Paragraph";
|
|
1027
1030
|
const kt = {
|
|
1028
1031
|
"purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
|
|
1029
1032
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
|
|
1030
|
-
},
|
|
1033
|
+
}, ur = v.bind(kt), sr = "purpur-card-feature-list", At = ({
|
|
1031
1034
|
["data-testid"]: e = "purpur-card-feature-list",
|
|
1032
1035
|
listItems: i
|
|
1033
|
-
}) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className:
|
|
1036
|
+
}) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className: ur(sr), "data-testid": e, children: i.map((a) => /* @__PURE__ */ g(
|
|
1034
1037
|
"li",
|
|
1035
1038
|
{
|
|
1036
|
-
className:
|
|
1039
|
+
className: ur(`${sr}__list-item`),
|
|
1037
1040
|
"data-testid": `${e}-item`,
|
|
1038
1041
|
children: [
|
|
1039
|
-
/* @__PURE__ */ l(
|
|
1040
|
-
/* @__PURE__ */ l(
|
|
1042
|
+
/* @__PURE__ */ l(Mr, { size: "xs" }),
|
|
1043
|
+
/* @__PURE__ */ l(Y, { children: a })
|
|
1041
1044
|
]
|
|
1042
1045
|
},
|
|
1043
1046
|
a
|
|
@@ -1076,14 +1079,14 @@ const kt = {
|
|
|
1076
1079
|
])} ${F}`,
|
|
1077
1080
|
"data-testid": e,
|
|
1078
1081
|
...p,
|
|
1079
|
-
children: n ? /* @__PURE__ */ l(
|
|
1082
|
+
children: n ? /* @__PURE__ */ l(Or, { "data-testid": `${e}-spinner`, size: "xs", disabled: a }) : /* @__PURE__ */ l(Fr, { "data-testid": `${e}-arrow`, size: "md" })
|
|
1080
1083
|
}
|
|
1081
1084
|
), Mt = {
|
|
1082
1085
|
"purpur-card-overline": "_purpur-card-overline_192fe_1"
|
|
1083
1086
|
}, Nt = v.bind(Mt), Et = "purpur-card-overline", Gt = ({
|
|
1084
1087
|
["data-testid"]: e = "purpur-card-overline",
|
|
1085
1088
|
overline: i
|
|
1086
|
-
}) => i ? /* @__PURE__ */ l(
|
|
1089
|
+
}) => i ? /* @__PURE__ */ l(Y, { className: Nt(Et), "data-testid": e, children: i }) : null, Zt = {
|
|
1087
1090
|
"purpur-card-root": "_purpur-card-root_bqk1d_1",
|
|
1088
1091
|
"purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
|
|
1089
1092
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
|
|
@@ -1110,28 +1113,28 @@ function Ut(...e) {
|
|
|
1110
1113
|
(a) => jt(a, i)
|
|
1111
1114
|
);
|
|
1112
1115
|
}
|
|
1113
|
-
const
|
|
1116
|
+
const Er = /* @__PURE__ */ O((e, i) => {
|
|
1114
1117
|
const { children: a, ...n } = e, p = L.toArray(a), r = p.find(Lt);
|
|
1115
1118
|
if (r) {
|
|
1116
1119
|
const t = r.props.children, o = p.map((u) => u === r ? L.count(t) > 1 ? L.only(null) : /* @__PURE__ */ z(t) ? t.props.children : null : u);
|
|
1117
1120
|
return /* @__PURE__ */ R(W, N({}, n, {
|
|
1118
1121
|
ref: i
|
|
1119
|
-
}), /* @__PURE__ */ z(t) ? /* @__PURE__ */
|
|
1122
|
+
}), /* @__PURE__ */ z(t) ? /* @__PURE__ */ hr(t, void 0, o) : null);
|
|
1120
1123
|
}
|
|
1121
1124
|
return /* @__PURE__ */ R(W, N({}, n, {
|
|
1122
1125
|
ref: i
|
|
1123
1126
|
}), a);
|
|
1124
1127
|
});
|
|
1125
|
-
|
|
1128
|
+
Er.displayName = "Slot";
|
|
1126
1129
|
const W = /* @__PURE__ */ O((e, i) => {
|
|
1127
1130
|
const { children: a, ...n } = e;
|
|
1128
|
-
return /* @__PURE__ */ z(a) ? /* @__PURE__ */
|
|
1131
|
+
return /* @__PURE__ */ z(a) ? /* @__PURE__ */ hr(a, {
|
|
1129
1132
|
...Rt(n, a.props),
|
|
1130
1133
|
ref: i ? Ut(i, a.ref) : a.ref
|
|
1131
1134
|
}) : L.count(a) > 1 ? L.only(null) : null;
|
|
1132
1135
|
});
|
|
1133
1136
|
W.displayName = "SlotClone";
|
|
1134
|
-
const qt = ({ children: e }) => /* @__PURE__ */ R(
|
|
1137
|
+
const qt = ({ children: e }) => /* @__PURE__ */ R(Rr, null, e);
|
|
1135
1138
|
function Lt(e) {
|
|
1136
1139
|
return /* @__PURE__ */ z(e) && e.type === qt;
|
|
1137
1140
|
}
|
|
@@ -1175,8 +1178,8 @@ const Dt = [
|
|
|
1175
1178
|
"ul"
|
|
1176
1179
|
], Pt = Dt.reduce((e, i) => {
|
|
1177
1180
|
const a = /* @__PURE__ */ O((n, p) => {
|
|
1178
|
-
const { asChild: r, ...t } = n, o = r ?
|
|
1179
|
-
return
|
|
1181
|
+
const { asChild: r, ...t } = n, o = r ? Er : i;
|
|
1182
|
+
return Lr(() => {
|
|
1180
1183
|
window[Symbol.for("radix-ui")] = !0;
|
|
1181
1184
|
}, []), /* @__PURE__ */ R(o, N({}, t, {
|
|
1182
1185
|
ref: p
|
|
@@ -1202,12 +1205,12 @@ const Dt = [
|
|
|
1202
1205
|
wordWrap: "normal",
|
|
1203
1206
|
...e.style
|
|
1204
1207
|
}
|
|
1205
|
-
}))), zt = Tt,
|
|
1208
|
+
}))), zt = Tt, dr = ({
|
|
1206
1209
|
asChild: e,
|
|
1207
1210
|
children: i,
|
|
1208
1211
|
className: a = "",
|
|
1209
1212
|
["data-testid"]: n
|
|
1210
|
-
}) => /* @__PURE__ */ l(zt, { asChild: e, "data-testid": n, className: a, children: i }),
|
|
1213
|
+
}) => /* @__PURE__ */ l(zt, { asChild: e, "data-testid": n, className: a, children: i }), cr = v.bind(It), A = "purpur-card-trigger-item", Ht = ({
|
|
1211
1214
|
["data-testid"]: e = "purpur-card-trigger-item",
|
|
1212
1215
|
disabled: i = !1,
|
|
1213
1216
|
href: a,
|
|
@@ -1223,7 +1226,7 @@ const Dt = [
|
|
|
1223
1226
|
"a",
|
|
1224
1227
|
{
|
|
1225
1228
|
"aria-disabled": i,
|
|
1226
|
-
className: `${
|
|
1229
|
+
className: `${cr([
|
|
1227
1230
|
A,
|
|
1228
1231
|
{
|
|
1229
1232
|
[`${A}--disabled`]: i
|
|
@@ -1232,14 +1235,14 @@ const Dt = [
|
|
|
1232
1235
|
"data-testid": e,
|
|
1233
1236
|
href: i ? void 0 : a,
|
|
1234
1237
|
tabIndex: i ? 0 : void 0,
|
|
1235
|
-
children: /* @__PURE__ */ l(
|
|
1238
|
+
children: /* @__PURE__ */ l(dr, { children: p })
|
|
1236
1239
|
}
|
|
1237
1240
|
)
|
|
1238
1241
|
) : /* @__PURE__ */ l(
|
|
1239
1242
|
"button",
|
|
1240
1243
|
{
|
|
1241
1244
|
"aria-disabled": i,
|
|
1242
|
-
className: `${
|
|
1245
|
+
className: `${cr([
|
|
1243
1246
|
A,
|
|
1244
1247
|
`${A}--button`,
|
|
1245
1248
|
{
|
|
@@ -1249,10 +1252,10 @@ const Dt = [
|
|
|
1249
1252
|
"data-testid": e,
|
|
1250
1253
|
type: "button",
|
|
1251
1254
|
onClick: r,
|
|
1252
|
-
children: /* @__PURE__ */ l(
|
|
1255
|
+
children: /* @__PURE__ */ l(dr, { children: p })
|
|
1253
1256
|
}
|
|
1254
1257
|
);
|
|
1255
|
-
}, Vt = v.bind(Zt), H = "purpur-card-root",
|
|
1258
|
+
}, Vt = v.bind(Zt), H = "purpur-card-root", Gr = O(
|
|
1256
1259
|
({
|
|
1257
1260
|
["data-testid"]: e = "purpur-card-root",
|
|
1258
1261
|
children: i,
|
|
@@ -1287,9 +1290,9 @@ const Dt = [
|
|
|
1287
1290
|
] });
|
|
1288
1291
|
}
|
|
1289
1292
|
);
|
|
1290
|
-
|
|
1291
|
-
const
|
|
1292
|
-
const n =
|
|
1293
|
+
Gr.displayName = "CardRoot";
|
|
1294
|
+
const _r = v.bind(Se), V = "purpur-card", x = ({ children: e, className: i, ...a }) => {
|
|
1295
|
+
const n = _r([
|
|
1293
1296
|
V,
|
|
1294
1297
|
i,
|
|
1295
1298
|
{
|
|
@@ -1297,7 +1300,7 @@ const dr = v.bind($e), V = "purpur-card", x = ({ children: e, className: i, ...a
|
|
|
1297
1300
|
[`${V}--disabled`]: a.disabled
|
|
1298
1301
|
}
|
|
1299
1302
|
]);
|
|
1300
|
-
return /* @__PURE__ */ l(
|
|
1303
|
+
return /* @__PURE__ */ l(Gr, { className: _r(n), ...a, children: e });
|
|
1301
1304
|
};
|
|
1302
1305
|
x.Badge = Xe;
|
|
1303
1306
|
x.LinkArrow = Ft;
|
|
@@ -1310,7 +1313,7 @@ x.displayName = "Card";
|
|
|
1310
1313
|
function Wt(e) {
|
|
1311
1314
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1312
1315
|
}
|
|
1313
|
-
var
|
|
1316
|
+
var Zr = { exports: {} };
|
|
1314
1317
|
/*!
|
|
1315
1318
|
Copyright (c) 2018 Jed Watson.
|
|
1316
1319
|
Licensed under the MIT License (MIT), see
|
|
@@ -1345,8 +1348,8 @@ var Er = { exports: {} };
|
|
|
1345
1348
|
}
|
|
1346
1349
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1347
1350
|
})();
|
|
1348
|
-
})(
|
|
1349
|
-
var Xt =
|
|
1351
|
+
})(Zr);
|
|
1352
|
+
var Xt = Zr.exports;
|
|
1350
1353
|
const Kt = /* @__PURE__ */ Wt(Xt), Yt = {
|
|
1351
1354
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
1352
1355
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
@@ -1375,7 +1378,7 @@ const Kt = /* @__PURE__ */ Wt(Xt), Yt = {
|
|
|
1375
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>',
|
|
1376
1379
|
keywords: ["phone"],
|
|
1377
1380
|
category: "device"
|
|
1378
|
-
}, ta = Kt.bind(Yt),
|
|
1381
|
+
}, ta = Kt.bind(Yt), fr = "purpur-icon", aa = "md", ia = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), oa = ({ content: e = "", title: i } = {}) => {
|
|
1379
1382
|
const a = [
|
|
1380
1383
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1381
1384
|
{ name: "fill", value: "currentColor" },
|
|
@@ -1383,7 +1386,7 @@ const Kt = /* @__PURE__ */ Wt(Xt), Yt = {
|
|
|
1383
1386
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1384
1387
|
], n = i ? `<title>${i}</title>` : "";
|
|
1385
1388
|
return `<svg ${ia(a)}>${n}${e}</svg>`;
|
|
1386
|
-
}, na = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
1389
|
+
}, na = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), X = ({
|
|
1387
1390
|
["data-testid"]: e,
|
|
1388
1391
|
svg: i,
|
|
1389
1392
|
allyTitle: a,
|
|
@@ -1394,7 +1397,7 @@ const Kt = /* @__PURE__ */ Wt(Xt), Yt = {
|
|
|
1394
1397
|
const t = oa({
|
|
1395
1398
|
content: na(i.svg),
|
|
1396
1399
|
title: a
|
|
1397
|
-
}), o = ta(n,
|
|
1400
|
+
}), o = ta(n, fr, `${fr}--${p}`);
|
|
1398
1401
|
return /* @__PURE__ */ l(
|
|
1399
1402
|
"span",
|
|
1400
1403
|
{
|
|
@@ -1406,10 +1409,11 @@ const Kt = /* @__PURE__ */ Wt(Xt), Yt = {
|
|
|
1406
1409
|
}
|
|
1407
1410
|
);
|
|
1408
1411
|
};
|
|
1412
|
+
X.displayName = "Icon";
|
|
1409
1413
|
function pa(e) {
|
|
1410
1414
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1411
1415
|
}
|
|
1412
|
-
var
|
|
1416
|
+
var Ir = { exports: {} };
|
|
1413
1417
|
/*!
|
|
1414
1418
|
Copyright (c) 2018 Jed Watson.
|
|
1415
1419
|
Licensed under the MIT License (MIT), see
|
|
@@ -1444,8 +1448,8 @@ var Gr = { exports: {} };
|
|
|
1444
1448
|
}
|
|
1445
1449
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1446
1450
|
})();
|
|
1447
|
-
})(
|
|
1448
|
-
var la =
|
|
1451
|
+
})(Ir);
|
|
1452
|
+
var la = Ir.exports;
|
|
1449
1453
|
const ua = /* @__PURE__ */ pa(la), sa = {
|
|
1450
1454
|
"purpur-cta-link": "_purpur-cta-link_1mhg7_1",
|
|
1451
1455
|
"purpur-cta-link--sm": "_purpur-cta-link--sm_1mhg7_33",
|
|
@@ -1490,10 +1494,10 @@ const ua = /* @__PURE__ */ pa(la), sa = {
|
|
|
1490
1494
|
[`${M}--negative`]: r,
|
|
1491
1495
|
[`${M}--full-width`]: n
|
|
1492
1496
|
}
|
|
1493
|
-
), d = ca[u], y = /* @__PURE__ */ g(
|
|
1494
|
-
(u === "back" || u === "phone") && /* @__PURE__ */ l(
|
|
1497
|
+
), d = ca[u], y = /* @__PURE__ */ g(gr, { children: [
|
|
1498
|
+
(u === "back" || u === "phone") && /* @__PURE__ */ l(X, { svg: d, size: t === "lg" ? "sm" : "xs" }),
|
|
1495
1499
|
!p && e,
|
|
1496
|
-
(u === "forward" || u === "external") && /* @__PURE__ */ l(
|
|
1500
|
+
(u === "forward" || u === "external") && /* @__PURE__ */ l(X, { svg: d, size: t === "lg" ? "sm" : "xs" })
|
|
1497
1501
|
] }), _ = {
|
|
1498
1502
|
...c,
|
|
1499
1503
|
className: S,
|
|
@@ -1505,7 +1509,7 @@ const ua = /* @__PURE__ */ pa(la), sa = {
|
|
|
1505
1509
|
function fa(e) {
|
|
1506
1510
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1507
1511
|
}
|
|
1508
|
-
var
|
|
1512
|
+
var jr = { exports: {} };
|
|
1509
1513
|
/*!
|
|
1510
1514
|
Copyright (c) 2018 Jed Watson.
|
|
1511
1515
|
Licensed under the MIT License (MIT), see
|
|
@@ -1540,8 +1544,8 @@ var Zr = { exports: {} };
|
|
|
1540
1544
|
}
|
|
1541
1545
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1542
1546
|
})();
|
|
1543
|
-
})(
|
|
1544
|
-
var ga =
|
|
1547
|
+
})(jr);
|
|
1548
|
+
var ga = jr.exports;
|
|
1545
1549
|
const ha = /* @__PURE__ */ fa(ga), P = {
|
|
1546
1550
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
1547
1551
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
@@ -1567,7 +1571,7 @@ const ha = /* @__PURE__ */ fa(ga), P = {
|
|
|
1567
1571
|
TITLE600: "title-600",
|
|
1568
1572
|
TITLE700: "title-700",
|
|
1569
1573
|
SUBSECTION100: "subsection-100"
|
|
1570
|
-
}, T = "purpur-heading",
|
|
1574
|
+
}, T = "purpur-heading", Ur = ({
|
|
1571
1575
|
["data-testid"]: e,
|
|
1572
1576
|
children: i,
|
|
1573
1577
|
className: a = "",
|
|
@@ -1588,11 +1592,11 @@ const ha = /* @__PURE__ */ fa(ga), P = {
|
|
|
1588
1592
|
]);
|
|
1589
1593
|
return /* @__PURE__ */ l(u, { ...o, className: c, "data-testid": e, children: i });
|
|
1590
1594
|
};
|
|
1591
|
-
|
|
1595
|
+
Ur.displayName = "Heading";
|
|
1592
1596
|
function va(e) {
|
|
1593
1597
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1594
1598
|
}
|
|
1595
|
-
var
|
|
1599
|
+
var qr = { exports: {} };
|
|
1596
1600
|
/*!
|
|
1597
1601
|
Copyright (c) 2018 Jed Watson.
|
|
1598
1602
|
Licensed under the MIT License (MIT), see
|
|
@@ -1627,8 +1631,8 @@ var jr = { exports: {} };
|
|
|
1627
1631
|
}
|
|
1628
1632
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1629
1633
|
})();
|
|
1630
|
-
})(
|
|
1631
|
-
var ya =
|
|
1634
|
+
})(qr);
|
|
1635
|
+
var ya = qr.exports;
|
|
1632
1636
|
const xa = /* @__PURE__ */ va(ya), wa = {
|
|
1633
1637
|
"purpur-promotion-card": "_purpur-promotion-card_qosug_1",
|
|
1634
1638
|
"purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_qosug_8",
|
|
@@ -1720,13 +1724,13 @@ const xa = /* @__PURE__ */ va(ya), wa = {
|
|
|
1720
1724
|
}
|
|
1721
1725
|
]),
|
|
1722
1726
|
children: [
|
|
1723
|
-
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: h(`${s}__badge-wrapper`), children: /* @__PURE__ */ g(
|
|
1727
|
+
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: h(`${s}__badge-wrapper`), children: /* @__PURE__ */ g(le, { variant: i === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1724
1728
|
n && n,
|
|
1725
1729
|
a
|
|
1726
1730
|
] }) }),
|
|
1727
1731
|
/* @__PURE__ */ g("div", { className: h(`${s}__main-content`), children: [
|
|
1728
1732
|
/* @__PURE__ */ l(
|
|
1729
|
-
|
|
1733
|
+
Ur,
|
|
1730
1734
|
{
|
|
1731
1735
|
tag: r,
|
|
1732
1736
|
variant: t,
|
|
@@ -1738,19 +1742,19 @@ const xa = /* @__PURE__ */ va(ya), wa = {
|
|
|
1738
1742
|
/* @__PURE__ */ g("div", { className: h(`${s}__body`), children: [
|
|
1739
1743
|
/* @__PURE__ */ l("div", { className: h(`${s}__child-content`), children: m }),
|
|
1740
1744
|
c && c.length > 0 && /* @__PURE__ */ l("div", { className: h(`${s}__actions`), children: c.map(
|
|
1741
|
-
({ label: f, href: w, onClick: E },
|
|
1745
|
+
({ label: f, href: w, onClick: E }, J) => w ? /* @__PURE__ */ l(
|
|
1742
1746
|
_a,
|
|
1743
1747
|
{
|
|
1744
|
-
variant:
|
|
1748
|
+
variant: J === 0 ? "primary" : "secondary",
|
|
1745
1749
|
href: w,
|
|
1746
1750
|
negative: i === "primary",
|
|
1747
1751
|
children: f
|
|
1748
1752
|
},
|
|
1749
1753
|
f
|
|
1750
1754
|
) : /* @__PURE__ */ l(
|
|
1751
|
-
|
|
1755
|
+
br,
|
|
1752
1756
|
{
|
|
1753
|
-
variant:
|
|
1757
|
+
variant: J === 0 ? "primary" : "secondary",
|
|
1754
1758
|
onClick: E,
|
|
1755
1759
|
negative: i === "primary",
|
|
1756
1760
|
children: f
|