buildgrid-ui 1.14.1 → 1.14.2

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.
@@ -4685,14 +4685,14 @@ function Ac(e, t) {
4685
4685
  e.hasOwnProperty(r) && (typeof e[r] == "object" && e[r] !== null && !Array.isArray(e[r]) && typeof t[r] == "object" && t[r] !== null && !Array.isArray(t[r]) ? n[r] = Ac(e[r], t[r]) : n[r] = e[r]);
4686
4686
  return n;
4687
4687
  }
4688
- const Be = (e) => e ? e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase() : "", mi = (e) => e ? e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replaceAll(" ", "").toLowerCase() : "", tv = (e, t) => mi(e).includes(mi(t)), DE = (e, t) => Be(e) < Be(t) ? -1 : Be(e) > Be(t) ? 1 : 0, _E = (e, t) => Be(e.name) < Be(t.name) ? -1 : Be(e.name) > Be(t.name) ? 1 : 0, OE = (e, t, n) => e[n] < t[n] ? -1 : e[n] > t[n] ? 1 : 0, $E = (e, t, n) => e[n] > t[n] ? -1 : e[n] < t[n] ? 1 : 0, LE = (e, t, n, r) => Be(e[n][r]) < Be(t[n][r]) ? -1 : Be(e[n][r]) > Be(t[n][r]) ? 1 : 0, FE = (e) => e.charAt(0).toUpperCase() + e.slice(1), BE = ({ children: e, className: t, ...n }) => /* @__PURE__ */ i.jsx(
4688
+ const Be = (e) => e ? e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase() : "", mi = (e) => e ? e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replaceAll(" ", "").toLowerCase() : "", tv = (e, t) => mi(e).includes(mi(t)), DE = (e, t) => Be(e) < Be(t) ? -1 : Be(e) > Be(t) ? 1 : 0, _E = (e, t) => Be(e.name) < Be(t.name) ? -1 : Be(e.name) > Be(t.name) ? 1 : 0, OE = (e, t, n) => e[n] < t[n] ? -1 : e[n] > t[n] ? 1 : 0, $E = (e, t, n) => e[n] > t[n] ? -1 : e[n] < t[n] ? 1 : 0, LE = (e, t, n, r) => Be(e[n][r]) < Be(t[n][r]) ? -1 : Be(e[n][r]) > Be(t[n][r]) ? 1 : 0, FE = (e) => e.charAt(0).toUpperCase() + e.slice(1), BE = (e, t) => e.replace(/{{\s*(\w+)\s*}}/g, (n, r) => t[r] !== void 0 ? String(t[r]) : ""), zE = ({ children: e, className: t, ...n }) => /* @__PURE__ */ i.jsx(
4689
4689
  "div",
4690
4690
  {
4691
4691
  className: j("grid w-full auto-rows-[22rem] grid-cols-3 gap-4", t),
4692
4692
  ...n,
4693
4693
  children: e
4694
4694
  }
4695
- ), zE = ({ children: e, className: t, ...n }) => /* @__PURE__ */ i.jsx(
4695
+ ), WE = ({ children: e, className: t, ...n }) => /* @__PURE__ */ i.jsx(
4696
4696
  "div",
4697
4697
  {
4698
4698
  className: j(
@@ -8927,7 +8927,7 @@ function wy(e, t) {
8927
8927
  function On(e) {
8928
8928
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
8929
8929
  }
8930
- var yy = Sl, Cy = Da, Ny = El, Sy = Pl, Ry = La, Ey = kl, Py = Kr, ky = Tl, My = Al, Ty = Dl, jy = Ol, Ay = $l, Iy = Ll, Dy = Bl, _y = zl, Oy = Vl, Wa = "DropdownMenu", [$y, WE] = be(
8930
+ var yy = Sl, Cy = Da, Ny = El, Sy = Pl, Ry = La, Ey = kl, Py = Kr, ky = Tl, My = Al, Ty = Dl, jy = Ol, Ay = $l, Iy = Ll, Dy = Bl, _y = zl, Oy = Vl, Wa = "DropdownMenu", [$y, VE] = be(
8931
8931
  Wa,
8932
8932
  [yl]
8933
8933
  ), ke = yl(), [Ly, Gl] = $y(Wa), Yl = (e) => {
@@ -9110,7 +9110,7 @@ var Qy = "DropdownMenuSubContent", id = d.forwardRef((e, t) => {
9110
9110
  });
9111
9111
  id.displayName = Qy;
9112
9112
  var Jy = Yl, e0 = Kl, cd = ql, ld = Zl, t0 = Ql, dd = Jl, ud = ed, fd = td, n0 = nd, md = rd, pd = od, hd = ad, r0 = Xy, gd = sd, vd = id;
9113
- const o0 = Jy, a0 = e0, VE = t0, HE = cd, GE = r0, YE = n0, s0 = d.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ i.jsxs(
9113
+ const o0 = Jy, a0 = e0, HE = t0, GE = cd, YE = r0, UE = n0, s0 = d.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ i.jsxs(
9114
9114
  gd,
9115
9115
  {
9116
9116
  ref: o,
@@ -9295,7 +9295,7 @@ var f0 = "VisuallyHidden", Va = d.forwardRef(
9295
9295
  )
9296
9296
  );
9297
9297
  Va.displayName = f0;
9298
- var yd = Va, m0 = [" ", "Enter", "ArrowUp", "ArrowDown"], p0 = [" ", "Enter"], Kn = "Select", [qr, Xr, h0] = pn(Kn), [vn, UE] = be(Kn, [
9298
+ var yd = Va, m0 = [" ", "Enter", "ArrowUp", "ArrowDown"], p0 = [" ", "Enter"], Kn = "Select", [qr, Xr, h0] = pn(Kn), [vn, KE] = be(Kn, [
9299
9299
  h0,
9300
9300
  kt
9301
9301
  ]), Zr = kt(), [g0, jt] = vn(Kn), [v0, x0] = vn(Kn), Cd = (e) => {
@@ -10086,7 +10086,7 @@ function T0(e, t) {
10086
10086
  return e.map((n, r) => e[(t + r) % e.length]);
10087
10087
  }
10088
10088
  var j0 = Cd, Xd = Sd, A0 = Ed, I0 = Pd, Zd = kd, D0 = Ad, _0 = Dd, Qd = Od, Jd = Ld, O0 = Fd, $0 = zd, eu = Wd, tu = Vd, nu = Gd;
10089
- const ru = j0, KE = _0, ou = A0, Ga = d.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i.jsxs(
10089
+ const ru = j0, qE = _0, ou = A0, Ga = d.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i.jsxs(
10090
10090
  Xd,
10091
10091
  {
10092
10092
  ref: r,
@@ -10256,7 +10256,7 @@ function V0({ selectedCount: e, onClearSelection: t }) {
10256
10256
  /* @__PURE__ */ i.jsx(me, { variant: "ghost", size: "sm", onClick: t, children: "Clear selection" })
10257
10257
  ] });
10258
10258
  }
10259
- var Ua = "Checkbox", [H0, qE] = be(Ua), [G0, Y0] = H0(Ua), iu = d.forwardRef(
10259
+ var Ua = "Checkbox", [H0, XE] = be(Ua), [G0, Y0] = H0(Ua), iu = d.forwardRef(
10260
10260
  (e, t) => {
10261
10261
  const {
10262
10262
  __scopeCheckbox: n,
@@ -10477,7 +10477,7 @@ function Q0(e, t, n) {
10477
10477
  `), c = new Blob([s], { type: "text/csv;charset=utf-8;" }), l = URL.createObjectURL(c), u = document.createElement("a");
10478
10478
  u.setAttribute("href", l), u.setAttribute("download", `${n}.csv`), u.style.visibility = "hidden", document.body.appendChild(u), u.click(), document.body.removeChild(u);
10479
10479
  }
10480
- const XE = () => {
10480
+ const ZE = () => {
10481
10481
  const [e, t] = de([]);
10482
10482
  return [e, (a) => {
10483
10483
  t([...e, a]);
@@ -10489,7 +10489,7 @@ const XE = () => {
10489
10489
  c.filter((l) => l[a] !== s), t(c);
10490
10490
  }];
10491
10491
  };
10492
- function ZE() {
10492
+ function QE() {
10493
10493
  const [e, t] = de(null);
10494
10494
  return [e, async (r) => {
10495
10495
  if (!(navigator != null && navigator.clipboard))
@@ -10615,7 +10615,7 @@ var n1 = d.forwardRef((e, t) => {
10615
10615
  function Qa(e) {
10616
10616
  return e ? "open" : "closed";
10617
10617
  }
10618
- var r1 = mu, o1 = hu, a1 = gu, dt = "Accordion", s1 = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ja, i1, c1] = pn(dt), [Jr, QE] = be(dt, [
10618
+ var r1 = mu, o1 = hu, a1 = gu, dt = "Accordion", s1 = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ja, i1, c1] = pn(dt), [Jr, JE] = be(dt, [
10619
10619
  c1,
10620
10620
  fu
10621
10621
  ]), es = fu(), vu = _.forwardRef(
@@ -10829,7 +10829,7 @@ function Pu(e) {
10829
10829
  return e ? "open" : "closed";
10830
10830
  }
10831
10831
  var h1 = vu, g1 = yu, v1 = Nu, ku = Su, Mu = Eu;
10832
- const JE = h1, x1 = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(g1, { ref: n, className: j("border-b", e), ...t }));
10832
+ const eP = h1, x1 = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(g1, { ref: n, className: j("border-b", e), ...t }));
10833
10833
  x1.displayName = "AccordionItem";
10834
10834
  const b1 = d.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i.jsx(v1, { className: "flex", children: /* @__PURE__ */ i.jsxs(
10835
10835
  ku,
@@ -11113,7 +11113,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
11113
11113
  const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
11114
11114
  t && o && (document.getElementById(t) || console.warn(r));
11115
11115
  }, [r, e, t]), null;
11116
- }, is = Au, Uu = Du, cs = Ou, to = $u, no = Lu, ls = Bu, ds = Wu, ro = Hu, Ku = "AlertDialog", [A1, eP] = be(Ku, [
11116
+ }, is = Au, Uu = Du, cs = Ou, to = $u, no = Lu, ls = Bu, ds = Wu, ro = Hu, Ku = "AlertDialog", [A1, tP] = be(Ku, [
11117
11117
  ju
11118
11118
  ]), ut = ju(), qu = (e) => {
11119
11119
  const { __scopeAlertDialog: t, ...n } = e, r = ut(t);
@@ -11213,7 +11213,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
11213
11213
  ) || console.warn(t);
11214
11214
  }, [t, e]), null;
11215
11215
  }, z1 = qu, W1 = Xu, V1 = Zu, cf = Qu, lf = Ju, df = of, uf = sf, ff = tf, mf = rf;
11216
- const tP = z1, nP = W1, H1 = V1, pf = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
11216
+ const nP = z1, rP = W1, H1 = V1, pf = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
11217
11217
  cf,
11218
11218
  {
11219
11219
  className: j(
@@ -11301,7 +11301,7 @@ const Z1 = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
11301
11301
  }
11302
11302
  ));
11303
11303
  Z1.displayName = uf.displayName;
11304
- const rP = Ar(function(t, n) {
11304
+ const oP = Ar(function(t, n) {
11305
11305
  const {
11306
11306
  options: r,
11307
11307
  placeholder: o = "Type to search...",
@@ -11418,7 +11418,7 @@ const rP = Ar(function(t, n) {
11418
11418
  )
11419
11419
  ] });
11420
11420
  });
11421
- var us = "Avatar", [Q1, oP] = be(us), [J1, hf] = Q1(us), gf = d.forwardRef(
11421
+ var us = "Avatar", [Q1, aP] = be(us), [J1, hf] = Q1(us), gf = d.forwardRef(
11422
11422
  (e, t) => {
11423
11423
  const { __scopeAvatar: n, ...r } = e, [o, a] = d.useState("idle");
11424
11424
  return /* @__PURE__ */ i.jsx(
@@ -11895,7 +11895,7 @@ const sC = {
11895
11895
  weekStartsOn: 0,
11896
11896
  firstWeekContainsDate: 1
11897
11897
  }
11898
- }, aP = ({
11898
+ }, sP = ({
11899
11899
  selectedDate: e,
11900
11900
  onChange: t,
11901
11901
  language: n = "enUS"
@@ -12304,7 +12304,7 @@ function oo({ asChild: e, children: t }, n) {
12304
12304
  return e && d.isValidElement(t) ? d.cloneElement(dN(t), { ref: t.ref }, n(t.props.children)) : n(t);
12305
12305
  }
12306
12306
  var uN = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
12307
- const ms = is, fN = Uu, mN = cs, sP = ro, Af = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
12307
+ const ms = is, fN = Uu, mN = cs, iP = ro, Af = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
12308
12308
  to,
12309
12309
  {
12310
12310
  ref: n,
@@ -12389,7 +12389,7 @@ const vs = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
12389
12389
  }
12390
12390
  ));
12391
12391
  vs.displayName = De.displayName;
12392
- const iP = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(ms, { ...t, children: /* @__PURE__ */ i.jsx(ao, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ i.jsx(vs, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), If = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
12392
+ const cP = ({ children: e, ...t }) => /* @__PURE__ */ i.jsx(ms, { ...t, children: /* @__PURE__ */ i.jsx(ao, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ i.jsx(vs, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), If = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
12393
12393
  /* @__PURE__ */ i.jsx(Sa, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
12394
12394
  /* @__PURE__ */ i.jsx(
12395
12395
  De.Input,
@@ -12526,7 +12526,7 @@ const xN = Vt(
12526
12526
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
12527
12527
  ), bN = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(Lf, { ref: n, className: j(xN(), e), ...t }));
12528
12528
  bN.displayName = Lf.displayName;
12529
- var xs = "Popover", [Ff, cP] = be(xs, [
12529
+ var xs = "Popover", [Ff, lP] = be(xs, [
12530
12530
  kt
12531
12531
  ]), Xn = kt(), [wN, It] = Ff(xs), Bf = (e) => {
12532
12532
  const {
@@ -12737,7 +12737,7 @@ function qf(e) {
12737
12737
  return e ? "open" : "closed";
12738
12738
  }
12739
12739
  var MN = Bf, TN = Wf, jN = Hf, AN = Gf, Xf = Yf;
12740
- const IN = MN, DN = jN, lP = TN, Zf = d.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ i.jsx(AN, { children: /* @__PURE__ */ i.jsx(
12740
+ const IN = MN, DN = jN, dP = TN, Zf = d.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ i.jsx(AN, { children: /* @__PURE__ */ i.jsx(
12741
12741
  Xf,
12742
12742
  {
12743
12743
  ref: o,
@@ -12981,7 +12981,7 @@ const Ui = Vt("mx-1", {
12981
12981
  }
12982
12982
  );
12983
12983
  LN.displayName = "MultiSelect";
12984
- var xn = "NavigationMenu", [ws, em, FN] = pn(xn), [ca, BN, zN] = pn(xn), [ys, dP] = be(
12984
+ var xn = "NavigationMenu", [ws, em, FN] = pn(xn), [ca, BN, zN] = pn(xn), [ys, uP] = be(
12985
12985
  xn,
12986
12986
  [FN, zN]
12987
12987
  ), [WN, We] = ys(xn), [VN, HN] = ys(xn), tm = d.forwardRef(
@@ -13578,7 +13578,7 @@ const rS = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
13578
13578
  }
13579
13579
  ));
13580
13580
  rS.displayName = wm.displayName;
13581
- const uP = eS, oS = Vt(
13581
+ const fP = eS, oS = Vt(
13582
13582
  "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
13583
13583
  ), aS = d.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ i.jsxs(
13584
13584
  ym,
@@ -13612,7 +13612,7 @@ const sS = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
13612
13612
  }
13613
13613
  ));
13614
13614
  sS.displayName = Nm.displayName;
13615
- const fP = tS, Rm = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx("div", { className: j("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ i.jsx(
13615
+ const mP = tS, Rm = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx("div", { className: j("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ i.jsx(
13616
13616
  Sm,
13617
13617
  {
13618
13618
  className: j(
@@ -13716,7 +13716,7 @@ const mS = ({ className: e, ...t }) => /* @__PURE__ */ i.jsxs(
13716
13716
  }
13717
13717
  );
13718
13718
  mS.displayName = "PaginationEllipsis";
13719
- var Ps = "Progress", ks = 100, [pS, mP] = be(Ps), [hS, gS] = pS(Ps), Em = d.forwardRef(
13719
+ var Ps = "Progress", ks = 100, [pS, pP] = be(Ps), [hS, gS] = pS(Ps), Em = d.forwardRef(
13720
13720
  (e, t) => {
13721
13721
  const {
13722
13722
  __scopeProgress: n,
@@ -13809,7 +13809,7 @@ const jm = d.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */
13809
13809
  }
13810
13810
  ));
13811
13811
  jm.displayName = Tm.displayName;
13812
- function pP(e) {
13812
+ function hP(e) {
13813
13813
  const {
13814
13814
  showStrengthMeter: t = !0,
13815
13815
  className: n,
@@ -13963,7 +13963,7 @@ var SS = (e) => {
13963
13963
  function Om(e) {
13964
13964
  return e ? "checked" : "unchecked";
13965
13965
  }
13966
- var RS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ts = "RadioGroup", [ES, hP] = be(Ts, [
13966
+ var RS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ts = "RadioGroup", [ES, gP] = be(Ts, [
13967
13967
  Mt,
13968
13968
  Am
13969
13969
  ]), $m = Mt(), Lm = Am(), [PS, kS] = ES(Ts), Fm = d.forwardRef(
@@ -14093,7 +14093,7 @@ const AS = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
14093
14093
  }
14094
14094
  ));
14095
14095
  AS.displayName = Hm.displayName;
14096
- const gP = [
14096
+ const vP = [
14097
14097
  "primary",
14098
14098
  "secondary",
14099
14099
  "success",
@@ -14102,7 +14102,7 @@ const gP = [
14102
14102
  "info",
14103
14103
  "white",
14104
14104
  "neutral"
14105
- ], vP = ["xs", "sm", "md", "lg", "xl", "2xl"], Qi = Vt(
14105
+ ], xP = ["xs", "sm", "md", "lg", "xl", "2xl"], Qi = Vt(
14106
14106
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
14107
14107
  {
14108
14108
  variants: {
@@ -14137,7 +14137,7 @@ const gP = [
14137
14137
  t && /* @__PURE__ */ i.jsx("p", { className: j("italic", Qi({ color: r })), children: t })
14138
14138
  ] });
14139
14139
  };
14140
- var js = "Switch", [DS, xP] = be(js), [_S, OS] = DS(js), Gm = d.forwardRef(
14140
+ var js = "Switch", [DS, bP] = be(js), [_S, OS] = DS(js), Gm = d.forwardRef(
14141
14141
  (e, t) => {
14142
14142
  const {
14143
14143
  __scopeSwitch: n,
@@ -14259,7 +14259,7 @@ const FS = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
14259
14259
  }
14260
14260
  ));
14261
14261
  FS.displayName = qm.displayName;
14262
- var As = "Tabs", [BS, bP] = be(As, [
14262
+ var As = "Tabs", [BS, wP] = be(As, [
14263
14263
  Mt
14264
14264
  ]), Xm = Mt(), [zS, Is] = BS(As), Zm = d.forwardRef(
14265
14265
  (e, t) => {
@@ -14401,7 +14401,7 @@ function ap(e, t) {
14401
14401
  return `${e}-content-${t}`;
14402
14402
  }
14403
14403
  var WS = Zm, sp = Jm, ip = tp, cp = rp;
14404
- const wP = WS, VS = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
14404
+ const yP = WS, VS = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
14405
14405
  sp,
14406
14406
  {
14407
14407
  ref: n,
@@ -14709,7 +14709,7 @@ var bR = Ar(function(e, t) {
14709
14709
  })) : null;
14710
14710
  }));
14711
14711
  });
14712
- const lr = ({ onClick: e }) => /* @__PURE__ */ i.jsx(me, { onClick: () => e(), variant: "ghost", size: "xl", className: "ml-auto px-3", children: /* @__PURE__ */ i.jsx(bt, { className: "!h-6 !w-6" }) }), yP = {
14712
+ const lr = ({ onClick: e }) => /* @__PURE__ */ i.jsx(me, { onClick: () => e(), variant: "ghost", size: "xl", className: "ml-auto px-3", children: /* @__PURE__ */ i.jsx(bt, { className: "!h-6 !w-6" }) }), CP = {
14713
14713
  ...it,
14714
14714
  success: (e, t) => {
14715
14715
  const n = it.success(e, {
@@ -14739,7 +14739,7 @@ const lr = ({ onClick: e }) => /* @__PURE__ */ i.jsx(me, { onClick: () => e(), v
14739
14739
  });
14740
14740
  return n;
14741
14741
  }
14742
- }, CP = ({ ...e }) => /* @__PURE__ */ i.jsx(
14742
+ }, NP = ({ ...e }) => /* @__PURE__ */ i.jsx(
14743
14743
  bR,
14744
14744
  {
14745
14745
  className: "toaster group",
@@ -14807,7 +14807,7 @@ const dp = Vt(
14807
14807
  }
14808
14808
  ));
14809
14809
  yR.displayName = lp.displayName;
14810
- var bn = "ToggleGroup", [up, NP] = be(bn, [
14810
+ var bn = "ToggleGroup", [up, SP] = be(bn, [
14811
14811
  Mt
14812
14812
  ]), fp = Mt(), _s = _.forwardRef((e, t) => {
14813
14813
  const { type: n, ...r } = e;
@@ -14964,7 +14964,7 @@ const PR = d.forwardRef(({ className: e, children: t, variant: n, size: r, ...o
14964
14964
  );
14965
14965
  });
14966
14966
  PR.displayName = xp.displayName;
14967
- var [so, SP] = be("Tooltip", [
14967
+ var [so, RP] = be("Tooltip", [
14968
14968
  kt
14969
14969
  ]), io = kt(), wp = "TooltipProvider", kR = 700, ma = "tooltip.open", [MR, Os] = so(wp), yp = (e) => {
14970
14970
  const {
@@ -15274,7 +15274,7 @@ function VR(e) {
15274
15274
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
15275
15275
  }
15276
15276
  var HR = yp, GR = Cp, YR = Np, UR = Sp, kp = Rp;
15277
- const RP = HR, EP = GR, PP = YR, KR = d.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ i.jsx(UR, { children: /* @__PURE__ */ i.jsx(
15277
+ const EP = HR, PP = GR, kP = YR, KR = d.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ i.jsx(UR, { children: /* @__PURE__ */ i.jsx(
15278
15278
  kp,
15279
15279
  {
15280
15280
  ref: r,
@@ -15300,7 +15300,7 @@ const Mp = d.createContext(void 0), nc = {
15300
15300
  confirm: { icon: vi, className: "text-blue-500" },
15301
15301
  custom: { icon: vi, className: "text-gray-500" }
15302
15302
  };
15303
- function kP({ children: e }) {
15303
+ function MP({ children: e }) {
15304
15304
  var h, x, w, b, y, C, N, M, S, R, P, O, K;
15305
15305
  const [t, n] = d.useState({
15306
15306
  isOpen: !1,
@@ -15408,16 +15408,16 @@ function kP({ children: e }) {
15408
15408
  ) })
15409
15409
  ] });
15410
15410
  }
15411
- function MP() {
15411
+ function TP() {
15412
15412
  const e = d.useContext(Mp);
15413
15413
  if (e === void 0)
15414
15414
  throw new Error("useDialog must be used within a DialogProvider");
15415
15415
  return e;
15416
15416
  }
15417
- const TP = (e = !1) => {
15417
+ const jP = (e = !1) => {
15418
15418
  const [t, n] = d.useState(e), r = d.useCallback(() => n(!0), []), o = d.useCallback(() => n(!1), []), a = d.useCallback(() => n((s) => !s), []);
15419
15419
  return { isOpen: t, open: r, close: o, toggle: a };
15420
- }, jP = (e = !1) => {
15420
+ }, AP = (e = !1) => {
15421
15421
  const [t, n] = d.useState(e), r = d.useCallback(() => n(!0), []), o = d.useCallback(() => n(!1), []);
15422
15422
  return [t, r, o];
15423
15423
  };
@@ -16011,7 +16011,7 @@ var uE = Et.ArrayBuffer, Do = Et.FileReader, Ot = Et.URL || Et.webkitURL, fE = /
16011
16011
  }
16012
16012
  }]), e;
16013
16013
  }();
16014
- const AP = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
16014
+ const IP = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
16015
16015
  new pE(
16016
16016
  n,
16017
16017
  r ?? {
@@ -16034,7 +16034,7 @@ const AP = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
16034
16034
  }), formatFileSize: (n) => {
16035
16035
  var r = n === 0 ? 0 : Math.floor(Math.log(n) / Math.log(1024));
16036
16036
  return +(n / Math.pow(1024, r)).toFixed(2) * 1 + " " + ["B", "kB", "MB", "GB", "TB"][r];
16037
- } }), IP = function(e, t) {
16037
+ } }), DP = function(e, t) {
16038
16038
  const [n, r] = de(!1);
16039
16039
  function o({ key: s }) {
16040
16040
  s === e && r(!0);
@@ -16048,7 +16048,7 @@ const AP = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
16048
16048
  n && (t == null || t(n));
16049
16049
  }, [n]), n;
16050
16050
  };
16051
- function DP(e, t) {
16051
+ function _P(e, t) {
16052
16052
  const [n, r] = de(() => {
16053
16053
  try {
16054
16054
  const s = window.localStorage.getItem(e);
@@ -16072,7 +16072,7 @@ function DP(e, t) {
16072
16072
  }
16073
16073
  }];
16074
16074
  }
16075
- function _P(e) {
16075
+ function OP(e) {
16076
16076
  const [t, n] = de(!1);
16077
16077
  return Pe(() => {
16078
16078
  const r = window.matchMedia(e);
@@ -16082,7 +16082,7 @@ function _P(e) {
16082
16082
  }, [t, e]), t;
16083
16083
  }
16084
16084
  const _o = 768;
16085
- function OP() {
16085
+ function $P() {
16086
16086
  const [e, t] = d.useState(void 0);
16087
16087
  return d.useEffect(() => {
16088
16088
  const n = window.matchMedia(`(max-width: ${_o - 1}px)`), r = () => {
@@ -16091,7 +16091,7 @@ function OP() {
16091
16091
  return n.addEventListener("change", r), t(window.innerWidth < _o), () => n.removeEventListener("change", r);
16092
16092
  }, []), !!e;
16093
16093
  }
16094
- const $P = () => {
16094
+ const LP = () => {
16095
16095
  const [e, t] = de(null), [n, r] = de(!1);
16096
16096
  return Pe(() => ((() => {
16097
16097
  const s = window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone;
@@ -16442,7 +16442,7 @@ function hE({
16442
16442
  )
16443
16443
  ] });
16444
16444
  }
16445
- const LP = _.forwardRef(hE), gE = (e) => {
16445
+ const FP = _.forwardRef(hE), gE = (e) => {
16446
16446
  const { notFoundText: t, notFoundAction: n, icon: r, className: o } = e;
16447
16447
  return /* @__PURE__ */ i.jsxs(
16448
16448
  "div",
@@ -16461,7 +16461,7 @@ const LP = _.forwardRef(hE), gE = (e) => {
16461
16461
  }
16462
16462
  );
16463
16463
  };
16464
- function FP(e) {
16464
+ function BP(e) {
16465
16465
  const { triggerElement: t, steps: n } = e, [r, o] = de(!1), [a, s] = de(0), c = () => {
16466
16466
  s((u) => u < n.length - 1 ? u + 1 : u);
16467
16467
  }, l = () => {
@@ -16510,7 +16510,7 @@ function FP(e) {
16510
16510
  ] })
16511
16511
  ] });
16512
16512
  }
16513
- const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerouslySetInnerHTML: { __html: e.children } }), vE = (e) => {
16513
+ const zP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerouslySetInnerHTML: { __html: e.children } }), vE = (e) => {
16514
16514
  const { execCommand: t } = e, n = () => {
16515
16515
  const a = document.createElement("input");
16516
16516
  a.type = "file", a.accept = "image/*", a.onchange = async (s) => {
@@ -16602,7 +16602,7 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16602
16602
  /* @__PURE__ */ i.jsx(me, { variant: "outline", size: "icon", onClick: n, type: "button", children: /* @__PURE__ */ i.jsx(Jv, { size: 16 }) }),
16603
16603
  /* @__PURE__ */ i.jsx(me, { variant: "outline", size: "icon", onClick: r, type: "button", children: /* @__PURE__ */ i.jsx(ax, { size: 16 }) })
16604
16604
  ] });
16605
- }, zP = ({
16605
+ }, WP = ({
16606
16606
  initialValue: e = "",
16607
16607
  onChange: t,
16608
16608
  className: n
@@ -16633,7 +16633,7 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16633
16633
  }
16634
16634
  )
16635
16635
  ] });
16636
- }, WP = (e) => {
16636
+ }, VP = (e) => {
16637
16637
  const { observerOptions: t, images: n, classNames: r } = e, [o, a] = de([]), s = xt(null);
16638
16638
  return Pe(() => {
16639
16639
  const c = {
@@ -16687,7 +16687,7 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16687
16687
  ))
16688
16688
  }
16689
16689
  );
16690
- }, VP = (e) => {
16690
+ }, HP = (e) => {
16691
16691
  const {
16692
16692
  currentMonth: t,
16693
16693
  currentYear: n,
@@ -16754,7 +16754,7 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16754
16754
  onNextPage: () => t(a + 1)
16755
16755
  }
16756
16756
  )
16757
- ] }), HP = (e) => {
16757
+ ] }), GP = (e) => {
16758
16758
  const {
16759
16759
  data: t = [],
16760
16760
  perPage: n = 50,
@@ -16799,7 +16799,7 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16799
16799
  }
16800
16800
  )
16801
16801
  ] });
16802
- }, GP = ({
16802
+ }, YP = ({
16803
16803
  fixed: e,
16804
16804
  isOpen: t,
16805
16805
  onToggle: n,
@@ -16836,7 +16836,7 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16836
16836
  ),
16837
16837
  e && /* @__PURE__ */ i.jsx("div", { className: "w-72 relative" })
16838
16838
  ] });
16839
- }, YP = ({
16839
+ }, UP = ({
16840
16840
  children: e,
16841
16841
  className: t
16842
16842
  }) => /* @__PURE__ */ i.jsx(
@@ -16846,13 +16846,13 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16846
16846
  "aria-label": "Sidebar header",
16847
16847
  children: e
16848
16848
  }
16849
- ), UP = ({
16849
+ ), KP = ({
16850
16850
  children: e,
16851
16851
  className: t
16852
- }) => /* @__PURE__ */ i.jsx("nav", { "aria-label": "Sidebar navigation", className: t, children: e }), KP = ({
16852
+ }) => /* @__PURE__ */ i.jsx("nav", { "aria-label": "Sidebar navigation", className: t, children: e }), qP = ({
16853
16853
  children: e,
16854
16854
  className: t
16855
- }) => /* @__PURE__ */ i.jsx("ul", { className: j("flex flex-col gap-2 my-4 px-4", t), children: e }), qP = ({
16855
+ }) => /* @__PURE__ */ i.jsx("ul", { className: j("flex flex-col gap-2 my-4 px-4", t), children: e }), XP = ({
16856
16856
  children: e,
16857
16857
  className: t,
16858
16858
  onClick: n
@@ -16866,17 +16866,17 @@ const BP = (e) => /* @__PURE__ */ i.jsx("div", { className: "unreset", dangerous
16866
16866
  onClick: n,
16867
16867
  children: e
16868
16868
  }
16869
- ), XP = ({
16869
+ ), ZP = ({
16870
16870
  children: e,
16871
16871
  className: t
16872
16872
  }) => /* @__PURE__ */ i.jsx("footer", { className: j("mt-auto p-4 text-sm", t), "aria-label": "Sidebar footer", children: e });
16873
16873
  export {
16874
- JE as Accordion,
16874
+ eP as Accordion,
16875
16875
  w1 as AccordionContent,
16876
16876
  x1 as AccordionItem,
16877
16877
  b1 as AccordionTrigger,
16878
16878
  ns as AdaptiveInput,
16879
- tP as AlertDialog,
16879
+ nP as AlertDialog,
16880
16880
  X1 as AlertDialogAction,
16881
16881
  Z1 as AlertDialogCancel,
16882
16882
  G1 as AlertDialogContent,
@@ -16886,16 +16886,16 @@ export {
16886
16886
  pf as AlertDialogOverlay,
16887
16887
  H1 as AlertDialogPortal,
16888
16888
  K1 as AlertDialogTitle,
16889
- nP as AlertDialogTrigger,
16890
- rP as Autocomplete,
16889
+ rP as AlertDialogTrigger,
16890
+ oP as Autocomplete,
16891
16891
  rC as Avatar,
16892
16892
  aC as AvatarFallback,
16893
16893
  oC as AvatarImage,
16894
16894
  kn as Badge,
16895
- zE as BentoCard,
16896
- BE as BentoGrid,
16895
+ WE as BentoCard,
16896
+ zE as BentoGrid,
16897
16897
  me as Button,
16898
- aP as Calendar,
16898
+ sP as Calendar,
16899
16899
  OC as Card,
16900
16900
  BC as CardContent,
16901
16901
  FC as CardDescription,
@@ -16904,7 +16904,7 @@ export {
16904
16904
  LC as CardTitle,
16905
16905
  Ka as Checkbox,
16906
16906
  vs as Command,
16907
- iP as CommandDialog,
16907
+ cP as CommandDialog,
16908
16908
  _f as CommandEmpty,
16909
16909
  sa as CommandGroup,
16910
16910
  If as CommandInput,
@@ -16913,51 +16913,51 @@ export {
16913
16913
  Of as CommandSeparator,
16914
16914
  hN as CommandShortcut,
16915
16915
  gN as CurrencyInput,
16916
- LP as DataTable,
16916
+ FP as DataTable,
16917
16917
  ms as Dialog,
16918
- sP as DialogClose,
16918
+ iP as DialogClose,
16919
16919
  ao as DialogContent,
16920
16920
  gs as DialogDescription,
16921
16921
  pN as DialogFooter,
16922
16922
  ps as DialogHeader,
16923
16923
  Af as DialogOverlay,
16924
16924
  mN as DialogPortal,
16925
- kP as DialogProvider,
16925
+ MP as DialogProvider,
16926
16926
  hs as DialogTitle,
16927
16927
  fN as DialogTrigger,
16928
16928
  o0 as DropdownMenu,
16929
16929
  bd as DropdownMenuCheckboxItem,
16930
16930
  xd as DropdownMenuContent,
16931
- VE as DropdownMenuGroup,
16931
+ HE as DropdownMenuGroup,
16932
16932
  c0 as DropdownMenuItem,
16933
16933
  wd as DropdownMenuLabel,
16934
- HE as DropdownMenuPortal,
16935
- YE as DropdownMenuRadioGroup,
16934
+ GE as DropdownMenuPortal,
16935
+ UE as DropdownMenuRadioGroup,
16936
16936
  l0 as DropdownMenuRadioItem,
16937
16937
  Xo as DropdownMenuSeparator,
16938
16938
  d0 as DropdownMenuShortcut,
16939
- GE as DropdownMenuSub,
16939
+ YE as DropdownMenuSub,
16940
16940
  i0 as DropdownMenuSubContent,
16941
16941
  s0 as DropdownMenuSubTrigger,
16942
16942
  a0 as DropdownMenuTrigger,
16943
16943
  gE as EmptyItems,
16944
- FP as HelpCarousel,
16945
- BP as HtmlTextArea,
16946
- zP as HtmlTextEditor,
16944
+ BP as HelpCarousel,
16945
+ zP as HtmlTextArea,
16946
+ WP as HtmlTextEditor,
16947
16947
  Qr as Input,
16948
16948
  bN as Label,
16949
- WP as LazyImageGallery,
16950
- VP as MonthNavigator,
16949
+ VP as LazyImageGallery,
16950
+ HP as MonthNavigator,
16951
16951
  LN as MultiSelect,
16952
16952
  nS as NavigationMenu,
16953
16953
  sS as NavigationMenuContent,
16954
16954
  iS as NavigationMenuIndicator,
16955
- uP as NavigationMenuItem,
16956
- fP as NavigationMenuLink,
16955
+ fP as NavigationMenuItem,
16956
+ mP as NavigationMenuLink,
16957
16957
  rS as NavigationMenuList,
16958
16958
  aS as NavigationMenuTrigger,
16959
16959
  Rm as NavigationMenuViewport,
16960
- HP as PaginatedItems,
16960
+ GP as PaginatedItems,
16961
16961
  cS as Pagination,
16962
16962
  lS as PaginationContent,
16963
16963
  Ip as PaginationControls,
@@ -16966,9 +16966,9 @@ export {
16966
16966
  Es as PaginationLink,
16967
16967
  fS as PaginationNext,
16968
16968
  uS as PaginationPrevious,
16969
- pP as PasswordInput,
16969
+ hP as PasswordInput,
16970
16970
  IN as Popover,
16971
- lP as PopoverAnchor,
16971
+ dP as PopoverAnchor,
16972
16972
  Zf as PopoverContent,
16973
16973
  DN as PopoverTrigger,
16974
16974
  jm as Progress,
@@ -16976,7 +16976,7 @@ export {
16976
16976
  AS as RadioGroupItem,
16977
16977
  ru as Select,
16978
16978
  Ya as SelectContent,
16979
- KE as SelectGroup,
16979
+ qE as SelectGroup,
16980
16980
  Lt as SelectItem,
16981
16981
  L0 as SelectLabel,
16982
16982
  su as SelectScrollDownButton,
@@ -16985,12 +16985,12 @@ export {
16985
16985
  Ga as SelectTrigger,
16986
16986
  ou as SelectValue,
16987
16987
  ia as Separator,
16988
- GP as Sidebar,
16989
- XP as SidebarFooter,
16990
- YP as SidebarHeader,
16991
- KP as SidebarList,
16992
- qP as SidebarListItem,
16993
- UP as SidebarNav,
16988
+ YP as Sidebar,
16989
+ ZP as SidebarFooter,
16990
+ UP as SidebarHeader,
16991
+ qP as SidebarList,
16992
+ XP as SidebarListItem,
16993
+ KP as SidebarNav,
16994
16994
  na as Skeleton,
16995
16995
  IS as Spinner,
16996
16996
  FS as Switch,
@@ -17002,19 +17002,19 @@ export {
17002
17002
  gr as TableHead,
17003
17003
  Ca as TableHeader,
17004
17004
  Tn as TableRow,
17005
- wP as Tabs,
17005
+ yP as Tabs,
17006
17006
  GS as TabsContent,
17007
17007
  VS as TabsList,
17008
17008
  HS as TabsTrigger,
17009
17009
  YS as Textarea,
17010
- CP as Toaster,
17010
+ NP as Toaster,
17011
17011
  yR as Toggle,
17012
17012
  ER as ToggleGroup,
17013
17013
  PR as ToggleGroupItem,
17014
- EP as Tooltip,
17014
+ PP as Tooltip,
17015
17015
  KR as TooltipContent,
17016
- RP as TooltipProvider,
17017
- PP as TooltipTrigger,
17016
+ EP as TooltipProvider,
17017
+ kP as TooltipTrigger,
17018
17018
  wx as badgeVariants,
17019
17019
  wa as buttonVariants,
17020
17020
  FE as capitalize,
@@ -17039,25 +17039,26 @@ export {
17039
17039
  Be as normalizeString,
17040
17040
  mi as normalizeStringToCompare,
17041
17041
  fi as padString,
17042
+ BE as replaceTemplateWithVariables,
17042
17043
  OE as sortByField,
17043
17044
  $E as sortByFieldDesc,
17044
17045
  _E as sortByName,
17045
17046
  LE as sortByNestedField,
17046
17047
  DE as sortNormalize,
17047
- gP as spinnerColors,
17048
- vP as spinnerSizes,
17049
- yP as toast,
17048
+ vP as spinnerColors,
17049
+ xP as spinnerSizes,
17050
+ CP as toast,
17050
17051
  dp as toggleVariants,
17051
- XE as useArray,
17052
- ZE as useCopyToClipboard,
17052
+ ZE as useArray,
17053
+ QE as useCopyToClipboard,
17053
17054
  J0 as useDebounce,
17054
- MP as useDialog,
17055
- TP as useDisclosure,
17056
- jP as useDisclosureBool,
17057
- AP as useFileUtilities,
17058
- OP as useIsMobile,
17059
- IP as useKeyPress,
17060
- DP as useLocalStorage,
17061
- _P as useMediaQuery,
17062
- $P as usePWAInstall
17055
+ TP as useDialog,
17056
+ jP as useDisclosure,
17057
+ AP as useDisclosureBool,
17058
+ IP as useFileUtilities,
17059
+ $P as useIsMobile,
17060
+ DP as useKeyPress,
17061
+ _P as useLocalStorage,
17062
+ OP as useMediaQuery,
17063
+ LP as usePWAInstall
17063
17064
  };