solid-element-ui 0.2.3 → 0.2.5

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.
Files changed (51) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +572 -579
  3. package/dist/src/alert-dialog/alert-dialog.d.ts +2 -1
  4. package/package.json +5 -5
  5. package/src/accordion/accordion.tsx +80 -0
  6. package/src/alert/alert.tsx +86 -0
  7. package/src/alert-dialog/alert-dialog.tsx +98 -0
  8. package/src/badge/badge.tsx +52 -0
  9. package/src/breadcrumbs/breadcrumbs.tsx +69 -0
  10. package/src/button/button.tsx +216 -0
  11. package/src/checkbox/checkbox.tsx +64 -0
  12. package/src/collapsible/collapsible.tsx +46 -0
  13. package/src/color-area/color-area.tsx +46 -0
  14. package/src/color-channel-field/color-channel-field.tsx +46 -0
  15. package/src/color-field/color-field.tsx +64 -0
  16. package/src/color-slider/color-slider.tsx +60 -0
  17. package/src/color-swatch/color-swatch.tsx +33 -0
  18. package/src/color-wheel/color-wheel.tsx +50 -0
  19. package/src/combobox/combobox.tsx +97 -0
  20. package/src/context-menu/context-menu.tsx +102 -0
  21. package/src/dialog/dialog.tsx +102 -0
  22. package/src/dropdown-menu/dropdown-menu.tsx +111 -0
  23. package/src/file-field/file-field.tsx +114 -0
  24. package/src/hover-card/hover-card.tsx +62 -0
  25. package/src/image/image.tsx +59 -0
  26. package/src/index.tsx +91 -0
  27. package/src/link/link.tsx +64 -0
  28. package/src/menubar/menubar.tsx +81 -0
  29. package/src/meter/meter.tsx +89 -0
  30. package/src/navigation-menu/navigation-menu.tsx +90 -0
  31. package/src/number-field/number-field.tsx +80 -0
  32. package/src/pagination/pagination.tsx +68 -0
  33. package/src/popover/popover.tsx +59 -0
  34. package/src/progress/progress.tsx +83 -0
  35. package/src/radio-group/radio-group.tsx +94 -0
  36. package/src/rating-group/rating-group.tsx +101 -0
  37. package/src/search/search.tsx +99 -0
  38. package/src/segmented-control/segmented-control.tsx +92 -0
  39. package/src/select/select.tsx +164 -0
  40. package/src/separator/separator.tsx +62 -0
  41. package/src/skeleton/skeleton.tsx +73 -0
  42. package/src/slider/slider.tsx +91 -0
  43. package/src/style/index.css +150 -0
  44. package/src/switch/switch.tsx +104 -0
  45. package/src/tabs/tabs.tsx +73 -0
  46. package/src/text-field/text-field.tsx +97 -0
  47. package/src/time-field/time-field.tsx +103 -0
  48. package/src/toast/toast.tsx +128 -0
  49. package/src/toggle-button/toggle-button.tsx +68 -0
  50. package/src/toggle-group/toggle-group.tsx +86 -0
  51. package/src/tooltip/tooltip.tsx +78 -0
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isServer as pe, createComponent as c, Dynamic as fa, mergeProps as x, memo as _, template as se, spread as Yt, insert as Y, effect as xe, className as Ce, Portal as qt, use as ha, style as pa, setAttribute as ma, delegateEvents as yd } from "solid-js/web";
1
+ import { isServer as pe, createComponent as c, Dynamic as fa, mergeProps as x, memo as _, template as se, spread as Yt, insert as J, effect as xe, className as Ie, Portal as qt, use as ha, style as pa, setAttribute as ma, delegateEvents as yd } from "solid-js/web";
2
2
  import { onCleanup as z, getOwner as xd, DEV as wd, createEffect as V, createRenderEffect as Cd, createMemo as A, $TRACK as Sd, untrack as qo, createRoot as ui, createSignal as D, mergeProps as sr, useContext as ee, createContext as te, onMount as Zt, on as le, createComputed as Id, splitProps as C, createUniqueId as Q, Show as U, createComponent as Pd, For as De, children as ir, batch as jt, Switch as kd, Match as di } from "solid-js";
3
3
  import { tv as ne } from "tailwind-variants";
4
4
  import { createStore as Dd } from "solid-js/store";
@@ -2257,7 +2257,7 @@ var On = Object.assign(Ga, {
2257
2257
  get class() {
2258
2258
  return Hg("lucide", "lucide-icon", ...e.name != null ? [`lucide-${Mi(Ug(e.name))}`, `lucide-${Mi(e.name)}`] : [], e.class != null ? e.class : "");
2259
2259
  }
2260
- }, n), !0, !0), Y(r, c(De, {
2260
+ }, n), !0, !0), J(r, c(De, {
2261
2261
  get each() {
2262
2262
  return e.iconNode;
2263
2263
  },
@@ -2450,7 +2450,7 @@ const Ff = ne({
2450
2450
  content: zf,
2451
2451
  contentInner: Nf,
2452
2452
  icon: _f
2453
- } = Ff(), F0 = (t) => {
2453
+ } = Ff(), E0 = (t) => {
2454
2454
  const [e, n] = C(t, ["items", "class"]);
2455
2455
  return c(On, x({
2456
2456
  get class() {
@@ -2500,7 +2500,7 @@ const Ff = ne({
2500
2500
  },
2501
2501
  get children() {
2502
2502
  var o = Lf();
2503
- return Y(o, () => r.content), xe(() => Ce(o, Nf())), o;
2503
+ return J(o, () => r.content), xe(() => Ie(o, Nf())), o;
2504
2504
  }
2505
2505
  })];
2506
2506
  }
@@ -2559,7 +2559,7 @@ const Wf = ne({
2559
2559
  success: qa,
2560
2560
  warning: Ya,
2561
2561
  danger: Za
2562
- }, R0 = (t) => {
2562
+ }, L0 = (t) => {
2563
2563
  const [e, n, r] = C(t, ["title", "icon", "children", "class"], ["variant"]), {
2564
2564
  root: o,
2565
2565
  content: s,
@@ -2585,15 +2585,15 @@ const Wf = ne({
2585
2585
  get children() {
2586
2586
  return [c(u, {}), (() => {
2587
2587
  var d = Uf(), g = d.firstChild;
2588
- return Y(d, (() => {
2588
+ return J(d, (() => {
2589
2589
  var h = _(() => !!e.title);
2590
2590
  return () => h() && (() => {
2591
2591
  var f = Hf();
2592
- return Y(f, () => e.title), xe(() => Ce(f, i())), f;
2592
+ return J(f, () => e.title), xe(() => Ie(f, i())), f;
2593
2593
  })();
2594
- })(), g), Y(g, () => e.children), xe((h) => {
2594
+ })(), g), J(g, () => e.children), xe((h) => {
2595
2595
  var f = s(), p = a();
2596
- return f !== h.e && Ce(d, h.e = f), p !== h.t && Ce(g, h.t = p), h;
2596
+ return f !== h.e && Ie(d, h.e = f), p !== h.t && Ie(g, h.t = p), h;
2597
2597
  }, {
2598
2598
  e: void 0,
2599
2599
  t: void 0
@@ -3622,7 +3622,7 @@ const yh = ne({
3622
3622
  },
3623
3623
  get children() {
3624
3624
  var s = bh();
3625
- return Y(s, () => e.leftIcon), s;
3625
+ return J(s, () => e.leftIcon), s;
3626
3626
  }
3627
3627
  }), _(() => e.children), c(U, {
3628
3628
  get when() {
@@ -3630,7 +3630,7 @@ const yh = ne({
3630
3630
  },
3631
3631
  get children() {
3632
3632
  var s = vh();
3633
- return Y(s, () => e.rightIcon), s;
3633
+ return J(s, () => e.rightIcon), s;
3634
3634
  }
3635
3635
  })];
3636
3636
  }
@@ -3657,8 +3657,10 @@ const xh = ne({
3657
3657
  description: Ph,
3658
3658
  footer: kh,
3659
3659
  closeButton: Dh
3660
- } = xh(), $0 = (t) => {
3661
- const [e, n] = C(t, ["trigger", "title", "description", "action", "cancel"]);
3660
+ } = xh(), F0 = (t) => {
3661
+ const [e, n] = C(t, ["trigger", "title", "description", "action", "cancel", "onConfirm"]), r = () => {
3662
+ e.onConfirm?.();
3663
+ };
3662
3664
  return c(Ze, x(n, {
3663
3665
  get children() {
3664
3666
  return [c(Ze.Trigger, {
@@ -3677,15 +3679,15 @@ const xh = ne({
3677
3679
  },
3678
3680
  get children() {
3679
3681
  return [(() => {
3680
- var r = Io();
3681
- return Y(r, c(Ze.Title, {
3682
+ var o = Io();
3683
+ return J(o, c(Ze.Title, {
3682
3684
  get class() {
3683
3685
  return Ih();
3684
3686
  },
3685
3687
  get children() {
3686
3688
  return e.title;
3687
3689
  }
3688
- }), null), Y(r, c(Ze.CloseButton, {
3690
+ }), null), J(o, c(Ze.CloseButton, {
3689
3691
  get class() {
3690
3692
  return Dh();
3691
3693
  },
@@ -3694,12 +3696,12 @@ const xh = ne({
3694
3696
  size: 18
3695
3697
  });
3696
3698
  }
3697
- }), null), xe(() => Ce(r, Sh())), r;
3699
+ }), null), xe(() => Ie(o, Sh())), o;
3698
3700
  })(), (() => {
3699
- var r = Io();
3700
- return Y(r, (() => {
3701
- var o = _(() => !!e.description);
3702
- return () => o() && c(Ze.Description, {
3701
+ var o = Io();
3702
+ return J(o, (() => {
3703
+ var s = _(() => !!e.description);
3704
+ return () => s() && c(Ze.Description, {
3703
3705
  get class() {
3704
3706
  return Ph();
3705
3707
  },
@@ -3707,24 +3709,25 @@ const xh = ne({
3707
3709
  return e.description;
3708
3710
  }
3709
3711
  });
3710
- })()), r;
3712
+ })()), o;
3711
3713
  })(), (() => {
3712
- var r = Io();
3713
- return Y(r, c(Ze.CloseButton, {
3714
+ var o = Io();
3715
+ return J(o, c(Ze.CloseButton, {
3714
3716
  get children() {
3715
3717
  return e.cancel || c(Ni, {
3716
3718
  variant: "outline",
3717
3719
  children: "取消"
3718
3720
  });
3719
3721
  }
3720
- }), null), Y(r, c(Ze.CloseButton, {
3722
+ }), null), J(o, c(Ze.CloseButton, {
3723
+ onClick: r,
3721
3724
  get children() {
3722
3725
  return e.action || c(Ni, {
3723
3726
  color: "primary",
3724
3727
  children: "确认"
3725
3728
  });
3726
3729
  }
3727
- }), null), xe(() => Ce(r, kh())), r;
3730
+ }), null), xe(() => Ie(o, kh())), o;
3728
3731
  })()];
3729
3732
  }
3730
3733
  })];
@@ -3764,7 +3767,7 @@ const Oh = ne({
3764
3767
  }
3765
3768
  }, {
3766
3769
  twMerge: !0
3767
- }), A0 = (t) => {
3770
+ }), R0 = (t) => {
3768
3771
  const [e, n, r] = C(t, ["class"], ["variant"]);
3769
3772
  return c(Mh, x({
3770
3773
  get class() {
@@ -3888,7 +3891,7 @@ const Rh = ne({
3888
3891
  root: $h,
3889
3892
  link: Ah,
3890
3893
  separator: Kh
3891
- } = Rh(), K0 = (t) => {
3894
+ } = Rh(), $0 = (t) => {
3892
3895
  const [e, n] = C(t, ["items", "separatorIcon", "class"]);
3893
3896
  return c(Ko, x({
3894
3897
  get class() {
@@ -3920,9 +3923,9 @@ const Rh = ne({
3920
3923
  }
3921
3924
  }), _(() => _(() => o() < e.items.length - 1)() && (() => {
3922
3925
  var s = Fh();
3923
- return Y(s, () => e.separatorIcon || c(jr, {
3926
+ return J(s, () => e.separatorIcon || c(jr, {
3924
3927
  size: 16
3925
- })), xe(() => Ce(s, Kh())), s;
3928
+ })), xe(() => Ie(s, Kh())), s;
3926
3929
  })())]
3927
3930
  });
3928
3931
  }
@@ -3998,7 +4001,7 @@ function fe() {
3998
4001
  throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
3999
4002
  return t;
4000
4003
  }
4001
- function Se(t) {
4004
+ function Ce(t) {
4002
4005
  const e = fe(), n = E({
4003
4006
  id: e.generateId("description")
4004
4007
  }, t);
@@ -4054,7 +4057,7 @@ function zh(t) {
4054
4057
  function Nh(t) {
4055
4058
  return t.matches("textarea, input, select, button");
4056
4059
  }
4057
- function Ie(t) {
4060
+ function Se(t) {
4058
4061
  const e = fe(), n = E({
4059
4062
  id: e.generateId("error-message")
4060
4063
  }, t), [r, o] = C(n, ["forceMount"]), s = () => e.validationState() === "invalid";
@@ -4106,11 +4109,11 @@ function ml(t) {
4106
4109
  }
4107
4110
  function bl(t) {
4108
4111
  const e = en();
4109
- return c(Se, x(() => e.dataset(), t));
4112
+ return c(Ce, x(() => e.dataset(), t));
4110
4113
  }
4111
4114
  function vl(t) {
4112
4115
  const e = en();
4113
- return c(Ie, x(() => e.dataset(), t));
4116
+ return c(Se, x(() => e.dataset(), t));
4114
4117
  }
4115
4118
  function yl(t) {
4116
4119
  const e = fe(), n = en(), [r, o] = D(), s = E({
@@ -4325,7 +4328,7 @@ const Uh = ne({
4325
4328
  indicator: _i,
4326
4329
  description: Gh,
4327
4330
  errorMessage: Xh
4328
- } = Uh(), z0 = (t) => {
4331
+ } = Uh(), A0 = (t) => {
4329
4332
  const [e, n] = C(t, ["label", "class", "description", "errorMessage"]);
4330
4333
  return c(Mt, x({
4331
4334
  get class() {
@@ -4396,7 +4399,7 @@ const Zh = ne({
4396
4399
  content: ep,
4397
4400
  contentInner: tp,
4398
4401
  icon: np
4399
- } = Zh(), N0 = (t) => {
4402
+ } = Zh(), K0 = (t) => {
4400
4403
  const [e, n] = C(t, ["title", "children", "class"]);
4401
4404
  return c(Fr, x({
4402
4405
  get class() {
@@ -4413,7 +4416,7 @@ const Zh = ne({
4413
4416
  get children() {
4414
4417
  return [(() => {
4415
4418
  var r = Yh();
4416
- return Y(r, () => e.title), r;
4419
+ return J(r, () => e.title), r;
4417
4420
  })(), c(fr, {
4418
4421
  get class() {
4419
4422
  return np();
@@ -4426,7 +4429,7 @@ const Zh = ne({
4426
4429
  },
4427
4430
  get children() {
4428
4431
  var r = qh();
4429
- return Y(r, () => e.children), xe(() => Ce(r, tp())), r;
4432
+ return J(r, () => e.children), xe(() => Ie(r, tp())), r;
4430
4433
  }
4431
4434
  })];
4432
4435
  }
@@ -5210,50 +5213,50 @@ function yp(t) {
5210
5213
  }, t), [n, r] = Pe({
5211
5214
  value: e.value,
5212
5215
  defaultValue: e.defaultValue,
5213
- onChange: (q) => e.onChange?.(q)
5216
+ onChange: (Y) => e.onChange?.(Y)
5214
5217
  }), o = A(() => e.colorSpace?.() ? n().toFormat(e.colorSpace()) : n()), s = A(() => o().getColorSpaceAxes({
5215
5218
  xChannel: e.xChannel?.(),
5216
5219
  yChannel: e.yChannel?.()
5217
5220
  })), i = () => o().getChannelRange(s().xChannel), a = () => o().getChannelRange(s().yChannel), l = () => i().step, u = () => a().step, d = () => i().pageSize, g = () => a().pageSize, h = () => i().maxValue, f = () => i().minValue, p = () => a().maxValue, m = () => a().minValue, [v, b] = D(!1), w = o(), y = () => {
5218
5221
  r(w);
5219
- }, S = () => o().getChannelValue(s().xChannel), I = () => o().getChannelValue(s().yChannel), L = (q) => {
5220
- q !== S() && r(o().withChannelValue(s().xChannel, q));
5221
- }, M = (q) => {
5222
- q !== I() && r(o().withChannelValue(s().yChannel, q));
5223
- }, k = (q = 1) => {
5224
- L(S() + q > h() ? h() : Qe(S() + q, f(), h(), l()));
5225
- }, $ = (q = 1) => {
5226
- M(I() + q > p() ? p() : Qe(I() + q, m(), p(), u()));
5227
- }, K = (q = 1) => {
5228
- L(Qe(S() - q, f(), h(), l()));
5229
- }, G = (q = 1) => {
5230
- M(Qe(I() - q, m(), p(), u()));
5222
+ }, S = () => o().getChannelValue(s().xChannel), I = () => o().getChannelValue(s().yChannel), L = (Y) => {
5223
+ Y !== S() && r(o().withChannelValue(s().xChannel, Y));
5224
+ }, M = (Y) => {
5225
+ Y !== I() && r(o().withChannelValue(s().yChannel, Y));
5226
+ }, k = (Y = 1) => {
5227
+ L(S() + Y > h() ? h() : Qe(S() + Y, f(), h(), l()));
5228
+ }, $ = (Y = 1) => {
5229
+ M(I() + Y > p() ? p() : Qe(I() + Y, m(), p(), u()));
5230
+ }, K = (Y = 1) => {
5231
+ L(Qe(S() - Y, f(), h(), l()));
5232
+ }, G = (Y = 1) => {
5233
+ M(Qe(I() - Y, m(), p(), u()));
5231
5234
  }, P = () => {
5232
- const q = (S() - f()) / (h() - f()), ce = (p() - (I() - m())) / (p() - m());
5235
+ const Y = (S() - f()) / (h() - f()), ce = (p() - (I() - m())) / (p() - m());
5233
5236
  return {
5234
- x: q,
5237
+ x: Y,
5235
5238
  y: ce
5236
5239
  };
5237
5240
  }, X = () => {
5238
- const q = (S() - f()) / h() - f(), ce = (I() - m()) / p() - m();
5241
+ const Y = (S() - f()) / h() - f(), ce = (I() - m()) / p() - m();
5239
5242
  return {
5240
- x: q,
5243
+ x: Y,
5241
5244
  y: ce
5242
5245
  };
5243
- }, j = (q) => {
5246
+ }, j = (Y) => {
5244
5247
  if (e.isDisabled()) return;
5245
- const ce = Qe(q.x, f(), h(), l()), ve = Qe(q.y, m(), p(), u());
5248
+ const ce = Qe(Y.x, f(), h(), l()), ve = Qe(Y.y, m(), p(), u());
5246
5249
  ce === S() && ve === I() || r(o().withChannelValue(s().xChannel, ce).withChannelValue(s().yChannel, ve));
5247
- }, H = (q) => {
5248
- j(oe(q.x, q.y));
5249
- }, F = (q) => {
5250
- const ce = Math.round((q.x - f()) / l()) * l() + f(), ve = Math.round((q.y - m()) / u()) * u() + m();
5250
+ }, H = (Y) => {
5251
+ j(oe(Y.x, Y.y));
5252
+ }, F = (Y) => {
5253
+ const ce = Math.round((Y.x - f()) / l()) * l() + f(), ve = Math.round((Y.y - m()) / u()) * u() + m();
5251
5254
  return {
5252
5255
  x: ce,
5253
5256
  y: ve
5254
5257
  };
5255
- }, oe = (q, ce) => {
5256
- const ve = q * (h() - f()) + f(), Oe = ce * (p() - m()) + m(), Ke = F({
5258
+ }, oe = (Y, ce) => {
5259
+ const ve = Y * (h() - f()) + f(), Oe = ce * (p() - m()) + m(), Ke = F({
5257
5260
  x: ve,
5258
5261
  y: Oe
5259
5262
  });
@@ -5283,10 +5286,10 @@ function yp(t) {
5283
5286
  decrementY: G,
5284
5287
  getThumbPosition: P,
5285
5288
  isDragging: v,
5286
- setIsDragging: (q) => {
5289
+ setIsDragging: (Y) => {
5287
5290
  if (e.isDisabled()) return;
5288
5291
  const ce = v();
5289
- b(q), ce && !v() && e.onChangeEnd?.(o());
5292
+ b(Y), ce && !v() && e.onChangeEnd?.(o());
5290
5293
  },
5291
5294
  channels: s,
5292
5295
  resetValue: y,
@@ -5482,8 +5485,8 @@ function wp(t) {
5482
5485
  }, () => n.dataset(), o));
5483
5486
  }
5484
5487
  var Xn = Object.assign(xp, {
5485
- Description: Se,
5486
- ErrorMessage: Ie,
5488
+ Description: Ce,
5489
+ ErrorMessage: Se,
5487
5490
  Label: Me,
5488
5491
  Background: fp,
5489
5492
  Thumb: wp,
@@ -5502,7 +5505,7 @@ const Cp = ne({
5502
5505
  root: Sp,
5503
5506
  background: Ip,
5504
5507
  thumb: Pp
5505
- } = Cp(), _0 = (t) => {
5508
+ } = Cp(), z0 = (t) => {
5506
5509
  const [e, n] = C(t, ["class"]);
5507
5510
  return c(Xn, x({
5508
5511
  get class() {
@@ -5614,8 +5617,8 @@ function Dp(t) {
5614
5617
  var Tp = /* @__PURE__ */ se("<div aria-hidden=true><input type=text tabindex=-1 style=font-size:16px>"), Mp = {};
5615
5618
  de(Mp, {
5616
5619
  DecrementTrigger: () => ys,
5617
- Description: () => Se,
5618
- ErrorMessage: () => Ie,
5620
+ Description: () => Ce,
5621
+ ErrorMessage: () => Se,
5619
5622
  HiddenInput: () => xs,
5620
5623
  IncrementTrigger: () => ws,
5621
5624
  Input: () => Cs,
@@ -5901,8 +5904,8 @@ function Op(t, e, n) {
5901
5904
  return r;
5902
5905
  }
5903
5906
  var Ot = Object.assign(Ss, {
5904
- Description: Se,
5905
- ErrorMessage: Ie,
5907
+ Description: Ce,
5908
+ ErrorMessage: Se,
5906
5909
  HiddenInput: xs,
5907
5910
  Input: Cs,
5908
5911
  IncrementTrigger: ws,
@@ -5944,8 +5947,8 @@ function Vp(t) {
5944
5947
  }, o));
5945
5948
  }
5946
5949
  var Do = Object.assign(Vp, {
5947
- Description: Se,
5948
- ErrorMessage: Ie,
5950
+ Description: Ce,
5951
+ ErrorMessage: Se,
5949
5952
  HiddenInput: xs,
5950
5953
  Input: Cs,
5951
5954
  IncrementTrigger: ws,
@@ -5964,7 +5967,7 @@ const Ep = ne({
5964
5967
  root: Lp,
5965
5968
  label: Fp,
5966
5969
  input: Rp
5967
- } = Ep(), B0 = (t) => {
5970
+ } = Ep(), N0 = (t) => {
5968
5971
  const [e, n] = C(t, ["label", "class"]);
5969
5972
  return c(Do, x({
5970
5973
  get class() {
@@ -5991,8 +5994,8 @@ const Ep = ne({
5991
5994
  };
5992
5995
  var $p = {};
5993
5996
  de($p, {
5994
- Description: () => Se,
5995
- ErrorMessage: () => Ie,
5997
+ Description: () => Ce,
5998
+ ErrorMessage: () => Se,
5996
5999
  Input: () => Ps,
5997
6000
  Label: () => Me,
5998
6001
  Root: () => ks,
@@ -6138,8 +6141,8 @@ function Ap(t) {
6138
6141
  "MozAppearance" in t.style || (t.style.overflow = "hidden"), t.style.alignSelf = "start", t.style.height = "auto", t.style.height = `${t.scrollHeight + (t.offsetHeight - t.clientHeight)}px`, t.style.overflow = n, t.style.alignSelf = e;
6139
6142
  }
6140
6143
  var Ye = Object.assign(ks, {
6141
- Description: Se,
6142
- ErrorMessage: Ie,
6144
+ Description: Ce,
6145
+ ErrorMessage: Se,
6143
6146
  Input: Ps,
6144
6147
  Label: Me,
6145
6148
  TextArea: El
@@ -6215,8 +6218,8 @@ function _p(t) {
6215
6218
  return t === "" || !!t.match(/^#?[0-9a-f]{0,6}$/i)?.[0];
6216
6219
  }
6217
6220
  var Yn = Object.assign(Np, {
6218
- Description: Se,
6219
- ErrorMessage: Ie,
6221
+ Description: Ce,
6222
+ ErrorMessage: Se,
6220
6223
  Input: zp,
6221
6224
  Label: Me
6222
6225
  });
@@ -6236,7 +6239,7 @@ const Bp = ne({
6236
6239
  input: Wp,
6237
6240
  description: jp,
6238
6241
  errorMessage: Gp
6239
- } = Bp(), U0 = (t) => {
6242
+ } = Bp(), _0 = (t) => {
6240
6243
  const [e, n] = C(t, ["label", "desc", "error", "class"]);
6241
6244
  return c(Yn, x({
6242
6245
  get class() {
@@ -6281,8 +6284,8 @@ const Bp = ne({
6281
6284
  };
6282
6285
  var Xp = /* @__PURE__ */ se("<input type=range>"), Yp = {};
6283
6286
  de(Yp, {
6284
- Description: () => Se,
6285
- ErrorMessage: () => Ie,
6287
+ Description: () => Ce,
6288
+ ErrorMessage: () => Se,
6286
6289
  Fill: () => Rl,
6287
6290
  Input: () => Ts,
6288
6291
  Label: () => Me,
@@ -6630,8 +6633,8 @@ function Ms(t) {
6630
6633
  return;
6631
6634
  const {
6632
6635
  width: ge,
6633
- height: q
6634
- } = y().getBoundingClientRect(), ce = b() ? q : ge;
6636
+ height: Y
6637
+ } = y().getBoundingClientRect(), ce = b() ? Y : ge;
6635
6638
  I === null && (I = d.getThumbPercent(d.focusedThumb()) * ce);
6636
6639
  let ve = b() ? F : H;
6637
6640
  (!b() && o.inverted || b() && v()) && (ve = -ve), I += ve;
@@ -6772,8 +6775,8 @@ function Vs(t) {
6772
6775
  }));
6773
6776
  }
6774
6777
  var Vt = Object.assign(Ms, {
6775
- Description: Se,
6776
- ErrorMessage: Ie,
6778
+ Description: Ce,
6779
+ ErrorMessage: Se,
6777
6780
  Fill: Rl,
6778
6781
  Input: Ts,
6779
6782
  Label: Me,
@@ -6890,8 +6893,8 @@ function em(t) {
6890
6893
  }, o));
6891
6894
  }
6892
6895
  var Cn = Object.assign(Jp, {
6893
- Description: Se,
6894
- ErrorMessage: Ie,
6896
+ Description: Ce,
6897
+ ErrorMessage: Se,
6895
6898
  Input: Ts,
6896
6899
  Label: Me,
6897
6900
  Thumb: Qp,
@@ -6914,7 +6917,7 @@ const nm = ne({
6914
6917
  track: sm,
6915
6918
  thumb: im,
6916
6919
  valueLabel: am
6917
- } = nm(), H0 = (t) => {
6920
+ } = nm(), B0 = (t) => {
6918
6921
  const [e, n] = C(t, ["label", "showValue", "class"]);
6919
6922
  return c(Cn, x({
6920
6923
  get class() {
@@ -6926,7 +6929,7 @@ const nm = ne({
6926
6929
  get children() {
6927
6930
  return [(() => {
6928
6931
  var r = tm();
6929
- return Y(r, (() => {
6932
+ return J(r, (() => {
6930
6933
  var o = _(() => !!e.label);
6931
6934
  return () => o() && c(Cn.Label, {
6932
6935
  get class() {
@@ -6936,7 +6939,7 @@ const nm = ne({
6936
6939
  return e.label;
6937
6940
  }
6938
6941
  });
6939
- })(), null), Y(r, (() => {
6942
+ })(), null), J(r, (() => {
6940
6943
  var o = _(() => !!e.showValue);
6941
6944
  return () => o() && c(Cn.ValueLabel, {
6942
6945
  get class() {
@@ -6996,7 +6999,7 @@ const dm = ne({
6996
6999
  base: ["h-8 w-8 rounded-md border border-black/10 shadow-sm transition-transform", "hover:scale-105 select-none dark:border-white/20"]
6997
7000
  }, {
6998
7001
  twMerge: !0
6999
- }), W0 = (t) => {
7002
+ }), U0 = (t) => {
7000
7003
  const [e, n] = C(t, ["class", "style"]);
7001
7004
  return c(um, x({
7002
7005
  get class() {
@@ -7455,8 +7458,8 @@ function Sm(t) {
7455
7458
  }));
7456
7459
  }
7457
7460
  var Mr = Object.assign(xm, {
7458
- Description: Se,
7459
- ErrorMessage: Ie,
7461
+ Description: Ce,
7462
+ ErrorMessage: Se,
7460
7463
  Input: fm,
7461
7464
  Label: Me,
7462
7465
  Thumb: wm,
@@ -7475,7 +7478,7 @@ const Im = ne({
7475
7478
  root: Pm,
7476
7479
  track: km,
7477
7480
  thumb: Dm
7478
- } = Im(), j0 = (t) => {
7481
+ } = Im(), H0 = (t) => {
7479
7482
  const [e, n] = C(t, ["size", "class"]);
7480
7483
  return c(Mr, x({
7481
7484
  get class() {
@@ -7521,7 +7524,7 @@ function _l(t) {
7521
7524
  },
7522
7525
  get children() {
7523
7526
  var d = Tm();
7524
- return d.value = l, Y(d, () => u?.textValue), xe(() => d.selected = n.selectionManager.isSelected(l)), d;
7527
+ return d.value = l, J(d, () => u?.textValue), xe(() => d.selected = n.selectionManager.isSelected(l)), d;
7525
7528
  }
7526
7529
  });
7527
7530
  };
@@ -7560,7 +7563,7 @@ function _l(t) {
7560
7563
  get value() {
7561
7564
  return n.selectionManager.firstSelectedKey() ?? "";
7562
7565
  }
7563
- }, r), !1, !0), Y(d, c(U, {
7566
+ }, r), !1, !0), J(d, c(U, {
7564
7567
  get when() {
7565
7568
  return n.isVirtualized;
7566
7569
  },
@@ -8231,13 +8234,13 @@ const Hm = (t) => ({
8231
8234
  var X;
8232
8235
  const oe = (X = K.filter((ge) => {
8233
8236
  if (L) {
8234
- const q = Ct(ge.placement);
8235
- return q === w || // Create a bias to the `y` side axis due to horizontal
8237
+ const Y = Ct(ge.placement);
8238
+ return Y === w || // Create a bias to the `y` side axis due to horizontal
8236
8239
  // reading directions favoring greater width.
8237
- q === "y";
8240
+ Y === "y";
8238
8241
  }
8239
8242
  return !0;
8240
- }).map((ge) => [ge.placement, ge.overflows.filter((q) => q > 0).reduce((q, ce) => q + ce, 0)]).sort((ge, q) => ge[1] - q[1])[0]) == null ? void 0 : X[0];
8243
+ }).map((ge) => [ge.placement, ge.overflows.filter((Y) => Y > 0).reduce((Y, ce) => Y + ce, 0)]).sort((ge, Y) => ge[1] - Y[1])[0]) == null ? void 0 : X[0];
8241
8244
  oe && (F = oe);
8242
8245
  break;
8243
8246
  }
@@ -9550,52 +9553,52 @@ function _b(t) {
9550
9553
  o.onInputChange?.(N), N === "" && o.selectionMode === "single" && !ae.selectionManager().isEmpty() && o.value === void 0 && ae.selectionManager().setSelectedKeys([]), ae.selectionManager().setFocusedKey(void 0);
9551
9554
  }
9552
9555
  }), H = (N) => {
9553
- const J = o.optionValue;
9554
- return J == null ? String(N) : String(qe(J) ? J(N) : N[J]);
9556
+ const Z = o.optionValue;
9557
+ return Z == null ? String(N) : String(qe(Z) ? Z(N) : N[Z]);
9555
9558
  }, F = (N) => {
9556
- const J = o.optionLabel;
9557
- return J == null ? String(N) : String(qe(J) ? J(N) : N[J]);
9559
+ const Z = o.optionLabel;
9560
+ return Z == null ? String(N) : String(qe(Z) ? Z(N) : N[Z]);
9558
9561
  }, oe = (N) => {
9559
- const J = o.optionTextValue;
9560
- return J == null ? String(N) : String(qe(J) ? J(N) : N[J]);
9562
+ const Z = o.optionTextValue;
9563
+ return Z == null ? String(N) : String(qe(Z) ? Z(N) : N[Z]);
9561
9564
  }, ge = A(() => {
9562
9565
  const N = o.optionGroupChildren;
9563
- return N == null ? o.options : o.options.flatMap((J) => J[N] ?? J);
9564
- }), q = (N) => {
9565
- const J = X() ?? "";
9566
+ return N == null ? o.options : o.options.flatMap((Z) => Z[N] ?? Z);
9567
+ }), Y = (N) => {
9568
+ const Z = X() ?? "";
9566
9569
  if (qe(o.defaultFilter))
9567
- return o.defaultFilter?.(N, J);
9570
+ return o.defaultFilter?.(N, Z);
9568
9571
  const ye = oe(N);
9569
9572
  switch (o.defaultFilter) {
9570
9573
  case "startsWith":
9571
- return n.startsWith(ye, J);
9574
+ return n.startsWith(ye, Z);
9572
9575
  case "endsWith":
9573
- return n.endsWith(ye, J);
9576
+ return n.endsWith(ye, Z);
9574
9577
  case "contains":
9575
- return n.contains(ye, J);
9578
+ return n.contains(ye, Z);
9576
9579
  }
9577
9580
  }, ce = A(() => {
9578
9581
  const N = o.optionGroupChildren;
9579
9582
  if (N == null)
9580
- return o.options.filter(q);
9581
- const J = [];
9583
+ return o.options.filter(Y);
9584
+ const Z = [];
9582
9585
  for (const ye of o.options) {
9583
- const Ne = ye[N].filter(q);
9584
- Ne.length !== 0 && J.push({
9586
+ const Ne = ye[N].filter(Y);
9587
+ Ne.length !== 0 && Z.push({
9585
9588
  ...ye,
9586
9589
  [N]: Ne
9587
9590
  });
9588
9591
  }
9589
- return J;
9592
+ return Z;
9590
9593
  }), ve = A(() => P.isOpen() ? k() ? o.options : ce() : K());
9591
9594
  let Oe = "focus";
9592
- const Ke = (N) => [...N].map((J) => ge().find((ye) => H(ye) === J)).filter((J) => J != null), ae = Qt({
9595
+ const Ke = (N) => [...N].map((Z) => ge().find((ye) => H(ye) === Z)).filter((Z) => Z != null), ae = Qt({
9593
9596
  selectedKeys: () => o.value != null ? o.value.map(H) : o.value,
9594
9597
  defaultSelectedKeys: () => o.defaultValue != null ? o.defaultValue.map(H) : o.defaultValue,
9595
9598
  onSelectionChange: (N) => {
9596
9599
  o.onChange?.(Ke(N)), o.closeOnSelection && P.isOpen() && N.size > 0 && (ze(), setTimeout(ze));
9597
- const J = h();
9598
- J && (J.setSelectionRange(J.value.length, J.value.length), me(J));
9600
+ const Z = h();
9601
+ Z && (Z.setSelectionRange(Z.value.length, Z.value.length), me(Z));
9599
9602
  },
9600
9603
  allowDuplicateSelectionEvents: () => T(o.allowDuplicateSelectionEvents),
9601
9604
  disallowEmptySelection: () => o.disallowEmptySelection,
@@ -9613,16 +9616,16 @@ function _b(t) {
9613
9616
  } = $e({
9614
9617
  show: () => o.forceMount || P.isOpen(),
9615
9618
  element: () => v() ?? null
9616
- }), Z = (N, J) => {
9617
- if (o.triggerMode === "manual" && J !== "manual" || !($(J === "manual") ? o.options.length > 0 : ce().length > 0) && !o.allowsEmptyCollection)
9619
+ }), q = (N, Z) => {
9620
+ if (o.triggerMode === "manual" && Z !== "manual" || !($(Z === "manual") ? o.options.length > 0 : ce().length > 0) && !o.allowsEmptyCollection)
9618
9621
  return;
9619
- Oe = J, I(N), P.open();
9622
+ Oe = Z, I(N), P.open();
9620
9623
  let kr = ae.selectionManager().firstSelectedKey();
9621
9624
  kr == null && (N === "first" ? kr = ae.collection().getFirstKey() : N === "last" && (kr = ae.collection().getLastKey())), ae.selectionManager().setFocused(!0), ae.selectionManager().setFocusedKey(kr);
9622
9625
  }, ze = () => {
9623
9626
  P.close(), ae.selectionManager().setFocused(!1), ae.selectionManager().setFocusedKey(void 0);
9624
- }, _t = (N, J) => {
9625
- P.isOpen() ? ze() : Z(N, J);
9627
+ }, _t = (N, Z) => {
9628
+ P.isOpen() ? ze() : q(N, Z);
9626
9629
  }, {
9627
9630
  formControlContext: bo
9628
9631
  } = bt(i);
@@ -9642,14 +9645,14 @@ function _b(t) {
9642
9645
  // Prevent item scroll behavior from being applied here, handled in the Listbox component.
9643
9646
  isVirtualized: !0
9644
9647
  }, h), pd = (N) => {
9645
- N && o.triggerMode === "focus" && Z(!1, "focus"), M(N), ae.selectionManager().setFocused(N);
9648
+ N && o.triggerMode === "focus" && q(!1, "focus"), M(N), ae.selectionManager().setFocused(N);
9646
9649
  }, md = A(() => {
9647
9650
  const N = ae.selectionManager().focusedKey();
9648
9651
  if (N)
9649
9652
  return w()?.querySelector(`[data-key="${N}"]`)?.id;
9650
9653
  }), ri = (N) => {
9651
9654
  if (o.selectionMode === "single") {
9652
- const J = [...N][0], ye = ge().find((Ne) => H(Ne) === J);
9655
+ const Z = [...N][0], ye = ge().find((Ne) => H(Ne) === Z);
9653
9656
  if (o.noResetInputOnBlur && !ye) return;
9654
9657
  j(ye ? F(ye) : "");
9655
9658
  } else {
@@ -9661,9 +9664,9 @@ function _b(t) {
9661
9664
  }), vd = (N) => o.sectionComponent?.({
9662
9665
  section: N
9663
9666
  });
9664
- V(le([ce, k], (N, J) => {
9665
- if (P.isOpen() && J != null) {
9666
- const ye = J[0], Ne = J[1];
9667
+ V(le([ce, k], (N, Z) => {
9668
+ if (P.isOpen() && Z != null) {
9669
+ const ye = Z[0], Ne = Z[1];
9667
9670
  G(Ne ? o.options : ye);
9668
9671
  } else {
9669
9672
  const ye = N[0], Ne = N[1];
@@ -9674,27 +9677,27 @@ function _b(t) {
9674
9677
  })), V(le(() => ae.selectionManager().selectedKeys(), ri));
9675
9678
  let oi = "";
9676
9679
  V(() => {
9677
- const N = ae.selectionManager().focusedKey() ?? "", J = ae.collection().getItem(N);
9678
- if (Lr() && J != null && N !== oi) {
9679
- const ye = ae.selectionManager().isSelected(N), Ne = o.translations?.focusAnnouncement(J?.textValue || "", ye) ?? "";
9680
+ const N = ae.selectionManager().focusedKey() ?? "", Z = ae.collection().getItem(N);
9681
+ if (Lr() && Z != null && N !== oi) {
9682
+ const ye = ae.selectionManager().isSelected(N), Ne = o.translations?.focusAnnouncement(Z?.textValue || "", ye) ?? "";
9680
9683
  Rr(Ne);
9681
9684
  }
9682
9685
  N && (oi = N);
9683
9686
  });
9684
9687
  let si = Uo(ae.collection()), ii = P.isOpen();
9685
9688
  V(() => {
9686
- const N = Uo(ae.collection()), J = P.isOpen(), ye = J !== ii && (ae.selectionManager().focusedKey() == null || Lr());
9687
- if (J && (ye || N !== si)) {
9689
+ const N = Uo(ae.collection()), Z = P.isOpen(), ye = Z !== ii && (ae.selectionManager().focusedKey() == null || Lr());
9690
+ if (Z && (ye || N !== si)) {
9688
9691
  const Ne = o.translations?.countAnnouncement(N) ?? "";
9689
9692
  Rr(Ne);
9690
9693
  }
9691
- si = N, ii = J;
9694
+ si = N, ii = Z;
9692
9695
  });
9693
9696
  let ai = "";
9694
9697
  V(() => {
9695
- const N = [...ae.selectionManager().selectedKeys()].pop() ?? "", J = ae.collection().getItem(N);
9696
- if (Lr() && L() && J && N !== ai) {
9697
- const ye = o.translations?.selectedAnnouncement(J?.textValue || "") ?? "";
9698
+ const N = [...ae.selectionManager().selectedKeys()].pop() ?? "", Z = ae.collection().getItem(N);
9699
+ if (Lr() && L() && Z && N !== ai) {
9700
+ const ye = o.translations?.selectedAnnouncement(Z?.textValue || "") ?? "";
9698
9701
  Rr(ye);
9699
9702
  }
9700
9703
  N && (ai = N);
@@ -9737,7 +9740,7 @@ function _b(t) {
9737
9740
  setTriggerRef: m,
9738
9741
  setContentRef: b,
9739
9742
  setListboxRef: y,
9740
- open: Z,
9743
+ open: q,
9741
9744
  close: ze,
9742
9745
  toggle: _t,
9743
9746
  placeholder: () => o.placeholder,
@@ -9779,8 +9782,8 @@ de(Bb, {
9779
9782
  Combobox: () => Ue,
9780
9783
  Content: () => rc,
9781
9784
  Control: () => ac,
9782
- Description: () => Se,
9783
- ErrorMessage: () => Ie,
9785
+ Description: () => Ce,
9786
+ ErrorMessage: () => Se,
9784
9787
  HiddenSelect: () => lc,
9785
9788
  Icon: () => cc,
9786
9789
  Input: () => oc,
@@ -9851,8 +9854,8 @@ var Ue = Object.assign(uc, {
9851
9854
  Arrow: Te,
9852
9855
  Content: rc,
9853
9856
  Control: ac,
9854
- Description: Se,
9855
- ErrorMessage: Ie,
9857
+ Description: Ce,
9858
+ ErrorMessage: Se,
9856
9859
  HiddenSelect: lc,
9857
9860
  Icon: cc,
9858
9861
  Input: oc,
@@ -9892,7 +9895,7 @@ const Ub = ne({
9892
9895
  item: Zb,
9893
9896
  itemIndicator: Jb,
9894
9897
  icon: Qb
9895
- } = Ub(), G0 = (t) => {
9898
+ } = Ub(), W0 = (t) => {
9896
9899
  const [e, n] = C(t, ["label", "placeholder", "class"]);
9897
9900
  return c(Ue, x({
9898
9901
  get class() {
@@ -9957,7 +9960,7 @@ const Ub = ne({
9957
9960
  })];
9958
9961
  }
9959
9962
  }));
9960
- }, X0 = (t) => c(Ue.Item, {
9963
+ }, j0 = (t) => c(Ue.Item, {
9961
9964
  get item() {
9962
9965
  return t.item;
9963
9966
  },
@@ -10555,7 +10558,7 @@ function xc(t) {
10555
10558
  }), X = pt({
10556
10559
  open: () => a.open,
10557
10560
  defaultOpen: () => a.defaultOpen,
10558
- onOpenChange: (Z) => a.onOpenChange?.(Z)
10561
+ onOpenChange: (q) => a.onOpenChange?.(q)
10559
10562
  }), {
10560
10563
  present: j
10561
10564
  } = $e({
@@ -10564,38 +10567,38 @@ function xc(t) {
10564
10567
  }), H = Qt({
10565
10568
  selectionMode: "none",
10566
10569
  dataSource: K
10567
- }), F = (Z) => {
10568
- I(Z), X.open();
10569
- }, oe = (Z = !1) => {
10570
- X.close(), Z && r && r.close(!0);
10571
- }, ge = (Z) => {
10572
- I(Z), X.toggle();
10573
- }, q = () => {
10574
- const Z = w();
10575
- Z && (me(Z), H.selectionManager().setFocused(!0), H.selectionManager().setFocusedKey(void 0));
10570
+ }), F = (q) => {
10571
+ I(q), X.open();
10572
+ }, oe = (q = !1) => {
10573
+ X.close(), q && r && r.close(!0);
10574
+ }, ge = (q) => {
10575
+ I(q), X.toggle();
10576
+ }, Y = () => {
10577
+ const q = w();
10578
+ q && (me(q), H.selectionManager().setFocused(!0), H.selectionManager().setFocusedKey(void 0));
10576
10579
  }, ce = () => {
10577
- s != null ? setTimeout(() => q()) : q();
10578
- }, ve = (Z) => {
10579
- $((_t) => [..._t, Z]);
10580
- const ze = r?.registerNestedMenu(Z);
10580
+ s != null ? setTimeout(() => Y()) : Y();
10581
+ }, ve = (q) => {
10582
+ $((_t) => [..._t, q]);
10583
+ const ze = r?.registerNestedMenu(q);
10581
10584
  return () => {
10582
- $((_t) => Eo(_t, Z)), ze?.();
10585
+ $((_t) => Eo(_t, q)), ze?.();
10583
10586
  };
10584
- }, Oe = (Z) => g === d?.side && rv(Z, d?.area), Ke = (Z) => {
10585
- Oe(Z) && Z.preventDefault();
10586
- }, ae = (Z) => {
10587
- Oe(Z) || ce();
10588
- }, Ge = (Z) => {
10589
- Oe(Z) && Z.preventDefault();
10587
+ }, Oe = (q) => g === d?.side && rv(q, d?.area), Ke = (q) => {
10588
+ Oe(q) && q.preventDefault();
10589
+ }, ae = (q) => {
10590
+ Oe(q) || ce();
10591
+ }, Ge = (q) => {
10592
+ Oe(q) && q.preventDefault();
10590
10593
  };
10591
10594
  pr({
10592
10595
  isDisabled: () => !(r == null && X.isOpen() && e.isModal()),
10593
10596
  targets: () => [w(), ...k()].filter(Boolean)
10594
10597
  }), V(() => {
10595
- const Z = w();
10596
- if (!Z || !r)
10598
+ const q = w();
10599
+ if (!q || !r)
10597
10600
  return;
10598
- const ze = r.registerNestedMenu(Z);
10601
+ const ze = r.registerNestedMenu(q);
10599
10602
  z(() => {
10600
10603
  ze();
10601
10604
  });
@@ -10634,9 +10637,9 @@ function xc(t) {
10634
10637
  onItemEnter: Ke,
10635
10638
  onItemLeave: ae,
10636
10639
  onTriggerLeave: Ge,
10637
- setPointerDir: (Z) => g = Z,
10638
- setPointerGraceTimeoutId: (Z) => u = Z,
10639
- setPointerGraceIntent: (Z) => d = Z,
10640
+ setPointerDir: (q) => g = q,
10641
+ setPointerGraceTimeoutId: (q) => u = q,
10642
+ setPointerGraceIntent: (q) => d = q,
10640
10643
  registerNestedMenu: ve,
10641
10644
  registerItemToParentDomCollection: n?.registerItem,
10642
10645
  registerTriggerId: ue(f),
@@ -11131,7 +11134,7 @@ const cv = ne({
11131
11134
  });
11132
11135
  }
11133
11136
  })
11134
- }), Y0 = (t) => {
11137
+ }), G0 = (t) => {
11135
11138
  const [e] = C(t, ["items", "children", "class"]);
11136
11139
  return c(tt, {
11137
11140
  get children() {
@@ -11161,26 +11164,24 @@ const cv = ne({
11161
11164
  }
11162
11165
  });
11163
11166
  };
11164
- var gv = /* @__PURE__ */ se('<div class="flex flex-col">'), fv = /* @__PURE__ */ se("<div class=mt-4>"), hv = /* @__PURE__ */ se("<div>"), pv = /* @__PURE__ */ se("<span class=sr-only>关闭");
11165
- const mv = ne({
11167
+ var gv = /* @__PURE__ */ se("<span class=sr-only>关闭"), fv = /* @__PURE__ */ se('<div class="flex justify-between items-center">'), hv = /* @__PURE__ */ se("<div class=mt-6>");
11168
+ const pv = ne({
11166
11169
  slots: {
11167
11170
  overlay: ["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm animate-in fade-in-0 duration-200", "data-[expanded]:animate-in data-[closed]:animate-out"],
11168
- content: [["fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-6 shadow-lg sm:rounded-lg", "animate-in fade-in-0 zoom-in-95 duration-200 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50", "data-[expanded]:animate-in data-[closed]:animate-out"]],
11171
+ content: [["fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-4 shadow-lg rounded-xl", "animate-in fade-in-0 zoom-in-95 duration-200 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50", "data-[expanded]:animate-in data-[closed]:animate-out"]],
11169
11172
  title: "text-lg font-semibold leading-none text-zinc-950 dark:text-zinc-50",
11170
11173
  description: "text-sm text-zinc-500 dark:text-zinc-400 mt-2",
11171
- closeButton: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 dark:text-zinc-400",
11172
- footer: "mt-6 flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2"
11174
+ closeButton: "rounded-sm opacity-70 transition-opacity hover:opacity-100 dark:text-zinc-400"
11173
11175
  }
11174
11176
  }, {
11175
11177
  twMerge: !0
11176
11178
  }), {
11177
- overlay: bv,
11178
- content: vv,
11179
- title: yv,
11180
- description: xv,
11181
- closeButton: wv,
11182
- footer: Cv
11183
- } = mv(), q0 = (t) => {
11179
+ overlay: mv,
11180
+ content: bv,
11181
+ title: vv,
11182
+ description: yv,
11183
+ closeButton: xv
11184
+ } = pv(), X0 = (t) => {
11184
11185
  const [e] = C(t, ["trigger", "title", "description", "footer", "children", "class"]);
11185
11186
  return c(xt, {
11186
11187
  get open() {
@@ -11206,11 +11207,11 @@ const mv = ne({
11206
11207
  get children() {
11207
11208
  return [c(xt.Overlay, {
11208
11209
  get class() {
11209
- return bv();
11210
+ return mv();
11210
11211
  }
11211
11212
  }), c(xt.Content, {
11212
11213
  get class() {
11213
- return vv({
11214
+ return bv({
11214
11215
  class: e.class
11215
11216
  });
11216
11217
  },
@@ -11219,50 +11220,42 @@ const mv = ne({
11219
11220
  },
11220
11221
  get children() {
11221
11222
  return [(() => {
11222
- var n = gv();
11223
- return Y(n, c(xt.Title, {
11223
+ var n = fv();
11224
+ return J(n, c(xt.Title, {
11224
11225
  get class() {
11225
- return yv();
11226
+ return vv();
11226
11227
  },
11227
11228
  get children() {
11228
11229
  return e.title;
11229
11230
  }
11230
- }), null), Y(n, c(U, {
11231
- get when() {
11232
- return e.description;
11231
+ }), null), J(n, c(xt.CloseButton, {
11232
+ get class() {
11233
+ return xv();
11233
11234
  },
11234
11235
  get children() {
11235
- return c(xt.Description, {
11236
- get class() {
11237
- return xv();
11238
- },
11239
- get children() {
11240
- return e.description;
11241
- }
11242
- });
11236
+ return [c(ds, {
11237
+ size: 18
11238
+ }), gv()];
11243
11239
  }
11244
11240
  }), null), n;
11245
- })(), (() => {
11246
- var n = fv();
11247
- return Y(n, () => e.children), n;
11248
11241
  })(), c(U, {
11249
11242
  get when() {
11250
- return e.footer;
11251
- },
11252
- get children() {
11253
- var n = hv();
11254
- return Y(n, () => e.footer), xe(() => Ce(n, Cv())), n;
11255
- }
11256
- }), c(xt.CloseButton, {
11257
- get class() {
11258
- return wv();
11243
+ return e.description;
11259
11244
  },
11260
11245
  get children() {
11261
- return [c(ds, {
11262
- size: 18
11263
- }), pv()];
11246
+ return c(xt.Description, {
11247
+ get class() {
11248
+ return yv();
11249
+ },
11250
+ get children() {
11251
+ return e.description;
11252
+ }
11253
+ });
11264
11254
  }
11265
- })];
11255
+ }), (() => {
11256
+ var n = hv();
11257
+ return J(n, () => e.children), n;
11258
+ })()];
11266
11259
  }
11267
11260
  })];
11268
11261
  }
@@ -11270,8 +11263,8 @@ const mv = ne({
11270
11263
  }
11271
11264
  });
11272
11265
  };
11273
- var Sv = {};
11274
- de(Sv, {
11266
+ var wv = {};
11267
+ de(wv, {
11275
11268
  Arrow: () => Te,
11276
11269
  CheckboxItem: () => on,
11277
11270
  Content: () => Mc,
@@ -11331,7 +11324,7 @@ var nt = Object.assign(Oc, {
11331
11324
  SubTrigger: bn,
11332
11325
  Trigger: Hr
11333
11326
  });
11334
- const Iv = ne({
11327
+ const Cv = ne({
11335
11328
  slots: {
11336
11329
  trigger: "inline-block cursor-pointer",
11337
11330
  content: ["z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md animate-in fade-in-0 zoom-in-95 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50", "data-[expanded]:animate-in data-[closed]:animate-out"],
@@ -11344,10 +11337,10 @@ const Iv = ne({
11344
11337
  }), {
11345
11338
  content: Vc,
11346
11339
  item: la,
11347
- separator: Pv,
11348
- subIcon: kv,
11349
- trigger: Dv
11350
- } = Iv(), Ec = (t) => c(De, {
11340
+ separator: Sv,
11341
+ subIcon: Iv,
11342
+ trigger: Pv
11343
+ } = Cv(), Ec = (t) => c(De, {
11351
11344
  get each() {
11352
11345
  return t.items;
11353
11346
  },
@@ -11358,7 +11351,7 @@ const Iv = ne({
11358
11351
  get fallback() {
11359
11352
  return c(nt.Separator, {
11360
11353
  get class() {
11361
- return Pv();
11354
+ return Sv();
11362
11355
  }
11363
11356
  });
11364
11357
  },
@@ -11391,7 +11384,7 @@ const Iv = ne({
11391
11384
  get children() {
11392
11385
  return [_(() => e.label), c(jr, {
11393
11386
  get class() {
11394
- return kv();
11387
+ return Iv();
11395
11388
  }
11396
11389
  })];
11397
11390
  }
@@ -11417,7 +11410,7 @@ const Iv = ne({
11417
11410
  });
11418
11411
  }
11419
11412
  })
11420
- }), Z0 = (t) => {
11413
+ }), Y0 = (t) => {
11421
11414
  const [e] = C(t, ["trigger", "items", "placement", "class"]);
11422
11415
  return c(nt, {
11423
11416
  get placement() {
@@ -11427,7 +11420,7 @@ const Iv = ne({
11427
11420
  return [c(nt.Trigger, {
11428
11421
  as: "div",
11429
11422
  get class() {
11430
- return Dv();
11423
+ return Pv();
11431
11424
  },
11432
11425
  get children() {
11433
11426
  return e.trigger;
@@ -11453,8 +11446,8 @@ const Iv = ne({
11453
11446
  }
11454
11447
  });
11455
11448
  };
11456
- var Tv = /* @__PURE__ */ se("<p>"), Mv = /* @__PURE__ */ se('<label><div class="text-sm font-medium text-slate-600 dark:text-slate-400">');
11457
- const Ov = ne({
11449
+ var kv = /* @__PURE__ */ se("<p>"), Dv = /* @__PURE__ */ se('<label><div class="text-sm font-medium text-slate-600 dark:text-slate-400">');
11450
+ const Tv = ne({
11458
11451
  slots: {
11459
11452
  root: "flex flex-col gap-1.5 w-full antialiased",
11460
11453
  label: "text-sm font-medium text-slate-700 dark:text-slate-300 ml-1",
@@ -11478,8 +11471,8 @@ const Ov = ne({
11478
11471
  }
11479
11472
  }, {
11480
11473
  twMerge: !0
11481
- }), J0 = (t) => {
11482
- const [e, n, r] = C(t, ["label", "description", "class", "accept", "multiple", "onChange"], ["validationState", "isDisabled"]), [o, s] = D([]), i = () => Ov({
11474
+ }), q0 = (t) => {
11475
+ const [e, n, r] = C(t, ["label", "description", "class", "accept", "multiple", "onChange"], ["validationState", "isDisabled"]), [o, s] = D([]), i = () => Tv({
11483
11476
  validationState: n.validationState,
11484
11477
  isDisabled: n.isDisabled
11485
11478
  }), a = (l) => {
@@ -11518,8 +11511,8 @@ const Ov = ne({
11518
11511
  });
11519
11512
  }
11520
11513
  }), (() => {
11521
- var l = Mv(), u = l.firstChild;
11522
- return Y(l, c(Ye.Input, {
11514
+ var l = Dv(), u = l.firstChild;
11515
+ return J(l, c(Ye.Input, {
11523
11516
  type: "file",
11524
11517
  class: "sr-only",
11525
11518
  get accept() {
@@ -11529,22 +11522,22 @@ const Ov = ne({
11529
11522
  return e.multiple;
11530
11523
  },
11531
11524
  onChange: a
11532
- }), u), Y(l, c(ff, {
11525
+ }), u), J(l, c(ff, {
11533
11526
  get class() {
11534
11527
  return i().icon();
11535
11528
  }
11536
- }), u), Y(u, (() => {
11529
+ }), u), J(u, (() => {
11537
11530
  var d = _(() => o().length > 0);
11538
11531
  return () => d() ? `已选择 ${o().length} 个文件` : "点击或拖拽上传文件";
11539
- })()), Y(l, c(U, {
11532
+ })()), J(l, c(U, {
11540
11533
  get when() {
11541
11534
  return e.description;
11542
11535
  },
11543
11536
  get children() {
11544
- var d = Tv();
11545
- return Y(d, () => e.description), xe(() => Ce(d, i().description())), d;
11537
+ var d = kv();
11538
+ return J(d, () => e.description), xe(() => Ie(d, i().description())), d;
11546
11539
  }
11547
- }), null), xe(() => Ce(l, i().dropzone())), l;
11540
+ }), null), xe(() => Ie(l, i().dropzone())), l;
11548
11541
  })(), c(Ye.ErrorMessage, {
11549
11542
  get class() {
11550
11543
  return i().errorMessage();
@@ -11553,8 +11546,8 @@ const Ov = ne({
11553
11546
  }
11554
11547
  }));
11555
11548
  };
11556
- var Vv = {};
11557
- de(Vv, {
11549
+ var Mv = {};
11550
+ de(Mv, {
11558
11551
  Arrow: () => Te,
11559
11552
  Content: () => Fc,
11560
11553
  HoverCard: () => Vn,
@@ -11614,7 +11607,7 @@ function Rc(t) {
11614
11607
  }
11615
11608
  });
11616
11609
  }
11617
- function Ev(t, e, n) {
11610
+ function Ov(t, e, n) {
11618
11611
  const r = t.split("-")[0], o = e.getBoundingClientRect(), s = n.getBoundingClientRect(), i = [], a = o.left + o.width / 2, l = o.top + o.height / 2;
11619
11612
  switch (r) {
11620
11613
  case "top":
@@ -11666,7 +11659,7 @@ function $c(t) {
11666
11659
  }, I = (K) => be(a(), K) || be(u(), K), L = (K) => {
11667
11660
  const G = a(), P = u();
11668
11661
  if (!(!G || !P))
11669
- return Ev(K, G, P);
11662
+ return Ov(K, G, P);
11670
11663
  }, M = (K) => {
11671
11664
  const G = K.target;
11672
11665
  if (I(G)) {
@@ -11745,7 +11738,7 @@ var Vn = Object.assign($c, {
11745
11738
  Portal: Rc,
11746
11739
  Trigger: Ac
11747
11740
  });
11748
- const Lv = ne({
11741
+ const Vv = ne({
11749
11742
  slots: {
11750
11743
  content: ["z-50 w-64 rounded-xl border bg-white p-4 shadow-lg outline-none", "dark:bg-slate-900 dark:border-slate-800 antialiased", "data-[expanded]:animate-in data-[closed]:animate-out"],
11751
11744
  arrow: "fill-white stroke-slate-200 dark:fill-slate-900 dark:stroke-slate-800"
@@ -11768,8 +11761,8 @@ const Lv = ne({
11768
11761
  }
11769
11762
  }, {
11770
11763
  twMerge: !0
11771
- }), Q0 = (t) => {
11772
- const [e, n, r] = C(t, ["trigger", "children", "showArrow"], ["size"]), o = Lv({
11764
+ }), Z0 = (t) => {
11765
+ const [e, n, r] = C(t, ["trigger", "children", "showArrow"], ["size"]), o = Vv({
11773
11766
  size: n.size
11774
11767
  });
11775
11768
  return c(Vn, x({
@@ -11800,8 +11793,8 @@ const Lv = ne({
11800
11793
  }
11801
11794
  }));
11802
11795
  };
11803
- var Fv = {};
11804
- de(Fv, {
11796
+ var Ev = {};
11797
+ de(Ev, {
11805
11798
  Fallback: () => zc,
11806
11799
  Image: () => zr,
11807
11800
  Img: () => Nc,
@@ -11883,7 +11876,7 @@ var zr = Object.assign(_c, {
11883
11876
  Fallback: zc,
11884
11877
  Img: Nc
11885
11878
  });
11886
- const Rv = ne({
11879
+ const Lv = ne({
11887
11880
  slots: {
11888
11881
  root: "relative flex items-center h-full w-full shrink-0 overflow-hidden",
11889
11882
  img: "h-full w-full aspect-square object-cover",
@@ -11913,8 +11906,8 @@ const Rv = ne({
11913
11906
  }
11914
11907
  }, {
11915
11908
  twMerge: !0
11916
- }), ex = (t) => {
11917
- const [e, n, r] = C(t, ["src", "alt", "fallback", "class"], ["radius"]), o = Rv({
11909
+ }), J0 = (t) => {
11910
+ const [e, n, r] = C(t, ["src", "alt", "fallback", "class"], ["radius"]), o = Lv({
11918
11911
  radius: n.radius
11919
11912
  });
11920
11913
  return c(zr, x({
@@ -11945,7 +11938,7 @@ const Rv = ne({
11945
11938
  })];
11946
11939
  }
11947
11940
  }));
11948
- }, $v = ne({
11941
+ }, Fv = ne({
11949
11942
  base: "inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-sm disabled:pointer-events-none disabled:opacity-50",
11950
11943
  variants: {
11951
11944
  variant: {
@@ -11966,8 +11959,8 @@ const Rv = ne({
11966
11959
  }
11967
11960
  }, {
11968
11961
  twMerge: !0
11969
- }), tx = (t) => {
11970
- const [e, n, r] = C(t, ["class", "external", "children", "href"], ["variant", "underline"]), o = () => $v({
11962
+ }), Q0 = (t) => {
11963
+ const [e, n, r] = C(t, ["class", "external", "children", "href"], ["variant", "underline"]), o = () => Fv({
11971
11964
  variant: n.variant,
11972
11965
  underline: n.underline,
11973
11966
  class: e.class
@@ -12126,8 +12119,8 @@ function js(t) {
12126
12119
  }
12127
12120
  return Hr(t);
12128
12121
  }
12129
- var Av = {};
12130
- de(Av, {
12122
+ var Rv = {};
12123
+ de(Rv, {
12131
12124
  Arrow: () => Te,
12132
12125
  CheckboxItem: () => on,
12133
12126
  Content: () => xr,
@@ -12171,8 +12164,8 @@ var Et = Object.assign(Ws, {
12171
12164
  SubContent: mn,
12172
12165
  SubTrigger: bn,
12173
12166
  Trigger: js
12174
- }), Kv = /* @__PURE__ */ se("<span>");
12175
- const zv = ne({
12167
+ }), $v = /* @__PURE__ */ se("<span>");
12168
+ const Av = ne({
12176
12169
  slots: {
12177
12170
  root: "flex h-10 items-center space-x-1 rounded-md border bg-white p-1 shadow-sm dark:bg-slate-950 dark:border-slate-800",
12178
12171
  trigger: "flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-slate-100 data-[state=open]:bg-slate-100 dark:focus:bg-slate-800 dark:data-[state=open]:bg-slate-800",
@@ -12183,7 +12176,7 @@ const zv = ne({
12183
12176
  }
12184
12177
  }, {
12185
12178
  twMerge: !0
12186
- }), Sn = zv(), nx = Object.assign((t) => {
12179
+ }), Sn = Av(), ex = Object.assign((t) => {
12187
12180
  const [e, n] = C(t, ["class"]);
12188
12181
  return c(Et, x({
12189
12182
  get class() {
@@ -12241,7 +12234,7 @@ const zv = ne({
12241
12234
  Shortcut: (t) => {
12242
12235
  const [e, n] = C(t, ["class"]);
12243
12236
  return (() => {
12244
- var r = Kv();
12237
+ var r = $v();
12245
12238
  return Yt(r, x({
12246
12239
  get class() {
12247
12240
  return Sn.shortcut({
@@ -12259,7 +12252,7 @@ function fo() {
12259
12252
  throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");
12260
12253
  return t;
12261
12254
  }
12262
- function Nv(t) {
12255
+ function Kv(t) {
12263
12256
  const e = fo(), [n, r] = C(t, ["style"]);
12264
12257
  return c(R, x({
12265
12258
  as: "div",
@@ -12270,7 +12263,7 @@ function Nv(t) {
12270
12263
  }
12271
12264
  }, () => e.dataset(), r));
12272
12265
  }
12273
- function _v(t) {
12266
+ function zv(t) {
12274
12267
  const e = fo(), n = E({
12275
12268
  id: e.generateId("label")
12276
12269
  }, t), [r, o] = C(n, ["id"]);
@@ -12281,7 +12274,7 @@ function _v(t) {
12281
12274
  }
12282
12275
  }, () => e.dataset(), o));
12283
12276
  }
12284
- function Bv(t) {
12277
+ function Nv(t) {
12285
12278
  const e = `meter-${Q()}`, n = E({
12286
12279
  id: e,
12287
12280
  value: 0,
@@ -12335,13 +12328,13 @@ function Bv(t) {
12335
12328
  }
12336
12329
  });
12337
12330
  }
12338
- function Uv(t) {
12331
+ function _v(t) {
12339
12332
  const e = fo();
12340
12333
  return c(R, x({
12341
12334
  as: "div"
12342
12335
  }, () => e.dataset(), t));
12343
12336
  }
12344
- function Hv(t) {
12337
+ function Bv(t) {
12345
12338
  const e = fo();
12346
12339
  return c(R, x({
12347
12340
  as: "div"
@@ -12351,11 +12344,11 @@ function Hv(t) {
12351
12344
  }
12352
12345
  }));
12353
12346
  }
12354
- var dt = Object.assign(Bv, {
12355
- Fill: Nv,
12356
- Label: _v,
12357
- Track: Uv,
12358
- ValueLabel: Hv
12347
+ var dt = Object.assign(Nv, {
12348
+ Fill: Kv,
12349
+ Label: zv,
12350
+ Track: _v,
12351
+ ValueLabel: Bv
12359
12352
  });
12360
12353
  const Vr = ne({
12361
12354
  slots: {
@@ -12385,7 +12378,7 @@ const Vr = ne({
12385
12378
  }
12386
12379
  }, {
12387
12380
  twMerge: !0
12388
- }), rx = Object.assign((t) => {
12381
+ }), tx = Object.assign((t) => {
12389
12382
  const [e, n, r] = C(t, ["class"], ["color"]), o = () => Vr({
12390
12383
  color: n.color
12391
12384
  });
@@ -12440,8 +12433,8 @@ const Vr = ne({
12440
12433
  }, n));
12441
12434
  }
12442
12435
  });
12443
- var Uc = /* @__PURE__ */ se("<li role=presentation>"), Wv = /* @__PURE__ */ se("<nav>");
12444
- function jv(t) {
12436
+ var Uc = /* @__PURE__ */ se("<li role=presentation>"), Uv = /* @__PURE__ */ se("<nav>");
12437
+ function Hv(t) {
12445
12438
  let e;
12446
12439
  const n = rn(), r = E({
12447
12440
  size: 15
@@ -12467,7 +12460,7 @@ function jv(t) {
12467
12460
  }
12468
12461
  }, s));
12469
12462
  }
12470
- function Gv(t) {
12463
+ function Wv(t) {
12471
12464
  const e = yr(), n = rn(), r = je(), [o, s] = D(), [i, a] = C(t, ["onPointerEnter", "onPointerLeave"]), l = (d) => {
12472
12465
  O(d, i.onPointerEnter), e.cancelLeaveTimer();
12473
12466
  }, u = (d) => {
@@ -12503,15 +12496,15 @@ function Gv(t) {
12503
12496
  }
12504
12497
  }, a));
12505
12498
  }
12506
- function Xv(t) {
12499
+ function jv(t) {
12507
12500
  return (() => {
12508
12501
  var e = Uc();
12509
- return Y(e, c(ln, x({
12502
+ return J(e, c(ln, x({
12510
12503
  as: "a"
12511
12504
  }, t))), e;
12512
12505
  })();
12513
12506
  }
12514
- function Yv(t) {
12507
+ function Gv(t) {
12515
12508
  const e = rn(), n = yr(), [r, o] = C(t, ["value"]), s = Q(), i = e.generateId(`navigation-menu-menu-${s}`), a = E({
12516
12509
  id: i
12517
12510
  }, o), l = () => r.value ?? s, [u, d] = D(!1), g = () => {
@@ -12537,7 +12530,7 @@ function Yv(t) {
12537
12530
  }
12538
12531
  }, a));
12539
12532
  }
12540
- function qv(t) {
12533
+ function Xv(t) {
12541
12534
  const e = yr(), n = ut(), [r, o] = C(t, ["ref"]);
12542
12535
  return c(U, {
12543
12536
  get when() {
@@ -12558,7 +12551,7 @@ function qv(t) {
12558
12551
  }
12559
12552
  });
12560
12553
  }
12561
- function Zv(t) {
12554
+ function Yv(t) {
12562
12555
  const e = E({
12563
12556
  delayDuration: 200,
12564
12557
  skipDelayDuration: 300
@@ -12628,8 +12621,8 @@ function Zv(t) {
12628
12621
  onCurrentPlacementChange: p
12629
12622
  }, r, {
12630
12623
  get children() {
12631
- var $ = Wv();
12632
- return Y($, c(Ws, x({
12624
+ var $ = Uv();
12625
+ return J($, c(Ws, x({
12633
12626
  as: "ul",
12634
12627
  ref(K) {
12635
12628
  var G = B(k.setRootRef, n.ref);
@@ -12649,7 +12642,7 @@ function Zv(t) {
12649
12642
  }
12650
12643
  });
12651
12644
  }
12652
- function Jv(t) {
12645
+ function qv(t) {
12653
12646
  const e = yr(), n = co(), [r, o] = C(t, ["onPointerEnter", "onPointerLeave", "onClick"]);
12654
12647
  let s;
12655
12648
  const i = (u) => {
@@ -12665,14 +12658,14 @@ function Jv(t) {
12665
12658
  };
12666
12659
  return (() => {
12667
12660
  var u = Uc();
12668
- return Y(u, c(js, x({
12661
+ return J(u, c(js, x({
12669
12662
  onClick: i,
12670
12663
  onPointerEnter: a,
12671
12664
  onPointerLeave: l
12672
12665
  }, o))), u;
12673
12666
  })();
12674
12667
  }
12675
- function Qv(t) {
12668
+ function Zv(t) {
12676
12669
  const e = yr(), n = rn(), [r, o] = D(), [s, i] = C(t, ["ref", "style", "onEscapeKeyDown"]), a = () => {
12677
12670
  n.setAutoFocusMenu(!1), n.closeMenu();
12678
12671
  }, l = (h) => {
@@ -12727,29 +12720,29 @@ function Qv(t) {
12727
12720
  }
12728
12721
  });
12729
12722
  }
12730
- var Tt = Object.assign(Zv, {
12731
- Arrow: jv,
12723
+ var Tt = Object.assign(Yv, {
12724
+ Arrow: Hv,
12732
12725
  CheckboxItem: on,
12733
- Content: Gv,
12726
+ Content: Wv,
12734
12727
  Group: zt,
12735
12728
  GroupLabel: sn,
12736
12729
  Icon: an,
12737
- Item: Xv,
12730
+ Item: jv,
12738
12731
  ItemDescription: cn,
12739
12732
  ItemIndicator: un,
12740
12733
  ItemLabel: dn,
12741
- Portal: qv,
12734
+ Portal: Xv,
12742
12735
  RadioGroup: fn,
12743
12736
  RadioItem: hn,
12744
- Menu: Yv,
12737
+ Menu: Gv,
12745
12738
  Separator: Pt,
12746
12739
  Sub: pn,
12747
12740
  SubContent: mn,
12748
12741
  SubTrigger: bn,
12749
- Trigger: Jv,
12750
- Viewport: Qv
12751
- }), ey = /* @__PURE__ */ se('<svg class="ml-1 h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-180"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M19 9l-7 7-7-7">');
12752
- const ty = ne({
12742
+ Trigger: qv,
12743
+ Viewport: Zv
12744
+ }), Jv = /* @__PURE__ */ se('<svg class="ml-1 h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-180"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M19 9l-7 7-7-7">');
12745
+ const Qv = ne({
12753
12746
  slots: {
12754
12747
  root: "relative z-10 flex w-full justify-center antialiased",
12755
12748
  trigger: ["group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all", "hover:bg-slate-100 hover:text-slate-900 data-[state=open]:bg-slate-100/50", "dark:hover:bg-slate-800 dark:hover:text-slate-50"],
@@ -12759,15 +12752,15 @@ const ty = ne({
12759
12752
  }, {
12760
12753
  twMerge: !0
12761
12754
  }), {
12762
- root: ny,
12755
+ root: ey,
12763
12756
  trigger: ca,
12764
- content: ry,
12765
- viewport: oy
12766
- } = ty(), ox = (t) => {
12757
+ content: ty,
12758
+ viewport: ny
12759
+ } = Qv(), nx = (t) => {
12767
12760
  const [e, n] = C(t, ["items", "class"]);
12768
12761
  return c(Tt, x({
12769
12762
  get class() {
12770
- return ny({
12763
+ return ey({
12771
12764
  class: e.class
12772
12765
  });
12773
12766
  }
@@ -12803,13 +12796,13 @@ const ty = ne({
12803
12796
  return ca();
12804
12797
  },
12805
12798
  get children() {
12806
- return [_(() => r.title), ey()];
12799
+ return [_(() => r.title), Jv()];
12807
12800
  }
12808
12801
  }), c(Tt.Portal, {
12809
12802
  get children() {
12810
12803
  return c(Tt.Content, {
12811
12804
  get class() {
12812
- return ry();
12805
+ return ty();
12813
12806
  },
12814
12807
  get children() {
12815
12808
  return r.content;
@@ -12823,7 +12816,7 @@ const ty = ne({
12823
12816
  })
12824
12817
  }), c(Tt.Viewport, {
12825
12818
  get class() {
12826
- return oy();
12819
+ return ny();
12827
12820
  },
12828
12821
  get children() {
12829
12822
  return c(Tt.Arrow, {});
@@ -12832,8 +12825,8 @@ const ty = ne({
12832
12825
  }
12833
12826
  }));
12834
12827
  };
12835
- var sy = /* @__PURE__ */ se("<div><div>");
12836
- const iy = ne({
12828
+ var ry = /* @__PURE__ */ se("<div><div>");
12829
+ const oy = ne({
12837
12830
  slots: {
12838
12831
  root: "flex flex-col gap-1.5 w-full antialiased",
12839
12832
  label: "text-sm font-medium text-slate-700 dark:text-slate-300 ml-1",
@@ -12845,8 +12838,8 @@ const iy = ne({
12845
12838
  }
12846
12839
  }, {
12847
12840
  twMerge: !0
12848
- }), sx = (t) => {
12849
- const [e, n] = C(t, ["label", "description", "class"]), r = iy();
12841
+ }), rx = (t) => {
12842
+ const [e, n] = C(t, ["label", "description", "class"]), r = oy();
12850
12843
  return c(Ot, x({
12851
12844
  get class() {
12852
12845
  return r.root({
@@ -12870,12 +12863,12 @@ const iy = ne({
12870
12863
  });
12871
12864
  }
12872
12865
  }), (() => {
12873
- var o = sy(), s = o.firstChild;
12874
- return Y(o, c(Ot.Input, {
12866
+ var o = ry(), s = o.firstChild;
12867
+ return J(o, c(Ot.Input, {
12875
12868
  get class() {
12876
12869
  return r.input();
12877
12870
  }
12878
- }), s), Y(s, c(Ot.IncrementTrigger, {
12871
+ }), s), J(s, c(Ot.IncrementTrigger, {
12879
12872
  get class() {
12880
12873
  return r.stepper();
12881
12874
  },
@@ -12884,7 +12877,7 @@ const iy = ne({
12884
12877
  size: 14
12885
12878
  });
12886
12879
  }
12887
- }), null), Y(s, c(Ot.DecrementTrigger, {
12880
+ }), null), J(s, c(Ot.DecrementTrigger, {
12888
12881
  get class() {
12889
12882
  return r.stepper({
12890
12883
  class: "border-t border-slate-200 dark:border-slate-800"
@@ -12897,7 +12890,7 @@ const iy = ne({
12897
12890
  }
12898
12891
  }), null), xe((i) => {
12899
12892
  var a = r.container(), l = r.controls();
12900
- return a !== i.e && Ce(o, i.e = a), l !== i.t && Ce(s, i.t = l), i;
12893
+ return a !== i.e && Ie(o, i.e = a), l !== i.t && Ie(s, i.t = l), i;
12901
12894
  }, {
12902
12895
  e: void 0,
12903
12896
  t: void 0
@@ -12919,8 +12912,8 @@ const iy = ne({
12919
12912
  }
12920
12913
  }));
12921
12914
  };
12922
- var ho = /* @__PURE__ */ se("<li>"), ay = /* @__PURE__ */ se("<ul>"), ly = {};
12923
- de(ly, {
12915
+ var ho = /* @__PURE__ */ se("<li>"), sy = /* @__PURE__ */ se("<ul>"), iy = {};
12916
+ de(iy, {
12924
12917
  Ellipsis: () => Hc,
12925
12918
  Item: () => jc,
12926
12919
  Items: () => Gc,
@@ -12933,7 +12926,7 @@ de(ly, {
12933
12926
  function Hc(t) {
12934
12927
  return (() => {
12935
12928
  var e = ho();
12936
- return Y(e, c(R, x({
12929
+ return J(e, c(R, x({
12937
12930
  as: "div"
12938
12931
  }, t))), e;
12939
12932
  })();
@@ -12951,7 +12944,7 @@ function jc(t) {
12951
12944
  };
12952
12945
  return (() => {
12953
12946
  var i = ho();
12954
- return Y(i, c(Le, x({
12947
+ return J(i, c(Le, x({
12955
12948
  get "aria-current"() {
12956
12949
  return o() ? "page" : void 0;
12957
12950
  },
@@ -13054,7 +13047,7 @@ function Xc(t) {
13054
13047
  }, s = () => e.page() === e.count();
13055
13048
  return (() => {
13056
13049
  var i = ho();
13057
- return Y(i, c(Le, x({
13050
+ return J(i, c(Le, x({
13058
13051
  get tabIndex() {
13059
13052
  return s() || e.page() === e.count() ? -1 : void 0;
13060
13053
  },
@@ -13079,7 +13072,7 @@ function Yc(t) {
13079
13072
  }, s = () => e.page() === 1;
13080
13073
  return (() => {
13081
13074
  var i = ho();
13082
- return Y(i, c(Le, x({
13075
+ return J(i, c(Le, x({
13083
13076
  get tabIndex() {
13084
13077
  return s() || e.page() === 1 ? -1 : void 0;
13085
13078
  },
@@ -13129,8 +13122,8 @@ function qc(t) {
13129
13122
  }
13130
13123
  }, o, {
13131
13124
  get children() {
13132
- var a = ay();
13133
- return Y(a, () => r.children), a;
13125
+ var a = sy();
13126
+ return J(a, () => r.children), a;
13134
13127
  }
13135
13128
  }));
13136
13129
  }
@@ -13142,8 +13135,8 @@ var Ut = Object.assign(qc, {
13142
13135
  Items: Gc,
13143
13136
  Next: Xc,
13144
13137
  Previous: Yc
13145
- }), cy = /* @__PURE__ */ se("<div>");
13146
- const uy = ne({
13138
+ }), ay = /* @__PURE__ */ se("<div>");
13139
+ const ly = ne({
13147
13140
  slots: {
13148
13141
  root: "flex w-full justify-center antialiased",
13149
13142
  itemsContainer: "flex items-center gap-1",
@@ -13153,7 +13146,7 @@ const uy = ne({
13153
13146
  }
13154
13147
  }, {
13155
13148
  twMerge: !0
13156
- }), In = uy(), ix = (t) => {
13149
+ }), In = ly(), ox = (t) => {
13157
13150
  const [e, n] = C(t, ["class", "count"]);
13158
13151
  return c(Ut, x({
13159
13152
  get class() {
@@ -13187,8 +13180,8 @@ const uy = ne({
13187
13180
  }
13188
13181
  }),
13189
13182
  get children() {
13190
- var r = cy();
13191
- return Y(r, c(Ut.Previous, {
13183
+ var r = ay();
13184
+ return J(r, c(Ut.Previous, {
13192
13185
  get class() {
13193
13186
  return In.trigger();
13194
13187
  },
@@ -13197,7 +13190,7 @@ const uy = ne({
13197
13190
  size: 16
13198
13191
  });
13199
13192
  }
13200
- }), null), Y(r, c(Ut.Items, {}), null), Y(r, c(Ut.Next, {
13193
+ }), null), J(r, c(Ut.Items, {}), null), J(r, c(Ut.Next, {
13201
13194
  get class() {
13202
13195
  return In.trigger();
13203
13196
  },
@@ -13206,12 +13199,12 @@ const uy = ne({
13206
13199
  size: 16
13207
13200
  });
13208
13201
  }
13209
- }), null), xe(() => Ce(r, In.itemsContainer())), r;
13202
+ }), null), xe(() => Ie(r, In.itemsContainer())), r;
13210
13203
  }
13211
13204
  }));
13212
13205
  };
13213
- var dy = {};
13214
- de(dy, {
13206
+ var cy = {};
13207
+ de(cy, {
13215
13208
  Anchor: () => Jc,
13216
13209
  Arrow: () => Te,
13217
13210
  CloseButton: () => Qc,
@@ -13439,8 +13432,8 @@ var wt = Object.assign(ru, {
13439
13432
  Portal: nu,
13440
13433
  Title: ou,
13441
13434
  Trigger: su
13442
- }), gy = /* @__PURE__ */ se("<div class=flex>");
13443
- const fy = ne({
13435
+ }), uy = /* @__PURE__ */ se("<div class=flex>");
13436
+ const dy = ne({
13444
13437
  slots: {
13445
13438
  content: ["z-50 w-72 rounded-md border bg-white p-4 shadow-md outline-none antialiased", "dark:bg-slate-950 dark:border-slate-800 dark:text-slate-50", "data-[expanded]:animate-in data-[closed]:animate-out"],
13446
13439
  arrow: "fill-white stroke-slate-200 dark:fill-slate-950 dark:stroke-slate-800"
@@ -13448,9 +13441,9 @@ const fy = ne({
13448
13441
  }, {
13449
13442
  twMerge: !0
13450
13443
  }), {
13451
- content: hy,
13452
- arrow: py
13453
- } = fy(), ax = (t) => {
13444
+ content: gy,
13445
+ arrow: fy
13446
+ } = dy(), sx = (t) => {
13454
13447
  const [e, n] = C(t, ["trigger", "children", "title"]);
13455
13448
  return c(wt, x(n, {
13456
13449
  get children() {
@@ -13463,20 +13456,20 @@ const fy = ne({
13463
13456
  get children() {
13464
13457
  return c(wt.Content, {
13465
13458
  get class() {
13466
- return hy();
13459
+ return gy();
13467
13460
  },
13468
13461
  get children() {
13469
13462
  return [c(wt.Arrow, {
13470
13463
  get class() {
13471
- return py();
13464
+ return fy();
13472
13465
  }
13473
13466
  }), (() => {
13474
- var r = gy();
13475
- return Y(r, c(wt.Title, {
13467
+ var r = uy();
13468
+ return J(r, c(wt.Title, {
13476
13469
  get children() {
13477
13470
  return e.title;
13478
13471
  }
13479
- }), null), Y(r, c(wt.CloseButton, {
13472
+ }), null), J(r, c(wt.CloseButton, {
13480
13473
  get children() {
13481
13474
  return c(mf, {});
13482
13475
  }
@@ -13493,8 +13486,8 @@ const fy = ne({
13493
13486
  }
13494
13487
  }));
13495
13488
  };
13496
- var my = {};
13497
- de(my, {
13489
+ var hy = {};
13490
+ de(hy, {
13498
13491
  Fill: () => au,
13499
13492
  Label: () => lu,
13500
13493
  Progress: () => En,
@@ -13586,8 +13579,8 @@ var En = Object.assign(cu, {
13586
13579
  Label: lu,
13587
13580
  Track: uu,
13588
13581
  ValueLabel: du
13589
- }), by = /* @__PURE__ */ se("<div>");
13590
- const vy = ne({
13582
+ }), py = /* @__PURE__ */ se("<div>");
13583
+ const my = ne({
13591
13584
  slots: {
13592
13585
  root: "flex flex-col gap-2 w-full antialiased",
13593
13586
  labelContainer: "flex justify-between items-center text-sm font-medium text-slate-700 dark:text-slate-300",
@@ -13635,13 +13628,13 @@ const vy = ne({
13635
13628
  }
13636
13629
  }, {
13637
13630
  twMerge: !0
13638
- }), lx = (t) => {
13631
+ }), ix = (t) => {
13639
13632
  const [e, n, r] = C(t, ["label", "showValue", "class"], ["size", "radius"]), {
13640
13633
  root: o,
13641
13634
  labelContainer: s,
13642
13635
  track: i,
13643
13636
  fill: a
13644
- } = vy({
13637
+ } = my({
13645
13638
  size: n.size,
13646
13639
  radius: n.radius
13647
13640
  });
@@ -13658,8 +13651,8 @@ const vy = ne({
13658
13651
  return e.label || e.showValue;
13659
13652
  },
13660
13653
  get children() {
13661
- var l = by();
13662
- return Y(l, c(U, {
13654
+ var l = py();
13655
+ return J(l, c(U, {
13663
13656
  get when() {
13664
13657
  return e.label;
13665
13658
  },
@@ -13670,7 +13663,7 @@ const vy = ne({
13670
13663
  }
13671
13664
  });
13672
13665
  }
13673
- }), null), Y(l, c(U, {
13666
+ }), null), J(l, c(U, {
13674
13667
  get when() {
13675
13668
  return e.showValue;
13676
13669
  },
@@ -13679,7 +13672,7 @@ const vy = ne({
13679
13672
  class: "text-xs text-slate-500"
13680
13673
  });
13681
13674
  }
13682
- }), null), xe(() => Ce(l, s())), l;
13675
+ }), null), xe(() => Ie(l, s())), l;
13683
13676
  }
13684
13677
  }), c(En.Track, {
13685
13678
  get class() {
@@ -13699,10 +13692,10 @@ const vy = ne({
13699
13692
  }
13700
13693
  }));
13701
13694
  };
13702
- var yy = {};
13703
- de(yy, {
13704
- Description: () => Se,
13705
- ErrorMessage: () => Ie,
13695
+ var by = {};
13696
+ de(by, {
13697
+ Description: () => Ce,
13698
+ ErrorMessage: () => Se,
13706
13699
  Item: () => hu,
13707
13700
  ItemControl: () => Gs,
13708
13701
  ItemDescription: () => Xs,
@@ -13971,8 +13964,8 @@ function mu(t) {
13971
13964
  });
13972
13965
  }
13973
13966
  var Je = Object.assign(mu, {
13974
- Description: Se,
13975
- ErrorMessage: Ie,
13967
+ Description: Ce,
13968
+ ErrorMessage: Se,
13976
13969
  Item: hu,
13977
13970
  ItemControl: Gs,
13978
13971
  ItemDescription: Xs,
@@ -13981,7 +13974,7 @@ var Je = Object.assign(mu, {
13981
13974
  ItemLabel: qs,
13982
13975
  Label: Zs
13983
13976
  });
13984
- const xy = ne({
13977
+ const vy = ne({
13985
13978
  slots: {
13986
13979
  root: "flex flex-col gap-3 antialiased",
13987
13980
  label: "text-sm font-semibold text-slate-900 dark:text-slate-100 mb-1",
@@ -14005,8 +13998,8 @@ const xy = ne({
14005
13998
  }
14006
13999
  }, {
14007
14000
  twMerge: !0
14008
- }), cx = (t) => {
14009
- const [e, n, r] = C(t, ["label", "options", "class"], ["orientation"]), o = () => xy({
14001
+ }), ax = (t) => {
14002
+ const [e, n, r] = C(t, ["label", "options", "class"], ["orientation"]), o = () => vy({
14010
14003
  orientation: n.orientation
14011
14004
  });
14012
14005
  return c(Je, x({
@@ -14071,8 +14064,8 @@ const xy = ne({
14071
14064
  }
14072
14065
  }));
14073
14066
  };
14074
- var wy = /* @__PURE__ */ se("<button>"), Cy = /* @__PURE__ */ se("<div>");
14075
- const Sy = ne({
14067
+ var yy = /* @__PURE__ */ se("<button>"), xy = /* @__PURE__ */ se("<div>");
14068
+ const wy = ne({
14076
14069
  slots: {
14077
14070
  root: "relative flex flex-col gap-1.5 w-full",
14078
14071
  inputWrapper: "relative flex items-center transition-all",
@@ -14113,8 +14106,8 @@ const Sy = ne({
14113
14106
  }
14114
14107
  }, {
14115
14108
  twMerge: !0
14116
- }), ux = (t) => {
14117
- const [e, n, r] = C(t, ["class", "placeholder", "allowClear", "onClear", "value", "onChange"], ["size", "ringColor"]), o = Sy(n);
14109
+ }), lx = (t) => {
14110
+ const [e, n, r] = C(t, ["class", "placeholder", "allowClear", "onClear", "value", "onChange"], ["size", "ringColor"]), o = wy(n);
14118
14111
  return c(Ye, x({
14119
14112
  get class() {
14120
14113
  return o.root({
@@ -14129,35 +14122,35 @@ const Sy = ne({
14129
14122
  }
14130
14123
  }, r, {
14131
14124
  get children() {
14132
- var s = Cy();
14133
- return Y(s, c(Df, {
14125
+ var s = xy();
14126
+ return J(s, c(Df, {
14134
14127
  get class() {
14135
14128
  return o.icon();
14136
14129
  }
14137
- }), null), Y(s, c(Ye.Input, {
14130
+ }), null), J(s, c(Ye.Input, {
14138
14131
  get class() {
14139
14132
  return o.input();
14140
14133
  },
14141
14134
  get placeholder() {
14142
14135
  return e.placeholder ?? "搜索...";
14143
14136
  }
14144
- }), null), Y(s, c(U, {
14137
+ }), null), J(s, c(U, {
14145
14138
  get when() {
14146
14139
  return _(() => !!e.allowClear)() && e.value;
14147
14140
  },
14148
14141
  get children() {
14149
- var i = wy();
14150
- return i.$$click = () => e.onClear?.(), Y(i, c(Za, {
14142
+ var i = yy();
14143
+ return i.$$click = () => e.onClear?.(), J(i, c(Za, {
14151
14144
  fill: "currentColor",
14152
14145
  class: "text-white dark:text-slate-950"
14153
- })), xe(() => Ce(i, o.clear())), i;
14146
+ })), xe(() => Ie(i, o.clear())), i;
14154
14147
  }
14155
- }), null), xe(() => Ce(s, o.inputWrapper())), s;
14148
+ }), null), xe(() => Ie(s, o.inputWrapper())), s;
14156
14149
  }
14157
14150
  }));
14158
14151
  };
14159
14152
  yd(["click"]);
14160
- function Iy(t, e) {
14153
+ function Cy(t, e) {
14161
14154
  if (pe)
14162
14155
  return { observe: gi, unobserve: gi };
14163
14156
  const n = new ResizeObserver(t);
@@ -14169,7 +14162,7 @@ function Iy(t, e) {
14169
14162
  function bu(t, e, n) {
14170
14163
  if (pe)
14171
14164
  return;
14172
- const r = /* @__PURE__ */ new WeakMap(), { observe: o, unobserve: s } = Iy((i) => {
14165
+ const r = /* @__PURE__ */ new WeakMap(), { observe: o, unobserve: s } = Cy((i) => {
14173
14166
  for (const a of i) {
14174
14167
  const { contentRect: l, target: u } = a, d = Math.round(l.width), g = Math.round(l.height), h = r.get(u);
14175
14168
  (!h || h.width !== d || h.height !== g) && (e(l, u, a), r.set(u, { width: d, height: g }));
@@ -14187,7 +14180,7 @@ function yu() {
14187
14180
  throw new Error("[kobalte]: `useSegmentedControlContext` must be used within a `SegmentedControl` component");
14188
14181
  return t;
14189
14182
  }
14190
- function Py(t) {
14183
+ function Sy(t) {
14191
14184
  const e = yu(), [n, r] = C(t, ["style"]), [o, s] = D(), [i, a] = D(!1), l = () => {
14192
14185
  const d = e.selectedItem();
14193
14186
  if (!d) {
@@ -14224,7 +14217,7 @@ function Py(t) {
14224
14217
  }
14225
14218
  }, r));
14226
14219
  }
14227
- var ky = (t) => {
14220
+ var Iy = (t) => {
14228
14221
  const e = po(), n = yu(), [r, o] = C(t, ["ref"]), [s, i] = D();
14229
14222
  return V(() => {
14230
14223
  const a = s();
@@ -14235,7 +14228,7 @@ var ky = (t) => {
14235
14228
  typeof l == "function" && l(a);
14236
14229
  }
14237
14230
  }, o));
14238
- }, Dy = (t) => {
14231
+ }, Py = (t) => {
14239
14232
  const e = Wn(), [n, r] = C(t, ["ref"]), [o, s] = D();
14240
14233
  return ct(o, () => {
14241
14234
  requestAnimationFrame(() => {
@@ -14247,7 +14240,7 @@ var ky = (t) => {
14247
14240
  typeof a == "function" && a(i);
14248
14241
  }
14249
14242
  }, r));
14250
- }, Ty = (t) => {
14243
+ }, ky = (t) => {
14251
14244
  const e = sr({
14252
14245
  defaultValue: t.value,
14253
14246
  orientation: "horizontal"
@@ -14272,19 +14265,19 @@ var ky = (t) => {
14272
14265
  }, r));
14273
14266
  }
14274
14267
  });
14275
- }, Pn = Object.assign(Ty, {
14276
- Description: Se,
14277
- ErrorMessage: Ie,
14278
- Indicator: Py,
14279
- Item: ky,
14268
+ }, Pn = Object.assign(ky, {
14269
+ Description: Ce,
14270
+ ErrorMessage: Se,
14271
+ Indicator: Sy,
14272
+ Item: Iy,
14280
14273
  ItemControl: Gs,
14281
14274
  ItemDescription: Xs,
14282
14275
  ItemIndicator: Ys,
14283
- ItemInput: Dy,
14276
+ ItemInput: Py,
14284
14277
  ItemLabel: qs,
14285
14278
  Label: Zs
14286
- }), My = /* @__PURE__ */ se("<div>");
14287
- const Oy = ne({
14279
+ }), Dy = /* @__PURE__ */ se("<div>");
14280
+ const Ty = ne({
14288
14281
  slots: {
14289
14282
  root: "relative flex flex-col",
14290
14283
  container: "relative flex items-center w-full rounded-lg bg-slate-100 p-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400",
@@ -14314,8 +14307,8 @@ const Oy = ne({
14314
14307
  }
14315
14308
  }, {
14316
14309
  twMerge: !0
14317
- }), dx = (t) => {
14318
- const [e, n, r] = C(t, ["options", "class", "label"], ["size"]), o = Oy(n);
14310
+ }), cx = (t) => {
14311
+ const [e, n, r] = C(t, ["options", "class", "label"], ["size"]), o = Ty(n);
14319
14312
  return c(Pn, x({
14320
14313
  get class() {
14321
14314
  return o.root({
@@ -14332,8 +14325,8 @@ const Oy = ne({
14332
14325
  return e.label;
14333
14326
  }
14334
14327
  })), (() => {
14335
- var s = My();
14336
- return Y(s, c(De, {
14328
+ var s = Dy();
14329
+ return J(s, c(De, {
14337
14330
  get each() {
14338
14331
  return e.options;
14339
14332
  },
@@ -14358,21 +14351,21 @@ const Oy = ne({
14358
14351
  })];
14359
14352
  }
14360
14353
  })
14361
- }), null), Y(s, c(Pn.Indicator, {
14354
+ }), null), J(s, c(Pn.Indicator, {
14362
14355
  get class() {
14363
14356
  return o.indicator();
14364
14357
  }
14365
- }), null), xe(() => Ce(s, o.container())), s;
14358
+ }), null), xe(() => Ie(s, o.container())), s;
14366
14359
  })()];
14367
14360
  }
14368
14361
  }));
14369
14362
  };
14370
- var Vy = {};
14371
- de(Vy, {
14363
+ var My = {};
14364
+ de(My, {
14372
14365
  Arrow: () => Te,
14373
14366
  Content: () => wu,
14374
- Description: () => Se,
14375
- ErrorMessage: () => Ie,
14367
+ Description: () => Ce,
14368
+ ErrorMessage: () => Se,
14376
14369
  HiddenSelect: () => Cu,
14377
14370
  Icon: () => Su,
14378
14371
  Item: () => Kn,
@@ -14547,7 +14540,7 @@ function ku(t) {
14547
14540
  }
14548
14541
  });
14549
14542
  }
14550
- function Ey(t) {
14543
+ function Oy(t) {
14551
14544
  const e = `select-${Q()}`, n = E({
14552
14545
  id: e,
14553
14546
  selectionMode: "single",
@@ -14558,12 +14551,12 @@ function Ey(t) {
14558
14551
  sameWidth: !0,
14559
14552
  modal: !1
14560
14553
  }, t), [r, o, s, i] = C(n, ["itemComponent", "sectionComponent", "open", "defaultOpen", "onOpenChange", "value", "defaultValue", "onChange", "placeholder", "options", "optionValue", "optionTextValue", "optionDisabled", "optionGroupChildren", "keyboardDelegate", "allowDuplicateSelectionEvents", "disallowEmptySelection", "closeOnSelection", "disallowTypeAhead", "shouldFocusWrap", "selectionBehavior", "selectionMode", "virtualized", "modal", "preventScroll", "forceMount"], ["getAnchorRect", "placement", "gutter", "shift", "flip", "slide", "overlap", "sameWidth", "fitViewport", "hideWhenDetached", "detachedPadding", "arrowPadding", "overflowPadding"], mt), [a, l] = D(), [u, d] = D(), [g, h] = D(), [f, p] = D(), [m, v] = D(), [b, w] = D(), [y, S] = D(), [I, L] = D(!0), M = (re) => {
14561
- const Z = r.optionValue;
14562
- return Z == null ? String(re) : String(qe(Z) ? Z(re) : re[Z]);
14554
+ const q = r.optionValue;
14555
+ return q == null ? String(re) : String(qe(q) ? q(re) : re[q]);
14563
14556
  }, k = A(() => {
14564
14557
  const re = r.optionGroupChildren;
14565
- return re == null ? r.options : r.options.flatMap((Z) => Z[re] ?? Z);
14566
- }), $ = A(() => k().map((re) => M(re))), K = (re) => [...re].map((Z) => k().find((ze) => M(ze) === Z)).filter((Z) => Z != null), G = pt({
14558
+ return re == null ? r.options : r.options.flatMap((q) => q[re] ?? q);
14559
+ }), $ = A(() => k().map((re) => M(re))), K = (re) => [...re].map((q) => k().find((ze) => M(ze) === q)).filter((q) => q != null), G = pt({
14567
14560
  open: () => r.open,
14568
14561
  defaultOpen: () => r.defaultOpen,
14569
14562
  onOpenChange: (re) => r.onOpenChange?.(re)
@@ -14596,11 +14589,11 @@ function Ey(t) {
14596
14589
  if (r.options.length <= 0)
14597
14590
  return;
14598
14591
  L(re), G.open();
14599
- let Z = P.selectionManager().firstSelectedKey();
14600
- Z == null && (re === "first" ? Z = P.collection().getFirstKey() : re === "last" && (Z = P.collection().getLastKey())), F(), P.selectionManager().setFocused(!0), P.selectionManager().setFocusedKey(Z);
14592
+ let q = P.selectionManager().firstSelectedKey();
14593
+ q == null && (re === "first" ? q = P.collection().getFirstKey() : re === "last" && (q = P.collection().getLastKey())), F(), P.selectionManager().setFocused(!0), P.selectionManager().setFocusedKey(q);
14601
14594
  }, ge = () => {
14602
14595
  G.close(), P.selectionManager().setFocused(!1), P.selectionManager().setFocusedKey(void 0);
14603
- }, q = (re) => {
14596
+ }, Y = (re) => {
14604
14597
  G.isOpen() ? ge() : oe(re);
14605
14598
  }, {
14606
14599
  formControlContext: ce
@@ -14655,7 +14648,7 @@ function Ey(t) {
14655
14648
  setListboxRef: w,
14656
14649
  open: oe,
14657
14650
  close: ge,
14658
- toggle: q,
14651
+ toggle: Y,
14659
14652
  placeholder: () => r.placeholder,
14660
14653
  renderItem: Ke,
14661
14654
  renderSection: ae,
@@ -14692,7 +14685,7 @@ function Ey(t) {
14692
14685
  }
14693
14686
  function Du(t) {
14694
14687
  const [e, n] = C(t, ["value", "defaultValue", "onChange", "multiple"]), r = A(() => e.value != null ? e.multiple ? e.value : [e.value] : e.value), o = A(() => e.defaultValue != null ? e.multiple ? e.defaultValue : [e.defaultValue] : e.defaultValue);
14695
- return c(Ey, x({
14688
+ return c(Oy, x({
14696
14689
  get value() {
14697
14690
  return r();
14698
14691
  },
@@ -14814,7 +14807,7 @@ function Mu(t) {
14814
14807
  return n.placeholder();
14815
14808
  },
14816
14809
  get children() {
14817
- return c(Ly, {
14810
+ return c(Vy, {
14818
14811
  state: {
14819
14812
  selectedOption: () => n.selectedOptions()[0],
14820
14813
  selectedOptions: () => n.selectedOptions(),
@@ -14830,7 +14823,7 @@ function Mu(t) {
14830
14823
  }
14831
14824
  }));
14832
14825
  }
14833
- function Ly(t) {
14826
+ function Vy(t) {
14834
14827
  const e = ir(() => {
14835
14828
  const n = t.children;
14836
14829
  return qe(n) ? n(t.state) : n;
@@ -14840,8 +14833,8 @@ function Ly(t) {
14840
14833
  var Be = Object.assign(Du, {
14841
14834
  Arrow: Te,
14842
14835
  Content: wu,
14843
- Description: Se,
14844
- ErrorMessage: Ie,
14836
+ Description: Ce,
14837
+ ErrorMessage: Se,
14845
14838
  HiddenSelect: Cu,
14846
14839
  Icon: Su,
14847
14840
  Item: Kn,
@@ -14855,7 +14848,7 @@ var Be = Object.assign(Du, {
14855
14848
  Trigger: Tu,
14856
14849
  Value: Mu
14857
14850
  });
14858
- const Fy = ne({
14851
+ const Ey = ne({
14859
14852
  slots: {
14860
14853
  root: "flex flex-col gap-1.5 w-full",
14861
14854
  label: "text-sm font-medium text-slate-700 dark:text-slate-300",
@@ -14887,8 +14880,8 @@ const Fy = ne({
14887
14880
  }
14888
14881
  }, {
14889
14882
  twMerge: !0
14890
- }), gx = (t) => {
14891
- const [e, n, r] = C(t, ["options", "label", "description", "placeholder", "class", "value", "defaultValue", "onChange"], ["size"]), o = Fy(n), s = A(() => {
14883
+ }), ux = (t) => {
14884
+ const [e, n, r] = C(t, ["options", "label", "description", "placeholder", "class", "value", "defaultValue", "onChange"], ["size"]), o = Ey(n), s = A(() => {
14892
14885
  if (e.value !== void 0)
14893
14886
  return e.options.find((l) => l.value === e.value);
14894
14887
  }), i = A(() => {
@@ -15022,7 +15015,7 @@ const Fy = ne({
15022
15015
  })];
15023
15016
  }
15024
15017
  }));
15025
- }, Ry = ne({
15018
+ }, Ly = ne({
15026
15019
  base: "bg-slate-200 dark:bg-slate-800 shrink-0 transition-colors",
15027
15020
  variants: {
15028
15021
  orientation: {
@@ -15048,11 +15041,11 @@ const Fy = ne({
15048
15041
  }
15049
15042
  }, {
15050
15043
  twMerge: !0
15051
- }), fx = (t) => {
15044
+ }), dx = (t) => {
15052
15045
  const [e, n, r] = C(t, ["class"], ["orientation", "thickness", "variant"]);
15053
15046
  return c(wc, x({
15054
15047
  get class() {
15055
- return Ry({
15048
+ return Ly({
15056
15049
  orientation: n.orientation,
15057
15050
  thickness: n.thickness,
15058
15051
  variant: n.variant,
@@ -15064,8 +15057,8 @@ const Fy = ne({
15064
15057
  }
15065
15058
  }, r));
15066
15059
  };
15067
- var $y = {};
15068
- de($y, {
15060
+ var Fy = {};
15061
+ de(Fy, {
15069
15062
  Root: () => Ou,
15070
15063
  Skeleton: () => Vu
15071
15064
  });
@@ -15094,7 +15087,7 @@ function Ou(t) {
15094
15087
  }, o));
15095
15088
  }
15096
15089
  var Vu = Ou;
15097
- const Ay = ne({
15090
+ const Ry = ne({
15098
15091
  base: "bg-slate-200 dark:bg-slate-800",
15099
15092
  variants: {
15100
15093
  variant: {
@@ -15114,7 +15107,7 @@ const Ay = ne({
15114
15107
  }
15115
15108
  }, {
15116
15109
  twMerge: !0
15117
- }), hx = (t) => {
15110
+ }), gx = (t) => {
15118
15111
  const [e, n, r] = C(t, ["class", "width", "height", "style"], ["variant", "animation"]), o = () => ({
15119
15112
  width: typeof e.width == "number" ? `${e.width}px` : e.width,
15120
15113
  height: typeof e.height == "number" ? `${e.height}px` : e.height,
@@ -15122,7 +15115,7 @@ const Ay = ne({
15122
15115
  });
15123
15116
  return c(Vu, x({
15124
15117
  get class() {
15125
- return Ay({
15118
+ return Ry({
15126
15119
  variant: n.variant,
15127
15120
  animation: n.animation,
15128
15121
  class: e.class
@@ -15133,8 +15126,8 @@ const Ay = ne({
15133
15126
  }
15134
15127
  }, r));
15135
15128
  };
15136
- var Ky = /* @__PURE__ */ se("<div>");
15137
- const zy = ne({
15129
+ var $y = /* @__PURE__ */ se("<div>");
15130
+ const Ay = ne({
15138
15131
  slots: {
15139
15132
  root: "relative flex flex-col items-center select-none touch-none w-full gap-2",
15140
15133
  labelWrapper: "flex w-full justify-between items-center",
@@ -15180,8 +15173,8 @@ const zy = ne({
15180
15173
  }
15181
15174
  }, {
15182
15175
  twMerge: !0
15183
- }), px = (t) => {
15184
- const [e, n, r] = C(t, ["label", "showValue", "class"], ["variant", "size"]), o = zy(n);
15176
+ }), fx = (t) => {
15177
+ const [e, n, r] = C(t, ["label", "showValue", "class"], ["variant", "size"]), o = Ay(n);
15185
15178
  return c(Vt, x({
15186
15179
  get class() {
15187
15180
  return o.root({
@@ -15195,8 +15188,8 @@ const zy = ne({
15195
15188
  return e.label || e.showValue;
15196
15189
  },
15197
15190
  get children() {
15198
- var s = Ky();
15199
- return Y(s, c(U, {
15191
+ var s = $y();
15192
+ return J(s, c(U, {
15200
15193
  get when() {
15201
15194
  return e.label;
15202
15195
  },
@@ -15210,7 +15203,7 @@ const zy = ne({
15210
15203
  }
15211
15204
  });
15212
15205
  }
15213
- }), null), Y(s, c(U, {
15206
+ }), null), J(s, c(U, {
15214
15207
  get when() {
15215
15208
  return e.showValue;
15216
15209
  },
@@ -15221,7 +15214,7 @@ const zy = ne({
15221
15214
  }
15222
15215
  });
15223
15216
  }
15224
- }), null), xe(() => Ce(s, o.labelWrapper())), s;
15217
+ }), null), xe(() => Ie(s, o.labelWrapper())), s;
15225
15218
  }
15226
15219
  }), c(Vt.Track, {
15227
15220
  get class() {
@@ -15250,8 +15243,8 @@ const zy = ne({
15250
15243
  }
15251
15244
  }));
15252
15245
  };
15253
- var Ny = {};
15254
- de(Ny, {
15246
+ var Ky = {};
15247
+ de(Ky, {
15255
15248
  Control: () => Lu,
15256
15249
  Description: () => Fu,
15257
15250
  ErrorMessage: () => Ru,
@@ -15285,11 +15278,11 @@ function Lu(t) {
15285
15278
  }
15286
15279
  function Fu(t) {
15287
15280
  const e = vn();
15288
- return c(Se, x(() => e.dataset(), t));
15281
+ return c(Ce, x(() => e.dataset(), t));
15289
15282
  }
15290
15283
  function Ru(t) {
15291
15284
  const e = vn();
15292
- return c(Ie, x(() => e.dataset(), t));
15285
+ return c(Se, x(() => e.dataset(), t));
15293
15286
  }
15294
15287
  function $u(t) {
15295
15288
  const e = fe(), n = vn(), r = E({
@@ -15421,7 +15414,7 @@ function Ku(t) {
15421
15414
  onPointerDown: f
15422
15415
  }, () => g.dataset(), p, i, {
15423
15416
  get children() {
15424
- return c(_y, {
15417
+ return c(zy, {
15425
15418
  state: m,
15426
15419
  get children() {
15427
15420
  return o.children;
@@ -15434,7 +15427,7 @@ function Ku(t) {
15434
15427
  }
15435
15428
  });
15436
15429
  }
15437
- function _y(t) {
15430
+ function zy(t) {
15438
15431
  const e = ir(() => {
15439
15432
  const n = t.children;
15440
15433
  return qe(n) ? n(t.state) : n;
@@ -15456,8 +15449,8 @@ var Ht = Object.assign(Ku, {
15456
15449
  Input: $u,
15457
15450
  Label: Au,
15458
15451
  Thumb: zu
15459
- }), By = /* @__PURE__ */ se('<div class="flex flex-col gap-0.5">');
15460
- const Uy = ne({
15452
+ }), Ny = /* @__PURE__ */ se('<div class="flex flex-col gap-0.5">');
15453
+ const _y = ne({
15461
15454
  slots: {
15462
15455
  root: "inline-flex items-center gap-2 group",
15463
15456
  control: ["inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-50", "bg-slate-200 dark:bg-slate-800 data-[checked]:bg-blue-600 dark:data-[checked]:bg-blue-500"],
@@ -15498,8 +15491,8 @@ const Uy = ne({
15498
15491
  }
15499
15492
  }, {
15500
15493
  twMerge: !0
15501
- }), mx = (t) => {
15502
- const [e, n, r] = C(t, ["label", "description", "class"], ["size", "variant"]), o = Uy(n);
15494
+ }), hx = (t) => {
15495
+ const [e, n, r] = C(t, ["label", "description", "class"], ["size", "variant"]), o = _y(n);
15503
15496
  return c(Ht, x({
15504
15497
  get class() {
15505
15498
  return o.root({
@@ -15524,8 +15517,8 @@ const Uy = ne({
15524
15517
  return e.label || e.description;
15525
15518
  },
15526
15519
  get children() {
15527
- var s = By();
15528
- return Y(s, c(U, {
15520
+ var s = Ny();
15521
+ return J(s, c(U, {
15529
15522
  get when() {
15530
15523
  return e.label;
15531
15524
  },
@@ -15539,7 +15532,7 @@ const Uy = ne({
15539
15532
  }
15540
15533
  });
15541
15534
  }
15542
- }), null), Y(s, c(U, {
15535
+ }), null), J(s, c(U, {
15543
15536
  get when() {
15544
15537
  return e.description;
15545
15538
  },
@@ -15613,8 +15606,8 @@ var Nu = class {
15613
15606
  while (n.disabled);
15614
15607
  return e;
15615
15608
  }
15616
- }, Hy = {};
15617
- de(Hy, {
15609
+ }, By = {};
15610
+ de(By, {
15618
15611
  Content: () => Bu,
15619
15612
  Indicator: () => Uu,
15620
15613
  List: () => Hu,
@@ -15783,7 +15776,7 @@ function Hu(t) {
15783
15776
  }
15784
15777
  }, o));
15785
15778
  }
15786
- function Wy(t) {
15779
+ function Uy(t) {
15787
15780
  const [e, n] = Pe({
15788
15781
  value: () => T(t.selectedKey),
15789
15782
  defaultValue: () => T(t.defaultSelectedKey),
@@ -15825,7 +15818,7 @@ function Wu(t) {
15825
15818
  } = dr({
15826
15819
  items: s,
15827
15820
  onItemsChange: i
15828
- }), d = Wy({
15821
+ }), d = Uy({
15829
15822
  selectedKey: () => r.value,
15830
15823
  defaultSelectedKey: () => r.defaultValue,
15831
15824
  onSelectionChange: (m) => r.onChange?.(String(m)),
@@ -15961,7 +15954,7 @@ var Ln = Object.assign(Wu, {
15961
15954
  List: Hu,
15962
15955
  Trigger: ju
15963
15956
  });
15964
- const jy = ne({
15957
+ const Hy = ne({
15965
15958
  slots: {
15966
15959
  root: "flex flex-col w-full",
15967
15960
  list: "relative flex items-center border-b border-zinc-200 dark:border-zinc-800",
@@ -15972,16 +15965,16 @@ const jy = ne({
15972
15965
  }, {
15973
15966
  twMerge: !0
15974
15967
  }), {
15975
- root: Gy,
15976
- list: Xy,
15977
- trigger: Yy,
15978
- indicator: qy,
15979
- content: Zy
15980
- } = jy(), bx = (t) => {
15968
+ root: Wy,
15969
+ list: jy,
15970
+ trigger: Gy,
15971
+ indicator: Xy,
15972
+ content: Yy
15973
+ } = Hy(), px = (t) => {
15981
15974
  const [e, n] = C(t, ["items", "class"]);
15982
15975
  return c(Ln, x({
15983
15976
  get class() {
15984
- return Gy({
15977
+ return Wy({
15985
15978
  class: e.class
15986
15979
  });
15987
15980
  }
@@ -15989,7 +15982,7 @@ const jy = ne({
15989
15982
  get children() {
15990
15983
  return [c(Ln.List, {
15991
15984
  get class() {
15992
- return Xy();
15985
+ return jy();
15993
15986
  },
15994
15987
  get children() {
15995
15988
  return [c(De, {
@@ -15998,7 +15991,7 @@ const jy = ne({
15998
15991
  },
15999
15992
  children: (r) => c(Ln.Trigger, {
16000
15993
  get class() {
16001
- return Yy();
15994
+ return Gy();
16002
15995
  },
16003
15996
  get value() {
16004
15997
  return r.value;
@@ -16012,7 +16005,7 @@ const jy = ne({
16012
16005
  })
16013
16006
  }), c(Ln.Indicator, {
16014
16007
  get class() {
16015
- return qy();
16008
+ return Xy();
16016
16009
  }
16017
16010
  })];
16018
16011
  }
@@ -16022,7 +16015,7 @@ const jy = ne({
16022
16015
  },
16023
16016
  children: (r) => c(Ln.Content, {
16024
16017
  get class() {
16025
- return Zy();
16018
+ return Yy();
16026
16019
  },
16027
16020
  get value() {
16028
16021
  return r.value;
@@ -16034,7 +16027,7 @@ const jy = ne({
16034
16027
  })];
16035
16028
  }
16036
16029
  }));
16037
- }, Jy = ne({
16030
+ }, qy = ne({
16038
16031
  slots: {
16039
16032
  root: "flex flex-col gap-1.5 w-full",
16040
16033
  label: "text-sm font-medium text-slate-700 dark:text-slate-300 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
@@ -16060,8 +16053,8 @@ const jy = ne({
16060
16053
  }
16061
16054
  }, {
16062
16055
  twMerge: !0
16063
- }), vx = (t) => {
16064
- const [e, n, r] = C(t, ["label", "description", "errorMessage", "placeholder", "type", "class"], ["size"]), o = Jy(n);
16056
+ }), mx = (t) => {
16057
+ const [e, n, r] = C(t, ["label", "description", "errorMessage", "placeholder", "type", "class"], ["size"]), o = qy(n);
16065
16058
  return c(Ye, x({
16066
16059
  get class() {
16067
16060
  return o.root({
@@ -16129,8 +16122,8 @@ const jy = ne({
16129
16122
  }
16130
16123
  }));
16131
16124
  };
16132
- var Qy = {};
16133
- de(Qy, {
16125
+ var Zy = {};
16126
+ de(Zy, {
16134
16127
  CloseButton: () => Xu,
16135
16128
  Description: () => Yu,
16136
16129
  List: () => Zu,
@@ -16262,37 +16255,37 @@ function Qu(t) {
16262
16255
  var [Qs, Pr] = Dd({
16263
16256
  toasts: []
16264
16257
  });
16265
- function e0(t) {
16258
+ function Jy(t) {
16266
16259
  Pr("toasts", (e) => [...e, t]);
16267
16260
  }
16268
- function t0(t) {
16261
+ function Qy(t) {
16269
16262
  return Qs.toasts.find((e) => e.id === t);
16270
16263
  }
16271
- function n0(t, e) {
16264
+ function e0(t, e) {
16272
16265
  const n = Qs.toasts.findIndex((r) => r.id === t);
16273
16266
  n !== -1 && Pr("toasts", (r) => [...r.slice(0, n), e, ...r.slice(n + 1)]);
16274
16267
  }
16275
- function r0(t) {
16268
+ function t0(t) {
16276
16269
  Pr("toasts", (e) => e.id === t, "dismiss", !0);
16277
16270
  }
16278
- function o0(t) {
16271
+ function n0(t) {
16279
16272
  Pr("toasts", (e) => e.filter((n) => n.id !== t));
16280
16273
  }
16281
- function s0() {
16274
+ function r0() {
16282
16275
  Pr("toasts", []);
16283
16276
  }
16284
16277
  var Xt = {
16285
16278
  toasts: () => Qs.toasts,
16286
- add: e0,
16287
- get: t0,
16288
- update: n0,
16289
- dismiss: r0,
16290
- remove: o0,
16291
- clear: s0
16292
- }, da = "{hotkey}", i0 = {
16279
+ add: Jy,
16280
+ get: Qy,
16281
+ update: e0,
16282
+ dismiss: t0,
16283
+ remove: n0,
16284
+ clear: r0
16285
+ }, da = "{hotkey}", o0 = {
16293
16286
  // `aria-label` of Toast.CloseButton.
16294
16287
  close: "Close"
16295
- }, a0 = {
16288
+ }, s0 = {
16296
16289
  // `aria-label` of Toast.Region with notification count.
16297
16290
  notifications: (t) => `Notifications (${t})`
16298
16291
  };
@@ -16307,7 +16300,7 @@ function ed(t) {
16307
16300
  pauseOnInteraction: !0,
16308
16301
  pauseOnPageIdle: !0,
16309
16302
  topLayer: !0,
16310
- translations: a0
16303
+ translations: s0
16311
16304
  }, t), [n, r] = C(e, ["translations", "style", "hotkey", "duration", "limit", "swipeDirection", "swipeThreshold", "pauseOnInteraction", "pauseOnPageIdle", "topLayer", "aria-label", "regionId"]), o = A(() => Xt.toasts().filter((h) => h.region === n.regionId && h.dismiss === !1).slice(0, n.limit)), [s, i] = D(!1), a = () => o().length > 0, l = () => n.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, ""), u = () => (n["aria-label"] || n.translations.notifications(da)).replace(da, l()), d = () => ({
16312
16305
  [er]: n.topLayer ? "" : void 0
16313
16306
  }), g = {
@@ -16342,12 +16335,12 @@ function ed(t) {
16342
16335
  }
16343
16336
  });
16344
16337
  }
16345
- var l0 = "toast.swipeStart", c0 = "toast.swipeMove", u0 = "toast.swipeCancel", d0 = "toast.swipeEnd";
16338
+ var i0 = "toast.swipeStart", a0 = "toast.swipeMove", l0 = "toast.swipeCancel", c0 = "toast.swipeEnd";
16346
16339
  function td(t) {
16347
16340
  const e = Js(), n = E({
16348
16341
  id: `toast-${Q()}`,
16349
16342
  priority: "high",
16350
- translations: i0
16343
+ translations: o0
16351
16344
  }, t), [r, o] = C(n, ["ref", "translations", "toastId", "style", "priority", "duration", "persistent", "onPause", "onResume", "onSwipeStart", "onSwipeMove", "onSwipeCancel", "onSwipeEnd", "onEscapeKeyDown", "onKeyDown", "onPointerDown", "onPointerMove", "onPointerUp"]), [s, i] = D(!0), [a, l] = D(), [u, d] = D(), [g, h] = D(!0), [f, p] = D(), {
16352
16345
  present: m
16353
16346
  } = $e({
@@ -16376,39 +16369,39 @@ function td(t) {
16376
16369
  }, X = (F) => {
16377
16370
  if (O(F, r.onPointerMove), !S)
16378
16371
  return;
16379
- const oe = F.clientX - S.x, ge = F.clientY - S.y, q = !!I, ce = ["left", "right"].includes(e.swipeDirection()), ve = ["left", "up"].includes(e.swipeDirection()) ? Math.min : Math.max, Oe = ce ? ve(0, oe) : 0, Ke = ce ? 0 : ve(0, ge), ae = F.pointerType === "touch" ? 10 : 2, Ge = {
16372
+ const oe = F.clientX - S.x, ge = F.clientY - S.y, Y = !!I, ce = ["left", "right"].includes(e.swipeDirection()), ve = ["left", "up"].includes(e.swipeDirection()) ? Math.min : Math.max, Oe = ce ? ve(0, oe) : 0, Ke = ce ? 0 : ve(0, ge), ae = F.pointerType === "touch" ? 10 : 2, Ge = {
16380
16373
  x: Oe,
16381
16374
  y: Ke
16382
16375
  }, Dt = {
16383
16376
  originalEvent: F,
16384
16377
  delta: Ge
16385
16378
  };
16386
- if (q) {
16387
- I = Ge, Er(c0, r.onSwipeMove, Dt);
16379
+ if (Y) {
16380
+ I = Ge, Er(a0, r.onSwipeMove, Dt);
16388
16381
  const {
16389
16382
  x: re,
16390
- y: Z
16383
+ y: q
16391
16384
  } = Ge;
16392
- F.currentTarget.setAttribute("data-swipe", "move"), F.currentTarget.style.setProperty("--kb-toast-swipe-move-x", `${re}px`), F.currentTarget.style.setProperty("--kb-toast-swipe-move-y", `${Z}px`);
16393
- } else ga(Ge, e.swipeDirection(), ae) ? (I = Ge, Er(l0, r.onSwipeStart, Dt), F.currentTarget.setAttribute("data-swipe", "start"), F.target.setPointerCapture(F.pointerId)) : (Math.abs(oe) > ae || Math.abs(ge) > ae) && (S = null);
16385
+ F.currentTarget.setAttribute("data-swipe", "move"), F.currentTarget.style.setProperty("--kb-toast-swipe-move-x", `${re}px`), F.currentTarget.style.setProperty("--kb-toast-swipe-move-y", `${q}px`);
16386
+ } else ga(Ge, e.swipeDirection(), ae) ? (I = Ge, Er(i0, r.onSwipeStart, Dt), F.currentTarget.setAttribute("data-swipe", "start"), F.target.setPointerCapture(F.pointerId)) : (Math.abs(oe) > ae || Math.abs(ge) > ae) && (S = null);
16394
16387
  }, j = (F) => {
16395
16388
  O(F, r.onPointerUp);
16396
16389
  const oe = I, ge = F.target;
16397
16390
  if (ge.hasPointerCapture(F.pointerId) && ge.releasePointerCapture(F.pointerId), I = null, S = null, oe) {
16398
- const q = F.currentTarget, ce = {
16391
+ const Y = F.currentTarget, ce = {
16399
16392
  originalEvent: F,
16400
16393
  delta: oe
16401
16394
  };
16402
16395
  if (ga(oe, e.swipeDirection(), e.swipeThreshold())) {
16403
- Er(d0, r.onSwipeEnd, ce);
16396
+ Er(c0, r.onSwipeEnd, ce);
16404
16397
  const {
16405
16398
  x: ve,
16406
16399
  y: Oe
16407
16400
  } = oe;
16408
16401
  F.currentTarget.setAttribute("data-swipe", "end"), F.currentTarget.style.removeProperty("--kb-toast-swipe-move-x"), F.currentTarget.style.removeProperty("--kb-toast-swipe-move-y"), F.currentTarget.style.setProperty("--kb-toast-swipe-end-x", `${ve}px`), F.currentTarget.style.setProperty("--kb-toast-swipe-end-y", `${Oe}px`), L();
16409
16402
  } else
16410
- Er(u0, r.onSwipeCancel, ce), F.currentTarget.setAttribute("data-swipe", "cancel"), F.currentTarget.style.removeProperty("--kb-toast-swipe-move-x"), F.currentTarget.style.removeProperty("--kb-toast-swipe-move-y"), F.currentTarget.style.removeProperty("--kb-toast-swipe-end-x"), F.currentTarget.style.removeProperty("--kb-toast-swipe-end-y");
16411
- q.addEventListener("click", (ve) => ve.preventDefault(), {
16403
+ Er(l0, r.onSwipeCancel, ce), F.currentTarget.setAttribute("data-swipe", "cancel"), F.currentTarget.style.removeProperty("--kb-toast-swipe-move-x"), F.currentTarget.style.removeProperty("--kb-toast-swipe-move-y"), F.currentTarget.style.removeProperty("--kb-toast-swipe-end-x"), F.currentTarget.style.removeProperty("--kb-toast-swipe-end-y");
16404
+ Y.addEventListener("click", (ve) => ve.preventDefault(), {
16412
16405
  once: !0
16413
16406
  });
16414
16407
  }
@@ -16509,9 +16502,9 @@ function nd(t) {
16509
16502
  }
16510
16503
  }, o));
16511
16504
  }
16512
- var g0 = 0;
16505
+ var u0 = 0;
16513
16506
  function rd(t, e) {
16514
- const n = g0++;
16507
+ const n = u0++;
16515
16508
  return Xt.add({
16516
16509
  id: n,
16517
16510
  toastComponent: t,
@@ -16528,7 +16521,7 @@ function Xo(t, e) {
16528
16521
  update: !0
16529
16522
  });
16530
16523
  }
16531
- function f0(t, e, n) {
16524
+ function d0(t, e, n) {
16532
16525
  const r = rd((o) => e({
16533
16526
  get toastId() {
16534
16527
  return o.toastId;
@@ -16549,18 +16542,18 @@ function f0(t, e, n) {
16549
16542
  error: o
16550
16543
  }))), r;
16551
16544
  }
16552
- function h0(t) {
16545
+ function g0(t) {
16553
16546
  return Xt.dismiss(t), t;
16554
16547
  }
16555
- function p0() {
16548
+ function f0() {
16556
16549
  Xt.clear();
16557
16550
  }
16558
16551
  var ei = {
16559
16552
  show: rd,
16560
16553
  update: Xo,
16561
- promise: f0,
16562
- dismiss: h0,
16563
- clear: p0
16554
+ promise: d0,
16555
+ dismiss: g0,
16556
+ clear: f0
16564
16557
  }, Wt = Object.assign(td, {
16565
16558
  CloseButton: Xu,
16566
16559
  Description: Yu,
@@ -16570,8 +16563,8 @@ var ei = {
16570
16563
  Region: ed,
16571
16564
  Title: nd,
16572
16565
  toaster: ei
16573
- }), m0 = /* @__PURE__ */ se("<div>");
16574
- const b0 = ne({
16566
+ }), h0 = /* @__PURE__ */ se("<div>");
16567
+ const p0 = ne({
16575
16568
  slots: {
16576
16569
  root: [
16577
16570
  "group relative flex w-[400px] items-start justify-between space-x-4 overflow-hidden rounded-md border p-4 pr-8 shadow-lg transition-all",
@@ -16614,18 +16607,18 @@ const b0 = ne({
16614
16607
  }
16615
16608
  }, {
16616
16609
  twMerge: !0
16617
- }), v0 = {
16610
+ }), m0 = {
16618
16611
  info: Ja,
16619
16612
  success: qa,
16620
16613
  warning: Of,
16621
16614
  error: Ya
16622
- }, yx = (t) => [_(() => t.children), c(Wt.Region, {
16615
+ }, bx = (t) => [_(() => t.children), c(Wt.Region, {
16623
16616
  get children() {
16624
16617
  return c(Wt.List, {
16625
16618
  class: "fixed bottom-4 right-4 z-100 flex flex-col gap-3 w-full max-w-100 outline-none"
16626
16619
  });
16627
16620
  }
16628
- })], y0 = (t) => {
16621
+ })], b0 = (t) => {
16629
16622
  const [e, n, r] = C(t, ["title", "description", "class", "toastId"], ["variant"]), {
16630
16623
  root: o,
16631
16624
  icon: s,
@@ -16633,7 +16626,7 @@ const b0 = ne({
16633
16626
  title: a,
16634
16627
  description: l,
16635
16628
  closeButton: u
16636
- } = b0(n), d = v0[n.variant ?? "info"];
16629
+ } = p0(n), d = m0[n.variant ?? "info"];
16637
16630
  return c(Wt, x({
16638
16631
  get toastId() {
16639
16632
  return e.toastId;
@@ -16650,8 +16643,8 @@ const b0 = ne({
16650
16643
  return s();
16651
16644
  }
16652
16645
  }), (() => {
16653
- var g = m0();
16654
- return Y(g, c(U, {
16646
+ var g = h0();
16647
+ return J(g, c(U, {
16655
16648
  get when() {
16656
16649
  return e.title;
16657
16650
  },
@@ -16665,7 +16658,7 @@ const b0 = ne({
16665
16658
  }
16666
16659
  });
16667
16660
  }
16668
- }), null), Y(g, c(U, {
16661
+ }), null), J(g, c(U, {
16669
16662
  get when() {
16670
16663
  return e.description;
16671
16664
  },
@@ -16679,7 +16672,7 @@ const b0 = ne({
16679
16672
  }
16680
16673
  });
16681
16674
  }
16682
- }), null), xe(() => Ce(g, i())), g;
16675
+ }), null), xe(() => Ie(g, i())), g;
16683
16676
  })(), c(Wt.CloseButton, {
16684
16677
  get class() {
16685
16678
  return u();
@@ -16692,13 +16685,13 @@ const b0 = ne({
16692
16685
  })];
16693
16686
  }
16694
16687
  }));
16695
- }, xx = (t) => ei.show((e) => c(y0, x({
16688
+ }, vx = (t) => ei.show((e) => c(b0, x({
16696
16689
  get toastId() {
16697
16690
  return e.toastId;
16698
16691
  }
16699
16692
  }, t)));
16700
- var x0 = {};
16701
- de(x0, {
16693
+ var v0 = {};
16694
+ de(v0, {
16702
16695
  Root: () => ti,
16703
16696
  ToggleButton: () => od
16704
16697
  });
@@ -16721,7 +16714,7 @@ function ti(t) {
16721
16714
  }
16722
16715
  }, n, {
16723
16716
  get children() {
16724
- return c(w0, {
16717
+ return c(y0, {
16725
16718
  get state() {
16726
16719
  return {
16727
16720
  pressed: r.isSelected
@@ -16734,7 +16727,7 @@ function ti(t) {
16734
16727
  }
16735
16728
  }));
16736
16729
  }
16737
- function w0(t) {
16730
+ function y0(t) {
16738
16731
  const e = ir(() => {
16739
16732
  const n = t.children;
16740
16733
  return qe(n) ? n(t.state) : n;
@@ -16742,7 +16735,7 @@ function w0(t) {
16742
16735
  return _(e);
16743
16736
  }
16744
16737
  var od = ti;
16745
- const C0 = ne({
16738
+ const x0 = ne({
16746
16739
  base: ["inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50 select-none cursor-pointer"],
16747
16740
  variants: {
16748
16741
  variant: {
@@ -16763,11 +16756,11 @@ const C0 = ne({
16763
16756
  }
16764
16757
  }, {
16765
16758
  twMerge: !0
16766
- }), wx = (t) => {
16759
+ }), yx = (t) => {
16767
16760
  const [e, n, r] = C(t, ["class", "children"], ["variant", "size"]);
16768
16761
  return c(od, x({
16769
16762
  get class() {
16770
- return C0({
16763
+ return x0({
16771
16764
  variant: n.variant,
16772
16765
  size: n.size,
16773
16766
  class: e.class
@@ -16777,8 +16770,8 @@ const C0 = ne({
16777
16770
  children: (o) => typeof e.children == "function" ? e.children(o) : e.children
16778
16771
  }));
16779
16772
  };
16780
- var S0 = {};
16781
- de(S0, {
16773
+ var w0 = {};
16774
+ de(w0, {
16782
16775
  Item: () => ad,
16783
16776
  Root: () => ld,
16784
16777
  ToggleGroup: () => Yo,
@@ -16847,7 +16840,7 @@ function ad(t) {
16847
16840
  }
16848
16841
  }, i));
16849
16842
  }
16850
- function I0(t) {
16843
+ function C0(t) {
16851
16844
  let e;
16852
16845
  const n = `group-${Q()}`, r = E({
16853
16846
  id: n,
@@ -16917,7 +16910,7 @@ function I0(t) {
16917
16910
  }
16918
16911
  function ld(t) {
16919
16912
  const [e, n] = C(t, ["value", "defaultValue", "onChange", "multiple"]), r = A(() => e.value != null ? e.multiple ? e.value : [e.value] : e.value), o = A(() => e.defaultValue != null ? e.multiple ? e.defaultValue : [e.defaultValue] : e.defaultValue);
16920
- return c(I0, x({
16913
+ return c(C0, x({
16921
16914
  get value() {
16922
16915
  return r();
16923
16916
  },
@@ -16935,7 +16928,7 @@ function ld(t) {
16935
16928
  var Yo = Object.assign(ld, {
16936
16929
  Item: ad
16937
16930
  });
16938
- const P0 = ne({
16931
+ const S0 = ne({
16939
16932
  slots: {
16940
16933
  root: "inline-flex items-center justify-center rounded-md border border-slate-200 bg-transparent p-1 dark:border-slate-800",
16941
16934
  item: ["inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium transition-all cursor-pointer", "outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "hover:bg-slate-100 hover:text-slate-500 dark:hover:bg-slate-800 dark:hover:text-slate-400", "data-[pressed]:bg-slate-100 data-[pressed]:text-slate-900 dark:data-[pressed]:bg-slate-800 dark:data-[pressed]:text-slate-50"]
@@ -16969,8 +16962,8 @@ const P0 = ne({
16969
16962
  }
16970
16963
  }, {
16971
16964
  twMerge: !0
16972
- }), Cx = (t) => {
16973
- const [e, n, r] = C(t, ["options", "class"], ["size", "variant"]), o = P0(n);
16965
+ }), xx = (t) => {
16966
+ const [e, n, r] = C(t, ["options", "class"], ["size", "variant"]), o = S0(n);
16974
16967
  return c(Yo, x({
16975
16968
  get class() {
16976
16969
  return o.root({
@@ -17001,8 +16994,8 @@ const P0 = ne({
17001
16994
  }
17002
16995
  }));
17003
16996
  };
17004
- var k0 = {};
17005
- de(k0, {
16997
+ var I0 = {};
16998
+ de(I0, {
17006
16999
  Arrow: () => Te,
17007
17000
  Content: () => ud,
17008
17001
  Portal: () => dd,
@@ -17063,7 +17056,7 @@ function dd(t) {
17063
17056
  }
17064
17057
  });
17065
17058
  }
17066
- function D0(t, e, n) {
17059
+ function P0(t, e, n) {
17067
17060
  const r = t.split("-")[0], o = e.getBoundingClientRect(), s = n.getBoundingClientRect(), i = [], a = o.left + o.width / 2, l = o.top + o.height / 2;
17068
17061
  switch (r) {
17069
17062
  case "top":
@@ -17081,9 +17074,9 @@ function D0(t, e, n) {
17081
17074
  }
17082
17075
  return i;
17083
17076
  }
17084
- var Bt = {}, T0 = 0, kn = !1, yt, qn, Dn;
17077
+ var Bt = {}, k0 = 0, kn = !1, yt, qn, Dn;
17085
17078
  function gd(t) {
17086
- const e = `tooltip-${Q()}`, n = `${++T0}`, r = E({
17079
+ const e = `tooltip-${Q()}`, n = `${++k0}`, r = E({
17087
17080
  id: e,
17088
17081
  openDelay: 700,
17089
17082
  closeDelay: 300,
@@ -17127,7 +17120,7 @@ function gd(t) {
17127
17120
  }, $ = (j) => be(u(), j) || be(g(), j), K = (j) => {
17128
17121
  const H = u(), F = g();
17129
17122
  if (!(!H || !F))
17130
- return D0(j, H, F);
17123
+ return P0(j, H, F);
17131
17124
  }, G = (j) => {
17132
17125
  const H = j.target;
17133
17126
  if ($(H)) {
@@ -17252,7 +17245,7 @@ var Fn = Object.assign(gd, {
17252
17245
  Portal: dd,
17253
17246
  Trigger: fd
17254
17247
  });
17255
- const M0 = ne({
17248
+ const D0 = ne({
17256
17249
  slots: {
17257
17250
  content: ["z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs shadow-md", "animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],
17258
17251
  arrow: ""
@@ -17274,8 +17267,8 @@ const M0 = ne({
17274
17267
  }
17275
17268
  }, {
17276
17269
  twMerge: !0
17277
- }), Sx = (t) => {
17278
- const [e, n, r] = C(t, ["children", "content"], ["variant"]), o = M0(n);
17270
+ }), wx = (t) => {
17271
+ const [e, n, r] = C(t, ["children", "content"], ["variant"]), o = D0(n);
17279
17272
  return c(Fn, x({
17280
17273
  gutter: 4,
17281
17274
  openDelay: 200
@@ -17307,49 +17300,49 @@ const M0 = ne({
17307
17300
  }));
17308
17301
  };
17309
17302
  export {
17310
- F0 as Accordion,
17311
- R0 as Alert,
17312
- $0 as AlertDialog,
17313
- A0 as Badge,
17314
- K0 as Breadcrumbs,
17303
+ E0 as Accordion,
17304
+ L0 as Alert,
17305
+ F0 as AlertDialog,
17306
+ R0 as Badge,
17307
+ $0 as Breadcrumbs,
17315
17308
  Ni as Button,
17316
- z0 as Checkbox,
17317
- N0 as Collapsible,
17318
- _0 as ColorArea,
17319
- B0 as ColorChannelField,
17320
- U0 as ColorField,
17321
- H0 as ColorSlider,
17322
- W0 as ColorSwatch,
17323
- j0 as ColorWheel,
17324
- G0 as Combobox,
17325
- X0 as ComboboxItem,
17326
- Y0 as ContextMenu,
17327
- q0 as Dialog,
17328
- Z0 as DropdownMenu,
17329
- J0 as FileField,
17330
- Q0 as HoverCard,
17331
- ex as Image,
17332
- tx as Link,
17333
- nx as Menubar,
17334
- rx as Meter,
17335
- ox as NavigationMenu,
17336
- sx as NumberField,
17337
- ix as Pagination,
17338
- ax as Popover,
17339
- lx as Progress,
17340
- cx as RadioGroup,
17341
- ux as Search,
17342
- dx as SegmentedControl,
17343
- gx as Select,
17344
- fx as Separator,
17345
- hx as Skeleton,
17346
- px as Slider,
17347
- mx as Switch,
17348
- bx as Tabs,
17349
- vx as TextField,
17350
- yx as ToastProvider,
17351
- wx as ToggleButton,
17352
- Cx as ToggleGroup,
17353
- Sx as Tooltip,
17354
- xx as showToast
17309
+ A0 as Checkbox,
17310
+ K0 as Collapsible,
17311
+ z0 as ColorArea,
17312
+ N0 as ColorChannelField,
17313
+ _0 as ColorField,
17314
+ B0 as ColorSlider,
17315
+ U0 as ColorSwatch,
17316
+ H0 as ColorWheel,
17317
+ W0 as Combobox,
17318
+ j0 as ComboboxItem,
17319
+ G0 as ContextMenu,
17320
+ X0 as Dialog,
17321
+ Y0 as DropdownMenu,
17322
+ q0 as FileField,
17323
+ Z0 as HoverCard,
17324
+ J0 as Image,
17325
+ Q0 as Link,
17326
+ ex as Menubar,
17327
+ tx as Meter,
17328
+ nx as NavigationMenu,
17329
+ rx as NumberField,
17330
+ ox as Pagination,
17331
+ sx as Popover,
17332
+ ix as Progress,
17333
+ ax as RadioGroup,
17334
+ lx as Search,
17335
+ cx as SegmentedControl,
17336
+ ux as Select,
17337
+ dx as Separator,
17338
+ gx as Skeleton,
17339
+ fx as Slider,
17340
+ hx as Switch,
17341
+ px as Tabs,
17342
+ mx as TextField,
17343
+ bx as ToastProvider,
17344
+ yx as ToggleButton,
17345
+ xx as ToggleGroup,
17346
+ wx as Tooltip,
17347
+ vx as showToast
17355
17348
  };