@purpurds/password-field 8.8.0 → 8.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.txt +4 -4
- package/dist/{main-DlqwQKmD.mjs → main-4qdMai51.mjs} +2 -2
- package/dist/{main-DlqwQKmD.mjs.map → main-4qdMai51.mjs.map} +1 -1
- package/dist/{main-CWlCCnV6.js → main-7SvfB5sK.js} +2 -2
- package/dist/{main-CWlCCnV6.js.map → main-7SvfB5sK.js.map} +1 -1
- package/dist/{password-field-Ca-Iu-6j.mjs → password-field-Ca6mfkQC.mjs} +444 -435
- package/dist/password-field-Ca6mfkQC.mjs.map +1 -0
- package/dist/password-field-Dq18AIF3.js +58 -0
- package/dist/password-field-Dq18AIF3.js.map +1 -0
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.es.js +1 -1
- package/package.json +12 -12
- package/dist/password-field-Ca-Iu-6j.mjs.map +0 -1
- package/dist/password-field-VT53_xW1.js +0 -58
- package/dist/password-field-VT53_xW1.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as O, useId as
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { forwardRef as O, useId as ut, useRef as pt, useState as z, useMemo as it, useEffect as at, isValidElement as st } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const ot = {
|
|
6
6
|
LG: "lg"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function lt(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var rr = { exports: {} };
|
|
12
12
|
/*!
|
|
13
13
|
Copyright (c) 2018 Jed Watson.
|
|
14
14
|
Licensed under the MIT License (MIT), see
|
|
15
15
|
http://jedwatson.github.io/classnames
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
var tr;
|
|
18
|
+
function ct() {
|
|
19
|
+
return tr || (tr = 1, (function(t) {
|
|
20
20
|
(function() {
|
|
21
21
|
var p = {}.hasOwnProperty;
|
|
22
22
|
function n() {
|
|
23
23
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
24
24
|
var u = arguments[e];
|
|
25
|
-
u && (r =
|
|
25
|
+
u && (r = i(r, a.call(this, u)));
|
|
26
26
|
}
|
|
27
27
|
return r;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function a(r) {
|
|
30
30
|
if (typeof r == "string" || typeof r == "number")
|
|
31
31
|
return this && this[r] || r;
|
|
32
32
|
if (typeof r != "object")
|
|
@@ -37,41 +37,41 @@ function ot() {
|
|
|
37
37
|
return r.toString();
|
|
38
38
|
var e = "";
|
|
39
39
|
for (var u in r)
|
|
40
|
-
p.call(r, u) && r[u] && (e =
|
|
40
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function i(r, e) {
|
|
44
44
|
return e ? r ? r + " " + e : r + e : r;
|
|
45
45
|
}
|
|
46
46
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
47
47
|
})();
|
|
48
|
-
})(
|
|
48
|
+
})(rr)), rr.exports;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
const
|
|
50
|
+
var _t = ct();
|
|
51
|
+
const dt = /* @__PURE__ */ lt(_t), ft = "_rotate_12t9p_1", gt = "_dash_12t9p_1", ht = {
|
|
52
52
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
53
|
-
rotate:
|
|
53
|
+
rotate: ft,
|
|
54
54
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
55
55
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
56
56
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
57
57
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
58
58
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
59
59
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
60
|
-
dash:
|
|
60
|
+
dash: gt,
|
|
61
61
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
62
62
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
63
|
-
},
|
|
63
|
+
}, er = dt.bind(ht), P = "purpur-spinner", vt = {
|
|
64
64
|
SM: "sm"
|
|
65
|
-
},
|
|
65
|
+
}, Br = ({
|
|
66
66
|
disabled: t = !1,
|
|
67
67
|
negative: p = !1,
|
|
68
|
-
size: n =
|
|
69
|
-
className:
|
|
70
|
-
...
|
|
71
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
68
|
+
size: n = vt.SM,
|
|
69
|
+
className: a,
|
|
70
|
+
...i
|
|
71
|
+
}) => /* @__PURE__ */ s("div", { className: er(P, `${P}--${n}`, a), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
72
72
|
"circle",
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
74
|
+
className: er(`${P}__circle`, {
|
|
75
75
|
[`${P}__circle--disabled`]: t,
|
|
76
76
|
[`${P}__circle--negative`]: p
|
|
77
77
|
}),
|
|
@@ -80,29 +80,29 @@ const ct = /* @__PURE__ */ st(lt), _t = "_rotate_12t9p_1", dt = "_dash_12t9p_1",
|
|
|
80
80
|
r: "20"
|
|
81
81
|
}
|
|
82
82
|
) }) });
|
|
83
|
-
|
|
84
|
-
function
|
|
83
|
+
Br.displayName = "Spinner";
|
|
84
|
+
function mt(t) {
|
|
85
85
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
86
86
|
}
|
|
87
|
-
var
|
|
87
|
+
var nr = { exports: {} };
|
|
88
88
|
/*!
|
|
89
89
|
Copyright (c) 2018 Jed Watson.
|
|
90
90
|
Licensed under the MIT License (MIT), see
|
|
91
91
|
http://jedwatson.github.io/classnames
|
|
92
92
|
*/
|
|
93
|
-
var
|
|
94
|
-
function
|
|
95
|
-
return
|
|
93
|
+
var ur;
|
|
94
|
+
function bt() {
|
|
95
|
+
return ur || (ur = 1, (function(t) {
|
|
96
96
|
(function() {
|
|
97
97
|
var p = {}.hasOwnProperty;
|
|
98
98
|
function n() {
|
|
99
99
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
100
100
|
var u = arguments[e];
|
|
101
|
-
u && (r =
|
|
101
|
+
u && (r = i(r, a.call(this, u)));
|
|
102
102
|
}
|
|
103
103
|
return r;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function a(r) {
|
|
106
106
|
if (typeof r == "string" || typeof r == "number")
|
|
107
107
|
return this && this[r] || r;
|
|
108
108
|
if (typeof r != "object")
|
|
@@ -113,18 +113,18 @@ function vt() {
|
|
|
113
113
|
return r.toString();
|
|
114
114
|
var e = "";
|
|
115
115
|
for (var u in r)
|
|
116
|
-
p.call(r, u) && r[u] && (e =
|
|
116
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
117
117
|
return e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function i(r, e) {
|
|
120
120
|
return e ? r ? r + " " + e : r + e : r;
|
|
121
121
|
}
|
|
122
122
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
123
123
|
})();
|
|
124
|
-
})(
|
|
124
|
+
})(nr)), nr.exports;
|
|
125
125
|
}
|
|
126
|
-
var
|
|
127
|
-
const
|
|
126
|
+
var yt = bt();
|
|
127
|
+
const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
128
128
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
129
129
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
130
130
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -147,33 +147,33 @@ const bt = /* @__PURE__ */ ht(mt), yt = {
|
|
|
147
147
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
148
148
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
149
149
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
150
|
-
},
|
|
150
|
+
}, pr = xt.bind(wt), S = "purpur-button", Lr = O(
|
|
151
151
|
({
|
|
152
152
|
children: t,
|
|
153
153
|
className: p,
|
|
154
154
|
disabled: n = !1,
|
|
155
|
-
fullWidth:
|
|
156
|
-
iconOnly:
|
|
155
|
+
fullWidth: a = !1,
|
|
156
|
+
iconOnly: i,
|
|
157
157
|
loading: r = !1,
|
|
158
158
|
negative: e = !1,
|
|
159
159
|
onClick: u,
|
|
160
160
|
size: _ = "md",
|
|
161
161
|
variant: o,
|
|
162
|
-
type:
|
|
162
|
+
type: f = "button",
|
|
163
163
|
...l
|
|
164
164
|
}, h) => {
|
|
165
|
-
if (
|
|
165
|
+
if (i && o === "destructive")
|
|
166
166
|
return null;
|
|
167
|
-
const y =
|
|
167
|
+
const y = pr(
|
|
168
168
|
[
|
|
169
169
|
S,
|
|
170
170
|
`${S}--${e ? `${o}-negative` : o}`,
|
|
171
171
|
`${S}--${_}`
|
|
172
172
|
],
|
|
173
173
|
{
|
|
174
|
-
[`${S}--icon-only`]:
|
|
174
|
+
[`${S}--icon-only`]: i,
|
|
175
175
|
[`${S}--negative`]: e,
|
|
176
|
-
[`${S}--full-width`]:
|
|
176
|
+
[`${S}--full-width`]: a,
|
|
177
177
|
[`${S}--disabled`]: n || r
|
|
178
178
|
},
|
|
179
179
|
p
|
|
@@ -184,19 +184,19 @@ const bt = /* @__PURE__ */ ht(mt), yt = {
|
|
|
184
184
|
"button",
|
|
185
185
|
{
|
|
186
186
|
className: y,
|
|
187
|
-
type:
|
|
187
|
+
type: f,
|
|
188
188
|
ref: h,
|
|
189
189
|
"aria-disabled": m,
|
|
190
190
|
onClick: c,
|
|
191
191
|
...l,
|
|
192
192
|
children: [
|
|
193
193
|
r && /* @__PURE__ */ s(
|
|
194
|
-
|
|
194
|
+
Br,
|
|
195
195
|
{
|
|
196
|
-
size: _ ===
|
|
196
|
+
size: _ === ot.LG ? "xs" : "xxs",
|
|
197
197
|
negative: e,
|
|
198
198
|
disabled: m,
|
|
199
|
-
className:
|
|
199
|
+
className: pr(`${S}__spinner`)
|
|
200
200
|
}
|
|
201
201
|
),
|
|
202
202
|
" ",
|
|
@@ -206,29 +206,29 @@ const bt = /* @__PURE__ */ ht(mt), yt = {
|
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
|
-
|
|
210
|
-
function
|
|
209
|
+
Lr.displayName = "Button";
|
|
210
|
+
function $t(t) {
|
|
211
211
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var ir = { exports: {} };
|
|
214
214
|
/*!
|
|
215
215
|
Copyright (c) 2018 Jed Watson.
|
|
216
216
|
Licensed under the MIT License (MIT), see
|
|
217
217
|
http://jedwatson.github.io/classnames
|
|
218
218
|
*/
|
|
219
219
|
var ar;
|
|
220
|
-
function
|
|
220
|
+
function St() {
|
|
221
221
|
return ar || (ar = 1, (function(t) {
|
|
222
222
|
(function() {
|
|
223
223
|
var p = {}.hasOwnProperty;
|
|
224
224
|
function n() {
|
|
225
225
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
226
226
|
var u = arguments[e];
|
|
227
|
-
u && (r =
|
|
227
|
+
u && (r = i(r, a.call(this, u)));
|
|
228
228
|
}
|
|
229
229
|
return r;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function a(r) {
|
|
232
232
|
if (typeof r == "string" || typeof r == "number")
|
|
233
233
|
return this && this[r] || r;
|
|
234
234
|
if (typeof r != "object")
|
|
@@ -239,18 +239,18 @@ function wt() {
|
|
|
239
239
|
return r.toString();
|
|
240
240
|
var e = "";
|
|
241
241
|
for (var u in r)
|
|
242
|
-
p.call(r, u) && r[u] && (e =
|
|
242
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
243
243
|
return e;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function i(r, e) {
|
|
246
246
|
return e ? r ? r + " " + e : r + e : r;
|
|
247
247
|
}
|
|
248
248
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
249
249
|
})();
|
|
250
|
-
})(
|
|
250
|
+
})(ir)), ir.exports;
|
|
251
251
|
}
|
|
252
|
-
var
|
|
253
|
-
const
|
|
252
|
+
var jt = St();
|
|
253
|
+
const Nt = /* @__PURE__ */ $t(jt), Ot = {
|
|
254
254
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
255
255
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
256
256
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -258,61 +258,61 @@ const St = /* @__PURE__ */ xt($t), jt = {
|
|
|
258
258
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
259
259
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
260
260
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
261
|
-
},
|
|
261
|
+
}, Pt = Nt.bind(Ot), sr = "purpur-icon", At = "md", Mt = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Ct = ({ content: t = "", title: p } = {}) => {
|
|
262
262
|
const n = [
|
|
263
263
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
264
264
|
{ name: "fill", value: "currentColor" },
|
|
265
265
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
266
266
|
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
267
|
-
],
|
|
268
|
-
return `<svg ${
|
|
269
|
-
},
|
|
270
|
-
const r =
|
|
271
|
-
content:
|
|
267
|
+
], a = p ? `<title>${p}</title>` : "";
|
|
268
|
+
return `<svg ${Mt(n)}>${a}${t}</svg>`;
|
|
269
|
+
}, kt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), H = ({ svg: t, allyTitle: p, className: n, size: a = At, ...i }) => {
|
|
270
|
+
const r = Ct({
|
|
271
|
+
content: kt(t.svg),
|
|
272
272
|
title: p
|
|
273
|
-
}), e =
|
|
274
|
-
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...
|
|
273
|
+
}), e = Pt(sr, `${sr}--${a}`, n);
|
|
274
|
+
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
275
275
|
};
|
|
276
|
-
|
|
277
|
-
const
|
|
276
|
+
H.displayName = "Icon";
|
|
277
|
+
const Rt = {
|
|
278
278
|
name: "password-invisible",
|
|
279
279
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M2.364 2.364a.9.9 0 0 1 1.272 0l3.809 3.808a11.61 11.61 0 0 1 2.218-.789A9.944 9.944 0 0 1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.647.969-1.81 2.33-3.349 3.547a.9.9 0 0 1-1.116-1.413A15.273 15.273 0 0 0 20.894 12a15.297 15.297 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-.655 0-1.295.083-1.914.233-.435.105-.86.242-1.274.407l.418.417a4.9 4.9 0 0 1 7.632 4.654.9.9 0 1 1-1.786-.222 3.1 3.1 0 0 0-4.538-3.123l11.098 11.098a.9.9 0 1 1-1.272 1.272l-3.809-3.808c-1.362.642-2.9 1.072-4.555 1.072-2.651 0-5-1.103-6.826-2.42-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.645-.966 1.804-2.322 3.335-3.536a.9.9 0 1 1 1.118 1.411A15.266 15.266 0 0 0 3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c1.114 0 2.185-.24 3.188-.64l-.418-.418A4.9 4.9 0 0 1 7.1 12a8.888 8.888 0 0 1-.007-.225 2.488 2.488 0 0 1 .014-.385.9.9 0 1 1 1.786.222.79.79 0 0 0-.001.11A6.245 6.245 0 0 1 8.9 12a3.1 3.1 0 0 0 4.562 2.734L8.586 9.859a.912.912 0 0 1-.102-.102l-6.12-6.12a.9.9 0 0 1 0-1.273Z" clip-rule="evenodd"/></svg>',
|
|
280
280
|
keywords: ["password-invisible"],
|
|
281
281
|
category: "action"
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
const
|
|
282
|
+
}, Tr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Rt });
|
|
283
|
+
Tr.displayName = "IconPasswordInvisible";
|
|
284
|
+
const qt = {
|
|
285
285
|
name: "password-visible",
|
|
286
286
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c2.149 0 4.134-.897 5.774-2.08a15.295 15.295 0 0 0 3.12-3.02 15.3 15.3 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-2.149 0-4.134.897-5.774 2.08A15.299 15.299 0 0 0 3.106 12Zm2.067-4.48C7 6.203 9.349 5.1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.722 1.083-2.096 2.663-3.923 3.98C17 17.797 14.651 18.9 12 18.9s-5-1.103-6.826-2.42c-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.722-1.083 2.096-2.663 3.923-3.98ZM12 8.9a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2ZM7.1 12a4.9 4.9 0 1 1 9.8 0 4.9 4.9 0 0 1-9.8 0Zm4-1.538a.9.9 0 0 1 .9-.9A2.438 2.438 0 0 1 14.438 12a.9.9 0 0 1-1.8 0 .638.638 0 0 0-.638-.638.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',
|
|
287
287
|
keywords: ["password-visible"],
|
|
288
288
|
category: "action"
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
const
|
|
289
|
+
}, Wr = (t) => /* @__PURE__ */ s(H, { ...t, svg: qt });
|
|
290
|
+
Wr.displayName = "IconPasswordVisible";
|
|
291
|
+
const zt = {
|
|
292
292
|
LG: "lg"
|
|
293
293
|
};
|
|
294
|
-
function
|
|
294
|
+
function Et(t) {
|
|
295
295
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
296
296
|
}
|
|
297
|
-
var
|
|
297
|
+
var or = { exports: {} };
|
|
298
298
|
/*!
|
|
299
299
|
Copyright (c) 2018 Jed Watson.
|
|
300
300
|
Licensed under the MIT License (MIT), see
|
|
301
301
|
http://jedwatson.github.io/classnames
|
|
302
302
|
*/
|
|
303
|
-
var
|
|
304
|
-
function
|
|
305
|
-
return
|
|
303
|
+
var lr;
|
|
304
|
+
function It() {
|
|
305
|
+
return lr || (lr = 1, (function(t) {
|
|
306
306
|
(function() {
|
|
307
307
|
var p = {}.hasOwnProperty;
|
|
308
308
|
function n() {
|
|
309
309
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
310
310
|
var u = arguments[e];
|
|
311
|
-
u && (r =
|
|
311
|
+
u && (r = i(r, a.call(this, u)));
|
|
312
312
|
}
|
|
313
313
|
return r;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function a(r) {
|
|
316
316
|
if (typeof r == "string" || typeof r == "number")
|
|
317
317
|
return this && this[r] || r;
|
|
318
318
|
if (typeof r != "object")
|
|
@@ -323,41 +323,41 @@ function zt() {
|
|
|
323
323
|
return r.toString();
|
|
324
324
|
var e = "";
|
|
325
325
|
for (var u in r)
|
|
326
|
-
p.call(r, u) && r[u] && (e =
|
|
326
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
327
327
|
return e;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function i(r, e) {
|
|
330
330
|
return e ? r ? r + " " + e : r + e : r;
|
|
331
331
|
}
|
|
332
332
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
333
333
|
})();
|
|
334
|
-
})(
|
|
334
|
+
})(or)), or.exports;
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
const
|
|
336
|
+
var Dt = It();
|
|
337
|
+
const Bt = /* @__PURE__ */ Et(Dt), Lt = "_rotate_12t9p_1", Tt = "_dash_12t9p_1", Wt = {
|
|
338
338
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
339
|
-
rotate:
|
|
339
|
+
rotate: Lt,
|
|
340
340
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
341
341
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
342
342
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
343
343
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
344
344
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
345
345
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
346
|
-
dash:
|
|
346
|
+
dash: Tt,
|
|
347
347
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
348
348
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
349
|
-
},
|
|
349
|
+
}, cr = Bt.bind(Wt), A = "purpur-spinner", Zt = {
|
|
350
350
|
SM: "sm"
|
|
351
|
-
},
|
|
351
|
+
}, Zr = ({
|
|
352
352
|
disabled: t = !1,
|
|
353
353
|
negative: p = !1,
|
|
354
|
-
size: n =
|
|
355
|
-
className:
|
|
356
|
-
...
|
|
357
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
354
|
+
size: n = Zt.SM,
|
|
355
|
+
className: a,
|
|
356
|
+
...i
|
|
357
|
+
}) => /* @__PURE__ */ s("div", { className: cr(A, `${A}--${n}`, a), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
358
358
|
"circle",
|
|
359
359
|
{
|
|
360
|
-
className:
|
|
360
|
+
className: cr(`${A}__circle`, {
|
|
361
361
|
[`${A}__circle--disabled`]: t,
|
|
362
362
|
[`${A}__circle--negative`]: p
|
|
363
363
|
}),
|
|
@@ -366,29 +366,29 @@ const It = /* @__PURE__ */ qt(Et), Dt = "_rotate_12t9p_1", Bt = "_dash_12t9p_1",
|
|
|
366
366
|
r: "20"
|
|
367
367
|
}
|
|
368
368
|
) }) });
|
|
369
|
-
|
|
370
|
-
function
|
|
369
|
+
Zr.displayName = "Spinner";
|
|
370
|
+
function Gt(t) {
|
|
371
371
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var _r = { exports: {} };
|
|
374
374
|
/*!
|
|
375
375
|
Copyright (c) 2018 Jed Watson.
|
|
376
376
|
Licensed under the MIT License (MIT), see
|
|
377
377
|
http://jedwatson.github.io/classnames
|
|
378
378
|
*/
|
|
379
|
-
var
|
|
380
|
-
function
|
|
381
|
-
return
|
|
379
|
+
var dr;
|
|
380
|
+
function Ft() {
|
|
381
|
+
return dr || (dr = 1, (function(t) {
|
|
382
382
|
(function() {
|
|
383
383
|
var p = {}.hasOwnProperty;
|
|
384
384
|
function n() {
|
|
385
385
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
386
386
|
var u = arguments[e];
|
|
387
|
-
u && (r =
|
|
387
|
+
u && (r = i(r, a.call(this, u)));
|
|
388
388
|
}
|
|
389
389
|
return r;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function a(r) {
|
|
392
392
|
if (typeof r == "string" || typeof r == "number")
|
|
393
393
|
return this && this[r] || r;
|
|
394
394
|
if (typeof r != "object")
|
|
@@ -399,18 +399,18 @@ function Zt() {
|
|
|
399
399
|
return r.toString();
|
|
400
400
|
var e = "";
|
|
401
401
|
for (var u in r)
|
|
402
|
-
p.call(r, u) && r[u] && (e =
|
|
402
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
403
403
|
return e;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function i(r, e) {
|
|
406
406
|
return e ? r ? r + " " + e : r + e : r;
|
|
407
407
|
}
|
|
408
408
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
409
409
|
})();
|
|
410
|
-
})(
|
|
410
|
+
})(_r)), _r.exports;
|
|
411
411
|
}
|
|
412
|
-
var
|
|
413
|
-
const
|
|
412
|
+
var Vt = Ft();
|
|
413
|
+
const Ht = /* @__PURE__ */ Gt(Vt), Kt = {
|
|
414
414
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
415
415
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
416
416
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -433,33 +433,33 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
433
433
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
434
434
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
435
435
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
436
|
-
},
|
|
436
|
+
}, fr = Ht.bind(Kt), j = "purpur-button", Gr = O(
|
|
437
437
|
({
|
|
438
438
|
children: t,
|
|
439
439
|
className: p,
|
|
440
440
|
disabled: n = !1,
|
|
441
|
-
fullWidth:
|
|
442
|
-
iconOnly:
|
|
441
|
+
fullWidth: a = !1,
|
|
442
|
+
iconOnly: i,
|
|
443
443
|
loading: r = !1,
|
|
444
444
|
negative: e = !1,
|
|
445
445
|
onClick: u,
|
|
446
446
|
size: _ = "md",
|
|
447
447
|
variant: o,
|
|
448
|
-
type:
|
|
448
|
+
type: f = "button",
|
|
449
449
|
...l
|
|
450
450
|
}, h) => {
|
|
451
|
-
if (
|
|
451
|
+
if (i && o === "destructive")
|
|
452
452
|
return null;
|
|
453
|
-
const y =
|
|
453
|
+
const y = fr(
|
|
454
454
|
[
|
|
455
455
|
j,
|
|
456
456
|
`${j}--${e ? `${o}-negative` : o}`,
|
|
457
457
|
`${j}--${_}`
|
|
458
458
|
],
|
|
459
459
|
{
|
|
460
|
-
[`${j}--icon-only`]:
|
|
460
|
+
[`${j}--icon-only`]: i,
|
|
461
461
|
[`${j}--negative`]: e,
|
|
462
|
-
[`${j}--full-width`]:
|
|
462
|
+
[`${j}--full-width`]: a,
|
|
463
463
|
[`${j}--disabled`]: n || r
|
|
464
464
|
},
|
|
465
465
|
p
|
|
@@ -470,19 +470,19 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
470
470
|
"button",
|
|
471
471
|
{
|
|
472
472
|
className: y,
|
|
473
|
-
type:
|
|
473
|
+
type: f,
|
|
474
474
|
ref: h,
|
|
475
475
|
"aria-disabled": m,
|
|
476
476
|
onClick: c,
|
|
477
477
|
...l,
|
|
478
478
|
children: [
|
|
479
479
|
r && /* @__PURE__ */ s(
|
|
480
|
-
|
|
480
|
+
Zr,
|
|
481
481
|
{
|
|
482
|
-
size: _ ===
|
|
482
|
+
size: _ === zt.LG ? "xs" : "xxs",
|
|
483
483
|
negative: e,
|
|
484
484
|
disabled: m,
|
|
485
|
-
className:
|
|
485
|
+
className: fr(`${j}__spinner`)
|
|
486
486
|
}
|
|
487
487
|
),
|
|
488
488
|
" ",
|
|
@@ -492,29 +492,29 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
492
492
|
);
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
|
-
|
|
496
|
-
function
|
|
495
|
+
Gr.displayName = "Button";
|
|
496
|
+
function Ut(t) {
|
|
497
497
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
498
498
|
}
|
|
499
|
-
var
|
|
499
|
+
var gr = { exports: {} };
|
|
500
500
|
/*!
|
|
501
501
|
Copyright (c) 2018 Jed Watson.
|
|
502
502
|
Licensed under the MIT License (MIT), see
|
|
503
503
|
http://jedwatson.github.io/classnames
|
|
504
504
|
*/
|
|
505
|
-
var
|
|
506
|
-
function
|
|
507
|
-
return
|
|
505
|
+
var hr;
|
|
506
|
+
function Xt() {
|
|
507
|
+
return hr || (hr = 1, (function(t) {
|
|
508
508
|
(function() {
|
|
509
509
|
var p = {}.hasOwnProperty;
|
|
510
510
|
function n() {
|
|
511
511
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
512
512
|
var u = arguments[e];
|
|
513
|
-
u && (r =
|
|
513
|
+
u && (r = i(r, a.call(this, u)));
|
|
514
514
|
}
|
|
515
515
|
return r;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function a(r) {
|
|
518
518
|
if (typeof r == "string" || typeof r == "number")
|
|
519
519
|
return this && this[r] || r;
|
|
520
520
|
if (typeof r != "object")
|
|
@@ -525,18 +525,18 @@ function Kt() {
|
|
|
525
525
|
return r.toString();
|
|
526
526
|
var e = "";
|
|
527
527
|
for (var u in r)
|
|
528
|
-
p.call(r, u) && r[u] && (e =
|
|
528
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
529
529
|
return e;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function i(r, e) {
|
|
532
532
|
return e ? r ? r + " " + e : r + e : r;
|
|
533
533
|
}
|
|
534
534
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
535
535
|
})();
|
|
536
|
-
})(
|
|
536
|
+
})(gr)), gr.exports;
|
|
537
537
|
}
|
|
538
|
-
var
|
|
539
|
-
const
|
|
538
|
+
var Yt = Xt();
|
|
539
|
+
const Jt = /* @__PURE__ */ Ut(Yt), Qt = {
|
|
540
540
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
541
541
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
542
542
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -544,50 +544,50 @@ const Yt = /* @__PURE__ */ Ht(Ut), Xt = {
|
|
|
544
544
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
545
545
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
546
546
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
547
|
-
},
|
|
547
|
+
}, re = Jt.bind(Qt), vr = "purpur-icon", te = "md", ee = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), ne = ({ content: t = "", title: p } = {}) => {
|
|
548
548
|
const n = [
|
|
549
549
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
550
550
|
{ name: "fill", value: "currentColor" },
|
|
551
551
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
552
552
|
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
553
|
-
],
|
|
554
|
-
return `<svg ${
|
|
555
|
-
},
|
|
556
|
-
const r =
|
|
557
|
-
content:
|
|
553
|
+
], a = p ? `<title>${p}</title>` : "";
|
|
554
|
+
return `<svg ${ee(n)}>${a}${t}</svg>`;
|
|
555
|
+
}, ue = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Fr = ({ svg: t, allyTitle: p, className: n, size: a = te, ...i }) => {
|
|
556
|
+
const r = ne({
|
|
557
|
+
content: ue(t.svg),
|
|
558
558
|
title: p
|
|
559
|
-
}), e =
|
|
560
|
-
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...
|
|
559
|
+
}), e = re(vr, `${vr}--${a}`, n);
|
|
560
|
+
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
561
561
|
};
|
|
562
|
-
|
|
563
|
-
const
|
|
562
|
+
Fr.displayName = "Icon";
|
|
563
|
+
const pe = {
|
|
564
564
|
name: "error-filled",
|
|
565
565
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
566
566
|
keywords: ["error-filled"],
|
|
567
567
|
category: "status"
|
|
568
568
|
};
|
|
569
|
-
function
|
|
569
|
+
function ie(t) {
|
|
570
570
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
571
571
|
}
|
|
572
|
-
var
|
|
572
|
+
var mr = { exports: {} };
|
|
573
573
|
/*!
|
|
574
574
|
Copyright (c) 2018 Jed Watson.
|
|
575
575
|
Licensed under the MIT License (MIT), see
|
|
576
576
|
http://jedwatson.github.io/classnames
|
|
577
577
|
*/
|
|
578
|
-
var
|
|
579
|
-
function
|
|
580
|
-
return
|
|
578
|
+
var br;
|
|
579
|
+
function ae() {
|
|
580
|
+
return br || (br = 1, (function(t) {
|
|
581
581
|
(function() {
|
|
582
582
|
var p = {}.hasOwnProperty;
|
|
583
583
|
function n() {
|
|
584
584
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
585
585
|
var u = arguments[e];
|
|
586
|
-
u && (r =
|
|
586
|
+
u && (r = i(r, a.call(this, u)));
|
|
587
587
|
}
|
|
588
588
|
return r;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function a(r) {
|
|
591
591
|
if (typeof r == "string" || typeof r == "number")
|
|
592
592
|
return this && this[r] || r;
|
|
593
593
|
if (typeof r != "object")
|
|
@@ -598,64 +598,64 @@ function pe() {
|
|
|
598
598
|
return r.toString();
|
|
599
599
|
var e = "";
|
|
600
600
|
for (var u in r)
|
|
601
|
-
p.call(r, u) && r[u] && (e =
|
|
601
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
602
602
|
return e;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function i(r, e) {
|
|
605
605
|
return e ? r ? r + " " + e : r + e : r;
|
|
606
606
|
}
|
|
607
607
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
608
608
|
})();
|
|
609
|
-
})(
|
|
609
|
+
})(mr)), mr.exports;
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
const
|
|
611
|
+
var se = ae();
|
|
612
|
+
const oe = /* @__PURE__ */ ie(se), le = {
|
|
613
613
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
614
614
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
615
615
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
616
|
-
},
|
|
616
|
+
}, yr = oe.bind(le), W = "purpur-field-error-text", ce = ({
|
|
617
617
|
children: t,
|
|
618
618
|
className: p,
|
|
619
619
|
negative: n = !1,
|
|
620
|
-
["aria-relevant"]:
|
|
621
|
-
...
|
|
620
|
+
["aria-relevant"]: a = "additions text",
|
|
621
|
+
...i
|
|
622
622
|
}) => /* @__PURE__ */ v(
|
|
623
623
|
"div",
|
|
624
624
|
{
|
|
625
|
-
className:
|
|
626
|
-
[`${
|
|
625
|
+
className: yr(p, W, {
|
|
626
|
+
[`${W}--negative`]: n
|
|
627
627
|
}),
|
|
628
628
|
"aria-live": "assertive",
|
|
629
|
-
"aria-relevant":
|
|
630
|
-
...
|
|
629
|
+
"aria-relevant": a,
|
|
630
|
+
...i,
|
|
631
631
|
children: [
|
|
632
|
-
/* @__PURE__ */ s(
|
|
632
|
+
/* @__PURE__ */ s(Fr, { svg: pe, size: "xs", className: yr(`${W}__icon`) }),
|
|
633
633
|
t
|
|
634
634
|
]
|
|
635
635
|
}
|
|
636
636
|
);
|
|
637
|
-
function
|
|
637
|
+
function _e(t) {
|
|
638
638
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
639
639
|
}
|
|
640
|
-
var
|
|
640
|
+
var xr = { exports: {} };
|
|
641
641
|
/*!
|
|
642
642
|
Copyright (c) 2018 Jed Watson.
|
|
643
643
|
Licensed under the MIT License (MIT), see
|
|
644
644
|
http://jedwatson.github.io/classnames
|
|
645
645
|
*/
|
|
646
|
-
var
|
|
647
|
-
function
|
|
648
|
-
return
|
|
646
|
+
var wr;
|
|
647
|
+
function de() {
|
|
648
|
+
return wr || (wr = 1, (function(t) {
|
|
649
649
|
(function() {
|
|
650
650
|
var p = {}.hasOwnProperty;
|
|
651
651
|
function n() {
|
|
652
652
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
653
653
|
var u = arguments[e];
|
|
654
|
-
u && (r =
|
|
654
|
+
u && (r = i(r, a.call(this, u)));
|
|
655
655
|
}
|
|
656
656
|
return r;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function a(r) {
|
|
659
659
|
if (typeof r == "string" || typeof r == "number")
|
|
660
660
|
return this && this[r] || r;
|
|
661
661
|
if (typeof r != "object")
|
|
@@ -666,57 +666,57 @@ function ce() {
|
|
|
666
666
|
return r.toString();
|
|
667
667
|
var e = "";
|
|
668
668
|
for (var u in r)
|
|
669
|
-
p.call(r, u) && r[u] && (e =
|
|
669
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
670
670
|
return e;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function i(r, e) {
|
|
673
673
|
return e ? r ? r + " " + e : r + e : r;
|
|
674
674
|
}
|
|
675
675
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
676
676
|
})();
|
|
677
|
-
})(
|
|
677
|
+
})(xr)), xr.exports;
|
|
678
678
|
}
|
|
679
|
-
var
|
|
680
|
-
const
|
|
679
|
+
var fe = de();
|
|
680
|
+
const ge = /* @__PURE__ */ _e(fe), he = {
|
|
681
681
|
"purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
|
|
682
682
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
|
|
683
683
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
|
|
684
|
-
},
|
|
684
|
+
}, ve = ge.bind(he), Z = "purpur-field-helper-text", me = ({
|
|
685
685
|
children: t,
|
|
686
686
|
className: p,
|
|
687
687
|
disabled: n,
|
|
688
|
-
id:
|
|
689
|
-
negative:
|
|
688
|
+
id: a,
|
|
689
|
+
negative: i,
|
|
690
690
|
...r
|
|
691
691
|
}) => {
|
|
692
|
-
const e =
|
|
693
|
-
[`${
|
|
694
|
-
[`${
|
|
692
|
+
const e = ve(p, Z, {
|
|
693
|
+
[`${Z}--disabled`]: n,
|
|
694
|
+
[`${Z}--negative`]: i
|
|
695
695
|
});
|
|
696
|
-
return /* @__PURE__ */ s("span", { id:
|
|
696
|
+
return /* @__PURE__ */ s("span", { id: a, className: e, ...r, children: t });
|
|
697
697
|
};
|
|
698
|
-
function
|
|
698
|
+
function be(t) {
|
|
699
699
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
700
700
|
}
|
|
701
|
-
var
|
|
701
|
+
var $r = { exports: {} };
|
|
702
702
|
/*!
|
|
703
703
|
Copyright (c) 2018 Jed Watson.
|
|
704
704
|
Licensed under the MIT License (MIT), see
|
|
705
705
|
http://jedwatson.github.io/classnames
|
|
706
706
|
*/
|
|
707
|
-
var
|
|
708
|
-
function
|
|
709
|
-
return
|
|
707
|
+
var Sr;
|
|
708
|
+
function ye() {
|
|
709
|
+
return Sr || (Sr = 1, (function(t) {
|
|
710
710
|
(function() {
|
|
711
711
|
var p = {}.hasOwnProperty;
|
|
712
712
|
function n() {
|
|
713
713
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
714
714
|
var u = arguments[e];
|
|
715
|
-
u && (r =
|
|
715
|
+
u && (r = i(r, a.call(this, u)));
|
|
716
716
|
}
|
|
717
717
|
return r;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function a(r) {
|
|
720
720
|
if (typeof r == "string" || typeof r == "number")
|
|
721
721
|
return this && this[r] || r;
|
|
722
722
|
if (typeof r != "object")
|
|
@@ -727,18 +727,18 @@ function me() {
|
|
|
727
727
|
return r.toString();
|
|
728
728
|
var e = "";
|
|
729
729
|
for (var u in r)
|
|
730
|
-
p.call(r, u) && r[u] && (e =
|
|
730
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
731
731
|
return e;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function i(r, e) {
|
|
734
734
|
return e ? r ? r + " " + e : r + e : r;
|
|
735
735
|
}
|
|
736
736
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
737
737
|
})();
|
|
738
|
-
})(
|
|
738
|
+
})($r)), $r.exports;
|
|
739
739
|
}
|
|
740
|
-
var
|
|
741
|
-
const
|
|
740
|
+
var xe = ye();
|
|
741
|
+
const we = /* @__PURE__ */ be(xe), $e = {
|
|
742
742
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
743
743
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
744
744
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -746,102 +746,111 @@ const ye = /* @__PURE__ */ ve(be), xe = {
|
|
|
746
746
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
747
747
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
748
748
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
749
|
-
},
|
|
749
|
+
}, Se = we.bind($e), jr = "purpur-icon", je = "md", Ne = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Oe = ({ content: t = "", title: p } = {}) => {
|
|
750
750
|
const n = [
|
|
751
751
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
752
752
|
{ name: "fill", value: "currentColor" },
|
|
753
753
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
754
754
|
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
755
|
-
],
|
|
756
|
-
return `<svg ${
|
|
757
|
-
},
|
|
758
|
-
const r =
|
|
759
|
-
content:
|
|
755
|
+
], a = p ? `<title>${p}</title>` : "";
|
|
756
|
+
return `<svg ${Ne(n)}>${a}${t}</svg>`;
|
|
757
|
+
}, Pe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), K = ({ svg: t, allyTitle: p, className: n, size: a = je, ...i }) => {
|
|
758
|
+
const r = Oe({
|
|
759
|
+
content: Pe(t.svg),
|
|
760
760
|
title: p
|
|
761
|
-
}), e =
|
|
762
|
-
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...
|
|
761
|
+
}), e = Se(jr, `${jr}--${a}`, n);
|
|
762
|
+
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
763
763
|
};
|
|
764
|
-
|
|
765
|
-
const
|
|
764
|
+
K.displayName = "Icon";
|
|
765
|
+
const Ae = {
|
|
766
766
|
name: "check-circle-filled",
|
|
767
767
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
|
|
768
768
|
keywords: ["check-circle-filled"],
|
|
769
769
|
category: "status"
|
|
770
|
-
},
|
|
771
|
-
|
|
772
|
-
const
|
|
770
|
+
}, Vr = (t) => /* @__PURE__ */ s(K, { ...t, svg: Ae });
|
|
771
|
+
Vr.displayName = "IconCheckCircleFilled";
|
|
772
|
+
const Me = {
|
|
773
773
|
name: "close",
|
|
774
774
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
775
775
|
keywords: ["close"],
|
|
776
776
|
category: "utility"
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
function
|
|
777
|
+
}, Hr = (t) => /* @__PURE__ */ s(K, { ...t, svg: Me });
|
|
778
|
+
Hr.displayName = "IconClose";
|
|
779
|
+
function Nr(t, p) {
|
|
780
780
|
if (typeof t == "function")
|
|
781
781
|
return t(p);
|
|
782
782
|
t != null && (t.current = p);
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Ce(...t) {
|
|
785
785
|
return (p) => {
|
|
786
786
|
let n = !1;
|
|
787
|
-
const
|
|
788
|
-
const r =
|
|
787
|
+
const a = t.map((i) => {
|
|
788
|
+
const r = Nr(i, p);
|
|
789
789
|
return !n && typeof r == "function" && (n = !0), r;
|
|
790
790
|
});
|
|
791
791
|
if (n)
|
|
792
792
|
return () => {
|
|
793
|
-
for (let
|
|
794
|
-
const r = i
|
|
795
|
-
typeof r == "function" ? r() :
|
|
793
|
+
for (let i = 0; i < a.length; i++) {
|
|
794
|
+
const r = a[i];
|
|
795
|
+
typeof r == "function" ? r() : Nr(t[i], null);
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
+
var ke = Symbol.for("react.lazy"), I = d[" use ".trim().toString()];
|
|
801
|
+
function Re(t) {
|
|
802
|
+
return typeof t == "object" && t !== null && "then" in t;
|
|
803
|
+
}
|
|
804
|
+
function Kr(t) {
|
|
805
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === ke && "_payload" in t && Re(t._payload);
|
|
806
|
+
}
|
|
800
807
|
// @__NO_SIDE_EFFECTS__
|
|
801
|
-
function
|
|
802
|
-
const p = /* @__PURE__ */
|
|
803
|
-
|
|
808
|
+
function qe(t) {
|
|
809
|
+
const p = /* @__PURE__ */ ze(t), n = d.forwardRef((a, i) => {
|
|
810
|
+
let { children: r, ...e } = a;
|
|
811
|
+
Kr(r) && typeof I == "function" && (r = I(r._payload));
|
|
812
|
+
const u = d.Children.toArray(r), _ = u.find(Ie);
|
|
804
813
|
if (_) {
|
|
805
|
-
const o = _.props.children,
|
|
806
|
-
return /* @__PURE__ */ s(p, { ...e, ref:
|
|
814
|
+
const o = _.props.children, f = u.map((l) => l === _ ? d.Children.count(o) > 1 ? d.Children.only(null) : d.isValidElement(o) ? o.props.children : null : l);
|
|
815
|
+
return /* @__PURE__ */ s(p, { ...e, ref: i, children: d.isValidElement(o) ? d.cloneElement(o, void 0, f) : null });
|
|
807
816
|
}
|
|
808
|
-
return /* @__PURE__ */ s(p, { ...e, ref:
|
|
817
|
+
return /* @__PURE__ */ s(p, { ...e, ref: i, children: r });
|
|
809
818
|
});
|
|
810
819
|
return n.displayName = `${t}.Slot`, n;
|
|
811
820
|
}
|
|
812
821
|
// @__NO_SIDE_EFFECTS__
|
|
813
|
-
function
|
|
814
|
-
const p =
|
|
815
|
-
|
|
816
|
-
if (
|
|
817
|
-
const e =
|
|
818
|
-
return
|
|
822
|
+
function ze(t) {
|
|
823
|
+
const p = d.forwardRef((n, a) => {
|
|
824
|
+
let { children: i, ...r } = n;
|
|
825
|
+
if (Kr(i) && typeof I == "function" && (i = I(i._payload)), d.isValidElement(i)) {
|
|
826
|
+
const e = Be(i), u = De(r, i.props);
|
|
827
|
+
return i.type !== d.Fragment && (u.ref = a ? Ce(a, e) : e), d.cloneElement(i, u);
|
|
819
828
|
}
|
|
820
|
-
return
|
|
829
|
+
return d.Children.count(i) > 1 ? d.Children.only(null) : null;
|
|
821
830
|
});
|
|
822
831
|
return p.displayName = `${t}.SlotClone`, p;
|
|
823
832
|
}
|
|
824
|
-
var
|
|
825
|
-
function
|
|
826
|
-
return
|
|
833
|
+
var Ee = Symbol("radix.slottable");
|
|
834
|
+
function Ie(t) {
|
|
835
|
+
return d.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Ee;
|
|
827
836
|
}
|
|
828
|
-
function
|
|
837
|
+
function De(t, p) {
|
|
829
838
|
const n = { ...p };
|
|
830
|
-
for (const
|
|
831
|
-
const
|
|
832
|
-
/^on[A-Z]/.test(
|
|
839
|
+
for (const a in p) {
|
|
840
|
+
const i = t[a], r = p[a];
|
|
841
|
+
/^on[A-Z]/.test(a) ? i && r ? n[a] = (...e) => {
|
|
833
842
|
const u = r(...e);
|
|
834
|
-
return
|
|
835
|
-
} :
|
|
843
|
+
return i(...e), u;
|
|
844
|
+
} : i && (n[a] = i) : a === "style" ? n[a] = { ...i, ...r } : a === "className" && (n[a] = [i, r].filter(Boolean).join(" "));
|
|
836
845
|
}
|
|
837
846
|
return { ...t, ...n };
|
|
838
847
|
}
|
|
839
|
-
function
|
|
848
|
+
function Be(t) {
|
|
840
849
|
var p, n;
|
|
841
|
-
let
|
|
842
|
-
return
|
|
850
|
+
let a = (p = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : p.get, i = a && "isReactWarning" in a && a.isReactWarning;
|
|
851
|
+
return i ? t.ref : (a = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, i = a && "isReactWarning" in a && a.isReactWarning, i ? t.props.ref : t.props.ref || t.ref);
|
|
843
852
|
}
|
|
844
|
-
var
|
|
853
|
+
var Le = [
|
|
845
854
|
"a",
|
|
846
855
|
"button",
|
|
847
856
|
"div",
|
|
@@ -859,47 +868,47 @@ var Ee = [
|
|
|
859
868
|
"span",
|
|
860
869
|
"svg",
|
|
861
870
|
"ul"
|
|
862
|
-
],
|
|
863
|
-
const n = /* @__PURE__ */
|
|
864
|
-
const { asChild: e, ...u } =
|
|
871
|
+
], Te = Le.reduce((t, p) => {
|
|
872
|
+
const n = /* @__PURE__ */ qe(`Primitive.${p}`), a = d.forwardRef((i, r) => {
|
|
873
|
+
const { asChild: e, ...u } = i, _ = e ? n : p;
|
|
865
874
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(_, { ...u, ref: r });
|
|
866
875
|
});
|
|
867
|
-
return
|
|
868
|
-
}, {}),
|
|
869
|
-
|
|
876
|
+
return a.displayName = `Primitive.${p}`, { ...t, [p]: a };
|
|
877
|
+
}, {}), We = "Label", Ur = d.forwardRef((t, p) => /* @__PURE__ */ s(
|
|
878
|
+
Te.label,
|
|
870
879
|
{
|
|
871
880
|
...t,
|
|
872
881
|
ref: p,
|
|
873
882
|
onMouseDown: (n) => {
|
|
874
|
-
var
|
|
875
|
-
n.target.closest("button, input, select, textarea") || ((
|
|
883
|
+
var a;
|
|
884
|
+
n.target.closest("button, input, select, textarea") || ((a = t.onMouseDown) == null || a.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
|
|
876
885
|
}
|
|
877
886
|
}
|
|
878
887
|
));
|
|
879
|
-
|
|
880
|
-
var
|
|
881
|
-
function
|
|
888
|
+
Ur.displayName = We;
|
|
889
|
+
var Ze = Ur;
|
|
890
|
+
function Ge(t) {
|
|
882
891
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
883
892
|
}
|
|
884
|
-
var
|
|
893
|
+
var Or = { exports: {} };
|
|
885
894
|
/*!
|
|
886
895
|
Copyright (c) 2018 Jed Watson.
|
|
887
896
|
Licensed under the MIT License (MIT), see
|
|
888
897
|
http://jedwatson.github.io/classnames
|
|
889
898
|
*/
|
|
890
|
-
var
|
|
891
|
-
function
|
|
892
|
-
return
|
|
899
|
+
var Pr;
|
|
900
|
+
function Fe() {
|
|
901
|
+
return Pr || (Pr = 1, (function(t) {
|
|
893
902
|
(function() {
|
|
894
903
|
var p = {}.hasOwnProperty;
|
|
895
904
|
function n() {
|
|
896
905
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
897
906
|
var u = arguments[e];
|
|
898
|
-
u && (r =
|
|
907
|
+
u && (r = i(r, a.call(this, u)));
|
|
899
908
|
}
|
|
900
909
|
return r;
|
|
901
910
|
}
|
|
902
|
-
function
|
|
911
|
+
function a(r) {
|
|
903
912
|
if (typeof r == "string" || typeof r == "number")
|
|
904
913
|
return this && this[r] || r;
|
|
905
914
|
if (typeof r != "object")
|
|
@@ -910,56 +919,56 @@ function Te() {
|
|
|
910
919
|
return r.toString();
|
|
911
920
|
var e = "";
|
|
912
921
|
for (var u in r)
|
|
913
|
-
p.call(r, u) && r[u] && (e =
|
|
922
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
914
923
|
return e;
|
|
915
924
|
}
|
|
916
|
-
function
|
|
925
|
+
function i(r, e) {
|
|
917
926
|
return e ? r ? r + " " + e : r + e : r;
|
|
918
927
|
}
|
|
919
928
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
920
929
|
})();
|
|
921
|
-
})(
|
|
930
|
+
})(Or)), Or.exports;
|
|
922
931
|
}
|
|
923
|
-
var
|
|
924
|
-
const
|
|
932
|
+
var Ve = Fe();
|
|
933
|
+
const He = /* @__PURE__ */ Ge(Ve), Ke = {
|
|
925
934
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
926
935
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
927
936
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
928
|
-
},
|
|
937
|
+
}, Ue = He.bind(Ke), G = "purpur-label", Xe = ({
|
|
929
938
|
children: t,
|
|
930
939
|
className: p,
|
|
931
940
|
disabled: n,
|
|
932
|
-
negative:
|
|
933
|
-
...
|
|
941
|
+
negative: a = !1,
|
|
942
|
+
...i
|
|
934
943
|
}) => {
|
|
935
|
-
const r =
|
|
936
|
-
[`${
|
|
937
|
-
[`${
|
|
944
|
+
const r = Ue(p, G, {
|
|
945
|
+
[`${G}--disabled`]: n,
|
|
946
|
+
[`${G}--negative`]: a
|
|
938
947
|
});
|
|
939
|
-
return /* @__PURE__ */ s(
|
|
948
|
+
return /* @__PURE__ */ s(Ze, { className: r, ...i, children: t });
|
|
940
949
|
};
|
|
941
|
-
function
|
|
950
|
+
function Ye(t) {
|
|
942
951
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
943
952
|
}
|
|
944
|
-
var
|
|
953
|
+
var Ar = { exports: {} };
|
|
945
954
|
/*!
|
|
946
955
|
Copyright (c) 2018 Jed Watson.
|
|
947
956
|
Licensed under the MIT License (MIT), see
|
|
948
957
|
http://jedwatson.github.io/classnames
|
|
949
958
|
*/
|
|
950
|
-
var
|
|
951
|
-
function
|
|
952
|
-
return
|
|
959
|
+
var Mr;
|
|
960
|
+
function Je() {
|
|
961
|
+
return Mr || (Mr = 1, (function(t) {
|
|
953
962
|
(function() {
|
|
954
963
|
var p = {}.hasOwnProperty;
|
|
955
964
|
function n() {
|
|
956
965
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
957
966
|
var u = arguments[e];
|
|
958
|
-
u && (r =
|
|
967
|
+
u && (r = i(r, a.call(this, u)));
|
|
959
968
|
}
|
|
960
969
|
return r;
|
|
961
970
|
}
|
|
962
|
-
function
|
|
971
|
+
function a(r) {
|
|
963
972
|
if (typeof r == "string" || typeof r == "number")
|
|
964
973
|
return this && this[r] || r;
|
|
965
974
|
if (typeof r != "object")
|
|
@@ -970,41 +979,41 @@ function Ke() {
|
|
|
970
979
|
return r.toString();
|
|
971
980
|
var e = "";
|
|
972
981
|
for (var u in r)
|
|
973
|
-
p.call(r, u) && r[u] && (e =
|
|
982
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
974
983
|
return e;
|
|
975
984
|
}
|
|
976
|
-
function
|
|
985
|
+
function i(r, e) {
|
|
977
986
|
return e ? r ? r + " " + e : r + e : r;
|
|
978
987
|
}
|
|
979
988
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
980
989
|
})();
|
|
981
|
-
})(
|
|
990
|
+
})(Ar)), Ar.exports;
|
|
982
991
|
}
|
|
983
|
-
var
|
|
984
|
-
const
|
|
992
|
+
var Qe = Je();
|
|
993
|
+
const rn = /* @__PURE__ */ Ye(Qe), tn = "_rotate_12t9p_1", en = "_dash_12t9p_1", nn = {
|
|
985
994
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
986
|
-
rotate:
|
|
995
|
+
rotate: tn,
|
|
987
996
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
988
997
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
989
998
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
990
999
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
991
1000
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
992
1001
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
993
|
-
dash:
|
|
1002
|
+
dash: en,
|
|
994
1003
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
995
1004
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
996
|
-
},
|
|
1005
|
+
}, Cr = rn.bind(nn), M = "purpur-spinner", un = {
|
|
997
1006
|
SM: "sm"
|
|
998
|
-
},
|
|
1007
|
+
}, Xr = ({
|
|
999
1008
|
disabled: t = !1,
|
|
1000
1009
|
negative: p = !1,
|
|
1001
|
-
size: n =
|
|
1002
|
-
className:
|
|
1003
|
-
...
|
|
1004
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
1010
|
+
size: n = un.SM,
|
|
1011
|
+
className: a,
|
|
1012
|
+
...i
|
|
1013
|
+
}) => /* @__PURE__ */ s("div", { className: Cr(M, `${M}--${n}`, a), ...i, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
1005
1014
|
"circle",
|
|
1006
1015
|
{
|
|
1007
|
-
className:
|
|
1016
|
+
className: Cr(`${M}__circle`, {
|
|
1008
1017
|
[`${M}__circle--disabled`]: t,
|
|
1009
1018
|
[`${M}__circle--negative`]: p
|
|
1010
1019
|
}),
|
|
@@ -1013,29 +1022,29 @@ const Ye = /* @__PURE__ */ He(Ue), Xe = "_rotate_12t9p_1", Je = "_dash_12t9p_1",
|
|
|
1013
1022
|
r: "20"
|
|
1014
1023
|
}
|
|
1015
1024
|
) }) });
|
|
1016
|
-
|
|
1017
|
-
function
|
|
1025
|
+
Xr.displayName = "Spinner";
|
|
1026
|
+
function pn(t) {
|
|
1018
1027
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1019
1028
|
}
|
|
1020
|
-
var
|
|
1029
|
+
var kr = { exports: {} };
|
|
1021
1030
|
/*!
|
|
1022
1031
|
Copyright (c) 2018 Jed Watson.
|
|
1023
1032
|
Licensed under the MIT License (MIT), see
|
|
1024
1033
|
http://jedwatson.github.io/classnames
|
|
1025
1034
|
*/
|
|
1026
|
-
var
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1035
|
+
var Rr;
|
|
1036
|
+
function an() {
|
|
1037
|
+
return Rr || (Rr = 1, (function(t) {
|
|
1029
1038
|
(function() {
|
|
1030
1039
|
var p = {}.hasOwnProperty;
|
|
1031
1040
|
function n() {
|
|
1032
1041
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1033
1042
|
var u = arguments[e];
|
|
1034
|
-
u && (r =
|
|
1043
|
+
u && (r = i(r, a.call(this, u)));
|
|
1035
1044
|
}
|
|
1036
1045
|
return r;
|
|
1037
1046
|
}
|
|
1038
|
-
function
|
|
1047
|
+
function a(r) {
|
|
1039
1048
|
if (typeof r == "string" || typeof r == "number")
|
|
1040
1049
|
return this && this[r] || r;
|
|
1041
1050
|
if (typeof r != "object")
|
|
@@ -1046,18 +1055,18 @@ function en() {
|
|
|
1046
1055
|
return r.toString();
|
|
1047
1056
|
var e = "";
|
|
1048
1057
|
for (var u in r)
|
|
1049
|
-
p.call(r, u) && r[u] && (e =
|
|
1058
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
1050
1059
|
return e;
|
|
1051
1060
|
}
|
|
1052
|
-
function
|
|
1061
|
+
function i(r, e) {
|
|
1053
1062
|
return e ? r ? r + " " + e : r + e : r;
|
|
1054
1063
|
}
|
|
1055
1064
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1056
1065
|
})();
|
|
1057
|
-
})(
|
|
1066
|
+
})(kr)), kr.exports;
|
|
1058
1067
|
}
|
|
1059
|
-
var
|
|
1060
|
-
const
|
|
1068
|
+
var sn = an();
|
|
1069
|
+
const on = /* @__PURE__ */ pn(sn), ln = {
|
|
1061
1070
|
"purpur-text-field": "_purpur-text-field_3gl1k_1",
|
|
1062
1071
|
"purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
|
|
1063
1072
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
|
|
@@ -1074,33 +1083,33 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1074
1083
|
"purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
|
|
1075
1084
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
|
|
1076
1085
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
|
|
1077
|
-
},
|
|
1086
|
+
}, cn = (t) => pt(t), w = on.bind(ln), g = "purpur-text-field", Yr = O(
|
|
1078
1087
|
({
|
|
1079
1088
|
["data-testid"]: t,
|
|
1080
1089
|
className: p,
|
|
1081
1090
|
clearButtonAriaLabel: n,
|
|
1082
|
-
beforeField:
|
|
1083
|
-
afterField:
|
|
1091
|
+
beforeField: a,
|
|
1092
|
+
afterField: i,
|
|
1084
1093
|
endAdornment: r,
|
|
1085
1094
|
errorText: e,
|
|
1086
1095
|
helperText: u,
|
|
1087
1096
|
hideRequiredAsterisk: _ = !1,
|
|
1088
1097
|
label: o,
|
|
1089
|
-
loading:
|
|
1098
|
+
loading: f = !1,
|
|
1090
1099
|
onClear: l,
|
|
1091
1100
|
startAdornment: h,
|
|
1092
1101
|
valid: y = !1,
|
|
1093
1102
|
...c
|
|
1094
1103
|
}, m) => {
|
|
1095
1104
|
var $;
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1098
|
-
},
|
|
1105
|
+
const rt = ut(), D = c.id ?? rt, x = (b) => t ? `${t}-${b}` : void 0, Y = y && !e, B = u ? `${D}-helper-text` : void 0, L = [h].filter((b) => !!b), J = (typeof c.value == "number" ? c.value !== void 0 : ($ = c.value) == null ? void 0 : $.length) && !c.disabled && !c.readOnly && !f && l && n, Q = cn(null), tt = (b) => {
|
|
1106
|
+
Q.current = b, typeof m == "function" ? m(b) : m && (m.current = b);
|
|
1107
|
+
}, et = () => {
|
|
1099
1108
|
var b;
|
|
1100
|
-
l == null || l(), (b =
|
|
1101
|
-
},
|
|
1102
|
-
|
|
1103
|
-
|
|
1109
|
+
l == null || l(), (b = Q.current) == null || b.focus();
|
|
1110
|
+
}, T = [
|
|
1111
|
+
f && /* @__PURE__ */ s(
|
|
1112
|
+
Xr,
|
|
1104
1113
|
{
|
|
1105
1114
|
disabled: c.disabled,
|
|
1106
1115
|
size: "xs",
|
|
@@ -1108,40 +1117,40 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1108
1117
|
},
|
|
1109
1118
|
"spinner"
|
|
1110
1119
|
),
|
|
1111
|
-
|
|
1112
|
-
|
|
1120
|
+
J && /* @__PURE__ */ s(
|
|
1121
|
+
Gr,
|
|
1113
1122
|
{
|
|
1114
1123
|
variant: "tertiary-purple",
|
|
1115
|
-
onClick:
|
|
1124
|
+
onClick: et,
|
|
1116
1125
|
iconOnly: !0,
|
|
1117
1126
|
"aria-label": n ?? "",
|
|
1118
1127
|
"data-testid": x("clear-button"),
|
|
1119
1128
|
tabIndex: -1,
|
|
1120
|
-
children: /* @__PURE__ */ s(
|
|
1129
|
+
children: /* @__PURE__ */ s(Hr, { size: "xs" })
|
|
1121
1130
|
},
|
|
1122
1131
|
"clear-button"
|
|
1123
1132
|
),
|
|
1124
1133
|
Y && /* @__PURE__ */ s(
|
|
1125
|
-
|
|
1134
|
+
Vr,
|
|
1126
1135
|
{
|
|
1127
1136
|
"data-testid": x("valid-icon"),
|
|
1128
|
-
className: w(`${
|
|
1137
|
+
className: w(`${g}__valid-icon`)
|
|
1129
1138
|
},
|
|
1130
1139
|
"valid-icon"
|
|
1131
1140
|
)
|
|
1132
|
-
].filter((b) => !!b),
|
|
1133
|
-
[`${
|
|
1134
|
-
[`${
|
|
1135
|
-
[`${
|
|
1136
|
-
[`${
|
|
1137
|
-
[`${
|
|
1141
|
+
].filter((b) => !!b), nt = w(`${g}__input-container`, {
|
|
1142
|
+
[`${g}__input-container--start-adornment`]: L.length,
|
|
1143
|
+
[`${g}__input-container--end-adornment`]: T.length || r,
|
|
1144
|
+
[`${g}__input-container--disabled`]: c.disabled,
|
|
1145
|
+
[`${g}__input-container--has-clear-button`]: J,
|
|
1146
|
+
[`${g}__input-container--readonly`]: c.readOnly && !c.disabled
|
|
1138
1147
|
});
|
|
1139
|
-
return /* @__PURE__ */ v("div", { className: w(p,
|
|
1148
|
+
return /* @__PURE__ */ v("div", { className: w(p, g), children: [
|
|
1140
1149
|
o && /* @__PURE__ */ v(
|
|
1141
|
-
|
|
1150
|
+
Xe,
|
|
1142
1151
|
{
|
|
1143
|
-
htmlFor:
|
|
1144
|
-
className: w(`${
|
|
1152
|
+
htmlFor: D,
|
|
1153
|
+
className: w(`${g}__label`),
|
|
1145
1154
|
"data-testid": x("label"),
|
|
1146
1155
|
disabled: c.disabled,
|
|
1147
1156
|
children: [
|
|
@@ -1150,78 +1159,78 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1150
1159
|
]
|
|
1151
1160
|
}
|
|
1152
1161
|
),
|
|
1153
|
-
/* @__PURE__ */ v("div", { className: w(`${
|
|
1154
|
-
!!
|
|
1155
|
-
/* @__PURE__ */ v("div", { className:
|
|
1156
|
-
!!
|
|
1162
|
+
/* @__PURE__ */ v("div", { className: w(`${g}__field-row`), children: [
|
|
1163
|
+
!!a && a,
|
|
1164
|
+
/* @__PURE__ */ v("div", { className: nt, children: [
|
|
1165
|
+
!!L.length && /* @__PURE__ */ s(
|
|
1157
1166
|
"div",
|
|
1158
1167
|
{
|
|
1159
1168
|
"data-testid": x("start-adornments"),
|
|
1160
|
-
className: w(`${
|
|
1161
|
-
children:
|
|
1169
|
+
className: w(`${g}__adornment-container`),
|
|
1170
|
+
children: L
|
|
1162
1171
|
}
|
|
1163
1172
|
),
|
|
1164
1173
|
/* @__PURE__ */ s(
|
|
1165
1174
|
"input",
|
|
1166
1175
|
{
|
|
1167
1176
|
...c,
|
|
1168
|
-
id:
|
|
1169
|
-
ref:
|
|
1177
|
+
id: D,
|
|
1178
|
+
ref: tt,
|
|
1170
1179
|
"data-testid": x("input"),
|
|
1171
|
-
"aria-describedby": c["aria-describedby"] ||
|
|
1180
|
+
"aria-describedby": c["aria-describedby"] || B,
|
|
1172
1181
|
"aria-invalid": c["aria-invalid"] || !!e,
|
|
1173
1182
|
className: w([
|
|
1174
|
-
`${
|
|
1183
|
+
`${g}__input`,
|
|
1175
1184
|
{
|
|
1176
|
-
[`${
|
|
1177
|
-
[`${
|
|
1185
|
+
[`${g}__input--valid`]: Y,
|
|
1186
|
+
[`${g}__input--error`]: !!e
|
|
1178
1187
|
}
|
|
1179
1188
|
])
|
|
1180
1189
|
}
|
|
1181
1190
|
),
|
|
1182
|
-
/* @__PURE__ */ s("div", { className: w(`${
|
|
1183
|
-
(!!
|
|
1191
|
+
/* @__PURE__ */ s("div", { className: w(`${g}__frame`) }),
|
|
1192
|
+
(!!T.length || r) && /* @__PURE__ */ v(
|
|
1184
1193
|
"div",
|
|
1185
1194
|
{
|
|
1186
1195
|
"data-testid": x("end-adornments"),
|
|
1187
|
-
className: w(`${
|
|
1196
|
+
className: w(`${g}__adornment-container`),
|
|
1188
1197
|
children: [
|
|
1189
|
-
|
|
1198
|
+
T,
|
|
1190
1199
|
r
|
|
1191
1200
|
]
|
|
1192
1201
|
}
|
|
1193
1202
|
)
|
|
1194
1203
|
] }),
|
|
1195
|
-
!!
|
|
1204
|
+
!!i && i
|
|
1196
1205
|
] }),
|
|
1197
|
-
|
|
1198
|
-
e && /* @__PURE__ */ s(
|
|
1206
|
+
B && /* @__PURE__ */ s(me, { "data-testid": x("helper-text"), id: B, children: u }),
|
|
1207
|
+
e && /* @__PURE__ */ s(ce, { "data-testid": x("error-text"), children: e })
|
|
1199
1208
|
] });
|
|
1200
1209
|
}
|
|
1201
1210
|
);
|
|
1202
|
-
|
|
1203
|
-
function
|
|
1211
|
+
Yr.displayName = "TextField";
|
|
1212
|
+
function _n(t) {
|
|
1204
1213
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1205
1214
|
}
|
|
1206
|
-
var
|
|
1215
|
+
var F = { exports: {} };
|
|
1207
1216
|
/*!
|
|
1208
1217
|
Copyright (c) 2018 Jed Watson.
|
|
1209
1218
|
Licensed under the MIT License (MIT), see
|
|
1210
1219
|
http://jedwatson.github.io/classnames
|
|
1211
1220
|
*/
|
|
1212
|
-
var
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1221
|
+
var qr;
|
|
1222
|
+
function dn() {
|
|
1223
|
+
return qr || (qr = 1, (function(t) {
|
|
1215
1224
|
(function() {
|
|
1216
1225
|
var p = {}.hasOwnProperty;
|
|
1217
1226
|
function n() {
|
|
1218
1227
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1219
1228
|
var u = arguments[e];
|
|
1220
|
-
u && (r =
|
|
1229
|
+
u && (r = i(r, a.call(this, u)));
|
|
1221
1230
|
}
|
|
1222
1231
|
return r;
|
|
1223
1232
|
}
|
|
1224
|
-
function
|
|
1233
|
+
function a(r) {
|
|
1225
1234
|
if (typeof r == "string" || typeof r == "number")
|
|
1226
1235
|
return this && this[r] || r;
|
|
1227
1236
|
if (typeof r != "object")
|
|
@@ -1232,49 +1241,49 @@ function on() {
|
|
|
1232
1241
|
return r.toString();
|
|
1233
1242
|
var e = "";
|
|
1234
1243
|
for (var u in r)
|
|
1235
|
-
p.call(r, u) && r[u] && (e =
|
|
1244
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
1236
1245
|
return e;
|
|
1237
1246
|
}
|
|
1238
|
-
function
|
|
1247
|
+
function i(r, e) {
|
|
1239
1248
|
return e ? r ? r + " " + e : r + e : r;
|
|
1240
1249
|
}
|
|
1241
1250
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1242
1251
|
})();
|
|
1243
|
-
})(
|
|
1252
|
+
})(F)), F.exports;
|
|
1244
1253
|
}
|
|
1245
|
-
var
|
|
1246
|
-
const
|
|
1254
|
+
var fn = dn();
|
|
1255
|
+
const U = /* @__PURE__ */ _n(fn), C = {
|
|
1247
1256
|
WEAK: "weak",
|
|
1248
1257
|
MEDIUM: "medium",
|
|
1249
1258
|
STRONG: "strong"
|
|
1250
1259
|
}, N = {
|
|
1251
1260
|
PASSWORD: "password",
|
|
1252
1261
|
TEXT: "text"
|
|
1253
|
-
},
|
|
1262
|
+
}, gn = {
|
|
1254
1263
|
"purpur-password-field": "_purpur-password-field_co7kv_1"
|
|
1255
1264
|
};
|
|
1256
|
-
function
|
|
1265
|
+
function hn(t) {
|
|
1257
1266
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1258
1267
|
}
|
|
1259
|
-
var
|
|
1268
|
+
var zr = { exports: {} };
|
|
1260
1269
|
/*!
|
|
1261
1270
|
Copyright (c) 2018 Jed Watson.
|
|
1262
1271
|
Licensed under the MIT License (MIT), see
|
|
1263
1272
|
http://jedwatson.github.io/classnames
|
|
1264
1273
|
*/
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1274
|
+
var Er;
|
|
1275
|
+
function vn() {
|
|
1276
|
+
return Er || (Er = 1, (function(t) {
|
|
1268
1277
|
(function() {
|
|
1269
1278
|
var p = {}.hasOwnProperty;
|
|
1270
1279
|
function n() {
|
|
1271
1280
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
1272
1281
|
var u = arguments[e];
|
|
1273
|
-
u && (r =
|
|
1282
|
+
u && (r = i(r, a.call(this, u)));
|
|
1274
1283
|
}
|
|
1275
1284
|
return r;
|
|
1276
1285
|
}
|
|
1277
|
-
function
|
|
1286
|
+
function a(r) {
|
|
1278
1287
|
if (typeof r == "string" || typeof r == "number")
|
|
1279
1288
|
return this && this[r] || r;
|
|
1280
1289
|
if (typeof r != "object")
|
|
@@ -1285,18 +1294,18 @@ function dn() {
|
|
|
1285
1294
|
return r.toString();
|
|
1286
1295
|
var e = "";
|
|
1287
1296
|
for (var u in r)
|
|
1288
|
-
p.call(r, u) && r[u] && (e =
|
|
1297
|
+
p.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
|
|
1289
1298
|
return e;
|
|
1290
1299
|
}
|
|
1291
|
-
function
|
|
1300
|
+
function i(r, e) {
|
|
1292
1301
|
return e ? r ? r + " " + e : r + e : r;
|
|
1293
1302
|
}
|
|
1294
1303
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1295
1304
|
})();
|
|
1296
|
-
})(
|
|
1305
|
+
})(zr)), zr.exports;
|
|
1297
1306
|
}
|
|
1298
|
-
var
|
|
1299
|
-
const
|
|
1307
|
+
var mn = vn();
|
|
1308
|
+
const bn = /* @__PURE__ */ hn(mn), yn = {
|
|
1300
1309
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
1301
1310
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
1302
1311
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -1311,95 +1320,95 @@ const gn = /* @__PURE__ */ _n(fn), hn = {
|
|
|
1311
1320
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
1312
1321
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
1313
1322
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1314
|
-
},
|
|
1323
|
+
}, xn = bn.bind(yn), wn = {
|
|
1315
1324
|
PARAGRAPH100: "paragraph-100"
|
|
1316
|
-
}, k = "purpur-paragraph",
|
|
1325
|
+
}, k = "purpur-paragraph", Jr = ({
|
|
1317
1326
|
children: t,
|
|
1318
1327
|
className: p,
|
|
1319
1328
|
disabled: n,
|
|
1320
|
-
enableHyphenation:
|
|
1321
|
-
negative:
|
|
1322
|
-
variant: r =
|
|
1329
|
+
enableHyphenation: a = !1,
|
|
1330
|
+
negative: i = !1,
|
|
1331
|
+
variant: r = wn.PARAGRAPH100,
|
|
1323
1332
|
...e
|
|
1324
1333
|
}) => {
|
|
1325
|
-
const u =
|
|
1326
|
-
[`${k}--hyphens`]:
|
|
1334
|
+
const u = xn(p, k, `${k}--${r}`, {
|
|
1335
|
+
[`${k}--hyphens`]: a,
|
|
1327
1336
|
[`${k}--disabled`]: n,
|
|
1328
|
-
[`${k}--negative`]:
|
|
1337
|
+
[`${k}--negative`]: i
|
|
1329
1338
|
});
|
|
1330
1339
|
return /* @__PURE__ */ s("p", { ...e, className: u, children: t });
|
|
1331
1340
|
};
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1341
|
+
Jr.displayName = "Paragraph";
|
|
1342
|
+
const $n = {
|
|
1334
1343
|
"purpur-password-strength": "_purpur-password-strength_sa1ua_1",
|
|
1335
1344
|
"purpur-password-strength__indicator-container": "_purpur-password-strength__indicator-container_sa1ua_6",
|
|
1336
1345
|
"purpur-password-strength__password-strength-text--weak": "_purpur-password-strength__password-strength-text--weak_sa1ua_10",
|
|
1337
1346
|
"purpur-password-strength__password-strength-text--medium": "_purpur-password-strength__password-strength-text--medium_sa1ua_13",
|
|
1338
1347
|
"purpur-password-strength__password-strength-text--strong": "_purpur-password-strength__password-strength-text--strong_sa1ua_16",
|
|
1339
1348
|
"purpur-password-strength__password-strength-label": "_purpur-password-strength__password-strength-label_sa1ua_19"
|
|
1340
|
-
},
|
|
1349
|
+
}, Sn = {
|
|
1341
1350
|
"purpur-password-strength-indicator": "_purpur-password-strength-indicator_1o6zr_1",
|
|
1342
1351
|
"purpur-password-strength-indicator--active": "_purpur-password-strength-indicator--active_1o6zr_7",
|
|
1343
1352
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1344
1353
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1345
1354
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1346
|
-
},
|
|
1355
|
+
}, jn = U.bind(Sn), V = "purpur-password-strength-indicator", E = O(
|
|
1347
1356
|
({
|
|
1348
1357
|
["data-testid"]: t = "password-strength-indicator",
|
|
1349
1358
|
active: p,
|
|
1350
1359
|
className: n,
|
|
1351
|
-
passwordStrength:
|
|
1352
|
-
...
|
|
1360
|
+
passwordStrength: a,
|
|
1361
|
+
...i
|
|
1353
1362
|
}, r) => {
|
|
1354
|
-
const e =
|
|
1363
|
+
const e = jn(
|
|
1355
1364
|
n,
|
|
1356
|
-
|
|
1357
|
-
{ [`${
|
|
1358
|
-
{ [`${
|
|
1365
|
+
V,
|
|
1366
|
+
{ [`${V}--${a}`]: a },
|
|
1367
|
+
{ [`${V}--active`]: p }
|
|
1359
1368
|
);
|
|
1360
|
-
return /* @__PURE__ */ s("div", { ...
|
|
1369
|
+
return /* @__PURE__ */ s("div", { ...i, "data-testid": t, className: e, ref: r });
|
|
1361
1370
|
}
|
|
1362
1371
|
);
|
|
1363
1372
|
E.displayName = "PasswordStrengthIndicator";
|
|
1364
|
-
const
|
|
1365
|
-
const [
|
|
1373
|
+
const Nn = (t, p, n, a) => {
|
|
1374
|
+
const [i, r] = z(0), [e, u] = z(), [_, o] = z(void 0), f = it(
|
|
1366
1375
|
() => ({
|
|
1367
1376
|
0: [C.WEAK, p],
|
|
1368
1377
|
1: [C.WEAK, p],
|
|
1369
1378
|
2: [C.MEDIUM, n],
|
|
1370
|
-
3: [C.STRONG,
|
|
1371
|
-
4: [C.STRONG,
|
|
1379
|
+
3: [C.STRONG, a],
|
|
1380
|
+
4: [C.STRONG, a]
|
|
1372
1381
|
}),
|
|
1373
|
-
[p, n,
|
|
1382
|
+
[p, n, a]
|
|
1374
1383
|
);
|
|
1375
|
-
return
|
|
1384
|
+
return at(() => {
|
|
1376
1385
|
(async () => {
|
|
1377
1386
|
if (!t)
|
|
1378
1387
|
r(0), u(void 0), o(void 0);
|
|
1379
1388
|
else {
|
|
1380
|
-
const { default: l } = await import("./main-
|
|
1389
|
+
const { default: l } = await import("./main-4qdMai51.mjs").then((m) => m.m), { score: h } = l(t), [y, c] = f[h];
|
|
1381
1390
|
r(h), u(y), o(c);
|
|
1382
1391
|
}
|
|
1383
1392
|
})();
|
|
1384
|
-
}, [t,
|
|
1385
|
-
score:
|
|
1393
|
+
}, [t, f]), {
|
|
1394
|
+
score: i,
|
|
1386
1395
|
passwordStrength: e,
|
|
1387
1396
|
currentPasswordStrengthText: _
|
|
1388
1397
|
};
|
|
1389
|
-
}, q =
|
|
1398
|
+
}, q = U.bind($n), R = "purpur-password-strength", X = O(
|
|
1390
1399
|
({
|
|
1391
1400
|
["data-testid"]: t = "password-strength",
|
|
1392
1401
|
className: p,
|
|
1393
1402
|
value: n,
|
|
1394
|
-
label:
|
|
1395
|
-
weakText:
|
|
1403
|
+
label: a,
|
|
1404
|
+
weakText: i,
|
|
1396
1405
|
mediumText: r,
|
|
1397
1406
|
strongText: e,
|
|
1398
1407
|
...u
|
|
1399
1408
|
}, _) => {
|
|
1400
|
-
const o = q(p, R), { score:
|
|
1409
|
+
const o = q(p, R), { score: f, passwordStrength: l, currentPasswordStrengthText: h } = Nn(
|
|
1401
1410
|
n,
|
|
1402
|
-
|
|
1411
|
+
i,
|
|
1403
1412
|
r,
|
|
1404
1413
|
e
|
|
1405
1414
|
);
|
|
@@ -1415,20 +1424,20 @@ const wn = (t, p, n, i) => {
|
|
|
1415
1424
|
/* @__PURE__ */ s(
|
|
1416
1425
|
E,
|
|
1417
1426
|
{
|
|
1418
|
-
active: !!l &&
|
|
1427
|
+
active: !!l && f > 1,
|
|
1419
1428
|
passwordStrength: l
|
|
1420
1429
|
}
|
|
1421
1430
|
),
|
|
1422
1431
|
/* @__PURE__ */ s(
|
|
1423
1432
|
E,
|
|
1424
1433
|
{
|
|
1425
|
-
active: !!l &&
|
|
1434
|
+
active: !!l && f > 2,
|
|
1426
1435
|
passwordStrength: l
|
|
1427
1436
|
}
|
|
1428
1437
|
)
|
|
1429
1438
|
] }),
|
|
1430
1439
|
/* @__PURE__ */ v(
|
|
1431
|
-
|
|
1440
|
+
Jr,
|
|
1432
1441
|
{
|
|
1433
1442
|
"aria-live": "polite",
|
|
1434
1443
|
"data-testid": `${t}-text`,
|
|
@@ -1437,7 +1446,7 @@ const wn = (t, p, n, i) => {
|
|
|
1437
1446
|
}),
|
|
1438
1447
|
children: [
|
|
1439
1448
|
/* @__PURE__ */ v("span", { className: q(`${R}__password-strength-label`), children: [
|
|
1440
|
-
|
|
1449
|
+
a,
|
|
1441
1450
|
h ? ": " : ""
|
|
1442
1451
|
] }),
|
|
1443
1452
|
h
|
|
@@ -1447,35 +1456,35 @@ const wn = (t, p, n, i) => {
|
|
|
1447
1456
|
] });
|
|
1448
1457
|
}
|
|
1449
1458
|
);
|
|
1450
|
-
|
|
1451
|
-
const
|
|
1459
|
+
X.displayName = "PasswordStrength";
|
|
1460
|
+
const Ir = U.bind(gn), Dr = "purpur-password-field", Qr = O(
|
|
1452
1461
|
({
|
|
1453
1462
|
["data-testid"]: t = "password-field",
|
|
1454
1463
|
children: p,
|
|
1455
1464
|
className: n,
|
|
1456
|
-
hidePasswordAriaLabel:
|
|
1457
|
-
onChange:
|
|
1465
|
+
hidePasswordAriaLabel: a,
|
|
1466
|
+
onChange: i,
|
|
1458
1467
|
showPasswordAriaLabel: r,
|
|
1459
1468
|
...e
|
|
1460
1469
|
}, u) => {
|
|
1461
|
-
const _ =
|
|
1462
|
-
|
|
1470
|
+
const _ = Ir(n, Dr), [o, f] = z(N.PASSWORD), l = async (c) => {
|
|
1471
|
+
i == null || i(c);
|
|
1463
1472
|
}, h = () => {
|
|
1464
|
-
|
|
1465
|
-
}, y = o === N.PASSWORD ?
|
|
1473
|
+
f(o === N.PASSWORD ? N.TEXT : N.PASSWORD);
|
|
1474
|
+
}, y = o === N.PASSWORD ? Wr : Tr;
|
|
1466
1475
|
return /* @__PURE__ */ v("div", { className: _, children: [
|
|
1467
1476
|
/* @__PURE__ */ s(
|
|
1468
|
-
|
|
1477
|
+
Yr,
|
|
1469
1478
|
{
|
|
1470
|
-
className:
|
|
1479
|
+
className: Ir(`${Dr}__text-field`),
|
|
1471
1480
|
"data-testid": t,
|
|
1472
1481
|
onChange: l,
|
|
1473
1482
|
ref: u,
|
|
1474
1483
|
type: o,
|
|
1475
1484
|
endAdornment: /* @__PURE__ */ s(
|
|
1476
|
-
|
|
1485
|
+
Lr,
|
|
1477
1486
|
{
|
|
1478
|
-
"aria-label": o === N.PASSWORD ? r :
|
|
1487
|
+
"aria-label": o === N.PASSWORD ? r : a,
|
|
1479
1488
|
"data-testid": `${t}-type-toggle-button`,
|
|
1480
1489
|
onClick: h,
|
|
1481
1490
|
size: "sm",
|
|
@@ -1491,12 +1500,12 @@ const Er = K.bind(cn), Ir = "purpur-password-field", Xr = O(
|
|
|
1491
1500
|
] });
|
|
1492
1501
|
}
|
|
1493
1502
|
);
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
const
|
|
1503
|
+
Qr.PasswordStrength = X;
|
|
1504
|
+
Qr.displayName = "PasswordField";
|
|
1505
|
+
const Mn = (t) => st(t) && (t == null ? void 0 : t.type) === X;
|
|
1497
1506
|
export {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1507
|
+
Qr as P,
|
|
1508
|
+
_n as g,
|
|
1509
|
+
Mn as i
|
|
1501
1510
|
};
|
|
1502
|
-
//# sourceMappingURL=password-field-
|
|
1511
|
+
//# sourceMappingURL=password-field-Ca6mfkQC.mjs.map
|