@lgsm/modules 1.6.10 → 1.6.12
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/main.js +223 -224
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as v, Fragment as Le, jsxs as $ } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import w, { useState as hn, forwardRef as
|
|
3
|
+
import w, { useState as hn, forwardRef as kr, createElement as tn, useEffect as Nr, useRef as hs } from "react";
|
|
4
4
|
import * as gs from "react-dom";
|
|
5
5
|
import Ar from "react-dom";
|
|
6
6
|
import './assets/main.css';function In(e, t) {
|
|
@@ -115,7 +115,7 @@ const Bn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ln = bn, D
|
|
|
115
115
|
}, []);
|
|
116
116
|
return Ln(e, a, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
117
117
|
}, yn = "-", Ss = (e) => {
|
|
118
|
-
const t =
|
|
118
|
+
const t = Cs(e), {
|
|
119
119
|
conflictingClassGroups: n,
|
|
120
120
|
conflictingClassGroupModifiers: r
|
|
121
121
|
} = e;
|
|
@@ -148,7 +148,7 @@ const Bn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ln = bn, D
|
|
|
148
148
|
if (n)
|
|
149
149
|
return "arbitrary.." + n;
|
|
150
150
|
}
|
|
151
|
-
},
|
|
151
|
+
}, Cs = (e) => {
|
|
152
152
|
const {
|
|
153
153
|
theme: t,
|
|
154
154
|
classGroups: n
|
|
@@ -167,7 +167,7 @@ const Bn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ln = bn, D
|
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
if (typeof o == "function") {
|
|
170
|
-
if (
|
|
170
|
+
if (ks(o)) {
|
|
171
171
|
nn(o(r), t, n, r);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
@@ -189,7 +189,7 @@ const Bn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ln = bn, D
|
|
|
189
189
|
validators: []
|
|
190
190
|
}), n = n.nextPart.get(r);
|
|
191
191
|
}), n;
|
|
192
|
-
},
|
|
192
|
+
}, ks = (e) => e.isThemeGetter, Ns = (e) => {
|
|
193
193
|
if (e < 1)
|
|
194
194
|
return {
|
|
195
195
|
get: () => {
|
|
@@ -309,14 +309,14 @@ const Bn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ln = bn, D
|
|
|
309
309
|
}
|
|
310
310
|
g = !1;
|
|
311
311
|
}
|
|
312
|
-
const O = s(b).join(":"),
|
|
313
|
-
if (a.includes(
|
|
312
|
+
const O = s(b).join(":"), k = x ? O + rn : O, A = k + y;
|
|
313
|
+
if (a.includes(A))
|
|
314
314
|
continue;
|
|
315
|
-
a.push(
|
|
315
|
+
a.push(A);
|
|
316
316
|
const P = o(y, g);
|
|
317
317
|
for (let L = 0; L < P.length; ++L) {
|
|
318
|
-
const
|
|
319
|
-
a.push(
|
|
318
|
+
const T = P[L];
|
|
319
|
+
a.push(k + T);
|
|
320
320
|
}
|
|
321
321
|
u = d + (u.length > 0 ? " " + u : u);
|
|
322
322
|
}
|
|
@@ -356,19 +356,19 @@ function Bs(e, ...t) {
|
|
|
356
356
|
const q = (e) => {
|
|
357
357
|
const t = (n) => n[e] || [];
|
|
358
358
|
return t.isThemeGetter = !0, t;
|
|
359
|
-
}, Fr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ir = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ls = /^\d+\/\d+$/, Us = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, js = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _s = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => Ls.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), Te = (e) => !!e && Number.isInteger(Number(e)), Ht = (e) => e.endsWith("%") && B(e.slice(0, -1)),
|
|
359
|
+
}, Fr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ir = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ls = /^\d+\/\d+$/, Us = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, js = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _s = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => Ls.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), Te = (e) => !!e && Number.isInteger(Number(e)), Ht = (e) => e.endsWith("%") && B(e.slice(0, -1)), Ce = (e) => Us.test(e), Ws = () => !0, Ks = (e) => (
|
|
360
360
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
361
361
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
362
362
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
363
363
|
js.test(e) && !zs.test(e)
|
|
364
|
-
), Br = () => !1, Vs = (e) => _s.test(e), qs = (e) => Hs.test(e), Ys = (e) => !R(e) && !
|
|
364
|
+
), Br = () => !1, Vs = (e) => _s.test(e), qs = (e) => Hs.test(e), Ys = (e) => !R(e) && !C(e), Js = (e) => Qe(e, jr, Br), R = (e) => Fr.test(e), Me = (e) => Qe(e, zr, Ks), Wt = (e) => Qe(e, $s, B), zn = (e) => Qe(e, Lr, Br), Gs = (e) => Qe(e, Ur, qs), pt = (e) => Qe(e, _r, Vs), C = (e) => Ir.test(e), tt = (e) => Xe(e, zr), Qs = (e) => Xe(e, ea), _n = (e) => Xe(e, Lr), Xs = (e) => Xe(e, jr), Zs = (e) => Xe(e, Ur), ht = (e) => Xe(e, _r, !0), Qe = (e, t, n) => {
|
|
365
365
|
const r = Fr.exec(e);
|
|
366
366
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
367
367
|
}, Xe = (e, t, n = !1) => {
|
|
368
368
|
const r = Ir.exec(e);
|
|
369
369
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
370
370
|
}, Lr = (e) => e === "position" || e === "percentage", Ur = (e) => e === "image" || e === "url", jr = (e) => e === "length" || e === "size" || e === "bg-size", zr = (e) => e === "length", $s = (e) => e === "number", ea = (e) => e === "family-name", _r = (e) => e === "shadow", ta = () => {
|
|
371
|
-
const e = q("color"), t = q("font"), n = q("text"), r = q("font-weight"), o = q("tracking"), s = q("leading"), a = q("breakpoint"), i = q("container"), u = q("spacing"), c = q("radius"), d = q("shadow"), l = q("inset-shadow"), b = q("text-shadow"), x = q("drop-shadow"), h = q("blur"), p = q("perspective"), g = q("aspect"), y = q("ease"), O = q("animate"),
|
|
371
|
+
const e = q("color"), t = q("font"), n = q("text"), r = q("font-weight"), o = q("tracking"), s = q("leading"), a = q("breakpoint"), i = q("container"), u = q("spacing"), c = q("radius"), d = q("shadow"), l = q("inset-shadow"), b = q("text-shadow"), x = q("drop-shadow"), h = q("blur"), p = q("perspective"), g = q("aspect"), y = q("ease"), O = q("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
372
372
|
"center",
|
|
373
373
|
"top",
|
|
374
374
|
"bottom",
|
|
@@ -386,51 +386,51 @@ const q = (e) => {
|
|
|
386
386
|
"bottom-left",
|
|
387
387
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
388
388
|
"left-bottom"
|
|
389
|
-
], P = () => [...
|
|
390
|
-
span: ["full", Te,
|
|
391
|
-
}, Te,
|
|
392
|
-
position: [
|
|
389
|
+
], P = () => [...A(), C, R], L = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], S = () => [C, R, u], H = () => [Ke, "full", "auto", ...S()], oe = () => [Te, "none", "subgrid", C, R], Ee = () => ["auto", {
|
|
390
|
+
span: ["full", Te, C, R]
|
|
391
|
+
}, Te, C, R], ee = () => [Te, "auto", C, R], K = () => ["auto", "min", "max", "fr", C, R], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], te = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...S()], j = () => [Ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], E = () => [e, C, R], le = () => [...A(), _n, zn, {
|
|
392
|
+
position: [C, R]
|
|
393
393
|
}], Q = () => ["no-repeat", {
|
|
394
394
|
repeat: ["", "x", "y", "space", "round"]
|
|
395
395
|
}], V = () => ["auto", "cover", "contain", Xs, Js, {
|
|
396
|
-
size: [
|
|
396
|
+
size: [C, R]
|
|
397
397
|
}], ne = () => [Ht, tt, Me], N = () => [
|
|
398
398
|
// Deprecated since Tailwind CSS v4.0.0
|
|
399
399
|
"",
|
|
400
400
|
"none",
|
|
401
401
|
"full",
|
|
402
402
|
c,
|
|
403
|
-
|
|
403
|
+
C,
|
|
404
404
|
R
|
|
405
405
|
], I = () => ["", B, tt, Me], U = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [B, Ht, _n, zn], z = () => [
|
|
406
406
|
// Deprecated since Tailwind CSS v4.0.0
|
|
407
407
|
"",
|
|
408
408
|
"none",
|
|
409
409
|
h,
|
|
410
|
-
|
|
410
|
+
C,
|
|
411
411
|
R
|
|
412
|
-
], fe = () => ["none", B,
|
|
412
|
+
], fe = () => ["none", B, C, R], Se = () => ["none", B, C, R], Ne = () => [B, C, R], me = () => [Ke, "full", ...S()];
|
|
413
413
|
return {
|
|
414
414
|
cacheSize: 500,
|
|
415
415
|
theme: {
|
|
416
416
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
417
417
|
aspect: ["video"],
|
|
418
|
-
blur: [
|
|
419
|
-
breakpoint: [
|
|
418
|
+
blur: [Ce],
|
|
419
|
+
breakpoint: [Ce],
|
|
420
420
|
color: [Ws],
|
|
421
|
-
container: [
|
|
422
|
-
"drop-shadow": [
|
|
421
|
+
container: [Ce],
|
|
422
|
+
"drop-shadow": [Ce],
|
|
423
423
|
ease: ["in", "out", "in-out"],
|
|
424
424
|
font: [Ys],
|
|
425
425
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
426
|
-
"inset-shadow": [
|
|
426
|
+
"inset-shadow": [Ce],
|
|
427
427
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
428
428
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
429
|
-
radius: [
|
|
430
|
-
shadow: [
|
|
429
|
+
radius: [Ce],
|
|
430
|
+
shadow: [Ce],
|
|
431
431
|
spacing: ["px", B],
|
|
432
|
-
text: [
|
|
433
|
-
"text-shadow": [
|
|
432
|
+
text: [Ce],
|
|
433
|
+
"text-shadow": [Ce],
|
|
434
434
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
435
435
|
},
|
|
436
436
|
classGroups: {
|
|
@@ -442,7 +442,7 @@ const q = (e) => {
|
|
|
442
442
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
443
443
|
*/
|
|
444
444
|
aspect: [{
|
|
445
|
-
aspect: ["auto", "square", Ke, R,
|
|
445
|
+
aspect: ["auto", "square", Ke, R, C, g]
|
|
446
446
|
}],
|
|
447
447
|
/**
|
|
448
448
|
* Container
|
|
@@ -455,21 +455,21 @@ const q = (e) => {
|
|
|
455
455
|
* @see https://tailwindcss.com/docs/columns
|
|
456
456
|
*/
|
|
457
457
|
columns: [{
|
|
458
|
-
columns: [B, R,
|
|
458
|
+
columns: [B, R, C, i]
|
|
459
459
|
}],
|
|
460
460
|
/**
|
|
461
461
|
* Break After
|
|
462
462
|
* @see https://tailwindcss.com/docs/break-after
|
|
463
463
|
*/
|
|
464
464
|
"break-after": [{
|
|
465
|
-
"break-after":
|
|
465
|
+
"break-after": k()
|
|
466
466
|
}],
|
|
467
467
|
/**
|
|
468
468
|
* Break Before
|
|
469
469
|
* @see https://tailwindcss.com/docs/break-before
|
|
470
470
|
*/
|
|
471
471
|
"break-before": [{
|
|
472
|
-
"break-before":
|
|
472
|
+
"break-before": k()
|
|
473
473
|
}],
|
|
474
474
|
/**
|
|
475
475
|
* Break Inside
|
|
@@ -561,21 +561,21 @@ const q = (e) => {
|
|
|
561
561
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
562
562
|
*/
|
|
563
563
|
overscroll: [{
|
|
564
|
-
overscroll:
|
|
564
|
+
overscroll: T()
|
|
565
565
|
}],
|
|
566
566
|
/**
|
|
567
567
|
* Overscroll Behavior X
|
|
568
568
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
569
569
|
*/
|
|
570
570
|
"overscroll-x": [{
|
|
571
|
-
"overscroll-x":
|
|
571
|
+
"overscroll-x": T()
|
|
572
572
|
}],
|
|
573
573
|
/**
|
|
574
574
|
* Overscroll Behavior Y
|
|
575
575
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
576
576
|
*/
|
|
577
577
|
"overscroll-y": [{
|
|
578
|
-
"overscroll-y":
|
|
578
|
+
"overscroll-y": T()
|
|
579
579
|
}],
|
|
580
580
|
/**
|
|
581
581
|
* Position
|
|
@@ -655,7 +655,7 @@ const q = (e) => {
|
|
|
655
655
|
* @see https://tailwindcss.com/docs/z-index
|
|
656
656
|
*/
|
|
657
657
|
z: [{
|
|
658
|
-
z: [Te, "auto",
|
|
658
|
+
z: [Te, "auto", C, R]
|
|
659
659
|
}],
|
|
660
660
|
// ------------------------
|
|
661
661
|
// --- Flexbox and Grid ---
|
|
@@ -693,21 +693,21 @@ const q = (e) => {
|
|
|
693
693
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
694
694
|
*/
|
|
695
695
|
grow: [{
|
|
696
|
-
grow: ["", B,
|
|
696
|
+
grow: ["", B, C, R]
|
|
697
697
|
}],
|
|
698
698
|
/**
|
|
699
699
|
* Flex Shrink
|
|
700
700
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
701
701
|
*/
|
|
702
702
|
shrink: [{
|
|
703
|
-
shrink: ["", B,
|
|
703
|
+
shrink: ["", B, C, R]
|
|
704
704
|
}],
|
|
705
705
|
/**
|
|
706
706
|
* Order
|
|
707
707
|
* @see https://tailwindcss.com/docs/order
|
|
708
708
|
*/
|
|
709
709
|
order: [{
|
|
710
|
-
order: [Te, "first", "last", "none",
|
|
710
|
+
order: [Te, "first", "last", "none", C, R]
|
|
711
711
|
}],
|
|
712
712
|
/**
|
|
713
713
|
* Grid Template Columns
|
|
@@ -1119,7 +1119,7 @@ const q = (e) => {
|
|
|
1119
1119
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1120
1120
|
*/
|
|
1121
1121
|
"font-weight": [{
|
|
1122
|
-
font: [r,
|
|
1122
|
+
font: [r, C, Wt]
|
|
1123
1123
|
}],
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Font Stretch
|
|
@@ -1170,14 +1170,14 @@ const q = (e) => {
|
|
|
1170
1170
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1171
1171
|
*/
|
|
1172
1172
|
tracking: [{
|
|
1173
|
-
tracking: [o,
|
|
1173
|
+
tracking: [o, C, R]
|
|
1174
1174
|
}],
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Line Clamp
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1178
1178
|
*/
|
|
1179
1179
|
"line-clamp": [{
|
|
1180
|
-
"line-clamp": [B, "none",
|
|
1180
|
+
"line-clamp": [B, "none", C, Wt]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Line Height
|
|
@@ -1195,7 +1195,7 @@ const q = (e) => {
|
|
|
1195
1195
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1196
1196
|
*/
|
|
1197
1197
|
"list-image": [{
|
|
1198
|
-
"list-image": ["none",
|
|
1198
|
+
"list-image": ["none", C, R]
|
|
1199
1199
|
}],
|
|
1200
1200
|
/**
|
|
1201
1201
|
* List Style Position
|
|
@@ -1209,7 +1209,7 @@ const q = (e) => {
|
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1210
1210
|
*/
|
|
1211
1211
|
"list-style-type": [{
|
|
1212
|
-
list: ["disc", "decimal", "none",
|
|
1212
|
+
list: ["disc", "decimal", "none", C, R]
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Text Alignment
|
|
@@ -1250,7 +1250,7 @@ const q = (e) => {
|
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1251
1251
|
*/
|
|
1252
1252
|
"text-decoration-thickness": [{
|
|
1253
|
-
decoration: [B, "from-font", "auto",
|
|
1253
|
+
decoration: [B, "from-font", "auto", C, Me]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Text Decoration Color
|
|
@@ -1264,7 +1264,7 @@ const q = (e) => {
|
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1265
1265
|
*/
|
|
1266
1266
|
"underline-offset": [{
|
|
1267
|
-
"underline-offset": [B, "auto",
|
|
1267
|
+
"underline-offset": [B, "auto", C, R]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Text Transform
|
|
@@ -1295,7 +1295,7 @@ const q = (e) => {
|
|
|
1295
1295
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1296
1296
|
*/
|
|
1297
1297
|
"vertical-align": [{
|
|
1298
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1298
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", C, R]
|
|
1299
1299
|
}],
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Whitespace
|
|
@@ -1330,7 +1330,7 @@ const q = (e) => {
|
|
|
1330
1330
|
* @see https://tailwindcss.com/docs/content
|
|
1331
1331
|
*/
|
|
1332
1332
|
content: [{
|
|
1333
|
-
content: ["none",
|
|
1333
|
+
content: ["none", C, R]
|
|
1334
1334
|
}],
|
|
1335
1335
|
// -------------------
|
|
1336
1336
|
// --- Backgrounds ---
|
|
@@ -1385,9 +1385,9 @@ const q = (e) => {
|
|
|
1385
1385
|
bg: ["none", {
|
|
1386
1386
|
linear: [{
|
|
1387
1387
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1388
|
-
}, Te,
|
|
1389
|
-
radial: ["",
|
|
1390
|
-
conic: [Te,
|
|
1388
|
+
}, Te, C, R],
|
|
1389
|
+
radial: ["", C, R],
|
|
1390
|
+
conic: [Te, C, R]
|
|
1391
1391
|
}, Zs, Gs]
|
|
1392
1392
|
}],
|
|
1393
1393
|
/**
|
|
@@ -1730,7 +1730,7 @@ const q = (e) => {
|
|
|
1730
1730
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1731
1731
|
*/
|
|
1732
1732
|
"outline-offset": [{
|
|
1733
|
-
"outline-offset": [B,
|
|
1733
|
+
"outline-offset": [B, C, R]
|
|
1734
1734
|
}],
|
|
1735
1735
|
/**
|
|
1736
1736
|
* Outline Width
|
|
@@ -1856,7 +1856,7 @@ const q = (e) => {
|
|
|
1856
1856
|
* @see https://tailwindcss.com/docs/opacity
|
|
1857
1857
|
*/
|
|
1858
1858
|
opacity: [{
|
|
1859
|
-
opacity: [B,
|
|
1859
|
+
opacity: [B, C, R]
|
|
1860
1860
|
}],
|
|
1861
1861
|
/**
|
|
1862
1862
|
* Mix Blend Mode
|
|
@@ -1978,7 +1978,7 @@ const q = (e) => {
|
|
|
1978
1978
|
"mask-y-to": E()
|
|
1979
1979
|
}],
|
|
1980
1980
|
"mask-image-radial": [{
|
|
1981
|
-
"mask-radial": [
|
|
1981
|
+
"mask-radial": [C, R]
|
|
1982
1982
|
}],
|
|
1983
1983
|
"mask-image-radial-from-pos": [{
|
|
1984
1984
|
"mask-radial-from": _()
|
|
@@ -2002,7 +2002,7 @@ const q = (e) => {
|
|
|
2002
2002
|
}]
|
|
2003
2003
|
}],
|
|
2004
2004
|
"mask-image-radial-pos": [{
|
|
2005
|
-
"mask-radial-at":
|
|
2005
|
+
"mask-radial-at": A()
|
|
2006
2006
|
}],
|
|
2007
2007
|
"mask-image-conic-pos": [{
|
|
2008
2008
|
"mask-conic": [B]
|
|
@@ -2066,7 +2066,7 @@ const q = (e) => {
|
|
|
2066
2066
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2067
2067
|
*/
|
|
2068
2068
|
"mask-image": [{
|
|
2069
|
-
mask: ["none",
|
|
2069
|
+
mask: ["none", C, R]
|
|
2070
2070
|
}],
|
|
2071
2071
|
// ---------------
|
|
2072
2072
|
// --- Filters ---
|
|
@@ -2080,7 +2080,7 @@ const q = (e) => {
|
|
|
2080
2080
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2081
2081
|
"",
|
|
2082
2082
|
"none",
|
|
2083
|
-
|
|
2083
|
+
C,
|
|
2084
2084
|
R
|
|
2085
2085
|
]
|
|
2086
2086
|
}],
|
|
@@ -2096,14 +2096,14 @@ const q = (e) => {
|
|
|
2096
2096
|
* @see https://tailwindcss.com/docs/brightness
|
|
2097
2097
|
*/
|
|
2098
2098
|
brightness: [{
|
|
2099
|
-
brightness: [B,
|
|
2099
|
+
brightness: [B, C, R]
|
|
2100
2100
|
}],
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Contrast
|
|
2103
2103
|
* @see https://tailwindcss.com/docs/contrast
|
|
2104
2104
|
*/
|
|
2105
2105
|
contrast: [{
|
|
2106
|
-
contrast: [B,
|
|
2106
|
+
contrast: [B, C, R]
|
|
2107
2107
|
}],
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Drop Shadow
|
|
@@ -2131,35 +2131,35 @@ const q = (e) => {
|
|
|
2131
2131
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2132
2132
|
*/
|
|
2133
2133
|
grayscale: [{
|
|
2134
|
-
grayscale: ["", B,
|
|
2134
|
+
grayscale: ["", B, C, R]
|
|
2135
2135
|
}],
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Hue Rotate
|
|
2138
2138
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2139
2139
|
*/
|
|
2140
2140
|
"hue-rotate": [{
|
|
2141
|
-
"hue-rotate": [B,
|
|
2141
|
+
"hue-rotate": [B, C, R]
|
|
2142
2142
|
}],
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Invert
|
|
2145
2145
|
* @see https://tailwindcss.com/docs/invert
|
|
2146
2146
|
*/
|
|
2147
2147
|
invert: [{
|
|
2148
|
-
invert: ["", B,
|
|
2148
|
+
invert: ["", B, C, R]
|
|
2149
2149
|
}],
|
|
2150
2150
|
/**
|
|
2151
2151
|
* Saturate
|
|
2152
2152
|
* @see https://tailwindcss.com/docs/saturate
|
|
2153
2153
|
*/
|
|
2154
2154
|
saturate: [{
|
|
2155
|
-
saturate: [B,
|
|
2155
|
+
saturate: [B, C, R]
|
|
2156
2156
|
}],
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Sepia
|
|
2159
2159
|
* @see https://tailwindcss.com/docs/sepia
|
|
2160
2160
|
*/
|
|
2161
2161
|
sepia: [{
|
|
2162
|
-
sepia: ["", B,
|
|
2162
|
+
sepia: ["", B, C, R]
|
|
2163
2163
|
}],
|
|
2164
2164
|
/**
|
|
2165
2165
|
* Backdrop Filter
|
|
@@ -2170,7 +2170,7 @@ const q = (e) => {
|
|
|
2170
2170
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2171
2171
|
"",
|
|
2172
2172
|
"none",
|
|
2173
|
-
|
|
2173
|
+
C,
|
|
2174
2174
|
R
|
|
2175
2175
|
]
|
|
2176
2176
|
}],
|
|
@@ -2186,56 +2186,56 @@ const q = (e) => {
|
|
|
2186
2186
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2187
2187
|
*/
|
|
2188
2188
|
"backdrop-brightness": [{
|
|
2189
|
-
"backdrop-brightness": [B,
|
|
2189
|
+
"backdrop-brightness": [B, C, R]
|
|
2190
2190
|
}],
|
|
2191
2191
|
/**
|
|
2192
2192
|
* Backdrop Contrast
|
|
2193
2193
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2194
2194
|
*/
|
|
2195
2195
|
"backdrop-contrast": [{
|
|
2196
|
-
"backdrop-contrast": [B,
|
|
2196
|
+
"backdrop-contrast": [B, C, R]
|
|
2197
2197
|
}],
|
|
2198
2198
|
/**
|
|
2199
2199
|
* Backdrop Grayscale
|
|
2200
2200
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2201
2201
|
*/
|
|
2202
2202
|
"backdrop-grayscale": [{
|
|
2203
|
-
"backdrop-grayscale": ["", B,
|
|
2203
|
+
"backdrop-grayscale": ["", B, C, R]
|
|
2204
2204
|
}],
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Backdrop Hue Rotate
|
|
2207
2207
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2208
2208
|
*/
|
|
2209
2209
|
"backdrop-hue-rotate": [{
|
|
2210
|
-
"backdrop-hue-rotate": [B,
|
|
2210
|
+
"backdrop-hue-rotate": [B, C, R]
|
|
2211
2211
|
}],
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Backdrop Invert
|
|
2214
2214
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2215
2215
|
*/
|
|
2216
2216
|
"backdrop-invert": [{
|
|
2217
|
-
"backdrop-invert": ["", B,
|
|
2217
|
+
"backdrop-invert": ["", B, C, R]
|
|
2218
2218
|
}],
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Backdrop Opacity
|
|
2221
2221
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2222
2222
|
*/
|
|
2223
2223
|
"backdrop-opacity": [{
|
|
2224
|
-
"backdrop-opacity": [B,
|
|
2224
|
+
"backdrop-opacity": [B, C, R]
|
|
2225
2225
|
}],
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Backdrop Saturate
|
|
2228
2228
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2229
2229
|
*/
|
|
2230
2230
|
"backdrop-saturate": [{
|
|
2231
|
-
"backdrop-saturate": [B,
|
|
2231
|
+
"backdrop-saturate": [B, C, R]
|
|
2232
2232
|
}],
|
|
2233
2233
|
/**
|
|
2234
2234
|
* Backdrop Sepia
|
|
2235
2235
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2236
2236
|
*/
|
|
2237
2237
|
"backdrop-sepia": [{
|
|
2238
|
-
"backdrop-sepia": ["", B,
|
|
2238
|
+
"backdrop-sepia": ["", B, C, R]
|
|
2239
2239
|
}],
|
|
2240
2240
|
// --------------
|
|
2241
2241
|
// --- Tables ---
|
|
@@ -2290,7 +2290,7 @@ const q = (e) => {
|
|
|
2290
2290
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2291
2291
|
*/
|
|
2292
2292
|
transition: [{
|
|
2293
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2293
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", C, R]
|
|
2294
2294
|
}],
|
|
2295
2295
|
/**
|
|
2296
2296
|
* Transition Behavior
|
|
@@ -2304,28 +2304,28 @@ const q = (e) => {
|
|
|
2304
2304
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2305
2305
|
*/
|
|
2306
2306
|
duration: [{
|
|
2307
|
-
duration: [B, "initial",
|
|
2307
|
+
duration: [B, "initial", C, R]
|
|
2308
2308
|
}],
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Transition Timing Function
|
|
2311
2311
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2312
2312
|
*/
|
|
2313
2313
|
ease: [{
|
|
2314
|
-
ease: ["linear", "initial", y,
|
|
2314
|
+
ease: ["linear", "initial", y, C, R]
|
|
2315
2315
|
}],
|
|
2316
2316
|
/**
|
|
2317
2317
|
* Transition Delay
|
|
2318
2318
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2319
2319
|
*/
|
|
2320
2320
|
delay: [{
|
|
2321
|
-
delay: [B,
|
|
2321
|
+
delay: [B, C, R]
|
|
2322
2322
|
}],
|
|
2323
2323
|
/**
|
|
2324
2324
|
* Animation
|
|
2325
2325
|
* @see https://tailwindcss.com/docs/animation
|
|
2326
2326
|
*/
|
|
2327
2327
|
animate: [{
|
|
2328
|
-
animate: ["none", O,
|
|
2328
|
+
animate: ["none", O, C, R]
|
|
2329
2329
|
}],
|
|
2330
2330
|
// ------------------
|
|
2331
2331
|
// --- Transforms ---
|
|
@@ -2342,7 +2342,7 @@ const q = (e) => {
|
|
|
2342
2342
|
* @see https://tailwindcss.com/docs/perspective
|
|
2343
2343
|
*/
|
|
2344
2344
|
perspective: [{
|
|
2345
|
-
perspective: [p,
|
|
2345
|
+
perspective: [p, C, R]
|
|
2346
2346
|
}],
|
|
2347
2347
|
/**
|
|
2348
2348
|
* Perspective Origin
|
|
@@ -2438,7 +2438,7 @@ const q = (e) => {
|
|
|
2438
2438
|
* @see https://tailwindcss.com/docs/transform
|
|
2439
2439
|
*/
|
|
2440
2440
|
transform: [{
|
|
2441
|
-
transform: [
|
|
2441
|
+
transform: [C, R, "", "none", "gpu", "cpu"]
|
|
2442
2442
|
}],
|
|
2443
2443
|
/**
|
|
2444
2444
|
* Transform Origin
|
|
@@ -2523,7 +2523,7 @@ const q = (e) => {
|
|
|
2523
2523
|
* @see https://tailwindcss.com/docs/cursor
|
|
2524
2524
|
*/
|
|
2525
2525
|
cursor: [{
|
|
2526
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2526
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", C, R]
|
|
2527
2527
|
}],
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Field Sizing
|
|
@@ -2745,7 +2745,7 @@ const q = (e) => {
|
|
|
2745
2745
|
* @see https://tailwindcss.com/docs/will-change
|
|
2746
2746
|
*/
|
|
2747
2747
|
"will-change": [{
|
|
2748
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2748
|
+
"will-change": ["auto", "scroll", "contents", "transform", C, R]
|
|
2749
2749
|
}],
|
|
2750
2750
|
// -----------
|
|
2751
2751
|
// --- SVG ---
|
|
@@ -3005,7 +3005,7 @@ var ua = {
|
|
|
3005
3005
|
* This source code is licensed under the ISC license.
|
|
3006
3006
|
* See the LICENSE file in the root directory of this source tree.
|
|
3007
3007
|
*/
|
|
3008
|
-
const da =
|
|
3008
|
+
const da = kr(
|
|
3009
3009
|
({
|
|
3010
3010
|
color: e = "currentColor",
|
|
3011
3011
|
size: t = 24,
|
|
@@ -3041,7 +3041,7 @@ const da = Cr(
|
|
|
3041
3041
|
* See the LICENSE file in the root directory of this source tree.
|
|
3042
3042
|
*/
|
|
3043
3043
|
const Ot = (e, t) => {
|
|
3044
|
-
const n =
|
|
3044
|
+
const n = kr(
|
|
3045
3045
|
({ className: r, ...o }, s) => tn(da, {
|
|
3046
3046
|
ref: s,
|
|
3047
3047
|
iconNode: t,
|
|
@@ -3184,12 +3184,12 @@ function Ra(e, t = Sa) {
|
|
|
3184
3184
|
const qn = (e) => {
|
|
3185
3185
|
const t = Ea(e), n = (r) => Ra(t, r);
|
|
3186
3186
|
return Object.assign(n, t), n;
|
|
3187
|
-
},
|
|
3187
|
+
}, Ca = (e) => e ? qn(e) : qn, ka = Ca((e) => ({
|
|
3188
3188
|
notification: null,
|
|
3189
3189
|
setNotification: (t) => e({ notification: t })
|
|
3190
3190
|
}));
|
|
3191
3191
|
function vu() {
|
|
3192
|
-
const { notification: e, setNotification: t } =
|
|
3192
|
+
const { notification: e, setNotification: t } = ka();
|
|
3193
3193
|
return e ? /* @__PURE__ */ v(
|
|
3194
3194
|
xa,
|
|
3195
3195
|
{
|
|
@@ -3488,7 +3488,7 @@ function Qa(e) {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
const Xa = (e) => {
|
|
3490
3490
|
var t, n, r, o, s, a, i, u, c;
|
|
3491
|
-
const { invert: d, toast: l, unstyled: b, interacting: x, setHeights: h, visibleToasts: p, heights: g, index: y, toasts: O, expanded:
|
|
3491
|
+
const { invert: d, toast: l, unstyled: b, interacting: x, setHeights: h, visibleToasts: p, heights: g, index: y, toasts: O, expanded: k, removeToast: A, defaultRichColors: P, closeButton: L, style: T, cancelButtonStyle: S, actionButtonStyle: H, className: oe = "", descriptionClassName: Ee = "", duration: ee, position: K, gap: G, expandByDefault: te, classNames: D, icons: j, closeButtonAriaLabel: E = "Close toast" } = e, [le, Q] = w.useState(null), [V, ne] = w.useState(null), [N, I] = w.useState(!1), [U, re] = w.useState(!1), [_, z] = w.useState(!1), [fe, Se] = w.useState(!1), [Ne, me] = w.useState(!1), [rs, jt] = w.useState(0), [os, kn] = w.useState(0), et = w.useRef(l.duration || ee || Yn), Nn = w.useRef(null), Re = w.useRef(null), ss = y === 0, as = y + 1 <= p, ce = l.type, _e = l.dismissible !== !1, is = l.className || "", ls = l.descriptionClassName || "", dt = w.useMemo(() => g.findIndex((F) => F.toastId === l.id) || 0, [
|
|
3492
3492
|
g,
|
|
3493
3493
|
l.id
|
|
3494
3494
|
]), cs = w.useMemo(() => {
|
|
@@ -3517,7 +3517,7 @@ const Xa = (e) => {
|
|
|
3517
3517
|
const F = Re.current;
|
|
3518
3518
|
if (F) {
|
|
3519
3519
|
const Y = F.getBoundingClientRect().height;
|
|
3520
|
-
return
|
|
3520
|
+
return kn(Y), h((X) => [
|
|
3521
3521
|
{
|
|
3522
3522
|
toastId: l.id,
|
|
3523
3523
|
height: Y,
|
|
@@ -3534,7 +3534,7 @@ const Xa = (e) => {
|
|
|
3534
3534
|
const F = Re.current, Y = F.style.height;
|
|
3535
3535
|
F.style.height = "auto";
|
|
3536
3536
|
const X = F.getBoundingClientRect().height;
|
|
3537
|
-
F.style.height = Y,
|
|
3537
|
+
F.style.height = Y, kn(X), h((ue) => ue.find((J) => J.toastId === l.id) ? ue.map((J) => J.toastId === l.id ? {
|
|
3538
3538
|
...J,
|
|
3539
3539
|
height: X
|
|
3540
3540
|
} : J) : [
|
|
@@ -3557,18 +3557,18 @@ const Xa = (e) => {
|
|
|
3557
3557
|
]);
|
|
3558
3558
|
const Ae = w.useCallback(() => {
|
|
3559
3559
|
re(!0), jt(He.current), h((F) => F.filter((Y) => Y.toastId !== l.id)), setTimeout(() => {
|
|
3560
|
-
|
|
3560
|
+
A(l);
|
|
3561
3561
|
}, Ga);
|
|
3562
3562
|
}, [
|
|
3563
3563
|
l,
|
|
3564
|
-
|
|
3564
|
+
A,
|
|
3565
3565
|
h,
|
|
3566
3566
|
He
|
|
3567
3567
|
]);
|
|
3568
3568
|
w.useEffect(() => {
|
|
3569
3569
|
if (l.promise && ce === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
|
|
3570
3570
|
let F;
|
|
3571
|
-
return
|
|
3571
|
+
return k || x || Dn ? (() => {
|
|
3572
3572
|
if (Tn.current < zt.current) {
|
|
3573
3573
|
const ue = (/* @__PURE__ */ new Date()).getTime() - zt.current;
|
|
3574
3574
|
et.current = et.current - ue;
|
|
@@ -3580,7 +3580,7 @@ const Xa = (e) => {
|
|
|
3580
3580
|
}, et.current));
|
|
3581
3581
|
})(), () => clearTimeout(F);
|
|
3582
3582
|
}, [
|
|
3583
|
-
|
|
3583
|
+
k,
|
|
3584
3584
|
x,
|
|
3585
3585
|
l,
|
|
3586
3586
|
ce,
|
|
@@ -3630,7 +3630,7 @@ const Xa = (e) => {
|
|
|
3630
3630
|
"data-invert": fs,
|
|
3631
3631
|
"data-swipe-out": fe,
|
|
3632
3632
|
"data-swipe-direction": V,
|
|
3633
|
-
"data-expanded": !!(
|
|
3633
|
+
"data-expanded": !!(k || te && N),
|
|
3634
3634
|
"data-testid": l.testId,
|
|
3635
3635
|
style: {
|
|
3636
3636
|
"--index": y,
|
|
@@ -3638,7 +3638,7 @@ const Xa = (e) => {
|
|
|
3638
3638
|
"--z-index": O.length - y,
|
|
3639
3639
|
"--offset": `${U ? rs : He.current}px`,
|
|
3640
3640
|
"--initial-height": te ? "auto" : `${os}px`,
|
|
3641
|
-
...
|
|
3641
|
+
...T,
|
|
3642
3642
|
...l.style
|
|
3643
3643
|
},
|
|
3644
3644
|
onDragEnd: () => {
|
|
@@ -3768,7 +3768,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3768
3768
|
const { id: r, invert: o, position: s = "bottom-right", hotkey: a = [
|
|
3769
3769
|
"altKey",
|
|
3770
3770
|
"KeyT"
|
|
3771
|
-
], expand: i, closeButton: u, className: c, offset: d, mobileOffset: l, theme: b = "light", richColors: x, duration: h, style: p, visibleToasts: g = Wa, toastOptions: y, dir: O = Jn(), gap:
|
|
3771
|
+
], expand: i, closeButton: u, className: c, offset: d, mobileOffset: l, theme: b = "light", richColors: x, duration: h, style: p, visibleToasts: g = Wa, toastOptions: y, dir: O = Jn(), gap: k = Ya, icons: A, containerAriaLabel: P = "Notifications" } = t, [L, T] = w.useState([]), S = w.useMemo(() => r ? L.filter((N) => N.toasterId === r) : L.filter((N) => !N.toasterId), [
|
|
3772
3772
|
L,
|
|
3773
3773
|
r
|
|
3774
3774
|
]), H = w.useMemo(() => Array.from(new Set([
|
|
@@ -3777,7 +3777,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3777
3777
|
S,
|
|
3778
3778
|
s
|
|
3779
3779
|
]), [oe, Ee] = w.useState([]), [ee, K] = w.useState(!1), [G, te] = w.useState(!1), [D, j] = w.useState(b !== "system" ? b : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), E = w.useRef(null), le = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Q = w.useRef(null), V = w.useRef(!1), ne = w.useCallback((N) => {
|
|
3780
|
-
|
|
3780
|
+
T((I) => {
|
|
3781
3781
|
var U;
|
|
3782
3782
|
return (U = I.find((re) => re.id === N.id)) != null && U.delete || se.dismiss(N.id), I.filter(({ id: re }) => re !== N.id);
|
|
3783
3783
|
});
|
|
@@ -3785,7 +3785,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3785
3785
|
return w.useEffect(() => se.subscribe((N) => {
|
|
3786
3786
|
if (N.dismiss) {
|
|
3787
3787
|
requestAnimationFrame(() => {
|
|
3788
|
-
|
|
3788
|
+
T((I) => I.map((U) => U.id === N.id ? {
|
|
3789
3789
|
...U,
|
|
3790
3790
|
delete: !0
|
|
3791
3791
|
} : U));
|
|
@@ -3794,7 +3794,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
setTimeout(() => {
|
|
3796
3796
|
Ar.flushSync(() => {
|
|
3797
|
-
|
|
3797
|
+
T((I) => {
|
|
3798
3798
|
const U = I.findIndex((re) => re.id === N.id);
|
|
3799
3799
|
return U !== -1 ? [
|
|
3800
3800
|
...I.slice(0, U),
|
|
@@ -3884,7 +3884,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3884
3884
|
style: {
|
|
3885
3885
|
"--front-toast-height": `${((U = oe[0]) == null ? void 0 : U.height) || 0}px`,
|
|
3886
3886
|
"--width": `${qa}px`,
|
|
3887
|
-
"--gap": `${
|
|
3887
|
+
"--gap": `${k}px`,
|
|
3888
3888
|
...p,
|
|
3889
3889
|
...Za(d, l)
|
|
3890
3890
|
},
|
|
@@ -3910,7 +3910,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3910
3910
|
var Se, Ne;
|
|
3911
3911
|
return /* @__PURE__ */ w.createElement(Xa, {
|
|
3912
3912
|
key: z.id,
|
|
3913
|
-
icons:
|
|
3913
|
+
icons: A,
|
|
3914
3914
|
index: fe,
|
|
3915
3915
|
toast: z,
|
|
3916
3916
|
defaultRichColors: x,
|
|
@@ -3933,7 +3933,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3933
3933
|
heights: oe.filter((me) => me.position == z.position),
|
|
3934
3934
|
setHeights: Ee,
|
|
3935
3935
|
expandByDefault: i,
|
|
3936
|
-
gap:
|
|
3936
|
+
gap: k,
|
|
3937
3937
|
expanded: ee,
|
|
3938
3938
|
swipeDirections: t.swipeDirections
|
|
3939
3939
|
});
|
|
@@ -4095,7 +4095,7 @@ var ci = [
|
|
|
4095
4095
|
"span",
|
|
4096
4096
|
"svg",
|
|
4097
4097
|
"ul"
|
|
4098
|
-
],
|
|
4098
|
+
], ke = ci.reduce((e, t) => {
|
|
4099
4099
|
const n = /* @__PURE__ */ gn(`Primitive.${t}`), r = m.forwardRef((o, s) => {
|
|
4100
4100
|
const { asChild: a, ...i } = o, u = a ? n : t;
|
|
4101
4101
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(u, { ...i, ref: s });
|
|
@@ -4137,15 +4137,15 @@ var fi = "DismissableLayer", ln = "dismissableLayer.update", mi = "dismissableLa
|
|
|
4137
4137
|
onInteractOutside: a,
|
|
4138
4138
|
onDismiss: i,
|
|
4139
4139
|
...u
|
|
4140
|
-
} = e, c = m.useContext(qr), [d, l] = m.useState(null), b = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = m.useState({}), h = ze(t, (
|
|
4141
|
-
const S =
|
|
4142
|
-
!
|
|
4143
|
-
}, b), L = yi((
|
|
4144
|
-
const S =
|
|
4145
|
-
[...c.branches].some((oe) => oe.contains(S)) || (s == null || s(
|
|
4140
|
+
} = e, c = m.useContext(qr), [d, l] = m.useState(null), b = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = m.useState({}), h = ze(t, (T) => l(T)), p = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g), O = d ? p.indexOf(d) : -1, k = c.layersWithOutsidePointerEventsDisabled.size > 0, A = O >= y, P = bi((T) => {
|
|
4141
|
+
const S = T.target, H = [...c.branches].some((oe) => oe.contains(S));
|
|
4142
|
+
!A || H || (o == null || o(T), a == null || a(T), T.defaultPrevented || i == null || i());
|
|
4143
|
+
}, b), L = yi((T) => {
|
|
4144
|
+
const S = T.target;
|
|
4145
|
+
[...c.branches].some((oe) => oe.contains(S)) || (s == null || s(T), a == null || a(T), T.defaultPrevented || i == null || i());
|
|
4146
4146
|
}, b);
|
|
4147
|
-
return di((
|
|
4148
|
-
O === c.layers.size - 1 && (r == null || r(
|
|
4147
|
+
return di((T) => {
|
|
4148
|
+
O === c.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && i && (T.preventDefault(), i()));
|
|
4149
4149
|
}, b), m.useEffect(() => {
|
|
4150
4150
|
if (d)
|
|
4151
4151
|
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Gn = b.body.style.pointerEvents, b.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), Qn(), () => {
|
|
@@ -4154,15 +4154,15 @@ var fi = "DismissableLayer", ln = "dismissableLayer.update", mi = "dismissableLa
|
|
|
4154
4154
|
}, [d, b, n, c]), m.useEffect(() => () => {
|
|
4155
4155
|
d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Qn());
|
|
4156
4156
|
}, [d, c]), m.useEffect(() => {
|
|
4157
|
-
const
|
|
4158
|
-
return document.addEventListener(ln,
|
|
4157
|
+
const T = () => x({});
|
|
4158
|
+
return document.addEventListener(ln, T), () => document.removeEventListener(ln, T);
|
|
4159
4159
|
}, []), /* @__PURE__ */ v(
|
|
4160
|
-
|
|
4160
|
+
ke.div,
|
|
4161
4161
|
{
|
|
4162
4162
|
...u,
|
|
4163
4163
|
ref: h,
|
|
4164
4164
|
style: {
|
|
4165
|
-
pointerEvents:
|
|
4165
|
+
pointerEvents: k ? A ? "auto" : "none" : void 0,
|
|
4166
4166
|
...e.style
|
|
4167
4167
|
},
|
|
4168
4168
|
onFocusCapture: De(e.onFocusCapture, L.onFocusCapture),
|
|
@@ -4184,7 +4184,7 @@ var hi = "DismissableLayerBranch", gi = m.forwardRef((e, t) => {
|
|
|
4184
4184
|
return n.branches.add(s), () => {
|
|
4185
4185
|
n.branches.delete(s);
|
|
4186
4186
|
};
|
|
4187
|
-
}, [n.branches]), /* @__PURE__ */ v(
|
|
4187
|
+
}, [n.branches]), /* @__PURE__ */ v(ke.div, { ...e, ref: o });
|
|
4188
4188
|
});
|
|
4189
4189
|
gi.displayName = hi;
|
|
4190
4190
|
function bi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -4257,17 +4257,17 @@ var Vt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", Xn
|
|
|
4257
4257
|
}).current;
|
|
4258
4258
|
m.useEffect(() => {
|
|
4259
4259
|
if (r) {
|
|
4260
|
-
let p = function(
|
|
4260
|
+
let p = function(k) {
|
|
4261
4261
|
if (x.paused || !i) return;
|
|
4262
|
-
const
|
|
4263
|
-
i.contains(
|
|
4264
|
-
}, g = function(
|
|
4262
|
+
const A = k.target;
|
|
4263
|
+
i.contains(A) ? l.current = A : Oe(l.current, { select: !0 });
|
|
4264
|
+
}, g = function(k) {
|
|
4265
4265
|
if (x.paused || !i) return;
|
|
4266
|
-
const
|
|
4267
|
-
|
|
4268
|
-
}, y = function(
|
|
4266
|
+
const A = k.relatedTarget;
|
|
4267
|
+
A !== null && (i.contains(A) || Oe(l.current, { select: !0 }));
|
|
4268
|
+
}, y = function(k) {
|
|
4269
4269
|
if (document.activeElement === document.body)
|
|
4270
|
-
for (const P of
|
|
4270
|
+
for (const P of k)
|
|
4271
4271
|
P.removedNodes.length > 0 && Oe(i);
|
|
4272
4272
|
};
|
|
4273
4273
|
document.addEventListener("focusin", p), document.addEventListener("focusout", g);
|
|
@@ -4282,7 +4282,7 @@ var Vt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", Xn
|
|
|
4282
4282
|
const p = document.activeElement;
|
|
4283
4283
|
if (!i.contains(p)) {
|
|
4284
4284
|
const y = new CustomEvent(Vt, Xn);
|
|
4285
|
-
i.addEventListener(Vt, c), i.dispatchEvent(y), y.defaultPrevented || (wi(
|
|
4285
|
+
i.addEventListener(Vt, c), i.dispatchEvent(y), y.defaultPrevented || (wi(Ci(Qr(i)), { select: !0 }), document.activeElement === p && Oe(i));
|
|
4286
4286
|
}
|
|
4287
4287
|
return () => {
|
|
4288
4288
|
i.removeEventListener(Vt, c), setTimeout(() => {
|
|
@@ -4297,13 +4297,13 @@ var Vt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", Xn
|
|
|
4297
4297
|
if (!n && !r || x.paused) return;
|
|
4298
4298
|
const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
|
|
4299
4299
|
if (g && y) {
|
|
4300
|
-
const O = p.currentTarget, [
|
|
4301
|
-
|
|
4300
|
+
const O = p.currentTarget, [k, A] = xi(O);
|
|
4301
|
+
k && A ? !p.shiftKey && y === A ? (p.preventDefault(), n && Oe(k, { select: !0 })) : p.shiftKey && y === k && (p.preventDefault(), n && Oe(A, { select: !0 })) : y === O && p.preventDefault();
|
|
4302
4302
|
}
|
|
4303
4303
|
},
|
|
4304
4304
|
[n, r, x.paused]
|
|
4305
4305
|
);
|
|
4306
|
-
return /* @__PURE__ */ v(
|
|
4306
|
+
return /* @__PURE__ */ v(ke.div, { tabIndex: -1, ...a, ref: b, onKeyDown: h });
|
|
4307
4307
|
});
|
|
4308
4308
|
Gr.displayName = vi;
|
|
4309
4309
|
function wi(e, { select: t = !1 } = {}) {
|
|
@@ -4365,17 +4365,17 @@ function er(e, t) {
|
|
|
4365
4365
|
const n = [...e], r = n.indexOf(t);
|
|
4366
4366
|
return r !== -1 && n.splice(r, 1), n;
|
|
4367
4367
|
}
|
|
4368
|
-
function
|
|
4368
|
+
function Ci(e) {
|
|
4369
4369
|
return e.filter((t) => t.tagName !== "A");
|
|
4370
4370
|
}
|
|
4371
|
-
var
|
|
4371
|
+
var ki = "Portal", Xr = m.forwardRef((e, t) => {
|
|
4372
4372
|
var i;
|
|
4373
4373
|
const { container: n, ...r } = e, [o, s] = m.useState(!1);
|
|
4374
4374
|
st(() => s(!0), []);
|
|
4375
4375
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
4376
|
-
return a ? Ar.createPortal(/* @__PURE__ */ v(
|
|
4376
|
+
return a ? Ar.createPortal(/* @__PURE__ */ v(ke.div, { ...r, ref: t }), a) : null;
|
|
4377
4377
|
});
|
|
4378
|
-
Xr.displayName =
|
|
4378
|
+
Xr.displayName = ki;
|
|
4379
4379
|
function Ni(e, t) {
|
|
4380
4380
|
return m.useReducer((n, r) => t[n][r] ?? n, e);
|
|
4381
4381
|
}
|
|
@@ -4603,12 +4603,12 @@ var eo = ji(), Gt = function() {
|
|
|
4603
4603
|
onScrollCapture: Gt,
|
|
4604
4604
|
onWheelCapture: Gt,
|
|
4605
4605
|
onTouchMoveCapture: Gt
|
|
4606
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, c = e.removeScrollBar, d = e.enabled, l = e.shards, b = e.sideCar, x = e.noRelative, h = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, O = y === void 0 ? "div" : y,
|
|
4606
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, c = e.removeScrollBar, d = e.enabled, l = e.shards, b = e.sideCar, x = e.noRelative, h = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, O = y === void 0 ? "div" : y, k = e.gapMode, A = Zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), P = b, L = Bi([n, t]), T = we(we({}, A), o);
|
|
4607
4607
|
return m.createElement(
|
|
4608
4608
|
m.Fragment,
|
|
4609
4609
|
null,
|
|
4610
|
-
d && m.createElement(P, { sideCar: eo, removeScrollBar: c, shards: l, noRelative: x, noIsolation: h, inert: p, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode:
|
|
4611
|
-
a ? m.cloneElement(m.Children.only(i), we(we({},
|
|
4610
|
+
d && m.createElement(P, { sideCar: eo, removeScrollBar: c, shards: l, noRelative: x, noIsolation: h, inert: p, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: k }),
|
|
4611
|
+
a ? m.cloneElement(m.Children.only(i), we(we({}, T), { ref: L })) : m.createElement(O, we({}, T, { className: u, ref: L }), i)
|
|
4612
4612
|
);
|
|
4613
4613
|
});
|
|
4614
4614
|
Pt.defaultProps = {
|
|
@@ -4854,18 +4854,18 @@ function ul(e) {
|
|
|
4854
4854
|
var i = m.useCallback(function(p, g) {
|
|
4855
4855
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4856
4856
|
return !a.current.allowPinchZoom;
|
|
4857
|
-
var y = vt(p), O = n.current,
|
|
4858
|
-
if ("touches" in p &&
|
|
4857
|
+
var y = vt(p), O = n.current, k = "deltaX" in p ? p.deltaX : O[0] - y[0], A = "deltaY" in p ? p.deltaY : O[1] - y[1], P, L = p.target, T = Math.abs(k) > Math.abs(A) ? "h" : "v";
|
|
4858
|
+
if ("touches" in p && T === "h" && L.type === "range")
|
|
4859
4859
|
return !1;
|
|
4860
|
-
var S = or(
|
|
4860
|
+
var S = or(T, L);
|
|
4861
4861
|
if (!S)
|
|
4862
4862
|
return !0;
|
|
4863
|
-
if (S ? P =
|
|
4863
|
+
if (S ? P = T : (P = T === "v" ? "h" : "v", S = or(T, L)), !S)
|
|
4864
4864
|
return !1;
|
|
4865
|
-
if (!r.current && "changedTouches" in p && (
|
|
4865
|
+
if (!r.current && "changedTouches" in p && (k || A) && (r.current = P), !P)
|
|
4866
4866
|
return !0;
|
|
4867
4867
|
var H = r.current || P;
|
|
4868
|
-
return al(H, g, p, H === "h" ?
|
|
4868
|
+
return al(H, g, p, H === "h" ? k : A);
|
|
4869
4869
|
}, []), u = m.useCallback(function(p) {
|
|
4870
4870
|
var g = p;
|
|
4871
4871
|
if (!(!qe.length || qe[qe.length - 1] !== s)) {
|
|
@@ -4877,17 +4877,17 @@ function ul(e) {
|
|
|
4877
4877
|
return;
|
|
4878
4878
|
}
|
|
4879
4879
|
if (!O) {
|
|
4880
|
-
var
|
|
4880
|
+
var k = (a.current.shards || []).map(ar).filter(Boolean).filter(function(P) {
|
|
4881
4881
|
return P.contains(g.target);
|
|
4882
|
-
}),
|
|
4883
|
-
|
|
4882
|
+
}), A = k.length > 0 ? i(g, k[0]) : !a.current.noIsolation;
|
|
4883
|
+
A && g.cancelable && g.preventDefault();
|
|
4884
4884
|
}
|
|
4885
4885
|
}
|
|
4886
4886
|
}, []), c = m.useCallback(function(p, g, y, O) {
|
|
4887
|
-
var
|
|
4888
|
-
t.current.push(
|
|
4889
|
-
t.current = t.current.filter(function(
|
|
4890
|
-
return
|
|
4887
|
+
var k = { name: p, delta: g, target: y, should: O, shadowParent: dl(y) };
|
|
4888
|
+
t.current.push(k), setTimeout(function() {
|
|
4889
|
+
t.current = t.current.filter(function(A) {
|
|
4890
|
+
return A !== k;
|
|
4891
4891
|
});
|
|
4892
4892
|
}, 1);
|
|
4893
4893
|
}, []), d = m.useCallback(function(p) {
|
|
@@ -5010,7 +5010,7 @@ var co = "DialogTrigger", yl = m.forwardRef(
|
|
|
5010
5010
|
(e, t) => {
|
|
5011
5011
|
const { __scopeDialog: n, ...r } = e, o = ge(co, n), s = ze(t, o.triggerRef);
|
|
5012
5012
|
return /* @__PURE__ */ v(
|
|
5013
|
-
|
|
5013
|
+
ke.button,
|
|
5014
5014
|
{
|
|
5015
5015
|
type: "button",
|
|
5016
5016
|
"aria-haspopup": "dialog",
|
|
@@ -5046,7 +5046,7 @@ var wl = /* @__PURE__ */ gn("DialogOverlay.RemoveScroll"), xl = m.forwardRef(
|
|
|
5046
5046
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
5047
5047
|
// ie. when `Overlay` and `Content` are siblings
|
|
5048
5048
|
/* @__PURE__ */ v(so, { as: wl, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v(
|
|
5049
|
-
|
|
5049
|
+
ke.div,
|
|
5050
5050
|
{
|
|
5051
5051
|
"data-state": En(o.open),
|
|
5052
5052
|
...r,
|
|
@@ -5143,21 +5143,21 @@ var El = m.forwardRef(
|
|
|
5143
5143
|
),
|
|
5144
5144
|
/* @__PURE__ */ $(Le, { children: [
|
|
5145
5145
|
/* @__PURE__ */ v(Rl, { titleId: i.titleId }),
|
|
5146
|
-
/* @__PURE__ */ v(
|
|
5146
|
+
/* @__PURE__ */ v(kl, { contentRef: u, descriptionId: i.descriptionId })
|
|
5147
5147
|
] })
|
|
5148
5148
|
] });
|
|
5149
5149
|
}
|
|
5150
5150
|
), xn = "DialogTitle", go = m.forwardRef(
|
|
5151
5151
|
(e, t) => {
|
|
5152
5152
|
const { __scopeDialog: n, ...r } = e, o = ge(xn, n);
|
|
5153
|
-
return /* @__PURE__ */ v(
|
|
5153
|
+
return /* @__PURE__ */ v(ke.h2, { id: o.titleId, ...r, ref: t });
|
|
5154
5154
|
}
|
|
5155
5155
|
);
|
|
5156
5156
|
go.displayName = xn;
|
|
5157
5157
|
var bo = "DialogDescription", yo = m.forwardRef(
|
|
5158
5158
|
(e, t) => {
|
|
5159
5159
|
const { __scopeDialog: n, ...r } = e, o = ge(bo, n);
|
|
5160
|
-
return /* @__PURE__ */ v(
|
|
5160
|
+
return /* @__PURE__ */ v(ke.p, { id: o.descriptionId, ...r, ref: t });
|
|
5161
5161
|
}
|
|
5162
5162
|
);
|
|
5163
5163
|
yo.displayName = bo;
|
|
@@ -5165,7 +5165,7 @@ var vo = "DialogClose", wo = m.forwardRef(
|
|
|
5165
5165
|
(e, t) => {
|
|
5166
5166
|
const { __scopeDialog: n, ...r } = e, o = ge(vo, n);
|
|
5167
5167
|
return /* @__PURE__ */ v(
|
|
5168
|
-
|
|
5168
|
+
ke.button,
|
|
5169
5169
|
{
|
|
5170
5170
|
type: "button",
|
|
5171
5171
|
...r,
|
|
@@ -5192,14 +5192,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5192
5192
|
return m.useEffect(() => {
|
|
5193
5193
|
e && (document.getElementById(e) || console.error(n));
|
|
5194
5194
|
}, [n, e]), null;
|
|
5195
|
-
},
|
|
5196
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Eo(
|
|
5195
|
+
}, Cl = "DialogDescriptionWarning", kl = ({ contentRef: e, descriptionId: t }) => {
|
|
5196
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Eo(Cl).contentName}}.`;
|
|
5197
5197
|
return m.useEffect(() => {
|
|
5198
5198
|
var s;
|
|
5199
5199
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
5200
5200
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
5201
5201
|
}, [r, e, t]), null;
|
|
5202
|
-
}, Nl = lo, Al = fo, So = mo, Ro = po,
|
|
5202
|
+
}, Nl = lo, Al = fo, So = mo, Ro = po, Co = go, ko = yo, No = wo;
|
|
5203
5203
|
const Tl = Nl, Ol = Al, Dl = No, Ao = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
5204
5204
|
So,
|
|
5205
5205
|
{
|
|
@@ -5263,7 +5263,7 @@ const Do = ({
|
|
|
5263
5263
|
);
|
|
5264
5264
|
Do.displayName = "DialogFooter";
|
|
5265
5265
|
const Po = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
5266
|
-
|
|
5266
|
+
Co,
|
|
5267
5267
|
{
|
|
5268
5268
|
ref: n,
|
|
5269
5269
|
className: xe(
|
|
@@ -5273,16 +5273,16 @@ const Po = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
|
5273
5273
|
...t
|
|
5274
5274
|
}
|
|
5275
5275
|
));
|
|
5276
|
-
Po.displayName =
|
|
5276
|
+
Po.displayName = Co.displayName;
|
|
5277
5277
|
const Pl = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
5278
|
-
|
|
5278
|
+
ko,
|
|
5279
5279
|
{
|
|
5280
5280
|
ref: n,
|
|
5281
5281
|
className: xe("text-sm text-muted-foreground", e),
|
|
5282
5282
|
...t
|
|
5283
5283
|
}
|
|
5284
5284
|
));
|
|
5285
|
-
Pl.displayName =
|
|
5285
|
+
Pl.displayName = ko.displayName;
|
|
5286
5286
|
const Su = ({ children: e, title: t, action: n, isDialogOpen: r, onClose: o, buttonText: s }) => /* @__PURE__ */ v(Le, { children: /* @__PURE__ */ v(
|
|
5287
5287
|
Tl,
|
|
5288
5288
|
{
|
|
@@ -5391,7 +5391,7 @@ const Su = ({ children: e, title: t, action: n, isDialogOpen: r, onClose: o, but
|
|
|
5391
5391
|
}
|
|
5392
5392
|
)
|
|
5393
5393
|
] }) });
|
|
5394
|
-
},
|
|
5394
|
+
}, Cu = (e, t) => {
|
|
5395
5395
|
vn.success(e, { description: t });
|
|
5396
5396
|
}, lr = (e, t) => {
|
|
5397
5397
|
vn.error(e, { description: t });
|
|
@@ -5415,7 +5415,7 @@ function Fl(e) {
|
|
|
5415
5415
|
let t;
|
|
5416
5416
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Io(e.buffer), t;
|
|
5417
5417
|
}
|
|
5418
|
-
const Il = Bt("string"), ae = Bt("function"), Bo = Bt("number"), lt = (e) => e !== null && typeof e == "object", Bl = (e) => e === !0 || e === !1,
|
|
5418
|
+
const Il = Bt("string"), ae = Bt("function"), Bo = Bt("number"), lt = (e) => e !== null && typeof e == "object", Bl = (e) => e === !0 || e === !1, Ct = (e) => {
|
|
5419
5419
|
if (It(e) !== "object")
|
|
5420
5420
|
return !1;
|
|
5421
5421
|
const t = Sn(e);
|
|
@@ -5464,7 +5464,7 @@ const Fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
5464
5464
|
function un() {
|
|
5465
5465
|
const { caseless: e, skipUndefined: t } = Uo(this) && this || {}, n = {}, r = (o, s) => {
|
|
5466
5466
|
const a = e && Lo(n, s) || s;
|
|
5467
|
-
|
|
5467
|
+
Ct(n[a]) && Ct(o) ? n[a] = un(n[a], o) : Ct(o) ? n[a] = un({}, o) : Ze(o) ? n[a] = o.slice() : (!t || !Ge(o)) && (n[a] = o);
|
|
5468
5468
|
};
|
|
5469
5469
|
for (let o = 0, s = arguments.length; o < s; o++)
|
|
5470
5470
|
arguments[o] && ct(arguments[o], r);
|
|
@@ -5586,7 +5586,7 @@ const mc = (e) => {
|
|
|
5586
5586
|
isNumber: Bo,
|
|
5587
5587
|
isBoolean: Bl,
|
|
5588
5588
|
isObject: lt,
|
|
5589
|
-
isPlainObject:
|
|
5589
|
+
isPlainObject: Ct,
|
|
5590
5590
|
isEmptyObject: Ll,
|
|
5591
5591
|
isReadableStream: Vl,
|
|
5592
5592
|
isRequest: ql,
|
|
@@ -5735,11 +5735,11 @@ function Lt(e, t, n) {
|
|
|
5735
5735
|
if (f.endsWith(p, "{}"))
|
|
5736
5736
|
p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
|
|
5737
5737
|
else if (f.isArray(h) && vc(h) || (f.isFileList(h) || f.endsWith(p, "[]")) && (y = f.toArray(h)))
|
|
5738
|
-
return p = Wo(p), y.forEach(function(
|
|
5739
|
-
!(f.isUndefined(
|
|
5738
|
+
return p = Wo(p), y.forEach(function(k, A) {
|
|
5739
|
+
!(f.isUndefined(k) || k === null) && t.append(
|
|
5740
5740
|
// eslint-disable-next-line no-nested-ternary
|
|
5741
|
-
a === !0 ? dr([p],
|
|
5742
|
-
c(
|
|
5741
|
+
a === !0 ? dr([p], A, s) : a === null ? p : p + "[]",
|
|
5742
|
+
c(k)
|
|
5743
5743
|
);
|
|
5744
5744
|
}), !1;
|
|
5745
5745
|
}
|
|
@@ -5874,7 +5874,7 @@ const qo = {
|
|
|
5874
5874
|
silentJSONParsing: !0,
|
|
5875
5875
|
forcedJSONParsing: !0,
|
|
5876
5876
|
clarifyTimeoutError: !1
|
|
5877
|
-
}, Ec = typeof URLSearchParams < "u" ? URLSearchParams : Rn, Sc = typeof FormData < "u" ? FormData : null, Rc = typeof Blob < "u" ? Blob : null,
|
|
5877
|
+
}, Ec = typeof URLSearchParams < "u" ? URLSearchParams : Rn, Sc = typeof FormData < "u" ? FormData : null, Rc = typeof Blob < "u" ? Blob : null, Cc = {
|
|
5878
5878
|
isBrowser: !0,
|
|
5879
5879
|
classes: {
|
|
5880
5880
|
URLSearchParams: Ec,
|
|
@@ -5882,17 +5882,17 @@ const qo = {
|
|
|
5882
5882
|
Blob: Rc
|
|
5883
5883
|
},
|
|
5884
5884
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
5885
|
-
},
|
|
5886
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ac =
|
|
5885
|
+
}, Cn = typeof window < "u" && typeof document < "u", fn = typeof navigator == "object" && navigator || void 0, kc = Cn && (!fn || ["ReactNative", "NativeScript", "NS"].indexOf(fn.product) < 0), Nc = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
5886
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ac = Cn && window.location.href || "http://localhost", Tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5887
5887
|
__proto__: null,
|
|
5888
|
-
hasBrowserEnv:
|
|
5889
|
-
hasStandardBrowserEnv:
|
|
5888
|
+
hasBrowserEnv: Cn,
|
|
5889
|
+
hasStandardBrowserEnv: kc,
|
|
5890
5890
|
hasStandardBrowserWebWorkerEnv: Nc,
|
|
5891
5891
|
navigator: fn,
|
|
5892
5892
|
origin: Ac
|
|
5893
5893
|
}, Symbol.toStringTag, { value: "Module" })), Z = {
|
|
5894
5894
|
...Tc,
|
|
5895
|
-
...
|
|
5895
|
+
...Cc
|
|
5896
5896
|
};
|
|
5897
5897
|
function Oc(e, t) {
|
|
5898
5898
|
return Lt(e, new Z.classes.URLSearchParams(), {
|
|
@@ -6037,8 +6037,8 @@ const Fc = f.toObjectSet([
|
|
|
6037
6037
|
function nt(e) {
|
|
6038
6038
|
return e && String(e).trim().toLowerCase();
|
|
6039
6039
|
}
|
|
6040
|
-
function
|
|
6041
|
-
return e === !1 || e == null ? e : f.isArray(e) ? e.map(
|
|
6040
|
+
function kt(e) {
|
|
6041
|
+
return e === !1 || e == null ? e : f.isArray(e) ? e.map(kt) : String(e);
|
|
6042
6042
|
}
|
|
6043
6043
|
function Bc(e) {
|
|
6044
6044
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -6083,7 +6083,7 @@ let ie = class {
|
|
|
6083
6083
|
if (!d)
|
|
6084
6084
|
throw new Error("header name must be a non-empty string");
|
|
6085
6085
|
const l = f.findKey(o, d);
|
|
6086
|
-
(!l || o[l] === void 0 || c === !0 || c === void 0 && o[l] !== !1) && (o[l || u] =
|
|
6086
|
+
(!l || o[l] === void 0 || c === !0 || c === void 0 && o[l] !== !1) && (o[l || u] = kt(i));
|
|
6087
6087
|
}
|
|
6088
6088
|
const a = (i, u) => f.forEach(i, (c, d) => s(c, d, u));
|
|
6089
6089
|
if (f.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -6151,11 +6151,11 @@ let ie = class {
|
|
|
6151
6151
|
return f.forEach(this, (o, s) => {
|
|
6152
6152
|
const a = f.findKey(r, s);
|
|
6153
6153
|
if (a) {
|
|
6154
|
-
n[a] =
|
|
6154
|
+
n[a] = kt(o), delete n[s];
|
|
6155
6155
|
return;
|
|
6156
6156
|
}
|
|
6157
6157
|
const i = t ? Uc(s) : String(s).trim();
|
|
6158
|
-
i !== s && delete n[s], n[i] =
|
|
6158
|
+
i !== s && delete n[s], n[i] = kt(o), r[i] = !0;
|
|
6159
6159
|
}), this;
|
|
6160
6160
|
}
|
|
6161
6161
|
concat(...t) {
|
|
@@ -6433,42 +6433,42 @@ const Xo = (e) => {
|
|
|
6433
6433
|
function y() {
|
|
6434
6434
|
if (!g)
|
|
6435
6435
|
return;
|
|
6436
|
-
const
|
|
6436
|
+
const k = ie.from(
|
|
6437
6437
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
6438
6438
|
), P = {
|
|
6439
6439
|
data: !i || i === "text" || i === "json" ? g.responseText : g.response,
|
|
6440
6440
|
status: g.status,
|
|
6441
6441
|
statusText: g.statusText,
|
|
6442
|
-
headers:
|
|
6442
|
+
headers: k,
|
|
6443
6443
|
config: e,
|
|
6444
6444
|
request: g
|
|
6445
6445
|
};
|
|
6446
|
-
Go(function(
|
|
6447
|
-
n(
|
|
6448
|
-
}, function(
|
|
6449
|
-
r(
|
|
6446
|
+
Go(function(T) {
|
|
6447
|
+
n(T), p();
|
|
6448
|
+
}, function(T) {
|
|
6449
|
+
r(T), p();
|
|
6450
6450
|
}, P), g = null;
|
|
6451
6451
|
}
|
|
6452
6452
|
"onloadend" in g ? g.onloadend = y : g.onreadystatechange = function() {
|
|
6453
6453
|
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(y);
|
|
6454
6454
|
}, g.onabort = function() {
|
|
6455
6455
|
g && (r(new M("Request aborted", M.ECONNABORTED, e, g)), g = null);
|
|
6456
|
-
}, g.onerror = function(
|
|
6457
|
-
const P =
|
|
6458
|
-
L.event =
|
|
6456
|
+
}, g.onerror = function(A) {
|
|
6457
|
+
const P = A && A.message ? A.message : "Network Error", L = new M(P, M.ERR_NETWORK, e, g);
|
|
6458
|
+
L.event = A || null, r(L), g = null;
|
|
6459
6459
|
}, g.ontimeout = function() {
|
|
6460
|
-
let
|
|
6460
|
+
let A = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
6461
6461
|
const P = o.transitional || qo;
|
|
6462
|
-
o.timeoutErrorMessage && (
|
|
6463
|
-
|
|
6462
|
+
o.timeoutErrorMessage && (A = o.timeoutErrorMessage), r(new M(
|
|
6463
|
+
A,
|
|
6464
6464
|
P.clarifyTimeoutError ? M.ETIMEDOUT : M.ECONNABORTED,
|
|
6465
6465
|
e,
|
|
6466
6466
|
g
|
|
6467
6467
|
)), g = null;
|
|
6468
|
-
}, s === void 0 && a.setContentType(null), "setRequestHeader" in g && f.forEach(a.toJSON(), function(
|
|
6469
|
-
g.setRequestHeader(P,
|
|
6470
|
-
}), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), i && i !== "json" && (g.responseType = o.responseType), c && ([b, h] = Tt(c, !0), g.addEventListener("progress", b)), u && g.upload && ([l, x] = Tt(u), g.upload.addEventListener("progress", l), g.upload.addEventListener("loadend", x)), (o.cancelToken || o.signal) && (d = (
|
|
6471
|
-
g && (r(!
|
|
6468
|
+
}, s === void 0 && a.setContentType(null), "setRequestHeader" in g && f.forEach(a.toJSON(), function(A, P) {
|
|
6469
|
+
g.setRequestHeader(P, A);
|
|
6470
|
+
}), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), i && i !== "json" && (g.responseType = o.responseType), c && ([b, h] = Tt(c, !0), g.addEventListener("progress", b)), u && g.upload && ([l, x] = Tt(u), g.upload.addEventListener("progress", l), g.upload.addEventListener("loadend", x)), (o.cancelToken || o.signal) && (d = (k) => {
|
|
6471
|
+
g && (r(!k || k.type ? new $e(null, e, g) : k), g.abort(), g = null);
|
|
6472
6472
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
6473
6473
|
const O = zc(o.url);
|
|
6474
6474
|
if (O && Z.protocols.indexOf(O) === -1) {
|
|
@@ -6621,17 +6621,17 @@ const Xo = (e) => {
|
|
|
6621
6621
|
method: g,
|
|
6622
6622
|
data: y,
|
|
6623
6623
|
signal: O,
|
|
6624
|
-
cancelToken:
|
|
6625
|
-
timeout:
|
|
6624
|
+
cancelToken: k,
|
|
6625
|
+
timeout: A,
|
|
6626
6626
|
onDownloadProgress: P,
|
|
6627
6627
|
onUploadProgress: L,
|
|
6628
|
-
responseType:
|
|
6628
|
+
responseType: T,
|
|
6629
6629
|
headers: S,
|
|
6630
6630
|
withCredentials: H = "same-origin",
|
|
6631
6631
|
fetchOptions: oe
|
|
6632
6632
|
} = Xo(h), Ee = t || fetch;
|
|
6633
|
-
|
|
6634
|
-
let ee = Gc([O,
|
|
6633
|
+
T = T ? (T + "").toLowerCase() : "text";
|
|
6634
|
+
let ee = Gc([O, k && k.toAbortSignal()], A), K = null;
|
|
6635
6635
|
const G = ee && ee.unsubscribe && (() => {
|
|
6636
6636
|
ee.unsubscribe();
|
|
6637
6637
|
});
|
|
@@ -6663,7 +6663,7 @@ const Xo = (e) => {
|
|
|
6663
6663
|
};
|
|
6664
6664
|
K = s && new n(p, j);
|
|
6665
6665
|
let E = await (s ? Ee(K, oe) : Ee(p, j));
|
|
6666
|
-
const le = d && (
|
|
6666
|
+
const le = d && (T === "stream" || T === "response");
|
|
6667
6667
|
if (d && (P || le && G)) {
|
|
6668
6668
|
const V = {};
|
|
6669
6669
|
["status", "statusText", "headers"].forEach((U) => {
|
|
@@ -6680,8 +6680,8 @@ const Xo = (e) => {
|
|
|
6680
6680
|
V
|
|
6681
6681
|
);
|
|
6682
6682
|
}
|
|
6683
|
-
|
|
6684
|
-
let Q = await l[f.findKey(l,
|
|
6683
|
+
T = T || "text";
|
|
6684
|
+
let Q = await l[f.findKey(l, T) || "text"](E, h);
|
|
6685
6685
|
return !le && G && G(), await new Promise((V, ne) => {
|
|
6686
6686
|
Go(V, ne, {
|
|
6687
6687
|
data: Q,
|
|
@@ -6789,7 +6789,7 @@ const es = "1.12.2", Ut = {};
|
|
|
6789
6789
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
6790
6790
|
};
|
|
6791
6791
|
});
|
|
6792
|
-
const
|
|
6792
|
+
const Cr = {};
|
|
6793
6793
|
Ut.transitional = function(t, n, r) {
|
|
6794
6794
|
function o(s, a) {
|
|
6795
6795
|
return "[Axios v" + es + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
|
|
@@ -6800,7 +6800,7 @@ Ut.transitional = function(t, n, r) {
|
|
|
6800
6800
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
6801
6801
|
M.ERR_DEPRECATED
|
|
6802
6802
|
);
|
|
6803
|
-
return n && !
|
|
6803
|
+
return n && !Cr[a] && (Cr[a] = !0, console.warn(
|
|
6804
6804
|
o(
|
|
6805
6805
|
a,
|
|
6806
6806
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -7166,28 +7166,27 @@ function Ku(e, t, n) {
|
|
|
7166
7166
|
), Ie.interceptors.response.use(
|
|
7167
7167
|
(r) => r,
|
|
7168
7168
|
(r) => {
|
|
7169
|
-
var s, a, i, u, c, d, l, b, x, h;
|
|
7169
|
+
var s, a, i, u, c, d, l, b, x, h, p, g, y, O;
|
|
7170
7170
|
const o = r.response.status;
|
|
7171
|
-
if (o == 401
|
|
7171
|
+
if (o == 401 && ((a = (s = r.response) == null ? void 0 : s.data) == null ? void 0 : a.errorCode) != "SEC-0005" && ((u = (i = r.response) == null ? void 0 : i.data) != null && u.message.includes("expired") || (d = (c = r.response) == null ? void 0 : c.data) != null && d.message.includes("revoked")))
|
|
7172
7172
|
if (window.sessionStorage.getItem("hasReloadedFor401"))
|
|
7173
|
-
window.sessionStorage.removeItem("hasReloadedFor401"), iu.post("/auth/logout", {}).then(() => {
|
|
7173
|
+
o == 401 && ((b = (l = r.response) == null ? void 0 : l.data) == null ? void 0 : b.errorCode) != "SEC-0005" && (window.sessionStorage.removeItem("hasReloadedFor401"), iu.post("/auth/logout", {}).then(() => {
|
|
7174
7174
|
lr("Session Ended", "Your session has ended. Please log in again to continue."), setTimeout(() => {
|
|
7175
7175
|
lu(n);
|
|
7176
7176
|
}, 1500);
|
|
7177
|
-
});
|
|
7178
|
-
else
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
});
|
|
7177
|
+
}));
|
|
7178
|
+
else return window.sessionStorage.setItem("hasReloadedFor401", "true"), typeof cr == "function" && cr(
|
|
7179
|
+
"Session Expired",
|
|
7180
|
+
"Your session has expired. We are refreshing your session, please wait..."
|
|
7181
|
+
), setTimeout(() => {
|
|
7182
|
+
window.location.reload();
|
|
7183
|
+
}, 1500), new Promise(() => {
|
|
7184
|
+
});
|
|
7186
7185
|
else if (o > 299) {
|
|
7187
|
-
const
|
|
7186
|
+
const k = ((x = r.config) == null ? void 0 : x.url) || "", A = k.substring(k.lastIndexOf("/"));
|
|
7188
7187
|
lr(
|
|
7189
|
-
`Error ${(
|
|
7190
|
-
`${((
|
|
7188
|
+
`Error ${(h = r.response) == null ? void 0 : h.status} for ${A}`,
|
|
7189
|
+
`${((g = (p = r.response) == null ? void 0 : p.data) == null ? void 0 : g.message) || r.message || "An unexpected error occurred"} [${((O = (y = r.response) == null ? void 0 : y.data) == null ? void 0 : O.errorCode) || "N/A"}]`
|
|
7191
7190
|
);
|
|
7192
7191
|
}
|
|
7193
7192
|
return Promise.reject(r);
|
|
@@ -7296,7 +7295,7 @@ export {
|
|
|
7296
7295
|
Vu as decodeToken,
|
|
7297
7296
|
lu as loginRedirect,
|
|
7298
7297
|
lr as notifyError,
|
|
7299
|
-
|
|
7298
|
+
Cu as notifySuccess,
|
|
7300
7299
|
cr as notifyWarning,
|
|
7301
7300
|
Ku as setupBaseURL
|
|
7302
7301
|
};
|