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