@versini/sassysaint 5.4.14 → 5.4.15
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/chunks/{LazyApp.nhzP-Nbc.js → LazyApp.CmWxSgb_.js} +356 -357
- package/dist/chunks/{LazyHeader.CCjVT4z8.js → LazyHeader.CmyI3orp.js} +29 -29
- package/dist/chunks/{LazyMarkdownWithExtra.aWPJfbF0.js → LazyMarkdownWithExtra.bTU0zWSE.js} +2 -2
- package/dist/chunks/{LazyMessageAssistant.Bpza5zkH.js → LazyMessageAssistant.BkIqe55j.js} +8 -8
- package/dist/chunks/{index.CYifYdxQ.js → index.D8QVMbN9.js} +729 -826
- package/dist/chunks/{index.8mgE_tU8.js → index.Dn9p043U.js} +318 -288
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { g as
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as _, jsx as l, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
+
import { g as Se, DEFAULT_AI_ENGINE as J } from "./index.D8QVMbN9.js";
|
|
3
|
+
import E, { useSyncExternalStore as Ce, useCallback as U, useEffect as R, useContext as H, useRef as k, useState as $, useLayoutEffect as O, useMemo as ne, useId as Ae, useReducer as Ie } from "react";
|
|
4
4
|
import i from "clsx";
|
|
5
|
-
const
|
|
5
|
+
const Nt = ({
|
|
6
6
|
className: e,
|
|
7
7
|
viewBox: r,
|
|
8
8
|
title: t,
|
|
9
9
|
monotone: a,
|
|
10
10
|
...o
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
|
|
11
|
+
}) => /* @__PURE__ */ _(
|
|
12
|
+
Se,
|
|
13
13
|
{
|
|
14
14
|
defaultViewBox: "0 0 512 512",
|
|
15
15
|
size: "size-5",
|
|
@@ -18,56 +18,56 @@ const Tt = ({
|
|
|
18
18
|
title: t || "Edit",
|
|
19
19
|
...o,
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ l(
|
|
22
22
|
"path",
|
|
23
23
|
{
|
|
24
24
|
opacity: a ? "1" : "0.4",
|
|
25
25
|
d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ l("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
function
|
|
32
|
+
function ce(e, r) {
|
|
33
33
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const re = (e, r) => {
|
|
36
36
|
const t = JSON.stringify(
|
|
37
37
|
typeof r == "function" ? r() : r
|
|
38
38
|
);
|
|
39
|
-
window.localStorage.setItem(e, t),
|
|
40
|
-
},
|
|
41
|
-
window.localStorage.removeItem(e),
|
|
42
|
-
},
|
|
43
|
-
function
|
|
39
|
+
window.localStorage.setItem(e, t), ce(e, t);
|
|
40
|
+
}, $e = (e) => {
|
|
41
|
+
window.localStorage.removeItem(e), ce(e, null);
|
|
42
|
+
}, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
43
|
+
function St({
|
|
44
44
|
key: e,
|
|
45
45
|
initialValue: r
|
|
46
46
|
}) {
|
|
47
|
-
const t =
|
|
47
|
+
const t = Ce(Re, () => ae(e)), a = U(
|
|
48
48
|
(n) => {
|
|
49
49
|
try {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
console.warn(
|
|
50
|
+
const s = typeof n == "function" ? n(JSON.parse(t)) : n;
|
|
51
|
+
s == null ? $e(e) : re(e, s);
|
|
52
|
+
} catch (s) {
|
|
53
|
+
console.warn(s);
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
[e, t]
|
|
57
|
-
), o =
|
|
57
|
+
), o = U(() => {
|
|
58
58
|
a(r);
|
|
59
|
-
}, [r, a]), c =
|
|
59
|
+
}, [r, a]), c = U(() => {
|
|
60
60
|
a(null);
|
|
61
61
|
}, [a]);
|
|
62
|
-
return
|
|
62
|
+
return R(() => {
|
|
63
63
|
try {
|
|
64
|
-
|
|
64
|
+
ae(e) === null && typeof r < "u" && re(e, r);
|
|
65
65
|
} catch (n) {
|
|
66
66
|
console.warn(n);
|
|
67
67
|
}
|
|
68
68
|
}, [e, r]), [t ? JSON.parse(t) : null, a, o, c];
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const x = {
|
|
71
71
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
72
72
|
location(latitude: $latitude, longitude: $longitude) {
|
|
73
73
|
country
|
|
@@ -171,44 +171,44 @@ const _ = {
|
|
|
171
171
|
engine: $engine,
|
|
172
172
|
tags: $tags)
|
|
173
173
|
}`
|
|
174
|
-
},
|
|
174
|
+
}, Ct = {
|
|
175
175
|
GET_LOCATION: {
|
|
176
|
-
schema:
|
|
176
|
+
schema: x.GET_LOCATION,
|
|
177
177
|
method: "location"
|
|
178
178
|
},
|
|
179
179
|
GET_CHATS: {
|
|
180
|
-
schema:
|
|
180
|
+
schema: x.GET_CHATS,
|
|
181
181
|
method: "chats"
|
|
182
182
|
},
|
|
183
183
|
GET_CHATS_STATS: {
|
|
184
|
-
schema:
|
|
184
|
+
schema: x.GET_CHATS_STATS,
|
|
185
185
|
method: "chatsStats"
|
|
186
186
|
},
|
|
187
187
|
GET_CHAT: {
|
|
188
|
-
schema:
|
|
188
|
+
schema: x.GET_CHAT,
|
|
189
189
|
method: "chatById"
|
|
190
190
|
},
|
|
191
191
|
DELETE_CHAT: {
|
|
192
|
-
schema:
|
|
192
|
+
schema: x.DELETE_CHAT,
|
|
193
193
|
method: "deleteChat"
|
|
194
194
|
},
|
|
195
195
|
ABOUT: {
|
|
196
|
-
schema:
|
|
196
|
+
schema: x.ABOUT,
|
|
197
197
|
method: "about"
|
|
198
198
|
},
|
|
199
199
|
GET_USER_PREFERENCES: {
|
|
200
|
-
schema:
|
|
200
|
+
schema: x.GET_USER_PREFERENCES,
|
|
201
201
|
method: "getUserPreferences"
|
|
202
202
|
},
|
|
203
203
|
SET_USER_PREFERENCES: {
|
|
204
|
-
schema:
|
|
204
|
+
schema: x.SET_USER_PREFERENCES,
|
|
205
205
|
method: "setUserPreferences"
|
|
206
206
|
}
|
|
207
|
-
},
|
|
207
|
+
}, se = process.env.PUBLIC_SASSY_API_SERVER_URL, He = async ({
|
|
208
208
|
query: e,
|
|
209
209
|
data: r,
|
|
210
210
|
headers: t = {}
|
|
211
|
-
}) => await fetch(`${
|
|
211
|
+
}) => await fetch(`${se}/graphql`, {
|
|
212
212
|
method: "POST",
|
|
213
213
|
credentials: "include",
|
|
214
214
|
headers: {
|
|
@@ -220,14 +220,14 @@ const _ = {
|
|
|
220
220
|
query: e,
|
|
221
221
|
variables: r
|
|
222
222
|
})
|
|
223
|
-
}),
|
|
223
|
+
}), At = async ({
|
|
224
224
|
accessToken: e,
|
|
225
225
|
type: r,
|
|
226
226
|
params: t = {}
|
|
227
227
|
}) => {
|
|
228
228
|
const a = r != null && r.data ? r.data(t) : t;
|
|
229
229
|
try {
|
|
230
|
-
const o = `Bearer ${e}`, c = await
|
|
230
|
+
const o = `Bearer ${e}`, c = await He({
|
|
231
231
|
headers: {
|
|
232
232
|
authorization: o
|
|
233
233
|
},
|
|
@@ -236,23 +236,23 @@ const _ = {
|
|
|
236
236
|
});
|
|
237
237
|
if (c.status !== 200)
|
|
238
238
|
return { status: c.status, data: [] };
|
|
239
|
-
const { data: n, errors:
|
|
239
|
+
const { data: n, errors: s } = await c.json();
|
|
240
240
|
return {
|
|
241
241
|
status: c.status,
|
|
242
242
|
data: n[r.method],
|
|
243
|
-
errors:
|
|
243
|
+
errors: s
|
|
244
244
|
};
|
|
245
245
|
} catch (o) {
|
|
246
246
|
return console.error(o), { status: 500, data: [] };
|
|
247
247
|
}
|
|
248
|
-
},
|
|
248
|
+
}, It = async ({
|
|
249
249
|
accessToken: e,
|
|
250
250
|
name: r,
|
|
251
251
|
data: t,
|
|
252
252
|
method: a = "POST"
|
|
253
253
|
}) => {
|
|
254
254
|
const o = `Bearer ${e}`;
|
|
255
|
-
return await fetch(`${
|
|
255
|
+
return await fetch(`${se}/api/${r}`, {
|
|
256
256
|
method: a,
|
|
257
257
|
credentials: "include",
|
|
258
258
|
headers: {
|
|
@@ -261,7 +261,34 @@ const _ = {
|
|
|
261
261
|
},
|
|
262
262
|
body: JSON.stringify(t)
|
|
263
263
|
});
|
|
264
|
-
}
|
|
264
|
+
}, $t = E.createContext({
|
|
265
|
+
state: {
|
|
266
|
+
id: "",
|
|
267
|
+
model: J,
|
|
268
|
+
engine: J,
|
|
269
|
+
usage: 0,
|
|
270
|
+
messages: [],
|
|
271
|
+
isComponent: !1,
|
|
272
|
+
tags: []
|
|
273
|
+
},
|
|
274
|
+
dispatch: () => {
|
|
275
|
+
},
|
|
276
|
+
serverStats: {
|
|
277
|
+
version: "",
|
|
278
|
+
models: [],
|
|
279
|
+
plugins: [],
|
|
280
|
+
engine: J,
|
|
281
|
+
engines: []
|
|
282
|
+
}
|
|
283
|
+
}), Rt = E.createContext({
|
|
284
|
+
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
285
|
+
dispatch: () => {
|
|
286
|
+
}
|
|
287
|
+
}), Ht = E.createContext({
|
|
288
|
+
state: { tag: "" },
|
|
289
|
+
dispatch: () => {
|
|
290
|
+
}
|
|
291
|
+
});
|
|
265
292
|
/*!
|
|
266
293
|
@versini/ui-table v2.0.8
|
|
267
294
|
© 2024 gizmette.com
|
|
@@ -275,7 +302,7 @@ try {
|
|
|
275
302
|
});
|
|
276
303
|
} catch {
|
|
277
304
|
}
|
|
278
|
-
const F = "thead",
|
|
305
|
+
const F = "thead", X = "tfoot", N = "tbody", M = {
|
|
279
306
|
ASC: "asc",
|
|
280
307
|
DESC: "desc"
|
|
281
308
|
}, Be = ({
|
|
@@ -309,7 +336,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
309
336
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
310
337
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
311
338
|
})
|
|
312
|
-
}),
|
|
339
|
+
}), ze = ({
|
|
313
340
|
className: e,
|
|
314
341
|
stickyHeader: r,
|
|
315
342
|
mode: t
|
|
@@ -322,7 +349,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
322
349
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "alt-system"
|
|
323
350
|
},
|
|
324
351
|
e
|
|
325
|
-
),
|
|
352
|
+
), Le = ({
|
|
326
353
|
className: e,
|
|
327
354
|
stickyFooter: r,
|
|
328
355
|
mode: t
|
|
@@ -335,11 +362,11 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
335
362
|
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "alt-system"
|
|
336
363
|
},
|
|
337
364
|
e
|
|
338
|
-
),
|
|
365
|
+
), Ve = ({
|
|
339
366
|
mode: e,
|
|
340
367
|
className: r,
|
|
341
368
|
cellWrapper: t
|
|
342
|
-
}) => t === F || t ===
|
|
369
|
+
}) => t === F || t === X ? i(
|
|
343
370
|
{
|
|
344
371
|
"bg-table-head-dark": e === "dark",
|
|
345
372
|
"bg-table-head-light": e === "light",
|
|
@@ -351,16 +378,16 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
351
378
|
"border-b last:border-0",
|
|
352
379
|
{
|
|
353
380
|
"border-table-dark": e === "dark",
|
|
354
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": t ===
|
|
381
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === N && e === "dark",
|
|
355
382
|
"border-table-light": e === "light",
|
|
356
|
-
"odd:bg-table-light-odd even:bg-table-light-even": t ===
|
|
383
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === N && e === "light",
|
|
357
384
|
"border-table-dark dark:border-table-light": e === "system",
|
|
358
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t ===
|
|
385
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === N && e === "system",
|
|
359
386
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
360
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t ===
|
|
387
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === N && e === "alt-system"
|
|
361
388
|
},
|
|
362
389
|
r
|
|
363
|
-
),
|
|
390
|
+
), Oe = ({
|
|
364
391
|
cellWrapper: e,
|
|
365
392
|
className: r,
|
|
366
393
|
compact: t,
|
|
@@ -371,33 +398,33 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
371
398
|
"text-copy-dark": a === "light",
|
|
372
399
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
373
400
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
374
|
-
"px-4 py-3": !t && (e === F || e ===
|
|
375
|
-
"p-4": !t && e ===
|
|
401
|
+
"px-4 py-3": !t && (e === F || e === X),
|
|
402
|
+
"p-4": !t && e === N,
|
|
376
403
|
"px-2 py-1.5": t
|
|
377
404
|
},
|
|
378
405
|
r
|
|
379
|
-
),
|
|
406
|
+
), Me = ({
|
|
380
407
|
buttonClassName: e
|
|
381
|
-
}) => i("rounded-none text-sm", e),
|
|
408
|
+
}) => i("rounded-none text-sm", e), oe = "av-button", le = "icon", Ue = "button", Fe = "link", Ge = ({
|
|
382
409
|
type: e,
|
|
383
410
|
size: r,
|
|
384
411
|
labelRight: t,
|
|
385
412
|
labelLeft: a,
|
|
386
413
|
align: o
|
|
387
414
|
}) => {
|
|
388
|
-
const c = "text-sm font-medium max-h-8 py-0 px-2", n = "text-base font-medium max-h-9 py-1 px-3",
|
|
415
|
+
const c = "text-sm font-medium max-h-8 py-0 px-2", n = "text-base font-medium max-h-9 py-1 px-3", s = "text-lg font-medium max-h-12 py-2 px-4";
|
|
389
416
|
switch (e) {
|
|
390
|
-
case
|
|
417
|
+
case Ue:
|
|
391
418
|
return i({
|
|
392
419
|
[c]: r === "small",
|
|
393
420
|
[n]: r === "medium",
|
|
394
|
-
[
|
|
421
|
+
[s]: r === "large"
|
|
395
422
|
});
|
|
396
|
-
case
|
|
423
|
+
case Fe:
|
|
397
424
|
return i("text-center", {
|
|
398
425
|
[c]: r === "small",
|
|
399
426
|
[n]: r === "medium",
|
|
400
|
-
[
|
|
427
|
+
[s]: r === "large"
|
|
401
428
|
});
|
|
402
429
|
case le:
|
|
403
430
|
return i("inline-flex items-center", {
|
|
@@ -469,7 +496,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
469
496
|
"bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
|
|
470
497
|
"bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
|
|
471
498
|
});
|
|
472
|
-
},
|
|
499
|
+
}, De = ({
|
|
473
500
|
mode: e,
|
|
474
501
|
disabled: r,
|
|
475
502
|
variant: t
|
|
@@ -504,7 +531,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
504
531
|
"hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
|
|
505
532
|
"hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
|
|
506
533
|
});
|
|
507
|
-
},
|
|
534
|
+
}, We = ({
|
|
508
535
|
mode: e,
|
|
509
536
|
disabled: r,
|
|
510
537
|
variant: t
|
|
@@ -539,7 +566,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
539
566
|
"active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
|
|
540
567
|
"active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
|
|
541
568
|
});
|
|
542
|
-
},
|
|
569
|
+
}, je = ({
|
|
543
570
|
mode: e,
|
|
544
571
|
noBorder: r,
|
|
545
572
|
variant: t
|
|
@@ -574,14 +601,14 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
574
601
|
"border-border-selected-dark dark:border-border-selected-medium": e === "system",
|
|
575
602
|
"border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
|
|
576
603
|
});
|
|
577
|
-
},
|
|
604
|
+
}, qe = ({
|
|
578
605
|
focusMode: e
|
|
579
606
|
}) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
580
607
|
"focus:outline-focus-dark": e === "dark",
|
|
581
608
|
"focus:outline-focus-light": e === "light",
|
|
582
609
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
583
610
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
584
|
-
}),
|
|
611
|
+
}), Je = ({
|
|
585
612
|
type: e,
|
|
586
613
|
className: r,
|
|
587
614
|
raw: t,
|
|
@@ -589,7 +616,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
589
616
|
focusMode: o,
|
|
590
617
|
disabled: c,
|
|
591
618
|
fullWidth: n,
|
|
592
|
-
size:
|
|
619
|
+
size: s,
|
|
593
620
|
noBorder: d,
|
|
594
621
|
labelRight: u,
|
|
595
622
|
labelLeft: m,
|
|
@@ -598,8 +625,8 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
598
625
|
noTruncate: b,
|
|
599
626
|
align: p,
|
|
600
627
|
radius: w
|
|
601
|
-
}) => (h || (h = "primary"), t ? i(
|
|
602
|
-
|
|
628
|
+
}) => (h || (h = "primary"), t ? i(oe, r) : i(
|
|
629
|
+
oe,
|
|
603
630
|
Pe({
|
|
604
631
|
mode: a,
|
|
605
632
|
variant: h,
|
|
@@ -607,39 +634,39 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
607
634
|
noTruncate: b,
|
|
608
635
|
radius: w
|
|
609
636
|
}),
|
|
610
|
-
|
|
637
|
+
Ge({
|
|
611
638
|
type: e,
|
|
612
|
-
size:
|
|
639
|
+
size: s,
|
|
613
640
|
labelRight: u,
|
|
614
641
|
labelLeft: m,
|
|
615
642
|
align: p
|
|
616
643
|
}),
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
Ge({ mode: a, variant: h, disabled: c }),
|
|
644
|
+
je({ mode: a, variant: h, noBorder: d }),
|
|
645
|
+
qe({ focusMode: o }),
|
|
620
646
|
De({ mode: a, variant: h, disabled: c }),
|
|
647
|
+
We({ mode: a, variant: h, disabled: c }),
|
|
621
648
|
{
|
|
622
649
|
"w-full": n,
|
|
623
650
|
"disabled:cursor-not-allowed disabled:opacity-50": c
|
|
624
651
|
},
|
|
625
652
|
r
|
|
626
|
-
)),
|
|
653
|
+
)), Qe = (e, r, t) => {
|
|
627
654
|
var a;
|
|
628
655
|
!r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
629
|
-
},
|
|
656
|
+
}, de = E.forwardRef((e, r) => {
|
|
630
657
|
const { onClick: t, noInternalClick: a = !1, ...o } = e;
|
|
631
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ l(
|
|
632
659
|
"button",
|
|
633
660
|
{
|
|
634
661
|
ref: r,
|
|
635
662
|
onClick: (c) => {
|
|
636
|
-
|
|
663
|
+
Qe(c, a, t);
|
|
637
664
|
},
|
|
638
665
|
...o
|
|
639
666
|
}
|
|
640
667
|
);
|
|
641
668
|
});
|
|
642
|
-
|
|
669
|
+
de.displayName = "BaseButton";
|
|
643
670
|
/*!
|
|
644
671
|
@versini/ui-button v3.2.0
|
|
645
672
|
© 2024 gizmette.com
|
|
@@ -653,7 +680,7 @@ try {
|
|
|
653
680
|
});
|
|
654
681
|
} catch {
|
|
655
682
|
}
|
|
656
|
-
const
|
|
683
|
+
const ue = E.forwardRef(
|
|
657
684
|
({
|
|
658
685
|
children: e,
|
|
659
686
|
disabled: r = !1,
|
|
@@ -662,7 +689,7 @@ const de = U.forwardRef(
|
|
|
662
689
|
fullWidth: o = !1,
|
|
663
690
|
className: c,
|
|
664
691
|
type: n = "button",
|
|
665
|
-
raw:
|
|
692
|
+
raw: s = !1,
|
|
666
693
|
noBorder: d = !1,
|
|
667
694
|
"aria-label": u,
|
|
668
695
|
label: m,
|
|
@@ -671,17 +698,17 @@ const de = U.forwardRef(
|
|
|
671
698
|
labelLeft: b,
|
|
672
699
|
noBackground: p = !1,
|
|
673
700
|
align: w = "center",
|
|
674
|
-
active:
|
|
701
|
+
active: C = !1,
|
|
675
702
|
radius: B = "large",
|
|
676
|
-
...
|
|
677
|
-
},
|
|
678
|
-
const
|
|
703
|
+
...z
|
|
704
|
+
}, L) => {
|
|
705
|
+
const G = Je({
|
|
679
706
|
type: le,
|
|
680
707
|
mode: t,
|
|
681
708
|
focusMode: a,
|
|
682
709
|
fullWidth: o,
|
|
683
710
|
disabled: r,
|
|
684
|
-
raw:
|
|
711
|
+
raw: s,
|
|
685
712
|
className: c,
|
|
686
713
|
noBorder: d,
|
|
687
714
|
size: g,
|
|
@@ -690,12 +717,12 @@ const de = U.forwardRef(
|
|
|
690
717
|
noBackground: p,
|
|
691
718
|
align: w,
|
|
692
719
|
radius: B
|
|
693
|
-
}),
|
|
694
|
-
"text-copy-accent-dark": t === "light" && !
|
|
695
|
-
"text-copy-light": t === "dark" && !
|
|
696
|
-
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !
|
|
697
|
-
"text-copy-light dark:text-copy-accent-dark": t === "system" && !
|
|
698
|
-
}), f =
|
|
720
|
+
}), P = i({
|
|
721
|
+
"text-copy-accent-dark": t === "light" && !s,
|
|
722
|
+
"text-copy-light": t === "dark" && !s,
|
|
723
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
|
|
724
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !s
|
|
725
|
+
}), f = C ? i(
|
|
699
726
|
"relative",
|
|
700
727
|
"focus-within:static",
|
|
701
728
|
"focus-within:after:border-transparent",
|
|
@@ -712,26 +739,26 @@ const de = U.forwardRef(
|
|
|
712
739
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
713
740
|
}
|
|
714
741
|
) : "";
|
|
715
|
-
return /* @__PURE__ */
|
|
716
|
-
|
|
742
|
+
return /* @__PURE__ */ l("div", { className: f, children: /* @__PURE__ */ _(
|
|
743
|
+
de,
|
|
717
744
|
{
|
|
718
|
-
ref:
|
|
719
|
-
className:
|
|
745
|
+
ref: L,
|
|
746
|
+
className: G,
|
|
720
747
|
disabled: r,
|
|
721
748
|
type: n,
|
|
722
749
|
"aria-label": u || m,
|
|
723
|
-
...
|
|
750
|
+
...z,
|
|
724
751
|
children: [
|
|
725
|
-
b && /* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
h && /* @__PURE__ */
|
|
752
|
+
b && /* @__PURE__ */ l("span", { className: "pr-2", children: b }),
|
|
753
|
+
/* @__PURE__ */ l("div", { className: P, children: e }),
|
|
754
|
+
h && /* @__PURE__ */ l("span", { className: "pl-2", children: h })
|
|
728
755
|
]
|
|
729
756
|
}
|
|
730
757
|
) });
|
|
731
758
|
}
|
|
732
759
|
);
|
|
733
|
-
|
|
734
|
-
const
|
|
760
|
+
ue.displayName = "ButtonSort";
|
|
761
|
+
const Y = ({
|
|
735
762
|
children: e,
|
|
736
763
|
fill: r,
|
|
737
764
|
viewBox: t,
|
|
@@ -739,12 +766,12 @@ const X = ({
|
|
|
739
766
|
defaultViewBox: o,
|
|
740
767
|
size: c,
|
|
741
768
|
title: n,
|
|
742
|
-
semantic:
|
|
769
|
+
semantic: s = !1,
|
|
743
770
|
...d
|
|
744
771
|
}) => {
|
|
745
772
|
const u = i(c, a);
|
|
746
|
-
return /* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
773
|
+
return /* @__PURE__ */ _(Ne, { children: [
|
|
774
|
+
/* @__PURE__ */ l(
|
|
748
775
|
"svg",
|
|
749
776
|
{
|
|
750
777
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -752,13 +779,13 @@ const X = ({
|
|
|
752
779
|
viewBox: t || o,
|
|
753
780
|
fill: r || "currentColor",
|
|
754
781
|
role: "img",
|
|
755
|
-
"aria-hidden": !
|
|
782
|
+
"aria-hidden": !s,
|
|
756
783
|
focusable: !1,
|
|
757
784
|
...d,
|
|
758
785
|
children: e
|
|
759
786
|
}
|
|
760
787
|
),
|
|
761
|
-
n &&
|
|
788
|
+
n && s && /* @__PURE__ */ l("span", { className: "sr-only", children: n })
|
|
762
789
|
] });
|
|
763
790
|
};
|
|
764
791
|
/*!
|
|
@@ -774,14 +801,14 @@ try {
|
|
|
774
801
|
});
|
|
775
802
|
} catch {
|
|
776
803
|
}
|
|
777
|
-
const
|
|
804
|
+
const Xe = ({
|
|
778
805
|
className: e,
|
|
779
806
|
viewBox: r,
|
|
780
807
|
title: t,
|
|
781
808
|
monotone: a,
|
|
782
809
|
...o
|
|
783
|
-
}) => /* @__PURE__ */
|
|
784
|
-
|
|
810
|
+
}) => /* @__PURE__ */ _(
|
|
811
|
+
Y,
|
|
785
812
|
{
|
|
786
813
|
defaultViewBox: "0 0 576 512",
|
|
787
814
|
size: "size-5",
|
|
@@ -790,24 +817,24 @@ const Qe = ({
|
|
|
790
817
|
title: t || "Sort",
|
|
791
818
|
...o,
|
|
792
819
|
children: [
|
|
793
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ l(
|
|
794
821
|
"path",
|
|
795
822
|
{
|
|
796
823
|
opacity: a ? "1" : "0.4",
|
|
797
824
|
d: "M393.4 41.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L448 141.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V141.3l-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96z"
|
|
798
825
|
}
|
|
799
826
|
),
|
|
800
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
801
828
|
]
|
|
802
829
|
}
|
|
803
|
-
),
|
|
830
|
+
), Ye = ({
|
|
804
831
|
className: e,
|
|
805
832
|
viewBox: r,
|
|
806
833
|
title: t,
|
|
807
834
|
monotone: a,
|
|
808
835
|
...o
|
|
809
|
-
}) => /* @__PURE__ */
|
|
810
|
-
|
|
836
|
+
}) => /* @__PURE__ */ _(
|
|
837
|
+
Y,
|
|
811
838
|
{
|
|
812
839
|
defaultViewBox: "0 0 576 512",
|
|
813
840
|
size: "size-5",
|
|
@@ -816,24 +843,24 @@ const Qe = ({
|
|
|
816
843
|
title: t || "Sort Down",
|
|
817
844
|
...o,
|
|
818
845
|
children: [
|
|
819
|
-
/* @__PURE__ */
|
|
846
|
+
/* @__PURE__ */ l(
|
|
820
847
|
"path",
|
|
821
848
|
{
|
|
822
849
|
opacity: a ? "1" : "0.4",
|
|
823
850
|
d: "M288 448c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32z"
|
|
824
851
|
}
|
|
825
852
|
),
|
|
826
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
|
|
827
854
|
]
|
|
828
855
|
}
|
|
829
|
-
),
|
|
856
|
+
), Ke = ({
|
|
830
857
|
className: e,
|
|
831
858
|
viewBox: r,
|
|
832
859
|
title: t,
|
|
833
860
|
monotone: a,
|
|
834
861
|
...o
|
|
835
|
-
}) => /* @__PURE__ */
|
|
836
|
-
|
|
862
|
+
}) => /* @__PURE__ */ _(
|
|
863
|
+
Y,
|
|
837
864
|
{
|
|
838
865
|
defaultViewBox: "0 0 576 512",
|
|
839
866
|
size: "size-5",
|
|
@@ -842,14 +869,14 @@ const Qe = ({
|
|
|
842
869
|
title: t || "Sort Up",
|
|
843
870
|
...o,
|
|
844
871
|
children: [
|
|
845
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ l(
|
|
846
873
|
"path",
|
|
847
874
|
{
|
|
848
875
|
opacity: a ? "1" : "0.4",
|
|
849
876
|
d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32z"
|
|
850
877
|
}
|
|
851
878
|
),
|
|
852
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ l("path", { d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
|
|
853
880
|
]
|
|
854
881
|
}
|
|
855
882
|
);
|
|
@@ -866,13 +893,13 @@ try {
|
|
|
866
893
|
});
|
|
867
894
|
} catch {
|
|
868
895
|
}
|
|
869
|
-
const
|
|
896
|
+
const S = E.createContext({
|
|
870
897
|
mode: "light",
|
|
871
898
|
cellWrapper: "thead",
|
|
872
899
|
stickyHeader: !1,
|
|
873
900
|
stickyFooter: !1,
|
|
874
901
|
compact: !1
|
|
875
|
-
}),
|
|
902
|
+
}), Bt = ({
|
|
876
903
|
children: e,
|
|
877
904
|
mode: r = "system",
|
|
878
905
|
caption: t,
|
|
@@ -880,7 +907,7 @@ const N = U.createContext({
|
|
|
880
907
|
summary: o,
|
|
881
908
|
className: c,
|
|
882
909
|
wrapperClassName: n,
|
|
883
|
-
maxHeight:
|
|
910
|
+
maxHeight: s,
|
|
884
911
|
stickyHeader: d,
|
|
885
912
|
stickyFooter: u,
|
|
886
913
|
...m
|
|
@@ -892,79 +919,79 @@ const N = U.createContext({
|
|
|
892
919
|
stickyHeader: d,
|
|
893
920
|
stickyFooter: u
|
|
894
921
|
});
|
|
895
|
-
return /* @__PURE__ */
|
|
896
|
-
|
|
922
|
+
return /* @__PURE__ */ l(
|
|
923
|
+
S.Provider,
|
|
897
924
|
{
|
|
898
925
|
value: { mode: r, stickyHeader: d, stickyFooter: u, compact: a },
|
|
899
|
-
children: /* @__PURE__ */
|
|
926
|
+
children: /* @__PURE__ */ l(
|
|
900
927
|
"div",
|
|
901
928
|
{
|
|
902
929
|
className: g.wrapper,
|
|
903
|
-
...
|
|
904
|
-
style: { maxHeight:
|
|
930
|
+
...s && {
|
|
931
|
+
style: { maxHeight: s }
|
|
905
932
|
},
|
|
906
|
-
children: /* @__PURE__ */
|
|
907
|
-
t && /* @__PURE__ */
|
|
933
|
+
children: /* @__PURE__ */ _("table", { className: g.table, summary: o, ...m, children: [
|
|
934
|
+
t && /* @__PURE__ */ l("caption", { className: g.caption, children: t }),
|
|
908
935
|
e
|
|
909
936
|
] })
|
|
910
937
|
}
|
|
911
938
|
)
|
|
912
939
|
}
|
|
913
940
|
);
|
|
914
|
-
},
|
|
941
|
+
}, zt = ({
|
|
915
942
|
children: e,
|
|
916
943
|
className: r,
|
|
917
944
|
...t
|
|
918
945
|
}) => {
|
|
919
|
-
const a =
|
|
946
|
+
const a = H(S);
|
|
920
947
|
a.cellWrapper = F;
|
|
921
|
-
const o =
|
|
948
|
+
const o = ze({
|
|
922
949
|
className: r,
|
|
923
950
|
mode: a.mode,
|
|
924
951
|
stickyHeader: a.stickyHeader
|
|
925
952
|
});
|
|
926
|
-
return /* @__PURE__ */
|
|
927
|
-
},
|
|
953
|
+
return /* @__PURE__ */ l("thead", { className: o, ...t, children: e });
|
|
954
|
+
}, Lt = ({
|
|
928
955
|
children: e,
|
|
929
956
|
className: r,
|
|
930
957
|
...t
|
|
931
958
|
}) => {
|
|
932
|
-
const a =
|
|
933
|
-
a.cellWrapper =
|
|
934
|
-
const o =
|
|
959
|
+
const a = H(S);
|
|
960
|
+
a.cellWrapper = X;
|
|
961
|
+
const o = Le({
|
|
935
962
|
className: r,
|
|
936
963
|
mode: a.mode,
|
|
937
964
|
stickyFooter: a.stickyFooter
|
|
938
965
|
});
|
|
939
|
-
return /* @__PURE__ */
|
|
940
|
-
},
|
|
941
|
-
const t =
|
|
942
|
-
return t.cellWrapper =
|
|
943
|
-
},
|
|
966
|
+
return /* @__PURE__ */ l("tfoot", { className: o, ...t, children: e });
|
|
967
|
+
}, Vt = ({ children: e, ...r }) => {
|
|
968
|
+
const t = H(S);
|
|
969
|
+
return t.cellWrapper = N, /* @__PURE__ */ l("tbody", { ...r, children: e });
|
|
970
|
+
}, Ot = ({
|
|
944
971
|
children: e,
|
|
945
972
|
className: r,
|
|
946
973
|
...t
|
|
947
974
|
}) => {
|
|
948
|
-
const a =
|
|
975
|
+
const a = H(S), o = Ve({
|
|
949
976
|
mode: a.mode,
|
|
950
977
|
cellWrapper: a.cellWrapper,
|
|
951
978
|
className: r
|
|
952
979
|
});
|
|
953
|
-
return /* @__PURE__ */
|
|
954
|
-
},
|
|
980
|
+
return /* @__PURE__ */ l("tr", { className: o, ...t, children: e });
|
|
981
|
+
}, Ze = ({
|
|
955
982
|
children: e,
|
|
956
983
|
component: r,
|
|
957
984
|
className: t,
|
|
958
985
|
...a
|
|
959
986
|
}) => {
|
|
960
|
-
const o =
|
|
987
|
+
const o = H(S), c = r || (o.cellWrapper === F ? "th" : "td"), n = Oe({
|
|
961
988
|
cellWrapper: o.cellWrapper,
|
|
962
989
|
className: t,
|
|
963
990
|
mode: o.mode,
|
|
964
991
|
compact: o.compact
|
|
965
992
|
});
|
|
966
|
-
return /* @__PURE__ */
|
|
967
|
-
},
|
|
993
|
+
return /* @__PURE__ */ l(c, { className: n, ...a, children: e });
|
|
994
|
+
}, Mt = ({
|
|
968
995
|
align: e,
|
|
969
996
|
children: r,
|
|
970
997
|
buttonClassName: t,
|
|
@@ -972,34 +999,34 @@ const N = U.createContext({
|
|
|
972
999
|
component: o,
|
|
973
1000
|
focusMode: c = "alt-system",
|
|
974
1001
|
mode: n = "alt-system",
|
|
975
|
-
onClick:
|
|
1002
|
+
onClick: s,
|
|
976
1003
|
sortDirection: d,
|
|
977
1004
|
sortedCell: u,
|
|
978
1005
|
cellId: m,
|
|
979
1006
|
...g
|
|
980
1007
|
}) => {
|
|
981
|
-
const h =
|
|
982
|
-
return /* @__PURE__ */
|
|
983
|
-
|
|
1008
|
+
const h = Me({ buttonClassName: t });
|
|
1009
|
+
return /* @__PURE__ */ l(
|
|
1010
|
+
Ze,
|
|
984
1011
|
{
|
|
985
1012
|
component: o,
|
|
986
1013
|
className: a,
|
|
987
1014
|
role: "columnheader",
|
|
988
|
-
"aria-sort": d ===
|
|
1015
|
+
"aria-sort": d === M.ASC && u === m ? "ascending" : d === M.DESC && u === m ? "descending" : "other",
|
|
989
1016
|
...g,
|
|
990
|
-
children: /* @__PURE__ */
|
|
991
|
-
|
|
1017
|
+
children: /* @__PURE__ */ l(
|
|
1018
|
+
ue,
|
|
992
1019
|
{
|
|
993
1020
|
active: u === m,
|
|
994
1021
|
className: h,
|
|
995
|
-
onClick:
|
|
1022
|
+
onClick: s,
|
|
996
1023
|
align: e,
|
|
997
1024
|
noBorder: !0,
|
|
998
1025
|
focusMode: c,
|
|
999
1026
|
mode: n,
|
|
1000
1027
|
fullWidth: !0,
|
|
1001
1028
|
labelRight: r,
|
|
1002
|
-
children: d ===
|
|
1029
|
+
children: d === M.ASC && u === m ? /* @__PURE__ */ l(Ke, { className: "size-4", monotone: !0 }) : d === M.DESC && u === m ? /* @__PURE__ */ l(Ye, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xe, { className: "size-4", monotone: !0 })
|
|
1003
1030
|
}
|
|
1004
1031
|
)
|
|
1005
1032
|
}
|
|
@@ -1018,22 +1045,22 @@ try {
|
|
|
1018
1045
|
});
|
|
1019
1046
|
} catch {
|
|
1020
1047
|
}
|
|
1021
|
-
const
|
|
1022
|
-
function
|
|
1048
|
+
const me = "av-text-area", et = "av-text-area-wrapper", Q = "av-text-area-helper-text", tt = "av-text-area__control--right";
|
|
1049
|
+
function rt() {
|
|
1023
1050
|
const e = k(!1);
|
|
1024
|
-
return
|
|
1051
|
+
return R(() => (e.current = !0, () => {
|
|
1025
1052
|
e.current = !1;
|
|
1026
|
-
}), []),
|
|
1053
|
+
}), []), U(() => e.current, []);
|
|
1027
1054
|
}
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1055
|
+
function at(e) {
|
|
1056
|
+
return ne(() => e.every((r) => r == null) ? () => {
|
|
1030
1057
|
} : (r) => {
|
|
1031
1058
|
e.forEach((t) => {
|
|
1032
1059
|
typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
1033
1060
|
});
|
|
1034
1061
|
}, e);
|
|
1035
1062
|
}
|
|
1036
|
-
const
|
|
1063
|
+
const ot = {
|
|
1037
1064
|
x: 0,
|
|
1038
1065
|
y: 0,
|
|
1039
1066
|
width: 0,
|
|
@@ -1043,18 +1070,18 @@ const at = {
|
|
|
1043
1070
|
bottom: 0,
|
|
1044
1071
|
right: 0
|
|
1045
1072
|
};
|
|
1046
|
-
function
|
|
1047
|
-
const r =
|
|
1048
|
-
const d =
|
|
1073
|
+
function it(e) {
|
|
1074
|
+
const r = rt(), t = k(0), a = k(null), [o, c] = $(ot), n = ne(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
1075
|
+
const d = s[0];
|
|
1049
1076
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
1050
1077
|
a.current && r() && c(d.contentRect);
|
|
1051
1078
|
}));
|
|
1052
1079
|
}), [r]);
|
|
1053
|
-
return
|
|
1080
|
+
return R(() => (a.current && (n == null || n.observe(a.current, e)), () => {
|
|
1054
1081
|
n == null || n.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
1055
1082
|
}), [n, e]), [a, o];
|
|
1056
1083
|
}
|
|
1057
|
-
function
|
|
1084
|
+
function nt({
|
|
1058
1085
|
value: e,
|
|
1059
1086
|
defaultValue: r,
|
|
1060
1087
|
finalValue: t,
|
|
@@ -1062,19 +1089,19 @@ function it({
|
|
|
1062
1089
|
},
|
|
1063
1090
|
initialControlledDelay: o = 0
|
|
1064
1091
|
}) {
|
|
1065
|
-
const [c, n] =
|
|
1092
|
+
const [c, n] = $(!1), [s, d] = $(
|
|
1066
1093
|
r !== void 0 ? r : t
|
|
1067
1094
|
), u = (m) => {
|
|
1068
1095
|
d(m), a == null || a(m);
|
|
1069
1096
|
};
|
|
1070
|
-
return
|
|
1097
|
+
return R(() => {
|
|
1071
1098
|
(async () => e !== void 0 && !c && o > 0 && (await new Promise(
|
|
1072
1099
|
(m) => setTimeout(m, o)
|
|
1073
1100
|
), n(!0)))();
|
|
1074
|
-
}, [e, o, c]), e !== void 0 ? !c && o > 0 ? ["", a, !0] : [e, a, !0] : [
|
|
1101
|
+
}, [e, o, c]), e !== void 0 ? !c && o > 0 ? ["", a, !0] : [e, a, !0] : [s, u, !1];
|
|
1075
1102
|
}
|
|
1076
|
-
function
|
|
1077
|
-
const r =
|
|
1103
|
+
function ct(e) {
|
|
1104
|
+
const r = Ae();
|
|
1078
1105
|
if (!e)
|
|
1079
1106
|
return r;
|
|
1080
1107
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -1084,7 +1111,7 @@ function nt(e) {
|
|
|
1084
1111
|
return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
|
|
1085
1112
|
}
|
|
1086
1113
|
}
|
|
1087
|
-
const
|
|
1114
|
+
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", st = {
|
|
1088
1115
|
alert: null,
|
|
1089
1116
|
alertdialog: null,
|
|
1090
1117
|
log: "polite",
|
|
@@ -1094,12 +1121,12 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1094
1121
|
timer: "assertive"
|
|
1095
1122
|
}, lt = (e, r) => {
|
|
1096
1123
|
switch (r == null ? void 0 : r.type) {
|
|
1097
|
-
case
|
|
1124
|
+
case he:
|
|
1098
1125
|
return {
|
|
1099
1126
|
...e,
|
|
1100
1127
|
announcement: r.payload
|
|
1101
1128
|
};
|
|
1102
|
-
case
|
|
1129
|
+
case ge:
|
|
1103
1130
|
return {
|
|
1104
1131
|
...e,
|
|
1105
1132
|
announcement: null
|
|
@@ -1107,14 +1134,14 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1107
1134
|
default:
|
|
1108
1135
|
return e;
|
|
1109
1136
|
}
|
|
1110
|
-
},
|
|
1137
|
+
}, dt = ({
|
|
1111
1138
|
onAnnouncementClear: e,
|
|
1112
1139
|
dispatch: r
|
|
1113
1140
|
}) => {
|
|
1114
1141
|
r({
|
|
1115
|
-
type:
|
|
1142
|
+
type: ge
|
|
1116
1143
|
}), typeof e == "function" && e();
|
|
1117
|
-
},
|
|
1144
|
+
}, ie = ({
|
|
1118
1145
|
children: e,
|
|
1119
1146
|
clearAnnouncementDelay: r,
|
|
1120
1147
|
clearAnnouncementTimeoutRef: t,
|
|
@@ -1122,16 +1149,16 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1122
1149
|
dispatch: o
|
|
1123
1150
|
}) => {
|
|
1124
1151
|
clearTimeout(t.current), e !== null && o({
|
|
1125
|
-
type:
|
|
1152
|
+
type: he,
|
|
1126
1153
|
payload: e
|
|
1127
1154
|
}), r && (t.current = setTimeout(
|
|
1128
|
-
() =>
|
|
1155
|
+
() => dt({
|
|
1129
1156
|
onAnnouncementClear: a,
|
|
1130
1157
|
dispatch: o
|
|
1131
1158
|
}),
|
|
1132
1159
|
r
|
|
1133
1160
|
));
|
|
1134
|
-
},
|
|
1161
|
+
}, ut = ({
|
|
1135
1162
|
children: e,
|
|
1136
1163
|
announcementTimeoutRef: r,
|
|
1137
1164
|
announcementDelay: t,
|
|
@@ -1140,13 +1167,13 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1140
1167
|
onAnnouncementClear: c,
|
|
1141
1168
|
dispatch: n
|
|
1142
1169
|
}) => {
|
|
1143
|
-
clearTimeout(r.current), t ? r.current = setTimeout(
|
|
1170
|
+
clearTimeout(r.current), t ? r.current = setTimeout(ie, t, {
|
|
1144
1171
|
children: e,
|
|
1145
1172
|
clearAnnouncementDelay: a,
|
|
1146
1173
|
clearAnnouncementTimeoutRef: o,
|
|
1147
1174
|
onAnnouncementClear: c,
|
|
1148
1175
|
dispatch: n
|
|
1149
|
-
}) :
|
|
1176
|
+
}) : ie({
|
|
1150
1177
|
children: e,
|
|
1151
1178
|
clearAnnouncementDelay: a,
|
|
1152
1179
|
clearAnnouncementTimeoutRef: o,
|
|
@@ -1154,7 +1181,7 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1154
1181
|
dispatch: n
|
|
1155
1182
|
});
|
|
1156
1183
|
};
|
|
1157
|
-
function
|
|
1184
|
+
function mt({
|
|
1158
1185
|
children: e,
|
|
1159
1186
|
className: r,
|
|
1160
1187
|
politeness: t,
|
|
@@ -1162,15 +1189,15 @@ function ut({
|
|
|
1162
1189
|
announcementDelay: o,
|
|
1163
1190
|
clearAnnouncementDelay: c,
|
|
1164
1191
|
onAnnouncementClear: n,
|
|
1165
|
-
visible:
|
|
1192
|
+
visible: s,
|
|
1166
1193
|
...d
|
|
1167
1194
|
}) {
|
|
1168
|
-
const u = k(null), m = k(null), [g, h] =
|
|
1195
|
+
const u = k(null), m = k(null), [g, h] = Ie(lt, {
|
|
1169
1196
|
announcement: null
|
|
1170
1197
|
});
|
|
1171
1198
|
let b = t;
|
|
1172
|
-
typeof b > "u" && (b = a ?
|
|
1173
|
-
|
|
1199
|
+
typeof b > "u" && (b = a ? st[a] : "assertive"), R(() => {
|
|
1200
|
+
ut({
|
|
1174
1201
|
announcementTimeoutRef: u,
|
|
1175
1202
|
announcementDelay: o,
|
|
1176
1203
|
children: e,
|
|
@@ -1186,9 +1213,9 @@ function ut({
|
|
|
1186
1213
|
n
|
|
1187
1214
|
]);
|
|
1188
1215
|
const p = i(r, {
|
|
1189
|
-
"sr-only": !
|
|
1216
|
+
"sr-only": !s
|
|
1190
1217
|
});
|
|
1191
|
-
return /* @__PURE__ */
|
|
1218
|
+
return /* @__PURE__ */ l(
|
|
1192
1219
|
"div",
|
|
1193
1220
|
{
|
|
1194
1221
|
"aria-live": b,
|
|
@@ -1212,21 +1239,21 @@ try {
|
|
|
1212
1239
|
});
|
|
1213
1240
|
} catch {
|
|
1214
1241
|
}
|
|
1215
|
-
const
|
|
1242
|
+
const ht = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", gt = ({
|
|
1216
1243
|
mode: e
|
|
1217
1244
|
}) => i({
|
|
1218
1245
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1219
1246
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1220
1247
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1221
1248
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1222
|
-
}),
|
|
1249
|
+
}), bt = ({
|
|
1223
1250
|
focusMode: e
|
|
1224
1251
|
}) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1225
1252
|
"focus:outline-focus-dark": e === "dark",
|
|
1226
1253
|
"focus:outline-focus-light": e === "light",
|
|
1227
1254
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1228
1255
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1229
|
-
}),
|
|
1256
|
+
}), pt = ({
|
|
1230
1257
|
noBorder: e,
|
|
1231
1258
|
error: r
|
|
1232
1259
|
}) => i("border-2", {
|
|
@@ -1234,7 +1261,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1234
1261
|
"focus:border-border-dark": !e && r,
|
|
1235
1262
|
"border-border-error-dark": !e && r,
|
|
1236
1263
|
"border-transparent": e
|
|
1237
|
-
}),
|
|
1264
|
+
}), yt = ({
|
|
1238
1265
|
disabled: e,
|
|
1239
1266
|
raw: r,
|
|
1240
1267
|
error: t,
|
|
@@ -1258,7 +1285,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1258
1285
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
1259
1286
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
1260
1287
|
});
|
|
1261
|
-
},
|
|
1288
|
+
}, ft = ({
|
|
1262
1289
|
error: e,
|
|
1263
1290
|
raw: r,
|
|
1264
1291
|
mode: t,
|
|
@@ -1268,24 +1295,24 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1268
1295
|
return "";
|
|
1269
1296
|
if (a)
|
|
1270
1297
|
return i(
|
|
1271
|
-
|
|
1298
|
+
Q,
|
|
1272
1299
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
1273
1300
|
);
|
|
1274
1301
|
if (!e)
|
|
1275
|
-
return i(
|
|
1302
|
+
return i(Q, "absolute px-2 font-medium", {
|
|
1276
1303
|
"text-copy-medium": t === "dark",
|
|
1277
1304
|
"text-copy-dark": t === "light",
|
|
1278
1305
|
"text-copy-dark dark:text-copy-medium": t === "system",
|
|
1279
1306
|
"text-copy-medium dark:text-copy-dark": t === "alt-system"
|
|
1280
1307
|
});
|
|
1281
1308
|
if (e)
|
|
1282
|
-
return i(
|
|
1309
|
+
return i(Q, "absolute px-2 font-medium", {
|
|
1283
1310
|
"text-copy-error-light": t === "dark",
|
|
1284
1311
|
"text-copy-error-dark": t === "light",
|
|
1285
1312
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
1286
1313
|
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
1287
1314
|
});
|
|
1288
|
-
},
|
|
1315
|
+
}, kt = ({
|
|
1289
1316
|
className: e,
|
|
1290
1317
|
textAreaClassName: r,
|
|
1291
1318
|
raw: t,
|
|
@@ -1293,36 +1320,36 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1293
1320
|
disabled: o,
|
|
1294
1321
|
noBorder: c,
|
|
1295
1322
|
error: n,
|
|
1296
|
-
mode:
|
|
1323
|
+
mode: s
|
|
1297
1324
|
}) => {
|
|
1298
1325
|
const d = t ? e : i(
|
|
1299
1326
|
"relative flex w-full flex-col justify-center",
|
|
1300
|
-
|
|
1327
|
+
et,
|
|
1301
1328
|
e
|
|
1302
1329
|
), u = t ? i(r) : i(
|
|
1303
|
-
|
|
1330
|
+
me,
|
|
1304
1331
|
r,
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1332
|
+
ht(),
|
|
1333
|
+
gt({ mode: s }),
|
|
1334
|
+
bt({ focusMode: a }),
|
|
1335
|
+
pt({
|
|
1309
1336
|
noBorder: c,
|
|
1310
1337
|
error: n
|
|
1311
1338
|
}),
|
|
1312
1339
|
{
|
|
1313
1340
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1314
1341
|
}
|
|
1315
|
-
), m = t ? void 0 : "sr-only", g =
|
|
1342
|
+
), m = t ? void 0 : "sr-only", g = yt({
|
|
1316
1343
|
disabled: o,
|
|
1317
1344
|
raw: t,
|
|
1318
1345
|
error: n,
|
|
1319
|
-
mode:
|
|
1320
|
-
}), h =
|
|
1346
|
+
mode: s
|
|
1347
|
+
}), h = ft({
|
|
1321
1348
|
error: n,
|
|
1322
1349
|
raw: t,
|
|
1323
|
-
mode:
|
|
1350
|
+
mode: s,
|
|
1324
1351
|
disabled: o
|
|
1325
|
-
}), b = t ? void 0 : i(
|
|
1352
|
+
}), b = t ? void 0 : i(tt, "absolute");
|
|
1326
1353
|
return {
|
|
1327
1354
|
wrapper: d,
|
|
1328
1355
|
textArea: u,
|
|
@@ -1331,7 +1358,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1331
1358
|
helperText: h,
|
|
1332
1359
|
rightElement: b
|
|
1333
1360
|
};
|
|
1334
|
-
},
|
|
1361
|
+
}, vt = ({
|
|
1335
1362
|
scrollHeight: e,
|
|
1336
1363
|
currentHeight: r,
|
|
1337
1364
|
currentLabelOffset: t = 0,
|
|
@@ -1339,15 +1366,15 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1339
1366
|
}) => {
|
|
1340
1367
|
let o, c;
|
|
1341
1368
|
if (e > 0 && e !== r) {
|
|
1342
|
-
const n = e - r,
|
|
1343
|
-
o = t + -1 * Math.sign(n) * (12 *
|
|
1369
|
+
const n = e - r, s = Math.abs(n / 24);
|
|
1370
|
+
o = t + -1 * Math.sign(n) * (12 * s), c = a + Math.sign(n) * (12 * s);
|
|
1344
1371
|
}
|
|
1345
1372
|
return {
|
|
1346
1373
|
labelOffset: o,
|
|
1347
1374
|
helperTextOffset: c,
|
|
1348
1375
|
scrollHeight: e
|
|
1349
1376
|
};
|
|
1350
|
-
},
|
|
1377
|
+
}, xt = E.forwardRef(
|
|
1351
1378
|
({
|
|
1352
1379
|
id: e,
|
|
1353
1380
|
name: r,
|
|
@@ -1356,7 +1383,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1356
1383
|
raw: o = !1,
|
|
1357
1384
|
className: c,
|
|
1358
1385
|
textAreaClassName: n,
|
|
1359
|
-
mode:
|
|
1386
|
+
mode: s = "system",
|
|
1360
1387
|
focusMode: d = "system",
|
|
1361
1388
|
value: u,
|
|
1362
1389
|
defaultValue: m,
|
|
@@ -1365,15 +1392,15 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1365
1392
|
labelId: b,
|
|
1366
1393
|
helperText: p = "",
|
|
1367
1394
|
helperTextOnFocus: w = !1,
|
|
1368
|
-
rightElement:
|
|
1395
|
+
rightElement: C,
|
|
1369
1396
|
onChange: B,
|
|
1370
|
-
onFocus:
|
|
1371
|
-
onBlur:
|
|
1372
|
-
...
|
|
1373
|
-
},
|
|
1374
|
-
const f = k(null),
|
|
1397
|
+
onFocus: z,
|
|
1398
|
+
onBlur: L,
|
|
1399
|
+
...G
|
|
1400
|
+
}, P) => {
|
|
1401
|
+
const f = k(null), be = at([P, f]), [pe, V] = it(), D = k(80), K = k(-25), A = k(null), Z = k(30), W = k(null), I = ct({ id: e, prefix: `${me}-` }), [ye, fe] = $(0), [ke, ee] = $(
|
|
1375
1402
|
!!(!w && p)
|
|
1376
|
-
),
|
|
1403
|
+
), ve = `${r} error, ${p}`, T = kt({
|
|
1377
1404
|
className: c,
|
|
1378
1405
|
textAreaClassName: n,
|
|
1379
1406
|
error: a,
|
|
@@ -1381,8 +1408,8 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1381
1408
|
focusMode: d,
|
|
1382
1409
|
disabled: g,
|
|
1383
1410
|
noBorder: h,
|
|
1384
|
-
mode:
|
|
1385
|
-
}), [v,
|
|
1411
|
+
mode: s
|
|
1412
|
+
}), [v, xe] = nt({
|
|
1386
1413
|
value: u,
|
|
1387
1414
|
initialControlledDelay: 20,
|
|
1388
1415
|
defaultValue: m,
|
|
@@ -1394,116 +1421,119 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1394
1421
|
});
|
|
1395
1422
|
}
|
|
1396
1423
|
}), _e = (y) => {
|
|
1397
|
-
|
|
1398
|
-
}, xe = (y) => {
|
|
1399
|
-
w && p && Z(!0), H && H(y);
|
|
1424
|
+
xe(y.target.value);
|
|
1400
1425
|
}, we = (y) => {
|
|
1401
|
-
w && p &&
|
|
1426
|
+
w && p && ee(!0), z && z(y);
|
|
1427
|
+
}, Ee = (y) => {
|
|
1428
|
+
w && p && !v && ee(!1), L && L(y);
|
|
1402
1429
|
};
|
|
1403
|
-
return
|
|
1404
|
-
|
|
1405
|
-
}, [
|
|
1430
|
+
return O(() => {
|
|
1431
|
+
V && V.width && fe(V.width + 18 + 10);
|
|
1432
|
+
}, [V]), O(() => {
|
|
1406
1433
|
o || f && f.current && v !== void 0 && (f.current.style.height = "inherit", f.current.style.height = f.current.scrollHeight + "px");
|
|
1407
|
-
}, [v, o]),
|
|
1434
|
+
}, [v, o]), O(() => {
|
|
1408
1435
|
o || setTimeout(() => {
|
|
1409
1436
|
var y;
|
|
1410
|
-
(y =
|
|
1437
|
+
(y = A == null ? void 0 : A.current) == null || y.style.setProperty(
|
|
1411
1438
|
"--av-text-area-wrapper-transition",
|
|
1412
1439
|
v ? "none" : "all 0.2s ease-out"
|
|
1413
1440
|
);
|
|
1414
1441
|
}, 0);
|
|
1415
|
-
}, [v, o]),
|
|
1416
|
-
var y,
|
|
1442
|
+
}, [v, o]), O(() => {
|
|
1443
|
+
var y, te;
|
|
1417
1444
|
if (!o && f && f.current && v !== void 0) {
|
|
1418
|
-
const { labelOffset: j, helperTextOffset: q, scrollHeight:
|
|
1445
|
+
const { labelOffset: j, helperTextOffset: q, scrollHeight: Te } = vt({
|
|
1419
1446
|
scrollHeight: f.current.scrollHeight,
|
|
1420
1447
|
currentHeight: D.current,
|
|
1421
|
-
currentLabelOffset:
|
|
1422
|
-
currentHelperTextOffset:
|
|
1448
|
+
currentLabelOffset: K.current,
|
|
1449
|
+
currentHelperTextOffset: Z.current
|
|
1423
1450
|
});
|
|
1424
|
-
j && (
|
|
1451
|
+
j && (K.current = j, (y = A == null ? void 0 : A.current) == null || y.style.setProperty(
|
|
1425
1452
|
"--av-text-area-label",
|
|
1426
1453
|
`${j}px`
|
|
1427
|
-
)), q && (
|
|
1454
|
+
)), q && (Z.current = q, (te = W == null ? void 0 : W.current) == null || te.style.setProperty(
|
|
1428
1455
|
"--av-text-area-helper-text",
|
|
1429
1456
|
`${q}px`
|
|
1430
|
-
)), D.current =
|
|
1457
|
+
)), D.current = Te || D.current;
|
|
1431
1458
|
}
|
|
1432
|
-
}, [v, o]), /* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1459
|
+
}, [v, o]), /* @__PURE__ */ _("div", { className: T.wrapper, children: [
|
|
1460
|
+
/* @__PURE__ */ l(
|
|
1434
1461
|
"label",
|
|
1435
1462
|
{
|
|
1436
|
-
htmlFor:
|
|
1463
|
+
htmlFor: I,
|
|
1437
1464
|
id: b,
|
|
1438
|
-
className:
|
|
1465
|
+
className: T.accessibleLabel,
|
|
1439
1466
|
children: t
|
|
1440
1467
|
}
|
|
1441
1468
|
),
|
|
1442
|
-
/* @__PURE__ */
|
|
1469
|
+
/* @__PURE__ */ l(
|
|
1443
1470
|
"textarea",
|
|
1444
1471
|
{
|
|
1445
|
-
ref:
|
|
1446
|
-
id:
|
|
1472
|
+
ref: be,
|
|
1473
|
+
id: I,
|
|
1447
1474
|
name: r,
|
|
1448
1475
|
disabled: g,
|
|
1449
1476
|
placeholder: o ? void 0 : " ",
|
|
1450
|
-
className:
|
|
1477
|
+
className: T.textArea,
|
|
1451
1478
|
rows: 1,
|
|
1452
|
-
...p && { "aria-describedby": `${
|
|
1479
|
+
...p && { "aria-describedby": `${I}-helper` },
|
|
1453
1480
|
...a && { "aria-invalid": "true" },
|
|
1454
|
-
...
|
|
1481
|
+
...C && !o && { style: { paddingRight: ye } },
|
|
1455
1482
|
value: v,
|
|
1456
1483
|
onChange: _e,
|
|
1457
|
-
onFocus:
|
|
1458
|
-
onBlur:
|
|
1459
|
-
...
|
|
1484
|
+
onFocus: we,
|
|
1485
|
+
onBlur: Ee,
|
|
1486
|
+
...G
|
|
1460
1487
|
}
|
|
1461
1488
|
),
|
|
1462
|
-
!o && /* @__PURE__ */
|
|
1489
|
+
!o && /* @__PURE__ */ l(
|
|
1463
1490
|
"label",
|
|
1464
1491
|
{
|
|
1465
|
-
ref:
|
|
1492
|
+
ref: A,
|
|
1466
1493
|
"aria-hidden": !0,
|
|
1467
|
-
htmlFor:
|
|
1468
|
-
className:
|
|
1494
|
+
htmlFor: I,
|
|
1495
|
+
className: T.visibleLabel,
|
|
1469
1496
|
children: t
|
|
1470
1497
|
}
|
|
1471
1498
|
),
|
|
1472
|
-
|
|
1499
|
+
ke && /* @__PURE__ */ l(
|
|
1473
1500
|
"div",
|
|
1474
1501
|
{
|
|
1475
1502
|
ref: W,
|
|
1476
|
-
id: `${
|
|
1477
|
-
className:
|
|
1503
|
+
id: `${I}-helper`,
|
|
1504
|
+
className: T.helperText,
|
|
1478
1505
|
children: p
|
|
1479
1506
|
}
|
|
1480
1507
|
),
|
|
1481
|
-
|
|
1508
|
+
C && /* @__PURE__ */ l(
|
|
1482
1509
|
"div",
|
|
1483
1510
|
{
|
|
1484
|
-
ref:
|
|
1485
|
-
className:
|
|
1486
|
-
children:
|
|
1511
|
+
ref: pe,
|
|
1512
|
+
className: T.rightElement,
|
|
1513
|
+
children: C
|
|
1487
1514
|
}
|
|
1488
1515
|
),
|
|
1489
|
-
a && p && /* @__PURE__ */
|
|
1516
|
+
a && p && /* @__PURE__ */ l(mt, { politeness: "polite", clearAnnouncementDelay: 500, children: ve })
|
|
1490
1517
|
] });
|
|
1491
1518
|
}
|
|
1492
1519
|
);
|
|
1493
|
-
|
|
1520
|
+
xt.displayName = "TextArea";
|
|
1494
1521
|
export {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1522
|
+
$t as AppContext,
|
|
1523
|
+
St as E,
|
|
1524
|
+
Rt as HistoryContext,
|
|
1525
|
+
xt as Le,
|
|
1526
|
+
Ct as SERVICE_TYPES,
|
|
1527
|
+
Ht as TagsContext,
|
|
1528
|
+
Mt as be,
|
|
1529
|
+
Bt as ce,
|
|
1530
|
+
M as f,
|
|
1531
|
+
Vt as ge,
|
|
1532
|
+
Nt as h,
|
|
1533
|
+
Ot as he,
|
|
1534
|
+
Lt as ne,
|
|
1535
|
+
Ze as oe,
|
|
1536
|
+
It as restCall,
|
|
1537
|
+
zt as se,
|
|
1538
|
+
At as serviceCall
|
|
1509
1539
|
};
|