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