@npm-questionpro/wick-ui-lib 2.0.0-next.16 → 2.0.0-next.18

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.
@@ -315,7 +315,7 @@ var We = {
315
315
  })]
316
316
  }) })
317
317
  }) });
318
- }, Ke = { wuButton: "_wuButton_1cs6k_1" }, qe = n.forwardRef((e, t) => Je(e, t)), Je = (e, t) => {
318
+ }, Ke = { wuButton: "_wuButton_1qwvl_1" }, qe = n.forwardRef((e, t) => Je(e, t)), Je = (e, t) => {
319
319
  let { size: n = "md", color: r = "#1B87E6", variant: i = "dots", ...a } = e, o = G("wu-w-[4em] wu-h-[1em] wu-inline-block wu-text-xs wu-relative wu-loader-dot-container"), s = "7px";
320
320
  n === "sm" ? s = "7px" : n === "md" ? s = "12px" : n === "lg" ? s = "18px" : typeof n == "string" && (s = n);
321
321
  let c = {
@@ -377,25 +377,27 @@ var We = {
377
377
  qe.displayName = "WuLoader";
378
378
  //#endregion
379
379
  //#region src/components/button/WuButton.tsx
380
- var q = ({ Icon: e, iconPosition: t = "left", Loader: n, variant: r = "primary", size: i = "md", color: a = "primary", shape: o, floating: s, selected: c, loading: l, className: u, children: d, ...f }) => (r === "iconOnly" && (console.warn("WuButton: \"iconOnly\" variant is deprecated. Please use size=\"icon\" & variant=\"secondary\" instead."), i = "icon", r = "secondary"), r === "rounded" && (console.warn("WuButton: \"rounded\" variant is deprecated. Please use shape=\"rounded\" instead."), r = "primary", o = "rounded"), /* @__PURE__ */ v(b, {
380
+ var q = ({ Icon: e, iconPosition: t = "left", Loader: n, variant: r = "primary", size: i = "md", iconOnly: a, color: o = "primary", shape: s, floating: c, selected: l, loading: u, className: d, children: f, type: p, ...m }) => (r === "iconOnly" && (console.warn("WuButton: \"iconOnly\" variant is deprecated. Please use size=\"icon\" & variant=\"secondary\" instead."), i = "md", r = "secondary", a = !0), r === "rounded" && (console.warn("WuButton: \"rounded\" variant is deprecated. Please use shape=\"rounded\" instead."), r = "primary", s = "rounded"), /* @__PURE__ */ v(b, {
381
381
  "data-slot": "wu-button",
382
+ type: p ?? "button",
382
383
  "data-variant": r,
383
384
  "data-size": i,
384
- "data-color": a,
385
- "data-shape": o,
386
- "data-floating": s ? "true" : void 0,
387
- "data-selected": c ? "true" : void 0,
388
- "aria-pressed": c === void 0 ? void 0 : c ? "true" : "false",
389
- "data-loading": l ? "true" : void 0,
390
- "aria-busy": l ? "true" : void 0,
385
+ "data-icon-only": a ? "true" : void 0,
386
+ "data-color": o,
387
+ "data-shape": s,
388
+ "data-floating": c ? "true" : void 0,
389
+ "data-selected": l ? "true" : void 0,
390
+ "aria-pressed": l === void 0 ? void 0 : l ? "true" : "false",
391
+ "data-loading": u ? "true" : void 0,
392
+ "aria-busy": u ? "true" : void 0,
391
393
  "data-icon-position": e ? t : void 0,
392
- disabled: l || f.disabled,
393
- className: G(Ke.wuButton, u),
394
- ...f,
395
- children: [l && (n ?? /* @__PURE__ */ _(qe, {
394
+ disabled: u || m.disabled,
395
+ className: G(Ke.wuButton, d),
396
+ ...m,
397
+ children: [u && (n ?? /* @__PURE__ */ _(qe, {
396
398
  color: "white",
397
399
  size: "sm"
398
- })), !l && /* @__PURE__ */ v(g, { children: [e, d] })]
400
+ })), !u && /* @__PURE__ */ v(g, { children: [e, f] })]
399
401
  })), Ye = ({ onLogout: e, DataCenter: t }) => /* @__PURE__ */ v("section", {
400
402
  className: "wu-flex wu-justify-between wu-px-4 wu-py-4 wu-text-white wu-bg-gray-lead",
401
403
  children: [/* @__PURE__ */ _("div", {
@@ -1346,17 +1348,17 @@ function Pt({ className: e, classNames: t, dir: n = "ltr", ...r }) {
1346
1348
  Pt.displayName = "Calendar";
1347
1349
  //#endregion
1348
1350
  //#region src/components/calendar/WuCalender.tsx
1349
- var Ft = (e) => /* @__PURE__ */ _(Pt, { ...e }), It = F.Root, Lt = F.Trigger, X = t.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ _(F.Portal, { children: /* @__PURE__ */ _(F.Content, {
1351
+ var Ft = (e) => /* @__PURE__ */ _(Pt, { ...e }), It = F.Root, Lt = F.Trigger, Rt = t.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ _(F.Portal, { children: /* @__PURE__ */ _(F.Content, {
1350
1352
  ref: i,
1351
1353
  align: t,
1352
1354
  sideOffset: n,
1353
1355
  className: G("wu-z-50 wu-w-72 wu-border wu-bg-popover wu-p-4 wu-text-popover-foreground wu-shadow-md wu-outline-none data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-fade-out-0 data-[state=open]:wu-fade-in-0 data-[state=closed]:wu-zoom-out-95 data-[state=open]:wu-zoom-in-95 data-[side=bottom]:wu-slide-in-from-top-2 data-[side=left]:wu-slide-in-from-right-2 data-[side=right]:wu-slide-in-from-left-2 data-[side=top]:wu-slide-in-from-bottom-2", e),
1354
1356
  ...r
1355
1357
  }) }));
1356
- X.displayName = F.Content.displayName;
1358
+ Rt.displayName = F.Content.displayName;
1357
1359
  //#endregion
1358
1360
  //#region src/components/formGroup/components/WuInputError.tsx
1359
- var Rt = (e) => {
1361
+ var zt = (e) => {
1360
1362
  let { message: t, className: n, ...r } = e;
1361
1363
  return /* @__PURE__ */ _("p", {
1362
1364
  ...r,
@@ -1367,7 +1369,7 @@ var Rt = (e) => {
1367
1369
  },
1368
1370
  children: t
1369
1371
  });
1370
- }, zt = (e) => {
1372
+ }, Bt = (e) => {
1371
1373
  let { inputRef: t, maxLength: n = 50, className: r, ...i } = e, [a, o] = p(!1);
1372
1374
  return u(() => {
1373
1375
  (t?.current?.value.length || 0) > .75 * n ? o(!0) : o(!1);
@@ -1380,18 +1382,18 @@ var Rt = (e) => {
1380
1382
  },
1381
1383
  children: a && `${t?.current?.value.length}/${n}`
1382
1384
  });
1383
- }, Bt = z("wu-text-xs wu-font-normal wu-leading-none peer-disabled:wu-cursor-not-allowed peer-disabled:wu-text-gray-subtle peer-readonly:wu-text-gray-subtle peer-required:after:wu-content-['*'] peer-required:after:wu-ml-[2px] peer-required:after:wu-text-red-deep peer-aria-[required]:after:wu-content-['*'] peer-aria-[required]:after:wu-ml-[2px] peer-aria-[required]:after:wu-text-red-deep"), Vt = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ne.Root, {
1385
+ }, Vt = z("wu-text-xs wu-font-normal wu-leading-none peer-disabled:wu-cursor-not-allowed peer-disabled:wu-text-gray-subtle peer-readonly:wu-text-gray-subtle peer-required:after:wu-content-['*'] peer-required:after:wu-ml-[2px] peer-required:after:wu-text-red-deep peer-aria-[required]:after:wu-content-['*'] peer-aria-[required]:after:wu-ml-[2px] peer-aria-[required]:after:wu-text-red-deep"), Ht = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ne.Root, {
1384
1386
  ref: n,
1385
- className: G(Bt(), e),
1387
+ className: G(Vt(), e),
1386
1388
  ...t
1387
1389
  }));
1388
- Vt.displayName = ne.Root.displayName;
1390
+ Ht.displayName = ne.Root.displayName;
1389
1391
  //#endregion
1390
1392
  //#region src/components/formGroup/components/WuLabel.tsx
1391
- var Z = (e) => /* @__PURE__ */ _(Vt, {
1393
+ var X = (e) => /* @__PURE__ */ _(Ht, {
1392
1394
  ...e,
1393
1395
  className: G("wu-text-gray-lead wu-leading-6", e.className)
1394
- }), Ht = ({ Label: e, Error: t, Hint: n, Input: r, labelPosition: i = "top", dir: a = "ltr", className: o, ...s }) => {
1396
+ }), Ut = ({ Label: e, Error: t, Hint: n, Input: r, labelPosition: i = "top", dir: a = "ltr", className: o, ...s }) => {
1395
1397
  let c = G("wu-flex", i === "top" ? "wu-flex-col wu-gap-1" : "wu-flex-row wu-items-center wu-gap-2", o), l = G("wu-flex wu-flex-col wu-gap-1 wu-relative wu-flex-1 wu-form-group-wrapper"), u = G("wu-absolute -wu-bottom-5", a === "ltr" ? "wu-right-0" : "wu-left-0", "wu-form-group-hint"), d = G("wu-absolute -wu-bottom-5", a === "ltr" ? "wu-left-0" : "wu-right-0", "wu-form-group-error");
1396
1398
  return /* @__PURE__ */ v("div", {
1397
1399
  className: c,
@@ -1412,7 +1414,7 @@ var Z = (e) => /* @__PURE__ */ _(Vt, {
1412
1414
  ]
1413
1415
  })]
1414
1416
  });
1415
- }, Ut = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: n, disabled: r, minDate: i = P(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: a = w(/* @__PURE__ */ new Date(), { years: 1 }), dir: o = "ltr", Label: c, labelPosition: l = "top", onReset: d, showResetButton: f = !1, placeholder: m, CustomTrigger: h, align: g = "start", sideOffset: y = -.5, side: b, alignOffset: x, ...S }) => {
1417
+ }, Wt = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: n, disabled: r, minDate: i = P(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: a = w(/* @__PURE__ */ new Date(), { years: 1 }), dir: o = "ltr", Label: c, labelPosition: l = "top", onReset: d, showResetButton: f = !1, placeholder: m, CustomTrigger: h, align: g = "start", sideOffset: y = -.5, side: b, alignOffset: x, ...S }) => {
1416
1418
  let [C, T] = p(), [D, O] = p(""), k = s(() => {
1417
1419
  O(E(kt(C), e)), n && n(C);
1418
1420
  }, [
@@ -1432,7 +1434,7 @@ var Z = (e) => /* @__PURE__ */ _(Vt, {
1432
1434
  t,
1433
1435
  e,
1434
1436
  m
1435
- ]), /* @__PURE__ */ v(Z, {
1437
+ ]), /* @__PURE__ */ v(X, {
1436
1438
  className: G("wu-flex wu-gap-1", l === "left" ? "wu-items-center" : "wu-flex-col wu-items-start", "wu-date-picker-label"),
1437
1439
  dir: o,
1438
1440
  children: [c, /* @__PURE__ */ v(It, { children: [/* @__PURE__ */ _(Dt, {
@@ -1441,7 +1443,7 @@ var Z = (e) => /* @__PURE__ */ _(Vt, {
1441
1443
  placeholder: m,
1442
1444
  CustomTrigger: h,
1443
1445
  ...S
1444
- }), /* @__PURE__ */ _(X, {
1446
+ }), /* @__PURE__ */ _(Rt, {
1445
1447
  className: "wu-p-0 wu-w-fit wu-date-picker-content",
1446
1448
  align: g,
1447
1449
  sideOffset: y,
@@ -1470,18 +1472,18 @@ var Z = (e) => /* @__PURE__ */ _(Vt, {
1470
1472
  })
1471
1473
  })] })]
1472
1474
  });
1473
- }, Wt = {
1475
+ }, Gt = {
1474
1476
  wuDateRangeNativeSidebar: "_wuDateRangeNativeSidebar_numa6_1",
1475
1477
  customInputs: "_customInputs_numa6_28",
1476
1478
  inputsRow: "_inputsRow_numa6_45",
1477
1479
  errorWrapper: "_errorWrapper_numa6_66",
1478
1480
  errorText: "_errorText_numa6_70"
1479
- }, Gt = {
1481
+ }, Kt = {
1480
1482
  wuInputGroup: "_wuInputGroup_vr9pm_1",
1481
1483
  wuInputIcon: "_wuInputIcon_vr9pm_20",
1482
1484
  wuInput: "_wuInput_vr9pm_1",
1483
1485
  passwordToggle: "_passwordToggle_vr9pm_86"
1484
- }, Kt = n.memo(({ showPassword: e, onToggle: t, disabled: r, readOnly: i }) => {
1486
+ }, qt = n.memo(({ showPassword: e, onToggle: t, disabled: r, readOnly: i }) => {
1485
1487
  let a = n.useCallback((e) => {
1486
1488
  if (r || i) {
1487
1489
  e.preventDefault(), e.stopPropagation();
@@ -1496,7 +1498,7 @@ var Z = (e) => /* @__PURE__ */ _(Vt, {
1496
1498
  return /* @__PURE__ */ _("button", {
1497
1499
  type: "button",
1498
1500
  "data-slot": "wu-input-password-toggle",
1499
- className: Gt.passwordToggle,
1501
+ className: Kt.passwordToggle,
1500
1502
  onClick: a,
1501
1503
  disabled: o,
1502
1504
  "aria-disabled": o || void 0,
@@ -1504,12 +1506,12 @@ var Z = (e) => /* @__PURE__ */ _(Vt, {
1504
1506
  children: /* @__PURE__ */ _(J, { icon: e ? "wm-visibility" : "wm-visibility-off" })
1505
1507
  });
1506
1508
  });
1507
- Kt.displayName = "PasswordToggle";
1508
- var qt = n.memo(n.forwardRef(({ className: e, Label: t, labelPosition: r = "top", Icon: i, iconPosition: a = "left", variant: o = "flat", type: c, readonly: l, invalid: u, id: f, ...m }, h) => {
1509
+ qt.displayName = "PasswordToggle";
1510
+ var Jt = n.memo(n.forwardRef(({ className: e, Label: t, labelPosition: r = "top", Icon: i, iconPosition: a = "left", variant: o = "flat", type: c, readonly: l, invalid: u, id: f, ...m }, h) => {
1509
1511
  let g = n.useId(), y = f || g, [b, x] = p(!1), S = s(() => {
1510
1512
  x((e) => !e);
1511
1513
  }, []), { finalIcon: C, finalIconPosition: w } = d(() => c === "password" ? {
1512
- finalIcon: /* @__PURE__ */ _(Kt, {
1514
+ finalIcon: /* @__PURE__ */ _(qt, {
1513
1515
  showPassword: b,
1514
1516
  onToggle: S,
1515
1517
  readOnly: l,
@@ -1525,7 +1527,7 @@ var qt = n.memo(n.forwardRef(({ className: e, Label: t, labelPosition: r = "top"
1525
1527
  a,
1526
1528
  b,
1527
1529
  S
1528
- ]), T = d(() => c === "password" && b ? "text" : c, [c, b]), E = d(() => G(Gt.wuInput, "wu-peer", e), [e]);
1530
+ ]), T = d(() => c === "password" && b ? "text" : c, [c, b]), E = d(() => G(Kt.wuInput, "wu-peer", e), [e]);
1529
1531
  return c === "submit" ? /* @__PURE__ */ _(q, {
1530
1532
  className: e,
1531
1533
  id: y,
@@ -1537,12 +1539,12 @@ var qt = n.memo(n.forwardRef(({ className: e, Label: t, labelPosition: r = "top"
1537
1539
  }) : /* @__PURE__ */ v("div", {
1538
1540
  "data-slot": "wu-input-group",
1539
1541
  role: "group",
1540
- className: Gt.wuInputGroup,
1542
+ className: Kt.wuInputGroup,
1541
1543
  "data-label-position": r,
1542
1544
  "data-icon-position": C && w,
1543
1545
  children: [
1544
1546
  C && /* @__PURE__ */ _("span", {
1545
- className: Gt.wuInputIcon,
1547
+ className: Kt.wuInputIcon,
1546
1548
  children: C
1547
1549
  }),
1548
1550
  /* @__PURE__ */ _(re, {
@@ -1555,17 +1557,17 @@ var qt = n.memo(n.forwardRef(({ className: e, Label: t, labelPosition: r = "top"
1555
1557
  id: y,
1556
1558
  ...m
1557
1559
  }),
1558
- t && /* @__PURE__ */ _(Z, {
1560
+ t && /* @__PURE__ */ _(X, {
1559
1561
  htmlFor: y,
1560
1562
  children: t
1561
1563
  })
1562
1564
  ]
1563
1565
  });
1564
1566
  }));
1565
- qt.displayName = "WuInput";
1567
+ Jt.displayName = "WuInput";
1566
1568
  //#endregion
1567
1569
  //#region src/components/popover/WuPopover.tsx
1568
- var Jt = ({ Trigger: e, children: t, className: n, dir: r, open: i, onOpenChange: a, modal: o, ...s }) => /* @__PURE__ */ v(It, {
1570
+ var Yt = ({ Trigger: e, children: t, className: n, dir: r, open: i, onOpenChange: a, modal: o, ...s }) => /* @__PURE__ */ v(It, {
1569
1571
  open: i,
1570
1572
  onOpenChange: a,
1571
1573
  modal: o,
@@ -1573,16 +1575,16 @@ var Jt = ({ Trigger: e, children: t, className: n, dir: r, open: i, onOpenChange
1573
1575
  asChild: !0,
1574
1576
  dir: r,
1575
1577
  children: e
1576
- }), /* @__PURE__ */ _(X, {
1578
+ }), /* @__PURE__ */ _(Rt, {
1577
1579
  className: G("wu-w-80 wu-p-0 wu-border-blue-p wu-bg-white wu-dark:border-gray-switcher", n),
1578
1580
  dir: r,
1579
1581
  ...s,
1580
1582
  children: t
1581
1583
  })]
1582
- }), Yt = (e) => /* @__PURE__ */ _(I, {
1584
+ }), Xt = (e) => /* @__PURE__ */ _(I, {
1583
1585
  asChild: !0,
1584
1586
  children: /* @__PURE__ */ _(q, { ...e })
1585
- }), Xt = [
1587
+ }), Zt = [
1586
1588
  {
1587
1589
  label: "Last week",
1588
1590
  value: 7
@@ -1599,7 +1601,7 @@ var Jt = ({ Trigger: e, children: t, className: n, dir: r, open: i, onOpenChange
1599
1601
  label: "Last year",
1600
1602
  value: 365
1601
1603
  }
1602
- ], Q = (e) => {
1604
+ ], Z = (e) => {
1603
1605
  if (!e) return "";
1604
1606
  try {
1605
1607
  let t = new Date(e);
@@ -1607,7 +1609,7 @@ var Jt = ({ Trigger: e, children: t, className: n, dir: r, open: i, onOpenChange
1607
1609
  } catch {
1608
1610
  return "";
1609
1611
  }
1610
- }, Zt = (e) => {
1612
+ }, Qt = (e) => {
1611
1613
  if (!e) return null;
1612
1614
  try {
1613
1615
  let t = M(e);
@@ -1615,11 +1617,11 @@ var Jt = ({ Trigger: e, children: t, className: n, dir: r, open: i, onOpenChange
1615
1617
  } catch {
1616
1618
  return null;
1617
1619
  }
1618
- }, Qt = (e, t, n) => !(t && e < N(t) || n && e > N(n)), $t = (e) => P(/* @__PURE__ */ new Date(), { days: e }), en = (e) => e ? P(/* @__PURE__ */ new Date(), { days: 1 }) : /* @__PURE__ */ new Date();
1619
- function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onReset: a, onApply: o, showResetButton: s = !0, maxDate: c, minDate: l, ...u }) {
1620
- let [d, f] = n.useState(Q(r?.from) || Q(l)), [p, m] = n.useState(Q(r?.to) || Q(c)), [h, g] = n.useState(!1), [y, b] = n.useState(""), [x, S] = n.useState("");
1620
+ }, $t = (e, t, n) => !(t && e < N(t) || n && e > N(n)), en = (e) => P(/* @__PURE__ */ new Date(), { days: e }), tn = (e) => e ? P(/* @__PURE__ */ new Date(), { days: 1 }) : /* @__PURE__ */ new Date();
1621
+ function nn({ ranges: e = Zt, excludeToday: t = !0, current: r, onSelect: i, onReset: a, onApply: o, showResetButton: s = !0, maxDate: c, minDate: l, ...u }) {
1622
+ let [d, f] = n.useState(Z(r?.from) || Z(l)), [p, m] = n.useState(Z(r?.to) || Z(c)), [h, g] = n.useState(!1), [y, b] = n.useState(""), [x, S] = n.useState("");
1621
1623
  n.useEffect(() => {
1622
- f(Q(r?.from) || Q(l)), m(Q(r?.to) || Q(c)), b(""), S("");
1624
+ f(Z(r?.from) || Z(l)), m(Z(r?.to) || Z(c)), b(""), S("");
1623
1625
  }, [
1624
1626
  r?.from,
1625
1627
  r?.to,
@@ -1635,13 +1637,13 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1635
1637
  r?.to,
1636
1638
  e
1637
1639
  ]), w = n.useCallback((e) => {
1638
- let n = $t(e), r = en(t);
1639
- f(Q(n)), m(Q(r)), b(""), S(""), g(!1), i?.({
1640
+ let n = en(e), r = tn(t);
1641
+ f(Z(n)), m(Z(r)), b(""), S(""), g(!1), i?.({
1640
1642
  from: n,
1641
1643
  to: r
1642
1644
  });
1643
1645
  }, [t, i]), D = n.useCallback((e, t) => {
1644
- let n = Zt(e);
1646
+ let n = Qt(e);
1645
1647
  if (t === "start" ? (f(e), b("")) : (m(e), S("")), !n) {
1646
1648
  if (e) {
1647
1649
  let e = "Please enter a valid date";
@@ -1649,12 +1651,12 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1649
1651
  }
1650
1652
  return;
1651
1653
  }
1652
- if (!Qt(n, l, c)) {
1654
+ if (!$t(n, l, c)) {
1653
1655
  let e = l && n < N(l) ? `Date must be on or after ${E(l, "MMM d, yyyy")}` : `Date must be on or before ${E(c, "MMM d, yyyy")}`;
1654
1656
  t === "start" ? b(e) : S(e);
1655
1657
  return;
1656
1658
  }
1657
- let r = Zt(t === "start" ? p : d);
1659
+ let r = Qt(t === "start" ? p : d);
1658
1660
  t === "start" && r ? n <= r ? i?.({
1659
1661
  from: n,
1660
1662
  to: r
@@ -1669,7 +1671,7 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1669
1671
  l,
1670
1672
  c
1671
1673
  ]), O = n.useMemo(() => e.map((e) => {
1672
- let n = $t(e.value), r = en(t);
1674
+ let n = en(e.value), r = tn(t);
1673
1675
  return {
1674
1676
  ...e,
1675
1677
  displayStartDate: E(n, "MMM d, yyyy"),
@@ -1677,7 +1679,7 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1677
1679
  };
1678
1680
  }), [e, t]), k = h || r?.from && r?.to && !C;
1679
1681
  return /* @__PURE__ */ v("div", {
1680
- className: Wt.wuDateRangeNativeSidebar,
1682
+ className: Gt.wuDateRangeNativeSidebar,
1681
1683
  ...u,
1682
1684
  children: [/* @__PURE__ */ v("ul", { children: [
1683
1685
  /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _("button", {
@@ -1688,38 +1690,38 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1688
1690
  children: "Custom Range"
1689
1691
  }) }),
1690
1692
  /* @__PURE__ */ v("li", {
1691
- className: Wt.customInputs,
1693
+ className: Gt.customInputs,
1692
1694
  "data-expanded": k,
1693
1695
  children: [/* @__PURE__ */ v("div", {
1694
- className: Wt.inputsRow,
1695
- children: [/* @__PURE__ */ _(qt, {
1696
+ className: Gt.inputsRow,
1697
+ children: [/* @__PURE__ */ _(Jt, {
1696
1698
  type: "date",
1697
1699
  value: d,
1698
1700
  onChange: (e) => D(e.target.value, "start"),
1699
1701
  Label: "Start",
1700
- min: Q(l),
1701
- max: Q(c),
1702
+ min: Z(l),
1703
+ max: Z(c),
1702
1704
  "aria-describedby": y ? "start-date-error" : void 0
1703
- }), /* @__PURE__ */ _(qt, {
1705
+ }), /* @__PURE__ */ _(Jt, {
1704
1706
  type: "date",
1705
1707
  value: p,
1706
1708
  onChange: (e) => D(e.target.value, "end"),
1707
1709
  Label: "End",
1708
- min: d || Q(l),
1709
- max: Q(c),
1710
+ min: d || Z(l),
1711
+ max: Z(c),
1710
1712
  "aria-describedby": x ? "end-date-error" : void 0
1711
1713
  })]
1712
1714
  }), (y || x) && /* @__PURE__ */ v("div", {
1713
- className: Wt.errorWrapper,
1715
+ className: Gt.errorWrapper,
1714
1716
  role: "alert",
1715
1717
  "aria-live": "polite",
1716
1718
  children: [y && /* @__PURE__ */ _("p", {
1717
1719
  id: "start-date-error",
1718
- className: Wt.errorText,
1720
+ className: Gt.errorText,
1719
1721
  children: y
1720
1722
  }), x && /* @__PURE__ */ _("p", {
1721
1723
  id: "end-date-error",
1722
- className: Wt.errorText,
1724
+ className: Gt.errorText,
1723
1725
  children: x
1724
1726
  })]
1725
1727
  })]
@@ -1731,12 +1733,12 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1731
1733
  "aria-label": `Select ${e.label}`,
1732
1734
  children: e.label
1733
1735
  }) }, e.value))
1734
- ] }), /* @__PURE__ */ v("footer", { children: [s && /* @__PURE__ */ _(Yt, {
1736
+ ] }), /* @__PURE__ */ v("footer", { children: [s && /* @__PURE__ */ _(Xt, {
1735
1737
  variant: "secondary",
1736
1738
  Icon: /* @__PURE__ */ _(J, { icon: "wm-refresh" }),
1737
1739
  onClick: a,
1738
1740
  children: "Reset"
1739
- }), /* @__PURE__ */ _(Yt, {
1741
+ }), /* @__PURE__ */ _(Xt, {
1740
1742
  onClick: o,
1741
1743
  disabled: !!(y || x),
1742
1744
  children: "Apply"
@@ -1745,7 +1747,7 @@ function tn({ ranges: e = Xt, excludeToday: t = !0, current: r, onSelect: i, onR
1745
1747
  }
1746
1748
  //#endregion
1747
1749
  //#region src/components/calendar/ui/_sidebar.tsx
1748
- var nn = "MM-dd-yyyy", rn = [
1750
+ var rn = "MM-dd-yyyy", an = [
1749
1751
  {
1750
1752
  label: "Day",
1751
1753
  value: 1
@@ -1766,7 +1768,7 @@ var nn = "MM-dd-yyyy", rn = [
1766
1768
  label: "Year",
1767
1769
  value: 365
1768
1770
  }
1769
- ], an = ({ current: e, onSelect: t, presetRanges: n = jt }) => {
1771
+ ], on = ({ current: e, onSelect: t, presetRanges: n = jt }) => {
1770
1772
  let [r, i] = p(), [a, o] = p(!1), [c, l] = p(""), [f, m] = p(""), [h, g] = p(!1), y = d(() => n.map((e) => e.value), [n]), b = G("wu-flex wu-w-full wu-gap-2 wu-px-4 wu-py-2 wu-text-sm wu-text-gray-lead wu-transition-colors", "wu-rounded-none hover:wu-bg-gray-10 focus:wu-outline-none focus-visible:wu-ring-2", "focus-visible:wu-ring-blue-pHover focus-visible:wu-ring-offset-1 wu-text-start"), x = s((e) => {
1771
1773
  if (e === void 0) {
1772
1774
  i(void 0), o(!0);
@@ -1779,7 +1781,7 @@ var nn = "MM-dd-yyyy", rn = [
1779
1781
  });
1780
1782
  }, [t]), S = s((t, n) => {
1781
1783
  if (!t || !e?.to || !e?.from || !(/* @__PURE__ */ RegExp("(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])-\\d{4}")).test(t)) return !1;
1782
- let r = n === "start" ? j(t, nn, /* @__PURE__ */ new Date()) : new Date(e.from), i = n === "end" ? j(t, nn, /* @__PURE__ */ new Date()) : new Date(e.to);
1784
+ let r = n === "start" ? j(t, rn, /* @__PURE__ */ new Date()) : new Date(e.from), i = n === "end" ? j(t, rn, /* @__PURE__ */ new Date()) : new Date(e.to);
1783
1785
  return D(i, r) ? (g(!0), !1) : (g(!1), !(O(r, e.from) && O(i, e.to)));
1784
1786
  }, [e]), C = s((n, r) => {
1785
1787
  if ((r === "start" ? l : m)(n), S(n, r)) {
@@ -1787,7 +1789,7 @@ var nn = "MM-dd-yyyy", rn = [
1787
1789
  from: e?.from,
1788
1790
  to: e?.to
1789
1791
  };
1790
- r === "start" && (i.from = j(n, nn, /* @__PURE__ */ new Date())), r === "end" && (i.to = j(n, nn, /* @__PURE__ */ new Date())), t(i);
1792
+ r === "start" && (i.from = j(n, rn, /* @__PURE__ */ new Date())), r === "end" && (i.to = j(n, rn, /* @__PURE__ */ new Date())), t(i);
1791
1793
  }
1792
1794
  }, [
1793
1795
  e,
@@ -1796,7 +1798,7 @@ var nn = "MM-dd-yyyy", rn = [
1796
1798
  ]);
1797
1799
  return u(() => {
1798
1800
  if (e?.to && e?.from && A(e.to) && A(e.from)) {
1799
- l(E(e.from, nn)), m(E(e.to, nn));
1801
+ l(E(e.from, rn)), m(E(e.to, rn));
1800
1802
  let t = T(e.to, e.from);
1801
1803
  k(e.to) && y.includes(t + 1) ? (i(t), o(!1)) : (i(void 0), o(!0));
1802
1804
  }
@@ -1805,7 +1807,7 @@ var nn = "MM-dd-yyyy", rn = [
1805
1807
  children: [
1806
1808
  /* @__PURE__ */ _("ul", {
1807
1809
  className: "wu-flex wu-gap-1 wu-py-2 wu-date-picker-batch-list wu-hidden",
1808
- children: rn.map(({ label: e, value: t }) => /* @__PURE__ */ _(Nt, {
1810
+ children: an.map(({ label: e, value: t }) => /* @__PURE__ */ _(Nt, {
1809
1811
  variant: "secondary",
1810
1812
  className: "wu-px-1 wu-py-1 wu-text-xs wu-h-fit wu-min-w-fit disabled:wu-bg-white",
1811
1813
  disabled: t !== 1,
@@ -1827,14 +1829,14 @@ var nn = "MM-dd-yyyy", rn = [
1827
1829
  /* @__PURE__ */ v("div", {
1828
1830
  className: "wu-relative wu-flex wu-gap-3 wu-pt-2 wu-date-picker-range-footer",
1829
1831
  children: [
1830
- /* @__PURE__ */ _(qt, {
1832
+ /* @__PURE__ */ _(Jt, {
1831
1833
  placeholder: "Start Date",
1832
1834
  pattern: At,
1833
1835
  value: c,
1834
1836
  onChange: (e) => C(e.target.value, "start"),
1835
1837
  "aria-label": "Start Date"
1836
1838
  }),
1837
- /* @__PURE__ */ _(qt, {
1839
+ /* @__PURE__ */ _(Jt, {
1838
1840
  placeholder: "End Date",
1839
1841
  pattern: At,
1840
1842
  value: f,
@@ -1852,7 +1854,7 @@ var nn = "MM-dd-yyyy", rn = [
1852
1854
  })
1853
1855
  ]
1854
1856
  });
1855
- }, on = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i, minDate: a = P(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: o = w(/* @__PURE__ */ new Date(), { years: 1 }), dir: s = "ltr", minDateToSelect: c, maxDateToSelect: l, presetRanges: u, Label: d, labelPosition: f = "top", onReset: p, showResetButton: m = !0, placeholder: h, CustomTrigger: y, native: b, align: x = "start", alignOffset: S, side: C, sideOffset: T = -.5, ...D }) => {
1857
+ }, sn = ({ formatString: e = "MMM dd, yyyy", value: t, onChange: r, disabled: i, minDate: a = P(/* @__PURE__ */ new Date(), { years: 5 }), maxDate: o = w(/* @__PURE__ */ new Date(), { years: 1 }), dir: s = "ltr", minDateToSelect: c, maxDateToSelect: l, presetRanges: u, Label: d, labelPosition: f = "top", onReset: p, showResetButton: m = !0, placeholder: h, CustomTrigger: y, native: b, align: x = "start", alignOffset: S, side: C, sideOffset: T = -.5, ...D }) => {
1856
1858
  let [O, k] = n.useState(t), [A, j] = n.useState(t), [M, N] = n.useState(""), F = n.useCallback(() => {
1857
1859
  if (A) {
1858
1860
  let t = A.from, n = A.to;
@@ -1885,7 +1887,7 @@ var nn = "MM-dd-yyyy", rn = [
1885
1887
  t,
1886
1888
  e,
1887
1889
  h
1888
- ]), /* @__PURE__ */ v(Z, {
1890
+ ]), /* @__PURE__ */ v(X, {
1889
1891
  className: G("wu-flex wu-gap-1", f === "left" ? "wu-items-center" : "wu-flex-col wu-items-start", "wu-date-picker-label"),
1890
1892
  dir: s,
1891
1893
  children: [d, /* @__PURE__ */ v(It, {
@@ -1896,14 +1898,14 @@ var nn = "MM-dd-yyyy", rn = [
1896
1898
  placeholder: h,
1897
1899
  CustomTrigger: y,
1898
1900
  ...D
1899
- }), /* @__PURE__ */ _(X, {
1901
+ }), /* @__PURE__ */ _(Rt, {
1900
1902
  className: "wu-flex wu-p-0 wu-border wu-w-fit wu-border-blue-p wu-bg-white",
1901
1903
  align: x,
1902
1904
  sideOffset: T,
1903
1905
  side: C,
1904
1906
  alignOffset: S,
1905
1907
  dir: s,
1906
- children: b ? /* @__PURE__ */ _(tn, {
1908
+ children: b ? /* @__PURE__ */ _(nn, {
1907
1909
  current: A,
1908
1910
  onSelect: (e) => {
1909
1911
  j(e);
@@ -1914,7 +1916,7 @@ var nn = "MM-dd-yyyy", rn = [
1914
1916
  showResetButton: m,
1915
1917
  minDate: a,
1916
1918
  maxDate: o
1917
- }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(an, {
1919
+ }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(on, {
1918
1920
  current: A,
1919
1921
  onSelect: j,
1920
1922
  presetRanges: u
@@ -1944,7 +1946,7 @@ var nn = "MM-dd-yyyy", rn = [
1944
1946
  })]
1945
1947
  })]
1946
1948
  });
1947
- }, sn = n.forwardRef((e, t) => {
1949
+ }, cn = n.forwardRef((e, t) => {
1948
1950
  let { className: n, rounded: r, ...i } = e;
1949
1951
  return /* @__PURE__ */ _("div", {
1950
1952
  className: G("wu-card wu-p-2 wu-pt-1 hover:wu-shadow-card wu-border wu-border-black/20 hover:wu-border-black/30 wu-transition-colors wu-duration-300", r ? "wu-rounded-lg" : "wu-rounded-sm", n),
@@ -1952,8 +1954,8 @@ var nn = "MM-dd-yyyy", rn = [
1952
1954
  ...i
1953
1955
  });
1954
1956
  });
1955
- sn.displayName = "WuCard";
1956
- var cn = n.forwardRef((e, t) => {
1957
+ cn.displayName = "WuCard";
1958
+ var ln = n.forwardRef((e, t) => {
1957
1959
  let { className: n, ...r } = e;
1958
1960
  return /* @__PURE__ */ _("div", {
1959
1961
  ref: t,
@@ -1961,8 +1963,8 @@ var cn = n.forwardRef((e, t) => {
1961
1963
  className: G("wu-p-2 wu-mb-2 wu-border-b wu-border-gray-40 min-h-12 wu-card-header", n)
1962
1964
  });
1963
1965
  });
1964
- cn.displayName = "WuCardHeader";
1965
- var ln = n.forwardRef((e, t) => {
1966
+ ln.displayName = "WuCardHeader";
1967
+ var un = n.forwardRef((e, t) => {
1966
1968
  let { className: n, ...r } = e;
1967
1969
  return /* @__PURE__ */ _("div", {
1968
1970
  ref: t,
@@ -1970,10 +1972,10 @@ var ln = n.forwardRef((e, t) => {
1970
1972
  className: G("wu-p-2 wu-mt-2 wu-border-t wu-border-gray-40 min-h-12 wu-card-footer", n)
1971
1973
  });
1972
1974
  });
1973
- ln.displayName = "WuCardHeader";
1975
+ un.displayName = "WuCardHeader";
1974
1976
  //#endregion
1975
1977
  //#region src/base/ui/checkbox.tsx
1976
- var un = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */ _(ie.Root, {
1978
+ var dn = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */ _(ie.Root, {
1977
1979
  ref: r,
1978
1980
  className: G("wu-h-4 wu-w-4 wu-shrink-0 wu-rounded-[2px] wu-bg-white wu-border wu-border-gray-subtle wu-ring-offset-background focus-visible:wu-outline-none focus-visible:wu-ring-2 focus-visible:wu-ring-ring focus-visible:wu-ring-offset-[1px] data-[state=checked]:wu-bg-blue-p data-[state=checked]:wu-text-white data-[state=checked]:wu-border-none data-[state=checked]:hover:wu-bg-blue-q hover:wu-bg-gray-20 hover:wu-border-blue-p wu-transition-all data-[state=checked]:disabled:wu-bg-gray-20", "disabled:wu-cursor-not-allowed disabled:wu-opacity-50 disabled:data-[state=unchecked]:wu-bg-gray-20 disabled:hover:wu-border-gray-subtle disabled:wu-border-gray-subtle", e),
1979
1981
  ...n,
@@ -1982,10 +1984,10 @@ var un = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */
1982
1984
  children: [!t && /* @__PURE__ */ _("span", { className: "wm-check wu-text-base wu-leading-4" }), t && /* @__PURE__ */ _("span", { className: "wm-check-indeterminate-small wu-text-base wu-leading-4" })]
1983
1985
  })
1984
1986
  }));
1985
- un.displayName = ie.Root.displayName;
1987
+ dn.displayName = ie.Root.displayName;
1986
1988
  //#endregion
1987
1989
  //#region src/components/checkbox/WuCheckbox.tsx
1988
- var dn = n.forwardRef((e, t) => {
1990
+ var Q = n.forwardRef((e, t) => {
1989
1991
  let { disabled: r, checked: i, Label: a, labelPosition: o = "right", className: s, id: c = ke(), partial: l, onChange: u, required: d, readonly: f, ...p } = e;
1990
1992
  return n.useEffect(() => {
1991
1993
  p.defaultChecked !== void 0 && i !== void 0 && console.error("WuCheckbox: Both `checked` and `defaultChecked` cannot be used together. Use only one of them.");
@@ -1995,7 +1997,7 @@ var dn = n.forwardRef((e, t) => {
1995
1997
  className: "wu-checkbox-container"
1996
1998
  }),
1997
1999
  dir: p.dir,
1998
- children: [/* @__PURE__ */ _(un, {
2000
+ children: [/* @__PURE__ */ _(dn, {
1999
2001
  id: c,
2000
2002
  ...p,
2001
2003
  partial: l,
@@ -2005,7 +2007,7 @@ var dn = n.forwardRef((e, t) => {
2005
2007
  className: G("wu-peer wu-checkbox", s),
2006
2008
  required: d,
2007
2009
  ref: t
2008
- }), a && /* @__PURE__ */ _(Z, {
2010
+ }), a && /* @__PURE__ */ _(X, {
2009
2011
  htmlFor: c,
2010
2012
  className: "wu-w-full wu-checkbox-label",
2011
2013
  children: a
@@ -2015,7 +2017,7 @@ var dn = n.forwardRef((e, t) => {
2015
2017
  left: "wu-flex-row-reverse wu-text-right",
2016
2018
  right: "wu-flex-row"
2017
2019
  } } });
2018
- dn.displayName = "WuCheckbox";
2020
+ Q.displayName = "WuCheckbox";
2019
2021
  var pn = {
2020
2022
  WuChip: "_WuChip_1iw18_1",
2021
2023
  WuLabel: "_WuLabel_1iw18_76",
@@ -2247,7 +2249,7 @@ var Dn = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
2247
2249
  disabled: e.disabled,
2248
2250
  className: G("wu-cursor-pointer wu-text-xs wu-items-start wu-leading-4 wu-py-2 wu-combobox-item hover:wu-bg-gray-100", c && "wu-bg-gray-10"),
2249
2251
  dir: a,
2250
- children: [n && /* @__PURE__ */ _(dn, { checked: c }), /* @__PURE__ */ _(On, {
2252
+ children: [n && /* @__PURE__ */ _(Q, { checked: c }), /* @__PURE__ */ _(On, {
2251
2253
  option: e,
2252
2254
  accessorKey: i
2253
2255
  })]
@@ -2342,7 +2344,7 @@ var Wn = (e) => {
2342
2344
  onSelect: r,
2343
2345
  className: G("wu-cursor-pointer wu-text-xs wu-leading-4 wu-py-2 wu-combobox-item"),
2344
2346
  dir: s.dir,
2345
- children: [/* @__PURE__ */ _(dn, {
2347
+ children: [/* @__PURE__ */ _(Q, {
2346
2348
  checked: a || o,
2347
2349
  partial: o,
2348
2350
  "data-partial": o,
@@ -2376,7 +2378,7 @@ var Wn = (e) => {
2376
2378
  allOptions: r,
2377
2379
  enabledOptions: i
2378
2380
  };
2379
- }, Kn = o(qt), qn = ({ data: e, accessorKey: t, value: n, defaultValue: r, Header: i, virtualizedThreshold: a = 100, isEllipse: o, placeholder: c, variant: l, dir: m, onSelect: h, Label: g, maxHeight: y = 420, multiple: b = !1, hasGroup: x = !1, selectAll: S, id: C, disabled: w, labelPosition: T = "top", className: E, onScroll: D, maxContentWidth: O, enableSearch: k = !0, noDataContent: A, selectedToTop: j = !1, ...M }) => {
2381
+ }, Kn = o(Jt), qn = ({ data: e, accessorKey: t, value: n, defaultValue: r, Header: i, virtualizedThreshold: a = 100, isEllipse: o, placeholder: c, variant: l, dir: m, onSelect: h, Label: g, maxHeight: y = 420, multiple: b = !1, hasGroup: x = !1, selectAll: S, id: C, disabled: w, labelPosition: T = "top", className: E, onScroll: D, maxContentWidth: O, enableSearch: k = !0, noDataContent: A, selectedToTop: j = !1, ...M }) => {
2380
2382
  let [N, P] = p(""), [F, I] = p(), [L, ee] = p(!1), [te, R] = p(!1), [z, ne] = p(!1), re = f(null), { allOptions: ie, enabledOptions: ae } = d(() => x || S && !S.includeDisabled ? Gn(e) : {
2381
2383
  allOptions: e,
2382
2384
  groups: [],
@@ -2450,7 +2452,7 @@ var Wn = (e) => {
2450
2452
  className: E,
2451
2453
  id: C,
2452
2454
  ...M
2453
- }), /* @__PURE__ */ _(X, {
2455
+ }), /* @__PURE__ */ _(Rt, {
2454
2456
  className: "wu-min-w-[--radix-popover-trigger-width] wu-max-w-[calc(100vw-32px)] wu-p-0 wu-bg-white wu-border wu-border-blue-p wu-combobox-content",
2455
2457
  align: "start",
2456
2458
  sideOffset: -1,
@@ -2519,7 +2521,7 @@ var Wn = (e) => {
2519
2521
  ]
2520
2522
  })
2521
2523
  })]
2522
- }), g && /* @__PURE__ */ _(Z, {
2524
+ }), g && /* @__PURE__ */ _(X, {
2523
2525
  htmlFor: C,
2524
2526
  className: "wu-combobox-label",
2525
2527
  children: g
@@ -3041,7 +3043,7 @@ function Mr(e) {
3041
3043
  value: t[n.value],
3042
3044
  className: G("data-[selected='true']:wu-bg-gray-100 wu-cursor-pointer wu-text-xs wu-min-h-8 wu-py-0 hover:wu-bg-gray-10", !!l?.(e) && !a && "wu-bg-blue-p/10", o === "rtl" && "wu-justify-end", s, jr("item")),
3043
3045
  disabled: e.disabled
3044
- }, a && /* @__PURE__ */ _(dn, { checked: l?.(e) }), c ? c({
3046
+ }, a && /* @__PURE__ */ _(Q, { checked: l?.(e) }), c ? c({
3045
3047
  value: e,
3046
3048
  isSelected: l?.(e)
3047
3049
  }) : /* @__PURE__ */ _(g, { children: e[n.label] }));
@@ -3077,7 +3079,7 @@ var Nr = n.memo(Mr), Pr = (e) => {
3077
3079
  }, [i, a]), /* @__PURE__ */ v(Tn, {
3078
3080
  className: "data-[selected='true']:wu-bg-gray-100 wu-cursor-pointer wu-text-xs wu-min-h-8 wu-py-0 hover:wu-bg-gray-100",
3079
3081
  onSelect: () => r?.(!o),
3080
- children: [/* @__PURE__ */ _(dn, {
3082
+ children: [/* @__PURE__ */ _(Q, {
3081
3083
  checked: o,
3082
3084
  partial: c
3083
3085
  }), t || "Select All"]
@@ -3182,7 +3184,7 @@ var Nr = n.memo(Mr), Pr = (e) => {
3182
3184
  return /* @__PURE__ */ v("div", {
3183
3185
  className: G("wu-flex wu-text-sm wu-gap-2", O === "top" && "wu-flex-col wu-gap-1", O === "left" && "wu-flex-row", O === "right" && "wu-flex-row-reverse", jr("container")),
3184
3186
  dir: C,
3185
- children: [o && /* @__PURE__ */ _(Z, {
3187
+ children: [o && /* @__PURE__ */ _(X, {
3186
3188
  htmlFor: S,
3187
3189
  className: jr("label"),
3188
3190
  children: o
@@ -3207,7 +3209,7 @@ var Nr = n.memo(Mr), Pr = (e) => {
3207
3209
  id: S,
3208
3210
  dir: C,
3209
3211
  ...M
3210
- }), /* @__PURE__ */ _(X, {
3212
+ }), /* @__PURE__ */ _(Rt, {
3211
3213
  className: G("wu-min-w-[--radix-popover-trigger-width] wu-max-w-[calc(100vw-32px)] wu-w-auto wu-p-0 wu-bg-white wu-border wu-border-blue-p", jr("content")),
3212
3214
  align: "start",
3213
3215
  sideOffset: -1,
@@ -3503,7 +3505,7 @@ var ti = "calc(100vh - 64px)", ni = {
3503
3505
  disabled: e.disabled,
3504
3506
  className: G("wu-cursor-pointer wu-text-xs wu-py-2 wu-leading-4 wu-select-item wu-items-start", c && "wu-bg-gray-10"),
3505
3507
  dir: a,
3506
- children: [n && /* @__PURE__ */ _(dn, { checked: c }), /* @__PURE__ */ _(ui, {
3508
+ children: [n && /* @__PURE__ */ _(Q, { checked: c }), /* @__PURE__ */ _(ui, {
3507
3509
  option: e,
3508
3510
  accessorKey: i
3509
3511
  })]
@@ -3527,7 +3529,7 @@ var ti = "calc(100vh - 64px)", ni = {
3527
3529
  },
3528
3530
  className: G("wu-cursor-pointer wu-text-xs wu-py-2 wu-leading-4 wu-select-item"),
3529
3531
  dir: o.dir,
3530
- children: [/* @__PURE__ */ _(dn, {
3532
+ children: [/* @__PURE__ */ _(Q, {
3531
3533
  "data-partial": a,
3532
3534
  checked: r || a,
3533
3535
  partial: a
@@ -3680,7 +3682,7 @@ var ti = "calc(100vh - 64px)", ni = {
3680
3682
  }, o);
3681
3683
  })
3682
3684
  })]
3683
- })] }), m && /* @__PURE__ */ _(Z, {
3685
+ })] }), m && /* @__PURE__ */ _(X, {
3684
3686
  htmlFor: O.id,
3685
3687
  className: "wu-select-label",
3686
3688
  children: m
@@ -3734,7 +3736,7 @@ var ti = "calc(100vh - 64px)", ni = {
3734
3736
  dir: "ltr",
3735
3737
  placeholder: i,
3736
3738
  formattedString: y
3737
- }), /* @__PURE__ */ v(X, {
3739
+ }), /* @__PURE__ */ v(Rt, {
3738
3740
  className: "wu-flex wu-flex-col wu-gap-4 wu-p-4 wu-bg-white wu-border-blue-p wu-month-picker-content",
3739
3741
  align: "start",
3740
3742
  sideOffset: -1,
@@ -3774,7 +3776,7 @@ var ti = "calc(100vh - 64px)", ni = {
3774
3776
  })
3775
3777
  })
3776
3778
  ]
3777
- })] }), a && /* @__PURE__ */ _(Z, {
3779
+ })] }), a && /* @__PURE__ */ _(X, {
3778
3780
  className: "wu-truncate wu-max-w-[120px] wu-min-w-fit wu-select-label",
3779
3781
  children: a
3780
3782
  })]
@@ -3842,7 +3844,7 @@ var ti = "calc(100vh - 64px)", ni = {
3842
3844
  className: "wu-p-1 wu-pb-0 wu-rounded-sm focus:wu-outline-none focus:wu-bg-gray-25",
3843
3845
  "aria-label": "more",
3844
3846
  children: /* @__PURE__ */ _("span", { className: "wm-more-vert" })
3845
- }), /* @__PURE__ */ _(X, {
3847
+ }), /* @__PURE__ */ _(Rt, {
3846
3848
  className: G(yi.wuPrimaryPopoverContent, "wu-primary-nav-popover-left"),
3847
3849
  align: "start",
3848
3850
  sideOffset: 12,
@@ -3855,7 +3857,7 @@ var ti = "calc(100vh - 64px)", ni = {
3855
3857
  }), /* @__PURE__ */ v(It, { children: [/* @__PURE__ */ _(Lt, {
3856
3858
  className: "sm:wu-hidden",
3857
3859
  children: /* @__PURE__ */ _("span", { className: "wu-text-lg wm-menu" })
3858
- }), /* @__PURE__ */ _(X, {
3860
+ }), /* @__PURE__ */ _(Rt, {
3859
3861
  className: "wu-bg-white wu-border wu-border-blue-p wu-w-fit wu-primary-nav-popover-right",
3860
3862
  align: "end",
3861
3863
  sideOffset: 4,
@@ -3889,7 +3891,7 @@ var ti = "calc(100vh - 64px)", ni = {
3889
3891
  className: "wu-p-1 wu-pb-0 wu-rounded-sm focus:wu-outline-none focus:wu-bg-gray-25",
3890
3892
  "aria-label": "more",
3891
3893
  children: /* @__PURE__ */ _("span", { className: "wm-more-vert" })
3892
- }), /* @__PURE__ */ _(X, {
3894
+ }), /* @__PURE__ */ _(Rt, {
3893
3895
  className: G(Si.wuSecondaryNavPopover, "wu-secondary-nav-popover-left"),
3894
3896
  align: "start",
3895
3897
  sideOffset: 12,
@@ -3902,7 +3904,7 @@ var ti = "calc(100vh - 64px)", ni = {
3902
3904
  }), /* @__PURE__ */ v(It, { children: [/* @__PURE__ */ _(Lt, {
3903
3905
  className: "sm:wu-hidden",
3904
3906
  children: /* @__PURE__ */ _("span", { className: "wu-text-lg wm-menu" })
3905
- }), /* @__PURE__ */ _(X, {
3907
+ }), /* @__PURE__ */ _(Rt, {
3906
3908
  className: "wu-bg-white wu-border wu-border-blue-p wu-w-fit wu-secondary-nav-popover-right",
3907
3909
  align: "end",
3908
3910
  sideOffset: 12,
@@ -4012,7 +4014,7 @@ var Oi = n.forwardRef((e, t) => {
4012
4014
  className: G("w-fit", s.className),
4013
4015
  ref: t,
4014
4016
  style: s.style,
4015
- children: [/* @__PURE__ */ _(Vt, {
4017
+ children: [/* @__PURE__ */ _(Ht, {
4016
4018
  htmlFor: s.id,
4017
4019
  className: "wu-text-sm wu-font-normal wu-text-gray-lead wu-leading-6 wu-radio-group-label",
4018
4020
  children: a
@@ -4025,7 +4027,7 @@ var Oi = n.forwardRef((e, t) => {
4025
4027
  required: e.required,
4026
4028
  "aria-label": e.value,
4027
4029
  className: "wu-peer wu-radio-item"
4028
- }), /* @__PURE__ */ _(Vt, {
4030
+ }), /* @__PURE__ */ _(Ht, {
4029
4031
  htmlFor: e.value,
4030
4032
  className: G(e.required && "after:wu-content-['*'] after:wu-mx-[2px] after:wu-text-rose-500", "wu-radio-item-label"),
4031
4033
  children: e.label
@@ -4044,26 +4046,95 @@ var ki = (e) => {
4044
4046
  "aria-label": "ScrollArea",
4045
4047
  children: [t, /* @__PURE__ */ _(hr, { orientation: "horizontal" })]
4046
4048
  });
4047
- }, Ai = t.forwardRef(({ className: e, type: t, ...n }, r) => /* @__PURE__ */ _("input", {
4049
+ }, Ai = {
4050
+ wuSegment: "_wuSegment_o7faq_1",
4051
+ wuSegmentItem: "_wuSegmentItem_o7faq_43",
4052
+ wuSegmentIndicator: "_wuSegmentIndicator_o7faq_57",
4053
+ wuSegmentItemIcon: "_wuSegmentItemIcon_o7faq_124"
4054
+ }, ji = a(({ options: e, value: t, defaultValue: n, onChange: r, size: i = "md", variant: a = "text", disabled: o = !1, dir: s = "ltr", className: c, style: l, ...u }, d) => {
4055
+ let m = t !== void 0, [h, g] = p(n), y = m ? t : h, b = f([]), x = (e) => o || !!e.disabled, S = e.findIndex((e) => e.value === y), C = (e) => {
4056
+ e.value !== y && (m || g(e.value), r?.(e.value));
4057
+ }, w = (t, n) => {
4058
+ let r = e.length;
4059
+ for (let i = 1; i <= r; i++) {
4060
+ let a = (t + n * i + r) % r;
4061
+ if (!x(e[a])) {
4062
+ b.current[a]?.focus();
4063
+ return;
4064
+ }
4065
+ }
4066
+ }, T = (e, t) => {
4067
+ let n = s === "rtl" ? "ArrowLeft" : "ArrowRight", r = s === "rtl" ? "ArrowRight" : "ArrowLeft";
4068
+ e.key === n || e.key === "ArrowDown" ? (e.preventDefault(), w(t, 1)) : (e.key === r || e.key === "ArrowUp") && (e.preventDefault(), w(t, -1));
4069
+ }, E = {
4070
+ width: `calc((100% - 2 * var(--wu-seg-pad)) / ${e.length})`,
4071
+ transform: `translateX(calc(${S >= 0 ? S : 0} * 100%))`,
4072
+ opacity: +(S >= 0)
4073
+ };
4074
+ return /* @__PURE__ */ v("div", {
4075
+ ref: d,
4076
+ role: "radiogroup",
4077
+ dir: s,
4078
+ "data-size": i,
4079
+ "data-variant": a,
4080
+ "data-disabled": o || void 0,
4081
+ className: G(Ai.wuSegment, c),
4082
+ style: l,
4083
+ ...u,
4084
+ children: [/* @__PURE__ */ _("span", {
4085
+ "aria-hidden": "true",
4086
+ className: Ai.wuSegmentIndicator,
4087
+ style: E
4088
+ }), e.map((e, t) => {
4089
+ let n = x(e), r = e.value === y, i = e.children !== void 0, o = !i && a === "icon" && !!e.icon, s = !i && a === "text" && !!e.label;
4090
+ return /* @__PURE__ */ v("button", {
4091
+ ref: (e) => {
4092
+ b.current[t] = e;
4093
+ },
4094
+ type: "button",
4095
+ role: "radio",
4096
+ "aria-checked": r,
4097
+ "aria-label": e.label ?? e.value,
4098
+ disabled: n,
4099
+ tabIndex: n ? -1 : 0,
4100
+ className: Ai.wuSegmentItem,
4101
+ onClick: () => C(e),
4102
+ onKeyDown: (e) => T(e, t),
4103
+ children: [
4104
+ i && e.children,
4105
+ o && /* @__PURE__ */ _("span", {
4106
+ className: Ai.wuSegmentItemIcon,
4107
+ children: e.icon
4108
+ }),
4109
+ s && e.label
4110
+ ]
4111
+ }, e.value);
4112
+ })]
4113
+ });
4114
+ });
4115
+ ji.displayName = "WuSegment";
4116
+ //#endregion
4117
+ //#region src/base/ui/input.tsx
4118
+ var Mi = t.forwardRef(({ className: e, type: t, ...n }, r) => /* @__PURE__ */ _("input", {
4048
4119
  type: t,
4049
4120
  className: G("wu-flex wu-h-8 wu-w-full wu-border-b wu-border-gray-subtle wu-bg-gray-10 wu-p-2 wu-text-sm wu-font-normal wu-text-gray-lead", "file:wu-border-0 file:wu-bg-gray-40 file:wu-text-gray-notification file:wu-text-sm file:wu-font-normal file:wu-relative file:wu-bottom-[3px]", "wu-placeholder:wu-text-gray-subtle wu-placeholder:wu-font-light", "disabled:wu-cursor-not-allowed disabled:wu-bg-gray-20 disabled:wu-border-gray-40 disabled:wu-text-gray-subtle", "read-only:wu-cursor-not-allowed read-only:wu-bg-gray-20 read-only:wu-border-gray-40 read-only:wu-text-gray-subtle", "focus:wu-border-blue-p focus-visible:wu-outline-none wu-transition-colors hover:wu-border-gray-40", e),
4050
4121
  ref: r,
4051
4122
  ...n
4052
4123
  }));
4053
- Ai.displayName = "Input";
4124
+ Mi.displayName = "Input";
4054
4125
  //#endregion
4055
4126
  //#region src/base/ui/separator.tsx
4056
- var ji = t.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ _(pe.Root, {
4127
+ var Ni = t.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ _(pe.Root, {
4057
4128
  ref: i,
4058
4129
  decorative: n,
4059
4130
  orientation: t,
4060
4131
  className: G("wu-shrink-0 wu-bg-gray-40", t === "horizontal" ? "wu-h-[1px] wu-w-full" : "wu-h-full wu-w-[1px]", e),
4061
4132
  ...r
4062
4133
  }));
4063
- ji.displayName = pe.Root.displayName;
4134
+ Ni.displayName = pe.Root.displayName;
4064
4135
  //#endregion
4065
4136
  //#region src/base/ui/skeleton.tsx
4066
- function Mi({ className: e, ...t }) {
4137
+ function Pi({ className: e, ...t }) {
4067
4138
  return /* @__PURE__ */ _("div", {
4068
4139
  className: G("animate-pulse rounded-md bg-muted", e),
4069
4140
  ...t
@@ -4071,28 +4142,28 @@ function Mi({ className: e, ...t }) {
4071
4142
  }
4072
4143
  //#endregion
4073
4144
  //#region src/hooks/useMobile.tsx
4074
- var Ni = 768;
4075
- function Pi() {
4145
+ var Fi = 768;
4146
+ function Ii() {
4076
4147
  let [e, n] = t.useState(void 0);
4077
4148
  return t.useEffect(() => {
4078
- let e = window.matchMedia(`(max-width: ${Ni - 1}px)`), t = () => {
4079
- n(window.innerWidth < Ni);
4149
+ let e = window.matchMedia(`(max-width: ${Fi - 1}px)`), t = () => {
4150
+ n(window.innerWidth < Fi);
4080
4151
  };
4081
- return e.addEventListener("change", t), n(window.innerWidth < Ni), () => e.removeEventListener("change", t);
4152
+ return e.addEventListener("change", t), n(window.innerWidth < Fi), () => e.removeEventListener("change", t);
4082
4153
  }, []), !!e;
4083
4154
  }
4084
4155
  //#endregion
4085
4156
  //#region src/components/sidebar/shadcn/sidebar.tsx
4086
- var Fi = "sidebar_state", Ii = 3600 * 24 * 7, Li = "256px", Ri = "256px", zi = "3rem", Bi = "b", Vi = t.createContext(null);
4087
- function Hi() {
4088
- let e = t.useContext(Vi);
4157
+ var Li = "sidebar_state", Ri = 3600 * 24 * 7, zi = "256px", Bi = "256px", Vi = "3rem", Hi = "b", Ui = t.createContext(null);
4158
+ function Wi() {
4159
+ let e = t.useContext(Ui);
4089
4160
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
4090
4161
  return e;
4091
4162
  }
4092
- var Ui = t.forwardRef(({ defaultOpen: e = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }, c) => {
4093
- let l = Pi(), [u, d] = t.useState(!1), [f, p] = t.useState(l ? !0 : e), m = n ?? f, h = t.useCallback((e) => {
4163
+ var Gi = t.forwardRef(({ defaultOpen: e = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }, c) => {
4164
+ let l = Ii(), [u, d] = t.useState(!1), [f, p] = t.useState(l ? !0 : e), m = n ?? f, h = t.useCallback((e) => {
4094
4165
  let t = typeof e == "function" ? e(m) : e;
4095
- r ? r(t) : p(t), document.cookie = `${Fi}=${t}; path=/; max-age=${Ii}`;
4166
+ r ? r(t) : p(t), document.cookie = `${Li}=${t}; path=/; max-age=${Ri}`;
4096
4167
  }, [r, m]), g = t.useCallback(() => l ? d((e) => !e) : h((e) => !e), [
4097
4168
  l,
4098
4169
  h,
@@ -4100,7 +4171,7 @@ var Ui = t.forwardRef(({ defaultOpen: e = !0, open: n, onOpenChange: r, classNam
4100
4171
  ]);
4101
4172
  t.useEffect(() => {
4102
4173
  let e = (e) => {
4103
- e.key === Bi && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
4174
+ e.key === Hi && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
4104
4175
  };
4105
4176
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
4106
4177
  }, [g]);
@@ -4121,14 +4192,14 @@ var Ui = t.forwardRef(({ defaultOpen: e = !0, open: n, onOpenChange: r, classNam
4121
4192
  d,
4122
4193
  g
4123
4194
  ]);
4124
- return /* @__PURE__ */ _(Vi.Provider, {
4195
+ return /* @__PURE__ */ _(Ui.Provider, {
4125
4196
  value: y,
4126
4197
  children: /* @__PURE__ */ _(yt, {
4127
4198
  delayDuration: 0,
4128
4199
  children: /* @__PURE__ */ _("div", {
4129
4200
  style: {
4130
- "--sidebar-width": Li,
4131
- "--sidebar-width-icon": zi,
4201
+ "--sidebar-width": zi,
4202
+ "--sidebar-width-icon": Vi,
4132
4203
  ...a
4133
4204
  },
4134
4205
  className: G("wu-group/sidebar-wrapper wu-flex wu-min-h-[calc(100svh-48px)] wu-w-full", i),
@@ -4139,9 +4210,9 @@ var Ui = t.forwardRef(({ defaultOpen: e = !0, open: n, onOpenChange: r, classNam
4139
4210
  })
4140
4211
  });
4141
4212
  });
4142
- Ui.displayName = "SidebarProvider";
4143
- var Wi = t.forwardRef(({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }, o) => {
4144
- let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } = Hi();
4213
+ Gi.displayName = "SidebarProvider";
4214
+ var Ki = t.forwardRef(({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }, o) => {
4215
+ let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } = Wi();
4145
4216
  return n === "none" ? /* @__PURE__ */ _("div", {
4146
4217
  className: G("wu-flex wu-h-full wu-w-[--sidebar-width] wu-flex-col", r),
4147
4218
  ref: o,
@@ -4155,7 +4226,7 @@ var Wi = t.forwardRef(({ side: e = "left", variant: t = "sidebar", collapsible:
4155
4226
  "data-sidebar": "sidebar",
4156
4227
  "data-mobile": "true",
4157
4228
  className: "wu-w-[--sidebar-width] wu-bg-blue-sidebar wu-p-0 [&>button]:wu-hidden",
4158
- style: { "--sidebar-width": Ri },
4229
+ style: { "--sidebar-width": Bi },
4159
4230
  side: e,
4160
4231
  children: /* @__PURE__ */ _("div", {
4161
4232
  className: "wu-flex wu-flex-col wu-w-full wu-h-full",
@@ -4180,9 +4251,9 @@ var Wi = t.forwardRef(({ side: e = "left", variant: t = "sidebar", collapsible:
4180
4251
  })]
4181
4252
  });
4182
4253
  });
4183
- Wi.displayName = "Sidebar";
4184
- var Gi = t.forwardRef(({ className: e, onClick: t, children: n, ...r }, i) => {
4185
- let { toggleSidebar: a } = Hi();
4254
+ Ki.displayName = "Sidebar";
4255
+ var qi = t.forwardRef(({ className: e, onClick: t, children: n, ...r }, i) => {
4256
+ let { toggleSidebar: a } = Wi();
4186
4257
  return /* @__PURE__ */ v(Nt, {
4187
4258
  ref: i,
4188
4259
  "data-sidebar": "trigger",
@@ -4198,9 +4269,9 @@ var Gi = t.forwardRef(({ className: e, onClick: t, children: n, ...r }, i) => {
4198
4269
  })]
4199
4270
  });
4200
4271
  });
4201
- Gi.displayName = "SidebarTrigger";
4202
- var Ki = t.forwardRef(({ className: e, ...t }, n) => {
4203
- let { toggleSidebar: r } = Hi();
4272
+ qi.displayName = "SidebarTrigger";
4273
+ var Ji = t.forwardRef(({ className: e, ...t }, n) => {
4274
+ let { toggleSidebar: r } = Wi();
4204
4275
  return /* @__PURE__ */ _("button", {
4205
4276
  ref: n,
4206
4277
  "data-sidebar": "rail",
@@ -4212,91 +4283,91 @@ var Ki = t.forwardRef(({ className: e, ...t }, n) => {
4212
4283
  ...t
4213
4284
  });
4214
4285
  });
4215
- Ki.displayName = "SidebarRail";
4216
- var qi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("main", {
4286
+ Ji.displayName = "SidebarRail";
4287
+ var Yi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("main", {
4217
4288
  ref: n,
4218
4289
  className: G("wu-relative wu-flex wu-w-full wu-flex-1 wu-flex-col", "md:peer-data-[variant=inset]:wu-m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:wu-ml-2 md:peer-data-[variant=inset]:wu-ml-0 md:peer-data-[variant=inset]:wu-rounded-xl md:peer-data-[variant=inset]:wu-shadow", e),
4219
4290
  ...t
4220
4291
  }));
4221
- qi.displayName = "SidebarInset";
4222
- var Ji = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(Ai, {
4292
+ Yi.displayName = "SidebarInset";
4293
+ var Xi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(Mi, {
4223
4294
  ref: n,
4224
4295
  "data-sidebar": "input",
4225
4296
  className: G("wu-h-8 wu-w-full wu-shadow-none focus-visible:wu-ring-2", e),
4226
4297
  ...t
4227
4298
  }));
4228
- Ji.displayName = "SidebarInput";
4229
- var Yi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4299
+ Xi.displayName = "SidebarInput";
4300
+ var Zi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4230
4301
  ref: n,
4231
4302
  "data-sidebar": "header",
4232
4303
  className: G("wu-flex wu-flex-col wu-gap-2 wu-p-2", e),
4233
4304
  ...t
4234
4305
  }));
4235
- Yi.displayName = "SidebarHeader";
4236
- var Xi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4306
+ Zi.displayName = "SidebarHeader";
4307
+ var Qi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4237
4308
  ref: n,
4238
4309
  "data-sidebar": "footer",
4239
4310
  className: G("wu-flex wu-flex-col wu-gap-2 wu-pb-2", e),
4240
4311
  ...t
4241
4312
  }));
4242
- Xi.displayName = "SidebarFooter";
4243
- var Zi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ji, {
4313
+ Qi.displayName = "SidebarFooter";
4314
+ var $i = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(Ni, {
4244
4315
  ref: n,
4245
4316
  "data-sidebar": "separator",
4246
4317
  className: G("wu-mx-2 wu-w-auto", e),
4247
4318
  ...t
4248
4319
  }));
4249
- Zi.displayName = "SidebarSeparator";
4250
- var Qi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4320
+ $i.displayName = "SidebarSeparator";
4321
+ var ea = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4251
4322
  ref: n,
4252
4323
  "data-sidebar": "content",
4253
4324
  className: G("wu-flex wu-min-h-0 wu-flex-1 wu-flex-col wu-gap-2 wu-overflow-auto group-data-[collapsible=icon]:wu-overflow-hidden", e),
4254
4325
  ...t
4255
4326
  }));
4256
- Qi.displayName = "SidebarContent";
4257
- var $i = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4327
+ ea.displayName = "SidebarContent";
4328
+ var ta = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4258
4329
  ref: n,
4259
4330
  "data-sidebar": "group",
4260
4331
  className: G("wu-relative wu-flex wu-w-full wu-min-w-0 wu-flex-col wu-p-2", e),
4261
4332
  ...t
4262
4333
  }));
4263
- $i.displayName = "SidebarGroup";
4264
- var ea = t.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ _(t ? R : "div", {
4334
+ ta.displayName = "SidebarGroup";
4335
+ var na = t.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ _(t ? R : "div", {
4265
4336
  ref: r,
4266
4337
  "data-sidebar": "group-label",
4267
4338
  className: G("wu-flex wu-h-8 wu-shrink-0 wu-items-center wu-rounded-md wu-px-2 wu-text-xs wu-font-medium wu-outline-none wu-transition-[margin,opacity] wu-duration-150 wu-ease-linear focus-visible:wu-ring-2 [&>svg]:wu-size-4 [&>svg]:wu-shrink-0", "group-data-[collapsible=icon]:wu-opacity-0", e),
4268
4339
  ...n
4269
4340
  }));
4270
- ea.displayName = "SidebarGroupLabel";
4271
- var ta = t.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ _(t ? R : "button", {
4341
+ na.displayName = "SidebarGroupLabel";
4342
+ var ra = t.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ _(t ? R : "button", {
4272
4343
  ref: r,
4273
4344
  "data-sidebar": "group-action",
4274
4345
  className: G("wu-absolute wu-right-3 wu-top-3.5 wu-flex wu-aspect-square wu-w-5 wu-items-center wu-justify-center wu-rounded-md wu-p-0 wu-outline-none wu-transition-transform focus-visible:wu-ring-2 [&>svg]:wu-size-4 [&>svg]:wu-shrink-0", "after:wu-absolute after:wu-inset-2 after:md:wu-hidden", "group-data-[collapsible=icon]:wu-hidden", e),
4275
4346
  ...n
4276
4347
  }));
4277
- ta.displayName = "SidebarGroupAction";
4278
- var na = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4348
+ ra.displayName = "SidebarGroupAction";
4349
+ var ia = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4279
4350
  ref: n,
4280
4351
  "data-sidebar": "group-content",
4281
4352
  className: G("wu-w-full wu-text-sm", e),
4282
4353
  ...t
4283
4354
  }));
4284
- na.displayName = "SidebarGroupContent";
4285
- var ra = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("ul", {
4355
+ ia.displayName = "SidebarGroupContent";
4356
+ var aa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("ul", {
4286
4357
  ref: n,
4287
4358
  "data-sidebar": "menu",
4288
4359
  className: G("wu-flex wu-w-full wu-min-w-0 wu-flex-col wu-gap-1", e),
4289
4360
  ...t
4290
4361
  }));
4291
- ra.displayName = "SidebarMenu";
4292
- var ia = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("li", {
4362
+ aa.displayName = "SidebarMenu";
4363
+ var oa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("li", {
4293
4364
  ref: n,
4294
4365
  "data-sidebar": "menu-item",
4295
4366
  className: G("wu-group/menu-item wu-relative", e),
4296
4367
  ...t
4297
4368
  }));
4298
- ia.displayName = "SidebarMenuItem";
4299
- var aa = z("wu-peer/menu-button wu-flex wu-w-full wu-items-center wu-gap-2 wu-overflow-hidden wu-rounded-md wu-p-2 wu-text-left wu-text-sm wu-outline-none wu-transition-[width,height,padding] focus-visible:wu-ring-2 disabled:wu-pointer-events-none disabled:wu-opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:wu-pr-8 aria-disabled:wu-pointer-events-none aria-disabled:wu-opacity-50 data-[active=true]:wu-font-medium group-data-[collapsible=icon]:!wu-size-8 group-data-[collapsible=icon]:!wu-p-2 [&>span:last-child]:wu-truncate [&>svg]:wu-size-4 [&>svg]:wu-shrink-0", {
4369
+ oa.displayName = "SidebarMenuItem";
4370
+ var sa = z("wu-peer/menu-button wu-flex wu-w-full wu-items-center wu-gap-2 wu-overflow-hidden wu-rounded-md wu-p-2 wu-text-left wu-text-sm wu-outline-none wu-transition-[width,height,padding] focus-visible:wu-ring-2 disabled:wu-pointer-events-none disabled:wu-opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:wu-pr-8 aria-disabled:wu-pointer-events-none aria-disabled:wu-opacity-50 data-[active=true]:wu-font-medium group-data-[collapsible=icon]:!wu-size-8 group-data-[collapsible=icon]:!wu-p-2 [&>span:last-child]:wu-truncate [&>svg]:wu-size-4 [&>svg]:wu-shrink-0", {
4300
4371
  variants: {
4301
4372
  variant: {
4302
4373
  default: "",
@@ -4312,13 +4383,13 @@ var aa = z("wu-peer/menu-button wu-flex wu-w-full wu-items-center wu-gap-2 wu-ov
4312
4383
  variant: "default",
4313
4384
  size: "default"
4314
4385
  }
4315
- }), oa = t.forwardRef(({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }, s) => {
4316
- let c = e ? R : "button", { isMobile: l, state: u } = Hi(), d = /* @__PURE__ */ _(c, {
4386
+ }), ca = t.forwardRef(({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }, s) => {
4387
+ let c = e ? R : "button", { isMobile: l, state: u } = Wi(), d = /* @__PURE__ */ _(c, {
4317
4388
  ref: s,
4318
4389
  "data-sidebar": "menu-button",
4319
4390
  "data-size": r,
4320
4391
  "data-active": t,
4321
- className: G(aa({
4392
+ className: G(sa({
4322
4393
  variant: n,
4323
4394
  size: r
4324
4395
  }), a),
@@ -4334,52 +4405,52 @@ var aa = z("wu-peer/menu-button wu-flex wu-w-full wu-items-center wu-gap-2 wu-ov
4334
4405
  ...i
4335
4406
  })] })) : d;
4336
4407
  });
4337
- oa.displayName = "SidebarMenuButton";
4338
- var sa = t.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, i) => /* @__PURE__ */ _(t ? R : "button", {
4408
+ ca.displayName = "SidebarMenuButton";
4409
+ var la = t.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, i) => /* @__PURE__ */ _(t ? R : "button", {
4339
4410
  ref: i,
4340
4411
  "data-sidebar": "menu-action",
4341
4412
  className: G("wu-absolute wu-right-1 wu-top-1.5 wu-flex wu-aspect-square wu-w-5 wu-items-center wu-justify-center wu-rounded-md wu-p-0 wu-outline-none wu-transition-transform focus-visible:wu-ring-2 [&>svg]:wu-size-4 [&>svg]:wu-shrink-0", "after:wu-absolute after:wu-inset-2 after:md:wu-hidden", "peer-data-[size=sm]/menu-button:wu-top-1", "peer-data-[size=default]/menu-button:wu-top-1.5", "peer-data-[size=lg]/menu-button:wu-top-2.5", "group-data-[collapsible=icon]:wu-hidden", n && "group-focus-within/menu-item:wu-opacity-100 group-hover/menu-item:wu-opacity-100 data-[state=open]:wu-opacity-100 md:wu-opacity-0", e),
4342
4413
  ...r
4343
4414
  }));
4344
- sa.displayName = "SidebarMenuAction";
4345
- var ca = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4415
+ la.displayName = "SidebarMenuAction";
4416
+ var ua = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
4346
4417
  ref: n,
4347
4418
  "data-sidebar": "menu-badge",
4348
4419
  className: G("wu-pointer-events-none wu-absolute wu-right-1 wu-flex wu-h-5 wu-min-w-5 wu-select-none wu-items-center wu-justify-center wu-rounded-md wu-px-1 wu-text-xs wu-font-medium wu-tabular-nums", "", "peer-data-[size=sm]/menu-button:wu-top-1", "peer-data-[size=default]/menu-button:wu-top-1.5", "peer-data-[size=lg]/menu-button:wu-top-2.5", "group-data-[collapsible=icon]:wu-hidden", e),
4349
4420
  ...t
4350
4421
  }));
4351
- ca.displayName = "SidebarMenuBadge";
4352
- var la = t.forwardRef(({ className: e, showIcon: n = !1, ...r }, i) => {
4422
+ ua.displayName = "SidebarMenuBadge";
4423
+ var da = t.forwardRef(({ className: e, showIcon: n = !1, ...r }, i) => {
4353
4424
  let a = t.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
4354
4425
  return /* @__PURE__ */ v("div", {
4355
4426
  ref: i,
4356
4427
  "data-sidebar": "menu-skeleton",
4357
4428
  className: G("wu-flex wu-h-8 wu-items-center wu-gap-2 wu-rounded-md wu-px-2", e),
4358
4429
  ...r,
4359
- children: [n && /* @__PURE__ */ _(Mi, {
4430
+ children: [n && /* @__PURE__ */ _(Pi, {
4360
4431
  className: "wu-rounded-md wu-size-4",
4361
4432
  "data-sidebar": "menu-skeleton-icon"
4362
- }), /* @__PURE__ */ _(Mi, {
4433
+ }), /* @__PURE__ */ _(Pi, {
4363
4434
  className: "wu-h-4 wu-max-w-[--skeleton-width] wu-flex-1",
4364
4435
  "data-sidebar": "menu-skeleton-text",
4365
4436
  style: { "--skeleton-width": a }
4366
4437
  })]
4367
4438
  });
4368
4439
  });
4369
- la.displayName = "SidebarMenuSkeleton";
4370
- var ua = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("ul", {
4440
+ da.displayName = "SidebarMenuSkeleton";
4441
+ var fa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("ul", {
4371
4442
  ref: n,
4372
4443
  "data-sidebar": "menu-sub",
4373
4444
  className: G("wu-mx-3.5 wu-flex wu-min-w-0 wu-translate-x-px wu-flex-col wu-gap-1 wu-border-l wu-px-2.5 wu-py-0.5", "group-data-[collapsible=icon]:wu-hidden", e),
4374
4445
  ...t
4375
4446
  }));
4376
- ua.displayName = "SidebarMenuSub";
4377
- var da = t.forwardRef(({ ...e }, t) => /* @__PURE__ */ _("li", {
4447
+ fa.displayName = "SidebarMenuSub";
4448
+ var pa = t.forwardRef(({ ...e }, t) => /* @__PURE__ */ _("li", {
4378
4449
  ref: t,
4379
4450
  ...e
4380
4451
  }));
4381
- da.displayName = "SidebarMenuSubItem";
4382
- var fa = t.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...i }, a) => /* @__PURE__ */ _(e ? R : "a", {
4452
+ pa.displayName = "SidebarMenuSubItem";
4453
+ var ma = t.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...i }, a) => /* @__PURE__ */ _(e ? R : "a", {
4383
4454
  ref: a,
4384
4455
  "data-sidebar": "menu-sub-button",
4385
4456
  "data-size": t,
@@ -4387,39 +4458,39 @@ var fa = t.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className
4387
4458
  className: G("wu-flex wu-h-7 wu-min-w-0 wu-translate-x-px wu-items-center wu-gap-2 wu-overflow-hidden wu-rounded-md wu-px-2 wu-outline-none focus-visible:wu-ring-2 disabled:wu-pointer-events-none disabled:wu-opacity-50 aria-disabled:wu-pointer-events-none aria-disabled:wu-opacity-50 [&>span:last-child]:wu-truncate [&>svg]:wu-size-4 [&>svg]:wu-shrink-0", "data-[active=true]:wu-bg-sidebar-accent data-[active=true]:wu-text-sidebar-accent-foreground", t === "sm" && "wu-text-xs", t === "md" && "wu-text-sm", "group-data-[collapsible=icon]:wu-hidden", r),
4388
4459
  ...i
4389
4460
  }));
4390
- fa.displayName = "SidebarMenuSubButton";
4461
+ ma.displayName = "SidebarMenuSubButton";
4391
4462
  //#endregion
4392
4463
  //#region src/components/sidebar/WuSidebar.tsx
4393
- var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i, onOpenChange: a, style: o }) => /* @__PURE__ */ v(Ui, {
4464
+ var ha = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i, onOpenChange: a, style: o }) => /* @__PURE__ */ v(Gi, {
4394
4465
  defaultOpen: r,
4395
4466
  open: i,
4396
4467
  onOpenChange: a,
4397
- children: [/* @__PURE__ */ v(Wi, {
4468
+ children: [/* @__PURE__ */ v(Ki, {
4398
4469
  variant: "sidebar",
4399
4470
  collapsible: "icon",
4400
4471
  className: G("wu-top-12 wu-h-[calc(100%-48px)] wu-shadow-sidebar wu-border-none", n),
4401
4472
  style: o,
4402
4473
  role: "complementary",
4403
- children: [/* @__PURE__ */ _(Yi, {
4474
+ children: [/* @__PURE__ */ _(Zi, {
4404
4475
  className: "wu-py-2",
4405
- children: /* @__PURE__ */ _(ma, {})
4476
+ children: /* @__PURE__ */ _(ga, {})
4406
4477
  }), t]
4407
- }), /* @__PURE__ */ _(qi, {
4478
+ }), /* @__PURE__ */ _(Yi, {
4408
4479
  className: "wu-contain-inline-size",
4409
4480
  children: e
4410
4481
  })]
4411
- }), ma = (e) => {
4412
- let { state: t, isMobile: n, openMobile: r } = Hi();
4413
- return /* @__PURE__ */ _(Gi, {
4482
+ }), ga = (e) => {
4483
+ let { state: t, isMobile: n, openMobile: r } = Wi();
4484
+ return /* @__PURE__ */ _(qi, {
4414
4485
  ...e,
4415
4486
  children: /* @__PURE__ */ _(Br, { showMenu: n ? r : t === "expanded" })
4416
4487
  });
4417
- }, ha = ({ className: e, children: t, ...n }) => {
4488
+ }, _a = ({ className: e, children: t, ...n }) => {
4418
4489
  let r = f(null), i = f(null), a = ({ currentTarget: e }) => {
4419
4490
  let { scrollTop: t, clientHeight: n, scrollHeight: a } = e;
4420
4491
  r.current && r.current.classList.toggle("wu-border-[#1b338014]", t !== 0), i.current && i.current.classList.toggle("wu-border-[#1b338014]", t + n !== a);
4421
4492
  }, o = "wu-w-[calc(100%-16px)] wu-mx-auto wu-border-transparent";
4422
- return /* @__PURE__ */ v(Qi, {
4493
+ return /* @__PURE__ */ v(ea, {
4423
4494
  ...n,
4424
4495
  className: G("wu-overflow-hidden wu-gap-0", e),
4425
4496
  children: [
@@ -4441,21 +4512,21 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4441
4512
  })
4442
4513
  ]
4443
4514
  });
4444
- }, ga = (e) => /* @__PURE__ */ _(Xi, {
4515
+ }, va = (e) => /* @__PURE__ */ _(Qi, {
4445
4516
  ...e,
4446
4517
  children: e.children
4447
- }), _a = ({ label: e, children: t, ...n }) => /* @__PURE__ */ v($i, {
4518
+ }), ya = ({ label: e, children: t, ...n }) => /* @__PURE__ */ v(ta, {
4448
4519
  ...n,
4449
4520
  className: "wu-p-0",
4450
4521
  children: [/* @__PURE__ */ _("div", {
4451
4522
  className: "wu-h-8",
4452
- children: /* @__PURE__ */ _(ea, {
4523
+ children: /* @__PURE__ */ _(na, {
4453
4524
  className: "wu-items-end wu-px-4 wu-text-xs wu-font-normal wu-leading-4 wu-text-blue-q",
4454
4525
  children: e
4455
4526
  })
4456
- }), /* @__PURE__ */ _(na, { children: /* @__PURE__ */ _(ra, { children: t }) })]
4457
- }), va = (e) => /* @__PURE__ */ _(ra, { ...e }), ya = ({ Icon: e, children: t, className: r, isActive: i, ...a }) => {
4458
- let { state: o } = Hi(), [s, c] = n.useState(), l = Pi(), u = n.isValidElement(t) ? n.cloneElement(t, { children: /* @__PURE__ */ v("div", {
4527
+ }), /* @__PURE__ */ _(ia, { children: /* @__PURE__ */ _(aa, { children: t }) })]
4528
+ }), ba = (e) => /* @__PURE__ */ _(aa, { ...e }), xa = ({ Icon: e, children: t, className: r, isActive: i, ...a }) => {
4529
+ let { state: o } = Wi(), [s, c] = n.useState(), l = Ii(), u = n.isValidElement(t) ? n.cloneElement(t, { children: /* @__PURE__ */ v("div", {
4459
4530
  className: "wu-flex wu-items-center wu-overflow-hidden wu-text-base wu-truncate wu-text-ellipsis",
4460
4531
  children: [/* @__PURE__ */ _("div", {
4461
4532
  className: "wu-relative wu-right-1",
@@ -4476,10 +4547,10 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4476
4547
  }), d = f(null);
4477
4548
  return n.useEffect(() => {
4478
4549
  c(d.current?.textContent || "");
4479
- }, []), /* @__PURE__ */ _(ia, {
4550
+ }, []), /* @__PURE__ */ _(oa, {
4480
4551
  ...a,
4481
4552
  className: "wu-flex wu-items-center wu-gap-2 wu-px-2",
4482
- children: /* @__PURE__ */ _(oa, {
4553
+ children: /* @__PURE__ */ _(ca, {
4483
4554
  className: G("wu-flex wu-items-center wu-text-blue-q hover:wu-bg-blue-sidebarHover wu-cursor-pointer wu-h-8 wu-rounded-sm", r, i && "wu-bg-white wu-shadow-[4px_4px_16px_0_#1B338014] wu-font-medium wu-text-blue-p hover:wu-bg-white wu-cursor-default"),
4484
4555
  isActive: i,
4485
4556
  tooltip: s,
@@ -4488,11 +4559,11 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4488
4559
  children: u
4489
4560
  })
4490
4561
  });
4491
- }, ba = ({ Title: e, Icon: t, children: n, className: r, ...i }) => {
4492
- let { state: a } = Hi(), o = Pi();
4562
+ }, Sa = ({ Title: e, Icon: t, children: n, className: r, ...i }) => {
4563
+ let { state: a } = Wi(), o = Ii();
4493
4564
  return /* @__PURE__ */ v(me.Root, { children: [/* @__PURE__ */ _(me.Trigger, { render: (n) => {
4494
4565
  let r = "data-panel-open" in n;
4495
- return /* @__PURE__ */ v(ya, {
4566
+ return /* @__PURE__ */ v(xa, {
4496
4567
  Icon: t,
4497
4568
  ...n,
4498
4569
  children: [e, (a === "expanded" || o) && /* @__PURE__ */ _(J, {
@@ -4505,7 +4576,7 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4505
4576
  ...i,
4506
4577
  children: n
4507
4578
  })] });
4508
- }, xa = new Map([
4579
+ }, Ca = new Map([
4509
4580
  [-3, {
4510
4581
  top: -20,
4511
4582
  left: -4,
@@ -4559,14 +4630,14 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4559
4630
  transition: "all 0.3s ease-in-out, z-index 0.3s 0.10s",
4560
4631
  position: "absolute"
4561
4632
  }]
4562
- ]), Sa = (e, t, n = 1) => {
4633
+ ]), wa = (e, t, n = 1) => {
4563
4634
  let r = e.match(/hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*([\d.]+)\s*)?\)/);
4564
4635
  if (!r) throw Error("Invalid HSL color format");
4565
4636
  return `hsl(${parseFloat(r[1])} ${parseFloat(r[2])}% ${Math.max(0, parseFloat(r[3]) + t)}% / ${n})`;
4566
- }, Ca = ({ index: e, viewIndex: t, length: n, itemHeight: r }) => {
4637
+ }, Ta = ({ index: e, viewIndex: t, length: n, itemHeight: r }) => {
4567
4638
  let i = (e - t + n) % n, a;
4568
4639
  a = i === 0 ? 0 : i === n - 1 && n >= 2 ? -1 : i === n - 2 && n >= 3 ? -2 : i === 1 ? 1 : i === 2 ? 2 : i === n - 3 && n >= 4 ? -3 : 3;
4569
- let o = xa.get(a) || {}, s = a > 0 ? r + 28 + (a - 1) * 20 : o.top;
4640
+ let o = Ca.get(a) || {}, s = a > 0 ? r + 28 + (a - 1) * 20 : o.top;
4570
4641
  return {
4571
4642
  position: a,
4572
4643
  styles: {
@@ -4575,7 +4646,7 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4575
4646
  height: a > 0 ? "32px" : r
4576
4647
  }
4577
4648
  };
4578
- }, wa = {
4649
+ }, Ea = {
4579
4650
  LIGHTNESS_STEP: 8,
4580
4651
  BORDER_LIGHTNESS: 10,
4581
4652
  CONTENT_LIGHTNESS: 45,
@@ -4583,21 +4654,21 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4583
4654
  FONT_SIZE_ACTIVE: "14px",
4584
4655
  FONT_SIZE_INACTIVE: "12px",
4585
4656
  HEADER_HEIGHT: "2rem"
4586
- }, Ta = ({ children: e, className: t, header: n, baseColor: r, position: i = 0, style: a, ...o }) => {
4657
+ }, Da = ({ children: e, className: t, header: n, baseColor: r, position: i = 0, style: a, ...o }) => {
4587
4658
  let s = i <= 0, c = i === 0, l = {
4588
- border: c ? `4px solid ${Sa(r, wa.BORDER_LIGHTNESS)}` : "",
4659
+ border: c ? `4px solid ${wa(r, Ea.BORDER_LIGHTNESS)}` : "",
4589
4660
  ...a
4590
4661
  }, u = {
4591
- backgroundColor: Sa(r, i * wa.LIGHTNESS_STEP),
4592
- fontSize: c ? wa.FONT_SIZE_ACTIVE : wa.FONT_SIZE_INACTIVE,
4662
+ backgroundColor: wa(r, i * Ea.LIGHTNESS_STEP),
4663
+ fontSize: c ? Ea.FONT_SIZE_ACTIVE : Ea.FONT_SIZE_INACTIVE,
4593
4664
  transition: "all 0.3s ease",
4594
4665
  position: "relative",
4595
4666
  bottom: i < 0 ? "4px" : "0px",
4596
4667
  height: "32px",
4597
4668
  padding: "4px 8px"
4598
4669
  }, d = {
4599
- backgroundColor: Sa(r, 45 + i * 6),
4600
- height: wa.CONTENT_HEIGHT,
4670
+ backgroundColor: wa(r, 45 + i * 6),
4671
+ height: Ea.CONTENT_HEIGHT,
4601
4672
  position: "relative",
4602
4673
  bottom: i < 0 ? "4px" : "0px"
4603
4674
  };
@@ -4615,7 +4686,7 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4615
4686
  children: e
4616
4687
  })]
4617
4688
  });
4618
- }, Ea = ({ children: e, Trigger: t, Header: n, styles: r = {}, classNames: i = {}, open: a, onOpenChange: o, itemHeight: s }) => {
4689
+ }, Oa = ({ children: e, Trigger: t, Header: n, styles: r = {}, classNames: i = {}, open: a, onOpenChange: o, itemHeight: s }) => {
4619
4690
  let c = {
4620
4691
  height: s,
4621
4692
  ...r.Trigger
@@ -4655,7 +4726,7 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4655
4726
  ]
4656
4727
  })]
4657
4728
  });
4658
- }, Da = { wuStepper: "_wuStepper_ejzqx_1" }, Oa = ({ onChange: e, Label: n, defaultValue: r = 0, readonly: i, dir: a, step: o = 1, min: s, max: c, value: l, className: u, labelPosition: d = "left", disabled: f, resetInvalidValueOnBlur: p = !0, ...m }) => {
4729
+ }, ka = { wuStepper: "_wuStepper_ejzqx_1" }, Aa = ({ onChange: e, Label: n, defaultValue: r = 0, readonly: i, dir: a, step: o = 1, min: s, max: c, value: l, className: u, labelPosition: d = "left", disabled: f, resetInvalidValueOnBlur: p = !0, ...m }) => {
4659
4730
  let h = t.useId(), [g, y] = t.useState(l === void 0 ? r || 0 : Number(l));
4660
4731
  t.useEffect(() => {
4661
4732
  l !== void 0 && y(Number(l));
@@ -4682,8 +4753,8 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4682
4753
  readOnly: i,
4683
4754
  onValueChange: (e) => typeof e == "number" && b(e),
4684
4755
  dir: a,
4685
- className: G("wu-flex wu-stepper", a === "rtl" && d !== "top" && "wu-gap-2", Da.wuStepper, ka({ labelPosition: d }), u),
4686
- children: [n && /* @__PURE__ */ _(Z, {
4756
+ className: G("wu-flex wu-stepper", a === "rtl" && d !== "top" && "wu-gap-2", ka.wuStepper, ja({ labelPosition: d }), u),
4757
+ children: [n && /* @__PURE__ */ _(X, {
4687
4758
  htmlFor: h,
4688
4759
  className: "wu-input-label",
4689
4760
  children: n
@@ -4722,7 +4793,7 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4722
4793
  ]
4723
4794
  })]
4724
4795
  });
4725
- }, ka = z("wu-flex wu-w-fit", { variants: { labelPosition: {
4796
+ }, ja = z("wu-flex wu-w-fit", { variants: { labelPosition: {
4726
4797
  left: "wu-flex-row wu-text-right wu-gap-2 wu-items-center",
4727
4798
  top: "wu-flex-col"
4728
4799
  } } }), $ = {
@@ -4738,7 +4809,7 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4738
4809
  icon: "_icon_1mgpg_50",
4739
4810
  sharedWrapper: "_sharedWrapper_1mgpg_54",
4740
4811
  emptyState: "_emptyState_1mgpg_63"
4741
- }, Aa = n.memo(({ className: e, label: t = "Shared surveys", ...n }) => /* @__PURE__ */ v("button", {
4812
+ }, Ma = n.memo(({ className: e, label: t = "Shared surveys", ...n }) => /* @__PURE__ */ v("button", {
4742
4813
  className: G($.sharedWrapper, e),
4743
4814
  "data-slot": "survey-select-shared",
4744
4815
  "aria-label": t,
@@ -4748,10 +4819,10 @@ var pa = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
4748
4819
  "aria-hidden": "true"
4749
4820
  }), /* @__PURE__ */ _("span", { children: t })]
4750
4821
  }));
4751
- Aa.displayName = "WuSharedSurvey";
4822
+ Ma.displayName = "WuSharedSurvey";
4752
4823
  //#endregion
4753
4824
  //#region src/components/surveySelect/subComponents/WuSurveyItem.tsx
4754
- var ja = (e, t = !1) => {
4825
+ var Na = (e, t = !1) => {
4755
4826
  if (e) return /* @__PURE__ */ _("span", {
4756
4827
  className: $.icon,
4757
4828
  "aria-hidden": "true",
@@ -4762,29 +4833,29 @@ var ja = (e, t = !1) => {
4762
4833
  className: G($.icon, n),
4763
4834
  "aria-hidden": "true"
4764
4835
  });
4765
- }, Ma = n.memo(({ children: e, icon: t, isActive: n, isShared: r, className: i, ...a }) => /* @__PURE__ */ v("button", {
4836
+ }, Pa = n.memo(({ children: e, icon: t, isActive: n, isShared: r, className: i, ...a }) => /* @__PURE__ */ v("button", {
4766
4837
  className: G($.listItem, n && $.listItemActive, i),
4767
4838
  "aria-selected": n,
4768
4839
  "data-slot": "survey-select-item",
4769
4840
  type: "button",
4770
4841
  ...a,
4771
- children: [ja(t, r), /* @__PURE__ */ _("span", {
4842
+ children: [Na(t, r), /* @__PURE__ */ _("span", {
4772
4843
  className: $.label,
4773
4844
  children: e
4774
4845
  })]
4775
4846
  }));
4776
- Ma.displayName = "WuSurveyItem";
4847
+ Pa.displayName = "WuSurveyItem";
4777
4848
  //#endregion
4778
4849
  //#region src/components/surveySelect/subComponents/WuSurveyList.tsx
4779
- var Na = n.memo(({ children: e, className: t, ...n }) => /* @__PURE__ */ _("div", {
4850
+ var Fa = n.memo(({ children: e, className: t, ...n }) => /* @__PURE__ */ _("div", {
4780
4851
  className: G($.list, t),
4781
4852
  ...n,
4782
4853
  children: e
4783
4854
  }));
4784
- Na.displayName = "WuSurveyList";
4855
+ Fa.displayName = "WuSurveyList";
4785
4856
  //#endregion
4786
4857
  //#region src/components/surveySelect/subComponents/WuSurveySource.tsx
4787
- var Pa = (e) => {
4858
+ var Ia = (e) => {
4788
4859
  let { className: t, variant: n = "outlined", ...r } = e;
4789
4860
  return /* @__PURE__ */ _("div", {
4790
4861
  className: $.sourceWrapper,
@@ -4797,8 +4868,8 @@ var Pa = (e) => {
4797
4868
  })
4798
4869
  });
4799
4870
  };
4800
- Pa.displayName = "WuSurveySource";
4801
- var Fa = n.memo(Pa), Ia = n.memo(({ Sidebar: e, children: t, className: n, ...r }) => /* @__PURE__ */ v("div", {
4871
+ Ia.displayName = "WuSurveySource";
4872
+ var La = n.memo(Ia), Ra = n.memo(({ Sidebar: e, children: t, className: n, ...r }) => /* @__PURE__ */ v("div", {
4802
4873
  className: G($.container, n),
4803
4874
  role: "region",
4804
4875
  "aria-label": "Survey selection interface",
@@ -4817,10 +4888,10 @@ var Fa = n.memo(Pa), Ia = n.memo(({ Sidebar: e, children: t, className: n, ...r
4817
4888
  children: t
4818
4889
  })]
4819
4890
  }));
4820
- Ia.displayName = "WuSurveySelect";
4891
+ Ra.displayName = "WuSurveySelect";
4821
4892
  //#endregion
4822
4893
  //#region src/base/ui/toggle.tsx
4823
- var La = z("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-medium wu-ring-offset-background wu-transition-colors hover:wu-bg-muted hover:wu-text-muted-foreground focus-visible:wu-outline-none focus-visible:wu-ring-2 focus-visible:wu-ring-ring focus-visible:wu-ring-offset-2 disabled:wu-cursor-not-allowed disabled:wu-opacity-80", {
4894
+ var za = z("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-medium wu-ring-offset-background wu-transition-colors hover:wu-bg-muted hover:wu-text-muted-foreground focus-visible:wu-outline-none focus-visible:wu-ring-2 focus-visible:wu-ring-ring focus-visible:wu-ring-offset-2 disabled:wu-cursor-not-allowed disabled:wu-opacity-80", {
4824
4895
  variants: {
4825
4896
  variant: {
4826
4897
  default: "wu-bg-transparent",
@@ -4836,26 +4907,26 @@ var La = z("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-
4836
4907
  variant: "default",
4837
4908
  size: "default"
4838
4909
  }
4839
- }), Ra = t.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ _(_e.Root, {
4910
+ }), Ba = t.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ _(_e.Root, {
4840
4911
  ref: i,
4841
- className: G(La({
4912
+ className: G(za({
4842
4913
  variant: t,
4843
4914
  size: n,
4844
4915
  className: e
4845
4916
  })),
4846
4917
  ...r
4847
4918
  }));
4848
- Ra.displayName = _e.Root.displayName;
4919
+ Ba.displayName = _e.Root.displayName;
4849
4920
  //#endregion
4850
4921
  //#region src/base/ui/toggleGroup.tsx
4851
- var za = t.createContext({
4922
+ var Va = t.createContext({
4852
4923
  size: "default",
4853
4924
  variant: "default"
4854
- }), Ba = t.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ _(ge.Root, {
4925
+ }), Ha = t.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ _(ge.Root, {
4855
4926
  ref: a,
4856
4927
  className: G("wu-flex wu-items-center wu-justify-center wu-gap-1", e),
4857
4928
  ...i,
4858
- children: /* @__PURE__ */ _(za.Provider, {
4929
+ children: /* @__PURE__ */ _(Va.Provider, {
4859
4930
  value: {
4860
4931
  variant: t,
4861
4932
  size: n
@@ -4863,12 +4934,12 @@ var za = t.createContext({
4863
4934
  children: r
4864
4935
  })
4865
4936
  }));
4866
- Ba.displayName = ge.Root.displayName;
4867
- var Va = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a }, o) => {
4868
- let s = t.useContext(za);
4937
+ Ha.displayName = ge.Root.displayName;
4938
+ var Ua = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a }, o) => {
4939
+ let s = t.useContext(Va);
4869
4940
  return /* @__PURE__ */ _(ge.Item, {
4870
4941
  ref: o,
4871
- className: G(La({
4942
+ className: G(za({
4872
4943
  variant: s.variant || r,
4873
4944
  size: s.size || i
4874
4945
  }), e),
@@ -4876,12 +4947,12 @@ var Va = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a },
4876
4947
  children: n
4877
4948
  });
4878
4949
  });
4879
- Va.displayName = ge.Item.displayName;
4950
+ Ua.displayName = ge.Item.displayName;
4880
4951
  //#endregion
4881
4952
  //#region src/components/switcher/ui/_iconTab.tsx
4882
- var Ha = n.forwardRef((e, t) => {
4953
+ var Wa = n.forwardRef((e, t) => {
4883
4954
  let { options: n, value: r, disabled: i, dir: a, onChange: o } = e, s = (e) => G("wu-w-8 wu-h-8 wu-text-xl wu-leading-5 wu-rounded-full wu-text-gray-lead wu-relative wu-z-10 wu-p-0 wu-flex wu-items-center wu-justify-center", i && "wu-cursor-not-allowed data-[state=on]:wu-text-gray-lead", e === r && "wu-text-white", i && r === e && "wu-text-gray-lead", "wu-switcher-icon-tab-item");
4884
- return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ v(Ba, {
4955
+ return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ v(Ha, {
4885
4956
  ref: t,
4886
4957
  type: "single",
4887
4958
  value: r,
@@ -4894,12 +4965,12 @@ var Ha = n.forwardRef((e, t) => {
4894
4965
  role: "slider",
4895
4966
  className: G("wu-absolute wu-z-0 wu-w-8 wu-h-8 wu-bg-blue-p wu-rounded-full wu-transition-transform wu-duration-300 wu-ease-in-out", r === "opt1" && "", r === "opt2" && a !== "rtl" && "wu-translate-x-full", r === "opt2" && a === "rtl" && "-wu-translate-x-full", i && "wu-bg-gray-40", "wu-switcher-icon-tab-slider")
4896
4967
  }),
4897
- /* @__PURE__ */ _(Va, {
4968
+ /* @__PURE__ */ _(Ua, {
4898
4969
  value: "opt1",
4899
4970
  className: s("opt1"),
4900
4971
  children: n[0].label
4901
4972
  }),
4902
- /* @__PURE__ */ _(Va, {
4973
+ /* @__PURE__ */ _(Ua, {
4903
4974
  value: "opt2",
4904
4975
  className: s("opt2"),
4905
4976
  children: n[1].label
@@ -4907,12 +4978,12 @@ var Ha = n.forwardRef((e, t) => {
4907
4978
  ]
4908
4979
  }) });
4909
4980
  });
4910
- Ha.displayName = "_IconTab";
4981
+ Wa.displayName = "_IconTab";
4911
4982
  //#endregion
4912
4983
  //#region src/components/switcher/ui/_tab.tsx
4913
- var Ua = n.forwardRef((e, t) => {
4984
+ var Ga = n.forwardRef((e, t) => {
4914
4985
  let { options: n, value: r, disabled: i, dir: a, size: o = "md", onChange: s } = e, c = (e) => G("wu-w-1/2 wu-text-xs wu-rounded-full wu-text-gray-lead wu-relative wu-z-10 wu-font-normal", i && "wu-cursor-not-allowed data-[state=on]:wu-text-gray-lead", o === "sm" && "wu-h-6 wu-min-w-20", o === "md" && "wu-h-8 wu-min-w-28", o === "lg" && "wu-h-10 wu-min-w-36", e === r && "wu-text-white wu-font-medium", i && r === e && "wu-text-gray-lead", "wu-switcher-tab-item");
4915
- return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ v(Ba, {
4986
+ return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ v(Ha, {
4916
4987
  ref: t,
4917
4988
  type: "single",
4918
4989
  value: r,
@@ -4925,7 +4996,7 @@ var Ua = n.forwardRef((e, t) => {
4925
4996
  role: "slider",
4926
4997
  className: G("wu-absolute wu-z-0 wu-w-1/2 wu-bg-blue-p wu-rounded-full wu-transition-transform wu-duration-300 wu-ease-in-out ", o === "sm" && "wu-h-6 wu-min-w-20", o === "md" && "wu-h-8 wu-min-w-28", o === "lg" && "wu-h-10 wu-min-w-36", r === "opt1" && "", r === "opt2" && a !== "rtl" && "wu-translate-x-full", r === "opt2" && a === "rtl" && "-wu-translate-x-full", i && "wu-bg-gray-40", "wu-switcher-tab-slider")
4927
4998
  }),
4928
- /* @__PURE__ */ _(Va, {
4999
+ /* @__PURE__ */ _(Ua, {
4929
5000
  value: "opt1",
4930
5001
  className: c("opt1"),
4931
5002
  children: /* @__PURE__ */ _("div", {
@@ -4933,7 +5004,7 @@ var Ua = n.forwardRef((e, t) => {
4933
5004
  children: n[0].label
4934
5005
  })
4935
5006
  }),
4936
- /* @__PURE__ */ _(Va, {
5007
+ /* @__PURE__ */ _(Ua, {
4937
5008
  value: "opt2",
4938
5009
  className: c("opt2"),
4939
5010
  children: /* @__PURE__ */ _("div", {
@@ -4944,12 +5015,12 @@ var Ua = n.forwardRef((e, t) => {
4944
5015
  ]
4945
5016
  }) });
4946
5017
  });
4947
- Ua.displayName = "_Tab";
5018
+ Ga.displayName = "_Tab";
4948
5019
  //#endregion
4949
5020
  //#region src/components/switcher/ui/_toggle.tsx
4950
- var Wa = n.forwardRef((e, t) => {
5021
+ var Ka = n.forwardRef((e, t) => {
4951
5022
  let { options: n, value: r, disabled: i, dir: a, onChange: o } = e, s = (e) => G("wu-p-0 wu-w-fit wu-text-xs wu-text-gray-lead wu-h-fit wu-font-normal", i && "wu-cursor-not-allowed data-[state=on]:wu-text-gray-subtle wu-text-gray-subtle", e === r && "wu-text-primary wu-font-medium", i && r === e && "wu-text-gray-lead", "wu-switcher-toggle-item"), c = G("wu-w-fit wu-gap-2", i && "wu-cursor-not-allowed", "wu-switcher-toggle-group"), l = G("wu-flex wu-items-center wu-justify-center wu-w-8 wu-h-3 wu-p-0 wu-border wu-rounded-full wu-cursor-pointer wu-border-blue-p focus:wu-outline-none focus-visible:wu-ring-2 focus-visible:wu-ring-blue-soft focus-visible:wu-ring-offset-2", i && "wu-border-gray-subtle wu-cursor-not-allowed", "wu-switcher-toggle-button"), u = G("wu-w-2 wu-h-2 wu-bg-blue-p wu-rounded-full wu-transition-transform wu-duration-300 wu-ease-in-out", r === "opt1" && a !== "rtl" && "-wu-translate-x-[10px]", r === "opt1" && a === "rtl" && "wu-translate-x-[10px]", r === "opt2" && a !== "rtl" && "wu-translate-x-[10px]", r === "opt2" && a === "rtl" && "-wu-translate-x-[10px]", i && "wu-hidden", "wu-switcher-toggle-knob");
4952
- return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ v(Ba, {
5023
+ return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ v(Ha, {
4953
5024
  ref: t,
4954
5025
  type: "single",
4955
5026
  value: r,
@@ -4958,7 +5029,7 @@ var Wa = n.forwardRef((e, t) => {
4958
5029
  className: c,
4959
5030
  onValueChange: o,
4960
5031
  children: [
4961
- /* @__PURE__ */ _(Va, {
5032
+ /* @__PURE__ */ _(Ua, {
4962
5033
  value: "opt1",
4963
5034
  className: s("opt1"),
4964
5035
  children: /* @__PURE__ */ _("div", {
@@ -4978,7 +5049,7 @@ var Wa = n.forwardRef((e, t) => {
4978
5049
  dir: a
4979
5050
  })
4980
5051
  }),
4981
- /* @__PURE__ */ _(Va, {
5052
+ /* @__PURE__ */ _(Ua, {
4982
5053
  value: "opt2",
4983
5054
  className: s("opt2"),
4984
5055
  children: /* @__PURE__ */ _("div", {
@@ -4989,10 +5060,10 @@ var Wa = n.forwardRef((e, t) => {
4989
5060
  ]
4990
5061
  }) });
4991
5062
  });
4992
- Wa.displayName = "_Toggle";
5063
+ Ka.displayName = "_Toggle";
4993
5064
  //#endregion
4994
5065
  //#region src/components/switcher/WuSwitcher.tsx
4995
- var Ga = n.forwardRef((e, t) => {
5066
+ var qa = n.forwardRef((e, t) => {
4996
5067
  let { type: r, options: i, value: a, disabled: o, dir: s, size: c, onChange: l, toggle: u = !0, ...d } = e, [f, p] = n.useState(), m = (e) => {
4997
5068
  let t = f;
4998
5069
  e === "" ? u && (t = f === "opt1" ? "opt2" : "opt1") : t = e;
@@ -5004,7 +5075,7 @@ var Ga = n.forwardRef((e, t) => {
5004
5075
  p(a === i[0].value ? "opt1" : "opt2");
5005
5076
  }, [i, a]), !Array.isArray(i) || i.length < 2) return /* @__PURE__ */ _(g, {});
5006
5077
  switch (r) {
5007
- case "toggle": return /* @__PURE__ */ _(Wa, {
5078
+ case "toggle": return /* @__PURE__ */ _(Ka, {
5008
5079
  ...d,
5009
5080
  ref: t,
5010
5081
  options: i,
@@ -5013,7 +5084,7 @@ var Ga = n.forwardRef((e, t) => {
5013
5084
  disabled: o,
5014
5085
  dir: s
5015
5086
  });
5016
- case "iconTab": return /* @__PURE__ */ _(Ha, {
5087
+ case "iconTab": return /* @__PURE__ */ _(Wa, {
5017
5088
  ref: t,
5018
5089
  options: i,
5019
5090
  value: f || "opt1",
@@ -5021,7 +5092,7 @@ var Ga = n.forwardRef((e, t) => {
5021
5092
  disabled: o,
5022
5093
  dir: s
5023
5094
  });
5024
- default: return /* @__PURE__ */ _(Ua, {
5095
+ default: return /* @__PURE__ */ _(Ga, {
5025
5096
  ref: t,
5026
5097
  options: i,
5027
5098
  value: f || "opt1",
@@ -5032,39 +5103,39 @@ var Ga = n.forwardRef((e, t) => {
5032
5103
  });
5033
5104
  }
5034
5105
  });
5035
- Ga.displayName = "WuSwitcher";
5106
+ qa.displayName = "WuSwitcher";
5036
5107
  //#endregion
5037
5108
  //#region src/components/tab/shadcn/tabs.tsx
5038
- var Ka = ve.Root, qa = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ _(ve.List, {
5109
+ var Ja = ve.Root, Ya = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ _(ve.List, {
5039
5110
  className: G("wu-relative wu-flex", e),
5040
5111
  ...n,
5041
5112
  ref: r,
5042
5113
  children: t
5043
5114
  }));
5044
- qa.displayName = ve.List.displayName;
5045
- var Ja = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ve.Trigger, {
5115
+ Ya.displayName = ve.List.displayName;
5116
+ var Xa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ve.Trigger, {
5046
5117
  ref: n,
5047
5118
  className: G("wu-relative wu-inline-flex wu-items-center wu-whitespace-nowrap wu-text-xs wu-px-4 wu-py-2 wu-text-gray-600 wu-transition-colors wu-duration-200 data-[state=active]:wu-text-blue-p", "data-[orientation=horizontal]:wu-justify-center", e),
5048
5119
  ...t
5049
5120
  }));
5050
- Ja.displayName = ve.Trigger.displayName;
5051
- var Ya = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ve.Content, {
5121
+ Xa.displayName = ve.Trigger.displayName;
5122
+ var Za = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(ve.Content, {
5052
5123
  ref: n,
5053
5124
  className: e,
5054
5125
  ...t
5055
5126
  }));
5056
- Ya.displayName = ve.Content.displayName;
5127
+ Za.displayName = ve.Content.displayName;
5057
5128
  //#endregion
5058
5129
  //#region src/components/tab/components/BaseTabContent.tsx
5059
- var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5130
+ var Qa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5060
5131
  className: G("wu-w-full wu-h-full wu-flex-1 wu-overflow-auto", t && "wu-relative wu-overflow-hidden", "wu-tab-content-container"),
5061
- children: e.map((e) => /* @__PURE__ */ _(Ya, {
5132
+ children: e.map((e) => /* @__PURE__ */ _(Za, {
5062
5133
  value: e.value,
5063
5134
  forceMount: t || void 0,
5064
5135
  className: G("wu-w-full wu-h-full wu-overflow-y-auto", t && "wu-duration-700 wu-ease-in-out wu-transition-all data-[state=inactive]:wu-absolute data-[state=inactive]:wu-inset-0 data-[state=inactive]:wu-opacity-0 data-[state=inactive]:wu-z-0 data-[state=active]:wu-relative data-[state=active]:wu-opacity-100 data-[state=active]:wu-z-10", "wu-tab-content"),
5065
5136
  children: e.Content
5066
5137
  }, e.value))
5067
- }), Za = (e) => {
5138
+ }), $a = (e) => {
5068
5139
  let [t, n] = p(!1), [r, i] = p(!1), a = () => {
5069
5140
  let t = e.current;
5070
5141
  t && (n(t.scrollLeft > 0), i(t.scrollLeft + t.clientWidth < t.scrollWidth));
@@ -5088,7 +5159,7 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5088
5159
  }
5089
5160
  }
5090
5161
  };
5091
- }, Qa = (e, t) => {
5162
+ }, eo = (e, t) => {
5092
5163
  let [n, r] = p({
5093
5164
  width: 0,
5094
5165
  left: 0,
@@ -5115,8 +5186,8 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5115
5186
  };
5116
5187
  }
5117
5188
  }, [e, i]), n;
5118
- }, $a = ({ items: e, value: t, defaultValue: r, onValueChange: i, enableAnimation: a = !1, className: o, dir: s = "ltr", position: c = "top" }) => {
5119
- let l = n.useRef(null), u = Qa(l, "horizontal"), { showLeftArrow: d, showRightArrow: f, scrollByTab: p } = Za(l), [m, h] = n.useState(!1), g = () => p("left"), y = () => p("right"), b = (e) => /* @__PURE__ */ _("div", {
5189
+ }, to = ({ items: e, value: t, defaultValue: r, onValueChange: i, enableAnimation: a = !1, className: o, dir: s = "ltr", position: c = "top" }) => {
5190
+ let l = n.useRef(null), u = eo(l, "horizontal"), { showLeftArrow: d, showRightArrow: f, scrollByTab: p } = $a(l), [m, h] = n.useState(!1), g = () => p("left"), y = () => p("right"), b = (e) => /* @__PURE__ */ _("div", {
5120
5191
  "data-testid": `gradient-overlay-${e}`,
5121
5192
  className: G("wu-absolute wu-top-0 wu-h-full wu-w-20 wu-z-10 wu-pointer-events-none", e === "left" ? "wu-left-0 wu-bg-gradient-to-r wu-from-white wu-to-transparent" : "wu-right-0 wu-bg-gradient-to-l wu-from-white wu-to-transparent")
5122
5193
  }), x = (e, t, n) => {
@@ -5128,7 +5199,7 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5128
5199
  children: /* @__PURE__ */ _("span", { className: G("wu-text-blue-p wu-text-lg", r ? "wm-keyboard-arrow-left" : "wm-keyboard-arrow-right") })
5129
5200
  });
5130
5201
  };
5131
- return /* @__PURE__ */ v(Ka, {
5202
+ return /* @__PURE__ */ v(Ja, {
5132
5203
  defaultValue: r || e[0]?.value,
5133
5204
  value: t,
5134
5205
  onValueChange: i,
@@ -5144,10 +5215,10 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5144
5215
  children: [
5145
5216
  d && m && b("left"),
5146
5217
  x(g, "left", d && m),
5147
- /* @__PURE__ */ v(qa, {
5218
+ /* @__PURE__ */ v(Ya, {
5148
5219
  ref: l,
5149
5220
  className: G("wu-relative wu-flex wu-w-full wu-overflow-x-auto wu-flex-row", "[&::-webkit-scrollbar]:wu-hidden [-ms-overflow-style:none] [scrollbar-width:none]", "wu-tablist"),
5150
- children: [e.map((e) => /* @__PURE__ */ _(Ja, {
5221
+ children: [e.map((e) => /* @__PURE__ */ _(Xa, {
5151
5222
  value: e.value,
5152
5223
  children: e.Trigger
5153
5224
  }, e.value)), /* @__PURE__ */ _("span", {
@@ -5164,12 +5235,12 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5164
5235
  f && m && b("right"),
5165
5236
  x(y, "right", f && m)
5166
5237
  ]
5167
- }), /* @__PURE__ */ _(Xa, {
5238
+ }), /* @__PURE__ */ _(Qa, {
5168
5239
  items: e,
5169
5240
  enableAnimation: a
5170
5241
  })]
5171
5242
  });
5172
- }, eo = (e) => {
5243
+ }, no = (e) => {
5173
5244
  let [t, n] = p(!1), [r, i] = p(!1), a = () => {
5174
5245
  let t = e.current;
5175
5246
  t && (n(t.scrollTop > 0), i(t.scrollTop + t.clientHeight < t.scrollHeight));
@@ -5193,8 +5264,8 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5193
5264
  }
5194
5265
  }
5195
5266
  };
5196
- }, to = ({ items: e, value: t, defaultValue: r, onValueChange: i, enableAnimation: a = !1, className: o, dir: s = "ltr", position: c = "left" }) => {
5197
- let l = n.useRef(null), u = Qa(l, "vertical"), { showTopArrow: d, showBottomArrow: f, scrollByTab: p } = eo(l), [m, h] = n.useState(!1), g = () => p("up"), y = () => p("down"), b = (e) => /* @__PURE__ */ _("div", { className: G("wu-absolute wu-left-0 wu-w-full wu-h-12 wu-z-10 wu-pointer-events-none", e === "top" ? "wu-top-0 wu-bg-gradient-to-b wu-from-white wu-to-transparent" : "wu-bottom-0 wu-bg-gradient-to-t wu-from-white wu-to-transparent") }), x = (e, t, n) => {
5267
+ }, ro = ({ items: e, value: t, defaultValue: r, onValueChange: i, enableAnimation: a = !1, className: o, dir: s = "ltr", position: c = "left" }) => {
5268
+ let l = n.useRef(null), u = eo(l, "vertical"), { showTopArrow: d, showBottomArrow: f, scrollByTab: p } = no(l), [m, h] = n.useState(!1), g = () => p("up"), y = () => p("down"), b = (e) => /* @__PURE__ */ _("div", { className: G("wu-absolute wu-left-0 wu-w-full wu-h-12 wu-z-10 wu-pointer-events-none", e === "top" ? "wu-top-0 wu-bg-gradient-to-b wu-from-white wu-to-transparent" : "wu-bottom-0 wu-bg-gradient-to-t wu-from-white wu-to-transparent") }), x = (e, t, n) => {
5198
5269
  let r = t === "up";
5199
5270
  return /* @__PURE__ */ _("button", {
5200
5271
  onClick: e,
@@ -5203,7 +5274,7 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5203
5274
  children: /* @__PURE__ */ _("span", { className: G("wu-text-blue-p wu-text-lg", r ? "wm-keyboard-arrow-up" : "wm-keyboard-arrow-down") })
5204
5275
  });
5205
5276
  };
5206
- return /* @__PURE__ */ v(Ka, {
5277
+ return /* @__PURE__ */ v(Ja, {
5207
5278
  defaultValue: r || e[0]?.value,
5208
5279
  value: t,
5209
5280
  onValueChange: i,
@@ -5219,10 +5290,10 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5219
5290
  children: [
5220
5291
  d && m && b("top"),
5221
5292
  x(g, "up", d && m),
5222
- /* @__PURE__ */ v(qa, {
5293
+ /* @__PURE__ */ v(Ya, {
5223
5294
  ref: l,
5224
5295
  className: G("wu-relative wu-flex wu-h-full wu-overflow-y-auto wu-flex-col", "[&::-webkit-scrollbar]:wu-hidden [-ms-overflow-style:none] [scrollbar-width:none]", "wu-tablist"),
5225
- children: [e.map((e) => /* @__PURE__ */ _(Ja, {
5296
+ children: [e.map((e) => /* @__PURE__ */ _(Xa, {
5226
5297
  value: e.value,
5227
5298
  children: e.Trigger
5228
5299
  }, e.value)), /* @__PURE__ */ _("span", {
@@ -5239,16 +5310,16 @@ var Xa = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ _("div", {
5239
5310
  f && m && b("bottom"),
5240
5311
  x(y, "down", f && m)
5241
5312
  ]
5242
- }), /* @__PURE__ */ _(Xa, {
5313
+ }), /* @__PURE__ */ _(Qa, {
5243
5314
  items: e,
5244
5315
  enableAnimation: a
5245
5316
  })]
5246
5317
  });
5247
- }, no = ({ ...e }) => e.orientation === "vertical" ? /* @__PURE__ */ _(to, { ...e }) : /* @__PURE__ */ _($a, { ...e }), ro = "expander";
5248
- function io(e, t) {
5318
+ }, io = ({ ...e }) => e.orientation === "vertical" ? /* @__PURE__ */ _(ro, { ...e }) : /* @__PURE__ */ _(to, { ...e }), ao = "expander";
5319
+ function oo(e, t) {
5249
5320
  return e ? [{
5250
- id: ro,
5251
- accessorKey: ro,
5321
+ id: ao,
5322
+ accessorKey: ao,
5252
5323
  header: "",
5253
5324
  cell: ({ row: e }) => {
5254
5325
  let t = e.getIsExpanded();
@@ -5267,10 +5338,10 @@ function io(e, t) {
5267
5338
  size: 48
5268
5339
  }, ...t] : t;
5269
5340
  }
5270
- function ao(e, t) {
5341
+ function so(e, t) {
5271
5342
  return t.map((e) => e.columnDef?.expandableRowContent).find((e) => e)?.call(null, e);
5272
5343
  }
5273
- function oo(e) {
5344
+ function co(e) {
5274
5345
  let t = /* @__PURE__ */ new Map(), n = 0;
5275
5346
  for (let r = 0; r < e.length; r++) {
5276
5347
  let i = e[r];
@@ -5295,7 +5366,7 @@ function oo(e) {
5295
5366
  }
5296
5367
  return t;
5297
5368
  }
5298
- function so(e, t, n, r) {
5369
+ function lo(e, t, n, r) {
5299
5370
  return t ? e === "left" && n ? /* @__PURE__ */ _("div", { style: {
5300
5371
  position: "absolute",
5301
5372
  top: 0,
@@ -5314,10 +5385,10 @@ function so(e, t, n, r) {
5314
5385
  pointerEvents: "none"
5315
5386
  } }) : null : null;
5316
5387
  }
5317
- function co(e, t, n) {
5388
+ function uo(e, t, n) {
5318
5389
  return e === !0 && (!t || n > t);
5319
5390
  }
5320
- function lo(e, t) {
5391
+ function fo(e, t) {
5321
5392
  let n = ye(t.cell, e.getContext());
5322
5393
  return e.column.id === "actions" ? /* @__PURE__ */ _("div", {
5323
5394
  className: "wu-opacity-0 wu-transition-opacity wu-duration-150 wu-ease-in-out group-hover:wu-opacity-100",
@@ -5326,7 +5397,7 @@ function lo(e, t) {
5326
5397
  }
5327
5398
  //#endregion
5328
5399
  //#region src/components/table/hooks/useRowSelection.tsx
5329
- var uo = ({ columns: e, rowSelection: t }) => {
5400
+ var po = ({ columns: e, rowSelection: t }) => {
5330
5401
  let n = t?.isEnabled ?? !1, r = t?.size ?? 48, { onRowSelect: i, rowUniqueKey: a, isRowDisabled: o, hideSelectAll: c } = t || {}, l = s((e) => (t) => {
5331
5402
  i?.(t ? e : []);
5332
5403
  }, [i]);
@@ -5334,7 +5405,7 @@ var uo = ({ columns: e, rowSelection: t }) => {
5334
5405
  id: "select",
5335
5406
  header: ({ table: e }) => {
5336
5407
  let t = l(e.getRowModel().rows.map((e) => e.original).filter((e) => !o?.(e)));
5337
- return c ? /* @__PURE__ */ _("div", {}) : /* @__PURE__ */ _(dn, {
5408
+ return c ? /* @__PURE__ */ _("div", {}) : /* @__PURE__ */ _(Q, {
5338
5409
  checked: e.getIsSomeRowsSelected() || e.getIsAllRowsSelected(),
5339
5410
  partial: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
5340
5411
  onChange: (n) => {
@@ -5346,7 +5417,7 @@ var uo = ({ columns: e, rowSelection: t }) => {
5346
5417
  },
5347
5418
  cell: ({ row: e }) => {
5348
5419
  let t = o?.(e.original) ?? !1;
5349
- return /* @__PURE__ */ _(dn, {
5420
+ return /* @__PURE__ */ _(Q, {
5350
5421
  checked: e.getIsSelected(),
5351
5422
  disabled: t,
5352
5423
  onChange: (n) => {
@@ -5368,8 +5439,8 @@ var uo = ({ columns: e, rowSelection: t }) => {
5368
5439
  };
5369
5440
  //#endregion
5370
5441
  //#region src/components/table/hooks/useTableCore.ts
5371
- function fo({ data: e, columns: t, rowSelection: n, isRowExpandable: r }) {
5372
- let [i, a] = p({}), { finalColumns: o } = uo({
5442
+ function mo({ data: e, columns: t, rowSelection: n, isRowExpandable: r }) {
5443
+ let [i, a] = p({}), { finalColumns: o } = po({
5373
5444
  columns: t,
5374
5445
  rowSelection: n
5375
5446
  }), s = d(() => {
@@ -5386,7 +5457,7 @@ function fo({ data: e, columns: t, rowSelection: n, isRowExpandable: r }) {
5386
5457
  rowSelectionState: s,
5387
5458
  sortableColumns: d(() => o.filter((e) => e.enableSorting).map((e) => e.accessorKey), [o]),
5388
5459
  selectedRowCount: n?.selectedRows?.length ?? 0,
5389
- columnsWithExpand: d(() => io(r, o), [o, r]),
5460
+ columnsWithExpand: d(() => oo(r, o), [o, r]),
5390
5461
  expanded: i,
5391
5462
  setExpanded: a,
5392
5463
  handleRowSelectionChange: (t) => {
@@ -5402,7 +5473,7 @@ function fo({ data: e, columns: t, rowSelection: n, isRowExpandable: r }) {
5402
5473
  }
5403
5474
  //#endregion
5404
5475
  //#region src/components/table/hooks/useTableScroll.ts
5405
- function po() {
5476
+ function ho() {
5406
5477
  let e = f(null), [t, n] = p(!1), [r, i] = p(!1), a = s(() => {
5407
5478
  let t = e.current;
5408
5479
  t && (n(t.scrollLeft > 12), i(t.scrollLeft < t.scrollWidth - t.clientWidth - 1));
@@ -5418,101 +5489,101 @@ function po() {
5418
5489
  }
5419
5490
  //#endregion
5420
5491
  //#region src/components/table/utils/tableStyles.ts
5421
- var mo = (e) => G("wu-group wu-border-b wu-border-black/[12%] [--wu-row-overlay:transparent]", "data-[state=selected]:[--wu-row-overlay:rgb(var(--wu-blue-p)/0.08)]", !e && ["hover:[--wu-row-overlay:rgba(0,0,0,0.02)]", "data-[state=selected]:hover:[--wu-row-overlay:rgb(var(--wu-blue-p)/0.16)]"]), ho = (e = "default", t) => G("wu-py-0 wu-font-light wu-text-xs wu-bg-white", "[background-image:linear-gradient(var(--wu-row-overlay),var(--wu-row-overlay))]", e === "compact" ? "wu-h-8" : "wu-h-10", t === "right" && "wu-text-right", t === "center" && "wu-text-center", t === "left" && "wu-text-left"), go = (e = "default") => e === "compact" ? "wu-h-8" : "wu-h-10", _o = (e) => G({
5492
+ var go = (e) => G("wu-group wu-border-b wu-border-black/[12%] [--wu-row-overlay:transparent]", "data-[state=selected]:[--wu-row-overlay:rgb(var(--wu-blue-p)/0.08)]", !e && ["hover:[--wu-row-overlay:rgba(0,0,0,0.02)]", "data-[state=selected]:hover:[--wu-row-overlay:rgb(var(--wu-blue-p)/0.16)]"]), _o = (e = "default", t) => G("wu-py-0 wu-font-light wu-text-xs wu-bg-white", "[background-image:linear-gradient(var(--wu-row-overlay),var(--wu-row-overlay))]", e === "compact" ? "wu-h-8" : "wu-h-10", t === "right" && "wu-text-right", t === "center" && "wu-text-center", t === "left" && "wu-text-left"), vo = (e = "default") => e === "compact" ? "wu-h-8" : "wu-h-10", yo = (e) => G({
5422
5493
  "wu-text-right": e === "right",
5423
5494
  "wu-text-center": e === "center",
5424
5495
  "wu-text-left": e === "left"
5425
- }), vo = (e) => G({
5496
+ }), bo = (e) => G({
5426
5497
  "wu-justify-end": e === "right",
5427
5498
  "wu-justify-center": e === "center"
5428
- }), yo = (e, t) => G("wu-absolute -wu-bottom-[13px] wu-left-0 wm-arrow-drop-up wu-text-xl", e && "wu-hidden", !t && "-wu-bottom-[10px]"), bo = (e, t) => G("wu-absolute -wu-top-[15px] wu-left-0 wm-arrow-drop-down wu-text-xl", e && "wu-hidden", !t && "-wu-top-[11px]"), xo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("table", {
5499
+ }), xo = (e, t) => G("wu-absolute -wu-bottom-[13px] wu-left-0 wm-arrow-drop-up wu-text-xl", e && "wu-hidden", !t && "-wu-bottom-[10px]"), So = (e, t) => G("wu-absolute -wu-top-[15px] wu-left-0 wm-arrow-drop-down wu-text-xl", e && "wu-hidden", !t && "-wu-top-[11px]"), Co = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("table", {
5429
5500
  ref: n,
5430
5501
  className: G("wu-w-full wu-caption-bottom wu-text-sm", e),
5431
5502
  ...t
5432
5503
  }));
5433
- xo.displayName = "Table";
5434
- var So = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("thead", {
5504
+ Co.displayName = "Table";
5505
+ var wo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("thead", {
5435
5506
  ref: n,
5436
5507
  className: G("[&_tr]:wu-border-b", e),
5437
5508
  ...t
5438
5509
  }));
5439
- So.displayName = "TableHeader";
5440
- var Co = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("tbody", {
5510
+ wo.displayName = "TableHeader";
5511
+ var To = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("tbody", {
5441
5512
  ref: n,
5442
5513
  className: G("", e),
5443
5514
  ...t
5444
5515
  }));
5445
- Co.displayName = "TableBody";
5446
- var wo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("tfoot", {
5516
+ To.displayName = "TableBody";
5517
+ var Eo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("tfoot", {
5447
5518
  ref: n,
5448
5519
  className: G("wu-border-t wu-bg-muted/50 wu-font-medium [&>tr]:last:wu-border-b-0", e),
5449
5520
  ...t
5450
5521
  }));
5451
- wo.displayName = "TableFooter";
5452
- var To = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("tr", {
5522
+ Eo.displayName = "TableFooter";
5523
+ var Do = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("tr", {
5453
5524
  ref: n,
5454
5525
  className: G("wu-border-b wu-transition-colors wu-hover:wu-bg-muted/50 data-[state=selected]:wu-bg-muted", e),
5455
5526
  ...t
5456
5527
  }));
5457
- To.displayName = "TableRow";
5458
- var Eo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("th", {
5528
+ Do.displayName = "TableRow";
5529
+ var Oo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("th", {
5459
5530
  ref: n,
5460
5531
  className: G("wu-px-4 wu-text-left wu-align-middle wu-font-medium wu-text-muted-foreground [&:has([role=checkbox])]:wu-pr-0", e),
5461
5532
  ...t
5462
5533
  }));
5463
- Eo.displayName = "TableHead";
5464
- var Do = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("td", {
5534
+ Oo.displayName = "TableHead";
5535
+ var ko = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("td", {
5465
5536
  ref: n,
5466
5537
  className: G("wu-p-4 wu-align-middle [&:has([role=checkbox])]:wu-pr-0", e),
5467
5538
  ...t
5468
5539
  }));
5469
- Do.displayName = "TableCell";
5470
- var Oo = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("caption", {
5540
+ ko.displayName = "TableCell";
5541
+ var Ao = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("caption", {
5471
5542
  ref: n,
5472
5543
  className: G("wu-mt-4 wu-text-sm wu-text-gray-subtle wu-font-normal", e),
5473
5544
  ...t
5474
5545
  }));
5475
- Oo.displayName = "TableCaption";
5546
+ Ao.displayName = "TableCaption";
5476
5547
  //#endregion
5477
5548
  //#region src/components/table/ui/_body.tsx
5478
- var ko = ({ table: e, size: t, NoDataContent: n, isLoading: r, CustomLoader: i, isRowDisabled: a, isRowExpandable: o, isScrolledLeft: s, isScrolledRight: c }) => {
5479
- let l = e.getVisibleLeafColumns(), u = l.length, d = e.getRowModel().rows, f = oo(l);
5480
- return r ? /* @__PURE__ */ _(Co, { children: /* @__PURE__ */ _(To, { children: /* @__PURE__ */ _(Do, {
5549
+ var jo = ({ table: e, size: t, NoDataContent: n, isLoading: r, CustomLoader: i, isRowDisabled: a, isRowExpandable: o, isScrolledLeft: s, isScrolledRight: c }) => {
5550
+ let l = e.getVisibleLeafColumns(), u = l.length, d = e.getRowModel().rows, f = co(l);
5551
+ return r ? /* @__PURE__ */ _(To, { children: /* @__PURE__ */ _(Do, { children: /* @__PURE__ */ _(ko, {
5481
5552
  colSpan: u,
5482
5553
  className: "wu-text-center wu-h-[35vh] wu-loader-container",
5483
5554
  children: i ?? /* @__PURE__ */ _(qe, { className: "wu-w-full" })
5484
- }) }) }) : d.length ? /* @__PURE__ */ _(Co, { children: d.flatMap((n, r) => {
5485
- let i = a?.(n.original) ?? !1, l = n.getIsSelected(), d = n.getIsExpanded(), p = /* @__PURE__ */ _(To, {
5555
+ }) }) }) : d.length ? /* @__PURE__ */ _(To, { children: d.flatMap((n, r) => {
5556
+ let i = a?.(n.original) ?? !1, l = n.getIsSelected(), d = n.getIsExpanded(), p = /* @__PURE__ */ _(Do, {
5486
5557
  "data-disabled": i,
5487
5558
  "data-state": l && "selected",
5488
- className: mo(i),
5559
+ className: go(i),
5489
5560
  "data-expanded": d,
5490
5561
  children: n.getVisibleCells().map((e, n) => {
5491
5562
  let r = e.column.columnDef, i = f.get(e.column.id);
5492
- return /* @__PURE__ */ v(Do, {
5493
- className: G(ho(t, r.cellAlign), i && "wu-sticky wu-z-[1]"),
5563
+ return /* @__PURE__ */ v(ko, {
5564
+ className: G(_o(t, r.cellAlign), i && "wu-sticky wu-z-[1]"),
5494
5565
  style: {
5495
5566
  width: `${e.column.getSize()}px`,
5496
5567
  ...i && { [i.sticky]: i.offset }
5497
5568
  },
5498
- children: [lo(e, r), so(i?.sticky, i?.isStickyEdge ?? !1, s, c)]
5569
+ children: [fo(e, r), lo(i?.sticky, i?.isStickyEdge ?? !1, s, c)]
5499
5570
  }, `${e.id}-${n}`);
5500
5571
  })
5501
- }, `${n.id}-${r}`), m = o && d ? ao(n, e.getVisibleLeafColumns()) : null;
5502
- return m ? [p, /* @__PURE__ */ _(To, {
5572
+ }, `${n.id}-${r}`), m = o && d ? so(n, e.getVisibleLeafColumns()) : null;
5573
+ return m ? [p, /* @__PURE__ */ _(Do, {
5503
5574
  "data-expanded": "true",
5504
5575
  "data-state": l && "selected",
5505
- children: /* @__PURE__ */ _(Do, {
5576
+ children: /* @__PURE__ */ _(ko, {
5506
5577
  colSpan: u,
5507
5578
  children: m
5508
5579
  })
5509
5580
  }, `${n.id}-expanded-${r}`)] : [p];
5510
- }) }) : /* @__PURE__ */ _(Co, { children: /* @__PURE__ */ _(To, { children: /* @__PURE__ */ _(Do, {
5581
+ }) }) : /* @__PURE__ */ _(To, { children: /* @__PURE__ */ _(Do, { children: /* @__PURE__ */ _(ko, {
5511
5582
  colSpan: u,
5512
5583
  children: n
5513
5584
  }) }) });
5514
- }, Ao = ({ table: e, sortableColumns: t, manual: n = !1, onSort: r, size: i, isRowSelected: a, HeaderAction: o, isStickyHeader: s, asVirtualContent: c = !1, isRowExpandable: l, isScrolledLeft: u, isScrolledRight: d }) => {
5515
- let f = i === "compact" ? "wu-h-8" : "wu-h-10", p = e.getVisibleLeafColumns(), m = oo(p), h = (e) => {
5585
+ }, Mo = ({ table: e, sortableColumns: t, manual: n = !1, onSort: r, size: i, isRowSelected: a, HeaderAction: o, isStickyHeader: s, asVirtualContent: c = !1, isRowExpandable: l, isScrolledLeft: u, isScrolledRight: d }) => {
5586
+ let f = i === "compact" ? "wu-h-8" : "wu-h-10", p = e.getVisibleLeafColumns(), m = co(p), h = (e) => {
5516
5587
  let { id: i, columnDef: a, getIsSorted: o, toggleSorting: s } = e.column, c = a.headerAlign, l = ye(a.header, e.getContext());
5517
5588
  if (!t.includes(i)) return l;
5518
5589
  let u = o(), d = u === "asc", f = u === "desc";
@@ -5524,32 +5595,32 @@ var ko = ({ table: e, size: t, NoDataContent: n, isLoading: r, CustomLoader: i,
5524
5595
  }) : s(e.column.getIsSorted() === "asc");
5525
5596
  },
5526
5597
  "aria-label": `Sort by ${typeof a.header == "string" ? a.header : i}`,
5527
- className: G("wu-flex wu-items-center wu-gap-1 wu-w-full", vo(c)),
5598
+ className: G("wu-flex wu-items-center wu-gap-1 wu-w-full", bo(c)),
5528
5599
  children: [l, /* @__PURE__ */ v("div", {
5529
5600
  className: "wu-relative wu-flex-shrink-0 wu-w-4",
5530
- children: [/* @__PURE__ */ _("span", { className: bo(d, !!u) }), /* @__PURE__ */ _("span", { className: yo(f, !!u) })]
5601
+ children: [/* @__PURE__ */ _("span", { className: So(d, !!u) }), /* @__PURE__ */ _("span", { className: xo(f, !!u) })]
5531
5602
  })]
5532
5603
  });
5533
5604
  }, g = (e) => {
5534
5605
  let t = e.column.id === "actions", n = m.get(e.column.id), r = n ? { [n.sticky]: n.offset } : {};
5535
- return t ? /* @__PURE__ */ _(Eo, {
5606
+ return t ? /* @__PURE__ */ _(Oo, {
5536
5607
  colSpan: e.colSpan,
5537
5608
  className: G("wu-text-xs wu-font-medium", n && "wu-sticky wu-z-[2] wu-bg-[#EEEEEE]"),
5538
5609
  style: {
5539
5610
  width: `${e.getSize()}px`,
5540
5611
  ...r
5541
5612
  },
5542
- children: so(n?.sticky, n?.isStickyEdge ?? !1, u, d)
5543
- }, e.id) : /* @__PURE__ */ v(Eo, {
5613
+ children: lo(n?.sticky, n?.isStickyEdge ?? !1, u, d)
5614
+ }, e.id) : /* @__PURE__ */ v(Oo, {
5544
5615
  colSpan: e.colSpan,
5545
- className: G("wu-text-xs wu-font-medium wu-bg-[#EEEEEE]", n ? "wu-sticky wu-z-[2]" : "wu-relative wu-z-0", _o(e.column.columnDef.headerAlign)),
5616
+ className: G("wu-text-xs wu-font-medium wu-bg-[#EEEEEE]", n ? "wu-sticky wu-z-[2]" : "wu-relative wu-z-0", yo(e.column.columnDef.headerAlign)),
5546
5617
  style: {
5547
5618
  width: `${e.getSize()}px`,
5548
5619
  ...r
5549
5620
  },
5550
- children: [h(e), so(n?.sticky, n?.isStickyEdge ?? !1, u, d)]
5621
+ children: [h(e), lo(n?.sticky, n?.isStickyEdge ?? !1, u, d)]
5551
5622
  }, e.id);
5552
- }, y = () => e.getHeaderGroups().map((e) => /* @__PURE__ */ _(To, {
5623
+ }, y = () => e.getHeaderGroups().map((e) => /* @__PURE__ */ _(Do, {
5553
5624
  className: "wu-relative",
5554
5625
  children: e.headers.map(g)
5555
5626
  }, e.id)), b = () => /* @__PURE__ */ v("div", {
@@ -5560,7 +5631,7 @@ var ko = ({ table: e, size: t, NoDataContent: n, isLoading: r, CustomLoader: i,
5560
5631
  width: p[0]?.getSize(),
5561
5632
  marginLeft: l ? 48 : void 0
5562
5633
  },
5563
- children: /* @__PURE__ */ _(dn, {
5634
+ children: /* @__PURE__ */ _(Q, {
5564
5635
  checked: e.getIsSomeRowsSelected() || e.getIsAllRowsSelected(),
5565
5636
  partial: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
5566
5637
  onChange: (t) => e.toggleAllRowsSelected(!!t),
@@ -5572,27 +5643,27 @@ var ko = ({ table: e, size: t, NoDataContent: n, isLoading: r, CustomLoader: i,
5572
5643
  children: o
5573
5644
  })]
5574
5645
  }), x = a && o;
5575
- return c ? /* @__PURE__ */ v(To, {
5646
+ return c ? /* @__PURE__ */ v(Do, {
5576
5647
  className: "wu-relative",
5577
- children: [(e.getHeaderGroups()[0]?.headers ?? []).map(g), x && /* @__PURE__ */ _(Eo, {
5648
+ children: [(e.getHeaderGroups()[0]?.headers ?? []).map(g), x && /* @__PURE__ */ _(Oo, {
5578
5649
  colSpan: p.length,
5579
5650
  className: "wu-p-0 wu-absolute wu-top-0 wu-left-0 wu-right-0 wu-z-10",
5580
5651
  children: b()
5581
5652
  })]
5582
- }) : /* @__PURE__ */ v(So, {
5653
+ }) : /* @__PURE__ */ v(wo, {
5583
5654
  className: G("wu-border-t wu-border-black/[12%] wu-bg-gray-20 wu-relative", s && "wu-sticky wu-top-[-.5px] wu-z-10", f),
5584
5655
  children: [y(), x && /* @__PURE__ */ _("div", {
5585
5656
  className: G("wu-absolute wu-top-[-1px] wu-left-0 wu-right-0 wu-flex wu-items-center wu-border-b wu-border-t wu-bg-gray-20 wu-z-10", f),
5586
5657
  children: b()
5587
5658
  })]
5588
5659
  });
5589
- }, jo = n.forwardRef((e, t) => /* @__PURE__ */ _(Co, {
5660
+ }, No = n.forwardRef((e, t) => /* @__PURE__ */ _(To, {
5590
5661
  ...e,
5591
5662
  ref: t
5592
5663
  }));
5593
- jo.displayName = "TableBodyComponent";
5594
- var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sortableColumns: i, HeaderAction: a, isRowSelected: o, manual: s = !1, onSort: c, tableLayout: l = "auto", isScrolledLeft: u, isScrolledRight: d, isRowExpandable: f, hideHeader: p = !1 }) => {
5595
- let m = e.getRowModel().rows, h = e.getVisibleLeafColumns(), y = oo(h), b = [];
5664
+ No.displayName = "TableBodyComponent";
5665
+ var Po = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sortableColumns: i, HeaderAction: a, isRowSelected: o, manual: s = !1, onSort: c, tableLayout: l = "auto", isScrolledLeft: u, isScrolledRight: d, isRowExpandable: f, hideHeader: p = !1 }) => {
5666
+ let m = e.getRowModel().rows, h = e.getVisibleLeafColumns(), y = co(h), b = [];
5596
5667
  for (let e of m) b.push({
5597
5668
  type: "row",
5598
5669
  row: e
@@ -5605,7 +5676,7 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5605
5676
  children: /* @__PURE__ */ _(ae, {
5606
5677
  style: { height: r },
5607
5678
  totalCount: b.length,
5608
- fixedHeaderContent: p ? void 0 : () => /* @__PURE__ */ _(Ao, {
5679
+ fixedHeaderContent: p ? void 0 : () => /* @__PURE__ */ _(Mo, {
5609
5680
  table: e,
5610
5681
  sortableColumns: i,
5611
5682
  manual: s,
@@ -5621,8 +5692,8 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5621
5692
  let r = b[n];
5622
5693
  if (!r) return null;
5623
5694
  if (r.type === "expanded") {
5624
- let t = ao(r.row, e.getVisibleLeafColumns());
5625
- return /* @__PURE__ */ _(Do, {
5695
+ let t = so(r.row, e.getVisibleLeafColumns());
5696
+ return /* @__PURE__ */ _(ko, {
5626
5697
  colSpan: h.length,
5627
5698
  children: t
5628
5699
  });
@@ -5630,10 +5701,10 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5630
5701
  let i = r.row;
5631
5702
  return /* @__PURE__ */ _(g, { children: i.getVisibleCells().map((e, n) => {
5632
5703
  let r = e.column.columnDef, i = y.get(e.column.id);
5633
- return /* @__PURE__ */ v(Do, {
5634
- className: G(ho(t, r.cellAlign), i && "wu-sticky wu-z-[1]"),
5704
+ return /* @__PURE__ */ v(ko, {
5705
+ className: G(_o(t, r.cellAlign), i && "wu-sticky wu-z-[1]"),
5635
5706
  style: i ? { [i.sticky]: i.offset } : void 0,
5636
- children: [lo(e, r), so(i?.sticky, i?.isStickyEdge ?? !1, u, d)]
5707
+ children: [fo(e, r), lo(i?.sticky, i?.isStickyEdge ?? !1, u, d)]
5637
5708
  }, `${e.id}-${n}`);
5638
5709
  }) });
5639
5710
  },
@@ -5648,30 +5719,30 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5648
5719
  },
5649
5720
  children: [/* @__PURE__ */ _("colgroup", { children: h.map((e) => /* @__PURE__ */ _("col", { style: { width: `${e.getSize()}px` } }, e.id)) }), t.children]
5650
5721
  }),
5651
- TableBody: jo,
5652
- TableHead: (e) => /* @__PURE__ */ _(So, {
5722
+ TableBody: No,
5723
+ TableHead: (e) => /* @__PURE__ */ _(wo, {
5653
5724
  ...e,
5654
- className: G("wu-border-t wu-border-black/[12%] wu-bg-gray-20", go(t), e.className)
5725
+ className: G("wu-border-t wu-border-black/[12%] wu-bg-gray-20", vo(t), e.className)
5655
5726
  }),
5656
5727
  TableRow: ({ ...e }) => {
5657
5728
  let t = b[e["data-index"]], r = t?.row, i = r ? n?.(r.original) ?? !1 : !1, a = r?.getIsSelected() ?? !1;
5658
- return /* @__PURE__ */ _(To, {
5729
+ return /* @__PURE__ */ _(Do, {
5659
5730
  ...e,
5660
5731
  "data-disabled": i,
5661
5732
  "data-state": a && "selected",
5662
5733
  "data-expanded": t?.type === "expanded" ? "true" : void 0,
5663
- className: mo(i)
5734
+ className: go(i)
5664
5735
  });
5665
5736
  }
5666
5737
  }
5667
5738
  })
5668
5739
  });
5669
- }, No = z("", { variants: { variant: {
5740
+ }, Fo = z("", { variants: { variant: {
5670
5741
  striped: "[&_tr:nth-child(even):not([data-expanded])_td]:wu-bg-zinc-50 [&_tr:nth-child(odd)[data-expanded]:not([data-state=\"selected\"])_td]:wu-bg-zinc-50",
5671
5742
  unstyled: "",
5672
5743
  bordered: "wu-border-collapse wu-border wu-border-black/[12%] [&_th]:wu-border [&_td]:wu-border"
5673
- } } }), Po = ({ data: e, columns: t, isLoading: r = !1, variant: i = "unstyled", sort: a, size: o, rowSelection: s, HeaderAction: c, NoDataContent: l, stickyHeader: u = !1, CustomLoader: d, caption: f, virtualization: p, isRowExpandable: m, hideHeader: h = !1, tableLayout: g = "fixed", style: y, className: b, ...x }) => {
5674
- let [S, C] = n.useState(() => a?.defaultSort ?? null), { scrollContainerRef: w, isScrolledLeft: T, isScrolledRight: E, handleScroll: D } = po(), { rowSelectionState: O, sortableColumns: k, selectedRowCount: A, columnsWithExpand: j, expanded: M, setExpanded: N, handleRowSelectionChange: P } = fo({
5744
+ } } }), Io = ({ data: e, columns: t, isLoading: r = !1, variant: i = "unstyled", sort: a, size: o, rowSelection: s, HeaderAction: c, NoDataContent: l, stickyHeader: u = !1, CustomLoader: d, caption: f, virtualization: p, isRowExpandable: m, hideHeader: h = !1, tableLayout: g = "fixed", style: y, className: b, ...x }) => {
5745
+ let [S, C] = n.useState(() => a?.defaultSort ?? null), { scrollContainerRef: w, isScrolledLeft: T, isScrolledRight: E, handleScroll: D } = ho(), { rowSelectionState: O, sortableColumns: k, selectedRowCount: A, columnsWithExpand: j, expanded: M, setExpanded: N, handleRowSelectionChange: P } = mo({
5675
5746
  data: e,
5676
5747
  columns: t,
5677
5748
  rowSelection: s,
@@ -5697,20 +5768,20 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5697
5768
  },
5698
5769
  onRowSelectionChange: P,
5699
5770
  ...m ? { onExpandedChange: N } : {}
5700
- }), I = co(p?.enabled, p?.threshold, e.length), L = p?.maxHeight ?? 600;
5771
+ }), I = uo(p?.enabled, p?.threshold, e.length), L = p?.maxHeight ?? 600;
5701
5772
  return /* @__PURE__ */ _("div", {
5702
5773
  className: G("wu-text-gray-lead wu-table-container wu-relative", !I && u && "wu-h-full"),
5703
5774
  children: I ? /* @__PURE__ */ v("div", {
5704
5775
  ref: w,
5705
5776
  onScroll: D,
5706
- className: G("wu-overflow-x-auto wu-w-full", No({ variant: i })),
5707
- children: [f && /* @__PURE__ */ _(Oo, {
5777
+ className: G("wu-overflow-x-auto wu-w-full", Fo({ variant: i })),
5778
+ children: [f && /* @__PURE__ */ _(Ao, {
5708
5779
  className: "wu-font-light",
5709
5780
  children: f
5710
5781
  }), r ? /* @__PURE__ */ _("div", {
5711
5782
  className: "wu-text-center wu-h-[35vh] wu-flex wu-items-center wu-justify-center",
5712
5783
  children: d ?? /* @__PURE__ */ _(qe, { className: "wu-w-full" })
5713
- }) : F.getRowModel().rows?.length ? /* @__PURE__ */ _(Mo, {
5784
+ }) : F.getRowModel().rows?.length ? /* @__PURE__ */ _(Po, {
5714
5785
  table: F,
5715
5786
  size: o,
5716
5787
  isRowDisabled: s?.isRowDisabled,
@@ -5734,19 +5805,19 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5734
5805
  ref: w,
5735
5806
  onScroll: D,
5736
5807
  className: G("wu-overflow-x-auto wu-w-full", u && "wu-overflow-y-auto wu-h-full"),
5737
- children: /* @__PURE__ */ v(xo, {
5808
+ children: /* @__PURE__ */ v(Co, {
5738
5809
  ...x,
5739
- className: G("wu-w-full", No({ variant: i }), b),
5810
+ className: G("wu-w-full", Fo({ variant: i }), b),
5740
5811
  style: {
5741
5812
  tableLayout: g,
5742
5813
  ...y
5743
5814
  },
5744
5815
  children: [
5745
- f && /* @__PURE__ */ _(Oo, {
5816
+ f && /* @__PURE__ */ _(Ao, {
5746
5817
  className: "wu-font-light",
5747
5818
  children: f
5748
5819
  }),
5749
- !h && /* @__PURE__ */ _(Ao, {
5820
+ !h && /* @__PURE__ */ _(Mo, {
5750
5821
  table: F,
5751
5822
  sortableColumns: k,
5752
5823
  manual: !0,
@@ -5761,7 +5832,7 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5761
5832
  isScrolledLeft: T,
5762
5833
  isScrolledRight: E
5763
5834
  }),
5764
- /* @__PURE__ */ _(ko, {
5835
+ /* @__PURE__ */ _(jo, {
5765
5836
  table: F,
5766
5837
  size: o,
5767
5838
  NoDataContent: l,
@@ -5776,11 +5847,11 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5776
5847
  })
5777
5848
  })
5778
5849
  });
5779
- }, Fo = ({ data: e, columns: t, variant: r = "unstyled", size: i = "default", sort: a, filterText: o, pagination: s, stickyHeader: c, HeaderAction: l, CustomLoader: f, NoDataContent: m, isLoading: h, caption: g, rowSelection: y, isRowExpandable: b, hideHeader: x = !1, virtualization: S, tableLayout: C = "fixed", style: w, className: T, ...E }) => {
5850
+ }, Lo = ({ data: e, columns: t, variant: r = "unstyled", size: i = "default", sort: a, filterText: o, pagination: s, stickyHeader: c, HeaderAction: l, CustomLoader: f, NoDataContent: m, isLoading: h, caption: g, rowSelection: y, isRowExpandable: b, hideHeader: x = !1, virtualization: S, tableLayout: C = "fixed", style: w, className: T, ...E }) => {
5780
5851
  let [D, O] = n.useState(() => a?.defaultSort ? [{
5781
5852
  id: a.defaultSort.id,
5782
5853
  desc: a.defaultSort.desc
5783
- }] : []), [k, A] = p([]), [j, M] = p(s?.pageIndex ?? 0), { scrollContainerRef: N, isScrolledLeft: P, isScrolledRight: F, handleScroll: I } = po(), { finalColumns: L, rowSelectionState: ee, sortableColumns: te, selectedRowCount: R, columnsWithExpand: z, expanded: ne, setExpanded: re, handleRowSelectionChange: ie } = fo({
5854
+ }] : []), [k, A] = p([]), [j, M] = p(s?.pageIndex ?? 0), { scrollContainerRef: N, isScrolledLeft: P, isScrolledRight: F, handleScroll: I } = ho(), { finalColumns: L, rowSelectionState: ee, sortableColumns: te, selectedRowCount: R, columnsWithExpand: z, expanded: ne, setExpanded: re, handleRowSelectionChange: ie } = mo({
5784
5855
  data: e,
5785
5856
  columns: t,
5786
5857
  rowSelection: y,
@@ -5818,17 +5889,17 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5818
5889
  ]), u(() => {
5819
5890
  s && s?.pageIndex !== j && (y?.onRowSelect([]), B.resetRowSelection(), M(s.pageIndex));
5820
5891
  }, [s?.pageIndex]);
5821
- let V = co(S?.enabled, S?.threshold, e.length), H = S?.maxHeight ?? 600;
5892
+ let V = uo(S?.enabled, S?.threshold, e.length), H = S?.maxHeight ?? 600;
5822
5893
  return /* @__PURE__ */ _("div", {
5823
5894
  className: G("wu-text-gray-lead wu-table-container wu-relative", !V && c && "wu-h-full"),
5824
5895
  children: V ? /* @__PURE__ */ v("div", {
5825
5896
  ref: N,
5826
5897
  onScroll: I,
5827
- className: G("wu-overflow-x-auto wu-w-full", No({ variant: r })),
5828
- children: [g && /* @__PURE__ */ _(Oo, { children: g }), h ? /* @__PURE__ */ _("div", {
5898
+ className: G("wu-overflow-x-auto wu-w-full", Fo({ variant: r })),
5899
+ children: [g && /* @__PURE__ */ _(Ao, { children: g }), h ? /* @__PURE__ */ _("div", {
5829
5900
  className: "wu-text-center wu-h-[35vh] wu-flex wu-items-center wu-justify-center",
5830
5901
  children: f ?? /* @__PURE__ */ _(qe, { className: "wu-w-full" })
5831
- }) : B.getRowModel().rows?.length ? /* @__PURE__ */ _(Mo, {
5902
+ }) : B.getRowModel().rows?.length ? /* @__PURE__ */ _(Po, {
5832
5903
  table: B,
5833
5904
  size: i,
5834
5905
  isRowDisabled: y?.isRowDisabled,
@@ -5849,16 +5920,16 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5849
5920
  ref: N,
5850
5921
  onScroll: I,
5851
5922
  className: G("wu-overflow-x-auto wu-w-full", c && "wu-overflow-y-auto wu-h-full"),
5852
- children: /* @__PURE__ */ v(xo, {
5923
+ children: /* @__PURE__ */ v(Co, {
5853
5924
  ...E,
5854
- className: G(`wu-table-${C}`, "wu-w-full", No({ variant: r }), T),
5925
+ className: G(`wu-table-${C}`, "wu-w-full", Fo({ variant: r }), T),
5855
5926
  style: {
5856
5927
  tableLayout: C,
5857
5928
  ...w
5858
5929
  },
5859
5930
  children: [
5860
- g && /* @__PURE__ */ _(Oo, { children: g }),
5861
- !x && /* @__PURE__ */ _(Ao, {
5931
+ g && /* @__PURE__ */ _(Ao, { children: g }),
5932
+ !x && /* @__PURE__ */ _(Mo, {
5862
5933
  table: B,
5863
5934
  sortableColumns: te,
5864
5935
  size: i,
@@ -5869,7 +5940,7 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5869
5940
  isScrolledLeft: P,
5870
5941
  isScrolledRight: F
5871
5942
  }),
5872
- /* @__PURE__ */ _(ko, {
5943
+ /* @__PURE__ */ _(jo, {
5873
5944
  table: B,
5874
5945
  size: i,
5875
5946
  NoDataContent: m,
@@ -5884,22 +5955,22 @@ var Mo = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
5884
5955
  })
5885
5956
  })
5886
5957
  });
5887
- }, Io = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("textarea", {
5958
+ }, Ro = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("textarea", {
5888
5959
  className: G("wu-flex wu-w-full wu-border-b wu-border-gray-subtle wu-bg-gray-10 wu-text-gray-lead wu-p-2 wu-text-sm wu-font-normal wu-placeholder:wu-text-gray-subtle wu-placeholder:wu-font-light focus-visible:wu-outline-none disabled:wu-cursor-not-allowed disabled:wu-bg-gray-20 disabled:wu-border-gray-40 disabled:wu-text-gray-subtle read-only:wu-cursor-not-allowed read-only:wu-bg-gray-20 read-only:wu-border-gray-40 read-only:wu-text-gray-subtle focus:wu-border-blue-p wu-transition-colors hover:wu-border-gray-40 ", e),
5889
5960
  ref: n,
5890
5961
  ...t
5891
5962
  }));
5892
- Io.displayName = "Textarea";
5963
+ Ro.displayName = "Textarea";
5893
5964
  //#endregion
5894
5965
  //#region src/components/textarea/WuTextarea.tsx
5895
- var Lo = n.forwardRef((e, t) => {
5966
+ var zo = n.forwardRef((e, t) => {
5896
5967
  let { Label: n, id: r = ke(), variant: i = "flat", readonly: a, maxLength: o, labelPosition: s = "top", ...c } = e, l = (e) => {
5897
5968
  c.onChange && c.onChange(e);
5898
5969
  };
5899
5970
  return /* @__PURE__ */ v("div", {
5900
5971
  className: G(Ae(s), "wu-flex wu-textarea-container"),
5901
5972
  dir: c.dir,
5902
- children: [/* @__PURE__ */ _(Io, {
5973
+ children: [/* @__PURE__ */ _(Ro, {
5903
5974
  ...c,
5904
5975
  ref: t,
5905
5976
  id: r,
@@ -5907,32 +5978,32 @@ var Lo = n.forwardRef((e, t) => {
5907
5978
  onChange: l,
5908
5979
  readOnly: a,
5909
5980
  maxLength: o
5910
- }), n && /* @__PURE__ */ _(Z, {
5981
+ }), n && /* @__PURE__ */ _(X, {
5911
5982
  htmlFor: r,
5912
5983
  className: "wu-textarea-label",
5913
5984
  children: n
5914
5985
  })]
5915
5986
  });
5916
5987
  });
5917
- Lo.displayName = "WuTextarea";
5988
+ zo.displayName = "WuTextarea";
5918
5989
  //#endregion
5919
5990
  //#region src/components/timePicker/utils/timePickerUtils.ts
5920
- function Ro(e) {
5991
+ function Bo(e) {
5921
5992
  return typeof e == "string" && e.includes("T") ? E(M(e), "HH:mm") : typeof e == "string" && /^\d{2}:\d{2}:\d{2}$/.test(e) ? E(j(e, "HH:mm:ss", /* @__PURE__ */ new Date()), "HH:mm") : typeof e == "string" && /^\d{2}:\d{2}$/.test(e) ? e : "00:00";
5922
5993
  }
5923
- var zo = ["12", ...Array.from({ length: 11 }, (e, t) => String(t + 1).padStart(2, "0"))], Bo = Array.from({ length: 60 }, (e, t) => String(t).padStart(2, "0")), Vo = ["am", "pm"];
5924
- function Ho(e) {
5994
+ var Vo = ["12", ...Array.from({ length: 11 }, (e, t) => String(t + 1).padStart(2, "0"))], Ho = Array.from({ length: 60 }, (e, t) => String(t).padStart(2, "0")), Uo = ["am", "pm"];
5995
+ function Wo(e) {
5925
5996
  return Array(50).fill(e).flat();
5926
5997
  }
5927
- function Uo(e, t) {
5998
+ function Go(e, t) {
5928
5999
  let n = e.indexOf(t);
5929
6000
  return [...e.slice(n), ...e.slice(0, n)];
5930
6001
  }
5931
- function Wo(e, t) {
6002
+ function Ko(e, t) {
5932
6003
  let n = Number(e);
5933
6004
  return t === "pm" && n < 12 && (n += 12), t === "am" && n === 12 && (n = 0), String(n).padStart(2, "0");
5934
6005
  }
5935
- function Go(e) {
6006
+ function qo(e) {
5936
6007
  let t = Number(e), n = t >= 12 ? "pm" : "am", r = t % 12 == 0 ? 12 : t % 12;
5937
6008
  return {
5938
6009
  hour: String(r),
@@ -5941,15 +6012,15 @@ function Go(e) {
5941
6012
  }
5942
6013
  //#endregion
5943
6014
  //#region src/components/timePicker/components/timeColumn.tsx
5944
- var Ko = ({ value: e, isSelected: t, onClick: n }) => /* @__PURE__ */ _("div", {
6015
+ var Jo = ({ value: e, isSelected: t, onClick: n }) => /* @__PURE__ */ _("div", {
5945
6016
  onClick: n,
5946
6017
  className: G("wu-w-8 wu-h-8 wu-flex wu-items-center wu-justify-center wu-text-center wu-snap-start wu-rounded-[2px] wu-cursor-pointer hover:wu-bg-blue-p hover:wu-text-white", t && "wu-bg-blue-p/15 wu-text-blue-p"),
5947
6018
  children: e
5948
- }), qo = ({ values: e, selectedValue: t, scrollRef: n, onSelect: r, repeatItems: i = !0, className: a }) => /* @__PURE__ */ _("div", {
6019
+ }), Yo = ({ values: e, selectedValue: t, scrollRef: n, onSelect: r, repeatItems: i = !0, className: a }) => /* @__PURE__ */ _("div", {
5949
6020
  ref: n,
5950
6021
  className: G("wu-overflow-y-scroll wu-w-8 wu-snap-y wu-snap-mandatory [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", a),
5951
6022
  role: "presentation",
5952
- children: (i ? Ho(e) : e).map((e, n) => /* @__PURE__ */ _(Ko, {
6023
+ children: (i ? Wo(e) : e).map((e, n) => /* @__PURE__ */ _(Jo, {
5953
6024
  value: e,
5954
6025
  isSelected: e === t,
5955
6026
  onClick: () => r(e)
@@ -5957,16 +6028,16 @@ var Ko = ({ value: e, isSelected: t, onClick: n }) => /* @__PURE__ */ _("div", {
5957
6028
  });
5958
6029
  //#endregion
5959
6030
  //#region src/components/timePicker/hooks/useRotatedArrays.ts
5960
- function Jo(e, t, n, r) {
6031
+ function Xo(e, t, n, r) {
5961
6032
  return {
5962
- rotatedHours: d(() => e ? Uo(zo, t.padStart(2, "0")) : zo, [e]),
5963
- rotatedMinutes: d(() => e ? Uo(Bo, n.padStart(2, "0")) : Bo, [e]),
5964
- rotatedMeridiem: d(() => e ? Uo(Vo, r) : Vo, [e])
6033
+ rotatedHours: d(() => e ? Go(Vo, t.padStart(2, "0")) : Vo, [e]),
6034
+ rotatedMinutes: d(() => e ? Go(Ho, n.padStart(2, "0")) : Ho, [e]),
6035
+ rotatedMeridiem: d(() => e ? Go(Uo, r) : Uo, [e])
5965
6036
  };
5966
6037
  }
5967
6038
  //#endregion
5968
6039
  //#region src/components/timePicker/hooks/useTimePickerScroll.ts
5969
- function Yo(e, t, n) {
6040
+ function Zo(e, t, n) {
5970
6041
  u(() => {
5971
6042
  function r(e) {
5972
6043
  if (e) {
@@ -5994,16 +6065,16 @@ function Yo(e, t, n) {
5994
6065
  }
5995
6066
  //#endregion
5996
6067
  //#region src/components/timePicker/WuTimePicker.tsx
5997
- var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) => {
6068
+ var Qo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) => {
5998
6069
  let [c, l] = p(!1), [u, d] = p(""), m = f(null), h = f(null), g = f(null), y = f(null), [b, x] = p("12"), [S, C] = p("00"), [w, T] = p("am");
5999
6070
  n.useEffect(() => {
6000
6071
  if (!t) {
6001
6072
  d(""), x("12"), C("00"), T("am"), m.current && (m.current.value = "");
6002
6073
  return;
6003
6074
  }
6004
- let e = Ro(t);
6075
+ let e = Bo(t);
6005
6076
  d(e);
6006
- let [n, r] = e.split(":"), { hour: i, meridiem: a } = Go(n);
6077
+ let [n, r] = e.split(":"), { hour: i, meridiem: a } = qo(n);
6007
6078
  x(i), C(r), T(a), m.current && (m.current.value = e);
6008
6079
  }, [t]), n.useEffect(() => {
6009
6080
  let e = (e) => {
@@ -6012,10 +6083,10 @@ var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) =
6012
6083
  return document.addEventListener("mousedown", e), () => {
6013
6084
  document.removeEventListener("mousedown", e);
6014
6085
  };
6015
- }, []), Yo(c, g, y);
6016
- let { rotatedHours: E, rotatedMinutes: D, rotatedMeridiem: O } = Jo(c, b, S, w), k = s((e, t, n) => {
6086
+ }, []), Zo(c, g, y);
6087
+ let { rotatedHours: E, rotatedMinutes: D, rotatedMeridiem: O } = Xo(c, b, S, w), k = s((e, t, n) => {
6017
6088
  let r = e ?? b, i = t ?? S, a = n ?? w;
6018
- x(r), C(i), T(a), d(`${Wo(r, a)}:${i}`);
6089
+ x(r), C(i), T(a), d(`${Ko(r, a)}:${i}`);
6019
6090
  }, [
6020
6091
  b,
6021
6092
  S,
@@ -6024,7 +6095,7 @@ var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) =
6024
6095
  return /* @__PURE__ */ v("div", {
6025
6096
  className: G("wu-flex wu-gap-1 wu-relative wu-w-fit wu-flex-col", (i === "right" || i === "left") && "wu-items-center", i === "left" && "wu-flex-row", i === "right" && "wu-flex-row-reverse", "wu-input-wrapper"),
6026
6097
  dir: a,
6027
- children: [r && /* @__PURE__ */ _(Z, {
6098
+ children: [r && /* @__PURE__ */ _(X, {
6028
6099
  htmlFor: "time-picker",
6029
6100
  className: "wu-timepicker-label",
6030
6101
  children: r
@@ -6033,7 +6104,7 @@ var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) =
6033
6104
  ref: h,
6034
6105
  dir: a,
6035
6106
  children: [
6036
- /* @__PURE__ */ _(qt, {
6107
+ /* @__PURE__ */ _(Jt, {
6037
6108
  ref: m,
6038
6109
  type: "time",
6039
6110
  value: u,
@@ -6041,7 +6112,7 @@ var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) =
6041
6112
  role: "textbox",
6042
6113
  onChange: (e) => {
6043
6114
  d(e.target.value);
6044
- let [t, n] = e.target.value.split(":"), { hour: r, meridiem: i } = Go(t);
6115
+ let [t, n] = e.target.value.split(":"), { hour: r, meridiem: i } = qo(t);
6045
6116
  x(r), C(n), T(i);
6046
6117
  },
6047
6118
  className: "wu-w-[136px] wu-h-8 wu-pr-6 wu-border wu-border-lead/40 wu-text-gray-lead wu-timepicker-input",
@@ -6063,21 +6134,21 @@ var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) =
6063
6134
  c && /* @__PURE__ */ v("div", {
6064
6135
  className: G("wu-absolute wu-w-[136px] wu-h-[228px] wu-flex wu-bg-white wu-border wu-shadow wu-z-50 wu-text-xs wu-gap-1 wu-p-1 wu-border-blue-p wu-text-lead", e),
6065
6136
  children: [
6066
- /* @__PURE__ */ _(qo, {
6137
+ /* @__PURE__ */ _(Yo, {
6067
6138
  values: E,
6068
6139
  selectedValue: b.padStart(2, "0"),
6069
6140
  scrollRef: g,
6070
6141
  onSelect: (e) => k(e, S),
6071
6142
  className: "wu-time-hour-picker"
6072
6143
  }),
6073
- /* @__PURE__ */ _(qo, {
6144
+ /* @__PURE__ */ _(Yo, {
6074
6145
  values: D,
6075
6146
  selectedValue: S.padStart(2, "0"),
6076
6147
  scrollRef: y,
6077
6148
  onSelect: (e) => k(b, e),
6078
6149
  className: "wu-time-minute-picker"
6079
6150
  }),
6080
- /* @__PURE__ */ _(qo, {
6151
+ /* @__PURE__ */ _(Yo, {
6081
6152
  values: O,
6082
6153
  selectedValue: w,
6083
6154
  onSelect: (e) => k(void 0, void 0, e),
@@ -6090,27 +6161,27 @@ var Xo = ({ className: e, time: t, Label: r, labelPosition: i, dir: a, ...o }) =
6090
6161
  })]
6091
6162
  });
6092
6163
  };
6093
- Xo.displayName = "WuTimePicker";
6164
+ Qo.displayName = "WuTimePicker";
6094
6165
  //#endregion
6095
6166
  //#region src/base/ui/useToast.ts
6096
- var Zo = 1, Qo = 1e6, $o = 0;
6097
- function es() {
6098
- return $o = ($o + 1) % (2 ** 53 - 1), $o.toString();
6167
+ var $o = 1, es = 1e6, ts = 0;
6168
+ function ns() {
6169
+ return ts = (ts + 1) % (2 ** 53 - 1), ts.toString();
6099
6170
  }
6100
- var ts = /* @__PURE__ */ new Map(), ns = (e) => {
6101
- if (ts.has(e)) return;
6171
+ var rs = /* @__PURE__ */ new Map(), is = (e) => {
6172
+ if (rs.has(e)) return;
6102
6173
  let t = setTimeout(() => {
6103
- ts.delete(e), os({
6174
+ rs.delete(e), cs({
6104
6175
  type: "REMOVE_TOAST",
6105
6176
  toastId: e
6106
6177
  });
6107
- }, Qo);
6108
- ts.set(e, t);
6109
- }, rs = (e, t) => {
6178
+ }, es);
6179
+ rs.set(e, t);
6180
+ }, as = (e, t) => {
6110
6181
  switch (t.type) {
6111
6182
  case "ADD_TOAST": return {
6112
6183
  ...e,
6113
- toasts: [t.toast, ...e.toasts].slice(0, Zo)
6184
+ toasts: [t.toast, ...e.toasts].slice(0, $o)
6114
6185
  };
6115
6186
  case "UPDATE_TOAST": return {
6116
6187
  ...e,
@@ -6121,8 +6192,8 @@ var ts = /* @__PURE__ */ new Map(), ns = (e) => {
6121
6192
  };
6122
6193
  case "DISMISS_TOAST": {
6123
6194
  let { toastId: n } = t;
6124
- return n ? ns(n) : e.toasts.forEach((e) => {
6125
- ns(e.id);
6195
+ return n ? is(n) : e.toasts.forEach((e) => {
6196
+ is(e.id);
6126
6197
  }), {
6127
6198
  ...e,
6128
6199
  toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
@@ -6139,24 +6210,24 @@ var ts = /* @__PURE__ */ new Map(), ns = (e) => {
6139
6210
  toasts: e.toasts.filter((e) => e.id !== t.toastId)
6140
6211
  };
6141
6212
  }
6142
- }, is = [], as = { toasts: [] };
6143
- function os(e) {
6144
- as = rs(as, e), is.forEach((e) => {
6145
- e(as);
6213
+ }, os = [], ss = { toasts: [] };
6214
+ function cs(e) {
6215
+ ss = as(ss, e), os.forEach((e) => {
6216
+ e(ss);
6146
6217
  });
6147
6218
  }
6148
- function ss({ ...e }) {
6149
- let t = es(), n = (e) => os({
6219
+ function ls({ ...e }) {
6220
+ let t = ns(), n = (e) => cs({
6150
6221
  type: "UPDATE_TOAST",
6151
6222
  toast: {
6152
6223
  ...e,
6153
6224
  id: t
6154
6225
  }
6155
- }), r = () => os({
6226
+ }), r = () => cs({
6156
6227
  type: "DISMISS_TOAST",
6157
6228
  toastId: t
6158
6229
  });
6159
- return os({
6230
+ return cs({
6160
6231
  type: "ADD_TOAST",
6161
6232
  toast: {
6162
6233
  ...e,
@@ -6172,15 +6243,15 @@ function ss({ ...e }) {
6172
6243
  update: n
6173
6244
  };
6174
6245
  }
6175
- function cs() {
6176
- let [e, t] = p(as);
6177
- return u(() => (is.push(t), () => {
6178
- let e = is.indexOf(t);
6179
- e > -1 && is.splice(e, 1);
6246
+ function us() {
6247
+ let [e, t] = p(ss);
6248
+ return u(() => (os.push(t), () => {
6249
+ let e = os.indexOf(t);
6250
+ e > -1 && os.splice(e, 1);
6180
6251
  }), [e]), {
6181
6252
  ...e,
6182
- toast: ss,
6183
- dismiss: (e) => os({
6253
+ toast: ls,
6254
+ dismiss: (e) => cs({
6184
6255
  type: "DISMISS_TOAST",
6185
6256
  toastId: e
6186
6257
  })
@@ -6188,12 +6259,12 @@ function cs() {
6188
6259
  }
6189
6260
  //#endregion
6190
6261
  //#region src/components/toast/hooks/useWuShowToast.ts
6191
- var ls = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r }) => ss({
6262
+ var ds = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r }) => ls({
6192
6263
  description: e,
6193
6264
  variant: t,
6194
6265
  duration: n,
6195
6266
  position: r
6196
- }) }), us = W.Provider, ds = z("wu-fixed wu-z-[100] wu-flex wu-max-h-screen wu-w-full wu-flex-col-reverse wu-px-4 wu-py-2 sm:wu-flex-col md:wu-max-w-[720px] wu-w-fit wu-toast-container", {
6267
+ }) }), fs = W.Provider, ps = z("wu-fixed wu-z-[100] wu-flex wu-max-h-screen wu-w-full wu-flex-col-reverse wu-px-4 wu-py-2 sm:wu-flex-col md:wu-max-w-[720px] wu-w-fit wu-toast-container", {
6197
6268
  variants: { position: {
6198
6269
  topRight: "wu-right-0 wu-top-0",
6199
6270
  top: "wu-top-0 wu-left-1/2 wu--translate-x-1/2",
@@ -6203,13 +6274,13 @@ var ls = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r
6203
6274
  bottomLeft: "wu-left-0 wu-bottom-0"
6204
6275
  } },
6205
6276
  defaultVariants: { position: "top" }
6206
- }), fs = t.forwardRef(({ className: e, position: t, ...n }, r) => /* @__PURE__ */ _(W.Viewport, {
6277
+ }), ms = t.forwardRef(({ className: e, position: t, ...n }, r) => /* @__PURE__ */ _(W.Viewport, {
6207
6278
  ref: r,
6208
- className: G(ds({ position: t }), e),
6279
+ className: G(ps({ position: t }), e),
6209
6280
  ...n
6210
6281
  }));
6211
- fs.displayName = W.Viewport.displayName;
6212
- var ps = z("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative wu-flex wu-w-full wu-min-h-12 wu-items-center wu-justify-between wu-overflow-hidden wu-px-4 wu-pr-0 wu-py-2 wu-shadow-sm wu-transition-all data-[swipe=cancel]:wu-translate-y-0 data-[swipe=end]:wu-translate-y-[var(--radix-toast-swipe-end-y)] data-[swipe=move]:wu-translate-y-[var(--radix-toast-swipe-move-y)] data-[swipe=move]:wu-transition-none data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[swipe=end]:wu-animate-out data-[state=closed]:wu-fade-out-80", {
6282
+ ms.displayName = W.Viewport.displayName;
6283
+ var hs = z("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative wu-flex wu-w-full wu-min-h-12 wu-items-center wu-justify-between wu-overflow-hidden wu-px-4 wu-pr-0 wu-py-2 wu-shadow-sm wu-transition-all data-[swipe=cancel]:wu-translate-y-0 data-[swipe=end]:wu-translate-y-[var(--radix-toast-swipe-end-y)] data-[swipe=move]:wu-translate-y-[var(--radix-toast-swipe-move-y)] data-[swipe=move]:wu-transition-none data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[swipe=end]:wu-animate-out data-[state=closed]:wu-fade-out-80", {
6213
6284
  variants: {
6214
6285
  variant: {
6215
6286
  default: "wu-border wu-bg-white wu-text-text",
@@ -6231,22 +6302,22 @@ var ps = z("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative w
6231
6302
  variant: "success",
6232
6303
  position: "top"
6233
6304
  }
6234
- }), ms = t.forwardRef(({ className: e, variant: t, position: n, ...r }, i) => /* @__PURE__ */ _(W.Root, {
6305
+ }), gs = t.forwardRef(({ className: e, variant: t, position: n, ...r }, i) => /* @__PURE__ */ _(W.Root, {
6235
6306
  ref: i,
6236
- className: G(ps({
6307
+ className: G(hs({
6237
6308
  variant: t,
6238
6309
  position: n
6239
6310
  }), e),
6240
6311
  ...r
6241
6312
  }));
6242
- ms.displayName = W.Root.displayName;
6243
- var hs = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Action, {
6313
+ gs.displayName = W.Root.displayName;
6314
+ var _s = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Action, {
6244
6315
  ref: n,
6245
6316
  className: G("wu-inline-flex wu-h-8 wu-shrink-0 wu-items-center wu-justify-center wu-border wu-bg-transparent wu-px-3 wu-text-sm wu-font-medium wu-ring-offset-background wu-transition-colors hover:wu-bg-secondary focus:wu-outline-none focus:wu-ring-2 focus:wu-ring-ring focus:wu-ring-offset-2 disabled:wu-cursor-not-allowed disabled:wu-opacity-50 group-[.destructive]:wu-border-muted/40 group-[.destructive]:hover:wu-border-destructive/30 group-[.destructive]:hover:wu-bg-destructive group-[.destructive]:hover:wu-text-destructive-foreground group-[.destructive]:focus:wu-ring-destructive", e),
6246
6317
  ...t
6247
6318
  }));
6248
- hs.displayName = W.Action.displayName;
6249
- var gs = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Close, {
6319
+ _s.displayName = W.Action.displayName;
6320
+ var vs = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Close, {
6250
6321
  ref: n,
6251
6322
  className: G("wu-relative wu-right-4 wu-bottom-2 wu-rounded-sm wu-w-4 wu-h-4 wu-p-1 wu-text-foreground/50 wu-opacity-100 wu-transition-opacity hover:wu-text-foreground focus:wu-opacity-100 focus:wu-outline-none group-hover:wu-opacity-100 group-[.destructive]:wu-text-red-300 group-[.destructive]:hover:wu-text-red-50 group-[.destructive]:focus:wu-ring-red-400 group-[.destructive]:focus:wu-ring-offset-red-600", e),
6252
6323
  "toast-close": "",
@@ -6254,27 +6325,27 @@ var gs = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Close,
6254
6325
  ...t,
6255
6326
  children: /* @__PURE__ */ _("span", { className: "wm-close wu-text-base" })
6256
6327
  }));
6257
- gs.displayName = W.Close.displayName;
6258
- var _s = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Title, {
6328
+ vs.displayName = W.Close.displayName;
6329
+ var ys = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Title, {
6259
6330
  ref: n,
6260
6331
  className: G("wu-text-sm wu-font-semibold", e),
6261
6332
  ...t
6262
6333
  }));
6263
- _s.displayName = W.Title.displayName;
6264
- var vs = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Description, {
6334
+ ys.displayName = W.Title.displayName;
6335
+ var bs = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(W.Description, {
6265
6336
  ref: n,
6266
6337
  className: G("wu-text-sm wu-opacity-90", e),
6267
6338
  ...t
6268
6339
  }));
6269
- vs.displayName = W.Description.displayName;
6340
+ bs.displayName = W.Description.displayName;
6270
6341
  //#endregion
6271
6342
  //#region src/base/ui/toaster.tsx
6272
- function ys() {
6273
- let { toasts: e } = cs(), t = e.reduce((e, t) => {
6343
+ function xs() {
6344
+ let { toasts: e } = us(), t = e.reduce((e, t) => {
6274
6345
  let n = t.position || "top";
6275
6346
  return e[n] || (e[n] = []), e[n].push(t), e;
6276
6347
  }, {});
6277
- return /* @__PURE__ */ _(us, { children: Object.entries(t).map(([e, t]) => /* @__PURE__ */ _(fs, {
6348
+ return /* @__PURE__ */ _(fs, { children: Object.entries(t).map(([e, t]) => /* @__PURE__ */ _(ms, {
6278
6349
  position: e,
6279
6350
  children: t.map(function({ id: e, title: t, description: n, action: r, variant: i, position: a, ...o }) {
6280
6351
  let s = {
@@ -6283,14 +6354,14 @@ function ys() {
6283
6354
  warning: "wm-error",
6284
6355
  error: "wm-cancel"
6285
6356
  };
6286
- return /* @__PURE__ */ v(ms, {
6357
+ return /* @__PURE__ */ v(gs, {
6287
6358
  variant: i || "success",
6288
6359
  position: a,
6289
6360
  ...o,
6290
6361
  children: [
6291
6362
  /* @__PURE__ */ v("div", {
6292
6363
  className: "wu-grid wu-gap-1",
6293
- children: [t && /* @__PURE__ */ _(_s, { children: t }), n && /* @__PURE__ */ v(vs, {
6364
+ children: [t && /* @__PURE__ */ _(ys, { children: t }), n && /* @__PURE__ */ v(bs, {
6294
6365
  className: "wu-flex wu-items-center wu-gap-3 wu-pr-6",
6295
6366
  children: [/* @__PURE__ */ _(J, {
6296
6367
  icon: s[i || "success"],
@@ -6299,7 +6370,7 @@ function ys() {
6299
6370
  })]
6300
6371
  }),
6301
6372
  r,
6302
- /* @__PURE__ */ _(gs, {})
6373
+ /* @__PURE__ */ _(vs, {})
6303
6374
  ]
6304
6375
  }, e);
6305
6376
  })
@@ -6307,24 +6378,24 @@ function ys() {
6307
6378
  }
6308
6379
  //#endregion
6309
6380
  //#region src/components/toast/WuToast.tsx
6310
- var bs = () => /* @__PURE__ */ _(ys, {}), xs = t.forwardRef(({ className: e, dir: t, ...n }, r) => /* @__PURE__ */ _(Ee.Root, {
6381
+ var Ss = () => /* @__PURE__ */ _(xs, {}), Cs = t.forwardRef(({ className: e, dir: t, ...n }, r) => /* @__PURE__ */ _(Ee.Root, {
6311
6382
  className: G("wu-bg-gray-40 wu-inline-flex wu-h-2 wu-w-8 wu-shrink-0 wu-cursor-pointer wu-items-center wu-rounded-full wu-transition-colors focus-visible:wu-outline-none focus-visible:wu-ring-2 focus-visible:wu-ring-ring focus-visible:wu-ring-offset-[5px] focus-visible:wu-ring-offset-background disabled:wu-cursor-not-allowed disabled:wu-opacity-50 data-[state=unchecked]:wu-bg-gray-25 wu-group", "hover:wu-bg-gray-subtle hover:data-[state=unchecked]:wu-bg-gray-subtle", e),
6312
6383
  ...n,
6313
6384
  ref: r,
6314
6385
  children: /* @__PURE__ */ _(Ee.Thumb, { className: G("wu-block wu-h-4 wu-w-4 wu-rounded-full wu-bg-gray-subtle wu-shadow-lg wu-ring-0 wu-transition-all data-[state=checked]:wu-bg-blue-p", "group-hover:data-[state=unchecked]:wu-bg-gray-lead", t === "rtl" && "-wu-translate-x-4 data-[state=unchecked]:wu-translate-x-0", t !== "rtl" && "wu-translate-x-4 data-[state=unchecked]:wu-translate-x-0", "wu-toggle-thumb") })
6315
6386
  }));
6316
- xs.displayName = Ee.Root.displayName;
6387
+ Cs.displayName = Ee.Root.displayName;
6317
6388
  //#endregion
6318
6389
  //#region src/components/toggle/WuToggle.tsx
6319
- var Ss = n.forwardRef((e, t) => {
6390
+ var ws = n.forwardRef((e, t) => {
6320
6391
  let { Label: r, labelPosition: i = "right", onChange: a, className: o, dir: s, disabled: c, id: l = ke(), ...u } = e;
6321
6392
  return n.useEffect(() => {
6322
6393
  let { checked: e, defaultChecked: t } = u;
6323
6394
  e !== void 0 && t !== void 0 && console.error("WuToggle: Both `checked` and `defaultChecked` props are set. Use only one of them.");
6324
6395
  }, [u.checked, u.defaultChecked]), /* @__PURE__ */ v("div", {
6325
- className: G(Cs({ labelPosition: i }), "wu-toggle-container"),
6396
+ className: G(Ts({ labelPosition: i }), "wu-toggle-container"),
6326
6397
  dir: s,
6327
- children: [/* @__PURE__ */ _(xs, {
6398
+ children: [/* @__PURE__ */ _(Cs, {
6328
6399
  ...u,
6329
6400
  id: l,
6330
6401
  disabled: c,
@@ -6332,27 +6403,27 @@ var Ss = n.forwardRef((e, t) => {
6332
6403
  onCheckedChange: a,
6333
6404
  className: G("wu-peer", o),
6334
6405
  dir: s
6335
- }), /* @__PURE__ */ _(Z, {
6406
+ }), /* @__PURE__ */ _(X, {
6336
6407
  htmlFor: l,
6337
6408
  className: "wu-toggle-label",
6338
6409
  children: r
6339
6410
  })]
6340
6411
  });
6341
6412
  });
6342
- Ss.displayName = "WuToggle";
6343
- var Cs = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosition: {
6413
+ ws.displayName = "WuToggle";
6414
+ var Ts = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosition: {
6344
6415
  right: "wu-flex-row",
6345
6416
  left: "wu-flex-row-reverse",
6346
6417
  top: "wu-flex-col-reverse wu-items-baseline"
6347
- } } }), ws = r(null), Ts = () => {
6348
- let e = l(ws);
6418
+ } } }), Es = r(null), Ds = () => {
6419
+ let e = l(Es);
6349
6420
  if (!e) throw Error("useTranslation must be used within a WuTranslationProvider");
6350
6421
  return e.useTranslation();
6351
- }, Es = () => {
6352
- let e = l(ws);
6422
+ }, Os = () => {
6423
+ let e = l(Es);
6353
6424
  if (!e) throw Error("useLoadTranslationsFunction must be used within a WuTranslationProvider");
6354
6425
  return e;
6355
- }, Ds = ({ children: e }) => {
6426
+ }, ks = ({ children: e }) => {
6356
6427
  let [t, n] = p({}), [r, i] = p({}), a = {
6357
6428
  loadTranslations: s(async (e, t) => {
6358
6429
  try {
@@ -6367,15 +6438,15 @@ var Cs = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
6367
6438
  }, []),
6368
6439
  useTranslation: s(() => ({ t: (e, n) => t[e] ? t[e] : r[e] ? r[e] : n || e }), [t, r])
6369
6440
  };
6370
- return /* @__PURE__ */ _(ws.Provider, {
6441
+ return /* @__PURE__ */ _(Es.Provider, {
6371
6442
  value: a,
6372
6443
  children: e
6373
6444
  });
6374
- }, Os = {}, ks = !1, As = "", js = (e) => {
6375
- Os = e;
6376
- }, Ms = (e, t) => {
6377
- ks = e, As = t;
6378
- }, Ns = (e) => Os[e] ?? e, Ps = () => ks, Fs = () => As, Is = r({
6445
+ }, As = {}, js = !1, Ms = "", Ns = (e) => {
6446
+ As = e;
6447
+ }, Ps = (e, t) => {
6448
+ js = e, Ms = t;
6449
+ }, Fs = (e) => As[e] ?? e, Is = () => js, Ls = () => Ms, Rs = r({
6379
6450
  dictionary: {},
6380
6451
  locale: "en",
6381
6452
  setLocale: () => {},
@@ -6383,7 +6454,7 @@ var Cs = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
6383
6454
  isRtl: !1,
6384
6455
  characterSet: "",
6385
6456
  translate: (e) => e
6386
- }), Ls = () => l(Is), Rs = () => Ls().translate, zs = (e) => e.name === "AbortError", Bs = ({ children: e, defaultLocale: t = "en", baseApi: n = "https://admin2.questionpro.com/cs/api/gad/translate", keys: r = "/wick-ui-i18n.json" }) => {
6457
+ }), zs = () => l(Rs), Bs = () => zs().translate, Vs = (e) => e.name === "AbortError", Hs = ({ children: e, defaultLocale: t = "en", baseApi: n = "https://admin2.questionpro.com/cs/api/gad/translate", keys: r = "/wick-ui-i18n.json" }) => {
6387
6458
  let [i, a] = p(t), [o, c] = p({}), [l, m] = p(!0), [h, g] = p(!1), [v, y] = p(""), b = f(!1), x = s((e) => {
6388
6459
  b.current = !0, a(e);
6389
6460
  }, []);
@@ -6391,7 +6462,7 @@ var Cs = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
6391
6462
  b.current || a(t);
6392
6463
  }, [t]), u(() => {
6393
6464
  let e = new AbortController(), t = (e, t, n) => {
6394
- js(e), Ms(t, n), c(e), g(t), y(n);
6465
+ Ns(e), Ps(t, n), c(e), g(t), y(n);
6395
6466
  };
6396
6467
  return (async () => {
6397
6468
  m(!0);
@@ -6417,11 +6488,11 @@ var Cs = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
6417
6488
  let { data: a } = await r.json();
6418
6489
  t(a.data, a.isRtl ?? !1, a.characterSet ?? "");
6419
6490
  } catch (e) {
6420
- if (zs(e)) return;
6491
+ if (Vs(e)) return;
6421
6492
  console.error("[WuTranslateProvider] Translation fetch failed:", e), t(o, !1, "");
6422
6493
  }
6423
6494
  } catch (e) {
6424
- if (zs(e)) return;
6495
+ if (Vs(e)) return;
6425
6496
  console.error("[WuTranslateProvider] Keys fetch failed:", e), t({}, !1, "");
6426
6497
  } finally {
6427
6498
  e.signal.aborted || m(!1);
@@ -6451,16 +6522,16 @@ var Cs = z("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
6451
6522
  v,
6452
6523
  S
6453
6524
  ]);
6454
- return /* @__PURE__ */ _(Is.Provider, {
6525
+ return /* @__PURE__ */ _(Rs.Provider, {
6455
6526
  value: C,
6456
6527
  children: e
6457
6528
  });
6458
- }, Vs = n.memo(({ __i18nKey: e }) => {
6459
- let { dictionary: t } = Ls();
6529
+ }, Us = n.memo(({ __i18nKey: e }) => {
6530
+ let { dictionary: t } = zs();
6460
6531
  return /* @__PURE__ */ _(g, { children: t[e] ?? e });
6461
6532
  });
6462
6533
  //#endregion
6463
6534
  //#region src/index.ts
6464
- Vs.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.50.0");
6535
+ Us.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.50.0");
6465
6536
  //#endregion
6466
- export { Ie as WuAccordion, He as WuActivityLog, Tt as WuAppHeader, $e as WuAppHeaderAccount, _t as WuAppHeaderBar, et as WuAppHeaderHelp, gt as WuAppHeaderMenu, vt as WuAppHeaderSearch, q as WuButton, Ft as WuCalender, sn as WuCard, ln as WuCardFooter, cn as WuCardHeader, dn as WuCheckbox, mn as WuChip, qn as WuCombobox, Jn as WuCopyToClipboard, Po as WuDataTable, Ut as WuDatePicker, on as WuDateRangePicker, st as WuDisplay, sr as WuDrawer, cr as WuDrawerClose, Cr as WuDrilldown, kr as WuFooter, Ht as WuFormGroup, at as WuHeading, Ar as WuHelpButton, J as WuIcon, qt as WuInput, Rt as WuInputError, zt as WuInputHint, Z as WuLabel, zr as WuListbox, qe as WuLoader, vr as WuMenu, lr as WuMenuCheckboxItem, Br as WuMenuIcon, ur as WuMenuItem, dr as WuMenuItemGroup, fr as WuMenuRadioItem, pr as WuMenuSeparatorItem, ri as WuModal, si as WuModalClose, ii as WuModalContent, oi as WuModalFooter, ai as WuModalHeader, _i as WuMonthPicker, wi as WuPagination, Jt as WuPopover, Yt as WuPopoverClose, xi as WuPrimaryNavbar, Oi as WuRadioGroup, ki as WuScrollArea, Ci as WuSecondaryNavbar, hi as WuSelect, Aa as WuSharedSurvey, pa as WuSidebar, ba as WuSidebarCollapsibleMenu, ha as WuSidebarContent, ga as WuSidebarFooter, _a as WuSidebarGroup, ya as WuSidebarItem, va as WuSidebarMenu, ma as WuSidebarTrigger, Hr as WuSpotlight, Ta as WuStackedCard, Ea as WuStackedCardOverlay, Oa as WuStepper, gr as WuSubMenu, ot as WuSubtext, Ma as WuSurveyItem, Na as WuSurveyList, Ia as WuSurveySelect, Fa as WuSurveySource, Ga as WuSwitcher, no as WuTab, Fo as WuTable, it as WuText, Lo as WuTextarea, Xo as WuTimePicker, bs as WuToast, Ss as WuToggle, Ct as WuTooltip, Vs as WuTranslate, Bs as WuTranslateProvider, ws as WuTranslationContext, Ds as WuTranslationProvider, wt as WuTruncatedLabel, gn as WuVirtualScroll, Ca as calculatePosition, c as useContext, Ts as useTranslation, Es as useTranslationsContext, Ls as useWickuiTranslate, Rs as useWt, ls as useWuShowToast, Hi as useWuSidebar, Ns as wt, Fs as wtCharacterSet, Ps as wtIsRtl };
6537
+ export { Ie as WuAccordion, He as WuActivityLog, Tt as WuAppHeader, $e as WuAppHeaderAccount, _t as WuAppHeaderBar, et as WuAppHeaderHelp, gt as WuAppHeaderMenu, vt as WuAppHeaderSearch, q as WuButton, Ft as WuCalender, cn as WuCard, un as WuCardFooter, ln as WuCardHeader, Q as WuCheckbox, mn as WuChip, qn as WuCombobox, Jn as WuCopyToClipboard, Io as WuDataTable, Wt as WuDatePicker, sn as WuDateRangePicker, st as WuDisplay, sr as WuDrawer, cr as WuDrawerClose, Cr as WuDrilldown, kr as WuFooter, Ut as WuFormGroup, at as WuHeading, Ar as WuHelpButton, J as WuIcon, Jt as WuInput, zt as WuInputError, Bt as WuInputHint, X as WuLabel, zr as WuListbox, qe as WuLoader, vr as WuMenu, lr as WuMenuCheckboxItem, Br as WuMenuIcon, ur as WuMenuItem, dr as WuMenuItemGroup, fr as WuMenuRadioItem, pr as WuMenuSeparatorItem, ri as WuModal, si as WuModalClose, ii as WuModalContent, oi as WuModalFooter, ai as WuModalHeader, _i as WuMonthPicker, wi as WuPagination, Yt as WuPopover, Xt as WuPopoverClose, xi as WuPrimaryNavbar, Oi as WuRadioGroup, ki as WuScrollArea, Ci as WuSecondaryNavbar, ji as WuSegment, hi as WuSelect, Ma as WuSharedSurvey, ha as WuSidebar, Sa as WuSidebarCollapsibleMenu, _a as WuSidebarContent, va as WuSidebarFooter, ya as WuSidebarGroup, xa as WuSidebarItem, ba as WuSidebarMenu, ga as WuSidebarTrigger, Hr as WuSpotlight, Da as WuStackedCard, Oa as WuStackedCardOverlay, Aa as WuStepper, gr as WuSubMenu, ot as WuSubtext, Pa as WuSurveyItem, Fa as WuSurveyList, Ra as WuSurveySelect, La as WuSurveySource, qa as WuSwitcher, io as WuTab, Lo as WuTable, it as WuText, zo as WuTextarea, Qo as WuTimePicker, Ss as WuToast, ws as WuToggle, Ct as WuTooltip, Us as WuTranslate, Hs as WuTranslateProvider, Es as WuTranslationContext, ks as WuTranslationProvider, wt as WuTruncatedLabel, gn as WuVirtualScroll, Ta as calculatePosition, c as useContext, Ds as useTranslation, Os as useTranslationsContext, zs as useWickuiTranslate, Bs as useWt, ds as useWuShowToast, Wi as useWuSidebar, Fs as wt, Ls as wtCharacterSet, Is as wtIsRtl };