@npm-questionpro/wick-ui-lib 1.50.0 → 1.51.0

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.
@@ -13,22 +13,22 @@ import { PopoverClose as ee, PopoverTrigger as te } from "@radix-ui/react-popove
13
13
  import { DayPicker as ne, getDefaultClassNames as re } from "react-day-picker";
14
14
  import { Slot as ie } from "@radix-ui/react-slot";
15
15
  import { cva as V } from "class-variance-authority";
16
- import * as ae from "@radix-ui/react-label";
17
- import * as oe from "react-dom";
18
- import * as se from "@radix-ui/react-checkbox";
19
- import { Command as H } from "cmdk";
20
- import { TableVirtuoso as ce, Virtuoso as le } from "react-virtuoso";
21
- import * as U from "@radix-ui/react-dropdown-menu";
22
- import * as W from "@radix-ui/react-dialog";
23
- import { DialogClose as ue } from "@radix-ui/react-dialog";
24
- import * as de from "@radix-ui/react-scroll-area";
25
- import * as fe from "@radix-ui/react-radio-group";
26
- import * as pe from "@radix-ui/react-separator";
27
- import * as me from "@radix-ui/react-toggle-group";
28
- import * as he from "@radix-ui/react-toggle";
29
- import * as ge from "@radix-ui/react-tabs";
30
- import { flexRender as _e, getCoreRowModel as ve, getExpandedRowModel as ye, getFilteredRowModel as be, getPaginationRowModel as xe, getSortedRowModel as Se, useReactTable as Ce } from "@tanstack/react-table";
31
- import * as G from "@radix-ui/react-toast";
16
+ import * as H from "@radix-ui/react-label";
17
+ import * as ae from "react-dom";
18
+ import * as oe from "@radix-ui/react-checkbox";
19
+ import { Command as U } from "cmdk";
20
+ import { TableVirtuoso as se, Virtuoso as ce } from "react-virtuoso";
21
+ import * as W from "@radix-ui/react-dropdown-menu";
22
+ import * as G from "@radix-ui/react-dialog";
23
+ import { DialogClose as le } from "@radix-ui/react-dialog";
24
+ import * as ue from "@radix-ui/react-scroll-area";
25
+ import * as de from "@radix-ui/react-radio-group";
26
+ import * as fe from "@radix-ui/react-separator";
27
+ import * as pe from "@radix-ui/react-toggle-group";
28
+ import * as me from "@radix-ui/react-toggle";
29
+ import * as he from "@radix-ui/react-tabs";
30
+ import { flexRender as ge, getCoreRowModel as _e, getExpandedRowModel as ve, getFilteredRowModel as ye, getPaginationRowModel as be, getSortedRowModel as xe, useReactTable as Se } from "@tanstack/react-table";
31
+ import * as Ce from "@radix-ui/react-toast";
32
32
  import * as we from "@radix-ui/react-switch";
33
33
  //#region \0rolldown/runtime.js
34
34
  var Te = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, De = Object.getOwnPropertyNames, Oe = Object.prototype.hasOwnProperty, ke = (e, t) => () => (e && (t = e(e = 0)), t), Ae = (e, t) => {
@@ -1391,12 +1391,12 @@ var Bt = (e) => /* @__PURE__ */ C(zt, { ...e }), Vt = (e) => {
1391
1391
  },
1392
1392
  children: a && `${t?.current?.value.length}/${n}`
1393
1393
  });
1394
- }, Yt = V("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"), Xt = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(ae.Root, {
1394
+ }, Yt = V("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"), Xt = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H.Root, {
1395
1395
  ref: n,
1396
1396
  className: K(Yt(), e),
1397
1397
  ...t
1398
1398
  }));
1399
- Xt.displayName = ae.Root.displayName;
1399
+ Xt.displayName = H.Root.displayName;
1400
1400
  //#endregion
1401
1401
  //#region src/components/formGroup/components/WuLabel.tsx
1402
1402
  var Zt = (e) => /* @__PURE__ */ C(Xt, {
@@ -2102,7 +2102,7 @@ function qr(e, t = !1, n = !0) {
2102
2102
  let o = Hr(e);
2103
2103
  if (o == null) return;
2104
2104
  let s = o, c = () => {
2105
- oe.flushSync(i);
2105
+ ae.flushSync(i);
2106
2106
  };
2107
2107
  if (typeof s.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
2108
2108
  i();
@@ -2875,16 +2875,16 @@ var ji = n.forwardRef((e, t) => {
2875
2875
  ji.displayName = "WuCardHeader";
2876
2876
  //#endregion
2877
2877
  //#region src/base/ui/checkbox.tsx
2878
- var Mi = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */ C(se.Root, {
2878
+ var Mi = t.forwardRef(({ className: e, partial: t, ...n }, r) => /* @__PURE__ */ C(oe.Root, {
2879
2879
  ref: r,
2880
2880
  className: K("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),
2881
2881
  ...n,
2882
- children: /* @__PURE__ */ w(se.Indicator, {
2882
+ children: /* @__PURE__ */ w(oe.Indicator, {
2883
2883
  className: K("wu-flex wu-items-center wu-justify-center wu-text-current"),
2884
2884
  children: [!t && /* @__PURE__ */ C("span", { className: "wm-check wu-text-base wu-leading-4" }), t && /* @__PURE__ */ C("span", { className: "wm-check-indeterminate-small wu-text-base wu-leading-4" })]
2885
2885
  })
2886
2886
  }));
2887
- Mi.displayName = se.Root.displayName;
2887
+ Mi.displayName = oe.Root.displayName;
2888
2888
  //#endregion
2889
2889
  //#region src/components/checkbox/WuCheckbox.tsx
2890
2890
  var Ni = n.forwardRef((e, t) => {
@@ -2961,51 +2961,51 @@ var Fi = {
2961
2961
  Ii.displayName = "WuChip";
2962
2962
  //#endregion
2963
2963
  //#region src/base/ui/command.tsx
2964
- var Li = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H, {
2964
+ var Li = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U, {
2965
2965
  ref: n,
2966
2966
  className: K("wu-flex wu-h-full wu-w-full wu-flex-col wu-overflow-hidden wu-rounded-md", e),
2967
2967
  ...t
2968
2968
  }));
2969
- Li.displayName = H.displayName;
2969
+ Li.displayName = U.displayName;
2970
2970
  var Ri = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", {
2971
2971
  className: "wu-flex wu-items-center wu-border-b wu-px-3",
2972
- children: /* @__PURE__ */ C(H.Input, {
2972
+ children: /* @__PURE__ */ C(U.Input, {
2973
2973
  ref: n,
2974
2974
  className: K("wu-flex wu-h-11 wu-w-full wu-rounded-md wu-bg-transparent wu-py-3 wu-text-sm wu-outline-none wu-placeholder:wu-text-muted-foreground disabled:wu-cursor-not-allowed disabled:wu-opacity-50", e),
2975
2975
  ...t
2976
2976
  })
2977
2977
  }));
2978
- Ri.displayName = H.Input.displayName;
2979
- var zi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H.List, {
2978
+ Ri.displayName = U.Input.displayName;
2979
+ var zi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.List, {
2980
2980
  ref: n,
2981
2981
  className: K("", e),
2982
2982
  ...t
2983
2983
  }));
2984
- zi.displayName = H.List.displayName;
2985
- var Bi = t.forwardRef((e, t) => /* @__PURE__ */ C(H.Empty, {
2984
+ zi.displayName = U.List.displayName;
2985
+ var Bi = t.forwardRef((e, t) => /* @__PURE__ */ C(U.Empty, {
2986
2986
  ref: t,
2987
2987
  className: "wu-text-center wu-p-2 wu-pb-2.5 wu-text-xs",
2988
2988
  ...e
2989
2989
  }));
2990
- Bi.displayName = H.Empty.displayName;
2991
- var Vi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H.Group, {
2990
+ Bi.displayName = U.Empty.displayName;
2991
+ var Vi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Group, {
2992
2992
  ref: n,
2993
2993
  className: K("", e),
2994
2994
  ...t
2995
2995
  }));
2996
- Vi.displayName = H.Group.displayName;
2997
- var Hi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H.Separator, {
2996
+ Vi.displayName = U.Group.displayName;
2997
+ var Hi = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Separator, {
2998
2998
  ref: n,
2999
2999
  className: K("wu-mx-2 wu-my-1 wu-h-px wu-bg-gray-40", e),
3000
3000
  ...t
3001
3001
  }));
3002
- Hi.displayName = H.Separator.displayName;
3003
- var Ui = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(H.Item, {
3002
+ Hi.displayName = U.Separator.displayName;
3003
+ var Ui = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Item, {
3004
3004
  ref: n,
3005
3005
  className: K("wu-relative wu-flex wu-cursor-default wu-gap-2 wu-select-none wu-items-center wu-rounded-sm wu-px-2 wu-py-3 wu-text-sm wu-outline-none data-[disabled=true]:wu-pointer-events-none data-[disabled=true]:wu-opacity-50 [&_svg]:wu-pointer-events-none [&_svg]:wu-size-4 [&_svg]:wu-shrink-0", e),
3006
3006
  ...t
3007
3007
  }));
3008
- Ui.displayName = H.Item.displayName;
3008
+ Ui.displayName = U.Item.displayName;
3009
3009
  var Wi = ({ className: e, ...t }) => /* @__PURE__ */ C("span", {
3010
3010
  className: K("wu-ml-auto wu-text-xs wu-tracking-widest", e),
3011
3011
  ...t
@@ -3031,7 +3031,7 @@ var Gi = (e, t, n, r) => _(() => {
3031
3031
  n,
3032
3032
  r.value,
3033
3033
  e
3034
- ]), Ki = n.forwardRef(({ containerHeight: e = 400, list: t, callback: n, dir: r, className: i, style: a }, o) => /* @__PURE__ */ C(le, {
3034
+ ]), Ki = n.forwardRef(({ containerHeight: e = 400, list: t, callback: n, dir: r, className: i, style: a }, o) => /* @__PURE__ */ C(ce, {
3035
3035
  ref: o,
3036
3036
  dir: r,
3037
3037
  className: i,
@@ -3132,7 +3132,7 @@ var qi = ({ tags: e, triggerRef: t }) => {
3132
3132
  children: [_(), /* @__PURE__ */ C("span", { className: "wm-arrow-drop-down group-data-[state=open]/wuCombobox:wu-rotate-180 wu-transition-transform wu-duration-300 wu-text-base" })]
3133
3133
  })
3134
3134
  });
3135
- }, Yi = U.Root, Xi = U.Trigger, Zi = U.Group, Qi = U.Portal, $i = U.Sub, ea = U.RadioGroup, ta = t.forwardRef(({ className: e, inset: t, children: n, position: r, ...i }, a) => /* @__PURE__ */ w(U.SubTrigger, {
3135
+ }, Yi = W.Root, Xi = W.Trigger, Zi = W.Group, Qi = W.Portal, $i = W.Sub, ea = W.RadioGroup, ta = t.forwardRef(({ className: e, inset: t, children: n, position: r, ...i }, a) => /* @__PURE__ */ w(W.SubTrigger, {
3136
3136
  ref: a,
3137
3137
  className: K("wu-flex wu-cursor-default wu-select-none wu-text-xs wu-items-center wu-p-2 wu-outline-none focus:wu-bg-gray-20 data-[state=open]:wu-bg-gray-20", t && "wu-pl-8", e),
3138
3138
  ...i,
@@ -3142,62 +3142,62 @@ var qi = ({ tags: e, triggerRef: t }) => {
3142
3142
  r !== "left" && /* @__PURE__ */ C("span", { className: K("wu-text-base wu-leading-4", i.dir === "rtl" && "wu-mr-auto wm-chevron-left", i.dir !== "rtl" && "wu-ml-auto wm-chevron-right") })
3143
3143
  ]
3144
3144
  }));
3145
- ta.displayName = U.SubTrigger.displayName;
3146
- var na = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.SubContent, {
3145
+ ta.displayName = W.SubTrigger.displayName;
3146
+ var na = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.SubContent, {
3147
3147
  ref: n,
3148
3148
  className: K("wu-z-50 wu-min-w-[8rem] wu-overflow-hidden wu-border wu-text-xs wu-bg-white wu-text-gray-lead wu-shadow-lg 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),
3149
3149
  ...t
3150
3150
  }));
3151
- na.displayName = U.SubContent.displayName;
3152
- var ra = t.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ C(U.Portal, { children: /* @__PURE__ */ C(U.Content, {
3151
+ na.displayName = W.SubContent.displayName;
3152
+ var ra = t.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ C(W.Portal, { children: /* @__PURE__ */ C(W.Content, {
3153
3153
  ref: r,
3154
3154
  sideOffset: t,
3155
3155
  className: K("wu-z-50 wu-min-w-[8rem] wu-overflow-hidden wu-border wu-text-xs wu-bg-white wu-text-gray-lead wu-shadow-md 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),
3156
3156
  ...n
3157
3157
  }) }));
3158
- ra.displayName = U.Content.displayName;
3159
- var ia = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(U.Item, {
3158
+ ra.displayName = W.Content.displayName;
3159
+ var ia = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(W.Item, {
3160
3160
  ref: r,
3161
3161
  className: K("wu-relative wu-flex wu-cursor-default wu-select-none wu-items-center wu-text-xs wu-p-2 wu-outline-none wu-transition-colors focus:wu-bg-gray-20 data-[disabled]:wu-cursor-not-allowed data-[disabled]:wu-opacity-50", t && "wu-pl-8", e),
3162
3162
  ...n
3163
3163
  }));
3164
- ia.displayName = U.Item.displayName;
3165
- var aa = t.forwardRef(({ className: e, children: t, checked: n, dir: r, ...i }, a) => /* @__PURE__ */ w(U.CheckboxItem, {
3164
+ ia.displayName = W.Item.displayName;
3165
+ var aa = t.forwardRef(({ className: e, children: t, checked: n, dir: r, ...i }, a) => /* @__PURE__ */ w(W.CheckboxItem, {
3166
3166
  ref: a,
3167
3167
  className: K("wu-group wu-relative wu-flex wu-cursor-default wu-select-none wu-items-center wu-text-xs wu-py-3 wu-outline-none wu-transition-colors focus:wu-bg-gray-20 data-[disabled]:wu-cursor-not-allowed data-[disabled]:wu-opacity-50", r === "rtl" && "wu-pr-8 wu-pl-2", r !== "rtl" && "wu-pl-8 wu-pr-2", e),
3168
3168
  checked: n,
3169
3169
  ...i,
3170
3170
  children: [/* @__PURE__ */ C("span", {
3171
3171
  className: K("wu-absolute wu-flex wu-items-center wu-justify-center wu-w-4 wu-h-4 wu-rounded-sm wu-ring-1 wu-ring-gray-subtle group-disabled:wu-bg-gray-20 group-data-[state=checked]:wu-bg-blue-p group-hover:wu-bg-gray-20 group-hover:wu-ring-blue-p wu-transition-all group-data-[state=checked]:wu-ring-blue-p", r === "rtl" && "wu-right-2", r !== "rtl" && "wu-left-2"),
3172
- children: /* @__PURE__ */ C(U.ItemIndicator, { children: /* @__PURE__ */ C("span", { className: "wm-check wu-text-base wu-text-white" }) })
3172
+ children: /* @__PURE__ */ C(W.ItemIndicator, { children: /* @__PURE__ */ C("span", { className: "wm-check wu-text-base wu-text-white" }) })
3173
3173
  }), t]
3174
3174
  }));
3175
- aa.displayName = U.CheckboxItem.displayName;
3176
- var oa = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ w(U.RadioItem, {
3175
+ aa.displayName = W.CheckboxItem.displayName;
3176
+ var oa = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ w(W.RadioItem, {
3177
3177
  ref: r,
3178
3178
  className: K("wu-group wu-relative wu-flex wu-cursor-default wu-select-none wu-items-center wu-text-xs wu-py-3 wu-pl-8 wu-pr-2 wu-outline-none wu-transition-colors focus:wu-bg-gray-20 focus:wu-text-accent-foreground data-[disabled]:wu-cursor-not-allowed data-[disabled]:wu-opacity-50", e),
3179
3179
  ...n,
3180
3180
  children: [/* @__PURE__ */ C("span", {
3181
3181
  className: "wu-absolute wu-rounded-full wu-left-2 wu-flex wu-h-4 wu-w-4 wu-items-center wu-justify-center wu-ring-1 wu-ring-gray-subtle group-disabled:wu-bg-gray-20 group-data-[state=checked]:wu-bg-white group-hover:wu-bg-gray-20 group-hover:wu-ring-blue-p wu-transition-all group-data-[state=checked]:wu-ring-blue-p group-hover:group-data-[state=checked]:wu-ring-blue-q",
3182
- children: /* @__PURE__ */ C(U.ItemIndicator, {
3182
+ children: /* @__PURE__ */ C(W.ItemIndicator, {
3183
3183
  className: "wu-w-4 wu-h-4 wu-flex wu-items-center wu-justify-center",
3184
3184
  children: /* @__PURE__ */ C("span", { className: "wm-circle wu-text-blue-p group-hover:group-data-[state=checked]:wu-text-blue-q wu-text-xs" })
3185
3185
  })
3186
3186
  }), t]
3187
3187
  }));
3188
- oa.displayName = U.RadioItem.displayName;
3189
- var sa = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(U.Label, {
3188
+ oa.displayName = W.RadioItem.displayName;
3189
+ var sa = t.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ C(W.Label, {
3190
3190
  ref: r,
3191
3191
  className: K("wu-p-2 wu-font-medium wu-text-xs", t && "wu-pl-8", e),
3192
3192
  ...n
3193
3193
  }));
3194
- sa.displayName = U.Label.displayName;
3195
- var ca = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(U.Separator, {
3194
+ sa.displayName = W.Label.displayName;
3195
+ var ca = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Separator, {
3196
3196
  ref: n,
3197
3197
  className: K("-wu-mx-1 wu-my-1 wu-h-px wu-bg-gray-20", e),
3198
3198
  ...t
3199
3199
  }));
3200
- ca.displayName = U.Separator.displayName;
3200
+ ca.displayName = W.Separator.displayName;
3201
3201
  var la = ({ className: e, ...t }) => /* @__PURE__ */ C("span", {
3202
3202
  className: K("wu-ml-auto wu-text-xs wu-tracking-widest wu-opacity-60", e),
3203
3203
  ...t
@@ -3293,11 +3293,11 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3293
3293
  re,
3294
3294
  e,
3295
3295
  t.label
3296
- ]), ae = Gi(j, _(() => h && b?.enable && !N && V.length > 0 ? [{ type: "all" }, ...V] : V, [
3296
+ ]), H = Gi(j, _(() => h && b?.enable && !N && V.length > 0 ? [{ type: "all" }, ...V] : V, [
3297
3297
  V,
3298
3298
  N,
3299
3299
  h
3300
- ]), F, t), oe = u((e) => {
3300
+ ]), F, t), ae = u((e) => {
3301
3301
  let n = e[t.value];
3302
3302
  h ? I((r) => {
3303
3303
  let i = r || [], a = i.some((e) => e[t.value] === n) ? i.filter((e) => e[t.value] !== n) : [...i, e];
@@ -3307,7 +3307,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3307
3307
  h,
3308
3308
  t.value,
3309
3309
  d
3310
- ]), se = u((e) => P(e.target.value), []), H = u(() => P(""), []);
3310
+ ]), oe = u((e) => P(e.target.value), []), U = u(() => P(""), []);
3311
3311
  p(() => {
3312
3312
  if (n !== void 0 && r !== void 0) {
3313
3313
  console.error("defaultValue and value cannot be used simultaneously");
@@ -3318,7 +3318,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3318
3318
  let e = b?.includeDisabled ? F?.length === re.length : F?.length === ie.length;
3319
3319
  B(e), te(F?.length > 0 && !e);
3320
3320
  }, [F, b]);
3321
- let ce = u(() => {
3321
+ let se = u(() => {
3322
3322
  let e = z ? [] : b?.includeDisabled ? re : ie;
3323
3323
  I(e), d?.(e);
3324
3324
  }, [
@@ -3334,7 +3334,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3334
3334
  ref: ne,
3335
3335
  children: [/* @__PURE__ */ w(Pt, {
3336
3336
  onOpenChange: (e) => {
3337
- e && H(), R(e);
3337
+ e && U(), R(e);
3338
3338
  },
3339
3339
  open: L,
3340
3340
  modal: !0,
@@ -3366,7 +3366,7 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3366
3366
  placeholder: "Search...",
3367
3367
  Icon: /* @__PURE__ */ C("span", { className: "wm-search" }),
3368
3368
  className: "wu-text-xs wu-combobox-search",
3369
- onChange: se,
3369
+ onChange: oe,
3370
3370
  name: "Search",
3371
3371
  "aria-label": "Search",
3372
3372
  dir: l,
@@ -3374,21 +3374,21 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3374
3374
  })
3375
3375
  }),
3376
3376
  i,
3377
- /* @__PURE__ */ w(zi, { children: [/* @__PURE__ */ C(Bi, { children: A || "No results found." }), ae.length >= a ? /* @__PURE__ */ C(Ki, {
3377
+ /* @__PURE__ */ w(zi, { children: [/* @__PURE__ */ C(Bi, { children: A || "No results found." }), H.length >= a ? /* @__PURE__ */ C(Ki, {
3378
3378
  className: "wu-combobox-list",
3379
3379
  containerHeight: m,
3380
- list: ae,
3380
+ list: H,
3381
3381
  callback: (e, n) => {
3382
3382
  let r = n, i = r[t.value], a = i == null ? `__${"type" in r ? r.type : "item"}__${e}` : String(i);
3383
3383
  return /* @__PURE__ */ C(fa, {
3384
3384
  option: n,
3385
3385
  value: F,
3386
- onSelect: oe,
3386
+ onSelect: ae,
3387
3387
  multiple: h,
3388
3388
  accessorKey: t,
3389
3389
  dir: l,
3390
3390
  selectAll: b,
3391
- handleSelectAll: ce,
3391
+ handleSelectAll: se,
3392
3392
  isCheckedAll: z,
3393
3393
  isPartialSelected: ee
3394
3394
  }, a);
@@ -3402,17 +3402,17 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3402
3402
  },
3403
3403
  className: "wu-combobox-list",
3404
3404
  onScroll: D,
3405
- children: ae.map((e, n) => {
3405
+ children: H.map((e, n) => {
3406
3406
  let r = e, i = r[t.value], a = i == null ? `__${"type" in r ? r.type : "item"}__${n}` : String(i);
3407
3407
  return /* @__PURE__ */ C(fa, {
3408
3408
  option: r,
3409
3409
  value: F,
3410
- onSelect: oe,
3410
+ onSelect: ae,
3411
3411
  multiple: h,
3412
3412
  accessorKey: t,
3413
3413
  dir: l,
3414
3414
  selectAll: b,
3415
- handleSelectAll: ce,
3415
+ handleSelectAll: se,
3416
3416
  isCheckedAll: z,
3417
3417
  isPartialSelected: ee
3418
3418
  }, a);
@@ -3449,12 +3449,12 @@ var ua = ({ option: e, value: t, multiple: n = !1, onSelect: r, accessorKey: i,
3449
3449
  className: "wu-text-lg"
3450
3450
  })]
3451
3451
  });
3452
- }, _a = W.Root, va = W.Trigger, ya = W.Close, ba = W.Portal, xa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Overlay, {
3452
+ }, _a = G.Root, va = G.Trigger, ya = G.Close, ba = G.Portal, xa = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Overlay, {
3453
3453
  className: K("wu-fixed wu-inset-0 wu-z-50 wu-bg-black/30 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", "wu-drawer-overlay", e),
3454
3454
  ...t,
3455
3455
  ref: n
3456
3456
  }));
3457
- xa.displayName = W.Overlay.displayName;
3457
+ xa.displayName = G.Overlay.displayName;
3458
3458
  var Sa = V("wu-fixed wu-z-50 wu-gap-4 wu-p-6 wu-shadow-lg wu-transition wu-ease-in-out data-[state=open]:wu-animate-in data-[state=closed]:wu-animate-out data-[state=closed]:wu-duration-500 data-[state=open]:wu-duration-500", {
3459
3459
  variants: { side: {
3460
3460
  top: "wu-inset-x-0 wu-top-0 wu-border-b data-[state=closed]:wu-slide-out-to-top data-[state=open]:wu-slide-in-from-top",
@@ -3463,11 +3463,11 @@ var Sa = V("wu-fixed wu-z-50 wu-gap-4 wu-p-6 wu-shadow-lg wu-transition wu-ease-
3463
3463
  right: "wu-inset-y-0 wu-right-0 wu-h-full wu-w-3/4 wu-border-l data-[state=closed]:wu-slide-out-to-right data-[state=open]:wu-slide-in-from-right sm:wu-max-w-sm"
3464
3464
  } },
3465
3465
  defaultVariants: { side: "right" }
3466
- }), Ca = t.forwardRef(({ side: e = "right", className: t, children: n, hideCloseButton: r, overlayClassName: i, closeButtonClassName: a, ...o }, s) => /* @__PURE__ */ w(ba, { children: [/* @__PURE__ */ C(xa, { className: i }), /* @__PURE__ */ w(W.Content, {
3466
+ }), Ca = t.forwardRef(({ side: e = "right", className: t, children: n, hideCloseButton: r, overlayClassName: i, closeButtonClassName: a, ...o }, s) => /* @__PURE__ */ w(ba, { children: [/* @__PURE__ */ C(xa, { className: i }), /* @__PURE__ */ w(G.Content, {
3467
3467
  ref: s,
3468
3468
  className: K(Sa({ side: e }), t),
3469
3469
  ...o,
3470
- children: [n, !r && /* @__PURE__ */ C(W.Close, {
3470
+ children: [n, !r && /* @__PURE__ */ C(G.Close, {
3471
3471
  "aria-label": "close",
3472
3472
  asChild: !0,
3473
3473
  children: /* @__PURE__ */ w(Rt, {
@@ -3480,7 +3480,7 @@ var Sa = V("wu-fixed wu-z-50 wu-gap-4 wu-p-6 wu-shadow-lg wu-transition wu-ease-
3480
3480
  })
3481
3481
  })]
3482
3482
  })] }));
3483
- Ca.displayName = W.Content.displayName;
3483
+ Ca.displayName = G.Content.displayName;
3484
3484
  var wa = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
3485
3485
  className: K("", e),
3486
3486
  ...t
@@ -3491,18 +3491,18 @@ var Ta = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
3491
3491
  ...t
3492
3492
  });
3493
3493
  Ta.displayName = "SheetFooter";
3494
- var Ea = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Title, {
3494
+ var Ea = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Title, {
3495
3495
  ref: n,
3496
3496
  className: K("wu-text-lg wu-font-semibold", e),
3497
3497
  ...t
3498
3498
  }));
3499
- Ea.displayName = W.Title.displayName;
3500
- var Da = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Description, {
3499
+ Ea.displayName = G.Title.displayName;
3500
+ var Da = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Description, {
3501
3501
  ref: n,
3502
3502
  className: K("wu-text-sm", e),
3503
3503
  ...t
3504
3504
  }));
3505
- Da.displayName = W.Description.displayName;
3505
+ Da.displayName = G.Description.displayName;
3506
3506
  //#endregion
3507
3507
  //#region src/components/drawer/WuDrawer.tsx
3508
3508
  var Oa = (e) => (t) => {
@@ -7178,11 +7178,11 @@ var jp = /* @__PURE__ */ Ap("div"), Mp = (e) => {
7178
7178
  ...n,
7179
7179
  className: r
7180
7180
  });
7181
- }, Lp = t.forwardRef(({ className: e, children: t, thumbColor: n, railColor: r, ...i }, a) => /* @__PURE__ */ w(de.Root, {
7181
+ }, Lp = t.forwardRef(({ className: e, children: t, thumbColor: n, railColor: r, ...i }, a) => /* @__PURE__ */ w(ue.Root, {
7182
7182
  ref: a,
7183
7183
  className: K("wu-relative wu-overflow-hidden", e),
7184
7184
  children: [
7185
- /* @__PURE__ */ C(de.Viewport, {
7185
+ /* @__PURE__ */ C(ue.Viewport, {
7186
7186
  className: "wu-h-full wu-w-full wu-rounded-[inherit]",
7187
7187
  ...i,
7188
7188
  children: t
@@ -7191,22 +7191,22 @@ var jp = /* @__PURE__ */ Ap("div"), Mp = (e) => {
7191
7191
  thumbColor: n,
7192
7192
  railColor: r
7193
7193
  }),
7194
- /* @__PURE__ */ C(de.Corner, {})
7194
+ /* @__PURE__ */ C(ue.Corner, {})
7195
7195
  ]
7196
7196
  }));
7197
- Lp.displayName = de.Root.displayName;
7198
- var Rp = t.forwardRef(({ className: e, orientation: t = "vertical", thumbColor: n = "#d4d4d4", railColor: r = "#eeeeee", ...i }, a) => /* @__PURE__ */ C(de.ScrollAreaScrollbar, {
7197
+ Lp.displayName = ue.Root.displayName;
7198
+ var Rp = t.forwardRef(({ className: e, orientation: t = "vertical", thumbColor: n = "#d4d4d4", railColor: r = "#eeeeee", ...i }, a) => /* @__PURE__ */ C(ue.ScrollAreaScrollbar, {
7199
7199
  ref: a,
7200
7200
  orientation: t,
7201
7201
  className: K("wu-flex wu-touch-none wu-select-none wu-transition-colors", t === "vertical" && "wu-h-full wu-w-2 wu-border-l wu-border-l-transparent wu-p-[1px]", t === "horizontal" && "wu-h-2 wu-flex-col wu-border-t wu-border-t-transparent wu-p-[1px]", e),
7202
7202
  style: { background: r },
7203
7203
  ...i,
7204
- children: /* @__PURE__ */ C(de.ScrollAreaThumb, {
7204
+ children: /* @__PURE__ */ C(ue.ScrollAreaThumb, {
7205
7205
  className: "wu-relative wu-flex-1 wu-rounded-full",
7206
7206
  style: { background: n }
7207
7207
  })
7208
7208
  }));
7209
- Rp.displayName = de.ScrollAreaScrollbar.displayName;
7209
+ Rp.displayName = ue.ScrollAreaScrollbar.displayName;
7210
7210
  //#endregion
7211
7211
  //#region src/components/menu/ui/WuSubMenu.tsx
7212
7212
  var zp = (e) => {
@@ -7773,20 +7773,20 @@ lm.displayName = "WuMenuIcon";
7773
7773
  var um = {
7774
7774
  overlay: "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",
7775
7775
  content: "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-[state=closed]:wu-slide-out-to-left-1/2 data-[state=closed]:wu-slide-out-to-top-[48%] data-[state=open]:wu-slide-in-from-left-1/2 data-[state=open]:wu-slide-in-from-top-[48%]"
7776
- }, dm = W.Root, fm = W.Trigger, pm = W.Portal, mm = W.Close, hm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Overlay, {
7776
+ }, dm = G.Root, fm = G.Trigger, pm = G.Portal, mm = G.Close, hm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Overlay, {
7777
7777
  ref: n,
7778
7778
  className: K("wu-fixed wu-inset-0 wu-z-50 wu-bg-black/30", um.overlay, e),
7779
7779
  ...t
7780
7780
  }));
7781
- hm.displayName = W.Overlay.displayName;
7781
+ hm.displayName = G.Overlay.displayName;
7782
7782
  var gm = s(({ className: e, children: t, hideCloseButton: n, isStackedCard: r, ...i }, a) => /* @__PURE__ */ w(pm, { children: [/* @__PURE__ */ C(hm, {
7783
7783
  className: r ? "wu-bg-transparent" : "",
7784
7784
  "data-wu-overlay": !0
7785
- }), /* @__PURE__ */ w(W.Content, {
7785
+ }), /* @__PURE__ */ w(G.Content, {
7786
7786
  ref: a,
7787
7787
  className: K("wu-fixed wu-left-[50%] wu-z-50 wu-top-[50%] wu-flex wu-flex-col wu-w-full wu-max-w-lg wu-translate-x-[-50%] wu-translate-y-[-50%] wu-bg-white wu-shadow-lg wu-duration-200", um.content, e),
7788
7788
  ...i,
7789
- children: [t, !n && /* @__PURE__ */ C(W.Close, {
7789
+ children: [t, !n && /* @__PURE__ */ C(G.Close, {
7790
7790
  "aria-label": "close",
7791
7791
  asChild: !0,
7792
7792
  children: /* @__PURE__ */ w(Rt, {
@@ -7799,7 +7799,7 @@ var gm = s(({ className: e, children: t, hideCloseButton: n, isStackedCard: r, .
7799
7799
  })
7800
7800
  })]
7801
7801
  })] }));
7802
- gm.displayName = W.Content.displayName;
7802
+ gm.displayName = G.Content.displayName;
7803
7803
  var _m = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
7804
7804
  className: K("wu-text-center wu-bg-gray-20 wu-w-full", e),
7805
7805
  ...t
@@ -7810,18 +7810,18 @@ var vm = ({ className: e, ...t }) => /* @__PURE__ */ C("div", {
7810
7810
  ...t
7811
7811
  });
7812
7812
  vm.displayName = "DialogFooter";
7813
- var ym = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Title, {
7813
+ var ym = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Title, {
7814
7814
  ref: n,
7815
7815
  className: K("wu-text-lg wu-font-medium wu-flex wu-items-center wu-justify-center wu-gap-1 wu-h-10 wu-leading-none wu-tracking-tight", e),
7816
7816
  ...t
7817
7817
  }));
7818
- ym.displayName = W.Title.displayName;
7819
- var bm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(W.Description, {
7818
+ ym.displayName = G.Title.displayName;
7819
+ var bm = s(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Description, {
7820
7820
  ref: n,
7821
7821
  className: K("wu-text-sm wu-text-muted-foreground", e),
7822
7822
  ...t
7823
7823
  }));
7824
- bm.displayName = W.Description.displayName;
7824
+ bm.displayName = G.Description.displayName;
7825
7825
  var xm = { gradientBackground: "_gradientBackground_1uc4j_1" }, Sm = (e) => {
7826
7826
  let { colors: t, size: n = .55, children: r, className: i, strokeWidth: a, centerOffset: o = {
7827
7827
  x: 0,
@@ -8477,22 +8477,22 @@ var Jm = ({ label: e, onClick: t, disabled: n, icon: r, className: i }) => /* @_
8477
8477
  className: K("wu-w-8 wu-h-8 wu-rounded-xs wu-group disabled:wu-text-zinc-300 disabled:wu-bg-white wu-text-gray-lead focus:wu-bg-color-none", i),
8478
8478
  "aria-label": e,
8479
8479
  children: /* @__PURE__ */ C("span", { className: K("wu-text-sm", r) })
8480
- }), Ym = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(fe.Root, {
8480
+ }), Ym = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(de.Root, {
8481
8481
  className: K("wu-grid wu-gap-2", e),
8482
8482
  ...t,
8483
8483
  ref: n
8484
8484
  }));
8485
- Ym.displayName = fe.Root.displayName;
8486
- var Xm = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(fe.Item, {
8485
+ Ym.displayName = de.Root.displayName;
8486
+ var Xm = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(de.Item, {
8487
8487
  ref: n,
8488
8488
  className: K("wu-group wu-aspect-square wu-h-4 wu-w-4 wu-rounded-full wu-border wu-border-gray-subtle wu-text-blue-p wu-ring-offset-white disabled:wu-cursor-not-allowed disabled:wu-opacity-50 hover:wu-border-blue-p hover:wu-bg-gray-20 data-[state=checked]:wu-border-blue-p hover:data-[state=checked]:wu-border-blue-q hover:data-[state=checked]:wu-bg-inherit focus:wu-outline-2 focus:wu-outline-offset-4 focus:wu-outline-blue-soft disabled:hover:wu-border-gray-subtle disabled:wu-hover:bg-gray-20 disabled:wu-bg-gray-20", e),
8489
8489
  ...t,
8490
- children: /* @__PURE__ */ C(fe.Indicator, {
8490
+ children: /* @__PURE__ */ C(de.Indicator, {
8491
8491
  className: "wu-flex wu-items-center wu-justify-center",
8492
8492
  children: /* @__PURE__ */ C("div", { className: "wu-w-2 wu-h-2 wu-rounded-full wu-bg-blue-p group-hover:group-data-[state=checked]:wu-bg-blue-q" })
8493
8493
  })
8494
8494
  }));
8495
- Xm.displayName = fe.Item.displayName;
8495
+ Xm.displayName = de.Item.displayName;
8496
8496
  //#endregion
8497
8497
  //#region src/components/radio/WuRadioGroup.tsx
8498
8498
  var Zm = n.forwardRef((e, t) => {
@@ -8549,14 +8549,14 @@ var Qm = (e) => {
8549
8549
  $m.displayName = "Input";
8550
8550
  //#endregion
8551
8551
  //#region src/base/ui/separator.tsx
8552
- var eh = t.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ C(pe.Root, {
8552
+ var eh = t.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ C(fe.Root, {
8553
8553
  ref: i,
8554
8554
  decorative: n,
8555
8555
  orientation: t,
8556
8556
  className: K("wu-shrink-0 wu-bg-gray-40", t === "horizontal" ? "wu-h-[1px] wu-w-full" : "wu-h-full wu-w-[1px]", e),
8557
8557
  ...r
8558
8558
  }));
8559
- eh.displayName = pe.Root.displayName;
8559
+ eh.displayName = fe.Root.displayName;
8560
8560
  //#endregion
8561
8561
  //#region src/base/ui/skeleton.tsx
8562
8562
  function th({ className: e, ...t }) {
@@ -9613,7 +9613,7 @@ var fg = ({ children: e, Sidebar: t, className: n, defaultOpen: r = !0, open: i,
9613
9613
  style: r.Content,
9614
9614
  children: [
9615
9615
  /* @__PURE__ */ C(ym, {}),
9616
- /* @__PURE__ */ C(ue, {
9616
+ /* @__PURE__ */ C(le, {
9617
9617
  className: K("wu-absolute wu-right-2 wu-top-2 wu-w-8 wu-h-8 wu-flex wu-items-center wu-justify-center wu-z-10", i.CloseButton),
9618
9618
  style: r.CloseButton,
9619
9619
  "aria-label": "Close dialog",
@@ -9886,55 +9886,55 @@ function C_(e, { step: t, minWithDefault: n, maxWithDefault: r, minWithZeroDefau
9886
9886
  //#endregion
9887
9887
  //#region ../node_modules/.pnpm/@base-ui+react@1.5.0_@date-fns+tz@1.4.1_@types+react@18.3.29_date-fns@4.2.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/number-field/root/NumberFieldRoot.js
9888
9888
  var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
9889
- let { id: r, min: i, max: a, smallStep: o = .1, step: s = 1, largeStep: c = 10, required: l = !1, disabled: u = !1, readOnly: d = !1, form: f, name: p, defaultValue: m, value: h, onValueChange: g, onValueCommitted: _, allowWheelScrub: v = !1, snapOnStep: y = !1, allowOutOfRange: b = !1, format: x, locale: S, render: T, className: E, inputRef: D, style: O, ...k } = e, { setDirty: A, validityData: j, disabled: M, setFilled: N, invalid: P, name: F, state: I, validation: L, shouldValidateOnChange: R } = yn(), z = M || u, B = F ?? p, ee = s === "any" ? 1 : s, [te, ne] = t.useState(!1), re = i ?? -(2 ** 53 - 1), ie = a ?? 2 ** 53 - 1, V = i ?? 0, ae = x?.style, oe = t.useRef(null), se = sr(D, L.inputRef), H = Yn({ id: r }), [ce, le] = Xr({
9889
+ let { id: r, min: i, max: a, smallStep: o = .1, step: s = 1, largeStep: c = 10, required: l = !1, disabled: u = !1, readOnly: d = !1, form: f, name: p, defaultValue: m, value: h, onValueChange: g, onValueCommitted: _, allowWheelScrub: v = !1, snapOnStep: y = !1, allowOutOfRange: b = !1, format: x, locale: S, render: T, className: E, inputRef: D, style: O, ...k } = e, { setDirty: A, validityData: j, disabled: M, setFilled: N, invalid: P, name: F, state: I, validation: L, shouldValidateOnChange: R } = yn(), z = M || u, B = F ?? p, ee = s === "any" ? 1 : s, [te, ne] = t.useState(!1), re = i ?? -(2 ** 53 - 1), ie = a ?? 2 ** 53 - 1, V = i ?? 0, H = x?.style, ae = t.useRef(null), oe = sr(D, L.inputRef), U = Yn({ id: r }), [se, ce] = Xr({
9890
9890
  controlled: h,
9891
9891
  default: m,
9892
9892
  name: "NumberField",
9893
9893
  state: "value"
9894
- }), U = ce ?? null, W = tg(U);
9894
+ }), W = se ?? null, G = tg(W);
9895
9895
  X(() => {
9896
- N(U !== null);
9897
- }, [N, U]);
9898
- let ue = Eg(), de = tg(x), fe = t.useRef(!1), pe = Y((e, t) => {
9899
- fe.current = !1, _?.(e, t);
9900
- }), me = t.useRef(!0), he = t.useRef(null), [ge, _e] = t.useState(() => h === void 0 ? Fg(U, S, x) : T_(U, S, x)), [ve, ye] = t.useState("numeric"), be = Y(() => {
9896
+ N(W !== null);
9897
+ }, [N, W]);
9898
+ let le = Eg(), ue = tg(x), de = t.useRef(!1), fe = Y((e, t) => {
9899
+ de.current = !1, _?.(e, t);
9900
+ }), pe = t.useRef(!0), me = t.useRef(null), [he, ge] = t.useState(() => h === void 0 ? Fg(W, S, x) : T_(W, S, x)), [_e, ve] = t.useState("numeric"), ye = Y(() => {
9901
9901
  let { decimal: e, group: t, currency: n, literal: r } = h_(S, x), i = /* @__PURE__ */ new Set();
9902
9902
  n_.forEach((e) => i.add(e)), e && i.add(e), t && (i.add(t), r_.test(t) && i.add(" "));
9903
- let a = ae === "percent" || ae === "unit" && x?.unit === "percent", o = ae === "percent" || ae === "unit" && x?.unit === "permille";
9904
- return a && Hg.forEach((e) => i.add(e)), o && Ug.forEach((e) => i.add(e)), ae === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), r_.test(r) && i.add(" ")), i_.forEach((e) => i.add(e)), re < 0 && a_.forEach((e) => i.add(e)), i;
9905
- }), xe = Y((e) => e?.altKey ? o : e?.shiftKey ? c : ee), Se = Y((e, t) => {
9903
+ let a = H === "percent" || H === "unit" && x?.unit === "percent", o = H === "percent" || H === "unit" && x?.unit === "permille";
9904
+ return a && Hg.forEach((e) => i.add(e)), o && Ug.forEach((e) => i.add(e)), H === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), r_.test(r) && i.add(" ")), i_.forEach((e) => i.add(e)), re < 0 && a_.forEach((e) => i.add(e)), i;
9905
+ }), be = Y((e) => e?.altKey ? o : e?.shiftKey ? c : ee), xe = Y((e, t) => {
9906
9906
  let n = t.event, r = t.direction, i = t.reason, a = !b || !(i === "input-change" || i === "input-blur" || i === "input-paste" || i === "input-clear" || i === "none"), o = C_(e, {
9907
- step: r ? xe(n) * r : void 0,
9908
- format: de.current,
9907
+ step: r ? be(n) * r : void 0,
9908
+ format: ue.current,
9909
9909
  minWithDefault: re,
9910
9910
  maxWithDefault: ie,
9911
9911
  minWithZeroDefault: V,
9912
9912
  snapOnStep: y,
9913
9913
  small: n?.altKey ?? !1,
9914
9914
  clamp: a
9915
- }), s = t.reason === "input-change" || t.reason === "input-clear" || t.reason === "input-blur" || t.reason === "input-paste" || t.reason === "none", c = o !== U || s && (e !== U || me.current === !1);
9915
+ }), s = t.reason === "input-change" || t.reason === "input-clear" || t.reason === "input-blur" || t.reason === "input-paste" || t.reason === "none", c = o !== W || s && (e !== W || pe.current === !1);
9916
9916
  if (c) {
9917
- if (he.current = o, g?.(o, t), t.isCanceled) return c;
9918
- le(o), A(o !== j.initialValue), fe.current = !0;
9917
+ if (me.current = o, g?.(o, t), t.isCanceled) return c;
9918
+ ce(o), A(o !== j.initialValue), de.current = !0;
9919
9919
  }
9920
- return me.current && _e(Fg(o, S, x)), ue(), c;
9921
- }), Ce = Y((e, { direction: t, currentValue: n, event: r, reason: a }) => {
9922
- let o = n ?? W.current;
9923
- return Se(typeof o == "number" ? o + e * t : Math.max(0, i ?? 0), ci(a, r, void 0, { direction: t }));
9920
+ return pe.current && ge(Fg(o, S, x)), le(), c;
9921
+ }), Se = Y((e, { direction: t, currentValue: n, event: r, reason: a }) => {
9922
+ let o = n ?? G.current;
9923
+ return xe(typeof o == "number" ? o + e * t : Math.max(0, i ?? 0), ci(a, r, void 0, { direction: t }));
9924
9924
  });
9925
9925
  X(function() {
9926
- if (!me.current) return;
9927
- let e = h === void 0 ? Fg(U, S, x) : T_(U, S, x);
9928
- e !== ge && _e(e);
9926
+ if (!pe.current) return;
9927
+ let e = h === void 0 ? Fg(W, S, x) : T_(W, S, x);
9928
+ e !== he && ge(e);
9929
9929
  }), X(function() {
9930
9930
  if (!tr) return;
9931
9931
  let e = "text";
9932
- re >= 0 && (e = "decimal"), ye(e);
9933
- }, [re, ae]), t.useEffect(function() {
9934
- let e = oe.current;
9932
+ re >= 0 && (e = "decimal"), ve(e);
9933
+ }, [re, H]), t.useEffect(function() {
9934
+ let e = ae.current;
9935
9935
  if (z || d || !v || !e) return;
9936
9936
  function t(e) {
9937
- e.ctrlKey || ar(Xn(oe.current)) !== oe.current || (e.preventDefault(), me.current = !0, Ce(xe(e) ?? 1, {
9937
+ e.ctrlKey || ar(Xn(ae.current)) !== ae.current || (e.preventDefault(), pe.current = !0, Se(be(e) ?? 1, {
9938
9938
  direction: e.deltaY > 0 ? -1 : 1,
9939
9939
  event: e,
9940
9940
  reason: "wheel"
@@ -9943,86 +9943,86 @@ var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
9943
9943
  return eg(e, "wheel", t);
9944
9944
  }, [
9945
9945
  v,
9946
- Ce,
9946
+ Se,
9947
9947
  z,
9948
9948
  d,
9949
- xe
9949
+ be
9950
9950
  ]);
9951
- let G = t.useMemo(() => ({
9951
+ let Ce = t.useMemo(() => ({
9952
9952
  ...I,
9953
9953
  disabled: z,
9954
9954
  readOnly: d,
9955
9955
  required: l,
9956
- value: U,
9957
- inputValue: ge,
9956
+ value: W,
9957
+ inputValue: he,
9958
9958
  scrubbing: te
9959
9959
  }), [
9960
9960
  I,
9961
9961
  z,
9962
9962
  d,
9963
9963
  l,
9964
- U,
9965
- ge,
9964
+ W,
9965
+ he,
9966
9966
  te
9967
9967
  ]), we = t.useMemo(() => ({
9968
- inputRef: oe,
9969
- inputValue: ge,
9970
- value: U,
9968
+ inputRef: ae,
9969
+ inputValue: he,
9970
+ value: W,
9971
9971
  minWithDefault: re,
9972
9972
  maxWithDefault: ie,
9973
9973
  disabled: z,
9974
9974
  readOnly: d,
9975
- id: H,
9976
- setValue: Se,
9977
- incrementValue: Ce,
9978
- getStepAmount: xe,
9979
- allowInputSyncRef: me,
9980
- formatOptionsRef: de,
9981
- valueRef: W,
9982
- lastChangedValueRef: he,
9983
- hasPendingCommitRef: fe,
9975
+ id: U,
9976
+ setValue: xe,
9977
+ incrementValue: Se,
9978
+ getStepAmount: be,
9979
+ allowInputSyncRef: pe,
9980
+ formatOptionsRef: ue,
9981
+ valueRef: G,
9982
+ lastChangedValueRef: me,
9983
+ hasPendingCommitRef: de,
9984
9984
  name: B,
9985
9985
  required: l,
9986
9986
  invalid: P,
9987
- inputMode: ve,
9988
- getAllowedNonNumericKeys: be,
9987
+ inputMode: _e,
9988
+ getAllowedNonNumericKeys: ye,
9989
9989
  min: i,
9990
9990
  max: a,
9991
- setInputValue: _e,
9991
+ setInputValue: ge,
9992
9992
  locale: S,
9993
9993
  isScrubbing: te,
9994
9994
  setIsScrubbing: ne,
9995
- state: G,
9996
- onValueCommitted: pe
9995
+ state: Ce,
9996
+ onValueCommitted: fe
9997
9997
  }), [
9998
- oe,
9999
- ge,
10000
- U,
9998
+ ae,
9999
+ he,
10000
+ W,
10001
10001
  re,
10002
10002
  ie,
10003
10003
  z,
10004
10004
  d,
10005
- H,
10006
- Se,
10007
- Ce,
10005
+ U,
10008
10006
  xe,
10009
- de,
10010
- W,
10007
+ Se,
10008
+ be,
10009
+ ue,
10010
+ G,
10011
10011
  B,
10012
10012
  l,
10013
10013
  P,
10014
- ve,
10015
- be,
10014
+ _e,
10015
+ ye,
10016
10016
  i,
10017
10017
  a,
10018
- _e,
10018
+ ge,
10019
10019
  S,
10020
10020
  te,
10021
- G,
10022
- pe
10021
+ Ce,
10022
+ fe
10023
10023
  ]), Te = xr("div", e, {
10024
10024
  ref: n,
10025
- state: G,
10025
+ state: Ce,
10026
10026
  props: k,
10027
10027
  stateAttributesMapping: Mg
10028
10028
  });
@@ -10031,7 +10031,7 @@ var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
10031
10031
  children: [Te, /* @__PURE__ */ C("input", {
10032
10032
  ...L.getInputValidationProps({
10033
10033
  onFocus() {
10034
- oe.current?.focus();
10034
+ ae.current?.focus();
10035
10035
  },
10036
10036
  onChange(e) {
10037
10037
  if (e.nativeEvent.defaultPrevented || z || d) {
@@ -10039,14 +10039,14 @@ var w_ = /* @__PURE__ */ t.forwardRef(function(e, n) {
10039
10039
  return;
10040
10040
  }
10041
10041
  let t = e.currentTarget.valueAsNumber, n = Number.isNaN(t) ? null : t, r = ci($r, e.nativeEvent);
10042
- A(n !== j.initialValue), Se(n, r), R() && L.commit(n);
10042
+ A(n !== j.initialValue), xe(n, r), R() && L.commit(n);
10043
10043
  }
10044
10044
  }),
10045
- ref: se,
10045
+ ref: oe,
10046
10046
  type: "number",
10047
10047
  form: f,
10048
10048
  name: B,
10049
- value: U ?? "",
10049
+ value: W ?? "",
10050
10050
  min: i,
10051
10051
  max: a,
10052
10052
  step: s,
@@ -10629,7 +10629,7 @@ var nv = V("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-
10629
10629
  variant: "default",
10630
10630
  size: "default"
10631
10631
  }
10632
- }), rv = t.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ C(he.Root, {
10632
+ }), rv = t.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ C(me.Root, {
10633
10633
  ref: i,
10634
10634
  className: K(nv({
10635
10635
  variant: t,
@@ -10638,13 +10638,13 @@ var nv = V("wu-inline-flex wu-items-center wu-justify-center wu-text-sm wu-font-
10638
10638
  })),
10639
10639
  ...r
10640
10640
  }));
10641
- rv.displayName = he.Root.displayName;
10641
+ rv.displayName = me.Root.displayName;
10642
10642
  //#endregion
10643
10643
  //#region src/base/ui/toggleGroup.tsx
10644
10644
  var iv = t.createContext({
10645
10645
  size: "default",
10646
10646
  variant: "default"
10647
- }), av = t.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ C(me.Root, {
10647
+ }), av = t.forwardRef(({ className: e, variant: t, size: n, children: r, ...i }, a) => /* @__PURE__ */ C(pe.Root, {
10648
10648
  ref: a,
10649
10649
  className: K("wu-flex wu-items-center wu-justify-center wu-gap-1", e),
10650
10650
  ...i,
@@ -10656,10 +10656,10 @@ var iv = t.createContext({
10656
10656
  children: r
10657
10657
  })
10658
10658
  }));
10659
- av.displayName = me.Root.displayName;
10659
+ av.displayName = pe.Root.displayName;
10660
10660
  var ov = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a }, o) => {
10661
10661
  let s = t.useContext(iv);
10662
- return /* @__PURE__ */ C(me.Item, {
10662
+ return /* @__PURE__ */ C(pe.Item, {
10663
10663
  ref: o,
10664
10664
  className: K(nv({
10665
10665
  variant: s.variant || r,
@@ -10669,7 +10669,7 @@ var ov = t.forwardRef(({ className: e, children: n, variant: r, size: i, ...a },
10669
10669
  children: n
10670
10670
  });
10671
10671
  });
10672
- ov.displayName = me.Item.displayName;
10672
+ ov.displayName = pe.Item.displayName;
10673
10673
  //#endregion
10674
10674
  //#region src/components/switcher/ui/_iconTab.tsx
10675
10675
  var sv = n.forwardRef((e, t) => {
@@ -10828,25 +10828,25 @@ var uv = n.forwardRef((e, t) => {
10828
10828
  uv.displayName = "WuSwitcher";
10829
10829
  //#endregion
10830
10830
  //#region src/components/tab/shadcn/tabs.tsx
10831
- var dv = ge.Root, fv = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ C(ge.List, {
10831
+ var dv = he.Root, fv = t.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ C(he.List, {
10832
10832
  className: K("wu-relative wu-flex", e),
10833
10833
  ...n,
10834
10834
  ref: r,
10835
10835
  children: t
10836
10836
  }));
10837
- fv.displayName = ge.List.displayName;
10838
- var pv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(ge.Trigger, {
10837
+ fv.displayName = he.List.displayName;
10838
+ var pv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(he.Trigger, {
10839
10839
  ref: n,
10840
10840
  className: K("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),
10841
10841
  ...t
10842
10842
  }));
10843
- pv.displayName = ge.Trigger.displayName;
10844
- var mv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(ge.Content, {
10843
+ pv.displayName = he.Trigger.displayName;
10844
+ var mv = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(he.Content, {
10845
10845
  ref: n,
10846
10846
  className: e,
10847
10847
  ...t
10848
10848
  }));
10849
- mv.displayName = ge.Content.displayName;
10849
+ mv.displayName = he.Content.displayName;
10850
10850
  //#endregion
10851
10851
  //#region src/components/tab/components/BaseTabContent.tsx
10852
10852
  var hv = ({ items: e, enableAnimation: t }) => /* @__PURE__ */ C("div", {
@@ -11175,7 +11175,7 @@ function Iv(e, t, n) {
11175
11175
  return e === !0 && (!t || n > t);
11176
11176
  }
11177
11177
  function Lv(e, t) {
11178
- let n = _e(t.cell, e.getContext());
11178
+ let n = ge(t.cell, e.getContext());
11179
11179
  return e.column.id === "actions" ? /* @__PURE__ */ C("div", {
11180
11180
  className: "wu-opacity-0 wu-transition-opacity wu-duration-150 wu-ease-in-out group-hover:wu-opacity-100",
11181
11181
  children: n
@@ -11304,7 +11304,7 @@ var Bv = (e) => K("wu-group wu-border-b wu-border-black/[12%] [--wu-row-overlay:
11304
11304
  }) }) });
11305
11305
  }, Jv = ({ 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 }) => {
11306
11306
  let f = i === "compact" ? "wu-h-8" : "wu-h-10", p = e.getVisibleLeafColumns(), m = Pv(p), h = (e) => {
11307
- let { id: i, columnDef: a, getIsSorted: o, toggleSorting: s } = e.column, c = a.headerAlign, l = _e(a.header, e.getContext());
11307
+ let { id: i, columnDef: a, getIsSorted: o, toggleSorting: s } = e.column, c = a.headerAlign, l = ge(a.header, e.getContext());
11308
11308
  if (!t.includes(i)) return l;
11309
11309
  let u = o(), d = u === "asc", f = u === "desc";
11310
11310
  return /* @__PURE__ */ w("button", {
@@ -11393,7 +11393,7 @@ var Xv = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
11393
11393
  });
11394
11394
  return /* @__PURE__ */ C("div", {
11395
11395
  className: "wu-w-full",
11396
- children: /* @__PURE__ */ C(ce, {
11396
+ children: /* @__PURE__ */ C(se, {
11397
11397
  style: { height: r },
11398
11398
  totalCount: _.length,
11399
11399
  fixedHeaderContent: p ? void 0 : () => /* @__PURE__ */ C(Jv, {
@@ -11461,215 +11461,217 @@ var Xv = ({ table: e, size: t, isRowDisabled: n, containerHeight: r = 600, sorta
11461
11461
  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",
11462
11462
  unstyled: "",
11463
11463
  bordered: "wu-border-collapse wu-border wu-border-black/[12%] [&_th]:wu-border [&_td]:wu-border"
11464
- } } }), Qv = ({ 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: _, className: v, ...y }) => {
11465
- let [b, x] = n.useState(() => a?.defaultSort ?? null), { scrollContainerRef: S, isScrolledLeft: T, isScrolledRight: E, handleScroll: D } = Av(), { rowSelectionState: O, sortableColumns: k, selectedRowCount: A, columnsWithExpand: j, expanded: M, setExpanded: N, handleRowSelectionChange: P } = zv({
11464
+ } } }), Qv = ({ data: e, columns: t, isLoading: r = !1, variant: i = "unstyled", sort: a, size: o, rowSelection: s, HeaderAction: c, NoDataContent: l, stickyHeader: u = !1, maxHeight: d, CustomLoader: f, caption: p, virtualization: m, isRowExpandable: h, hideHeader: g = !1, tableLayout: _ = "fixed", style: v, className: y, ...b }) => {
11465
+ let [x, S] = n.useState(() => a?.defaultSort ?? null), { scrollContainerRef: T, isScrolledLeft: E, isScrolledRight: D, handleScroll: O } = Av(), { rowSelectionState: k, sortableColumns: A, selectedRowCount: j, columnsWithExpand: M, expanded: N, setExpanded: P, handleRowSelectionChange: F } = zv({
11466
11466
  data: e,
11467
11467
  columns: t,
11468
11468
  rowSelection: s,
11469
- isRowExpandable: m
11470
- }), F = Ce({
11469
+ isRowExpandable: h
11470
+ }), I = Se({
11471
11471
  data: e,
11472
- columns: j,
11473
- getCoreRowModel: ve(),
11474
- getPaginationRowModel: xe(),
11475
- getExpandedRowModel: m ? ye() : void 0,
11472
+ columns: M,
11473
+ getCoreRowModel: _e(),
11474
+ getPaginationRowModel: be(),
11475
+ getExpandedRowModel: h ? ve() : void 0,
11476
11476
  manualPagination: !0,
11477
11477
  manualSorting: !0,
11478
11478
  manualFiltering: !0,
11479
11479
  enableRowSelection: s?.isRowDisabled ? (e) => !s.isRowDisabled(e.original) : !0,
11480
- enableExpanding: !!m,
11480
+ enableExpanding: !!h,
11481
11481
  state: {
11482
- sorting: b ? [{
11483
- id: b.id,
11484
- desc: b.desc
11482
+ sorting: x ? [{
11483
+ id: x.id,
11484
+ desc: x.desc
11485
11485
  }] : [],
11486
- ...s?.isEnabled ? { rowSelection: O } : {},
11487
- ...m ? { expanded: M } : {}
11486
+ ...s?.isEnabled ? { rowSelection: k } : {},
11487
+ ...h ? { expanded: N } : {}
11488
11488
  },
11489
- onRowSelectionChange: P,
11490
- ...m ? { onExpandedChange: N } : {}
11491
- }), I = Iv(p?.enabled, p?.threshold, e.length), L = p?.maxHeight ?? 600;
11489
+ onRowSelectionChange: F,
11490
+ ...h ? { onExpandedChange: P } : {}
11491
+ }), L = Iv(m?.enabled, m?.threshold, e.length), R = m?.maxHeight ?? 600, z = typeof d == "number" ? `${d}px` : d;
11492
11492
  return /* @__PURE__ */ C("div", {
11493
- className: K("wu-text-gray-lead wu-table-container wu-relative", !I && u && "wu-h-full"),
11494
- children: I ? /* @__PURE__ */ w("div", {
11495
- ref: S,
11496
- onScroll: D,
11493
+ className: K("wu-text-gray-lead wu-table-container wu-relative", !L && u && !z && "wu-h-full"),
11494
+ children: L ? /* @__PURE__ */ w("div", {
11495
+ ref: T,
11496
+ onScroll: O,
11497
11497
  className: K("wu-overflow-x-auto wu-w-full", Zv({ variant: i })),
11498
- children: [f && /* @__PURE__ */ C(kv, {
11498
+ children: [p && /* @__PURE__ */ C(kv, {
11499
11499
  className: "wu-font-light",
11500
- children: f
11500
+ children: p
11501
11501
  }), r ? /* @__PURE__ */ C("div", {
11502
11502
  className: "wu-text-center wu-h-[35vh] wu-flex wu-items-center wu-justify-center",
11503
- children: d ?? /* @__PURE__ */ C(Qe, { className: "wu-w-full" })
11504
- }) : F.getRowModel().rows?.length ? /* @__PURE__ */ C(Xv, {
11505
- table: F,
11503
+ children: f ?? /* @__PURE__ */ C(Qe, { className: "wu-w-full" })
11504
+ }) : I.getRowModel().rows?.length ? /* @__PURE__ */ C(Xv, {
11505
+ table: I,
11506
11506
  size: o,
11507
11507
  isRowDisabled: s?.isRowDisabled,
11508
- containerHeight: L,
11509
- sortableColumns: k,
11508
+ containerHeight: R,
11509
+ sortableColumns: A,
11510
11510
  HeaderAction: c,
11511
- isRowSelected: A > 0,
11511
+ isRowSelected: j > 0,
11512
11512
  manual: !0,
11513
11513
  onSort: (e) => {
11514
- x(e), a?.onSort(e);
11514
+ S(e), a?.onSort(e);
11515
11515
  },
11516
- tableLayout: g,
11517
- isScrolledLeft: T,
11518
- isScrolledRight: E,
11519
- hideHeader: h
11516
+ tableLayout: _,
11517
+ isScrolledLeft: E,
11518
+ isScrolledRight: D,
11519
+ hideHeader: g
11520
11520
  }) : /* @__PURE__ */ C("div", {
11521
11521
  className: "wu-p-4 wu-text-center",
11522
11522
  children: l
11523
11523
  })]
11524
11524
  }) : /* @__PURE__ */ C("div", {
11525
- ref: S,
11526
- onScroll: D,
11527
- className: K("wu-overflow-x-auto wu-w-full", u && "wu-overflow-y-auto wu-h-full"),
11525
+ ref: T,
11526
+ onScroll: O,
11527
+ className: K("wu-overflow-x-auto wu-w-full", u && "wu-overflow-y-auto", u && !z && "wu-h-full"),
11528
+ style: u && z ? { maxHeight: z } : void 0,
11528
11529
  children: /* @__PURE__ */ w(Sv, {
11529
- ...y,
11530
- className: K("wu-w-full", Zv({ variant: i }), v),
11530
+ ...b,
11531
+ className: K("wu-w-full", Zv({ variant: i }), y),
11531
11532
  style: {
11532
- tableLayout: g,
11533
- ..._
11533
+ tableLayout: _,
11534
+ ...v
11534
11535
  },
11535
11536
  children: [
11536
- f && /* @__PURE__ */ C(kv, {
11537
+ p && /* @__PURE__ */ C(kv, {
11537
11538
  className: "wu-font-light",
11538
- children: f
11539
+ children: p
11539
11540
  }),
11540
- !h && /* @__PURE__ */ C(Jv, {
11541
- table: F,
11542
- sortableColumns: k,
11541
+ !g && /* @__PURE__ */ C(Jv, {
11542
+ table: I,
11543
+ sortableColumns: A,
11543
11544
  manual: !0,
11544
11545
  onSort: (e) => {
11545
- x(e), a?.onSort(e);
11546
+ S(e), a?.onSort(e);
11546
11547
  },
11547
11548
  size: o,
11548
11549
  HeaderAction: c,
11549
- isRowSelected: A > 0,
11550
+ isRowSelected: j > 0,
11550
11551
  isStickyHeader: u,
11551
- isRowExpandable: m,
11552
- isScrolledLeft: T,
11553
- isScrolledRight: E
11552
+ isRowExpandable: h,
11553
+ isScrolledLeft: E,
11554
+ isScrolledRight: D
11554
11555
  }),
11555
11556
  /* @__PURE__ */ C(qv, {
11556
- table: F,
11557
+ table: I,
11557
11558
  size: o,
11558
11559
  NoDataContent: l,
11559
- CustomLoader: d,
11560
+ CustomLoader: f,
11560
11561
  isLoading: r,
11561
11562
  isRowDisabled: s?.isRowDisabled,
11562
- isRowExpandable: m,
11563
- isScrolledLeft: T,
11564
- isScrolledRight: E
11563
+ isRowExpandable: h,
11564
+ isScrolledLeft: E,
11565
+ isScrolledRight: D
11565
11566
  })
11566
11567
  ]
11567
11568
  })
11568
11569
  })
11569
11570
  });
11570
- }, $v = ({ data: e, columns: t, variant: r = "unstyled", size: i = "default", sort: a, filterText: o, pagination: s, stickyHeader: c, HeaderAction: l, CustomLoader: u, NoDataContent: d, isLoading: f, caption: m, rowSelection: h, isRowExpandable: g, hideHeader: v = !1, virtualization: b, tableLayout: x = "fixed", style: S, className: T, ...E }) => {
11571
- let [D, O] = n.useState(() => a?.defaultSort ? [{
11571
+ }, $v = ({ data: e, columns: t, variant: r = "unstyled", size: i = "default", sort: a, filterText: o, pagination: s, stickyHeader: c, maxHeight: l, HeaderAction: u, CustomLoader: d, NoDataContent: f, isLoading: m, caption: h, rowSelection: g, isRowExpandable: v, hideHeader: b = !1, virtualization: x, tableLayout: S = "fixed", style: T, className: E, ...D }) => {
11572
+ let [O, k] = n.useState(() => a?.defaultSort ? [{
11572
11573
  id: a.defaultSort.id,
11573
11574
  desc: a.defaultSort.desc
11574
- }] : []), [k, A] = y([]), [j, M] = y(s?.pageIndex ?? 0), { scrollContainerRef: N, isScrolledLeft: P, isScrolledRight: F, handleScroll: I } = Av(), { finalColumns: L, rowSelectionState: R, sortableColumns: z, selectedRowCount: B, columnsWithExpand: ee, expanded: te, setExpanded: ne, handleRowSelectionChange: re } = zv({
11575
+ }] : []), [A, j] = y([]), [M, N] = y(s?.pageIndex ?? 0), { scrollContainerRef: P, isScrolledLeft: F, isScrolledRight: I, handleScroll: L } = Av(), { finalColumns: R, rowSelectionState: z, sortableColumns: B, selectedRowCount: ee, columnsWithExpand: te, expanded: ne, setExpanded: re, handleRowSelectionChange: ie } = zv({
11575
11576
  data: e,
11576
11577
  columns: t,
11577
- rowSelection: h,
11578
- isRowExpandable: g
11579
- }), ie = _(() => L.filter((e) => e.filterable).map((e) => e.accessorKey), [L]), V = Ce({
11578
+ rowSelection: g,
11579
+ isRowExpandable: v
11580
+ }), V = _(() => R.filter((e) => e.filterable).map((e) => e.accessorKey), [R]), H = Se({
11580
11581
  data: e,
11581
- columns: ee,
11582
- getCoreRowModel: ve(),
11583
- getFilteredRowModel: be(),
11584
- getSortedRowModel: Se(),
11585
- getPaginationRowModel: s ? xe() : void 0,
11586
- getExpandedRowModel: g ? ye() : void 0,
11587
- enableRowSelection: h?.isRowDisabled ? (e) => !h.isRowDisabled(e.original) : !0,
11588
- enableExpanding: !!g,
11582
+ columns: te,
11583
+ getCoreRowModel: _e(),
11584
+ getFilteredRowModel: ye(),
11585
+ getSortedRowModel: xe(),
11586
+ getPaginationRowModel: s ? be() : void 0,
11587
+ getExpandedRowModel: v ? ve() : void 0,
11588
+ enableRowSelection: g?.isRowDisabled ? (e) => !g.isRowDisabled(e.original) : !0,
11589
+ enableExpanding: !!v,
11589
11590
  state: {
11590
- sorting: D,
11591
- columnFilters: k,
11591
+ sorting: O,
11592
+ columnFilters: A,
11592
11593
  ...s ? { pagination: s } : {},
11593
- ...h?.isEnabled ? { rowSelection: R } : {},
11594
- ...g ? { expanded: te } : {}
11594
+ ...g?.isEnabled ? { rowSelection: z } : {},
11595
+ ...v ? { expanded: ne } : {}
11595
11596
  },
11596
- onSortingChange: O,
11597
- onColumnFiltersChange: A,
11598
- onRowSelectionChange: re,
11599
- ...g ? { onExpandedChange: ne } : {}
11597
+ onSortingChange: k,
11598
+ onColumnFiltersChange: j,
11599
+ onRowSelectionChange: ie,
11600
+ ...v ? { onExpandedChange: re } : {}
11600
11601
  });
11601
11602
  p(() => {
11602
- ie.forEach((e) => {
11603
- V.getColumn(e)?.setFilterValue(o);
11603
+ V.forEach((e) => {
11604
+ H.getColumn(e)?.setFilterValue(o);
11604
11605
  });
11605
11606
  }, [
11606
11607
  o,
11607
- ie,
11608
- V
11608
+ V,
11609
+ H
11609
11610
  ]), p(() => {
11610
- s && s?.pageIndex !== j && (h?.onRowSelect([]), V.resetRowSelection(), M(s.pageIndex));
11611
+ s && s?.pageIndex !== M && (g?.onRowSelect([]), H.resetRowSelection(), N(s.pageIndex));
11611
11612
  }, [s?.pageIndex]);
11612
- let ae = Iv(b?.enabled, b?.threshold, e.length), oe = b?.maxHeight ?? 600;
11613
+ let ae = Iv(x?.enabled, x?.threshold, e.length), oe = x?.maxHeight ?? 600, U = typeof l == "number" ? `${l}px` : l;
11613
11614
  return /* @__PURE__ */ C("div", {
11614
- className: K("wu-text-gray-lead wu-table-container wu-relative", !ae && c && "wu-h-full"),
11615
+ className: K("wu-text-gray-lead wu-table-container wu-relative", !ae && c && !U && "wu-h-full"),
11615
11616
  children: ae ? /* @__PURE__ */ w("div", {
11616
- ref: N,
11617
- onScroll: I,
11617
+ ref: P,
11618
+ onScroll: L,
11618
11619
  className: K("wu-overflow-x-auto wu-w-full", Zv({ variant: r })),
11619
- children: [m && /* @__PURE__ */ C(kv, { children: m }), f ? /* @__PURE__ */ C("div", {
11620
+ children: [h && /* @__PURE__ */ C(kv, { children: h }), m ? /* @__PURE__ */ C("div", {
11620
11621
  className: "wu-text-center wu-h-[35vh] wu-flex wu-items-center wu-justify-center",
11621
- children: u ?? /* @__PURE__ */ C(Qe, { className: "wu-w-full" })
11622
- }) : V.getRowModel().rows?.length ? /* @__PURE__ */ C(Xv, {
11623
- table: V,
11622
+ children: d ?? /* @__PURE__ */ C(Qe, { className: "wu-w-full" })
11623
+ }) : H.getRowModel().rows?.length ? /* @__PURE__ */ C(Xv, {
11624
+ table: H,
11624
11625
  size: i,
11625
- isRowDisabled: h?.isRowDisabled,
11626
+ isRowDisabled: g?.isRowDisabled,
11626
11627
  containerHeight: oe,
11627
- sortableColumns: z,
11628
- HeaderAction: l,
11629
- isRowSelected: B > 0,
11630
- tableLayout: x,
11631
- isScrolledLeft: P,
11632
- isScrolledRight: F,
11633
- isRowExpandable: g,
11634
- hideHeader: v
11628
+ sortableColumns: B,
11629
+ HeaderAction: u,
11630
+ isRowSelected: ee > 0,
11631
+ tableLayout: S,
11632
+ isScrolledLeft: F,
11633
+ isScrolledRight: I,
11634
+ isRowExpandable: v,
11635
+ hideHeader: b
11635
11636
  }) : /* @__PURE__ */ C("div", {
11636
11637
  className: "wu-p-4 wu-text-center",
11637
- children: d
11638
+ children: f
11638
11639
  })]
11639
11640
  }) : /* @__PURE__ */ C("div", {
11640
- ref: N,
11641
- onScroll: I,
11642
- className: K("wu-overflow-x-auto wu-w-full", c && "wu-overflow-y-auto wu-h-full"),
11641
+ ref: P,
11642
+ onScroll: L,
11643
+ className: K("wu-overflow-x-auto wu-w-full", c && "wu-overflow-y-auto", c && !U && "wu-h-full"),
11644
+ style: c && U ? { maxHeight: U } : void 0,
11643
11645
  children: /* @__PURE__ */ w(Sv, {
11644
- ...E,
11645
- className: K(`wu-table-${x}`, "wu-w-full", Zv({ variant: r }), T),
11646
+ ...D,
11647
+ className: K(`wu-table-${S}`, "wu-w-full", Zv({ variant: r }), E),
11646
11648
  style: {
11647
- tableLayout: x,
11648
- ...S
11649
+ tableLayout: S,
11650
+ ...T
11649
11651
  },
11650
11652
  children: [
11651
- m && /* @__PURE__ */ C(kv, { children: m }),
11652
- !v && /* @__PURE__ */ C(Jv, {
11653
- table: V,
11654
- sortableColumns: z,
11653
+ h && /* @__PURE__ */ C(kv, { children: h }),
11654
+ !b && /* @__PURE__ */ C(Jv, {
11655
+ table: H,
11656
+ sortableColumns: B,
11655
11657
  size: i,
11656
- HeaderAction: l,
11657
- isRowSelected: B > 0,
11658
+ HeaderAction: u,
11659
+ isRowSelected: ee > 0,
11658
11660
  isStickyHeader: c,
11659
- isRowExpandable: g,
11660
- isScrolledLeft: P,
11661
- isScrolledRight: F
11661
+ isRowExpandable: v,
11662
+ isScrolledLeft: F,
11663
+ isScrolledRight: I
11662
11664
  }),
11663
11665
  /* @__PURE__ */ C(qv, {
11664
- table: V,
11666
+ table: H,
11665
11667
  size: i,
11666
- NoDataContent: d,
11667
- CustomLoader: u,
11668
- isLoading: f,
11669
- isRowDisabled: h?.isRowDisabled,
11670
- isRowExpandable: g,
11671
- isScrolledLeft: P,
11672
- isScrolledRight: F
11668
+ NoDataContent: f,
11669
+ CustomLoader: d,
11670
+ isLoading: m,
11671
+ isRowDisabled: g?.isRowDisabled,
11672
+ isRowExpandable: v,
11673
+ isScrolledLeft: F,
11674
+ isScrolledRight: I
11673
11675
  })
11674
11676
  ]
11675
11677
  })
@@ -11984,7 +11986,7 @@ var Dy = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r
11984
11986
  variant: t,
11985
11987
  duration: n,
11986
11988
  position: r
11987
- }) }), Oy = G.Provider, ky = V("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", {
11989
+ }) }), Oy = Ce.Provider, ky = V("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", {
11988
11990
  variants: { position: {
11989
11991
  topRight: "wu-right-0 wu-top-0",
11990
11992
  top: "wu-top-0 wu-left-1/2 wu--translate-x-1/2",
@@ -11994,12 +11996,12 @@ var Dy = () => ({ showToast: ({ message: e, variant: t, duration: n, position: r
11994
11996
  bottomLeft: "wu-left-0 wu-bottom-0"
11995
11997
  } },
11996
11998
  defaultVariants: { position: "top" }
11997
- }), Ay = t.forwardRef(({ className: e, position: t, ...n }, r) => /* @__PURE__ */ C(G.Viewport, {
11999
+ }), Ay = t.forwardRef(({ className: e, position: t, ...n }, r) => /* @__PURE__ */ C(Ce.Viewport, {
11998
12000
  ref: r,
11999
12001
  className: K(ky({ position: t }), e),
12000
12002
  ...n
12001
12003
  }));
12002
- Ay.displayName = G.Viewport.displayName;
12004
+ Ay.displayName = Ce.Viewport.displayName;
12003
12005
  var jy = V("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", {
12004
12006
  variants: {
12005
12007
  variant: {
@@ -12022,7 +12024,7 @@ var jy = V("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative w
12022
12024
  variant: "success",
12023
12025
  position: "top"
12024
12026
  }
12025
- }), My = t.forwardRef(({ className: e, variant: t, position: n, ...r }, i) => /* @__PURE__ */ C(G.Root, {
12027
+ }), My = t.forwardRef(({ className: e, variant: t, position: n, ...r }, i) => /* @__PURE__ */ C(Ce.Root, {
12026
12028
  ref: i,
12027
12029
  className: K(jy({
12028
12030
  variant: t,
@@ -12030,14 +12032,14 @@ var jy = V("group wu-pointer-events-auto wu-text-xs wu-font-normal wu-relative w
12030
12032
  }), e),
12031
12033
  ...r
12032
12034
  }));
12033
- My.displayName = G.Root.displayName;
12034
- var Ny = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Action, {
12035
+ My.displayName = Ce.Root.displayName;
12036
+ var Ny = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Action, {
12035
12037
  ref: n,
12036
12038
  className: K("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),
12037
12039
  ...t
12038
12040
  }));
12039
- Ny.displayName = G.Action.displayName;
12040
- var Py = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Close, {
12041
+ Ny.displayName = Ce.Action.displayName;
12042
+ var Py = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Close, {
12041
12043
  ref: n,
12042
12044
  className: K("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),
12043
12045
  "toast-close": "",
@@ -12045,19 +12047,19 @@ var Py = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Close,
12045
12047
  ...t,
12046
12048
  children: /* @__PURE__ */ C("span", { className: "wm-close wu-text-base" })
12047
12049
  }));
12048
- Py.displayName = G.Close.displayName;
12049
- var Fy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Title, {
12050
+ Py.displayName = Ce.Close.displayName;
12051
+ var Fy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Title, {
12050
12052
  ref: n,
12051
12053
  className: K("wu-text-sm wu-font-semibold", e),
12052
12054
  ...t
12053
12055
  }));
12054
- Fy.displayName = G.Title.displayName;
12055
- var Iy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(G.Description, {
12056
+ Fy.displayName = Ce.Title.displayName;
12057
+ var Iy = t.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(Ce.Description, {
12056
12058
  ref: n,
12057
12059
  className: K("wu-text-sm wu-opacity-90", e),
12058
12060
  ...t
12059
12061
  }));
12060
- Iy.displayName = G.Description.displayName;
12062
+ Iy.displayName = Ce.Description.displayName;
12061
12063
  //#endregion
12062
12064
  //#region src/base/ui/toaster.tsx
12063
12065
  function Ly() {
@@ -12371,6 +12373,6 @@ var Vy = V("wu-flex wu-items-center wu-gap-3 wu-w-fit", { variants: { labelPosit
12371
12373
  });
12372
12374
  //#endregion
12373
12375
  //#region src/index.ts
12374
- ob.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.50.0");
12376
+ ob.displayName = "WuTranslate", typeof window < "u" && (window.wickUiVersion = "1.51.0");
12375
12377
  //#endregion
12376
12378
  export { Ky as CHART_COLOR_SYSTEM, He as WuAccordion, Je as WuActivityLog, Nt as WuAppHeader, ot as WuAppHeaderAccount, Tt as WuAppHeaderBar, st as WuAppHeaderHelp, wt as WuAppHeaderMenu, Et as WuAppHeaderSearch, tt as WuButton, Bt as WuCalender, ki as WuCard, ji as WuCardFooter, Ai as WuCardHeader, Ni as WuCheckbox, Ii as WuChip, ha as WuCombobox, ga as WuCopyToClipboard, Qv as WuDataTable, $t as WuDatePicker, Oi as WuDateRangePicker, mt as WuDisplay, ka as WuDrawer, Aa as WuDrawerClose, Kp as WuDrilldown, Qp as WuFooter, Qt as WuFormGroup, ft as WuHeading, $p as WuHelpButton, ht as WuIcon, mi as WuInput, qt as WuInputError, Jt as WuInputHint, Zt as WuLabel, cm as WuListbox, Qe as WuLoader, Vp as WuMenu, Mp as WuMenuCheckboxItem, lm as WuMenuIcon, Np as WuMenuItem, Pp as WuMenuItemGroup, Fp as WuMenuRadioItem, Ip as WuMenuSeparatorItem, Em as WuModal, Am as WuModalClose, Dm as WuModalContent, km as WuModalFooter, Om as WuModalHeader, Bm as WuMonthPicker, qm as WuPagination, vi as WuPopover, yi as WuPopoverClose, Wm as WuPrimaryNavbar, Zm as WuRadioGroup, Qm as WuScrollArea, Km as WuSecondaryNavbar, Rm as WuSelect, Y_ as WuSharedSurvey, fg as WuSidebar, yg as WuSidebarCollapsibleMenu, mg as WuSidebarContent, hg as WuSidebarFooter, gg as WuSidebarGroup, vg as WuSidebarItem, _g as WuSidebarMenu, pg as WuSidebarTrigger, Sm as WuSpotlight, wg as WuStackedCard, Tg as WuStackedCardOverlay, K_ as WuStepper, zp as WuSubMenu, pt as WuSubtext, Z_ as WuSurveyItem, Q_ as WuSurveyList, tv as WuSurveySelect, ev as WuSurveySource, uv as WuSwitcher, xv as WuTab, $v as WuTable, dt as WuText, ty as WuTextarea, my as WuTimePicker, Ry as WuToast, By as WuToggle, jt as WuTooltip, ob as WuTranslate, ab as WuTranslateProvider, Hy as WuTranslationContext, Gy as WuTranslationProvider, Mt as WuTruncatedLabel, Ki as WuVirtualScroll, Sg as calculatePosition, d as useContext, Uy as useTranslation, Wy as useTranslationsContext, nb as useWickuiTranslate, rb as useWt, Dy as useWuShowToast, dh as useWuSidebar, Qy as wt, eb as wtCharacterSet, $y as wtIsRtl };