@wmoney/ui-kit 1.0.39 → 1.0.41
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/README.md +0 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Sidebar.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +262 -269
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/RoundedButton.d.ts +0 -7
- package/dist/components/RoundedButton.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2184,7 +2184,8 @@ var rn = T("text-sm font-medium inline-flex items-center justify-center gap-2.5
|
|
|
2184
2184
|
icon: "size-9",
|
|
2185
2185
|
"icon-xs": "size-5",
|
|
2186
2186
|
"icon-sm": "size-8",
|
|
2187
|
-
"icon-lg": "size-10"
|
|
2187
|
+
"icon-lg": "size-10",
|
|
2188
|
+
"rounded-full": "size-12 rounded-full shadow-sm"
|
|
2188
2189
|
},
|
|
2189
2190
|
loading: { true: "text-transparent" }
|
|
2190
2191
|
},
|
|
@@ -13282,48 +13283,40 @@ function pS({ className: e, ...t }) {
|
|
|
13282
13283
|
});
|
|
13283
13284
|
}
|
|
13284
13285
|
//#endregion
|
|
13285
|
-
//#region src/components/RoundedButton.tsx
|
|
13286
|
-
function mS({ className: e, ...t }) {
|
|
13287
|
-
return /* @__PURE__ */ h(sn, {
|
|
13288
|
-
className: q("size-8 rounded-full shadow-sm", e),
|
|
13289
|
-
...t
|
|
13290
|
-
});
|
|
13291
|
-
}
|
|
13292
|
-
//#endregion
|
|
13293
13286
|
//#region src/components/Sheet.tsx
|
|
13294
|
-
function
|
|
13287
|
+
function mS({ ...e }) {
|
|
13295
13288
|
return /* @__PURE__ */ h(xu, {
|
|
13296
13289
|
"data-slot": "sheet",
|
|
13297
13290
|
...e
|
|
13298
13291
|
});
|
|
13299
13292
|
}
|
|
13300
|
-
function
|
|
13293
|
+
function hS({ ...e }) {
|
|
13301
13294
|
return /* @__PURE__ */ h(Su, {
|
|
13302
13295
|
"data-slot": "sheet-trigger",
|
|
13303
13296
|
...e
|
|
13304
13297
|
});
|
|
13305
13298
|
}
|
|
13306
|
-
function
|
|
13299
|
+
function gS({ ...e }) {
|
|
13307
13300
|
return /* @__PURE__ */ h(Ou, {
|
|
13308
13301
|
"data-slot": "sheet-close",
|
|
13309
13302
|
...e
|
|
13310
13303
|
});
|
|
13311
13304
|
}
|
|
13312
|
-
function
|
|
13305
|
+
function _S({ ...e }) {
|
|
13313
13306
|
return /* @__PURE__ */ h(Cu, {
|
|
13314
13307
|
"data-slot": "sheet-portal",
|
|
13315
13308
|
...e
|
|
13316
13309
|
});
|
|
13317
13310
|
}
|
|
13318
|
-
function
|
|
13311
|
+
function vS({ className: e, ...t }) {
|
|
13319
13312
|
return /* @__PURE__ */ h(wu, {
|
|
13320
13313
|
"data-slot": "sheet-overlay",
|
|
13321
13314
|
className: q("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
13322
13315
|
...t
|
|
13323
13316
|
});
|
|
13324
13317
|
}
|
|
13325
|
-
function
|
|
13326
|
-
return /* @__PURE__ */ g(
|
|
13318
|
+
function yS({ className: e, children: t, side: n = "right", ...r }) {
|
|
13319
|
+
return /* @__PURE__ */ g(_S, { children: [/* @__PURE__ */ h(vS, {}), /* @__PURE__ */ g(Tu, {
|
|
13327
13320
|
"data-slot": "sheet-content",
|
|
13328
13321
|
className: q("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
13329
13322
|
...r,
|
|
@@ -13336,28 +13329,28 @@ function bS({ className: e, children: t, side: n = "right", ...r }) {
|
|
|
13336
13329
|
})]
|
|
13337
13330
|
})] });
|
|
13338
13331
|
}
|
|
13339
|
-
function
|
|
13332
|
+
function bS({ className: e, ...t }) {
|
|
13340
13333
|
return /* @__PURE__ */ h("div", {
|
|
13341
13334
|
"data-slot": "sheet-header",
|
|
13342
13335
|
className: q("flex flex-col gap-1.5 p-4", e),
|
|
13343
13336
|
...t
|
|
13344
13337
|
});
|
|
13345
13338
|
}
|
|
13346
|
-
function
|
|
13339
|
+
function xS({ className: e, ...t }) {
|
|
13347
13340
|
return /* @__PURE__ */ h("div", {
|
|
13348
13341
|
"data-slot": "sheet-footer",
|
|
13349
13342
|
className: q("mt-auto flex flex-col gap-2 p-4", e),
|
|
13350
13343
|
...t
|
|
13351
13344
|
});
|
|
13352
13345
|
}
|
|
13353
|
-
function
|
|
13346
|
+
function SS({ className: e, ...t }) {
|
|
13354
13347
|
return /* @__PURE__ */ h(Eu, {
|
|
13355
13348
|
"data-slot": "sheet-title",
|
|
13356
13349
|
className: q("text-foreground font-semibold", e),
|
|
13357
13350
|
...t
|
|
13358
13351
|
});
|
|
13359
13352
|
}
|
|
13360
|
-
function
|
|
13353
|
+
function CS({ className: e, ...t }) {
|
|
13361
13354
|
return /* @__PURE__ */ h(Du, {
|
|
13362
13355
|
"data-slot": "sheet-description",
|
|
13363
13356
|
className: q("text-muted text-sm", e),
|
|
@@ -13366,7 +13359,7 @@ function wS({ className: e, ...t }) {
|
|
|
13366
13359
|
}
|
|
13367
13360
|
//#endregion
|
|
13368
13361
|
//#region src/components/Skeleton.tsx
|
|
13369
|
-
function
|
|
13362
|
+
function wS({ className: e, ...t }) {
|
|
13370
13363
|
return /* @__PURE__ */ h("div", {
|
|
13371
13364
|
"data-slot": "skeleton",
|
|
13372
13365
|
className: q("bg-muted/20 animate-pulse rounded-md", e),
|
|
@@ -13375,20 +13368,20 @@ function TS({ className: e, ...t }) {
|
|
|
13375
13368
|
}
|
|
13376
13369
|
//#endregion
|
|
13377
13370
|
//#region node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
13378
|
-
var
|
|
13371
|
+
var TS = Symbol("radix.slottable");
|
|
13379
13372
|
/* @__NO_SIDE_EFFECTS__ */
|
|
13380
|
-
function
|
|
13373
|
+
function ES(e) {
|
|
13381
13374
|
let t = ({ children: e }) => /* @__PURE__ */ h(m, { children: e });
|
|
13382
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
13375
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = TS, t;
|
|
13383
13376
|
}
|
|
13384
13377
|
//#endregion
|
|
13385
13378
|
//#region node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
13386
|
-
var [
|
|
13387
|
-
let { __scopeTooltip: n, delayDuration: r =
|
|
13379
|
+
var [DS, OS] = No("Tooltip", [Zp]), kS = Zp(), AS = "TooltipProvider", jS = 700, MS = "tooltip.open", [NS, PS] = DS(AS), FS = (t) => {
|
|
13380
|
+
let { __scopeTooltip: n, delayDuration: r = jS, skipDelayDuration: i = 300, disableHoverableContent: a = !1, children: o } = t, s = e.useRef(!0), c = e.useRef(!1), l = e.useRef(0);
|
|
13388
13381
|
return e.useEffect(() => {
|
|
13389
13382
|
let e = l.current;
|
|
13390
13383
|
return () => window.clearTimeout(e);
|
|
13391
|
-
}, []), /* @__PURE__ */ h(
|
|
13384
|
+
}, []), /* @__PURE__ */ h(NS, {
|
|
13392
13385
|
scope: n,
|
|
13393
13386
|
isOpenDelayedRef: s,
|
|
13394
13387
|
delayDuration: r,
|
|
@@ -13406,15 +13399,15 @@ var [OS, kS] = No("Tooltip", [Zp]), AS = Zp(), jS = "TooltipProvider", MS = 700,
|
|
|
13406
13399
|
children: o
|
|
13407
13400
|
});
|
|
13408
13401
|
};
|
|
13409
|
-
|
|
13410
|
-
var
|
|
13411
|
-
let { __scopeTooltip: n, children: r, open: i, defaultOpen: a, onOpenChange: o, disableHoverableContent: s, delayDuration: c } = t, l =
|
|
13402
|
+
FS.displayName = AS;
|
|
13403
|
+
var IS = "Tooltip", [LS, RS] = DS(IS), zS = (t) => {
|
|
13404
|
+
let { __scopeTooltip: n, children: r, open: i, defaultOpen: a, onOpenChange: o, disableHoverableContent: s, delayDuration: c } = t, l = PS(IS, t.__scopeTooltip), u = kS(n), [d, f] = e.useState(null), p = Ps(), m = e.useRef(0), g = s ?? l.disableHoverableContent, _ = c ?? l.delayDuration, v = e.useRef(!1), [y, b] = Lo({
|
|
13412
13405
|
prop: i,
|
|
13413
13406
|
defaultProp: a ?? !1,
|
|
13414
13407
|
onChange: (e) => {
|
|
13415
|
-
e ? (l.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
13408
|
+
e ? (l.onOpen(), document.dispatchEvent(new CustomEvent(MS))) : l.onClose(), o?.(e);
|
|
13416
13409
|
},
|
|
13417
|
-
caller:
|
|
13410
|
+
caller: IS
|
|
13418
13411
|
}), x = e.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), S = e.useCallback(() => {
|
|
13419
13412
|
window.clearTimeout(m.current), m.current = 0, v.current = !1, b(!0);
|
|
13420
13413
|
}, [b]), C = e.useCallback(() => {
|
|
@@ -13428,7 +13421,7 @@ var LS = "Tooltip", [RS, zS] = OS(LS), BS = (t) => {
|
|
|
13428
13421
|
m.current &&= (window.clearTimeout(m.current), 0);
|
|
13429
13422
|
}, []), /* @__PURE__ */ h(pm, {
|
|
13430
13423
|
...u,
|
|
13431
|
-
children: /* @__PURE__ */ h(
|
|
13424
|
+
children: /* @__PURE__ */ h(LS, {
|
|
13432
13425
|
scope: n,
|
|
13433
13426
|
contentId: p,
|
|
13434
13427
|
open: y,
|
|
@@ -13452,9 +13445,9 @@ var LS = "Tooltip", [RS, zS] = OS(LS), BS = (t) => {
|
|
|
13452
13445
|
})
|
|
13453
13446
|
});
|
|
13454
13447
|
};
|
|
13455
|
-
|
|
13456
|
-
var
|
|
13457
|
-
let { __scopeTooltip: r, ...i } = t, a =
|
|
13448
|
+
zS.displayName = IS;
|
|
13449
|
+
var BS = "TooltipTrigger", VS = e.forwardRef((t, n) => {
|
|
13450
|
+
let { __scopeTooltip: r, ...i } = t, a = RS(BS, r), o = PS(BS, r), s = kS(r), c = O(n, e.useRef(null), a.onTriggerChange), l = e.useRef(!1), u = e.useRef(!1), d = e.useCallback(() => l.current = !1, []);
|
|
13458
13451
|
return e.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ h(mm, {
|
|
13459
13452
|
asChild: !0,
|
|
13460
13453
|
...s,
|
|
@@ -13480,10 +13473,10 @@ var VS = "TooltipTrigger", HS = e.forwardRef((t, n) => {
|
|
|
13480
13473
|
})
|
|
13481
13474
|
});
|
|
13482
13475
|
});
|
|
13483
|
-
|
|
13484
|
-
var
|
|
13485
|
-
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a =
|
|
13486
|
-
return /* @__PURE__ */ h(
|
|
13476
|
+
VS.displayName = BS;
|
|
13477
|
+
var HS = "TooltipPortal", [US, WS] = DS(HS, { forceMount: void 0 }), GS = (e) => {
|
|
13478
|
+
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = RS(HS, t);
|
|
13479
|
+
return /* @__PURE__ */ h(US, {
|
|
13487
13480
|
scope: t,
|
|
13488
13481
|
forceMount: n,
|
|
13489
13482
|
children: /* @__PURE__ */ h(Uo, {
|
|
@@ -13496,30 +13489,30 @@ var US = "TooltipPortal", [WS, GS] = OS(US, { forceMount: void 0 }), KS = (e) =>
|
|
|
13496
13489
|
})
|
|
13497
13490
|
});
|
|
13498
13491
|
};
|
|
13499
|
-
|
|
13500
|
-
var
|
|
13501
|
-
let n =
|
|
13492
|
+
GS.displayName = HS;
|
|
13493
|
+
var KS = "TooltipContent", qS = e.forwardRef((e, t) => {
|
|
13494
|
+
let n = WS(KS, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = RS(KS, e.__scopeTooltip);
|
|
13502
13495
|
return /* @__PURE__ */ h(Uo, {
|
|
13503
13496
|
present: r || o.open,
|
|
13504
|
-
children: o.disableHoverableContent ? /* @__PURE__ */ h(
|
|
13497
|
+
children: o.disableHoverableContent ? /* @__PURE__ */ h(QS, {
|
|
13505
13498
|
side: i,
|
|
13506
13499
|
...a,
|
|
13507
13500
|
ref: t
|
|
13508
|
-
}) : /* @__PURE__ */ h(
|
|
13501
|
+
}) : /* @__PURE__ */ h(JS, {
|
|
13509
13502
|
side: i,
|
|
13510
13503
|
...a,
|
|
13511
13504
|
ref: t
|
|
13512
13505
|
})
|
|
13513
13506
|
});
|
|
13514
|
-
}),
|
|
13515
|
-
let r =
|
|
13507
|
+
}), JS = e.forwardRef((t, n) => {
|
|
13508
|
+
let r = RS(KS, t.__scopeTooltip), i = PS(KS, t.__scopeTooltip), a = e.useRef(null), o = O(n, a), [s, c] = e.useState(null), { trigger: l, onClose: u } = r, d = a.current, { onPointerInTransitChange: f } = i, p = e.useCallback(() => {
|
|
13516
13509
|
c(null), f(!1);
|
|
13517
13510
|
}, [f]), m = e.useCallback((e, t) => {
|
|
13518
13511
|
let n = e.currentTarget, r = {
|
|
13519
13512
|
x: e.clientX,
|
|
13520
13513
|
y: e.clientY
|
|
13521
|
-
}, i =
|
|
13522
|
-
c(
|
|
13514
|
+
}, i = nC(r, tC(r, n.getBoundingClientRect())), a = rC(t.getBoundingClientRect());
|
|
13515
|
+
c(aC([...i, ...a])), f(!0);
|
|
13523
13516
|
}, [f]);
|
|
13524
13517
|
return e.useEffect(() => () => p(), [p]), e.useEffect(() => {
|
|
13525
13518
|
if (l && d) {
|
|
@@ -13539,7 +13532,7 @@ var qS = "TooltipContent", JS = e.forwardRef((e, t) => {
|
|
|
13539
13532
|
let t = e.target, n = {
|
|
13540
13533
|
x: e.clientX,
|
|
13541
13534
|
y: e.clientY
|
|
13542
|
-
}, r = l?.contains(t) || d?.contains(t), i = !
|
|
13535
|
+
}, r = l?.contains(t) || d?.contains(t), i = !iC(n, s);
|
|
13543
13536
|
r ? p() : i && (p(), u());
|
|
13544
13537
|
};
|
|
13545
13538
|
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
|
|
@@ -13550,13 +13543,13 @@ var qS = "TooltipContent", JS = e.forwardRef((e, t) => {
|
|
|
13550
13543
|
s,
|
|
13551
13544
|
u,
|
|
13552
13545
|
p
|
|
13553
|
-
]), /* @__PURE__ */ h(
|
|
13546
|
+
]), /* @__PURE__ */ h(QS, {
|
|
13554
13547
|
...t,
|
|
13555
13548
|
ref: o
|
|
13556
13549
|
});
|
|
13557
|
-
}), [
|
|
13558
|
-
let { __scopeTooltip: r, children: i, "aria-label": a, onEscapeKeyDown: o, onPointerDownOutside: s, ...c } = t, l =
|
|
13559
|
-
return e.useEffect(() => (document.addEventListener(
|
|
13550
|
+
}), [YS, XS] = DS(IS, { isInside: !1 }), ZS = /* @__PURE__ */ ES("TooltipContent"), QS = e.forwardRef((t, n) => {
|
|
13551
|
+
let { __scopeTooltip: r, children: i, "aria-label": a, onEscapeKeyDown: o, onPointerDownOutside: s, ...c } = t, l = RS(KS, r), u = kS(r), { onClose: d } = l;
|
|
13552
|
+
return e.useEffect(() => (document.addEventListener(MS, d), () => document.removeEventListener(MS, d)), [d]), e.useEffect(() => {
|
|
13560
13553
|
if (l.trigger) {
|
|
13561
13554
|
let e = (e) => {
|
|
13562
13555
|
e.target?.contains(l.trigger) && d();
|
|
@@ -13583,7 +13576,7 @@ var qS = "TooltipContent", JS = e.forwardRef((e, t) => {
|
|
|
13583
13576
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
13584
13577
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
13585
13578
|
},
|
|
13586
|
-
children: [/* @__PURE__ */ h(
|
|
13579
|
+
children: [/* @__PURE__ */ h(ZS, { children: i }), /* @__PURE__ */ h(YS, {
|
|
13587
13580
|
scope: r,
|
|
13588
13581
|
isInside: !0,
|
|
13589
13582
|
children: /* @__PURE__ */ h(Zy, {
|
|
@@ -13595,17 +13588,17 @@ var qS = "TooltipContent", JS = e.forwardRef((e, t) => {
|
|
|
13595
13588
|
})
|
|
13596
13589
|
});
|
|
13597
13590
|
});
|
|
13598
|
-
|
|
13599
|
-
var
|
|
13600
|
-
let { __scopeTooltip: n, ...r } = e, i =
|
|
13601
|
-
return
|
|
13591
|
+
qS.displayName = KS;
|
|
13592
|
+
var $S = "TooltipArrow", eC = e.forwardRef((e, t) => {
|
|
13593
|
+
let { __scopeTooltip: n, ...r } = e, i = kS(n);
|
|
13594
|
+
return XS($S, n).isInside ? null : /* @__PURE__ */ h(gm, {
|
|
13602
13595
|
...i,
|
|
13603
13596
|
...r,
|
|
13604
13597
|
ref: t
|
|
13605
13598
|
});
|
|
13606
13599
|
});
|
|
13607
|
-
|
|
13608
|
-
function
|
|
13600
|
+
eC.displayName = $S;
|
|
13601
|
+
function tC(e, t) {
|
|
13609
13602
|
let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
13610
13603
|
switch (Math.min(n, r, i, a)) {
|
|
13611
13604
|
case a: return "left";
|
|
@@ -13615,7 +13608,7 @@ function nC(e, t) {
|
|
|
13615
13608
|
default: throw Error("unreachable");
|
|
13616
13609
|
}
|
|
13617
13610
|
}
|
|
13618
|
-
function
|
|
13611
|
+
function nC(e, t, n = 5) {
|
|
13619
13612
|
let r = [];
|
|
13620
13613
|
switch (t) {
|
|
13621
13614
|
case "top":
|
|
@@ -13657,7 +13650,7 @@ function rC(e, t, n = 5) {
|
|
|
13657
13650
|
}
|
|
13658
13651
|
return r;
|
|
13659
13652
|
}
|
|
13660
|
-
function
|
|
13653
|
+
function rC(e) {
|
|
13661
13654
|
let { top: t, right: n, bottom: r, left: i } = e;
|
|
13662
13655
|
return [
|
|
13663
13656
|
{
|
|
@@ -13678,7 +13671,7 @@ function iC(e) {
|
|
|
13678
13671
|
}
|
|
13679
13672
|
];
|
|
13680
13673
|
}
|
|
13681
|
-
function
|
|
13674
|
+
function iC(e, t) {
|
|
13682
13675
|
let { x: n, y: r } = e, i = !1;
|
|
13683
13676
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
13684
13677
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -13686,11 +13679,11 @@ function aC(e, t) {
|
|
|
13686
13679
|
}
|
|
13687
13680
|
return i;
|
|
13688
13681
|
}
|
|
13689
|
-
function
|
|
13682
|
+
function aC(e) {
|
|
13690
13683
|
let t = e.slice();
|
|
13691
|
-
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0),
|
|
13684
|
+
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0), oC(t);
|
|
13692
13685
|
}
|
|
13693
|
-
function
|
|
13686
|
+
function oC(e) {
|
|
13694
13687
|
if (e.length <= 1) return e.slice();
|
|
13695
13688
|
let t = [];
|
|
13696
13689
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -13715,61 +13708,61 @@ function sC(e) {
|
|
|
13715
13708
|
}
|
|
13716
13709
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
13717
13710
|
}
|
|
13718
|
-
var cC =
|
|
13711
|
+
var sC = FS, cC = zS, lC = VS, uC = GS, dC = qS, fC = eC;
|
|
13719
13712
|
//#endregion
|
|
13720
13713
|
//#region src/components/Tooltip.tsx
|
|
13721
|
-
function
|
|
13722
|
-
return /* @__PURE__ */ h(
|
|
13714
|
+
function pC({ delayDuration: e = 0, ...t }) {
|
|
13715
|
+
return /* @__PURE__ */ h(sC, {
|
|
13723
13716
|
"data-slot": "tooltip-provider",
|
|
13724
13717
|
delayDuration: e,
|
|
13725
13718
|
...t
|
|
13726
13719
|
});
|
|
13727
13720
|
}
|
|
13728
|
-
function
|
|
13729
|
-
return /* @__PURE__ */ h(
|
|
13721
|
+
function mC({ ...e }) {
|
|
13722
|
+
return /* @__PURE__ */ h(pC, { children: /* @__PURE__ */ h(cC, {
|
|
13730
13723
|
"data-slot": "tooltip",
|
|
13731
13724
|
...e
|
|
13732
13725
|
}) });
|
|
13733
13726
|
}
|
|
13734
|
-
function
|
|
13735
|
-
return /* @__PURE__ */ h(
|
|
13727
|
+
function hC({ ...e }) {
|
|
13728
|
+
return /* @__PURE__ */ h(lC, {
|
|
13736
13729
|
"data-slot": "tooltip-trigger",
|
|
13737
13730
|
...e
|
|
13738
13731
|
});
|
|
13739
13732
|
}
|
|
13740
|
-
function
|
|
13741
|
-
return /* @__PURE__ */ h(
|
|
13733
|
+
function gC({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
13734
|
+
return /* @__PURE__ */ h(uC, { children: /* @__PURE__ */ g(dC, {
|
|
13742
13735
|
"data-slot": "tooltip-content",
|
|
13743
13736
|
sideOffset: t,
|
|
13744
13737
|
className: q("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", e),
|
|
13745
13738
|
...r,
|
|
13746
|
-
children: [n, /* @__PURE__ */ h(
|
|
13739
|
+
children: [n, /* @__PURE__ */ h(fC, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-sm" })]
|
|
13747
13740
|
}) });
|
|
13748
13741
|
}
|
|
13749
13742
|
//#endregion
|
|
13750
13743
|
//#region src/hooks/useIsMobile.ts
|
|
13751
|
-
var
|
|
13752
|
-
function
|
|
13744
|
+
var _C = 1024;
|
|
13745
|
+
function vC() {
|
|
13753
13746
|
let [e, t] = p(void 0);
|
|
13754
13747
|
return s(() => {
|
|
13755
|
-
let e = window.matchMedia(`(max-width: ${
|
|
13756
|
-
t(window.innerWidth <
|
|
13748
|
+
let e = window.matchMedia(`(max-width: ${_C - 1}px)`), n = () => {
|
|
13749
|
+
t(window.innerWidth < _C);
|
|
13757
13750
|
};
|
|
13758
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
13751
|
+
return e.addEventListener("change", n), t(window.innerWidth < _C), () => e.removeEventListener("change", n);
|
|
13759
13752
|
}, []), !!e;
|
|
13760
13753
|
}
|
|
13761
13754
|
//#endregion
|
|
13762
13755
|
//#region src/components/Sidebar.tsx
|
|
13763
|
-
var
|
|
13764
|
-
function
|
|
13765
|
-
let e = o(
|
|
13756
|
+
var yC = "sidebar_state", bC = 3600 * 24 * 7, xC = "16rem", SC = "18rem", CC = "3rem", wC = "b", TC = n(null);
|
|
13757
|
+
function EC() {
|
|
13758
|
+
let e = o(TC);
|
|
13766
13759
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
13767
13760
|
return e;
|
|
13768
13761
|
}
|
|
13769
|
-
function
|
|
13770
|
-
let l =
|
|
13762
|
+
function DC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: o, ...c }) {
|
|
13763
|
+
let l = vC(), [u, f] = p(!1), [m, g] = p(e), _ = t ?? m, v = a((e) => {
|
|
13771
13764
|
let t = typeof e == "function" ? e(_) : e;
|
|
13772
|
-
n ? n(t) : g(t), document.cookie = `${
|
|
13765
|
+
n ? n(t) : g(t), document.cookie = `${yC}=${t}; path=/; max-age=${bC}`;
|
|
13773
13766
|
}, [n, _]), y = a(() => l ? f((e) => !e) : v((e) => !e), [
|
|
13774
13767
|
l,
|
|
13775
13768
|
v,
|
|
@@ -13777,7 +13770,7 @@ function OC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
13777
13770
|
]);
|
|
13778
13771
|
s(() => {
|
|
13779
13772
|
let e = (e) => {
|
|
13780
|
-
e.key ===
|
|
13773
|
+
e.key === wC && (e.metaKey || e.ctrlKey) && (e.preventDefault(), y());
|
|
13781
13774
|
};
|
|
13782
13775
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
13783
13776
|
}, [y]);
|
|
@@ -13798,13 +13791,13 @@ function OC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
13798
13791
|
f,
|
|
13799
13792
|
y
|
|
13800
13793
|
]);
|
|
13801
|
-
return /* @__PURE__ */ h(
|
|
13794
|
+
return /* @__PURE__ */ h(TC.Provider, {
|
|
13802
13795
|
value: x,
|
|
13803
13796
|
children: /* @__PURE__ */ h("div", {
|
|
13804
13797
|
"data-slot": "sidebar-wrapper",
|
|
13805
13798
|
style: {
|
|
13806
|
-
"--sidebar-width":
|
|
13807
|
-
"--sidebar-width-icon":
|
|
13799
|
+
"--sidebar-width": xC,
|
|
13800
|
+
"--sidebar-width-icon": CC,
|
|
13808
13801
|
...i
|
|
13809
13802
|
},
|
|
13810
13803
|
className: q("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", r),
|
|
@@ -13813,31 +13806,31 @@ function OC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
13813
13806
|
})
|
|
13814
13807
|
});
|
|
13815
13808
|
}
|
|
13816
|
-
function
|
|
13817
|
-
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } =
|
|
13809
|
+
function OC({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
13810
|
+
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = EC();
|
|
13818
13811
|
return n === "none" ? /* @__PURE__ */ h("div", {
|
|
13819
13812
|
"data-slot": "sidebar",
|
|
13820
13813
|
className: q("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
13821
13814
|
...a,
|
|
13822
13815
|
children: i
|
|
13823
|
-
}) : o ? /* @__PURE__ */ h(
|
|
13816
|
+
}) : o ? /* @__PURE__ */ h(mS, {
|
|
13824
13817
|
open: c,
|
|
13825
13818
|
onOpenChange: l,
|
|
13826
13819
|
...a,
|
|
13827
|
-
children: /* @__PURE__ */ g(
|
|
13820
|
+
children: /* @__PURE__ */ g(yS, {
|
|
13828
13821
|
"data-sidebar": "sidebar",
|
|
13829
13822
|
"data-slot": "sidebar",
|
|
13830
13823
|
"data-mobile": "true",
|
|
13831
13824
|
className: "bg-sidebar text-sidebar-foreground p-0 [&>button]:hidden",
|
|
13832
13825
|
style: {
|
|
13833
|
-
"--sidebar-width":
|
|
13834
|
-
width:
|
|
13835
|
-
maxWidth:
|
|
13826
|
+
"--sidebar-width": SC,
|
|
13827
|
+
width: SC,
|
|
13828
|
+
maxWidth: SC
|
|
13836
13829
|
},
|
|
13837
13830
|
side: e,
|
|
13838
|
-
children: [/* @__PURE__ */ g(
|
|
13831
|
+
children: [/* @__PURE__ */ g(bS, {
|
|
13839
13832
|
className: "sr-only",
|
|
13840
|
-
children: [/* @__PURE__ */ h(
|
|
13833
|
+
children: [/* @__PURE__ */ h(SS, { children: "Menu lateral" }), /* @__PURE__ */ h(CS, { children: "Exibe o menu lateral em dispositivos móveis." })]
|
|
13841
13834
|
}), /* @__PURE__ */ h("div", {
|
|
13842
13835
|
className: "flex h-full w-full flex-col",
|
|
13843
13836
|
children: i
|
|
@@ -13866,13 +13859,13 @@ function kC({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
13866
13859
|
})]
|
|
13867
13860
|
});
|
|
13868
13861
|
}
|
|
13869
|
-
function
|
|
13870
|
-
let { toggleSidebar: r } =
|
|
13871
|
-
return /* @__PURE__ */ g(
|
|
13862
|
+
function kC({ className: e, onClick: t, ...n }) {
|
|
13863
|
+
let { toggleSidebar: r } = EC();
|
|
13864
|
+
return /* @__PURE__ */ g(sn, {
|
|
13872
13865
|
"data-sidebar": "trigger",
|
|
13873
13866
|
"data-slot": "sidebar-trigger",
|
|
13874
13867
|
variant: "ghost",
|
|
13875
|
-
size: "
|
|
13868
|
+
size: "rounded-full",
|
|
13876
13869
|
className: e,
|
|
13877
13870
|
onClick: (e) => {
|
|
13878
13871
|
t?.(e), r();
|
|
@@ -13884,8 +13877,8 @@ function AC({ className: e, onClick: t, ...n }) {
|
|
|
13884
13877
|
})]
|
|
13885
13878
|
});
|
|
13886
13879
|
}
|
|
13887
|
-
function
|
|
13888
|
-
let { toggleSidebar: n } =
|
|
13880
|
+
function AC({ className: e, ...t }) {
|
|
13881
|
+
let { toggleSidebar: n } = EC();
|
|
13889
13882
|
return /* @__PURE__ */ h("button", {
|
|
13890
13883
|
"data-sidebar": "rail",
|
|
13891
13884
|
"data-slot": "sidebar-rail",
|
|
@@ -13897,14 +13890,14 @@ function jC({ className: e, ...t }) {
|
|
|
13897
13890
|
...t
|
|
13898
13891
|
});
|
|
13899
13892
|
}
|
|
13900
|
-
function
|
|
13893
|
+
function jC({ className: e, ...t }) {
|
|
13901
13894
|
return /* @__PURE__ */ h("main", {
|
|
13902
13895
|
"data-slot": "sidebar-inset",
|
|
13903
13896
|
className: q("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
|
|
13904
13897
|
...t
|
|
13905
13898
|
});
|
|
13906
13899
|
}
|
|
13907
|
-
function
|
|
13900
|
+
function MC({ className: e, ...t }) {
|
|
13908
13901
|
return /* @__PURE__ */ h(Yv, {
|
|
13909
13902
|
"data-slot": "sidebar-input",
|
|
13910
13903
|
"data-sidebar": "input",
|
|
@@ -13912,7 +13905,7 @@ function NC({ className: e, ...t }) {
|
|
|
13912
13905
|
...t
|
|
13913
13906
|
});
|
|
13914
13907
|
}
|
|
13915
|
-
function
|
|
13908
|
+
function NC({ className: e, ...t }) {
|
|
13916
13909
|
return /* @__PURE__ */ h("div", {
|
|
13917
13910
|
"data-slot": "sidebar-header",
|
|
13918
13911
|
"data-sidebar": "header",
|
|
@@ -13920,7 +13913,7 @@ function PC({ className: e, ...t }) {
|
|
|
13920
13913
|
...t
|
|
13921
13914
|
});
|
|
13922
13915
|
}
|
|
13923
|
-
function
|
|
13916
|
+
function PC({ className: e, ...t }) {
|
|
13924
13917
|
return /* @__PURE__ */ h("div", {
|
|
13925
13918
|
"data-slot": "sidebar-footer",
|
|
13926
13919
|
"data-sidebar": "footer",
|
|
@@ -13928,7 +13921,7 @@ function FC({ className: e, ...t }) {
|
|
|
13928
13921
|
...t
|
|
13929
13922
|
});
|
|
13930
13923
|
}
|
|
13931
|
-
function
|
|
13924
|
+
function FC({ className: e, ...t }) {
|
|
13932
13925
|
return /* @__PURE__ */ h(qv, {
|
|
13933
13926
|
"data-slot": "sidebar-separator",
|
|
13934
13927
|
"data-sidebar": "separator",
|
|
@@ -13936,7 +13929,7 @@ function IC({ className: e, ...t }) {
|
|
|
13936
13929
|
...t
|
|
13937
13930
|
});
|
|
13938
13931
|
}
|
|
13939
|
-
function
|
|
13932
|
+
function IC({ className: e, ...t }) {
|
|
13940
13933
|
return /* @__PURE__ */ h("div", {
|
|
13941
13934
|
"data-slot": "sidebar-content",
|
|
13942
13935
|
"data-sidebar": "content",
|
|
@@ -13944,7 +13937,7 @@ function LC({ className: e, ...t }) {
|
|
|
13944
13937
|
...t
|
|
13945
13938
|
});
|
|
13946
13939
|
}
|
|
13947
|
-
function
|
|
13940
|
+
function LC({ className: e, ...t }) {
|
|
13948
13941
|
return /* @__PURE__ */ h("div", {
|
|
13949
13942
|
"data-slot": "sidebar-group",
|
|
13950
13943
|
"data-sidebar": "group",
|
|
@@ -13952,7 +13945,7 @@ function RC({ className: e, ...t }) {
|
|
|
13952
13945
|
...t
|
|
13953
13946
|
});
|
|
13954
13947
|
}
|
|
13955
|
-
function
|
|
13948
|
+
function RC({ className: e, asChild: t = !1, ...n }) {
|
|
13956
13949
|
return /* @__PURE__ */ h(t ? P : "div", {
|
|
13957
13950
|
"data-slot": "sidebar-group-label",
|
|
13958
13951
|
"data-sidebar": "group-label",
|
|
@@ -13960,7 +13953,7 @@ function zC({ className: e, asChild: t = !1, ...n }) {
|
|
|
13960
13953
|
...n
|
|
13961
13954
|
});
|
|
13962
13955
|
}
|
|
13963
|
-
function
|
|
13956
|
+
function zC({ className: e, asChild: t = !1, ...n }) {
|
|
13964
13957
|
return /* @__PURE__ */ h(t ? P : "button", {
|
|
13965
13958
|
"data-slot": "sidebar-group-action",
|
|
13966
13959
|
"data-sidebar": "group-action",
|
|
@@ -13968,7 +13961,7 @@ function BC({ className: e, asChild: t = !1, ...n }) {
|
|
|
13968
13961
|
...n
|
|
13969
13962
|
});
|
|
13970
13963
|
}
|
|
13971
|
-
function
|
|
13964
|
+
function BC({ className: e, ...t }) {
|
|
13972
13965
|
return /* @__PURE__ */ h("div", {
|
|
13973
13966
|
"data-slot": "sidebar-group-content",
|
|
13974
13967
|
"data-sidebar": "group-content",
|
|
@@ -13976,7 +13969,7 @@ function VC({ className: e, ...t }) {
|
|
|
13976
13969
|
...t
|
|
13977
13970
|
});
|
|
13978
13971
|
}
|
|
13979
|
-
function
|
|
13972
|
+
function VC({ className: e, ...t }) {
|
|
13980
13973
|
return /* @__PURE__ */ h("ul", {
|
|
13981
13974
|
"data-slot": "sidebar-menu",
|
|
13982
13975
|
"data-sidebar": "menu",
|
|
@@ -13984,7 +13977,7 @@ function HC({ className: e, ...t }) {
|
|
|
13984
13977
|
...t
|
|
13985
13978
|
});
|
|
13986
13979
|
}
|
|
13987
|
-
function
|
|
13980
|
+
function HC({ className: e, ...t }) {
|
|
13988
13981
|
return /* @__PURE__ */ h("li", {
|
|
13989
13982
|
"data-slot": "sidebar-menu-item",
|
|
13990
13983
|
"data-sidebar": "menu-item",
|
|
@@ -13992,7 +13985,7 @@ function UC({ className: e, ...t }) {
|
|
|
13992
13985
|
...t
|
|
13993
13986
|
});
|
|
13994
13987
|
}
|
|
13995
|
-
var
|
|
13988
|
+
var UC = T("peer/menu-button flex w-full rounded-xs items-center gap-2 overflow-hidden px-4 py-3 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:shadow-sm active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 cursor-pointer disabled:cursor-not-allowed aria-disabled:cursor-not-allowed aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-sm data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0 hover:data-[critical=true]:bg-tertiary/20 hover:data-[critical=true]:text-tertiary data-[active=true]:data-[critical=true]:bg-tertiary/20 data-[active=true]:data-[critical=true]:text-tertiary", {
|
|
13996
13989
|
variants: {
|
|
13997
13990
|
variant: {
|
|
13998
13991
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-sm",
|
|
@@ -14009,31 +14002,31 @@ var WC = T("peer/menu-button flex w-full rounded-xs items-center gap-2 overflow-
|
|
|
14009
14002
|
size: "default"
|
|
14010
14003
|
}
|
|
14011
14004
|
});
|
|
14012
|
-
function
|
|
14013
|
-
let c = e ? P : "button", { isMobile: l, state: u } =
|
|
14005
|
+
function WC({ asChild: e = !1, isActive: t = !1, isCritical: n = !1, variant: r = "default", size: i = "default", tooltip: a, className: o, ...s }) {
|
|
14006
|
+
let c = e ? P : "button", { isMobile: l, state: u } = EC(), d = /* @__PURE__ */ h(c, {
|
|
14014
14007
|
"data-slot": "sidebar-menu-button",
|
|
14015
14008
|
"data-sidebar": "menu-button",
|
|
14016
14009
|
"data-size": i,
|
|
14017
14010
|
"data-active": t,
|
|
14018
14011
|
"data-critical": n,
|
|
14019
14012
|
"aria-disabled": s.disabled,
|
|
14020
|
-
className: q(
|
|
14013
|
+
className: q(UC({
|
|
14021
14014
|
variant: r,
|
|
14022
14015
|
size: i
|
|
14023
14016
|
}), o),
|
|
14024
14017
|
...s
|
|
14025
14018
|
});
|
|
14026
|
-
return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ g(
|
|
14019
|
+
return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ g(mC, { children: [/* @__PURE__ */ h(hC, {
|
|
14027
14020
|
asChild: !0,
|
|
14028
14021
|
children: d
|
|
14029
|
-
}), /* @__PURE__ */ h(
|
|
14022
|
+
}), /* @__PURE__ */ h(gC, {
|
|
14030
14023
|
side: "right",
|
|
14031
14024
|
align: "center",
|
|
14032
14025
|
hidden: u !== "collapsed" || l,
|
|
14033
14026
|
...a
|
|
14034
14027
|
})] })) : d;
|
|
14035
14028
|
}
|
|
14036
|
-
function
|
|
14029
|
+
function GC({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
14037
14030
|
return /* @__PURE__ */ h(t ? P : "button", {
|
|
14038
14031
|
"data-slot": "sidebar-menu-action",
|
|
14039
14032
|
"data-sidebar": "menu-action",
|
|
@@ -14041,7 +14034,7 @@ function KC({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
14041
14034
|
...r
|
|
14042
14035
|
});
|
|
14043
14036
|
}
|
|
14044
|
-
function
|
|
14037
|
+
function KC({ className: e, ...t }) {
|
|
14045
14038
|
return /* @__PURE__ */ h("div", {
|
|
14046
14039
|
"data-slot": "sidebar-menu-badge",
|
|
14047
14040
|
"data-sidebar": "menu-badge",
|
|
@@ -14049,23 +14042,23 @@ function qC({ className: e, ...t }) {
|
|
|
14049
14042
|
...t
|
|
14050
14043
|
});
|
|
14051
14044
|
}
|
|
14052
|
-
function
|
|
14045
|
+
function qC({ className: e, showIcon: t = !1, ...n }) {
|
|
14053
14046
|
return /* @__PURE__ */ g("div", {
|
|
14054
14047
|
"data-slot": "sidebar-menu-skeleton",
|
|
14055
14048
|
"data-sidebar": "menu-skeleton",
|
|
14056
14049
|
className: q("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
14057
14050
|
...n,
|
|
14058
|
-
children: [t && /* @__PURE__ */ h(
|
|
14051
|
+
children: [t && /* @__PURE__ */ h(wS, {
|
|
14059
14052
|
className: "size-4 rounded-md",
|
|
14060
14053
|
"data-sidebar": "menu-skeleton-icon"
|
|
14061
|
-
}), /* @__PURE__ */ h(
|
|
14054
|
+
}), /* @__PURE__ */ h(wS, {
|
|
14062
14055
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
14063
14056
|
"data-sidebar": "menu-skeleton-text",
|
|
14064
14057
|
style: { "--skeleton-width": "70%" }
|
|
14065
14058
|
})]
|
|
14066
14059
|
});
|
|
14067
14060
|
}
|
|
14068
|
-
function
|
|
14061
|
+
function JC({ className: e, ...t }) {
|
|
14069
14062
|
return /* @__PURE__ */ h("ul", {
|
|
14070
14063
|
"data-slot": "sidebar-menu-sub",
|
|
14071
14064
|
"data-sidebar": "menu-sub",
|
|
@@ -14073,7 +14066,7 @@ function YC({ className: e, ...t }) {
|
|
|
14073
14066
|
...t
|
|
14074
14067
|
});
|
|
14075
14068
|
}
|
|
14076
|
-
function
|
|
14069
|
+
function YC({ className: e, ...t }) {
|
|
14077
14070
|
return /* @__PURE__ */ h("li", {
|
|
14078
14071
|
"data-slot": "sidebar-menu-sub-item",
|
|
14079
14072
|
"data-sidebar": "menu-sub-item",
|
|
@@ -14081,7 +14074,7 @@ function XC({ className: e, ...t }) {
|
|
|
14081
14074
|
...t
|
|
14082
14075
|
});
|
|
14083
14076
|
}
|
|
14084
|
-
function
|
|
14077
|
+
function XC({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
14085
14078
|
return /* @__PURE__ */ h(e ? P : "a", {
|
|
14086
14079
|
"data-slot": "sidebar-menu-sub-button",
|
|
14087
14080
|
"data-sidebar": "menu-sub-button",
|
|
@@ -14093,7 +14086,7 @@ function ZC({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
14093
14086
|
}
|
|
14094
14087
|
//#endregion
|
|
14095
14088
|
//#region node_modules/next-themes/dist/index.mjs
|
|
14096
|
-
var
|
|
14089
|
+
var ZC = (e, t, n, r, i, a, o, s) => {
|
|
14097
14090
|
let c = document.documentElement, l = ["light", "dark"];
|
|
14098
14091
|
function u(t) {
|
|
14099
14092
|
(Array.isArray(e) ? e : [e]).forEach((e) => {
|
|
@@ -14112,10 +14105,10 @@ var QC = (e, t, n, r, i, a, o, s) => {
|
|
|
14112
14105
|
let e = localStorage.getItem(t) || n;
|
|
14113
14106
|
u(o && e === "system" ? f() : e);
|
|
14114
14107
|
} catch {}
|
|
14115
|
-
},
|
|
14108
|
+
}, QC = e.createContext(void 0), $C = {
|
|
14116
14109
|
setTheme: (e) => {},
|
|
14117
14110
|
themes: []
|
|
14118
|
-
},
|
|
14111
|
+
}, ew = () => e.useContext(QC) ?? $C;
|
|
14119
14112
|
e.memo(({ forcedTheme: t, storageKey: n, attribute: r, enableSystem: i, enableColorScheme: a, defaultTheme: o, value: s, themes: c, nonce: l, scriptProps: u }) => {
|
|
14120
14113
|
let d = JSON.stringify([
|
|
14121
14114
|
r,
|
|
@@ -14131,31 +14124,31 @@ e.memo(({ forcedTheme: t, storageKey: n, attribute: r, enableSystem: i, enableCo
|
|
|
14131
14124
|
...u,
|
|
14132
14125
|
suppressHydrationWarning: !0,
|
|
14133
14126
|
nonce: typeof window > "u" ? l : "",
|
|
14134
|
-
dangerouslySetInnerHTML: { __html: `(${
|
|
14127
|
+
dangerouslySetInnerHTML: { __html: `(${ZC.toString()})(${d})` }
|
|
14135
14128
|
});
|
|
14136
14129
|
});
|
|
14137
14130
|
//#endregion
|
|
14138
14131
|
//#region node_modules/sonner/dist/index.mjs
|
|
14139
|
-
function
|
|
14132
|
+
function tw(e) {
|
|
14140
14133
|
if (!e || typeof document > "u") return;
|
|
14141
14134
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
14142
14135
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
14143
14136
|
}
|
|
14144
|
-
var
|
|
14137
|
+
var nw = (e) => {
|
|
14145
14138
|
switch (e) {
|
|
14146
|
-
case "success": return
|
|
14147
|
-
case "info": return
|
|
14148
|
-
case "warning": return
|
|
14149
|
-
case "error": return
|
|
14139
|
+
case "success": return aw;
|
|
14140
|
+
case "info": return sw;
|
|
14141
|
+
case "warning": return ow;
|
|
14142
|
+
case "error": return cw;
|
|
14150
14143
|
default: return null;
|
|
14151
14144
|
}
|
|
14152
|
-
},
|
|
14145
|
+
}, rw = Array(12).fill(0), iw = ({ visible: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
|
|
14153
14146
|
className: ["sonner-loading-wrapper", n].filter(Boolean).join(" "),
|
|
14154
14147
|
"data-visible": e
|
|
14155
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "sonner-spinner" },
|
|
14148
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "sonner-spinner" }, rw.map((e, n) => /* @__PURE__ */ t.createElement("div", {
|
|
14156
14149
|
className: "sonner-loading-bar",
|
|
14157
14150
|
key: `spinner-bar-${n}`
|
|
14158
|
-
})))),
|
|
14151
|
+
})))), aw = /* @__PURE__ */ t.createElement("svg", {
|
|
14159
14152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14160
14153
|
viewBox: "0 0 20 20",
|
|
14161
14154
|
fill: "currentColor",
|
|
@@ -14165,7 +14158,7 @@ var rw = (e) => {
|
|
|
14165
14158
|
fillRule: "evenodd",
|
|
14166
14159
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
14167
14160
|
clipRule: "evenodd"
|
|
14168
|
-
})),
|
|
14161
|
+
})), ow = /* @__PURE__ */ t.createElement("svg", {
|
|
14169
14162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14170
14163
|
viewBox: "0 0 24 24",
|
|
14171
14164
|
fill: "currentColor",
|
|
@@ -14175,7 +14168,7 @@ var rw = (e) => {
|
|
|
14175
14168
|
fillRule: "evenodd",
|
|
14176
14169
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
14177
14170
|
clipRule: "evenodd"
|
|
14178
|
-
})),
|
|
14171
|
+
})), sw = /* @__PURE__ */ t.createElement("svg", {
|
|
14179
14172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14180
14173
|
viewBox: "0 0 20 20",
|
|
14181
14174
|
fill: "currentColor",
|
|
@@ -14185,7 +14178,7 @@ var rw = (e) => {
|
|
|
14185
14178
|
fillRule: "evenodd",
|
|
14186
14179
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
14187
14180
|
clipRule: "evenodd"
|
|
14188
|
-
})),
|
|
14181
|
+
})), cw = /* @__PURE__ */ t.createElement("svg", {
|
|
14189
14182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14190
14183
|
viewBox: "0 0 20 20",
|
|
14191
14184
|
fill: "currentColor",
|
|
@@ -14195,7 +14188,7 @@ var rw = (e) => {
|
|
|
14195
14188
|
fillRule: "evenodd",
|
|
14196
14189
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
14197
14190
|
clipRule: "evenodd"
|
|
14198
|
-
})),
|
|
14191
|
+
})), lw = /* @__PURE__ */ t.createElement("svg", {
|
|
14199
14192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14200
14193
|
width: "12",
|
|
14201
14194
|
height: "12",
|
|
@@ -14215,7 +14208,7 @@ var rw = (e) => {
|
|
|
14215
14208
|
y1: "6",
|
|
14216
14209
|
x2: "18",
|
|
14217
14210
|
y2: "18"
|
|
14218
|
-
})),
|
|
14211
|
+
})), uw = () => {
|
|
14219
14212
|
let [e, n] = t.useState(document.hidden);
|
|
14220
14213
|
return t.useEffect(() => {
|
|
14221
14214
|
let e = () => {
|
|
@@ -14223,7 +14216,7 @@ var rw = (e) => {
|
|
|
14223
14216
|
};
|
|
14224
14217
|
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
|
|
14225
14218
|
}, []), e;
|
|
14226
|
-
},
|
|
14219
|
+
}, dw = 1, fw = new class {
|
|
14227
14220
|
constructor() {
|
|
14228
14221
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
14229
14222
|
let t = this.subscribers.indexOf(e);
|
|
@@ -14233,7 +14226,7 @@ var rw = (e) => {
|
|
|
14233
14226
|
}, this.addToast = (e) => {
|
|
14234
14227
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
14235
14228
|
}, this.create = (e) => {
|
|
14236
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id :
|
|
14229
|
+
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : dw++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
14237
14230
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
14238
14231
|
...n,
|
|
14239
14232
|
...e,
|
|
@@ -14298,7 +14291,7 @@ var rw = (e) => {
|
|
|
14298
14291
|
type: "default",
|
|
14299
14292
|
message: e
|
|
14300
14293
|
});
|
|
14301
|
-
else if (
|
|
14294
|
+
else if (mw(e) && !e.ok) {
|
|
14302
14295
|
a = !1;
|
|
14303
14296
|
let i = typeof n.error == "function" ? await n.error(`HTTP error! status: ${e.status}`) : n.error, o = typeof n.description == "function" ? await n.description(`HTTP error! status: ${e.status}`) : n.description, s = typeof i == "object" && !t.isValidElement(i) ? i : { message: i };
|
|
14304
14297
|
this.create({
|
|
@@ -14342,7 +14335,7 @@ var rw = (e) => {
|
|
|
14342
14335
|
}), c = () => new Promise((e, t) => s.then(() => o[0] === "reject" ? t(o[1]) : e(o[1])).catch(t));
|
|
14343
14336
|
return typeof r != "string" && typeof r != "number" ? { unwrap: c } : Object.assign(r, { unwrap: c });
|
|
14344
14337
|
}, this.custom = (e, t) => {
|
|
14345
|
-
let n = t?.id ||
|
|
14338
|
+
let n = t?.id || dw++;
|
|
14346
14339
|
return this.create({
|
|
14347
14340
|
jsx: e(n),
|
|
14348
14341
|
id: n,
|
|
@@ -14350,41 +14343,41 @@ var rw = (e) => {
|
|
|
14350
14343
|
}), n;
|
|
14351
14344
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
14352
14345
|
}
|
|
14353
|
-
}(),
|
|
14354
|
-
let n = t?.id ||
|
|
14355
|
-
return
|
|
14346
|
+
}(), pw = (e, t) => {
|
|
14347
|
+
let n = t?.id || dw++;
|
|
14348
|
+
return fw.addToast({
|
|
14356
14349
|
title: e,
|
|
14357
14350
|
...t,
|
|
14358
14351
|
id: n
|
|
14359
14352
|
}), n;
|
|
14360
|
-
},
|
|
14361
|
-
Object.assign(
|
|
14362
|
-
success:
|
|
14363
|
-
info:
|
|
14364
|
-
warning:
|
|
14365
|
-
error:
|
|
14366
|
-
custom:
|
|
14367
|
-
message:
|
|
14368
|
-
promise:
|
|
14369
|
-
dismiss:
|
|
14370
|
-
loading:
|
|
14353
|
+
}, mw = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number";
|
|
14354
|
+
Object.assign(pw, {
|
|
14355
|
+
success: fw.success,
|
|
14356
|
+
info: fw.info,
|
|
14357
|
+
warning: fw.warning,
|
|
14358
|
+
error: fw.error,
|
|
14359
|
+
custom: fw.custom,
|
|
14360
|
+
message: fw.message,
|
|
14361
|
+
promise: fw.promise,
|
|
14362
|
+
dismiss: fw.dismiss,
|
|
14363
|
+
loading: fw.loading
|
|
14371
14364
|
}, {
|
|
14372
|
-
getHistory: () =>
|
|
14373
|
-
getToasts: () =>
|
|
14374
|
-
}), nw("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
14375
|
-
function
|
|
14365
|
+
getHistory: () => fw.toasts,
|
|
14366
|
+
getToasts: () => fw.getActiveToasts()
|
|
14367
|
+
}), tw("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
14368
|
+
function hw(e) {
|
|
14376
14369
|
return e.label !== void 0;
|
|
14377
14370
|
}
|
|
14378
|
-
var
|
|
14379
|
-
function
|
|
14371
|
+
var gw = 3, _w = "24px", vw = "16px", yw = 4e3, bw = 356, xw = 14, Sw = 45, Cw = 200;
|
|
14372
|
+
function ww(...e) {
|
|
14380
14373
|
return e.filter(Boolean).join(" ");
|
|
14381
14374
|
}
|
|
14382
|
-
function
|
|
14375
|
+
function Tw(e) {
|
|
14383
14376
|
let [t, n] = e.split("-"), r = [];
|
|
14384
14377
|
return t && r.push(t), n && r.push(n), r;
|
|
14385
14378
|
}
|
|
14386
|
-
var
|
|
14387
|
-
let { invert: n, toast: r, unstyled: i, interacting: a, setHeights: o, visibleToasts: s, heights: c, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = t.useState(null), [k, A] = t.useState(null), [j, M] = t.useState(!1), [N, P] = t.useState(!1), [F, I] = t.useState(!1), [L, R] = t.useState(!1), [z, ee] = t.useState(!1), [B, V] = t.useState(0), [te, ne] = t.useState(0), H = t.useRef(r.duration || b ||
|
|
14379
|
+
var Ew = (e) => {
|
|
14380
|
+
let { invert: n, toast: r, unstyled: i, interacting: a, setHeights: o, visibleToasts: s, heights: c, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = t.useState(null), [k, A] = t.useState(null), [j, M] = t.useState(!1), [N, P] = t.useState(!1), [F, I] = t.useState(!1), [L, R] = t.useState(!1), [z, ee] = t.useState(!1), [B, V] = t.useState(0), [te, ne] = t.useState(0), H = t.useRef(r.duration || b || yw), re = t.useRef(null), ie = t.useRef(null), ae = l === 0, oe = l + 1 <= s, U = r.type, se = r.dismissible !== !1, ce = r.className || "", le = r.descriptionClassName || "", ue = t.useMemo(() => c.findIndex((e) => e.toastId === r.id) || 0, [c, r.id]), de = t.useMemo(() => r.closeButton ?? m, [r.closeButton, m]), fe = t.useMemo(() => r.duration || b || yw, [r.duration, b]), pe = t.useRef(0), me = t.useRef(0), he = t.useRef(0), ge = t.useRef(null), [_e, ve] = x.split("-"), ye = t.useMemo(() => c.reduce((e, t, n) => n >= ue ? e : e + t.height, 0), [c, ue]), be = uw(), xe = r.invert || n, Se = U === "loading";
|
|
14388
14381
|
me.current = t.useMemo(() => ue * S + ye, [ue, ye]), t.useEffect(() => {
|
|
14389
14382
|
H.current = fe;
|
|
14390
14383
|
}, [fe]), t.useEffect(() => {
|
|
@@ -14425,7 +14418,7 @@ var Dw = (e) => {
|
|
|
14425
14418
|
let Ce = t.useCallback(() => {
|
|
14426
14419
|
P(!0), V(me.current), o((e) => e.filter((e) => e.toastId !== r.id)), setTimeout(() => {
|
|
14427
14420
|
f(r);
|
|
14428
|
-
},
|
|
14421
|
+
}, Cw);
|
|
14429
14422
|
}, [
|
|
14430
14423
|
r,
|
|
14431
14424
|
f,
|
|
@@ -14456,18 +14449,18 @@ var Dw = (e) => {
|
|
|
14456
14449
|
}, [Ce, r.delete]);
|
|
14457
14450
|
function we() {
|
|
14458
14451
|
return T?.loading ? /* @__PURE__ */ t.createElement("div", {
|
|
14459
|
-
className:
|
|
14452
|
+
className: ww(w?.loader, r?.classNames?.loader, "sonner-loader"),
|
|
14460
14453
|
"data-visible": U === "loading"
|
|
14461
|
-
}, T.loading) : /* @__PURE__ */ t.createElement(
|
|
14462
|
-
className:
|
|
14454
|
+
}, T.loading) : /* @__PURE__ */ t.createElement(iw, {
|
|
14455
|
+
className: ww(w?.loader, r?.classNames?.loader),
|
|
14463
14456
|
visible: U === "loading"
|
|
14464
14457
|
});
|
|
14465
14458
|
}
|
|
14466
|
-
let Te = r.icon || T?.[U] ||
|
|
14459
|
+
let Te = r.icon || T?.[U] || nw(U);
|
|
14467
14460
|
return /* @__PURE__ */ t.createElement("li", {
|
|
14468
14461
|
tabIndex: 0,
|
|
14469
14462
|
ref: ie,
|
|
14470
|
-
className:
|
|
14463
|
+
className: ww(v, ce, w?.toast, r?.classNames?.toast, w?.default, w?.[U], r?.classNames?.[U]),
|
|
14471
14464
|
"data-sonner-toast": "",
|
|
14472
14465
|
"data-rich-colors": r.richColors ?? p,
|
|
14473
14466
|
"data-styled": !(r.jsx || r.unstyled || i),
|
|
@@ -14510,7 +14503,7 @@ var Dw = (e) => {
|
|
|
14510
14503
|
if (L || !se) return;
|
|
14511
14504
|
ge.current = null;
|
|
14512
14505
|
let e = Number(ie.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ie.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), n = (/* @__PURE__ */ new Date()).getTime() - re.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / n;
|
|
14513
|
-
if (Math.abs(i) >=
|
|
14506
|
+
if (Math.abs(i) >= Sw || a > .11) {
|
|
14514
14507
|
V(me.current), r.onDismiss == null || r.onDismiss.call(r, r), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ce(), R(!0);
|
|
14515
14508
|
return;
|
|
14516
14509
|
} else {
|
|
@@ -14522,7 +14515,7 @@ var Dw = (e) => {
|
|
|
14522
14515
|
onPointerMove: (t) => {
|
|
14523
14516
|
var n, r;
|
|
14524
14517
|
if (!ge.current || !se || window.getSelection()?.toString().length > 0) return;
|
|
14525
|
-
let i = t.clientY - ge.current.y, a = t.clientX - ge.current.x, o = e.swipeDirections ??
|
|
14518
|
+
let i = t.clientY - ge.current.y, a = t.clientX - ge.current.x, o = e.swipeDirections ?? Tw(x);
|
|
14526
14519
|
!D && (Math.abs(a) > 1 || Math.abs(i) > 1) && O(Math.abs(a) > Math.abs(i) ? "x" : "y");
|
|
14527
14520
|
let s = {
|
|
14528
14521
|
x: 0,
|
|
@@ -14548,46 +14541,46 @@ var Dw = (e) => {
|
|
|
14548
14541
|
onClick: Se || !se ? () => {} : () => {
|
|
14549
14542
|
Ce(), r.onDismiss == null || r.onDismiss.call(r, r);
|
|
14550
14543
|
},
|
|
14551
|
-
className:
|
|
14552
|
-
}, T?.close ??
|
|
14544
|
+
className: ww(w?.closeButton, r?.classNames?.closeButton)
|
|
14545
|
+
}, T?.close ?? lw) : null, (U || r.icon || r.promise) && r.icon !== null && (T?.[U] !== null || r.icon) ? /* @__PURE__ */ t.createElement("div", {
|
|
14553
14546
|
"data-icon": "",
|
|
14554
|
-
className:
|
|
14547
|
+
className: ww(w?.icon, r?.classNames?.icon)
|
|
14555
14548
|
}, r.promise || r.type === "loading" && !r.icon ? r.icon || we() : null, r.type === "loading" ? null : Te) : null, /* @__PURE__ */ t.createElement("div", {
|
|
14556
14549
|
"data-content": "",
|
|
14557
|
-
className:
|
|
14550
|
+
className: ww(w?.content, r?.classNames?.content)
|
|
14558
14551
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
14559
14552
|
"data-title": "",
|
|
14560
|
-
className:
|
|
14553
|
+
className: ww(w?.title, r?.classNames?.title)
|
|
14561
14554
|
}, r.jsx ? r.jsx : typeof r.title == "function" ? r.title() : r.title), r.description ? /* @__PURE__ */ t.createElement("div", {
|
|
14562
14555
|
"data-description": "",
|
|
14563
|
-
className:
|
|
14564
|
-
}, typeof r.description == "function" ? r.description() : r.description) : null), /* @__PURE__ */ t.isValidElement(r.cancel) ? r.cancel : r.cancel &&
|
|
14556
|
+
className: ww(y, le, w?.description, r?.classNames?.description)
|
|
14557
|
+
}, typeof r.description == "function" ? r.description() : r.description) : null), /* @__PURE__ */ t.isValidElement(r.cancel) ? r.cancel : r.cancel && hw(r.cancel) ? /* @__PURE__ */ t.createElement("button", {
|
|
14565
14558
|
"data-button": !0,
|
|
14566
14559
|
"data-cancel": !0,
|
|
14567
14560
|
style: r.cancelButtonStyle || g,
|
|
14568
14561
|
onClick: (e) => {
|
|
14569
|
-
|
|
14562
|
+
hw(r.cancel) && se && (r.cancel.onClick == null || r.cancel.onClick.call(r.cancel, e), Ce());
|
|
14570
14563
|
},
|
|
14571
|
-
className:
|
|
14572
|
-
}, r.cancel.label) : null, /* @__PURE__ */ t.isValidElement(r.action) ? r.action : r.action &&
|
|
14564
|
+
className: ww(w?.cancelButton, r?.classNames?.cancelButton)
|
|
14565
|
+
}, r.cancel.label) : null, /* @__PURE__ */ t.isValidElement(r.action) ? r.action : r.action && hw(r.action) ? /* @__PURE__ */ t.createElement("button", {
|
|
14573
14566
|
"data-button": !0,
|
|
14574
14567
|
"data-action": !0,
|
|
14575
14568
|
style: r.actionButtonStyle || _,
|
|
14576
14569
|
onClick: (e) => {
|
|
14577
|
-
|
|
14570
|
+
hw(r.action) && (r.action.onClick == null || r.action.onClick.call(r.action, e), !e.defaultPrevented && Ce());
|
|
14578
14571
|
},
|
|
14579
|
-
className:
|
|
14572
|
+
className: ww(w?.actionButton, r?.classNames?.actionButton)
|
|
14580
14573
|
}, r.action.label) : null);
|
|
14581
14574
|
};
|
|
14582
|
-
function
|
|
14575
|
+
function Dw() {
|
|
14583
14576
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
14584
14577
|
let e = document.documentElement.getAttribute("dir");
|
|
14585
14578
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
14586
14579
|
}
|
|
14587
|
-
function
|
|
14580
|
+
function Ow(e, t) {
|
|
14588
14581
|
let n = {};
|
|
14589
14582
|
return [e, t].forEach((e, t) => {
|
|
14590
|
-
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ?
|
|
14583
|
+
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? vw : _w;
|
|
14591
14584
|
function o(e) {
|
|
14592
14585
|
[
|
|
14593
14586
|
"top",
|
|
@@ -14608,11 +14601,11 @@ function kw(e, t) {
|
|
|
14608
14601
|
}) : o(a);
|
|
14609
14602
|
}), n;
|
|
14610
14603
|
}
|
|
14611
|
-
var
|
|
14612
|
-
let { id: r, invert: i, position: a = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: s, closeButton: c, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: p, duration: m, style: h, visibleToasts: g =
|
|
14613
|
-
w((t) => (t.find((t) => t.id === e.id)?.delete ||
|
|
14604
|
+
var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
14605
|
+
let { id: r, invert: i, position: a = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: s, closeButton: c, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: p, duration: m, style: h, visibleToasts: g = gw, toastOptions: _, dir: y = Dw(), gap: b = xw, icons: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = t.useState([]), T = t.useMemo(() => r ? C.filter((e) => e.toasterId === r) : C.filter((e) => !e.toasterId), [C, r]), E = t.useMemo(() => Array.from(new Set([a].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, a]), [D, O] = t.useState([]), [k, A] = t.useState(!1), [j, M] = t.useState(!1), [N, P] = t.useState(f === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f), F = t.useRef(null), I = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = t.useRef(null), R = t.useRef(!1), z = t.useCallback((e) => {
|
|
14606
|
+
w((t) => (t.find((t) => t.id === e.id)?.delete || fw.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
|
|
14614
14607
|
}, []);
|
|
14615
|
-
return t.useEffect(() =>
|
|
14608
|
+
return t.useEffect(() => fw.subscribe((e) => {
|
|
14616
14609
|
if (e.dismiss) {
|
|
14617
14610
|
requestAnimationFrame(() => {
|
|
14618
14611
|
w((t) => t.map((t) => t.id === e.id ? {
|
|
@@ -14684,7 +14677,7 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14684
14677
|
let [a, o] = n.split("-");
|
|
14685
14678
|
return T.length ? /* @__PURE__ */ t.createElement("ol", {
|
|
14686
14679
|
key: n,
|
|
14687
|
-
dir: y === "auto" ?
|
|
14680
|
+
dir: y === "auto" ? Dw() : y,
|
|
14688
14681
|
tabIndex: -1,
|
|
14689
14682
|
ref: F,
|
|
14690
14683
|
className: l,
|
|
@@ -14694,10 +14687,10 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14694
14687
|
"data-x-position": o,
|
|
14695
14688
|
style: {
|
|
14696
14689
|
"--front-toast-height": `${D[0]?.height || 0}px`,
|
|
14697
|
-
"--width": `${
|
|
14690
|
+
"--width": `${bw}px`,
|
|
14698
14691
|
"--gap": `${b}px`,
|
|
14699
14692
|
...h,
|
|
14700
|
-
...
|
|
14693
|
+
...Ow(u, d)
|
|
14701
14694
|
},
|
|
14702
14695
|
onBlur: (e) => {
|
|
14703
14696
|
R.current && !e.currentTarget.contains(e.relatedTarget) && (R.current = !1, L.current &&= (L.current.focus({ preventScroll: !0 }), null));
|
|
@@ -14715,7 +14708,7 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14715
14708
|
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
|
|
14716
14709
|
},
|
|
14717
14710
|
onPointerUp: () => M(!1)
|
|
14718
|
-
}, T.filter((e) => !e.position && r === 0 || e.position === n).map((r, a) => /* @__PURE__ */ t.createElement(
|
|
14711
|
+
}, T.filter((e) => !e.position && r === 0 || e.position === n).map((r, a) => /* @__PURE__ */ t.createElement(Ew, {
|
|
14719
14712
|
key: r.id,
|
|
14720
14713
|
icons: x,
|
|
14721
14714
|
index: a,
|
|
@@ -14745,9 +14738,9 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14745
14738
|
swipeDirections: e.swipeDirections
|
|
14746
14739
|
}))) : null;
|
|
14747
14740
|
}));
|
|
14748
|
-
}),
|
|
14749
|
-
let { theme: t = "system" } =
|
|
14750
|
-
return /* @__PURE__ */ h(
|
|
14741
|
+
}), Aw = ({ ...e }) => {
|
|
14742
|
+
let { theme: t = "system" } = ew();
|
|
14743
|
+
return /* @__PURE__ */ h(kw, {
|
|
14751
14744
|
theme: t,
|
|
14752
14745
|
className: "toaster group",
|
|
14753
14746
|
icons: {
|
|
@@ -14765,14 +14758,14 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14765
14758
|
},
|
|
14766
14759
|
...e
|
|
14767
14760
|
});
|
|
14768
|
-
},
|
|
14761
|
+
}, jw = "Switch", [Mw, Nw] = No(jw), [Pw, Fw] = Mw(jw), Iw = e.forwardRef((t, n) => {
|
|
14769
14762
|
let { __scopeSwitch: r, name: i, checked: a, defaultChecked: o, required: s, disabled: c, value: l = "on", onCheckedChange: u, form: d, ...f } = t, [p, m] = e.useState(null), _ = O(n, (e) => m(e)), v = e.useRef(!1), y = p ? d || !!p.closest("form") : !0, [b, x] = Lo({
|
|
14770
14763
|
prop: a,
|
|
14771
14764
|
defaultProp: o ?? !1,
|
|
14772
14765
|
onChange: u,
|
|
14773
|
-
caller:
|
|
14766
|
+
caller: jw
|
|
14774
14767
|
});
|
|
14775
|
-
return /* @__PURE__ */ g(
|
|
14768
|
+
return /* @__PURE__ */ g(Pw, {
|
|
14776
14769
|
scope: r,
|
|
14777
14770
|
checked: b,
|
|
14778
14771
|
disabled: c,
|
|
@@ -14781,7 +14774,7 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14781
14774
|
role: "switch",
|
|
14782
14775
|
"aria-checked": b,
|
|
14783
14776
|
"aria-required": s,
|
|
14784
|
-
"data-state":
|
|
14777
|
+
"data-state": Vw(b),
|
|
14785
14778
|
"data-disabled": c ? "" : void 0,
|
|
14786
14779
|
disabled: c,
|
|
14787
14780
|
value: l,
|
|
@@ -14790,7 +14783,7 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14790
14783
|
onClick: Q(t.onClick, (e) => {
|
|
14791
14784
|
x((e) => !e), y && (v.current = e.isPropagationStopped(), v.current || e.stopPropagation());
|
|
14792
14785
|
})
|
|
14793
|
-
}), y && /* @__PURE__ */ h(
|
|
14786
|
+
}), y && /* @__PURE__ */ h(Bw, {
|
|
14794
14787
|
control: p,
|
|
14795
14788
|
bubbles: !v.current,
|
|
14796
14789
|
name: i,
|
|
@@ -14803,18 +14796,18 @@ var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14803
14796
|
})]
|
|
14804
14797
|
});
|
|
14805
14798
|
});
|
|
14806
|
-
|
|
14807
|
-
var
|
|
14808
|
-
let { __scopeSwitch: n, ...r } = e, i =
|
|
14799
|
+
Iw.displayName = jw;
|
|
14800
|
+
var Lw = "SwitchThumb", Rw = e.forwardRef((e, t) => {
|
|
14801
|
+
let { __scopeSwitch: n, ...r } = e, i = Fw(Lw, n);
|
|
14809
14802
|
return /* @__PURE__ */ h($.span, {
|
|
14810
|
-
"data-state":
|
|
14803
|
+
"data-state": Vw(i.checked),
|
|
14811
14804
|
"data-disabled": i.disabled ? "" : void 0,
|
|
14812
14805
|
...r,
|
|
14813
14806
|
ref: t
|
|
14814
14807
|
});
|
|
14815
14808
|
});
|
|
14816
|
-
|
|
14817
|
-
var
|
|
14809
|
+
Rw.displayName = Lw;
|
|
14810
|
+
var zw = "SwitchBubbleInput", Bw = e.forwardRef(({ __scopeSwitch: t, control: n, checked: r, bubbles: i = !0, ...a }, o) => {
|
|
14818
14811
|
let s = e.useRef(null), c = O(s, o), l = Bo(r), u = Vo(n);
|
|
14819
14812
|
return e.useEffect(() => {
|
|
14820
14813
|
let e = s.current;
|
|
@@ -14845,19 +14838,19 @@ var Bw = "SwitchBubbleInput", Vw = e.forwardRef(({ __scopeSwitch: t, control: n,
|
|
|
14845
14838
|
}
|
|
14846
14839
|
});
|
|
14847
14840
|
});
|
|
14848
|
-
|
|
14849
|
-
function
|
|
14841
|
+
Bw.displayName = zw;
|
|
14842
|
+
function Vw(e) {
|
|
14850
14843
|
return e ? "checked" : "unchecked";
|
|
14851
14844
|
}
|
|
14852
|
-
var
|
|
14845
|
+
var Hw = Iw, Uw = Rw;
|
|
14853
14846
|
//#endregion
|
|
14854
14847
|
//#region src/components/Switch.tsx
|
|
14855
|
-
function
|
|
14856
|
-
return /* @__PURE__ */ h(
|
|
14848
|
+
function Ww({ className: e, ...t }) {
|
|
14849
|
+
return /* @__PURE__ */ h(Hw, {
|
|
14857
14850
|
"data-slot": "switch",
|
|
14858
14851
|
className: q("group", "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs", "transition-[background-color] duration-200", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px]", "disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:bg-primary data-[state=unchecked]:bg-default", e),
|
|
14859
14852
|
...t,
|
|
14860
|
-
children: /* @__PURE__ */ h(
|
|
14853
|
+
children: /* @__PURE__ */ h(Uw, {
|
|
14861
14854
|
"data-slot": "switch-thumb",
|
|
14862
14855
|
className: q("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0", "transition-[transform,width] duration-200", "data-[state=unchecked]:translate-x-0", "data-[state=checked]:translate-x-4", "group-active:w-5", "group-active:data-[state=checked]:translate-x-3"),
|
|
14863
14856
|
style: { transitionTimingFunction: "cubic-bezier(0.2, 0, 0, 1)" }
|
|
@@ -14866,56 +14859,56 @@ function Gw({ className: e, ...t }) {
|
|
|
14866
14859
|
}
|
|
14867
14860
|
//#endregion
|
|
14868
14861
|
//#region src/components/Table.tsx
|
|
14869
|
-
function
|
|
14862
|
+
function Gw({ className: e, ...t }) {
|
|
14870
14863
|
return /* @__PURE__ */ h("table", {
|
|
14871
14864
|
"data-slot": "table",
|
|
14872
14865
|
className: q("w-full caption-bottom text-sm", e),
|
|
14873
14866
|
...t
|
|
14874
14867
|
});
|
|
14875
14868
|
}
|
|
14876
|
-
function
|
|
14869
|
+
function Kw({ className: e, ...t }) {
|
|
14877
14870
|
return /* @__PURE__ */ h("thead", {
|
|
14878
14871
|
"data-slot": "table-header",
|
|
14879
14872
|
className: q("[&_tr]:border-b bg-background", e),
|
|
14880
14873
|
...t
|
|
14881
14874
|
});
|
|
14882
14875
|
}
|
|
14883
|
-
function
|
|
14876
|
+
function qw({ className: e, ...t }) {
|
|
14884
14877
|
return /* @__PURE__ */ h("tbody", {
|
|
14885
14878
|
"data-slot": "table-body",
|
|
14886
14879
|
className: q("[&_tr:last-child]:border-0", e),
|
|
14887
14880
|
...t
|
|
14888
14881
|
});
|
|
14889
14882
|
}
|
|
14890
|
-
function
|
|
14883
|
+
function Jw({ className: e, ...t }) {
|
|
14891
14884
|
return /* @__PURE__ */ h("tfoot", {
|
|
14892
14885
|
"data-slot": "table-footer",
|
|
14893
14886
|
className: q("bg-background border-t font-bold [&>tr]:last:border-b-0", e),
|
|
14894
14887
|
...t
|
|
14895
14888
|
});
|
|
14896
14889
|
}
|
|
14897
|
-
function
|
|
14890
|
+
function Yw({ className: e, ...t }) {
|
|
14898
14891
|
return /* @__PURE__ */ h("tr", {
|
|
14899
14892
|
"data-slot": "table-row",
|
|
14900
14893
|
className: q("hover:bg-elevated/30 data-[state=selected]:bg-elevated/70 border-b transition-colors", e),
|
|
14901
14894
|
...t
|
|
14902
14895
|
});
|
|
14903
14896
|
}
|
|
14904
|
-
function
|
|
14897
|
+
function Xw({ className: e, ...t }) {
|
|
14905
14898
|
return /* @__PURE__ */ h("th", {
|
|
14906
14899
|
"data-slot": "table-head",
|
|
14907
14900
|
className: q("text-foreground font-bold h-10 px-2 py-3 text-left align-middle whitespace-nowrap border-r border-border last:border-r-0 [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5", e),
|
|
14908
14901
|
...t
|
|
14909
14902
|
});
|
|
14910
14903
|
}
|
|
14911
|
-
function
|
|
14904
|
+
function Zw({ className: e, ...t }) {
|
|
14912
14905
|
return /* @__PURE__ */ h("td", {
|
|
14913
14906
|
"data-slot": "table-cell",
|
|
14914
14907
|
className: q("px-2 py-3 align-middle whitespace-nowrap border-r border-border last:border-r-0 [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5", e),
|
|
14915
14908
|
...t
|
|
14916
14909
|
});
|
|
14917
14910
|
}
|
|
14918
|
-
function
|
|
14911
|
+
function Qw({ className: e, ...t }) {
|
|
14919
14912
|
return /* @__PURE__ */ h("caption", {
|
|
14920
14913
|
"data-slot": "table-caption",
|
|
14921
14914
|
className: q("text-muted my-4 text-sm", e),
|
|
@@ -14924,14 +14917,14 @@ function $w({ className: e, ...t }) {
|
|
|
14924
14917
|
}
|
|
14925
14918
|
//#endregion
|
|
14926
14919
|
//#region node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
14927
|
-
var
|
|
14920
|
+
var $w = "Tabs", [eT, tT] = No($w, [Th]), nT = Th(), [rT, iT] = eT($w), aT = e.forwardRef((e, t) => {
|
|
14928
14921
|
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = _h(s), [d, f] = Lo({
|
|
14929
14922
|
prop: r,
|
|
14930
14923
|
onChange: i,
|
|
14931
14924
|
defaultProp: a ?? "",
|
|
14932
|
-
caller:
|
|
14925
|
+
caller: $w
|
|
14933
14926
|
});
|
|
14934
|
-
return /* @__PURE__ */ h(
|
|
14927
|
+
return /* @__PURE__ */ h(rT, {
|
|
14935
14928
|
scope: n,
|
|
14936
14929
|
baseId: Ps(),
|
|
14937
14930
|
value: d,
|
|
@@ -14947,12 +14940,12 @@ var eT = "Tabs", [tT, nT] = No(eT, [Th]), rT = Th(), [iT, aT] = tT(eT), oT = e.f
|
|
|
14947
14940
|
})
|
|
14948
14941
|
});
|
|
14949
14942
|
});
|
|
14950
|
-
|
|
14951
|
-
var
|
|
14952
|
-
let { __scopeTabs: n, loop: r = !0, ...i } = e, a =
|
|
14943
|
+
aT.displayName = $w;
|
|
14944
|
+
var oT = "TabsList", sT = e.forwardRef((e, t) => {
|
|
14945
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = iT(oT, n);
|
|
14953
14946
|
return /* @__PURE__ */ h(Lh, {
|
|
14954
14947
|
asChild: !0,
|
|
14955
|
-
...
|
|
14948
|
+
...nT(n),
|
|
14956
14949
|
orientation: a.orientation,
|
|
14957
14950
|
dir: a.dir,
|
|
14958
14951
|
loop: r,
|
|
@@ -14964,9 +14957,9 @@ var sT = "TabsList", cT = e.forwardRef((e, t) => {
|
|
|
14964
14957
|
})
|
|
14965
14958
|
});
|
|
14966
14959
|
});
|
|
14967
|
-
|
|
14968
|
-
var
|
|
14969
|
-
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o =
|
|
14960
|
+
sT.displayName = oT;
|
|
14961
|
+
var cT = "TabsTrigger", lT = e.forwardRef((e, t) => {
|
|
14962
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = iT(cT, n), s = nT(n), c = fT(o.baseId, r), l = pT(o.baseId, r), u = r === o.value;
|
|
14970
14963
|
return /* @__PURE__ */ h(Rh, {
|
|
14971
14964
|
asChild: !0,
|
|
14972
14965
|
...s,
|
|
@@ -14996,9 +14989,9 @@ var lT = "TabsTrigger", uT = e.forwardRef((e, t) => {
|
|
|
14996
14989
|
})
|
|
14997
14990
|
});
|
|
14998
14991
|
});
|
|
14999
|
-
|
|
15000
|
-
var
|
|
15001
|
-
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = t, c =
|
|
14992
|
+
lT.displayName = cT;
|
|
14993
|
+
var uT = "TabsContent", dT = e.forwardRef((t, n) => {
|
|
14994
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = t, c = iT(uT, r), l = fT(c.baseId, i), u = pT(c.baseId, i), d = i === c.value, f = e.useRef(d);
|
|
15002
14995
|
return e.useEffect(() => {
|
|
15003
14996
|
let e = requestAnimationFrame(() => f.current = !1);
|
|
15004
14997
|
return () => cancelAnimationFrame(e);
|
|
@@ -15022,18 +15015,18 @@ var dT = "TabsContent", fT = e.forwardRef((t, n) => {
|
|
|
15022
15015
|
})
|
|
15023
15016
|
});
|
|
15024
15017
|
});
|
|
15025
|
-
|
|
15026
|
-
function
|
|
15018
|
+
dT.displayName = uT;
|
|
15019
|
+
function fT(e, t) {
|
|
15027
15020
|
return `${e}-trigger-${t}`;
|
|
15028
15021
|
}
|
|
15029
|
-
function
|
|
15022
|
+
function pT(e, t) {
|
|
15030
15023
|
return `${e}-content-${t}`;
|
|
15031
15024
|
}
|
|
15032
|
-
var
|
|
15025
|
+
var mT = aT, hT = sT, gT = lT, _T = dT;
|
|
15033
15026
|
//#endregion
|
|
15034
15027
|
//#region src/components/Tabs.tsx
|
|
15035
|
-
function
|
|
15036
|
-
return /* @__PURE__ */ h(
|
|
15028
|
+
function vT({ className: e, orientation: t = "horizontal", ...n }) {
|
|
15029
|
+
return /* @__PURE__ */ h(mT, {
|
|
15037
15030
|
"data-slot": "tabs",
|
|
15038
15031
|
"data-orientation": t,
|
|
15039
15032
|
orientation: t,
|
|
@@ -15041,14 +15034,14 @@ function yT({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
15041
15034
|
...n
|
|
15042
15035
|
});
|
|
15043
15036
|
}
|
|
15044
|
-
var
|
|
15037
|
+
var yT = T("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col group-data-[orientation=vertical]/tabs:rounded-xl data-[variant=line]:rounded-none", {
|
|
15045
15038
|
variants: { variant: {
|
|
15046
15039
|
default: "shadow-md rounded-full dark:border",
|
|
15047
15040
|
line: "gap-1 bg-transparent"
|
|
15048
15041
|
} },
|
|
15049
15042
|
defaultVariants: { variant: "default" }
|
|
15050
15043
|
});
|
|
15051
|
-
function
|
|
15044
|
+
function bT({ className: e, variant: t = "default", children: n, ...r }) {
|
|
15052
15045
|
let i = f(null), a = f(null);
|
|
15053
15046
|
function o() {
|
|
15054
15047
|
let e = i.current, t = a.current;
|
|
@@ -15066,11 +15059,11 @@ function xT({ className: e, variant: t = "default", children: n, ...r }) {
|
|
|
15066
15059
|
subtree: !0,
|
|
15067
15060
|
attributeFilter: ["data-state"]
|
|
15068
15061
|
}), () => t.disconnect();
|
|
15069
|
-
}, []), /* @__PURE__ */ g(
|
|
15062
|
+
}, []), /* @__PURE__ */ g(hT, {
|
|
15070
15063
|
ref: i,
|
|
15071
15064
|
"data-slot": "tabs-list",
|
|
15072
15065
|
"data-variant": t,
|
|
15073
|
-
className: q(
|
|
15066
|
+
className: q(yT({ variant: t }), "relative overflow-hidden", e),
|
|
15074
15067
|
...r,
|
|
15075
15068
|
children: [t === "default" && /* @__PURE__ */ h("div", {
|
|
15076
15069
|
ref: a,
|
|
@@ -15080,15 +15073,15 @@ function xT({ className: e, variant: t = "default", children: n, ...r }) {
|
|
|
15080
15073
|
}), n]
|
|
15081
15074
|
});
|
|
15082
15075
|
}
|
|
15083
|
-
function
|
|
15084
|
-
return /* @__PURE__ */ h(
|
|
15076
|
+
function xT({ className: e, ...t }) {
|
|
15077
|
+
return /* @__PURE__ */ h(gT, {
|
|
15085
15078
|
"data-slot": "tabs-trigger",
|
|
15086
15079
|
className: q("cursor-pointer relative z-10 inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-full border border-transparent px-3 py-2 text-sm font-medium whitespace-nowrap text-foreground/60 transition-colors duration-200 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] disabled:pointer-events-none disabled:opacity-50 group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\"size-\"])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "group-data-[variant=default]/tabs-list:data-[state=active]:bg-transparent group-data-[variant=default]/tabs-list:data-[state=active]:shadow-none data-[state=active]:text-foreground dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-1.25 group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", e),
|
|
15087
15080
|
...t
|
|
15088
15081
|
});
|
|
15089
15082
|
}
|
|
15090
|
-
function
|
|
15091
|
-
return /* @__PURE__ */ h(
|
|
15083
|
+
function ST({ className: e, ...t }) {
|
|
15084
|
+
return /* @__PURE__ */ h(_T, {
|
|
15092
15085
|
"data-slot": "tabs-content",
|
|
15093
15086
|
className: q("flex-1 outline-none", "data-[state=active]:animate-in data-[state=active]:fade-in-0 data-[state=active]:slide-in-from-bottom-3 data-[state=active]:duration-300", e),
|
|
15094
15087
|
...t
|
|
@@ -15096,7 +15089,7 @@ function CT({ className: e, ...t }) {
|
|
|
15096
15089
|
}
|
|
15097
15090
|
//#endregion
|
|
15098
15091
|
//#region src/components/Timer.tsx
|
|
15099
|
-
function
|
|
15092
|
+
function CT({ remainingTime: e, onTimeUp: t }) {
|
|
15100
15093
|
let [n, r] = p(e ?? 0), i = f(null), o = f(t), c = f(!1), l = f(e);
|
|
15101
15094
|
s(() => {
|
|
15102
15095
|
o.current = t;
|
|
@@ -15137,7 +15130,7 @@ function wT({ remainingTime: e, onTimeUp: t }) {
|
|
|
15137
15130
|
}
|
|
15138
15131
|
//#endregion
|
|
15139
15132
|
//#region src/components/ValidatePassword.tsx
|
|
15140
|
-
function
|
|
15133
|
+
function wT({ password: e }) {
|
|
15141
15134
|
function t(e) {
|
|
15142
15135
|
return e.length >= 8;
|
|
15143
15136
|
}
|
|
@@ -15187,7 +15180,7 @@ function TT({ password: e }) {
|
|
|
15187
15180
|
}
|
|
15188
15181
|
//#endregion
|
|
15189
15182
|
//#region src/lib/ThemeTokensProvider.tsx
|
|
15190
|
-
var
|
|
15183
|
+
var TT = n(void 0), ET = () => o(TT), DT = ({ children: e, tokens: n }) => (t.useEffect(() => {
|
|
15191
15184
|
if (!n) return;
|
|
15192
15185
|
let e = "wmoney-theme-tokens", t = document.getElementById(e);
|
|
15193
15186
|
t || (t = document.createElement("style"), t.id = e, document.head.appendChild(t));
|
|
@@ -15198,11 +15191,11 @@ var ET = n(void 0), DT = () => o(ET), OT = ({ children: e, tokens: n }) => (t.us
|
|
|
15198
15191
|
return t.textContent = i, () => {
|
|
15199
15192
|
t?.remove();
|
|
15200
15193
|
};
|
|
15201
|
-
}, [n]), /* @__PURE__ */ h(
|
|
15194
|
+
}, [n]), /* @__PURE__ */ h(TT.Provider, {
|
|
15202
15195
|
value: n,
|
|
15203
15196
|
children: e
|
|
15204
15197
|
}));
|
|
15205
15198
|
//#endregion
|
|
15206
|
-
export { xt as Badge, sn as Button, So as Calendar, Co as CalendarDayButton, wo as Card, ko as CardAction, Ao as CardContent, Oo as CardDescription, jo as CardFooter, To as CardHeader, Eo as CardIcon, Do as CardTitle, gs as Checkbox, yd as Command, bd as CommandDialog, Cd as CommandEmpty, wd as CommandGroup, xd as CommandInput, Ed as CommandItem, Sd as CommandList, Td as CommandSeparator, Dd as CommandShortcut, sh as DatePicker, ch as DatePickerWithRange, ld as Dialog, fd as DialogClose, md as DialogContent, vd as DialogDescription, gd as DialogFooter, hd as DialogHeader, pd as DialogOverlay, dd as DialogPortal, _d as DialogTitle, ud as DialogTrigger, wv as DropdownMenu, Av as DropdownMenuCheckboxItem, Dv as DropdownMenuContent, Ov as DropdownMenuGroup, kv as DropdownMenuItem, Nv as DropdownMenuLabel, Tv as DropdownMenuPortal, jv as DropdownMenuRadioGroup, Mv as DropdownMenuRadioItem, Pv as DropdownMenuSeparator, Fv as DropdownMenuShortcut, Iv as DropdownMenuSub, Rv as DropdownMenuSubContent, Lv as DropdownMenuSubTrigger, Ev as DropdownMenuTrigger, zv as FileDropzone, Jv as FormSection, Yv as Input, Zv as InputGroup, $v as InputGroupAddon, ty as InputGroupButton, iy as InputGroupInput, ny as InputGroupSlot, ry as InputGroupText, ay as InputGroupTextarea, Oy as InputOtp, ky as InputOtpGroup, Dy as InputOtpPattern, jy as InputOtpSeparator, Ay as InputOtpSlot, Md as Label, Ny as MultiSelect, Py as Pagination, Fy as PaginationContent, By as PaginationEllipsis, Iy as PaginationItem, Ly as PaginationLink, zy as PaginationNext, Ry as PaginationPrevious, Lx as Paginator, Rx as PasswordToggle, eh as Popover, rh as PopoverAnchor, nh as PopoverContent, oh as PopoverDescription, ih as PopoverHeader, ah as PopoverTitle, th as PopoverTrigger, fS as RadioGroup, pS as RadioGroupItem,
|
|
15199
|
+
export { xt as Badge, sn as Button, So as Calendar, Co as CalendarDayButton, wo as Card, ko as CardAction, Ao as CardContent, Oo as CardDescription, jo as CardFooter, To as CardHeader, Eo as CardIcon, Do as CardTitle, gs as Checkbox, yd as Command, bd as CommandDialog, Cd as CommandEmpty, wd as CommandGroup, xd as CommandInput, Ed as CommandItem, Sd as CommandList, Td as CommandSeparator, Dd as CommandShortcut, sh as DatePicker, ch as DatePickerWithRange, ld as Dialog, fd as DialogClose, md as DialogContent, vd as DialogDescription, gd as DialogFooter, hd as DialogHeader, pd as DialogOverlay, dd as DialogPortal, _d as DialogTitle, ud as DialogTrigger, wv as DropdownMenu, Av as DropdownMenuCheckboxItem, Dv as DropdownMenuContent, Ov as DropdownMenuGroup, kv as DropdownMenuItem, Nv as DropdownMenuLabel, Tv as DropdownMenuPortal, jv as DropdownMenuRadioGroup, Mv as DropdownMenuRadioItem, Pv as DropdownMenuSeparator, Fv as DropdownMenuShortcut, Iv as DropdownMenuSub, Rv as DropdownMenuSubContent, Lv as DropdownMenuSubTrigger, Ev as DropdownMenuTrigger, zv as FileDropzone, Jv as FormSection, Yv as Input, Zv as InputGroup, $v as InputGroupAddon, ty as InputGroupButton, iy as InputGroupInput, ny as InputGroupSlot, ry as InputGroupText, ay as InputGroupTextarea, Oy as InputOtp, ky as InputOtpGroup, Dy as InputOtpPattern, jy as InputOtpSeparator, Ay as InputOtpSlot, Md as Label, Ny as MultiSelect, Py as Pagination, Fy as PaginationContent, By as PaginationEllipsis, Iy as PaginationItem, Ly as PaginationLink, zy as PaginationNext, Ry as PaginationPrevious, Lx as Paginator, Rx as PasswordToggle, eh as Popover, rh as PopoverAnchor, nh as PopoverContent, oh as PopoverDescription, ih as PopoverHeader, ah as PopoverTitle, th as PopoverTrigger, fS as RadioGroup, pS as RadioGroupItem, Ex as Select, Mx as SelectContent, Dx as SelectGroup, Px as SelectItem, Nx as SelectLabel, jx as SelectScrollDownButton, Ax as SelectScrollUpButton, Fx as SelectSeparator, kx as SelectTrigger, Ox as SelectValue, qv as Separator, mS as Sheet, gS as SheetClose, yS as SheetContent, CS as SheetDescription, xS as SheetFooter, bS as SheetHeader, SS as SheetTitle, hS as SheetTrigger, OC as Sidebar, IC as SidebarContent, PC as SidebarFooter, LC as SidebarGroup, zC as SidebarGroupAction, BC as SidebarGroupContent, RC as SidebarGroupLabel, NC as SidebarHeader, MC as SidebarInput, jC as SidebarInset, VC as SidebarMenu, GC as SidebarMenuAction, KC as SidebarMenuBadge, WC as SidebarMenuButton, HC as SidebarMenuItem, qC as SidebarMenuSkeleton, JC as SidebarMenuSub, XC as SidebarMenuSubButton, YC as SidebarMenuSubItem, DC as SidebarProvider, AC as SidebarRail, FC as SidebarSeparator, kC as SidebarTrigger, wS as Skeleton, nn as Spinner, Ww as Switch, Gw as Table, qw as TableBody, Qw as TableCaption, Zw as TableCell, Jw as TableFooter, Xw as TableHead, Kw as TableHeader, Yw as TableRow, vT as Tabs, ST as TabsContent, bT as TabsList, xT as TabsTrigger, Xv as Textarea, DT as ThemeTokensProvider, CT as Timer, Aw as Toaster, mC as Tooltip, gC as TooltipContent, pC as TooltipProvider, hC as TooltipTrigger, wT as ValidatePassword, rn as buttonVariants, q as cn, yt as getCSSVariable, yT as tabsListVariants, vC as useIsMobile, EC as useSidebar, ET as useThemeTokens };
|
|
15207
15200
|
|
|
15208
15201
|
//# sourceMappingURL=index.js.map
|