@versini/sassysaint 5.3.8 → 5.3.10
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/{App.DlhiXCoz.js → App.wwhSvbRQ.js} +601 -571
- package/dist/chunks/{LazyHeader.DqDJRIjX.js → LazyHeader.Bt3Z4u-6.js} +889 -826
- package/dist/chunks/{LazyMarkdownWithExtra.DdI965fc.js → LazyMarkdownWithExtra.B-gV4uKw.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.CI97mVOI.js → LazyMessageAssistant.WIuSwbN3.js} +4 -4
- package/dist/chunks/{index.C8-dCwmB.js → index.B5_RXEo-.js} +186 -147
- package/dist/chunks/{index.BsmLg4en.js → index.BduqxN2L.js} +523 -537
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs as x, jsx as c, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
+
import { g as Se } from "./index.BduqxN2L.js";
|
|
3
|
+
import z, { useSyncExternalStore as Ce, useCallback as O, useEffect as $, useContext as R, useRef as f, useState as I, useLayoutEffect as M, useMemo as ie, useId as Ae, useReducer as Ie } from "react";
|
|
2
4
|
import l from "clsx";
|
|
3
|
-
|
|
5
|
+
const It = ({
|
|
6
|
+
className: e,
|
|
7
|
+
viewBox: r,
|
|
8
|
+
spacing: t,
|
|
9
|
+
title: a,
|
|
10
|
+
monotone: o,
|
|
11
|
+
...n
|
|
12
|
+
}) => /* @__PURE__ */ x(
|
|
13
|
+
Se,
|
|
14
|
+
{
|
|
15
|
+
defaultViewBox: "0 0 512 512",
|
|
16
|
+
defaultClassName: "size-5",
|
|
17
|
+
viewBox: r,
|
|
18
|
+
className: e,
|
|
19
|
+
spacing: t,
|
|
20
|
+
title: a || "Edit",
|
|
21
|
+
...n,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ c(
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
opacity: o ? "1" : "0.4",
|
|
27
|
+
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"
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ c("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" })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
4
34
|
function le(e, r) {
|
|
5
35
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
|
|
6
36
|
}
|
|
@@ -9,18 +39,18 @@ const re = (e, r) => {
|
|
|
9
39
|
typeof r == "function" ? r() : r
|
|
10
40
|
);
|
|
11
41
|
window.localStorage.setItem(e, t), le(e, t);
|
|
12
|
-
},
|
|
42
|
+
}, $e = (e) => {
|
|
13
43
|
window.localStorage.removeItem(e), le(e, null);
|
|
14
44
|
}, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
15
|
-
function
|
|
45
|
+
function $t({
|
|
16
46
|
key: e,
|
|
17
47
|
initialValue: r
|
|
18
48
|
}) {
|
|
19
|
-
const t =
|
|
49
|
+
const t = Ce(Re, () => ae(e)), a = O(
|
|
20
50
|
(i) => {
|
|
21
51
|
try {
|
|
22
52
|
const s = typeof i == "function" ? i(JSON.parse(t)) : i;
|
|
23
|
-
s == null ?
|
|
53
|
+
s == null ? $e(e) : re(e, s);
|
|
24
54
|
} catch (s) {
|
|
25
55
|
console.warn(s);
|
|
26
56
|
}
|
|
@@ -31,7 +61,7 @@ function Ct({
|
|
|
31
61
|
}, [r, a]), n = O(() => {
|
|
32
62
|
a(null);
|
|
33
63
|
}, [a]);
|
|
34
|
-
return
|
|
64
|
+
return $(() => {
|
|
35
65
|
try {
|
|
36
66
|
ae(e) === null && typeof r < "u" && re(e, r);
|
|
37
67
|
} catch (i) {
|
|
@@ -100,20 +130,28 @@ const _ = {
|
|
|
100
130
|
instructions
|
|
101
131
|
location
|
|
102
132
|
engine
|
|
133
|
+
tags {
|
|
134
|
+
enabled
|
|
135
|
+
slot
|
|
136
|
+
label
|
|
137
|
+
content
|
|
138
|
+
}
|
|
103
139
|
}
|
|
104
140
|
}`,
|
|
105
141
|
SET_USER_PREFERENCES: `mutation SetUserPreferences(
|
|
106
142
|
$user: String!,
|
|
107
143
|
$instructions: String,
|
|
108
144
|
$location: String,
|
|
109
|
-
$engine: String
|
|
145
|
+
$engine: String,
|
|
146
|
+
$tags: [TagIn]) {
|
|
110
147
|
setUserPreferences(
|
|
111
148
|
user: $user,
|
|
112
149
|
instructions: $instructions,
|
|
113
150
|
location: $location,
|
|
114
|
-
engine: $engine
|
|
151
|
+
engine: $engine,
|
|
152
|
+
tags: $tags)
|
|
115
153
|
}`
|
|
116
|
-
},
|
|
154
|
+
}, Rt = {
|
|
117
155
|
GET_LOCATION: {
|
|
118
156
|
schema: _.GET_LOCATION,
|
|
119
157
|
method: "location"
|
|
@@ -146,7 +184,7 @@ const _ = {
|
|
|
146
184
|
schema: _.SET_USER_PREFERENCES,
|
|
147
185
|
method: "setUserPreferences"
|
|
148
186
|
}
|
|
149
|
-
}, se = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
187
|
+
}, se = process.env.PUBLIC_SASSY_API_SERVER_URL, Be = async ({
|
|
150
188
|
query: e,
|
|
151
189
|
data: r,
|
|
152
190
|
headers: t = {}
|
|
@@ -162,14 +200,14 @@ const _ = {
|
|
|
162
200
|
query: e,
|
|
163
201
|
variables: r
|
|
164
202
|
})
|
|
165
|
-
}),
|
|
203
|
+
}), Bt = async ({
|
|
166
204
|
accessToken: e,
|
|
167
205
|
type: r,
|
|
168
206
|
params: t = {}
|
|
169
207
|
}) => {
|
|
170
208
|
const a = r != null && r.data ? r.data(t) : t;
|
|
171
209
|
try {
|
|
172
|
-
const o = `Bearer ${e}`, n = await
|
|
210
|
+
const o = `Bearer ${e}`, n = await Be({
|
|
173
211
|
headers: {
|
|
174
212
|
authorization: o
|
|
175
213
|
},
|
|
@@ -187,7 +225,7 @@ const _ = {
|
|
|
187
225
|
} catch (o) {
|
|
188
226
|
return console.error(o), { status: 500, data: [] };
|
|
189
227
|
}
|
|
190
|
-
},
|
|
228
|
+
}, Ht = async ({
|
|
191
229
|
accessToken: e,
|
|
192
230
|
name: r,
|
|
193
231
|
data: t,
|
|
@@ -217,7 +255,7 @@ try {
|
|
|
217
255
|
});
|
|
218
256
|
} catch {
|
|
219
257
|
}
|
|
220
|
-
const
|
|
258
|
+
const He = (e) => {
|
|
221
259
|
let r = "";
|
|
222
260
|
if (typeof e == "number" || typeof e == "string")
|
|
223
261
|
r = "m-" + e;
|
|
@@ -226,10 +264,10 @@ const Be = (e) => {
|
|
|
226
264
|
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
|
|
227
265
|
}
|
|
228
266
|
return r;
|
|
229
|
-
}, P = "thead", Y = "tfoot", T = "tbody",
|
|
267
|
+
}, P = "thead", Y = "tfoot", T = "tbody", U = {
|
|
230
268
|
ASC: "asc",
|
|
231
269
|
DESC: "desc"
|
|
232
|
-
},
|
|
270
|
+
}, Le = ({
|
|
233
271
|
mode: e,
|
|
234
272
|
className: r,
|
|
235
273
|
wrapperClassName: t,
|
|
@@ -239,7 +277,7 @@ const Be = (e) => {
|
|
|
239
277
|
}) => ({
|
|
240
278
|
wrapper: l(
|
|
241
279
|
"not-prose relative w-full rounded-lg shadow-md",
|
|
242
|
-
|
|
280
|
+
He(n),
|
|
243
281
|
{
|
|
244
282
|
"overflow-x-auto": !a && !o,
|
|
245
283
|
"overflow-y-scroll": a || o,
|
|
@@ -262,7 +300,7 @@ const Be = (e) => {
|
|
|
262
300
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
263
301
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
264
302
|
})
|
|
265
|
-
}),
|
|
303
|
+
}), Ve = ({
|
|
266
304
|
className: e,
|
|
267
305
|
stickyHeader: r,
|
|
268
306
|
mode: t
|
|
@@ -272,7 +310,7 @@ const Be = (e) => {
|
|
|
272
310
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "system",
|
|
273
311
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "light",
|
|
274
312
|
"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"
|
|
275
|
-
}),
|
|
313
|
+
}), Me = ({
|
|
276
314
|
className: e,
|
|
277
315
|
stickyFooter: r,
|
|
278
316
|
mode: t
|
|
@@ -282,7 +320,7 @@ const Be = (e) => {
|
|
|
282
320
|
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "system",
|
|
283
321
|
"shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "light",
|
|
284
322
|
"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"
|
|
285
|
-
}),
|
|
323
|
+
}), Ue = ({
|
|
286
324
|
mode: e,
|
|
287
325
|
className: r,
|
|
288
326
|
cellWrapper: t
|
|
@@ -300,7 +338,7 @@ const Be = (e) => {
|
|
|
300
338
|
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === T && e === "system",
|
|
301
339
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
302
340
|
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === T && e === "alt-system"
|
|
303
|
-
}),
|
|
341
|
+
}), Oe = ({
|
|
304
342
|
cellWrapper: e,
|
|
305
343
|
className: r,
|
|
306
344
|
compact: t,
|
|
@@ -313,9 +351,9 @@ const Be = (e) => {
|
|
|
313
351
|
"px-4 py-3": !t && (e === P || e === Y),
|
|
314
352
|
"p-4": !t && e === T,
|
|
315
353
|
"px-4 py-1": t
|
|
316
|
-
}),
|
|
354
|
+
}), ze = ({
|
|
317
355
|
buttonClassName: e
|
|
318
|
-
}) => l("rounded-none text-sm", e), oe = "av-button",
|
|
356
|
+
}) => l("rounded-none text-sm", e), oe = "av-button", Pe = (e) => {
|
|
319
357
|
let r = "";
|
|
320
358
|
if (typeof e == "number" || typeof e == "string")
|
|
321
359
|
r = "m-" + e;
|
|
@@ -324,7 +362,7 @@ const Be = (e) => {
|
|
|
324
362
|
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
|
|
325
363
|
}
|
|
326
364
|
return r;
|
|
327
|
-
}, ce = "icon",
|
|
365
|
+
}, ce = "icon", Fe = "button", Ge = "link", De = ({
|
|
328
366
|
type: e,
|
|
329
367
|
size: r,
|
|
330
368
|
labelRight: t,
|
|
@@ -333,13 +371,13 @@ const Be = (e) => {
|
|
|
333
371
|
}) => {
|
|
334
372
|
const n = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", s = "text-lg font-medium max-h-12 py-2";
|
|
335
373
|
switch (e) {
|
|
336
|
-
case
|
|
374
|
+
case Fe:
|
|
337
375
|
return l("px-4", {
|
|
338
376
|
[n]: r === "small",
|
|
339
377
|
[i]: r === "medium",
|
|
340
378
|
[s]: r === "large"
|
|
341
379
|
});
|
|
342
|
-
case
|
|
380
|
+
case Ge:
|
|
343
381
|
return l("px-4 text-center", {
|
|
344
382
|
[n]: r === "small",
|
|
345
383
|
[i]: r === "medium",
|
|
@@ -358,7 +396,7 @@ const Be = (e) => {
|
|
|
358
396
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || a)
|
|
359
397
|
});
|
|
360
398
|
}
|
|
361
|
-
},
|
|
399
|
+
}, je = ({
|
|
362
400
|
mode: e,
|
|
363
401
|
noBackground: r,
|
|
364
402
|
noTruncate: t,
|
|
@@ -390,7 +428,7 @@ const Be = (e) => {
|
|
|
390
428
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
391
429
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
392
430
|
});
|
|
393
|
-
},
|
|
431
|
+
}, We = ({
|
|
394
432
|
mode: e,
|
|
395
433
|
disabled: r,
|
|
396
434
|
variant: t
|
|
@@ -418,7 +456,7 @@ const Be = (e) => {
|
|
|
418
456
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
419
457
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
420
458
|
});
|
|
421
|
-
},
|
|
459
|
+
}, qe = ({
|
|
422
460
|
mode: e,
|
|
423
461
|
disabled: r,
|
|
424
462
|
variant: t
|
|
@@ -446,7 +484,7 @@ const Be = (e) => {
|
|
|
446
484
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
447
485
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
448
486
|
});
|
|
449
|
-
},
|
|
487
|
+
}, Je = ({
|
|
450
488
|
mode: e,
|
|
451
489
|
noBorder: r,
|
|
452
490
|
variant: t
|
|
@@ -474,12 +512,12 @@ const Be = (e) => {
|
|
|
474
512
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
475
513
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
476
514
|
});
|
|
477
|
-
},
|
|
515
|
+
}, Qe = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
478
516
|
"focus:outline-focus-dark": e === "dark",
|
|
479
517
|
"focus:outline-focus-light": e === "light",
|
|
480
518
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
481
519
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
482
|
-
}),
|
|
520
|
+
}), Ye = ({
|
|
483
521
|
type: e,
|
|
484
522
|
className: r,
|
|
485
523
|
raw: t,
|
|
@@ -495,22 +533,22 @@ const Be = (e) => {
|
|
|
495
533
|
noBackground: g,
|
|
496
534
|
variant: h,
|
|
497
535
|
noTruncate: b,
|
|
498
|
-
align:
|
|
536
|
+
align: w
|
|
499
537
|
}) => (h || (h = "primary"), t ? l(oe, r) : l(
|
|
500
538
|
oe,
|
|
501
539
|
r,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
je({ mode: a, variant: h, disabled: n }),
|
|
540
|
+
Pe(p),
|
|
541
|
+
je({ mode: a, variant: h, noBackground: g, noTruncate: b }),
|
|
542
|
+
De({ type: e, size: s, labelRight: m, labelLeft: u, align: w }),
|
|
543
|
+
Je({ mode: a, variant: h, noBorder: d }),
|
|
544
|
+
Qe({ focusMode: o }),
|
|
508
545
|
We({ mode: a, variant: h, disabled: n }),
|
|
546
|
+
qe({ mode: a, variant: h, disabled: n }),
|
|
509
547
|
{
|
|
510
548
|
"w-full": i,
|
|
511
549
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
512
550
|
}
|
|
513
|
-
)),
|
|
551
|
+
)), Xe = (e, r, t) => {
|
|
514
552
|
var a;
|
|
515
553
|
!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);
|
|
516
554
|
}, de = z.forwardRef((e, r) => {
|
|
@@ -520,7 +558,7 @@ const Be = (e) => {
|
|
|
520
558
|
{
|
|
521
559
|
ref: r,
|
|
522
560
|
onClick: (n) => {
|
|
523
|
-
|
|
561
|
+
Xe(n, a, t);
|
|
524
562
|
},
|
|
525
563
|
...o
|
|
526
564
|
}
|
|
@@ -557,12 +595,12 @@ const ue = z.forwardRef(
|
|
|
557
595
|
labelRight: g,
|
|
558
596
|
labelLeft: h,
|
|
559
597
|
spacing: b,
|
|
560
|
-
noBackground:
|
|
598
|
+
noBackground: w = !1,
|
|
561
599
|
align: S = "center",
|
|
562
600
|
active: B = !1,
|
|
563
601
|
...H
|
|
564
602
|
}, L) => {
|
|
565
|
-
const F =
|
|
603
|
+
const F = Ye({
|
|
566
604
|
type: ce,
|
|
567
605
|
mode: t,
|
|
568
606
|
focusMode: a,
|
|
@@ -575,7 +613,7 @@ const ue = z.forwardRef(
|
|
|
575
613
|
labelRight: g,
|
|
576
614
|
labelLeft: h,
|
|
577
615
|
spacing: b,
|
|
578
|
-
noBackground:
|
|
616
|
+
noBackground: w,
|
|
579
617
|
align: S
|
|
580
618
|
}), G = l({
|
|
581
619
|
"text-copy-accent-dark": t === "light" && !s,
|
|
@@ -599,7 +637,7 @@ const ue = z.forwardRef(
|
|
|
599
637
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
600
638
|
}
|
|
601
639
|
) : "";
|
|
602
|
-
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ x(
|
|
603
641
|
de,
|
|
604
642
|
{
|
|
605
643
|
ref: L,
|
|
@@ -618,7 +656,7 @@ const ue = z.forwardRef(
|
|
|
618
656
|
}
|
|
619
657
|
);
|
|
620
658
|
ue.displayName = "ButtonSort";
|
|
621
|
-
const
|
|
659
|
+
const Ke = (e) => {
|
|
622
660
|
let r = "";
|
|
623
661
|
if (typeof e == "number" || typeof e == "string")
|
|
624
662
|
r = "m-" + e;
|
|
@@ -639,11 +677,11 @@ const Xe = (e) => {
|
|
|
639
677
|
semantic: d = !1,
|
|
640
678
|
...m
|
|
641
679
|
}) => {
|
|
642
|
-
const u =
|
|
680
|
+
const u = Ke(i), p = l(
|
|
643
681
|
u,
|
|
644
682
|
a || n
|
|
645
683
|
);
|
|
646
|
-
return /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ x(Ne, { children: [
|
|
647
685
|
/* @__PURE__ */ c(
|
|
648
686
|
"svg",
|
|
649
687
|
{
|
|
@@ -674,14 +712,14 @@ try {
|
|
|
674
712
|
});
|
|
675
713
|
} catch {
|
|
676
714
|
}
|
|
677
|
-
const
|
|
715
|
+
const Ze = ({
|
|
678
716
|
className: e,
|
|
679
717
|
viewBox: r,
|
|
680
718
|
spacing: t,
|
|
681
719
|
title: a,
|
|
682
720
|
monotone: o,
|
|
683
721
|
...n
|
|
684
|
-
}) => /* @__PURE__ */
|
|
722
|
+
}) => /* @__PURE__ */ x(
|
|
685
723
|
X,
|
|
686
724
|
{
|
|
687
725
|
defaultViewBox: "0 0 576 512",
|
|
@@ -702,14 +740,14 @@ const Ke = ({
|
|
|
702
740
|
/* @__PURE__ */ c("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" })
|
|
703
741
|
]
|
|
704
742
|
}
|
|
705
|
-
),
|
|
743
|
+
), et = ({
|
|
706
744
|
className: e,
|
|
707
745
|
viewBox: r,
|
|
708
746
|
spacing: t,
|
|
709
747
|
title: a,
|
|
710
748
|
monotone: o,
|
|
711
749
|
...n
|
|
712
|
-
}) => /* @__PURE__ */
|
|
750
|
+
}) => /* @__PURE__ */ x(
|
|
713
751
|
X,
|
|
714
752
|
{
|
|
715
753
|
defaultViewBox: "0 0 576 512",
|
|
@@ -730,14 +768,14 @@ const Ke = ({
|
|
|
730
768
|
/* @__PURE__ */ c("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" })
|
|
731
769
|
]
|
|
732
770
|
}
|
|
733
|
-
),
|
|
771
|
+
), tt = ({
|
|
734
772
|
className: e,
|
|
735
773
|
viewBox: r,
|
|
736
774
|
spacing: t,
|
|
737
775
|
title: a,
|
|
738
776
|
monotone: o,
|
|
739
777
|
...n
|
|
740
|
-
}) => /* @__PURE__ */
|
|
778
|
+
}) => /* @__PURE__ */ x(
|
|
741
779
|
X,
|
|
742
780
|
{
|
|
743
781
|
defaultViewBox: "0 0 576 512",
|
|
@@ -778,7 +816,7 @@ const N = z.createContext({
|
|
|
778
816
|
stickyHeader: !1,
|
|
779
817
|
stickyFooter: !1,
|
|
780
818
|
compact: !1
|
|
781
|
-
}),
|
|
819
|
+
}), Lt = ({
|
|
782
820
|
children: e,
|
|
783
821
|
mode: r = "system",
|
|
784
822
|
caption: t,
|
|
@@ -792,7 +830,7 @@ const N = z.createContext({
|
|
|
792
830
|
spacing: u,
|
|
793
831
|
...p
|
|
794
832
|
}) => {
|
|
795
|
-
const g =
|
|
833
|
+
const g = Le({
|
|
796
834
|
mode: r,
|
|
797
835
|
className: n,
|
|
798
836
|
wrapperClassName: i,
|
|
@@ -811,7 +849,7 @@ const N = z.createContext({
|
|
|
811
849
|
...s && {
|
|
812
850
|
style: { maxHeight: s }
|
|
813
851
|
},
|
|
814
|
-
children: /* @__PURE__ */
|
|
852
|
+
children: /* @__PURE__ */ x("table", { className: g.table, summary: o, ...p, children: [
|
|
815
853
|
t && /* @__PURE__ */ c("caption", { className: g.caption, children: t }),
|
|
816
854
|
e
|
|
817
855
|
] })
|
|
@@ -819,60 +857,60 @@ const N = z.createContext({
|
|
|
819
857
|
)
|
|
820
858
|
}
|
|
821
859
|
);
|
|
822
|
-
},
|
|
860
|
+
}, Vt = ({
|
|
823
861
|
children: e,
|
|
824
862
|
className: r,
|
|
825
863
|
...t
|
|
826
864
|
}) => {
|
|
827
|
-
const a =
|
|
865
|
+
const a = R(N);
|
|
828
866
|
a.cellWrapper = P;
|
|
829
|
-
const o =
|
|
867
|
+
const o = Ve({
|
|
830
868
|
className: r,
|
|
831
869
|
mode: a.mode,
|
|
832
870
|
stickyHeader: a.stickyHeader
|
|
833
871
|
});
|
|
834
872
|
return /* @__PURE__ */ c("thead", { className: o, ...t, children: e });
|
|
835
|
-
},
|
|
873
|
+
}, Mt = ({
|
|
836
874
|
children: e,
|
|
837
875
|
className: r,
|
|
838
876
|
...t
|
|
839
877
|
}) => {
|
|
840
|
-
const a =
|
|
878
|
+
const a = R(N);
|
|
841
879
|
a.cellWrapper = Y;
|
|
842
|
-
const o =
|
|
880
|
+
const o = Me({
|
|
843
881
|
className: r,
|
|
844
882
|
mode: a.mode,
|
|
845
883
|
stickyFooter: a.stickyFooter
|
|
846
884
|
});
|
|
847
885
|
return /* @__PURE__ */ c("tfoot", { className: o, ...t, children: e });
|
|
848
|
-
},
|
|
849
|
-
const t =
|
|
886
|
+
}, Ut = ({ children: e, ...r }) => {
|
|
887
|
+
const t = R(N);
|
|
850
888
|
return t.cellWrapper = T, /* @__PURE__ */ c("tbody", { ...r, children: e });
|
|
851
|
-
},
|
|
889
|
+
}, Ot = ({
|
|
852
890
|
children: e,
|
|
853
891
|
className: r,
|
|
854
892
|
...t
|
|
855
893
|
}) => {
|
|
856
|
-
const a =
|
|
894
|
+
const a = R(N), o = Ue({
|
|
857
895
|
mode: a.mode,
|
|
858
896
|
cellWrapper: a.cellWrapper,
|
|
859
897
|
className: r
|
|
860
898
|
});
|
|
861
899
|
return /* @__PURE__ */ c("tr", { className: o, ...t, children: e });
|
|
862
|
-
},
|
|
900
|
+
}, rt = ({
|
|
863
901
|
children: e,
|
|
864
902
|
component: r,
|
|
865
903
|
className: t,
|
|
866
904
|
...a
|
|
867
905
|
}) => {
|
|
868
|
-
const o =
|
|
906
|
+
const o = R(N), n = r || (o.cellWrapper === P ? "th" : "td"), i = Oe({
|
|
869
907
|
cellWrapper: o.cellWrapper,
|
|
870
908
|
className: t,
|
|
871
909
|
mode: o.mode,
|
|
872
910
|
compact: o.compact
|
|
873
911
|
});
|
|
874
912
|
return /* @__PURE__ */ c(n, { className: i, ...a, children: e });
|
|
875
|
-
},
|
|
913
|
+
}, zt = ({
|
|
876
914
|
align: e,
|
|
877
915
|
children: r,
|
|
878
916
|
buttonClassName: t,
|
|
@@ -886,14 +924,14 @@ const N = z.createContext({
|
|
|
886
924
|
cellId: u,
|
|
887
925
|
...p
|
|
888
926
|
}) => {
|
|
889
|
-
const g =
|
|
927
|
+
const g = ze({ buttonClassName: t });
|
|
890
928
|
return /* @__PURE__ */ c(
|
|
891
|
-
|
|
929
|
+
rt,
|
|
892
930
|
{
|
|
893
931
|
component: o,
|
|
894
932
|
className: a,
|
|
895
933
|
role: "columnheader",
|
|
896
|
-
"aria-sort": d ===
|
|
934
|
+
"aria-sort": d === U.ASC && m === u ? "ascending" : d === U.DESC && m === u ? "descending" : "other",
|
|
897
935
|
...p,
|
|
898
936
|
children: /* @__PURE__ */ c(
|
|
899
937
|
ue,
|
|
@@ -907,7 +945,7 @@ const N = z.createContext({
|
|
|
907
945
|
mode: i,
|
|
908
946
|
fullWidth: !0,
|
|
909
947
|
labelRight: r,
|
|
910
|
-
children: d ===
|
|
948
|
+
children: d === U.ASC && m === u ? /* @__PURE__ */ c(tt, { className: "size-4", monotone: !0 }) : d === U.DESC && m === u ? /* @__PURE__ */ c(et, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 })
|
|
911
949
|
}
|
|
912
950
|
)
|
|
913
951
|
}
|
|
@@ -926,14 +964,14 @@ try {
|
|
|
926
964
|
});
|
|
927
965
|
} catch {
|
|
928
966
|
}
|
|
929
|
-
const me = "av-text-area",
|
|
930
|
-
function
|
|
967
|
+
const me = "av-text-area", at = "av-text-area-wrapper", Q = "av-text-area-helper-text", ot = "av-text-area__control--right";
|
|
968
|
+
function nt() {
|
|
931
969
|
const e = f(!1);
|
|
932
|
-
return
|
|
970
|
+
return $(() => (e.current = !0, () => {
|
|
933
971
|
e.current = !1;
|
|
934
972
|
}), []), O(() => e.current, []);
|
|
935
973
|
}
|
|
936
|
-
function
|
|
974
|
+
function it(e) {
|
|
937
975
|
return ie(() => e.every((r) => r == null) ? () => {
|
|
938
976
|
} : (r) => {
|
|
939
977
|
e.forEach((t) => {
|
|
@@ -941,7 +979,7 @@ function nt(e) {
|
|
|
941
979
|
});
|
|
942
980
|
}, e);
|
|
943
981
|
}
|
|
944
|
-
const
|
|
982
|
+
const lt = {
|
|
945
983
|
x: 0,
|
|
946
984
|
y: 0,
|
|
947
985
|
width: 0,
|
|
@@ -951,18 +989,18 @@ const it = {
|
|
|
951
989
|
bottom: 0,
|
|
952
990
|
right: 0
|
|
953
991
|
};
|
|
954
|
-
function
|
|
955
|
-
const r =
|
|
992
|
+
function st(e) {
|
|
993
|
+
const r = nt(), t = f(0), a = f(null), [o, n] = I(lt), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
956
994
|
const d = s[0];
|
|
957
995
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
958
996
|
a.current && r() && n(d.contentRect);
|
|
959
997
|
}));
|
|
960
998
|
}), [r]);
|
|
961
|
-
return
|
|
999
|
+
return $(() => (a.current && (i == null || i.observe(a.current, e)), () => {
|
|
962
1000
|
i == null || i.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
963
1001
|
}), [i, e]), [a, o];
|
|
964
1002
|
}
|
|
965
|
-
function
|
|
1003
|
+
function ct({
|
|
966
1004
|
value: e,
|
|
967
1005
|
defaultValue: r,
|
|
968
1006
|
finalValue: t,
|
|
@@ -975,14 +1013,14 @@ function st({
|
|
|
975
1013
|
), m = (u) => {
|
|
976
1014
|
d(u), a == null || a(u);
|
|
977
1015
|
};
|
|
978
|
-
return
|
|
1016
|
+
return $(() => {
|
|
979
1017
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
980
1018
|
(u) => setTimeout(u, o)
|
|
981
1019
|
), i(!0)))();
|
|
982
1020
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s, m, !1];
|
|
983
1021
|
}
|
|
984
|
-
function
|
|
985
|
-
const r =
|
|
1022
|
+
function dt(e) {
|
|
1023
|
+
const r = Ae();
|
|
986
1024
|
if (!e)
|
|
987
1025
|
return r;
|
|
988
1026
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -992,7 +1030,7 @@ function ct(e) {
|
|
|
992
1030
|
return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
|
|
993
1031
|
}
|
|
994
1032
|
}
|
|
995
|
-
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT",
|
|
1033
|
+
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ut = {
|
|
996
1034
|
alert: null,
|
|
997
1035
|
alertdialog: null,
|
|
998
1036
|
log: "polite",
|
|
@@ -1000,7 +1038,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1000
1038
|
progressbar: null,
|
|
1001
1039
|
status: "polite",
|
|
1002
1040
|
timer: "assertive"
|
|
1003
|
-
},
|
|
1041
|
+
}, mt = (e, r) => {
|
|
1004
1042
|
switch (r == null ? void 0 : r.type) {
|
|
1005
1043
|
case he:
|
|
1006
1044
|
return {
|
|
@@ -1015,7 +1053,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1015
1053
|
default:
|
|
1016
1054
|
return e;
|
|
1017
1055
|
}
|
|
1018
|
-
},
|
|
1056
|
+
}, ht = ({
|
|
1019
1057
|
onAnnouncementClear: e,
|
|
1020
1058
|
dispatch: r
|
|
1021
1059
|
}) => {
|
|
@@ -1033,13 +1071,13 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1033
1071
|
type: he,
|
|
1034
1072
|
payload: e
|
|
1035
1073
|
}), r && (t.current = setTimeout(
|
|
1036
|
-
() =>
|
|
1074
|
+
() => ht({
|
|
1037
1075
|
onAnnouncementClear: a,
|
|
1038
1076
|
dispatch: o
|
|
1039
1077
|
}),
|
|
1040
1078
|
r
|
|
1041
1079
|
));
|
|
1042
|
-
},
|
|
1080
|
+
}, gt = ({
|
|
1043
1081
|
children: e,
|
|
1044
1082
|
announcementTimeoutRef: r,
|
|
1045
1083
|
announcementDelay: t,
|
|
@@ -1062,7 +1100,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1062
1100
|
dispatch: i
|
|
1063
1101
|
});
|
|
1064
1102
|
};
|
|
1065
|
-
function
|
|
1103
|
+
function pt({
|
|
1066
1104
|
children: e,
|
|
1067
1105
|
className: r,
|
|
1068
1106
|
politeness: t,
|
|
@@ -1073,12 +1111,12 @@ function gt({
|
|
|
1073
1111
|
visible: s,
|
|
1074
1112
|
...d
|
|
1075
1113
|
}) {
|
|
1076
|
-
const m = f(), u = f(), [p, g] =
|
|
1114
|
+
const m = f(), u = f(), [p, g] = Ie(mt, {
|
|
1077
1115
|
announcement: null
|
|
1078
1116
|
});
|
|
1079
1117
|
let h = t;
|
|
1080
|
-
typeof h > "u" && (h = a ?
|
|
1081
|
-
|
|
1118
|
+
typeof h > "u" && (h = a ? ut[a] : "assertive"), $(() => {
|
|
1119
|
+
gt({
|
|
1082
1120
|
announcementTimeoutRef: m,
|
|
1083
1121
|
announcementDelay: o,
|
|
1084
1122
|
children: e,
|
|
@@ -1107,7 +1145,7 @@ function gt({
|
|
|
1107
1145
|
}
|
|
1108
1146
|
);
|
|
1109
1147
|
}
|
|
1110
|
-
const
|
|
1148
|
+
const bt = (e) => {
|
|
1111
1149
|
let r = "";
|
|
1112
1150
|
if (typeof e == "number" || typeof e == "string")
|
|
1113
1151
|
r = "m-" + e;
|
|
@@ -1130,14 +1168,14 @@ try {
|
|
|
1130
1168
|
});
|
|
1131
1169
|
} catch {
|
|
1132
1170
|
}
|
|
1133
|
-
const
|
|
1171
|
+
const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ft = ({
|
|
1134
1172
|
mode: e
|
|
1135
1173
|
}) => l({
|
|
1136
1174
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1137
1175
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1138
1176
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1139
1177
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1140
|
-
}),
|
|
1178
|
+
}), vt = ({
|
|
1141
1179
|
focusMode: e
|
|
1142
1180
|
}) => l("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1143
1181
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -1152,7 +1190,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1152
1190
|
"focus:border-border-dark": !e && r,
|
|
1153
1191
|
"border-border-error-dark": !e && r,
|
|
1154
1192
|
"border-transparent": e
|
|
1155
|
-
}),
|
|
1193
|
+
}), _t = ({
|
|
1156
1194
|
disabled: e,
|
|
1157
1195
|
raw: r,
|
|
1158
1196
|
error: t,
|
|
@@ -1176,7 +1214,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1176
1214
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
1177
1215
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
1178
1216
|
});
|
|
1179
|
-
},
|
|
1217
|
+
}, xt = ({
|
|
1180
1218
|
error: e,
|
|
1181
1219
|
raw: r,
|
|
1182
1220
|
mode: t,
|
|
@@ -1203,7 +1241,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1203
1241
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
1204
1242
|
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
1205
1243
|
});
|
|
1206
|
-
},
|
|
1244
|
+
}, wt = ({
|
|
1207
1245
|
className: e,
|
|
1208
1246
|
textAreaClassName: r,
|
|
1209
1247
|
raw: t,
|
|
@@ -1216,15 +1254,15 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1216
1254
|
}) => {
|
|
1217
1255
|
const m = t ? e : l(
|
|
1218
1256
|
"relative flex w-full flex-col justify-center",
|
|
1219
|
-
|
|
1257
|
+
at,
|
|
1220
1258
|
e,
|
|
1221
|
-
|
|
1259
|
+
bt(s)
|
|
1222
1260
|
), u = t ? l(r) : l(
|
|
1223
1261
|
me,
|
|
1224
1262
|
r,
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1263
|
+
yt(),
|
|
1264
|
+
ft({ mode: d }),
|
|
1265
|
+
vt({ focusMode: a }),
|
|
1228
1266
|
kt({
|
|
1229
1267
|
noBorder: n,
|
|
1230
1268
|
error: i
|
|
@@ -1232,17 +1270,17 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1232
1270
|
{
|
|
1233
1271
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1234
1272
|
}
|
|
1235
|
-
), p = t ? void 0 : "sr-only", g =
|
|
1273
|
+
), p = t ? void 0 : "sr-only", g = _t({
|
|
1236
1274
|
disabled: o,
|
|
1237
1275
|
raw: t,
|
|
1238
1276
|
error: i,
|
|
1239
1277
|
mode: d
|
|
1240
|
-
}), h =
|
|
1278
|
+
}), h = xt({
|
|
1241
1279
|
error: i,
|
|
1242
1280
|
raw: t,
|
|
1243
1281
|
mode: d,
|
|
1244
1282
|
disabled: o
|
|
1245
|
-
}), b = t ? void 0 : l(
|
|
1283
|
+
}), b = t ? void 0 : l(ot, "absolute");
|
|
1246
1284
|
return {
|
|
1247
1285
|
wrapper: m,
|
|
1248
1286
|
textArea: u,
|
|
@@ -1251,7 +1289,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1251
1289
|
helperText: h,
|
|
1252
1290
|
rightElement: b
|
|
1253
1291
|
};
|
|
1254
|
-
},
|
|
1292
|
+
}, Et = ({
|
|
1255
1293
|
scrollHeight: e,
|
|
1256
1294
|
currentHeight: r,
|
|
1257
1295
|
currentLabelOffset: t = 0,
|
|
@@ -1267,7 +1305,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1267
1305
|
helperTextOffset: n,
|
|
1268
1306
|
scrollHeight: e
|
|
1269
1307
|
};
|
|
1270
|
-
},
|
|
1308
|
+
}, Tt = z.forwardRef(
|
|
1271
1309
|
({
|
|
1272
1310
|
id: e,
|
|
1273
1311
|
name: r,
|
|
@@ -1284,7 +1322,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1284
1322
|
noBorder: g = !1,
|
|
1285
1323
|
labelId: h,
|
|
1286
1324
|
helperText: b = "",
|
|
1287
|
-
helperTextOnFocus:
|
|
1325
|
+
helperTextOnFocus: w = !1,
|
|
1288
1326
|
rightElement: S,
|
|
1289
1327
|
onChange: B,
|
|
1290
1328
|
onFocus: H,
|
|
@@ -1292,9 +1330,9 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1292
1330
|
spacing: F,
|
|
1293
1331
|
...G
|
|
1294
1332
|
}, D) => {
|
|
1295
|
-
const
|
|
1296
|
-
!!(!
|
|
1297
|
-
),
|
|
1333
|
+
const v = f(null), pe = it([D, v]), [be, V] = st(), j = f(80), K = f(-25), C = f(null), Z = f(30), W = f(null), A = dt({ id: e, prefix: `${me}-` }), [ye, fe] = I(0), [ve, ee] = I(
|
|
1334
|
+
!!(!w && b)
|
|
1335
|
+
), ke = `${r} error, ${b}`, E = wt({
|
|
1298
1336
|
className: n,
|
|
1299
1337
|
textAreaClassName: i,
|
|
1300
1338
|
error: a,
|
|
@@ -1304,7 +1342,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1304
1342
|
noBorder: g,
|
|
1305
1343
|
spacing: F,
|
|
1306
1344
|
mode: s
|
|
1307
|
-
}), [
|
|
1345
|
+
}), [k, _e] = ct({
|
|
1308
1346
|
value: m,
|
|
1309
1347
|
initialControlledDelay: 20,
|
|
1310
1348
|
defaultValue: u,
|
|
@@ -1318,27 +1356,27 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1318
1356
|
}), xe = (y) => {
|
|
1319
1357
|
_e(y.target.value);
|
|
1320
1358
|
}, we = (y) => {
|
|
1321
|
-
|
|
1359
|
+
w && b && ee(!0), H && H(y);
|
|
1322
1360
|
}, Ee = (y) => {
|
|
1323
|
-
|
|
1361
|
+
w && b && !k && ee(!1), L && L(y);
|
|
1324
1362
|
};
|
|
1325
|
-
return
|
|
1326
|
-
|
|
1327
|
-
}, [
|
|
1328
|
-
o ||
|
|
1329
|
-
}, [
|
|
1363
|
+
return M(() => {
|
|
1364
|
+
V && V.width && fe(V.width + 18 + 10);
|
|
1365
|
+
}, [V]), M(() => {
|
|
1366
|
+
o || v && v.current && k !== void 0 && (v.current.style.height = "inherit", v.current.style.height = v.current.scrollHeight + "px");
|
|
1367
|
+
}, [k, o]), M(() => {
|
|
1330
1368
|
o || setTimeout(() => {
|
|
1331
1369
|
var y;
|
|
1332
1370
|
(y = C == null ? void 0 : C.current) == null || y.style.setProperty(
|
|
1333
1371
|
"--av-text-area-wrapper-transition",
|
|
1334
|
-
|
|
1372
|
+
k ? "none" : "all 0.2s ease-out"
|
|
1335
1373
|
);
|
|
1336
1374
|
}, 0);
|
|
1337
|
-
}, [
|
|
1375
|
+
}, [k, o]), M(() => {
|
|
1338
1376
|
var y, te;
|
|
1339
|
-
if (!o &&
|
|
1340
|
-
const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } =
|
|
1341
|
-
scrollHeight:
|
|
1377
|
+
if (!o && v && v.current && k !== void 0) {
|
|
1378
|
+
const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } = Et({
|
|
1379
|
+
scrollHeight: v.current.scrollHeight,
|
|
1342
1380
|
currentHeight: j.current,
|
|
1343
1381
|
currentLabelOffset: K.current,
|
|
1344
1382
|
currentHelperTextOffset: Z.current
|
|
@@ -1351,7 +1389,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1351
1389
|
`${J}px`
|
|
1352
1390
|
)), j.current = Te || j.current;
|
|
1353
1391
|
}
|
|
1354
|
-
}, [
|
|
1392
|
+
}, [k, o]), /* @__PURE__ */ x("div", { className: E.wrapper, children: [
|
|
1355
1393
|
/* @__PURE__ */ c(
|
|
1356
1394
|
"label",
|
|
1357
1395
|
{
|
|
@@ -1374,7 +1412,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1374
1412
|
...b && { "aria-describedby": `${A}-helper` },
|
|
1375
1413
|
...a && { "aria-invalid": "true" },
|
|
1376
1414
|
...S && !o && { style: { paddingRight: ye } },
|
|
1377
|
-
value:
|
|
1415
|
+
value: k,
|
|
1378
1416
|
onChange: xe,
|
|
1379
1417
|
onFocus: we,
|
|
1380
1418
|
onBlur: Ee,
|
|
@@ -1391,7 +1429,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1391
1429
|
children: t
|
|
1392
1430
|
}
|
|
1393
1431
|
),
|
|
1394
|
-
|
|
1432
|
+
ve && /* @__PURE__ */ c(
|
|
1395
1433
|
"div",
|
|
1396
1434
|
{
|
|
1397
1435
|
ref: W,
|
|
@@ -1408,23 +1446,24 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1408
1446
|
children: S
|
|
1409
1447
|
}
|
|
1410
1448
|
),
|
|
1411
|
-
a && b && /* @__PURE__ */ c(
|
|
1449
|
+
a && b && /* @__PURE__ */ c(pt, { politeness: "polite", clearAnnouncementDelay: 500, children: ke })
|
|
1412
1450
|
] });
|
|
1413
1451
|
}
|
|
1414
1452
|
);
|
|
1415
|
-
|
|
1453
|
+
Tt.displayName = "TextArea";
|
|
1416
1454
|
export {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1455
|
+
$t as E,
|
|
1456
|
+
Rt as SERVICE_TYPES,
|
|
1457
|
+
Mt as be,
|
|
1458
|
+
rt as de,
|
|
1459
|
+
U as f,
|
|
1460
|
+
Lt as ge,
|
|
1461
|
+
Vt as he,
|
|
1462
|
+
Ut as me,
|
|
1463
|
+
It as n,
|
|
1464
|
+
zt as pe,
|
|
1465
|
+
Ht as restCall,
|
|
1466
|
+
Bt as serviceCall,
|
|
1467
|
+
Ot as ue,
|
|
1468
|
+
Tt as we
|
|
1430
1469
|
};
|