@lgsm/modules 1.6.13 → 1.6.14
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 +59 -59
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -386,7 +386,7 @@ 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 = () => [...A(), C, R], L = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], E = () => [C, R, u], z = () => [Ke, "full", "auto", ...E()], Q = () => [Te, "none", "subgrid", C, R],
|
|
389
|
+
], P = () => [...A(), C, R], L = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], E = () => [C, R, u], z = () => [Ke, "full", "auto", ...E()], Q = () => [Te, "none", "subgrid", C, R], ye = () => ["auto", {
|
|
390
390
|
span: ["full", Te, C, R]
|
|
391
391
|
}, Te, C, R], Y = () => [Te, "auto", C, R], W = () => ["auto", "min", "max", "fr", C, R], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ne = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...E()], j = () => [Ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], S = () => [e, C, R], le = () => [...A(), Hn, _n, {
|
|
392
392
|
position: [C, R]
|
|
@@ -409,7 +409,7 @@ const q = (e) => {
|
|
|
409
409
|
h,
|
|
410
410
|
C,
|
|
411
411
|
R
|
|
412
|
-
],
|
|
412
|
+
], fe = () => ["none", B, C, R], Se = () => ["none", B, C, R], Ne = () => [B, C, R], me = () => [Ke, "full", ...E()];
|
|
413
413
|
return {
|
|
414
414
|
cacheSize: 500,
|
|
415
415
|
theme: {
|
|
@@ -721,7 +721,7 @@ const q = (e) => {
|
|
|
721
721
|
* @see https://tailwindcss.com/docs/grid-column
|
|
722
722
|
*/
|
|
723
723
|
"col-start-end": [{
|
|
724
|
-
col:
|
|
724
|
+
col: ye()
|
|
725
725
|
}],
|
|
726
726
|
/**
|
|
727
727
|
* Grid Column Start
|
|
@@ -749,7 +749,7 @@ const q = (e) => {
|
|
|
749
749
|
* @see https://tailwindcss.com/docs/grid-row
|
|
750
750
|
*/
|
|
751
751
|
"row-start-end": [{
|
|
752
|
-
row:
|
|
752
|
+
row: ye()
|
|
753
753
|
}],
|
|
754
754
|
/**
|
|
755
755
|
* Grid Row Start
|
|
@@ -2356,28 +2356,28 @@ const q = (e) => {
|
|
|
2356
2356
|
* @see https://tailwindcss.com/docs/rotate
|
|
2357
2357
|
*/
|
|
2358
2358
|
rotate: [{
|
|
2359
|
-
rotate:
|
|
2359
|
+
rotate: fe()
|
|
2360
2360
|
}],
|
|
2361
2361
|
/**
|
|
2362
2362
|
* Rotate X
|
|
2363
2363
|
* @see https://tailwindcss.com/docs/rotate
|
|
2364
2364
|
*/
|
|
2365
2365
|
"rotate-x": [{
|
|
2366
|
-
"rotate-x":
|
|
2366
|
+
"rotate-x": fe()
|
|
2367
2367
|
}],
|
|
2368
2368
|
/**
|
|
2369
2369
|
* Rotate Y
|
|
2370
2370
|
* @see https://tailwindcss.com/docs/rotate
|
|
2371
2371
|
*/
|
|
2372
2372
|
"rotate-y": [{
|
|
2373
|
-
"rotate-y":
|
|
2373
|
+
"rotate-y": fe()
|
|
2374
2374
|
}],
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Rotate Z
|
|
2377
2377
|
* @see https://tailwindcss.com/docs/rotate
|
|
2378
2378
|
*/
|
|
2379
2379
|
"rotate-z": [{
|
|
2380
|
-
"rotate-z":
|
|
2380
|
+
"rotate-z": fe()
|
|
2381
2381
|
}],
|
|
2382
2382
|
/**
|
|
2383
2383
|
* Scale
|
|
@@ -2459,28 +2459,28 @@ const q = (e) => {
|
|
|
2459
2459
|
* @see https://tailwindcss.com/docs/translate
|
|
2460
2460
|
*/
|
|
2461
2461
|
translate: [{
|
|
2462
|
-
translate:
|
|
2462
|
+
translate: me()
|
|
2463
2463
|
}],
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Translate X
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/translate
|
|
2467
2467
|
*/
|
|
2468
2468
|
"translate-x": [{
|
|
2469
|
-
"translate-x":
|
|
2469
|
+
"translate-x": me()
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Translate Y
|
|
2473
2473
|
* @see https://tailwindcss.com/docs/translate
|
|
2474
2474
|
*/
|
|
2475
2475
|
"translate-y": [{
|
|
2476
|
-
"translate-y":
|
|
2476
|
+
"translate-y": me()
|
|
2477
2477
|
}],
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Translate Z
|
|
2480
2480
|
* @see https://tailwindcss.com/docs/translate
|
|
2481
2481
|
*/
|
|
2482
2482
|
"translate-z": [{
|
|
2483
|
-
"translate-z":
|
|
2483
|
+
"translate-z": me()
|
|
2484
2484
|
}],
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Translate None
|
|
@@ -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: k, removeToast: A, defaultRichColors: P, closeButton: L, style: N, cancelButtonStyle: E, actionButtonStyle: z, className: Q = "", descriptionClassName:
|
|
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: N, cancelButtonStyle: E, actionButtonStyle: z, className: Q = "", descriptionClassName: ye = "", duration: Y, position: W, gap: J, expandByDefault: ne, classNames: D, icons: j, closeButtonAriaLabel: S = "Close toast" } = e, [le, Z] = w.useState(null), [V, re] = w.useState(null), [T, I] = w.useState(!1), [U, oe] = w.useState(!1), [H, _] = w.useState(!1), [fe, Se] = w.useState(!1), [Ne, me] = w.useState(!1), [rs, jt] = w.useState(0), [os, Nn] = w.useState(0), et = w.useRef(l.duration || Y || Jn), An = 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(() => {
|
|
@@ -3628,7 +3628,7 @@ const Xa = (e) => {
|
|
|
3628
3628
|
"data-dismissible": _e,
|
|
3629
3629
|
"data-type": ce,
|
|
3630
3630
|
"data-invert": fs,
|
|
3631
|
-
"data-swipe-out":
|
|
3631
|
+
"data-swipe-out": fe,
|
|
3632
3632
|
"data-swipe-direction": V,
|
|
3633
3633
|
"data-expanded": !!(k || ne && T),
|
|
3634
3634
|
"data-testid": l.testId,
|
|
@@ -3652,46 +3652,46 @@ const Xa = (e) => {
|
|
|
3652
3652
|
},
|
|
3653
3653
|
onPointerUp: () => {
|
|
3654
3654
|
var F, G, $;
|
|
3655
|
-
if (
|
|
3655
|
+
if (fe || !_e) return;
|
|
3656
3656
|
We.current = null;
|
|
3657
3657
|
const ue = Number(((F = Re.current) == null ? void 0 : F.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), ft = Number(((G = Re.current) == null ? void 0 : G.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), X = (/* @__PURE__ */ new Date()).getTime() - (($ = An.current) == null ? void 0 : $.getTime()), de = le === "x" ? ue : ft, mt = Math.abs(de) / X;
|
|
3658
3658
|
if (Math.abs(de) >= Ja || mt > 0.11) {
|
|
3659
3659
|
jt(He.current), l.onDismiss == null || l.onDismiss.call(l, l), re(le === "x" ? ue > 0 ? "right" : "left" : ft > 0 ? "down" : "up"), Ae(), Se(!0);
|
|
3660
3660
|
return;
|
|
3661
3661
|
} else {
|
|
3662
|
-
var
|
|
3663
|
-
(
|
|
3662
|
+
var pe, he;
|
|
3663
|
+
(pe = Re.current) == null || pe.style.setProperty("--swipe-amount-x", "0px"), (he = Re.current) == null || he.style.setProperty("--swipe-amount-y", "0px");
|
|
3664
3664
|
}
|
|
3665
|
-
|
|
3665
|
+
me(!1), _(!1), Z(null);
|
|
3666
3666
|
},
|
|
3667
3667
|
onPointerMove: (F) => {
|
|
3668
3668
|
var G, $, ue;
|
|
3669
3669
|
if (!We.current || !_e || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
|
|
3670
3670
|
const X = F.clientY - We.current.y, de = F.clientX - We.current.x;
|
|
3671
3671
|
var mt;
|
|
3672
|
-
const
|
|
3672
|
+
const pe = (mt = e.swipeDirections) != null ? mt : Qa(W);
|
|
3673
3673
|
!le && (Math.abs(de) > 1 || Math.abs(X) > 1) && Z(Math.abs(de) > Math.abs(X) ? "x" : "y");
|
|
3674
|
-
let
|
|
3674
|
+
let he = {
|
|
3675
3675
|
x: 0,
|
|
3676
3676
|
y: 0
|
|
3677
3677
|
};
|
|
3678
3678
|
const In = (Pe) => 1 / (1.5 + Math.abs(Pe) / 20);
|
|
3679
3679
|
if (le === "y") {
|
|
3680
|
-
if (
|
|
3681
|
-
if (
|
|
3682
|
-
|
|
3680
|
+
if (pe.includes("top") || pe.includes("bottom"))
|
|
3681
|
+
if (pe.includes("top") && X < 0 || pe.includes("bottom") && X > 0)
|
|
3682
|
+
he.y = X;
|
|
3683
3683
|
else {
|
|
3684
3684
|
const Pe = X * In(X);
|
|
3685
|
-
|
|
3685
|
+
he.y = Math.abs(Pe) < Math.abs(X) ? Pe : X;
|
|
3686
3686
|
}
|
|
3687
|
-
} else if (le === "x" && (
|
|
3688
|
-
if (
|
|
3689
|
-
|
|
3687
|
+
} else if (le === "x" && (pe.includes("left") || pe.includes("right")))
|
|
3688
|
+
if (pe.includes("left") && de < 0 || pe.includes("right") && de > 0)
|
|
3689
|
+
he.x = de;
|
|
3690
3690
|
else {
|
|
3691
3691
|
const Pe = de * In(de);
|
|
3692
|
-
|
|
3692
|
+
he.x = Math.abs(Pe) < Math.abs(de) ? Pe : de;
|
|
3693
3693
|
}
|
|
3694
|
-
(Math.abs(
|
|
3694
|
+
(Math.abs(he.x) > 0 || Math.abs(he.y) > 0) && me(!0), ($ = Re.current) == null || $.style.setProperty("--swipe-amount-x", `${he.x}px`), (ue = Re.current) == null || ue.style.setProperty("--swipe-amount-y", `${he.y}px`);
|
|
3695
3695
|
}
|
|
3696
3696
|
}, cs && !l.jsx && ce !== "loading" ? /* @__PURE__ */ w.createElement("button", {
|
|
3697
3697
|
"aria-label": S,
|
|
@@ -3713,7 +3713,7 @@ const Xa = (e) => {
|
|
|
3713
3713
|
className: ve(D == null ? void 0 : D.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
|
|
3714
3714
|
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ w.createElement("div", {
|
|
3715
3715
|
"data-description": "",
|
|
3716
|
-
className: ve(
|
|
3716
|
+
className: ve(ye, ls, D == null ? void 0 : D.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
|
|
3717
3717
|
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ w.isValidElement(l.cancel) ? l.cancel : l.cancel && gt(l.cancel) ? /* @__PURE__ */ w.createElement("button", {
|
|
3718
3718
|
"data-button": !0,
|
|
3719
3719
|
"data-cancel": !0,
|
|
@@ -3776,7 +3776,7 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3776
3776
|
].concat(E.filter((T) => T.position).map((T) => T.position)))), [
|
|
3777
3777
|
E,
|
|
3778
3778
|
s
|
|
3779
|
-
]), [Q,
|
|
3779
|
+
]), [Q, ye] = w.useState([]), [Y, W] = w.useState(!1), [J, ne] = w.useState(!1), [D, j] = w.useState(b !== "system" ? b : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), S = w.useRef(null), le = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = w.useRef(null), V = w.useRef(!1), re = w.useCallback((T) => {
|
|
3780
3780
|
N((I) => {
|
|
3781
3781
|
var U;
|
|
3782
3782
|
return (U = I.find((oe) => oe.id === T.id)) != null && U.delete || se.dismiss(T.id), I.filter(({ id: oe }) => oe !== T.id);
|
|
@@ -3906,12 +3906,12 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3906
3906
|
_.target instanceof HTMLElement && _.target.dataset.dismissible === "false" || ne(!0);
|
|
3907
3907
|
},
|
|
3908
3908
|
onPointerUp: () => ne(!1)
|
|
3909
|
-
}, E.filter((_) => !_.position && I === 0 || _.position === T).map((_,
|
|
3909
|
+
}, E.filter((_) => !_.position && I === 0 || _.position === T).map((_, fe) => {
|
|
3910
3910
|
var Se, Ne;
|
|
3911
3911
|
return /* @__PURE__ */ w.createElement(Xa, {
|
|
3912
3912
|
key: _.id,
|
|
3913
3913
|
icons: A,
|
|
3914
|
-
index:
|
|
3914
|
+
index: fe,
|
|
3915
3915
|
toast: _,
|
|
3916
3916
|
defaultRichColors: x,
|
|
3917
3917
|
duration: (Se = y == null ? void 0 : y.duration) != null ? Se : h,
|
|
@@ -3929,9 +3929,9 @@ const $a = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3929
3929
|
actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
|
|
3930
3930
|
closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
|
|
3931
3931
|
removeToast: re,
|
|
3932
|
-
toasts: E.filter((
|
|
3933
|
-
heights: Q.filter((
|
|
3934
|
-
setHeights:
|
|
3932
|
+
toasts: E.filter((me) => me.position == _.position),
|
|
3933
|
+
heights: Q.filter((me) => me.position == _.position),
|
|
3934
|
+
setHeights: ye,
|
|
3935
3935
|
expandByDefault: i,
|
|
3936
3936
|
gap: k,
|
|
3937
3937
|
expanded: Y,
|
|
@@ -4974,7 +4974,7 @@ var ml = function(e) {
|
|
|
4974
4974
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), hl(r, o, n, "aria-hidden")) : function() {
|
|
4975
4975
|
return null;
|
|
4976
4976
|
};
|
|
4977
|
-
}, Mt = "Dialog", [io, xu] = ti(Mt), [bl,
|
|
4977
|
+
}, Mt = "Dialog", [io, xu] = ti(Mt), [bl, ge] = io(Mt), lo = (e) => {
|
|
4978
4978
|
const {
|
|
4979
4979
|
__scopeDialog: t,
|
|
4980
4980
|
children: n,
|
|
@@ -5008,7 +5008,7 @@ var ml = function(e) {
|
|
|
5008
5008
|
lo.displayName = Mt;
|
|
5009
5009
|
var co = "DialogTrigger", yl = m.forwardRef(
|
|
5010
5010
|
(e, t) => {
|
|
5011
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
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
|
{
|
|
@@ -5028,20 +5028,20 @@ yl.displayName = co;
|
|
|
5028
5028
|
var xn = "DialogPortal", [vl, uo] = io(xn, {
|
|
5029
5029
|
forceMount: void 0
|
|
5030
5030
|
}), fo = (e) => {
|
|
5031
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s =
|
|
5031
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = ge(xn, t);
|
|
5032
5032
|
return /* @__PURE__ */ v(vl, { scope: t, forceMount: n, children: m.Children.map(r, (a) => /* @__PURE__ */ v(Dt, { present: n || s.open, children: /* @__PURE__ */ v(Xr, { asChild: !0, container: o, children: a }) })) });
|
|
5033
5033
|
};
|
|
5034
5034
|
fo.displayName = xn;
|
|
5035
5035
|
var At = "DialogOverlay", mo = m.forwardRef(
|
|
5036
5036
|
(e, t) => {
|
|
5037
|
-
const n = uo(At, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s =
|
|
5037
|
+
const n = uo(At, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = ge(At, e.__scopeDialog);
|
|
5038
5038
|
return s.modal ? /* @__PURE__ */ v(Dt, { present: r || s.open, children: /* @__PURE__ */ v(xl, { ...o, ref: t }) }) : null;
|
|
5039
5039
|
}
|
|
5040
5040
|
);
|
|
5041
5041
|
mo.displayName = At;
|
|
5042
5042
|
var wl = /* @__PURE__ */ bn("DialogOverlay.RemoveScroll"), xl = m.forwardRef(
|
|
5043
5043
|
(e, t) => {
|
|
5044
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
5044
|
+
const { __scopeDialog: n, ...r } = e, o = ge(At, n);
|
|
5045
5045
|
return (
|
|
5046
5046
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
5047
5047
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -5058,14 +5058,14 @@ var wl = /* @__PURE__ */ bn("DialogOverlay.RemoveScroll"), xl = m.forwardRef(
|
|
|
5058
5058
|
}
|
|
5059
5059
|
), Ue = "DialogContent", po = m.forwardRef(
|
|
5060
5060
|
(e, t) => {
|
|
5061
|
-
const n = uo(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s =
|
|
5061
|
+
const n = uo(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = ge(Ue, e.__scopeDialog);
|
|
5062
5062
|
return /* @__PURE__ */ v(Dt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ v(El, { ...o, ref: t }) : /* @__PURE__ */ v(Sl, { ...o, ref: t }) });
|
|
5063
5063
|
}
|
|
5064
5064
|
);
|
|
5065
5065
|
po.displayName = Ue;
|
|
5066
5066
|
var El = m.forwardRef(
|
|
5067
5067
|
(e, t) => {
|
|
5068
|
-
const n =
|
|
5068
|
+
const n = ge(Ue, e.__scopeDialog), r = m.useRef(null), o = ze(t, n.contentRef, r);
|
|
5069
5069
|
return m.useEffect(() => {
|
|
5070
5070
|
const s = r.current;
|
|
5071
5071
|
if (s) return gl(s);
|
|
@@ -5093,7 +5093,7 @@ var El = m.forwardRef(
|
|
|
5093
5093
|
}
|
|
5094
5094
|
), Sl = m.forwardRef(
|
|
5095
5095
|
(e, t) => {
|
|
5096
|
-
const n =
|
|
5096
|
+
const n = ge(Ue, e.__scopeDialog), r = m.useRef(!1), o = m.useRef(!1);
|
|
5097
5097
|
return /* @__PURE__ */ v(
|
|
5098
5098
|
ho,
|
|
5099
5099
|
{
|
|
@@ -5116,7 +5116,7 @@ var El = m.forwardRef(
|
|
|
5116
5116
|
}
|
|
5117
5117
|
), ho = m.forwardRef(
|
|
5118
5118
|
(e, t) => {
|
|
5119
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i =
|
|
5119
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = ge(Ue, n), u = m.useRef(null), c = ze(t, u);
|
|
5120
5120
|
return Oi(), /* @__PURE__ */ te(Le, { children: [
|
|
5121
5121
|
/* @__PURE__ */ v(
|
|
5122
5122
|
Gr,
|
|
@@ -5149,21 +5149,21 @@ var El = m.forwardRef(
|
|
|
5149
5149
|
}
|
|
5150
5150
|
), En = "DialogTitle", go = m.forwardRef(
|
|
5151
5151
|
(e, t) => {
|
|
5152
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
5152
|
+
const { __scopeDialog: n, ...r } = e, o = ge(En, n);
|
|
5153
5153
|
return /* @__PURE__ */ v(ke.h2, { id: o.titleId, ...r, ref: t });
|
|
5154
5154
|
}
|
|
5155
5155
|
);
|
|
5156
5156
|
go.displayName = En;
|
|
5157
5157
|
var bo = "DialogDescription", yo = m.forwardRef(
|
|
5158
5158
|
(e, t) => {
|
|
5159
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
5159
|
+
const { __scopeDialog: n, ...r } = e, o = ge(bo, n);
|
|
5160
5160
|
return /* @__PURE__ */ v(ke.p, { id: o.descriptionId, ...r, ref: t });
|
|
5161
5161
|
}
|
|
5162
5162
|
);
|
|
5163
5163
|
yo.displayName = bo;
|
|
5164
5164
|
var vo = "DialogClose", wo = m.forwardRef(
|
|
5165
5165
|
(e, t) => {
|
|
5166
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
5166
|
+
const { __scopeDialog: n, ...r } = e, o = ge(vo, n);
|
|
5167
5167
|
return /* @__PURE__ */ v(
|
|
5168
5168
|
ke.button,
|
|
5169
5169
|
{
|
|
@@ -5406,11 +5406,11 @@ function Mo(e, t) {
|
|
|
5406
5406
|
const { toString: Ml } = Object.prototype, { getPrototypeOf: Rn } = Object, { iterator: Ft, toStringTag: Fo } = Symbol, It = /* @__PURE__ */ ((e) => (t) => {
|
|
5407
5407
|
const n = Ml.call(t);
|
|
5408
5408
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
5409
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
5409
|
+
})(/* @__PURE__ */ Object.create(null)), be = (e) => (e = e.toLowerCase(), (t) => It(t) === e), Bt = (e) => (t) => typeof t === e, { isArray: Ze } = Array, Ge = Bt("undefined");
|
|
5410
5410
|
function it(e) {
|
|
5411
5411
|
return e !== null && !Ge(e) && e.constructor !== null && !Ge(e.constructor) && ae(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
5412
5412
|
}
|
|
5413
|
-
const Io =
|
|
5413
|
+
const Io = be("ArrayBuffer");
|
|
5414
5414
|
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;
|
|
@@ -5428,11 +5428,11 @@ const Il = Bt("string"), ae = Bt("function"), Bo = Bt("number"), lt = (e) => e !
|
|
|
5428
5428
|
} catch {
|
|
5429
5429
|
return !1;
|
|
5430
5430
|
}
|
|
5431
|
-
}, Ul =
|
|
5431
|
+
}, Ul = be("Date"), jl = be("File"), zl = be("Blob"), _l = be("FileList"), Hl = (e) => lt(e) && ae(e.pipe), Wl = (e) => {
|
|
5432
5432
|
let t;
|
|
5433
5433
|
return e && (typeof FormData == "function" && e instanceof FormData || ae(e.append) && ((t = It(e)) === "formdata" || // detect form-data instance
|
|
5434
5434
|
t === "object" && ae(e.toString) && e.toString() === "[object FormData]"));
|
|
5435
|
-
}, Kl =
|
|
5435
|
+
}, Kl = be("URLSearchParams"), [Vl, ql, Yl, Jl] = ["ReadableStream", "Request", "Response", "Headers"].map(be), Gl = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
5436
5436
|
function ct(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
5437
5437
|
if (e === null || typeof e > "u")
|
|
5438
5438
|
return;
|
|
@@ -5512,12 +5512,12 @@ const Ql = (e, t, n, { allOwnKeys: r } = {}) => (ct(t, (o, s) => {
|
|
|
5512
5512
|
for (; (n = e.exec(t)) !== null; )
|
|
5513
5513
|
r.push(n);
|
|
5514
5514
|
return r;
|
|
5515
|
-
}, sc =
|
|
5515
|
+
}, sc = be("HTMLFormElement"), ac = (e) => e.toLowerCase().replace(
|
|
5516
5516
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
5517
5517
|
function(n, r, o) {
|
|
5518
5518
|
return r.toUpperCase() + o;
|
|
5519
5519
|
}
|
|
5520
|
-
), ur = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ic =
|
|
5520
|
+
), ur = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ic = be("RegExp"), jo = (e, t) => {
|
|
5521
5521
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
5522
5522
|
ct(n, (o, s) => {
|
|
5523
5523
|
let a;
|
|
@@ -5569,7 +5569,7 @@ const mc = (e) => {
|
|
|
5569
5569
|
return r;
|
|
5570
5570
|
};
|
|
5571
5571
|
return n(e, 0);
|
|
5572
|
-
}, pc =
|
|
5572
|
+
}, pc = be("AsyncFunction"), hc = (e) => e && (lt(e) || ae(e)) && ae(e.then) && ae(e.catch), zo = ((e, t) => e ? setImmediate : t ? ((n, r) => (Fe.addEventListener("message", ({ source: o, data: s }) => {
|
|
5573
5573
|
o === Fe && s === n && r.length && r.shift()();
|
|
5574
5574
|
}, !1), (o) => {
|
|
5575
5575
|
r.push(o), Fe.postMessage(n, "*");
|
|
@@ -5610,7 +5610,7 @@ const mc = (e) => {
|
|
|
5610
5610
|
inherits: Zl,
|
|
5611
5611
|
toFlatObject: $l,
|
|
5612
5612
|
kindOf: It,
|
|
5613
|
-
kindOfTest:
|
|
5613
|
+
kindOfTest: be,
|
|
5614
5614
|
endsWith: ec,
|
|
5615
5615
|
toArray: tc,
|
|
5616
5616
|
forEachEntry: rc,
|
|
@@ -6629,7 +6629,7 @@ const Xo = (e) => {
|
|
|
6629
6629
|
headers: E,
|
|
6630
6630
|
withCredentials: z = "same-origin",
|
|
6631
6631
|
fetchOptions: Q
|
|
6632
|
-
} = Xo(h),
|
|
6632
|
+
} = Xo(h), ye = t || fetch;
|
|
6633
6633
|
N = N ? (N + "").toLowerCase() : "text";
|
|
6634
6634
|
let Y = Gc([O, k && k.toAbortSignal()], A), W = null;
|
|
6635
6635
|
const J = Y && Y.unsubscribe && (() => {
|
|
@@ -6662,7 +6662,7 @@ const Xo = (e) => {
|
|
|
6662
6662
|
credentials: D ? z : void 0
|
|
6663
6663
|
};
|
|
6664
6664
|
W = s && new n(p, j);
|
|
6665
|
-
let S = await (s ?
|
|
6665
|
+
let S = await (s ? ye(W, Q) : ye(p, j));
|
|
6666
6666
|
const le = d && (N === "stream" || N === "response");
|
|
6667
6667
|
if (d && (P || le && J)) {
|
|
6668
6668
|
const V = {};
|
|
@@ -7183,7 +7183,7 @@ function Ku(e, t, n, r) {
|
|
|
7183
7183
|
}, 1500), new Promise(() => {
|
|
7184
7184
|
});
|
|
7185
7185
|
else if (s > 299) {
|
|
7186
|
-
const
|
|
7186
|
+
const Y = ((O = (y = (g = (p = (h = o == null ? void 0 : o.response) == null ? void 0 : h.data) == null ? void 0 : p.data) == null ? void 0 : g.details) == null ? void 0 : y[0]) == null ? void 0 : O.message) || ((A = (k = o == null ? void 0 : o.response) == null ? void 0 : k.data) == null ? void 0 : A.data) || ((L = (P = o == null ? void 0 : o.response) == null ? void 0 : P.data) == null ? void 0 : L.message) || o.message || "An unexpected error occurred";
|
|
7187
7187
|
if (r == "qa" || r == "prod")
|
|
7188
7188
|
Zt(Y, "");
|
|
7189
7189
|
else {
|