@auldrant/ui 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +125 -0
- package/NOTICES +49 -0
- package/README.md +8 -1
- package/dist/auldrant-ui.css +1 -1
- package/dist/auldrant-ui.js +658 -338
- package/dist/components/Dialog.d.ts +26 -0
- package/dist/components/DialogBase.d.ts +45 -0
- package/dist/components/Modal.d.ts +31 -0
- package/dist/components/Theme.d.ts +9 -0
- package/dist/index.d.ts +4 -1
- package/package.json +10 -3
package/dist/auldrant-ui.js
CHANGED
|
@@ -1,545 +1,865 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { signal as
|
|
4
|
-
|
|
1
|
+
import { jsx as r, jsxs as m, Fragment as se } from "preact/jsx-runtime";
|
|
2
|
+
import { useId as x, useRef as P, useEffect as A } from "preact/hooks";
|
|
3
|
+
import { signal as K, useSignal as E, effect as le } from "@preact/signals";
|
|
4
|
+
import { h as M, toChildArray as re } from "preact";
|
|
5
|
+
function v(...t) {
|
|
5
6
|
return t.filter(Boolean).join(" ");
|
|
6
7
|
}
|
|
7
|
-
function
|
|
8
|
+
function L(...t) {
|
|
8
9
|
return t.filter(Boolean).join(" ") || void 0;
|
|
9
10
|
}
|
|
10
|
-
const
|
|
11
|
-
button:
|
|
12
|
-
},
|
|
13
|
-
const { label: e, onClick:
|
|
14
|
-
return /* @__PURE__ */ r("button", { type:
|
|
15
|
-
},
|
|
16
|
-
card:
|
|
17
|
-
},
|
|
18
|
-
const { children: e, class:
|
|
19
|
-
return /* @__PURE__ */ r("div", { class:
|
|
20
|
-
},
|
|
21
|
-
field:
|
|
22
|
-
input:
|
|
23
|
-
error:
|
|
24
|
-
},
|
|
25
|
-
const { label: e, name:
|
|
26
|
-
return /* @__PURE__ */
|
|
11
|
+
const ae = "_button_4gn7y_1 _focus-ring_4u8pk_3 _disabled_4u8pk_8", oe = {
|
|
12
|
+
button: ae
|
|
13
|
+
}, G = (t) => {
|
|
14
|
+
const { label: e, onClick: s, type: n = "button", disabled: l, class: a } = t;
|
|
15
|
+
return /* @__PURE__ */ r("button", { type: n, class: v(oe.button, a), onClick: s, disabled: l, children: e });
|
|
16
|
+
}, ce = "_card_awzw5_1", ie = {
|
|
17
|
+
card: ce
|
|
18
|
+
}, Et = (t) => {
|
|
19
|
+
const { children: e, class: s } = t;
|
|
20
|
+
return /* @__PURE__ */ r("div", { class: v(ie.card, s), children: e });
|
|
21
|
+
}, de = "_field_17xwz_1", ue = "_input_17xwz_8 _check-input_4u8pk_32 _focus-ring_4u8pk_3 _disabled_4u8pk_8", _e = "_error_17xwz_12 _field-error_4u8pk_36", T = {
|
|
22
|
+
field: de,
|
|
23
|
+
input: ue,
|
|
24
|
+
error: _e
|
|
25
|
+
}, Dt = (t) => {
|
|
26
|
+
const { label: e, name: s, checked: n, required: l, disabled: a, error: o, onChange: c, class: i } = t, h = x(), p = `${h}-error`;
|
|
27
|
+
return /* @__PURE__ */ m("div", { class: v(T.field, i), children: [
|
|
27
28
|
/* @__PURE__ */ r(
|
|
28
29
|
"input",
|
|
29
30
|
{
|
|
30
31
|
id: h,
|
|
31
|
-
class:
|
|
32
|
+
class: T.input,
|
|
32
33
|
type: "checkbox",
|
|
33
|
-
name:
|
|
34
|
-
checked:
|
|
34
|
+
name: s,
|
|
35
|
+
checked: n,
|
|
35
36
|
required: l,
|
|
36
|
-
disabled:
|
|
37
|
-
"aria-invalid": !!
|
|
38
|
-
"aria-describedby":
|
|
39
|
-
onChange:
|
|
37
|
+
disabled: a,
|
|
38
|
+
"aria-invalid": !!o || void 0,
|
|
39
|
+
"aria-describedby": L(o && p),
|
|
40
|
+
onChange: c && ((_) => c(_.target.checked))
|
|
40
41
|
}
|
|
41
42
|
),
|
|
42
43
|
/* @__PURE__ */ r("label", { for: h, children: e }),
|
|
43
|
-
|
|
44
|
+
o && /* @__PURE__ */ r("p", { id: p, class: T.error, role: "alert", children: o })
|
|
44
45
|
] });
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
}, pe = "_dialog_1lxj9_1", he = "_panel_1lxj9_14", fe = "_header_1lxj9_23", me = "_title_1lxj9_30", be = "_close_1lxj9_35 _focus-ring_4u8pk_3", ve = "_body_1lxj9_51", ke = "_message_1lxj9_56", ge = "_footer_1lxj9_60", ye = "_action_1lxj9_67 _focus-ring_4u8pk_3 _disabled_4u8pk_8", we = "_primary_1lxj9_82", y = {
|
|
47
|
+
dialog: pe,
|
|
48
|
+
panel: he,
|
|
49
|
+
header: fe,
|
|
50
|
+
title: me,
|
|
51
|
+
close: be,
|
|
52
|
+
body: ve,
|
|
53
|
+
message: ke,
|
|
54
|
+
footer: ge,
|
|
55
|
+
action: ye,
|
|
56
|
+
primary: we
|
|
57
|
+
}, R = {
|
|
58
|
+
cancel: "Cancel",
|
|
59
|
+
cancelDescription: "Dismiss this dialog",
|
|
60
|
+
closeDescription: "Close this dialog"
|
|
61
|
+
};
|
|
62
|
+
function xe(t) {
|
|
63
|
+
const e = t.split("+"), s = e.at(-1) ?? "", n = e.slice(0, -1).map((l) => l.toLowerCase());
|
|
64
|
+
return {
|
|
65
|
+
key: s.toLowerCase(),
|
|
66
|
+
ctrl: n.includes("ctrl"),
|
|
67
|
+
shift: n.includes("shift"),
|
|
68
|
+
alt: n.includes("alt")
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function z(t) {
|
|
72
|
+
return `(${t})`;
|
|
73
|
+
}
|
|
74
|
+
const Y = (t) => {
|
|
75
|
+
const {
|
|
76
|
+
open: e,
|
|
77
|
+
title: s,
|
|
78
|
+
alert: n,
|
|
79
|
+
onDismiss: l,
|
|
80
|
+
onBackdropClick: a,
|
|
81
|
+
message: o,
|
|
82
|
+
defaultAction: c,
|
|
83
|
+
actions: i,
|
|
84
|
+
cancelLabel: h,
|
|
85
|
+
onCancel: p,
|
|
86
|
+
focusCancel: _,
|
|
87
|
+
children: f,
|
|
88
|
+
class: d
|
|
89
|
+
} = t, b = P(null), g = P(null), $ = P(null), C = x();
|
|
90
|
+
A(() => {
|
|
91
|
+
const u = b.current;
|
|
92
|
+
u && (e && !u.open ? (u.showModal(), _ && $.current ? $.current.focus() : g.current && g.current.focus()) : !e && u.open && u.close());
|
|
93
|
+
}, [e, _]), A(() => {
|
|
94
|
+
const u = b.current;
|
|
95
|
+
if (!u)
|
|
96
|
+
return;
|
|
97
|
+
const k = (I) => {
|
|
98
|
+
I.preventDefault(), l();
|
|
99
|
+
};
|
|
100
|
+
return u.addEventListener("cancel", k), () => u.removeEventListener("cancel", k);
|
|
101
|
+
}, [l]), A(() => {
|
|
102
|
+
const u = b.current;
|
|
103
|
+
if (!u || !e)
|
|
104
|
+
return;
|
|
105
|
+
const k = [...i ?? [], ...c ? [c] : []];
|
|
106
|
+
if (k.length === 0)
|
|
107
|
+
return;
|
|
108
|
+
const I = k.map((w) => ({
|
|
109
|
+
parsed: xe(w.shortcut),
|
|
110
|
+
handler: w.onClick
|
|
111
|
+
})), N = (w) => {
|
|
112
|
+
for (const { parsed: S, handler: ne } of I)
|
|
113
|
+
if (w.key.toLowerCase() === S.key && w.ctrlKey === S.ctrl && w.shiftKey === S.shift && w.altKey === S.alt) {
|
|
114
|
+
w.preventDefault(), ne();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return u.addEventListener("keydown", N), () => u.removeEventListener("keydown", N);
|
|
119
|
+
}, [e, i, c]), A(() => {
|
|
120
|
+
const u = b.current;
|
|
121
|
+
if (!u || !e || !a)
|
|
122
|
+
return;
|
|
123
|
+
const k = (I) => {
|
|
124
|
+
I.target === u && a();
|
|
125
|
+
};
|
|
126
|
+
return u.addEventListener("click", k), () => u.removeEventListener("click", k);
|
|
127
|
+
}, [e, a]);
|
|
128
|
+
const q = c || p || i && i.length > 0;
|
|
129
|
+
return /* @__PURE__ */ r(
|
|
130
|
+
"dialog",
|
|
131
|
+
{
|
|
132
|
+
ref: b,
|
|
133
|
+
class: v(y.dialog, d),
|
|
134
|
+
"aria-labelledby": C,
|
|
135
|
+
role: n ? "alertdialog" : void 0,
|
|
136
|
+
children: /* @__PURE__ */ m("div", { class: y.panel, children: [
|
|
137
|
+
/* @__PURE__ */ m("header", { class: y.header, children: [
|
|
138
|
+
/* @__PURE__ */ r("h2", { id: C, class: y.title, children: s }),
|
|
139
|
+
!n && /* @__PURE__ */ r(
|
|
140
|
+
"button",
|
|
141
|
+
{
|
|
142
|
+
type: "button",
|
|
143
|
+
class: y.close,
|
|
144
|
+
title: R.closeDescription,
|
|
145
|
+
onClick: l,
|
|
146
|
+
children: "×"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] }),
|
|
150
|
+
/* @__PURE__ */ m("div", { class: y.body, children: [
|
|
151
|
+
o && /* @__PURE__ */ r("p", { class: y.message, children: o }),
|
|
152
|
+
f
|
|
153
|
+
] }),
|
|
154
|
+
q && /* @__PURE__ */ m("footer", { class: y.footer, children: [
|
|
155
|
+
i?.map((u) => /* @__PURE__ */ m(
|
|
156
|
+
"button",
|
|
157
|
+
{
|
|
158
|
+
type: "button",
|
|
159
|
+
class: y.action,
|
|
160
|
+
title: u.description,
|
|
161
|
+
onClick: u.onClick,
|
|
162
|
+
children: [
|
|
163
|
+
u.label,
|
|
164
|
+
" ",
|
|
165
|
+
z(u.shortcut)
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
u.label
|
|
169
|
+
)),
|
|
170
|
+
c && /* @__PURE__ */ m(
|
|
171
|
+
"button",
|
|
172
|
+
{
|
|
173
|
+
ref: g,
|
|
174
|
+
type: "button",
|
|
175
|
+
class: v(y.action, y.primary),
|
|
176
|
+
title: c.description,
|
|
177
|
+
onClick: c.onClick,
|
|
178
|
+
children: [
|
|
179
|
+
c.label,
|
|
180
|
+
" ",
|
|
181
|
+
z(c.shortcut)
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
p && /* @__PURE__ */ m(
|
|
186
|
+
"button",
|
|
187
|
+
{
|
|
188
|
+
ref: $,
|
|
189
|
+
type: "button",
|
|
190
|
+
class: y.action,
|
|
191
|
+
title: R.cancelDescription,
|
|
192
|
+
onClick: p,
|
|
193
|
+
children: [
|
|
194
|
+
h ?? R.cancel,
|
|
195
|
+
" ",
|
|
196
|
+
z("Esc")
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
] })
|
|
201
|
+
] })
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}, St = (t) => {
|
|
205
|
+
const {
|
|
206
|
+
open: e,
|
|
207
|
+
title: s,
|
|
208
|
+
onClose: n,
|
|
209
|
+
message: l,
|
|
210
|
+
defaultAction: a,
|
|
211
|
+
actions: o,
|
|
212
|
+
children: c,
|
|
213
|
+
class: i
|
|
214
|
+
} = t;
|
|
215
|
+
return /* @__PURE__ */ r(
|
|
216
|
+
Y,
|
|
217
|
+
{
|
|
218
|
+
open: e,
|
|
219
|
+
title: s,
|
|
220
|
+
onDismiss: n,
|
|
221
|
+
onBackdropClick: n,
|
|
222
|
+
message: l,
|
|
223
|
+
defaultAction: a,
|
|
224
|
+
actions: o,
|
|
225
|
+
class: i,
|
|
226
|
+
children: c
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}, $e = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", Ce = {
|
|
230
|
+
link: $e
|
|
231
|
+
}, At = (t) => {
|
|
232
|
+
const { href: e, fileName: s, label: n, class: l } = t;
|
|
233
|
+
return /* @__PURE__ */ r("a", { href: e, download: s, class: v(Ce.link, l), children: n });
|
|
234
|
+
}, Ie = "_form_jr324_1", Le = "_actions_jr324_6", Ne = "_status_jr324_13", H = {
|
|
235
|
+
form: Ie,
|
|
236
|
+
actions: Le,
|
|
237
|
+
status: Ne
|
|
238
|
+
}, Bt = (t) => {
|
|
55
239
|
const {
|
|
56
240
|
onSubmit: e,
|
|
57
|
-
submitLabel:
|
|
58
|
-
resetLabel:
|
|
241
|
+
submitLabel: s = "Submit",
|
|
242
|
+
resetLabel: n,
|
|
59
243
|
status: l,
|
|
60
|
-
children:
|
|
61
|
-
class:
|
|
244
|
+
children: a,
|
|
245
|
+
class: o
|
|
62
246
|
} = t;
|
|
63
|
-
return /* @__PURE__ */
|
|
247
|
+
return /* @__PURE__ */ m(
|
|
64
248
|
"form",
|
|
65
249
|
{
|
|
66
|
-
class:
|
|
67
|
-
onSubmit: (
|
|
68
|
-
|
|
69
|
-
const i = new FormData(
|
|
250
|
+
class: v(H.form, o),
|
|
251
|
+
onSubmit: (c) => {
|
|
252
|
+
c.preventDefault();
|
|
253
|
+
const i = new FormData(c.currentTarget);
|
|
70
254
|
e(i);
|
|
71
255
|
},
|
|
72
256
|
children: [
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */ r(
|
|
76
|
-
|
|
257
|
+
a,
|
|
258
|
+
/* @__PURE__ */ m("div", { class: H.actions, children: [
|
|
259
|
+
/* @__PURE__ */ r(G, { type: "submit", label: s }),
|
|
260
|
+
n && /* @__PURE__ */ r(G, { type: "reset", label: n })
|
|
77
261
|
] }),
|
|
78
|
-
l && /* @__PURE__ */ r("output", { class:
|
|
262
|
+
l && /* @__PURE__ */ r("output", { class: H.status, children: l })
|
|
79
263
|
]
|
|
80
264
|
}
|
|
81
265
|
);
|
|
82
|
-
},
|
|
83
|
-
field:
|
|
84
|
-
label:
|
|
85
|
-
required:
|
|
86
|
-
error:
|
|
87
|
-
},
|
|
88
|
-
const { for: e, label:
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
266
|
+
}, je = "_field_7l9ux_1", Ee = "_label_7l9ux_8", De = "_required_7l9ux_12", Se = "_error_7l9ux_16 _field-error_4u8pk_36", B = {
|
|
267
|
+
field: je,
|
|
268
|
+
label: Ee,
|
|
269
|
+
required: De,
|
|
270
|
+
error: Se
|
|
271
|
+
}, D = (t) => {
|
|
272
|
+
const { for: e, label: s, required: n, error: l, errorId: a, children: o, class: c } = t;
|
|
273
|
+
return /* @__PURE__ */ m("div", { class: v(B.field, c), children: [
|
|
274
|
+
/* @__PURE__ */ m("label", { class: B.label, for: e, children: [
|
|
275
|
+
s,
|
|
92
276
|
":",
|
|
93
|
-
|
|
277
|
+
n && /* @__PURE__ */ m("span", { class: B.required, "aria-hidden": "true", children: [
|
|
94
278
|
" ",
|
|
95
279
|
"*"
|
|
96
280
|
] })
|
|
97
281
|
] }),
|
|
98
|
-
|
|
99
|
-
l && /* @__PURE__ */ r("p", { id:
|
|
282
|
+
o,
|
|
283
|
+
l && /* @__PURE__ */ r("p", { id: a, class: B.error, role: "alert", children: l })
|
|
100
284
|
] });
|
|
101
|
-
},
|
|
102
|
-
input:
|
|
103
|
-
},
|
|
285
|
+
}, Ae = "_input_1j10x_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Be = {
|
|
286
|
+
input: Ae
|
|
287
|
+
}, qe = {
|
|
104
288
|
email: "email",
|
|
105
289
|
tel: "tel",
|
|
106
290
|
url: "url"
|
|
107
|
-
},
|
|
291
|
+
}, qt = (t) => {
|
|
108
292
|
const {
|
|
109
293
|
label: e,
|
|
110
|
-
name:
|
|
111
|
-
type:
|
|
294
|
+
name: s,
|
|
295
|
+
type: n = "text",
|
|
112
296
|
value: l,
|
|
113
|
-
placeholder:
|
|
114
|
-
maxLength:
|
|
115
|
-
autocomplete:
|
|
297
|
+
placeholder: a,
|
|
298
|
+
maxLength: o,
|
|
299
|
+
autocomplete: c,
|
|
116
300
|
readOnly: i,
|
|
117
301
|
pattern: h,
|
|
118
302
|
required: p,
|
|
119
|
-
disabled:
|
|
120
|
-
error:
|
|
121
|
-
onInput:
|
|
122
|
-
class:
|
|
123
|
-
} = t,
|
|
303
|
+
disabled: _,
|
|
304
|
+
error: f,
|
|
305
|
+
onInput: d,
|
|
306
|
+
class: b
|
|
307
|
+
} = t, g = x(), $ = `${g}-error`;
|
|
124
308
|
return /* @__PURE__ */ r(
|
|
125
|
-
|
|
309
|
+
D,
|
|
126
310
|
{
|
|
127
311
|
label: e,
|
|
128
|
-
for:
|
|
312
|
+
for: g,
|
|
129
313
|
required: p,
|
|
130
|
-
error:
|
|
131
|
-
errorId:
|
|
132
|
-
class:
|
|
314
|
+
error: f,
|
|
315
|
+
errorId: $,
|
|
316
|
+
class: b,
|
|
133
317
|
children: /* @__PURE__ */ r(
|
|
134
318
|
"input",
|
|
135
319
|
{
|
|
136
|
-
id:
|
|
137
|
-
class:
|
|
138
|
-
type:
|
|
139
|
-
name:
|
|
320
|
+
id: g,
|
|
321
|
+
class: Be.input,
|
|
322
|
+
type: n,
|
|
323
|
+
name: s,
|
|
140
324
|
value: l,
|
|
141
|
-
placeholder:
|
|
142
|
-
maxLength:
|
|
143
|
-
autoComplete:
|
|
325
|
+
placeholder: a,
|
|
326
|
+
maxLength: o,
|
|
327
|
+
autoComplete: c ?? qe[n],
|
|
144
328
|
readOnly: i,
|
|
145
329
|
pattern: h,
|
|
146
330
|
required: p,
|
|
147
|
-
disabled:
|
|
148
|
-
"aria-invalid": !!
|
|
149
|
-
"aria-describedby":
|
|
150
|
-
onInput:
|
|
331
|
+
disabled: _,
|
|
332
|
+
"aria-invalid": !!f || void 0,
|
|
333
|
+
"aria-describedby": L(f && $),
|
|
334
|
+
onInput: d && ((C) => d(C.target.value))
|
|
151
335
|
}
|
|
152
336
|
)
|
|
153
337
|
}
|
|
154
338
|
);
|
|
155
|
-
},
|
|
156
|
-
function
|
|
339
|
+
}, U = K(window.location.pathname), ee = K(window.location.hash.slice(1));
|
|
340
|
+
function Pe(t) {
|
|
157
341
|
const e = t.indexOf("#");
|
|
158
|
-
let
|
|
159
|
-
e >= 0 && (
|
|
160
|
-
const l =
|
|
161
|
-
let
|
|
162
|
-
return l >= 0 && (
|
|
342
|
+
let s = "", n = t;
|
|
343
|
+
e >= 0 && (s = t.slice(e + 1), n = t.slice(0, e));
|
|
344
|
+
const l = n.indexOf("?");
|
|
345
|
+
let a = "", o = n;
|
|
346
|
+
return l >= 0 && (a = n.slice(l), o = n.slice(0, l)), { pathname: o || "/", search: a, hash: s };
|
|
163
347
|
}
|
|
164
|
-
function
|
|
165
|
-
const { pathname:
|
|
166
|
-
e?.replace ? history.replaceState(null, "",
|
|
348
|
+
function Te(t, e) {
|
|
349
|
+
const { pathname: s, search: n, hash: l } = Pe(t), a = s + n + (l ? `#${l}` : "");
|
|
350
|
+
e?.replace ? history.replaceState(null, "", a) : history.pushState(null, "", a), U.value = s, ee.value = l;
|
|
167
351
|
}
|
|
168
352
|
window.addEventListener("popstate", () => {
|
|
169
|
-
|
|
353
|
+
U.value = window.location.pathname, ee.value = window.location.hash.slice(1);
|
|
170
354
|
});
|
|
171
|
-
const
|
|
172
|
-
link:
|
|
355
|
+
const Re = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", W = {
|
|
356
|
+
link: Re
|
|
173
357
|
};
|
|
174
|
-
function
|
|
358
|
+
function ze(t) {
|
|
175
359
|
try {
|
|
176
360
|
return new URL(t, window.location.href).origin !== window.location.origin;
|
|
177
361
|
} catch {
|
|
178
362
|
return !1;
|
|
179
363
|
}
|
|
180
364
|
}
|
|
181
|
-
const
|
|
182
|
-
const { href: e, children:
|
|
183
|
-
return
|
|
365
|
+
const Pt = (t) => {
|
|
366
|
+
const { href: e, children: s, external: n, class: l } = t;
|
|
367
|
+
return n ?? ze(e) ? /* @__PURE__ */ r("a", { href: e, class: v(W.link, l), rel: "noopener noreferrer", children: s }) : /* @__PURE__ */ r(
|
|
184
368
|
"a",
|
|
185
369
|
{
|
|
186
370
|
href: e,
|
|
187
|
-
class:
|
|
188
|
-
onClick: (
|
|
189
|
-
|
|
371
|
+
class: v(W.link, l),
|
|
372
|
+
onClick: (o) => {
|
|
373
|
+
o.preventDefault(), Te(e);
|
|
190
374
|
},
|
|
191
|
-
children:
|
|
375
|
+
children: s
|
|
192
376
|
}
|
|
193
377
|
);
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
378
|
+
}, Tt = (t) => {
|
|
379
|
+
const {
|
|
380
|
+
open: e,
|
|
381
|
+
title: s,
|
|
382
|
+
onCancel: n,
|
|
383
|
+
cancelLabel: l,
|
|
384
|
+
message: a,
|
|
385
|
+
defaultAction: o,
|
|
386
|
+
actions: c,
|
|
387
|
+
focusCancel: i,
|
|
388
|
+
children: h,
|
|
389
|
+
class: p
|
|
390
|
+
} = t;
|
|
391
|
+
return /* @__PURE__ */ r(
|
|
392
|
+
Y,
|
|
393
|
+
{
|
|
394
|
+
open: e,
|
|
395
|
+
title: s,
|
|
396
|
+
alert: !0,
|
|
397
|
+
onDismiss: n,
|
|
398
|
+
onCancel: n,
|
|
399
|
+
cancelLabel: l,
|
|
400
|
+
message: a,
|
|
401
|
+
defaultAction: o,
|
|
402
|
+
actions: c,
|
|
403
|
+
focusCancel: i,
|
|
404
|
+
class: p,
|
|
405
|
+
children: h
|
|
406
|
+
}
|
|
407
|
+
);
|
|
408
|
+
}, He = "_nav_778nl_1", Oe = "_title_778nl_6", Z = {
|
|
409
|
+
nav: He,
|
|
410
|
+
title: Oe
|
|
411
|
+
}, Rt = (t) => {
|
|
412
|
+
const { title: e, children: s, class: n } = t, l = x();
|
|
413
|
+
return /* @__PURE__ */ m("nav", { class: v(Z.nav, n), "aria-labelledby": e ? l : void 0, children: [
|
|
414
|
+
e && /* @__PURE__ */ r("h2", { id: l, class: Z.title, children: e }),
|
|
415
|
+
s
|
|
202
416
|
] });
|
|
203
|
-
},
|
|
204
|
-
input:
|
|
205
|
-
},
|
|
417
|
+
}, Fe = "_input_1j10x_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Me = {
|
|
418
|
+
input: Fe
|
|
419
|
+
}, zt = (t) => {
|
|
206
420
|
const {
|
|
207
421
|
label: e,
|
|
208
|
-
name:
|
|
209
|
-
min:
|
|
422
|
+
name: s,
|
|
423
|
+
min: n,
|
|
210
424
|
max: l,
|
|
211
|
-
step:
|
|
212
|
-
value:
|
|
213
|
-
placeholder:
|
|
425
|
+
step: a,
|
|
426
|
+
value: o,
|
|
427
|
+
placeholder: c,
|
|
214
428
|
required: i,
|
|
215
429
|
disabled: h,
|
|
216
430
|
error: p,
|
|
217
|
-
onInput:
|
|
218
|
-
class:
|
|
219
|
-
} = t,
|
|
431
|
+
onInput: _,
|
|
432
|
+
class: f
|
|
433
|
+
} = t, d = x(), b = `${d}-error`;
|
|
220
434
|
return /* @__PURE__ */ r(
|
|
221
|
-
|
|
435
|
+
D,
|
|
222
436
|
{
|
|
223
437
|
label: e,
|
|
224
|
-
for:
|
|
438
|
+
for: d,
|
|
225
439
|
required: i,
|
|
226
440
|
error: p,
|
|
227
|
-
errorId:
|
|
228
|
-
class:
|
|
441
|
+
errorId: b,
|
|
442
|
+
class: f,
|
|
229
443
|
children: /* @__PURE__ */ r(
|
|
230
444
|
"input",
|
|
231
445
|
{
|
|
232
|
-
id:
|
|
233
|
-
class:
|
|
446
|
+
id: d,
|
|
447
|
+
class: Me.input,
|
|
234
448
|
type: "number",
|
|
235
|
-
name:
|
|
236
|
-
min:
|
|
449
|
+
name: s,
|
|
450
|
+
min: n,
|
|
237
451
|
max: l,
|
|
238
|
-
step:
|
|
239
|
-
value:
|
|
240
|
-
placeholder:
|
|
452
|
+
step: a,
|
|
453
|
+
value: o,
|
|
454
|
+
placeholder: c,
|
|
241
455
|
required: i,
|
|
242
456
|
disabled: h,
|
|
243
457
|
"aria-invalid": !!p || void 0,
|
|
244
|
-
"aria-describedby":
|
|
245
|
-
onInput:
|
|
458
|
+
"aria-describedby": L(p && b),
|
|
459
|
+
onInput: _ && ((g) => _(g.target.valueAsNumber))
|
|
246
460
|
}
|
|
247
461
|
)
|
|
248
462
|
}
|
|
249
463
|
);
|
|
250
|
-
},
|
|
251
|
-
wrapper:
|
|
252
|
-
input:
|
|
253
|
-
toggle:
|
|
254
|
-
}
|
|
464
|
+
}, Ke = "_wrapper_16zfv_1", Ue = "_input_16zfv_5 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Ge = "_toggle_16zfv_11 _focus-ring_4u8pk_3 _disabled_4u8pk_8", O = {
|
|
465
|
+
wrapper: Ke,
|
|
466
|
+
input: Ue,
|
|
467
|
+
toggle: Ge
|
|
468
|
+
};
|
|
469
|
+
const We = (...t) => t.filter((e, s, n) => !!e && e.trim() !== "" && n.indexOf(e) === s).join(" ").trim();
|
|
470
|
+
const V = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
471
|
+
const Ze = (t) => t.replace(
|
|
472
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
473
|
+
(e, s, n) => n ? n.toUpperCase() : s.toLowerCase()
|
|
474
|
+
);
|
|
475
|
+
const J = (t) => {
|
|
476
|
+
const e = Ze(t);
|
|
477
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
478
|
+
};
|
|
479
|
+
var Ve = {
|
|
480
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
481
|
+
width: 24,
|
|
482
|
+
height: 24,
|
|
483
|
+
viewBox: "0 0 24 24",
|
|
484
|
+
fill: "none",
|
|
485
|
+
stroke: "currentColor",
|
|
486
|
+
"stroke-width": "2",
|
|
487
|
+
"stroke-linecap": "round",
|
|
488
|
+
"stroke-linejoin": "round"
|
|
489
|
+
};
|
|
490
|
+
const Je = (t) => {
|
|
491
|
+
for (const e in t)
|
|
492
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
493
|
+
return !0;
|
|
494
|
+
return !1;
|
|
495
|
+
};
|
|
496
|
+
const Qe = ({
|
|
497
|
+
color: t = "currentColor",
|
|
498
|
+
size: e = 24,
|
|
499
|
+
strokeWidth: s = 2,
|
|
500
|
+
absoluteStrokeWidth: n,
|
|
501
|
+
children: l,
|
|
502
|
+
iconNode: a,
|
|
503
|
+
class: o = "",
|
|
504
|
+
...c
|
|
505
|
+
}) => M(
|
|
506
|
+
"svg",
|
|
507
|
+
{
|
|
508
|
+
...Ve,
|
|
509
|
+
width: String(e),
|
|
510
|
+
height: e,
|
|
511
|
+
stroke: t,
|
|
512
|
+
"stroke-width": n ? Number(s) * 24 / Number(e) : s,
|
|
513
|
+
class: ["lucide", o].join(" "),
|
|
514
|
+
...!l && !Je(c) && { "aria-hidden": "true" },
|
|
515
|
+
...c
|
|
516
|
+
},
|
|
517
|
+
[...a.map(([i, h]) => M(i, h)), ...re(l)]
|
|
518
|
+
);
|
|
519
|
+
const te = (t, e) => {
|
|
520
|
+
const s = ({ class: n = "", className: l = "", children: a, ...o }) => M(
|
|
521
|
+
Qe,
|
|
522
|
+
{
|
|
523
|
+
...o,
|
|
524
|
+
iconNode: e,
|
|
525
|
+
class: We(
|
|
526
|
+
`lucide-${V(J(t))}`,
|
|
527
|
+
`lucide-${V(t)}`,
|
|
528
|
+
n,
|
|
529
|
+
l
|
|
530
|
+
)
|
|
531
|
+
},
|
|
532
|
+
a
|
|
533
|
+
);
|
|
534
|
+
return s.displayName = J(t), s;
|
|
535
|
+
};
|
|
536
|
+
const Xe = te("eye-off", [
|
|
537
|
+
[
|
|
538
|
+
"path",
|
|
539
|
+
{
|
|
540
|
+
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
541
|
+
key: "ct8e1f"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }],
|
|
545
|
+
[
|
|
546
|
+
"path",
|
|
547
|
+
{
|
|
548
|
+
d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
|
|
549
|
+
key: "13bj9a"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
553
|
+
]);
|
|
554
|
+
const Ye = te("eye", [
|
|
555
|
+
[
|
|
556
|
+
"path",
|
|
557
|
+
{
|
|
558
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
559
|
+
key: "1nclc0"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
563
|
+
]), et = {
|
|
255
564
|
current: "current-password",
|
|
256
565
|
new: "new-password"
|
|
257
|
-
},
|
|
566
|
+
}, Ht = (t) => {
|
|
258
567
|
const {
|
|
259
568
|
label: e,
|
|
260
|
-
name:
|
|
261
|
-
purpose:
|
|
569
|
+
name: s,
|
|
570
|
+
purpose: n,
|
|
262
571
|
value: l,
|
|
263
|
-
placeholder:
|
|
264
|
-
required:
|
|
265
|
-
disabled:
|
|
572
|
+
placeholder: a,
|
|
573
|
+
required: o,
|
|
574
|
+
disabled: c,
|
|
266
575
|
error: i,
|
|
267
576
|
onInput: h,
|
|
268
577
|
class: p
|
|
269
|
-
} = t,
|
|
578
|
+
} = t, _ = x(), f = `${_}-error`, d = E(!1);
|
|
270
579
|
return /* @__PURE__ */ r(
|
|
271
|
-
|
|
580
|
+
D,
|
|
272
581
|
{
|
|
273
582
|
label: e,
|
|
274
|
-
for:
|
|
275
|
-
required:
|
|
583
|
+
for: _,
|
|
584
|
+
required: o,
|
|
276
585
|
error: i,
|
|
277
|
-
errorId:
|
|
586
|
+
errorId: f,
|
|
278
587
|
class: p,
|
|
279
|
-
children: /* @__PURE__ */
|
|
588
|
+
children: /* @__PURE__ */ m("div", { class: O.wrapper, children: [
|
|
280
589
|
/* @__PURE__ */ r(
|
|
281
590
|
"input",
|
|
282
591
|
{
|
|
283
|
-
id:
|
|
284
|
-
class:
|
|
285
|
-
type:
|
|
286
|
-
name:
|
|
592
|
+
id: _,
|
|
593
|
+
class: O.input,
|
|
594
|
+
type: d.value ? "text" : "password",
|
|
595
|
+
name: s,
|
|
287
596
|
value: l,
|
|
288
|
-
placeholder:
|
|
289
|
-
autoComplete:
|
|
290
|
-
required:
|
|
291
|
-
disabled:
|
|
597
|
+
placeholder: a,
|
|
598
|
+
autoComplete: et[n],
|
|
599
|
+
required: o,
|
|
600
|
+
disabled: c,
|
|
292
601
|
"aria-invalid": !!i || void 0,
|
|
293
|
-
"aria-describedby":
|
|
294
|
-
onInput: h && ((
|
|
602
|
+
"aria-describedby": L(i && f),
|
|
603
|
+
onInput: h && ((b) => h(b.target.value))
|
|
295
604
|
}
|
|
296
605
|
),
|
|
297
606
|
/* @__PURE__ */ r(
|
|
298
607
|
"button",
|
|
299
608
|
{
|
|
300
609
|
type: "button",
|
|
301
|
-
class:
|
|
302
|
-
disabled:
|
|
610
|
+
class: O.toggle,
|
|
611
|
+
disabled: c,
|
|
612
|
+
"aria-label": d.value ? "Hide password" : "Show password",
|
|
303
613
|
onClick: () => {
|
|
304
|
-
|
|
614
|
+
d.value = !d.value;
|
|
305
615
|
},
|
|
306
|
-
children:
|
|
616
|
+
children: d.value ? /* @__PURE__ */ r(Xe, { size: "1em" }) : /* @__PURE__ */ r(Ye, { size: "1em" })
|
|
307
617
|
}
|
|
308
618
|
)
|
|
309
619
|
] })
|
|
310
620
|
}
|
|
311
621
|
);
|
|
312
|
-
},
|
|
313
|
-
fieldset:
|
|
314
|
-
legend:
|
|
315
|
-
option:
|
|
316
|
-
input:
|
|
317
|
-
error:
|
|
318
|
-
},
|
|
622
|
+
}, tt = "_fieldset_lymkd_1", nt = "_legend_lymkd_6", st = "_option_lymkd_11", lt = "_input_lymkd_19 _check-input_4u8pk_32 _focus-ring_4u8pk_3", rt = "_error_lymkd_23 _field-error_4u8pk_36", j = {
|
|
623
|
+
fieldset: tt,
|
|
624
|
+
legend: nt,
|
|
625
|
+
option: st,
|
|
626
|
+
input: lt,
|
|
627
|
+
error: rt
|
|
628
|
+
}, Ot = (t) => {
|
|
319
629
|
const {
|
|
320
630
|
legend: e,
|
|
321
|
-
name:
|
|
322
|
-
options:
|
|
631
|
+
name: s,
|
|
632
|
+
options: n,
|
|
323
633
|
value: l,
|
|
324
|
-
required:
|
|
325
|
-
disabled:
|
|
326
|
-
error:
|
|
634
|
+
required: a,
|
|
635
|
+
disabled: o,
|
|
636
|
+
error: c,
|
|
327
637
|
onChange: i,
|
|
328
638
|
class: h
|
|
329
|
-
} = t, p =
|
|
330
|
-
return /* @__PURE__ */
|
|
639
|
+
} = t, p = x(), _ = `${p}-error`;
|
|
640
|
+
return /* @__PURE__ */ m(
|
|
331
641
|
"fieldset",
|
|
332
642
|
{
|
|
333
|
-
class:
|
|
334
|
-
"aria-invalid": !!
|
|
335
|
-
"aria-describedby":
|
|
643
|
+
class: v(j.fieldset, h),
|
|
644
|
+
"aria-invalid": !!c || void 0,
|
|
645
|
+
"aria-describedby": L(c && _),
|
|
336
646
|
children: [
|
|
337
|
-
/* @__PURE__ */ r("legend", { class:
|
|
338
|
-
|
|
339
|
-
const
|
|
340
|
-
return /* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ r("legend", { class: j.legend, children: e }),
|
|
648
|
+
n.map((f) => {
|
|
649
|
+
const d = `${p}-${f.value}`;
|
|
650
|
+
return /* @__PURE__ */ m("div", { class: j.option, children: [
|
|
341
651
|
/* @__PURE__ */ r(
|
|
342
652
|
"input",
|
|
343
653
|
{
|
|
344
|
-
id:
|
|
345
|
-
class:
|
|
654
|
+
id: d,
|
|
655
|
+
class: j.input,
|
|
346
656
|
type: "radio",
|
|
347
|
-
name:
|
|
348
|
-
value:
|
|
349
|
-
checked: l ===
|
|
350
|
-
required:
|
|
351
|
-
disabled:
|
|
352
|
-
onChange: i && (() => i(
|
|
657
|
+
name: s,
|
|
658
|
+
value: f.value,
|
|
659
|
+
checked: l === f.value,
|
|
660
|
+
required: a,
|
|
661
|
+
disabled: o,
|
|
662
|
+
onChange: i && (() => i(f.value))
|
|
353
663
|
}
|
|
354
664
|
),
|
|
355
|
-
/* @__PURE__ */ r("label", { for:
|
|
356
|
-
] },
|
|
665
|
+
/* @__PURE__ */ r("label", { for: d, children: f.label })
|
|
666
|
+
] }, f.value);
|
|
357
667
|
}),
|
|
358
|
-
|
|
668
|
+
c && /* @__PURE__ */ r("p", { id: _, class: j.error, role: "alert", children: c })
|
|
359
669
|
]
|
|
360
670
|
}
|
|
361
671
|
);
|
|
362
|
-
},
|
|
363
|
-
const { path: e, children:
|
|
672
|
+
}, Ft = (t) => {
|
|
673
|
+
const { path: e, children: s } = t, n = U.value;
|
|
364
674
|
if (e.endsWith("/*")) {
|
|
365
675
|
const l = e.slice(0, -1);
|
|
366
|
-
if (!
|
|
676
|
+
if (!n.startsWith(l) && n !== l.slice(0, -1))
|
|
367
677
|
return null;
|
|
368
|
-
} else if (
|
|
678
|
+
} else if (n !== e)
|
|
369
679
|
return null;
|
|
370
|
-
return /* @__PURE__ */ r(
|
|
371
|
-
},
|
|
372
|
-
section:
|
|
373
|
-
},
|
|
374
|
-
const { title: e, level:
|
|
375
|
-
return /* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */ r(
|
|
377
|
-
|
|
680
|
+
return /* @__PURE__ */ r(se, { children: s });
|
|
681
|
+
}, at = "_section_4nogy_1", ot = {
|
|
682
|
+
section: at
|
|
683
|
+
}, Mt = (t) => {
|
|
684
|
+
const { title: e, level: s = 2, children: n, class: l } = t, a = x(), o = `h${s}`;
|
|
685
|
+
return /* @__PURE__ */ m("section", { class: v(ot.section, l), "aria-labelledby": a, children: [
|
|
686
|
+
/* @__PURE__ */ r(o, { id: a, children: e }),
|
|
687
|
+
n
|
|
378
688
|
] });
|
|
379
|
-
},
|
|
380
|
-
select:
|
|
381
|
-
},
|
|
689
|
+
}, ct = "_select_1cxnx_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", it = {
|
|
690
|
+
select: ct
|
|
691
|
+
}, dt = (t) => "options" in t, Kt = (t) => {
|
|
382
692
|
const {
|
|
383
693
|
label: e,
|
|
384
|
-
name:
|
|
385
|
-
value:
|
|
694
|
+
name: s,
|
|
695
|
+
value: n,
|
|
386
696
|
placeholder: l,
|
|
387
|
-
options:
|
|
388
|
-
required:
|
|
389
|
-
disabled:
|
|
697
|
+
options: a,
|
|
698
|
+
required: o,
|
|
699
|
+
disabled: c,
|
|
390
700
|
error: i,
|
|
391
701
|
onChange: h,
|
|
392
702
|
class: p
|
|
393
|
-
} = t,
|
|
703
|
+
} = t, _ = x(), f = `${_}-error`;
|
|
394
704
|
return /* @__PURE__ */ r(
|
|
395
|
-
|
|
705
|
+
D,
|
|
396
706
|
{
|
|
397
707
|
label: e,
|
|
398
|
-
for:
|
|
399
|
-
required:
|
|
708
|
+
for: _,
|
|
709
|
+
required: o,
|
|
400
710
|
error: i,
|
|
401
|
-
errorId:
|
|
711
|
+
errorId: f,
|
|
402
712
|
class: p,
|
|
403
|
-
children: /* @__PURE__ */
|
|
713
|
+
children: /* @__PURE__ */ m(
|
|
404
714
|
"select",
|
|
405
715
|
{
|
|
406
|
-
id:
|
|
407
|
-
class:
|
|
408
|
-
name:
|
|
409
|
-
value:
|
|
410
|
-
required:
|
|
411
|
-
disabled:
|
|
716
|
+
id: _,
|
|
717
|
+
class: it.select,
|
|
718
|
+
name: s,
|
|
719
|
+
value: n,
|
|
720
|
+
required: o,
|
|
721
|
+
disabled: c,
|
|
412
722
|
"aria-invalid": !!i || void 0,
|
|
413
|
-
"aria-describedby":
|
|
414
|
-
onChange: h && ((
|
|
723
|
+
"aria-describedby": L(i && f),
|
|
724
|
+
onChange: h && ((d) => h(d.target.value)),
|
|
415
725
|
children: [
|
|
416
726
|
l && /* @__PURE__ */ r("option", { value: "", disabled: !0, children: l }),
|
|
417
|
-
|
|
418
|
-
(
|
|
727
|
+
a.map(
|
|
728
|
+
(d) => dt(d) ? /* @__PURE__ */ r("optgroup", { label: d.label, children: d.options.map((b) => /* @__PURE__ */ r("option", { value: b.value, children: b.label }, b.value)) }, d.label) : /* @__PURE__ */ r("option", { value: d.value, children: d.label }, d.value)
|
|
419
729
|
)
|
|
420
730
|
]
|
|
421
731
|
}
|
|
422
732
|
)
|
|
423
733
|
}
|
|
424
734
|
);
|
|
425
|
-
},
|
|
426
|
-
skip:
|
|
427
|
-
},
|
|
428
|
-
const { target: e = "#main", label:
|
|
429
|
-
return /* @__PURE__ */ r("a", { href: e, class:
|
|
430
|
-
},
|
|
431
|
-
table:
|
|
432
|
-
caption:
|
|
433
|
-
},
|
|
434
|
-
const { caption: e, headers:
|
|
435
|
-
return /* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */ r("caption", { class:
|
|
437
|
-
/* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children:
|
|
438
|
-
/* @__PURE__ */ r("tbody", { children:
|
|
735
|
+
}, ut = "_skip_xbsul_1 _focus-ring_4u8pk_3", _t = {
|
|
736
|
+
skip: ut
|
|
737
|
+
}, Ut = (t) => {
|
|
738
|
+
const { target: e = "#main", label: s = "Skip to main content", class: n } = t;
|
|
739
|
+
return /* @__PURE__ */ r("a", { href: e, class: v(_t.skip, n), children: s });
|
|
740
|
+
}, pt = "_table_dls60_1", ht = "_caption_dls60_6", Q = {
|
|
741
|
+
table: pt,
|
|
742
|
+
caption: ht
|
|
743
|
+
}, Gt = (t) => {
|
|
744
|
+
const { caption: e, headers: s, data: n, class: l } = t;
|
|
745
|
+
return /* @__PURE__ */ m("table", { class: v(Q.table, l), children: [
|
|
746
|
+
/* @__PURE__ */ r("caption", { class: Q.caption, children: e }),
|
|
747
|
+
/* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children: s.map((a, o) => /* @__PURE__ */ r("th", { scope: "col", children: a }, `${a}-${o}`)) }) }),
|
|
748
|
+
/* @__PURE__ */ r("tbody", { children: n.map((a, o) => /* @__PURE__ */ r("tr", { children: a.map((c, i) => /* @__PURE__ */ r("td", { children: c }, `${s[i]}-${o}-${i}`)) }, o)) })
|
|
439
749
|
] });
|
|
440
|
-
},
|
|
441
|
-
hidden:
|
|
442
|
-
},
|
|
750
|
+
}, ft = "_hidden_19nib_1 _visually-hidden_4u8pk_42", mt = {
|
|
751
|
+
hidden: ft
|
|
752
|
+
}, bt = (t) => {
|
|
443
753
|
const { children: e } = t;
|
|
444
|
-
return /* @__PURE__ */ r("span", { class:
|
|
445
|
-
},
|
|
446
|
-
wrapper:
|
|
447
|
-
textarea:
|
|
448
|
-
counter:
|
|
449
|
-
},
|
|
450
|
-
function
|
|
451
|
-
for (let e =
|
|
452
|
-
const
|
|
453
|
-
if (
|
|
454
|
-
return
|
|
754
|
+
return /* @__PURE__ */ r("span", { class: mt.hidden, children: e });
|
|
755
|
+
}, vt = "_wrapper_1kyv1_1", kt = "_textarea_1kyv1_6 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", gt = "_counter_1kyv1_11", F = {
|
|
756
|
+
wrapper: vt,
|
|
757
|
+
textarea: kt,
|
|
758
|
+
counter: gt
|
|
759
|
+
}, X = [75, 90, 100], yt = 10;
|
|
760
|
+
function wt(t) {
|
|
761
|
+
for (let e = X.length - 1; e >= 0; e--) {
|
|
762
|
+
const s = X[e];
|
|
763
|
+
if (s !== void 0 && t >= s)
|
|
764
|
+
return s;
|
|
455
765
|
}
|
|
456
766
|
return 0;
|
|
457
767
|
}
|
|
458
|
-
const
|
|
768
|
+
const Wt = (t) => {
|
|
459
769
|
const {
|
|
460
770
|
label: e,
|
|
461
|
-
name:
|
|
462
|
-
maxChars:
|
|
771
|
+
name: s,
|
|
772
|
+
maxChars: n,
|
|
463
773
|
value: l,
|
|
464
|
-
placeholder:
|
|
465
|
-
required:
|
|
466
|
-
disabled:
|
|
774
|
+
placeholder: a,
|
|
775
|
+
required: o,
|
|
776
|
+
disabled: c,
|
|
467
777
|
error: i,
|
|
468
778
|
onInput: h,
|
|
469
779
|
class: p
|
|
470
|
-
} = t,
|
|
780
|
+
} = t, _ = x(), f = `${_}-error`, d = `${_}-counter`, b = E(l?.length ?? 0), g = E(""), $ = E(0), C = E(!1);
|
|
471
781
|
return /* @__PURE__ */ r(
|
|
472
|
-
|
|
782
|
+
D,
|
|
473
783
|
{
|
|
474
784
|
label: e,
|
|
475
|
-
for:
|
|
476
|
-
required:
|
|
785
|
+
for: _,
|
|
786
|
+
required: o,
|
|
477
787
|
error: i,
|
|
478
|
-
errorId:
|
|
788
|
+
errorId: f,
|
|
479
789
|
class: p,
|
|
480
|
-
children: /* @__PURE__ */
|
|
790
|
+
children: /* @__PURE__ */ m("div", { class: F.wrapper, children: [
|
|
481
791
|
/* @__PURE__ */ r(
|
|
482
792
|
"textarea",
|
|
483
793
|
{
|
|
484
|
-
id:
|
|
485
|
-
class:
|
|
486
|
-
name:
|
|
487
|
-
maxLength:
|
|
488
|
-
placeholder:
|
|
489
|
-
required:
|
|
490
|
-
disabled:
|
|
794
|
+
id: _,
|
|
795
|
+
class: F.textarea,
|
|
796
|
+
name: s,
|
|
797
|
+
maxLength: n,
|
|
798
|
+
placeholder: a,
|
|
799
|
+
required: o,
|
|
800
|
+
disabled: c,
|
|
491
801
|
"aria-invalid": !!i || void 0,
|
|
492
|
-
"aria-describedby":
|
|
493
|
-
onInput: (
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
(
|
|
802
|
+
"aria-describedby": L(i && f, d),
|
|
803
|
+
onInput: (q) => {
|
|
804
|
+
const u = q.target.value;
|
|
805
|
+
b.value = u.length;
|
|
806
|
+
const k = n - u.length, I = u.length / n * 100, N = wt(I), w = !C.value && k <= yt && k > 0;
|
|
807
|
+
(N > $.value || w) && (g.value = `${k} character${k === 1 ? "" : "s"} remaining`, $.value = N, w && (C.value = !0)), h?.(u);
|
|
498
808
|
},
|
|
499
809
|
children: l
|
|
500
810
|
}
|
|
501
811
|
),
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
|
|
812
|
+
/* @__PURE__ */ m("span", { id: d, class: F.counter, children: [
|
|
813
|
+
b,
|
|
504
814
|
" / ",
|
|
505
|
-
|
|
815
|
+
n
|
|
506
816
|
] }),
|
|
507
|
-
/* @__PURE__ */ r(
|
|
817
|
+
/* @__PURE__ */ r(bt, { children: /* @__PURE__ */ r("span", { "aria-live": "polite", children: g }) })
|
|
508
818
|
] })
|
|
509
819
|
}
|
|
510
820
|
);
|
|
511
|
-
},
|
|
512
|
-
theme:
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
821
|
+
}, xt = "_theme_1x47p_11", $t = {
|
|
822
|
+
theme: xt
|
|
823
|
+
}, Zt = {
|
|
824
|
+
blue: "aui-blue",
|
|
825
|
+
purple: "aui-purple",
|
|
826
|
+
teal: "aui-teal",
|
|
827
|
+
red: "aui-red",
|
|
828
|
+
orange: "aui-orange",
|
|
829
|
+
yellow: "aui-yellow"
|
|
830
|
+
}, Vt = (t) => {
|
|
831
|
+
const { children: e, class: s } = t;
|
|
832
|
+
return /* @__PURE__ */ r("div", { class: v($t.theme, s), children: e });
|
|
833
|
+
}, Ct = K(document.title);
|
|
834
|
+
le(() => {
|
|
835
|
+
document.title = Ct.value;
|
|
519
836
|
});
|
|
520
837
|
export {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
838
|
+
G as Button,
|
|
839
|
+
Et as Card,
|
|
840
|
+
Dt as Checkbox,
|
|
841
|
+
St as Dialog,
|
|
842
|
+
At as DownloadLink,
|
|
843
|
+
Bt as Form,
|
|
844
|
+
qt as Input,
|
|
845
|
+
Pt as Link,
|
|
846
|
+
Tt as Modal,
|
|
847
|
+
Rt as Nav,
|
|
848
|
+
zt as NumberInput,
|
|
849
|
+
Zt as Palette,
|
|
850
|
+
Ht as PasswordInput,
|
|
851
|
+
Ot as RadioGroup,
|
|
852
|
+
Ft as Route,
|
|
853
|
+
Mt as Section,
|
|
854
|
+
Kt as Select,
|
|
855
|
+
Ut as SkipLink,
|
|
856
|
+
Gt as Table,
|
|
857
|
+
Wt as Textarea,
|
|
858
|
+
Vt as Theme,
|
|
859
|
+
bt as VisuallyHidden,
|
|
860
|
+
v as cx,
|
|
861
|
+
ee as hash,
|
|
862
|
+
U as location,
|
|
863
|
+
Te as navigate,
|
|
864
|
+
Ct as title
|
|
545
865
|
};
|