@g4rcez/components 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as C from "react";
2
- import re, { forwardRef as Ye, useRef as pe, useEffect as xe, useState as ke, useLayoutEffect as la, createContext as cn, useId as Rn, useContext as Ze, useInsertionEffect as Jy, useMemo as rt, useCallback as St, Children as KS, isValidElement as YS, Fragment as Xe, createElement as tn, Component as GS, useImperativeHandle as co, useReducer as ZS } from "react";
2
+ import re, { forwardRef as Ye, useRef as pe, useEffect as we, useState as ke, useLayoutEffect as la, createContext as cn, useId as Rn, useContext as Ze, useInsertionEffect as Jy, useMemo as rt, useCallback as St, Children as KS, isValidElement as YS, Fragment as Xe, createElement as tn, Component as GS, useImperativeHandle as co, useReducer as ZS } from "react";
3
3
  import { jsx as w, jsxs as Y, Fragment as ca } from "react/jsx-runtime";
4
4
  import * as ua from "react-dom";
5
5
  import eb, { flushSync as tb } from "react-dom";
@@ -149,7 +149,7 @@ function Zs() {
149
149
  var vo = $n(Ne, et);
150
150
  if (typeof lt > "u")
151
151
  lt = [];
152
- else if (we(lt, q) >= 0)
152
+ else if (xe(lt, q) >= 0)
153
153
  return "[Circular]";
154
154
  function On(yo, Oa, US) {
155
155
  if (Oa && (lt = O.call(lt), lt.push(Oa)), US) {
@@ -293,7 +293,7 @@ function Zs() {
293
293
  var q = g.call(p.call(H), /^function\s*([\w$]+)/);
294
294
  return q ? q[1] : null;
295
295
  }
296
- function we(H, q) {
296
+ function xe(H, q) {
297
297
  if (H.indexOf)
298
298
  return H.indexOf(q);
299
299
  for (var Ve = 0, et = H.length; Ve < et; Ve++)
@@ -405,7 +405,7 @@ function Zs() {
405
405
  }
406
406
  function Jt(H) {
407
407
  for (var q = 0; q < H.length; q++)
408
- if (we(H[q], `
408
+ if (xe(H[q], `
409
409
  `) >= 0)
410
410
  return !1;
411
411
  return !0;
@@ -1001,11 +1001,11 @@ function Bd() {
1001
1001
  throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1002
1002
  var z = ee(G), ae = z.length > 0 ? z[0] : "", ce = $("%" + ae + "%", Q), Se = ce.name, Ee = ce.value, Ce = !1, Pe = ce.alias;
1003
1003
  Pe && (ae = Pe[0], W(z, M([0, 1], Pe)));
1004
- for (var Te = 1, we = !0; Te < z.length; Te += 1) {
1004
+ for (var Te = 1, xe = !0; Te < z.length; Te += 1) {
1005
1005
  var We = z[Te], te = K(We, 0, 1), Z = K(We, -1);
1006
1006
  if ((te === '"' || te === "'" || te === "`" || Z === '"' || Z === "'" || Z === "`") && te !== Z)
1007
1007
  throw new a("property names with quotes must have matching quotes");
1008
- if ((We === "constructor" || !we) && (Ce = !0), ae += "." + We, Se = "%" + ae + "%", V(A, Se))
1008
+ if ((We === "constructor" || !xe) && (Ce = !0), ae += "." + We, Se = "%" + ae + "%", V(A, Se))
1009
1009
  Ee = A[Se];
1010
1010
  else if (Ee != null) {
1011
1011
  if (!(We in Ee)) {
@@ -1015,10 +1015,10 @@ function Bd() {
1015
1015
  }
1016
1016
  if (v && Te + 1 >= z.length) {
1017
1017
  var F = v(Ee, We);
1018
- we = !!F, we && "get" in F && !("originalValue" in F.get) ? Ee = F.get : Ee = Ee[We];
1018
+ xe = !!F, xe && "get" in F && !("originalValue" in F.get) ? Ee = F.get : Ee = Ee[We];
1019
1019
  } else
1020
- we = V(Ee, We), Ee = Ee[We];
1021
- we && !Ce && (A[Se] = Ee);
1020
+ xe = V(Ee, We), Ee = Ee[We];
1021
+ xe && !Ce && (A[Se] = Ee);
1022
1022
  }
1023
1023
  }
1024
1024
  return Ee;
@@ -3967,7 +3967,7 @@ const Nt = (e) => {
3967
3967
  );
3968
3968
  }), to = (e) => {
3969
3969
  const t = pe(e);
3970
- return xe(() => {
3970
+ return we(() => {
3971
3971
  t.current = e;
3972
3972
  }, [e]), t;
3973
3973
  };
@@ -4044,7 +4044,7 @@ function Ln(e) {
4044
4044
  const t = pe(null);
4045
4045
  return t.current === null && (t.current = e()), t.current;
4046
4046
  }
4047
- const qd = typeof window < "u", Js = qd ? la : xe, el = /* @__PURE__ */ cn(null);
4047
+ const qd = typeof window < "u", Js = qd ? la : we, el = /* @__PURE__ */ cn(null);
4048
4048
  function Ud(e, t) {
4049
4049
  e.indexOf(t) === -1 && e.push(t);
4050
4050
  }
@@ -6042,7 +6042,7 @@ function xx(e = !0) {
6042
6042
  if (t === null)
6043
6043
  return [!0, null];
6044
6044
  const { isPresent: n, onExitComplete: r, register: o } = t, i = Rn();
6045
- xe(() => {
6045
+ we(() => {
6046
6046
  if (e)
6047
6047
  return o(i);
6048
6048
  }, [e]);
@@ -6304,7 +6304,7 @@ function FC(e, t, n, r, o) {
6304
6304
  const f = n[Cx], y = pe(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
6305
6305
  return Js(() => {
6306
6306
  u && (m.current = !0, window.MotionIsMounted = !0, u.updateFeatures(), pf.render(u.render), y.current && u.animationState && u.animationState.animateChanges());
6307
- }), xe(() => {
6307
+ }), we(() => {
6308
6308
  u && (!y.current && u.animationState && u.animationState.animateChanges(), y.current && (queueMicrotask(() => {
6309
6309
  window.MotionHandoffMarkAsComplete?.(f);
6310
6310
  }), y.current = !1));
@@ -8899,13 +8899,13 @@ const rP = (e, t) => wf(e) ? new u0(t) : new l0(t, {
8899
8899
  ...QA
8900
8900
  }, rP), gt = /* @__PURE__ */ OC(oP);
8901
8901
  function iP(e) {
8902
- return xe(() => () => e(), []);
8902
+ return we(() => () => e(), []);
8903
8903
  }
8904
8904
  function il(e) {
8905
8905
  const t = Ln(() => no(e)), { isStatic: n } = Ze(zo);
8906
8906
  if (n) {
8907
8907
  const [, r] = ke(e);
8908
- xe(() => t.on("change", r), []);
8908
+ we(() => t.on("change", r), []);
8909
8909
  }
8910
8910
  return t;
8911
8911
  }
@@ -9252,7 +9252,7 @@ function MP({ children: e, as: t = "ul", axis: n = "y", onReorder: r, values: o,
9252
9252
  l !== y && (c.current = !0, r(y.map(DP).filter((h) => o.indexOf(h) !== -1)));
9253
9253
  }
9254
9254
  };
9255
- return xe(() => {
9255
+ return we(() => {
9256
9256
  c.current = !1;
9257
9257
  }), w(s, { ...i, ref: a, ignoreStrict: !0, children: w(m0.Provider, { value: u, children: e }) });
9258
9258
  }
@@ -12745,7 +12745,7 @@ var Xi = function(e) {
12745
12745
  return Object.prototype.hasOwnProperty.call(e, t);
12746
12746
  }, zc = function(e) {
12747
12747
  var t = pe(e);
12748
- return xe(function() {
12748
+ return we(function() {
12749
12749
  t.current = e;
12750
12750
  }, [e]), t;
12751
12751
  }, J_ = function(e) {
@@ -12772,7 +12772,7 @@ var Xi = function(e) {
12772
12772
  var h = Va(y.target.value, d), p = ws(h);
12773
12773
  y.target.value = h, y.target.setAttribute("data-number", p.toString()), l?.(y), p !== 0 && (u.current.selectionEnd = h.length);
12774
12774
  };
12775
- xe(function() {
12775
+ we(function() {
12776
12776
  if (u.current !== null) {
12777
12777
  var y = u.current.value;
12778
12778
  if (y !== "") {
@@ -12804,7 +12804,7 @@ var Xi = function(e) {
12804
12804
  }), 2), c = l[0], u = l[1];
12805
12805
  co(t, function() {
12806
12806
  return s.current;
12807
- }), xe(function() {
12807
+ }), we(function() {
12808
12808
  var g, v = Number.parseFloat("".concat((g = a.value) !== null && g !== void 0 ? g : "0")).toFixed(d.fraction.length);
12809
12809
  u($a(v, d));
12810
12810
  }, [a.value]);
@@ -12825,7 +12825,7 @@ var Xi = function(e) {
12825
12825
  var v = $a(g.target.value, d), b = ws(v);
12826
12826
  u(v), g.target.value = v, g.target.setAttribute("data-number", b.toString()), o?.(g);
12827
12827
  };
12828
- xe(function() {
12828
+ we(function() {
12829
12829
  if (s.current !== null) {
12830
12830
  var g = s.current.value;
12831
12831
  if (g !== "") {
@@ -12835,7 +12835,7 @@ var Xi = function(e) {
12835
12835
  o?.(_t(_t({}, S), { target: s.current, currentTarget: s.current }));
12836
12836
  }
12837
12837
  }
12838
- }, []), xe(function() {
12838
+ }, []), we(function() {
12839
12839
  return f();
12840
12840
  }, [c]);
12841
12841
  var p = a.defaultValue ? $a(a.defaultValue, d) : void 0;
@@ -12948,7 +12948,7 @@ var mg = function(e) {
12948
12948
  };
12949
12949
  function fM(e) {
12950
12950
  var t = pe(e);
12951
- return xe(function() {
12951
+ return we(function() {
12952
12952
  t.current = e;
12953
12953
  }, [e]), t.current;
12954
12954
  }
@@ -12974,7 +12974,7 @@ var pM = Ye(function(e, t) {
12974
12974
  }
12975
12975
  return typeof u == "string" ? Di(u, P, i) : sd(u, i);
12976
12976
  }, [l, P, i, u]);
12977
- xe(function() {
12977
+ we(function() {
12978
12978
  if (f.value !== void 0) {
12979
12979
  var I = E(f.value, f.defaultValue);
12980
12980
  D(I), y.current !== null && (y.current.value = I);
@@ -13305,12 +13305,12 @@ function H0(e, t, n) {
13305
13305
  }
13306
13306
  var wo = function(e) {
13307
13307
  var t = pe(e ?? {});
13308
- return xe(function() {
13308
+ return we(function() {
13309
13309
  return void (t.current = e);
13310
13310
  }, [e]), t;
13311
13311
  }, bM = function(e) {
13312
13312
  var t = pe(void 0);
13313
- return xe(function() {
13313
+ return we(function() {
13314
13314
  t.current = e;
13315
13315
  }, [e]), t.current;
13316
13316
  }, xM = function(e) {
@@ -13364,7 +13364,7 @@ var wo = function(e) {
13364
13364
  var r, o, i, a = Ni(ke(function() {
13365
13365
  return e;
13366
13366
  }), 2), s = a[0], l = a[1], c = wo(s), u = wo((r = n?.props) !== null && r !== void 0 ? r : {}), d = wo(t), m = wo((o = n?.postMiddleware) !== null && o !== void 0 ? o : []), f = wo((i = n?.interceptor) !== null && i !== void 0 ? i : []), y = pe(e), h = bM(s), p = wo(h), g = pe(null);
13367
- xe(function() {
13367
+ we(function() {
13368
13368
  if (g.current !== null) {
13369
13369
  var S = g.current;
13370
13370
  m.current.forEach(function(x) {
@@ -13719,7 +13719,7 @@ const Dt = () => {
13719
13719
  ]
13720
13720
  }
13721
13721
  ), k = OM(x.date), E = AM(k, 7), O = x.date.toISOString(), P = Z0(x.date, h);
13722
- xe(() => {
13722
+ we(() => {
13723
13723
  t || c?.(x.date);
13724
13724
  }, [O, t]);
13725
13725
  const D = kM((I) => T.date((L) => G_(new Date(L), +I)), 1200), N = (I) => {
@@ -16312,7 +16312,7 @@ function Yc(e) {
16312
16312
  var jN = Vw, zN = jw, BN = Bw, HN = Hw, WN = Ww, qN = Xf;
16313
16313
  const UN = (e) => {
16314
16314
  const [t, n] = ke(!1), r = () => n(!0), o = () => n(!1);
16315
- return xe(() => {
16315
+ return we(() => {
16316
16316
  const i = e.current;
16317
16317
  if (i)
16318
16318
  return i.addEventListener("mouseenter", r), i.addEventListener("mouseleave", o), () => {
@@ -16320,15 +16320,17 @@ const UN = (e) => {
16320
16320
  };
16321
16321
  }, []), t;
16322
16322
  }, KN = oi(
16323
- "relative isolate z-tooltip flex justify-between overflow-hidden whitespace-nowrap rounded-lg border text-sm shadow-shadow-notification supports-[backdrop-filter]:backdrop-blur-xl",
16323
+ "relative isolate z-tooltip flex justify-between overflow-hidden whitespace-nowrap rounded-lg border text-sm shadow-shadow-notification",
16324
16324
  {
16325
16325
  variants: {
16326
16326
  theme: {
16327
- warn: "bg-warn-notification/90 text-warn-hover border-warn/50",
16328
16327
  default: "border-card-border bg-card-background text-foreground",
16329
- danger: "bg-danger-notification supports-[backdrop-filter]:bg-danger-notification/60 text-danger border-danger/50",
16330
- success: "bg-success-notification supports-[backdrop-filter]:bg-success-notification/50 text-success border-success/50",
16331
- info: "bg-info-notification supports-[backdrop-filter]:bg-info-notification/50 supports-[backdrop-filter]:bg-info/20 text-info border-info/50"
16328
+ info: "bg-alert-info-bg text-alert-info-text border-alert-info-border",
16329
+ warn: "bg-alert-warn-bg text-alert-warn-text border-alert-warn-border",
16330
+ danger: "bg-alert-danger-bg text-alert-danger-text border-alert-danger-border",
16331
+ success: "bg-alert-success-bg text-alert-success-text border-alert-success-border",
16332
+ secondary: "bg-alert-secondary-bg text-alert-secondary-text border-alert-secondary-border",
16333
+ muted: "bg-alert-muted-bg text-alert-muted-text border-alert-muted-border"
16332
16334
  }
16333
16335
  },
16334
16336
  defaultVariants: { theme: "default" }
@@ -16370,7 +16372,7 @@ const UN = (e) => {
16370
16372
  });
16371
16373
  function sB({ children: e, max: t = 5, duration: n = 5e3 }) {
16372
16374
  const r = pe(null), o = UN(r), [i, a] = ke([]), s = St(() => a([]), []);
16373
- xe(() => s, [s]);
16375
+ we(() => s, [s]);
16374
16376
  const l = St(
16375
16377
  (c, u) => {
16376
16378
  const d = window.crypto.randomUUID();
@@ -16447,7 +16449,7 @@ const lB = (e) => /* @__PURE__ */ Y(
16447
16449
  e.footer ? /* @__PURE__ */ w("footer", { className: "px-6 py-2", children: e.footer }) : null
16448
16450
  ] }), GN = (e, t) => {
16449
16451
  const [n, r] = ke(() => t || e);
16450
- return xe(() => {
16452
+ return we(() => {
16451
16453
  r(e);
16452
16454
  }, [e]), [n, r];
16453
16455
  }, jg = {
@@ -16470,7 +16472,7 @@ const lB = (e) => /* @__PURE__ */ Y(
16470
16472
  [jg.ArrowRight]: (e, t) => zg(t, "forward")
16471
16473
  }, uB = (e) => {
16472
16474
  const [t, n] = GN(e.active), r = pe(null), o = to(e.onChange);
16473
- xe(() => {
16475
+ we(() => {
16474
16476
  const l = r.current;
16475
16477
  if (l === null) return;
16476
16478
  let c = l.querySelector("li[data-active=true]");
@@ -16479,7 +16481,7 @@ const lB = (e) => /* @__PURE__ */ Y(
16479
16481
  const u = c.getAttribute("data-id") || "";
16480
16482
  n(u);
16481
16483
  }
16482
- }, [e.active, n]), xe(() => {
16484
+ }, [e.active, n]), we(() => {
16483
16485
  o.current && o.current(t);
16484
16486
  }, [o, t]);
16485
16487
  const i = re.Children.toArray(e.children), a = (l) => {
@@ -18019,15 +18021,15 @@ function gi(e) {
18019
18021
  const ce = ae.relatedTarget, Se = ae.currentTarget, Ee = Un(ae);
18020
18022
  queueMicrotask(() => {
18021
18023
  const Ce = S(), Pe = !(Bt(v, ce) || Bt(b, ce) || Bt(ce, b) || Bt(I?.portalNode, ce) || ce != null && ce.hasAttribute(so("focus-guard")) || A && (Lo(A.nodesRef.current, Ce).find((Te) => {
18022
- var we, We;
18023
- return Bt((we = Te.context) == null ? void 0 : we.elements.floating, ce) || Bt((We = Te.context) == null ? void 0 : We.elements.domReference, ce);
18024
+ var xe, We;
18025
+ return Bt((xe = Te.context) == null ? void 0 : xe.elements.floating, ce) || Bt((We = Te.context) == null ? void 0 : We.elements.domReference, ce);
18024
18026
  }) || qg(A.nodesRef.current, Ce).find((Te) => {
18025
- var we, We, te;
18026
- return [(we = Te.context) == null ? void 0 : we.elements.floating, Ms((We = Te.context) == null ? void 0 : We.elements.floating)].includes(ce) || ((te = Te.context) == null ? void 0 : te.elements.domReference) === ce;
18027
+ var xe, We, te;
18028
+ return [(xe = Te.context) == null ? void 0 : xe.elements.floating, Ms((We = Te.context) == null ? void 0 : We.elements.floating)].includes(ce) || ((te = Te.context) == null ? void 0 : te.elements.domReference) === ce;
18027
18029
  })));
18028
18030
  if (Se === v && j && av(j, D), l && Se !== v && !(Ee != null && Ee.isConnected) && qn(Yt(j)) === Yt(j).body) {
18029
18031
  Pt(j) && j.focus();
18030
- const Te = M.current, we = K(), We = we[Te] || we[we.length - 1] || j;
18032
+ const Te = M.current, xe = K(), We = xe[Te] || xe[xe.length - 1] || j;
18031
18033
  Pt(We) && We.focus();
18032
18034
  }
18033
18035
  if (g.current.insideReactTree) {
@@ -18048,11 +18050,11 @@ function gi(e) {
18048
18050
  var Q, z;
18049
18051
  if (r || !b) return;
18050
18052
  const ae = Array.from((I == null || (Q = I.portalNode) == null ? void 0 : Q.querySelectorAll("[" + so("portal") + "]")) || []), ce = A ? qg(A.nodesRef.current, S()) : [], Se = A && !c ? ce.map((Te) => {
18051
- var we;
18052
- return (we = Te.context) == null ? void 0 : we.elements.floating;
18053
+ var xe;
18054
+ return (xe = Te.context) == null ? void 0 : xe.elements.floating;
18053
18055
  }) : [], Ee = (z = ce.find((Te) => {
18054
- var we;
18055
- return Sd(((we = Te.context) == null ? void 0 : we.elements.domReference) || null);
18056
+ var xe;
18057
+ return Sd(((xe = Te.context) == null ? void 0 : xe.elements.domReference) || null);
18056
18058
  })) == null || (z = z.context) == null ? void 0 : z.elements.domReference, Ce = [b, Ee, ...ae, ...Se, ...x(), L.current, _.current, oe.current, ne.current, I?.beforeOutsideRef.current, I?.afterOutsideRef.current, D.current.includes("reference") || k ? v : null].filter((Te) => Te != null), Pe = c || k ? nv(Ce, !P, P) : nv(Ce);
18057
18059
  return () => {
18058
18060
  Pe();
@@ -18082,12 +18084,12 @@ function gi(e) {
18082
18084
  else if (s1(Pe) || l1(Pe))
18083
18085
  R.current = !1;
18084
18086
  else {
18085
- let we = !1;
18087
+ let xe = !1;
18086
18088
  document.createElement("div").focus({
18087
18089
  get preventScroll() {
18088
- return we = !0, !1;
18090
+ return xe = !0, !1;
18089
18091
  }
18090
- }), we ? R.current = !1 : R.current = !0;
18092
+ }), xe ? R.current = !1 : R.current = !0;
18091
18093
  }
18092
18094
  }
18093
18095
  p.on("openchange", ae);
@@ -18103,8 +18105,8 @@ function gi(e) {
18103
18105
  return () => {
18104
18106
  p.off("openchange", ae);
18105
18107
  const Ee = qn(Q), Ce = Bt(b, Ee) || A && Lo(A.nodesRef.current, S()).some((Te) => {
18106
- var we;
18107
- return Bt((we = Te.context) == null ? void 0 : we.elements.floating, Ee);
18108
+ var xe;
18109
+ return Bt((xe = Te.context) == null ? void 0 : xe.elements.floating, Ee);
18108
18110
  }), Pe = Se();
18109
18111
  queueMicrotask(() => {
18110
18112
  const Te = tL(Pe);
@@ -19022,7 +19024,7 @@ function xl(e, t) {
19022
19024
  }
19023
19025
  }), Te = C.useMemo(() => h && n && Se && {
19024
19026
  "aria-activedescendant": z || G
19025
- }, [h, n, Se, z, G]), we = C.useMemo(() => ({
19027
+ }, [h, n, Se, z, G]), xe = C.useMemo(() => ({
19026
19028
  "aria-orientation": S === "both" ? void 0 : S,
19027
19029
  ...L ? {} : Te,
19028
19030
  onKeyDown: Pe,
@@ -19084,9 +19086,9 @@ function xl(e, t) {
19084
19086
  }, [G, Te, T, Pe, ne, p, a, f, I, r, n, v, S, Ce, y, u, A, h, E]);
19085
19087
  return C.useMemo(() => c ? {
19086
19088
  reference: We,
19087
- floating: we,
19089
+ floating: xe,
19088
19090
  item: Ee
19089
- } : {}, [c, We, we, Ee]);
19091
+ } : {}, [c, We, xe, Ee]);
19090
19092
  }
19091
19093
  const fL = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
19092
19094
  function ho(e, t) {
@@ -19571,19 +19573,19 @@ const wL = (e, t) => {
19571
19573
  }, [e]), n;
19572
19574
  }, Tv = () => window.matchMedia("@media (pointer: coarse)"), RL = () => {
19573
19575
  const e = pe(ro() ? null : Tv()), [t, n] = ke(ro() ? !1 : e.current?.matches ?? !1);
19574
- return xe(() => {
19576
+ return we(() => {
19575
19577
  (e.current === null ? Tv() : e.current).addEventListener("change", (o) => n(o.matches));
19576
19578
  }, []), t;
19577
19579
  }, ip = (e, t = "overflow-hidden") => {
19578
19580
  const n = pe(null), r = RL(), o = pe(ro() ? "" : document.documentElement.style.overflowY);
19579
- return xe(() => {
19581
+ return we(() => {
19580
19582
  if (!(n.current === null && !e) && t !== "block-only" && t === "overflow-hidden")
19581
19583
  if (e) {
19582
19584
  if (o.current = document.documentElement.style.overflowY, document.documentElement.style.overflowY = "hidden", r || PM()) return;
19583
19585
  document.documentElement.style.padding = hk(document.documentElement) ? "0 15px 0 0" : "";
19584
19586
  } else
19585
19587
  document.documentElement.style.padding = "", document.documentElement.style.overflowY = o.current;
19586
- }, [e, r, t]), xe(() => {
19588
+ }, [e, r, t]), we(() => {
19587
19589
  if (!e) return;
19588
19590
  const i = new AbortController(), a = document.documentElement, s = (l) => {
19589
19591
  const c = n.current;
@@ -19701,7 +19703,7 @@ const wL = (e, t) => {
19701
19703
  escapeKey: !0,
19702
19704
  outsidePress: v
19703
19705
  }), M = Dr([_, R, V].concat(S)), W = o, j = il(void 0);
19704
- xe(() => {
19706
+ we(() => {
19705
19707
  j.set(void 0);
19706
19708
  }, [I]);
19707
19709
  const K = () => a(!1);
@@ -19732,14 +19734,12 @@ const wL = (e, t) => {
19732
19734
  draggable: I === "sheet",
19733
19735
  drag: I === "sheet" ? "y" : "x"
19734
19736
  } : oe;
19735
- return xe(() => {
19736
- console.log({ open: e });
19737
- }, [e]), /* @__PURE__ */ Y(Xe, { children: [
19737
+ return /* @__PURE__ */ Y(Xe, { children: [
19738
19738
  o ? /* @__PURE__ */ w(Xe, { children: r ? /* @__PURE__ */ w(AL, { ref: L.refs.setReference, ...M.getReferenceProps({ layoutId: y }), children: W }) : /* @__PURE__ */ w(gt.button, { ref: L.refs.setReference, ...M.getReferenceProps(), layoutId: y, type: "button", children: W }) }) : null,
19739
19739
  /* @__PURE__ */ w(po, { preserveTabOrder: !0, children: /* @__PURE__ */ w(Ar, { propagate: !0, mode: "wait", initial: !1, children: e ? /* @__PURE__ */ w(
19740
19740
  C1,
19741
19741
  {
19742
- lockScroll: !1,
19742
+ lockScroll: !0,
19743
19743
  className: Oe(
19744
19744
  "inset-0 isolate z-overlay h-[100dvh] !overflow-clip bg-floating-overlay/70",
19745
19745
  I === "drawer" ? "" : "flex items-start justify-center p-10",
@@ -19867,7 +19867,7 @@ const wL = (e, t) => {
19867
19867
  },
19868
19868
  ...h.filter((v) => v.type !== "group")
19869
19869
  ];
19870
- xe(() => {
19870
+ we(() => {
19871
19871
  const v = new xL();
19872
19872
  return v.add(t, () => e.onChangeVisibility?.(!0)), y.forEach((b) => {
19873
19873
  b.type !== "group" && b.type === "shortcut" && b.shortcut !== void 0 && v.add(
@@ -20047,7 +20047,7 @@ const wL = (e, t) => {
20047
20047
  ] });
20048
20048
  }, mB = (e) => {
20049
20049
  const t = pe(null), n = Rn(), r = `${n}:wrapper`, o = `${n}:title`, [i, a] = ke(e.open ?? !1);
20050
- xe(() => {
20050
+ we(() => {
20051
20051
  a(e.open ?? !1);
20052
20052
  }, [e.open]);
20053
20053
  const { context: s, refs: l } = Mr({
@@ -20124,7 +20124,7 @@ const wL = (e, t) => {
20124
20124
  resetMs: $L,
20125
20125
  onMatch: u ? h : void 0
20126
20126
  }), { getReferenceProps: _, getFloatingProps: R, getItemProps: V } = Dr([B, A, D, N, I, L]);
20127
- xe(() => {
20127
+ we(() => {
20128
20128
  if (!S) return;
20129
20129
  const W = () => d(!1), j = (K) => {
20130
20130
  K.nodeId !== x && K.parentId === b && d(!1);
@@ -20132,7 +20132,7 @@ const wL = (e, t) => {
20132
20132
  return S.events.on("click", W), S.events.on("menuopen", j), () => {
20133
20133
  S.events.off("click", W), S.events.off("menuopen", j);
20134
20134
  };
20135
- }, [S, x, b]), xe(() => {
20135
+ }, [S, x, b]), we(() => {
20136
20136
  u && S && S.events.emit("menuopen", { parentId: b, nodeId: x });
20137
20137
  }, [S, u, x, b]);
20138
20138
  const M = o ? l.className : Oe(M1(l.className));
@@ -20286,7 +20286,7 @@ const wL = (e, t) => {
20286
20286
  s ? T : void 0,
20287
20287
  c ? E : void 0
20288
20288
  ]);
20289
- return xe(() => h(i === void 0 ? !1 : i), [i]), /* @__PURE__ */ Y(Xe, { children: [
20289
+ return we(() => h(i === void 0 ? !1 : i), [i]), /* @__PURE__ */ Y(Xe, { children: [
20290
20290
  /* @__PURE__ */ w(g, { ...N(m), ref: Sr(b.setReference, f), children: n }),
20291
20291
  y && /* @__PURE__ */ w(po, { preserveTabOrder: !0, children: /* @__PURE__ */ Y(
20292
20292
  Dn,
@@ -23221,7 +23221,7 @@ const uV = /* @__PURE__ */ Je(
23221
23221
  Ee,
23222
23222
  Ce
23223
23223
  ]) => {
23224
- const { column: Pe, row: Te } = Q, { height: we, width: We } = z, { width: te } = ae;
23224
+ const { column: Pe, row: Te } = Q, { height: xe, width: We } = z, { width: te } = ae;
23225
23225
  if (Se === 0 && ($ === 0 || te === 0))
23226
23226
  return zv;
23227
23227
  if (We === 0) {
@@ -23230,9 +23230,9 @@ const uV = /* @__PURE__ */ Je(
23230
23230
  }
23231
23231
  const Z = aS(te, We, Pe);
23232
23232
  let F, J;
23233
- Ee ? U === 0 && G === 0 && Se > 0 ? (F = 0, J = Se - 1) : (F = Z * js((U + Te) / (we + Te)), J = Z * Bv((G + Te) / (we + Te)) - 1, J = fu($ - 1, $i(J, Z - 1)), F = fu(J, $i(0, F))) : (F = 0, J = -1);
23234
- const de = Wv(F, J, ce), { bottom: ye, top: Le } = qv(ae, Q, z, de), ft = Bv($ / Z), zt = ft * we + (ft - 1) * Te - ye;
23235
- return { bottom: ye, itemHeight: we, items: de, itemWidth: We, offsetBottom: zt, offsetTop: Le, top: Le };
23233
+ Ee ? U === 0 && G === 0 && Se > 0 ? (F = 0, J = Se - 1) : (F = Z * js((U + Te) / (xe + Te)), J = Z * Bv((G + Te) / (xe + Te)) - 1, J = fu($ - 1, $i(J, Z - 1)), F = fu(J, $i(0, F))) : (F = 0, J = -1);
23234
+ const de = Wv(F, J, ce), { bottom: ye, top: Le } = qv(ae, Q, z, de), ft = Bv($ / Z), zt = ft * xe + (ft - 1) * Te - ye;
23235
+ return { bottom: ye, itemHeight: xe, items: de, itemWidth: We, offsetBottom: zt, offsetTop: Le, top: Le };
23236
23236
  }
23237
23237
  )
23238
23238
  ),
@@ -23758,18 +23758,18 @@ const kp = () => {
23758
23758
  scrollItemIntoView: !0
23759
23759
  })
23760
23760
  ]);
23761
- xe(() => {
23761
+ we(() => {
23762
23762
  if (h.value) {
23763
23763
  const te = o.find((Z) => Z.value === h.value);
23764
23764
  B(te?.label ?? h.value);
23765
23765
  }
23766
- }, [h.value, o.length]), xe(() => {
23766
+ }, [h.value, o.length]), we(() => {
23767
23767
  if (!E) return k(0);
23768
23768
  const te = $.reference;
23769
23769
  if (te.current === null) return;
23770
23770
  const Z = ms(te.current, window.innerHeight);
23771
23771
  setTimeout(() => k(Math.min(Z, K.length * ko)), 100);
23772
- }, [P, E, $.reference, K.length]), xe(() => {
23772
+ }, [P, E, $.reference, K.length]), we(() => {
23773
23773
  const te = $.reference.current;
23774
23774
  if (te)
23775
23775
  return Qs(te);
@@ -23790,7 +23790,7 @@ const kp = () => {
23790
23790
  _((te) => te === null ? 0 : te), O(!0), D("");
23791
23791
  }, Pe = () => {
23792
23792
  $.reference.current?.setAttribute("data-value", ""), D(""), B(""), I(""), mk($.reference.current), j();
23793
- }, Te = h.id || h.name, we = `${Te}-shadow`, We = K.length === 0;
23793
+ }, Te = h.id || h.name, xe = `${Te}-shadow`, We = K.length === 0;
23794
23794
  return /* @__PURE__ */ Y(
23795
23795
  Cl,
23796
23796
  {
@@ -23808,7 +23808,7 @@ const kp = () => {
23808
23808
  container: i,
23809
23809
  rightLabel: a,
23810
23810
  interactive: s,
23811
- id: we,
23811
+ id: xe,
23812
23812
  optionalText: c,
23813
23813
  componentName: "autocomplete",
23814
23814
  labelClassName: u,
@@ -23839,8 +23839,8 @@ const kp = () => {
23839
23839
  onFocus: Ce,
23840
23840
  pattern: X,
23841
23841
  onChange: Se,
23842
- id: we,
23843
- name: we,
23842
+ id: xe,
23843
+ name: xe,
23844
23844
  ref: $.setReference,
23845
23845
  onClick: (te) => te.currentTarget.focus(),
23846
23846
  onKeyDown(te) {
@@ -24009,7 +24009,7 @@ const kp = () => {
24009
24009
  ...b
24010
24010
  }, S) => {
24011
24011
  const x = e, T = b.id ?? b.name, k = pe(null);
24012
- return xe(() => {
24012
+ return we(() => {
24013
24013
  if (k.current === null) return;
24014
24014
  const E = k.current, O = Qs(k.current), P = r?.(E), D = (N) => {
24015
24015
  const B = N;
@@ -26808,7 +26808,7 @@ function TS() {
26808
26808
  }
26809
26809
  }, 300);
26810
26810
  };
26811
- xe(function() {
26811
+ we(function() {
26812
26812
  return window.addEventListener("focus", K, !1), function() {
26813
26813
  window.removeEventListener("focus", K, !1);
26814
26814
  };
@@ -26816,18 +26816,18 @@ function TS() {
26816
26816
  var X = pe([]), oe = function(J) {
26817
26817
  A.current && A.current.contains(J.target) || (J.preventDefault(), X.current = []);
26818
26818
  };
26819
- xe(function() {
26819
+ we(function() {
26820
26820
  return b && (document.addEventListener("dragover", hy, !1), document.addEventListener("drop", oe, !1)), function() {
26821
26821
  b && (document.removeEventListener("dragover", hy), document.removeEventListener("drop", oe));
26822
26822
  };
26823
- }, [A, b]), xe(function() {
26823
+ }, [A, b]), we(function() {
26824
26824
  return !r && v && A.current && A.current.focus(), function() {
26825
26825
  };
26826
26826
  }, [A, v, r]);
26827
26827
  var ne = St(function(F) {
26828
26828
  E ? E(F) : console.error(F);
26829
26829
  }, [E]), ee = St(function(F) {
26830
- F.preventDefault(), F.persist(), we(F), X.current = [].concat(I$(X.current), [F.target]), ns(F) && Promise.resolve(o(F)).then(function(J) {
26830
+ F.preventDefault(), F.persist(), xe(F), X.current = [].concat(I$(X.current), [F.target]), ns(F) && Promise.resolve(o(F)).then(function(J) {
26831
26831
  if (!(Bs(F) && !k)) {
26832
26832
  var de = J.length, ye = de > 0 && v$({
26833
26833
  files: J,
@@ -26849,7 +26849,7 @@ function TS() {
26849
26849
  return ne(J);
26850
26850
  });
26851
26851
  }, [o, c, ne, k, P, a, i, s, l, O]), $ = St(function(F) {
26852
- F.preventDefault(), F.persist(), we(F);
26852
+ F.preventDefault(), F.persist(), xe(F);
26853
26853
  var J = ns(F);
26854
26854
  if (J && F.dataTransfer)
26855
26855
  try {
@@ -26858,7 +26858,7 @@ function TS() {
26858
26858
  }
26859
26859
  return J && d && d(F), !1;
26860
26860
  }, [d, k]), U = St(function(F) {
26861
- F.preventDefault(), F.persist(), we(F);
26861
+ F.preventDefault(), F.persist(), xe(F);
26862
26862
  var J = X.current.filter(function(ye) {
26863
26863
  return A.current && A.current.contains(ye);
26864
26864
  }), de = J.indexOf(F.target);
@@ -26895,7 +26895,7 @@ function TS() {
26895
26895
  type: "setFiles"
26896
26896
  }), m && m(de, ye, J), ye.length > 0 && y && y(ye, J), de.length > 0 && f && f(de, J);
26897
26897
  }, [V, s, P, a, i, l, m, f, y, O]), Q = St(function(F) {
26898
- F.preventDefault(), F.persist(), we(F), X.current = [], ns(F) && Promise.resolve(o(F)).then(function(J) {
26898
+ F.preventDefault(), F.persist(), xe(F), X.current = [], ns(F) && Promise.resolve(o(F)).then(function(J) {
26899
26899
  Bs(F) && !k || G(J, F);
26900
26900
  }).catch(function(J) {
26901
26901
  return ne(J);
@@ -26945,7 +26945,7 @@ function TS() {
26945
26945
  return x ? null : Ce(J);
26946
26946
  }, Te = function(J) {
26947
26947
  return T ? null : Ce(J);
26948
- }, we = function(J) {
26948
+ }, xe = function(J) {
26949
26949
  k && J.stopPropagation();
26950
26950
  }, We = rt(function() {
26951
26951
  return function() {
@@ -27051,7 +27051,7 @@ const kS = cn([null, () => {
27051
27051
  mp3: ZP
27052
27052
  }, B$ = (e) => {
27053
27053
  const [, t] = $$(), [n, r] = ke({ url: "", type: "", size: "" });
27054
- xe(() => {
27054
+ we(() => {
27055
27055
  const l = e.file, c = URL.createObjectURL(l);
27056
27056
  return r({ url: c, type: j$(l), size: NV(l.size) }), () => URL.revokeObjectURL(c);
27057
27057
  }, [e.file]);
@@ -27121,7 +27121,7 @@ const kS = cn([null, () => {
27121
27121
  return /* @__PURE__ */ w(gt.li, { ...r, ref: o, className: "last:rounded-t-lg" });
27122
27122
  }), X$ = { List: G$, Item: Z$ }, Q$ = (e) => {
27123
27123
  const t = Dt(), n = pe(null), r = re.Children.count(e.children), [o, i] = ke(!1);
27124
- return xe(() => {
27124
+ return we(() => {
27125
27125
  if (n.current === null) return;
27126
27126
  const a = n.current.parentElement.getBoundingClientRect(), l = Array.from(n.current.querySelectorAll("[data-component='tag']")).reduce((u, d) => u + d.getBoundingClientRect().width, 0);
27127
27127
  if (n.current.querySelectorAll("[data-multicounter]").length && r <= 3) return i(!1);
@@ -27205,15 +27205,15 @@ const kS = cn([null, () => {
27205
27205
  onNavigate: (Z) => V((F) => Z ?? F)
27206
27206
  })
27207
27207
  ]);
27208
- xe(() => {
27208
+ we(() => {
27209
27209
  if (!O) return E(0);
27210
27210
  const Z = U.reference;
27211
27211
  if (Z.current === null) return;
27212
27212
  const F = ms(Z.current, window.innerHeight);
27213
27213
  setTimeout(() => E(Math.min(F, X.length * 40)), 100);
27214
- }, [D, O, U.reference]), xe(() => {
27214
+ }, [D, O, U.reference]), we(() => {
27215
27215
  p.value && A(new Yn(p.value.map((Z) => [Z, v.get(Z)])));
27216
- }, [p.value, v]), xe(() => {
27216
+ }, [p.value, v]), we(() => {
27217
27217
  const Z = U.reference.current;
27218
27218
  if (Z)
27219
27219
  return Qs(Z);
@@ -27234,7 +27234,7 @@ const kS = cn([null, () => {
27234
27234
  P(!0), N("");
27235
27235
  }, Te = () => {
27236
27236
  U.reference.current?.setAttribute("data-value", "[]"), N(""), P(!1), A(new Yn()), h?.([]);
27237
- }, we = p.id || p.name, We = B.map((Z, F) => /* @__PURE__ */ w(
27237
+ }, xe = p.id || p.name, We = B.map((Z, F) => /* @__PURE__ */ w(
27238
27238
  Lu,
27239
27239
  {
27240
27240
  size: "small",
@@ -27297,14 +27297,14 @@ const kS = cn([null, () => {
27297
27297
  ...z({
27298
27298
  ...p,
27299
27299
  onFocus: Pe,
27300
- id: `${we}-shadow`,
27301
- name: `${we}-shadow`,
27300
+ id: `${xe}-shadow`,
27301
+ name: `${xe}-shadow`,
27302
27302
  ref: U.setReference
27303
27303
  }),
27304
27304
  tabIndex: 0,
27305
27305
  role: "button",
27306
- "data-name": we,
27307
- "data-target": we,
27306
+ "data-name": xe,
27307
+ "data-target": xe,
27308
27308
  "data-shadow": "true",
27309
27309
  "data-error": !!t,
27310
27310
  "aria-autocomplete": "list",
@@ -27328,10 +27328,10 @@ const kS = cn([null, () => {
27328
27328
  /* @__PURE__ */ w(
27329
27329
  "input",
27330
27330
  {
27331
- id: we,
27332
- name: we,
27331
+ id: xe,
27332
+ name: xe,
27333
27333
  type: "hidden",
27334
- "data-origin": we,
27334
+ "data-origin": xe,
27335
27335
  ref: g,
27336
27336
  required: f,
27337
27337
  defaultValue: p.value || I || void 0
@@ -27495,7 +27495,7 @@ const kS = cn([null, () => {
27495
27495
  ...h
27496
27496
  }, p) => {
27497
27497
  const g = Dt(), v = pe(null), b = h.id ?? h.name;
27498
- co(p, () => v.current), xe(() => {
27498
+ co(p, () => v.current), we(() => {
27499
27499
  if (v.current === null) return;
27500
27500
  const x = new AbortController(), T = v.current, k = Qs(v.current);
27501
27501
  return T.addEventListener("change", () => T.setAttribute("data-selected", "true"), {
@@ -27570,7 +27570,7 @@ const kS = cn([null, () => {
27570
27570
  }
27571
27571
  ), J$ = (e) => {
27572
27572
  const [t, n] = ke(null), r = pe(null);
27573
- return xe(() => {
27573
+ return we(() => {
27574
27574
  const o = r.current;
27575
27575
  if (o === null) return;
27576
27576
  const i = Number(o.getAttribute("aria-valuenow"));
@@ -27608,7 +27608,7 @@ const kS = cn([null, () => {
27608
27608
  );
27609
27609
  }, EB = Ye(({ children: e, loading: t, container: n, error: r, ...o }, i) => {
27610
27610
  const a = Rn(), [s, l] = ke(o.checked ?? !1), c = s, u = pe(null), d = to(o.onChange);
27611
- co(i, () => u.current), xe(() => {
27611
+ co(i, () => u.current), we(() => {
27612
27612
  if (u.current !== null && d.current) {
27613
27613
  const f = (h) => {
27614
27614
  d.current && d.current(h);
@@ -27664,7 +27664,7 @@ const kS = cn([null, () => {
27664
27664
  ] });
27665
27665
  }), CB = (e) => {
27666
27666
  const [t, n] = AP();
27667
- return xe(() => {
27667
+ return we(() => {
27668
27668
  const r = t.current;
27669
27669
  if (!r) return;
27670
27670
  const o = (i) => {
@@ -27694,7 +27694,7 @@ const kS = cn([null, () => {
27694
27694
  }
27695
27695
  ), ej = (e) => {
27696
27696
  const [t, n] = ke(0);
27697
- return xe(() => {
27697
+ return we(() => {
27698
27698
  const r = e.current;
27699
27699
  if (!r) return;
27700
27700
  const o = r.parentElement;
@@ -28475,7 +28475,7 @@ const Pp = (e) => e.type === "number" ? e.valueAsNumber : e.value, PB = (e) => {
28475
28475
  (s) => s === "undefined" ? "asc" : s === "asc" ? "desc" : "undefined"
28476
28476
  /* Undefined */
28477
28477
  );
28478
- xe(() => {
28478
+ we(() => {
28479
28479
  e.setSorters((s) => {
28480
28480
  if (n === "undefined") return s.filter((u) => u.value !== e.col.id);
28481
28481
  const l = s.findIndex((u) => u.value === e.col.id), c = _S(e.col, n, n);
@@ -28586,7 +28586,7 @@ const $j = (e) => {
28586
28586
  const c = n.current, u = t.current;
28587
28587
  c === null || u === null || (u.style.left = `-${c.getBoundingClientRect().width + 4}px`);
28588
28588
  }, l = () => o("opacity-100");
28589
- return xe(() => {
28589
+ return we(() => {
28590
28590
  const c = n.current;
28591
28591
  if (c === null || parent === null) return;
28592
28592
  s();
@@ -28834,7 +28834,7 @@ const $j = (e) => {
28834
28834
  (x) => x.value === "" || Number.isNaN(x.value) ? void 0 : S.Where(x.name, x.operation.symbol, x.value)
28835
28835
  ), r.length === 0 ? S.Select() : Dj(S.Select(), r);
28836
28836
  }, [d.loading, d.rows, u, t, r]);
28837
- xe(() => {
28837
+ we(() => {
28838
28838
  if (m.current === null) return () => {
28839
28839
  };
28840
28840
  const S = m.current, x = new IntersectionObserver((T) => T[T.length - 1].isIntersecting && p.current ? (h.current?.(), void y(!0)) : y(!1));
@@ -32314,7 +32314,7 @@ const Lz = (e) => {
32314
32314
  })
32315
32315
  };
32316
32316
  };
32317
- xe(() => {
32317
+ we(() => {
32318
32318
  const b = Object.values(i.current).map((x) => {
32319
32319
  const T = x.element.dataset.origin ? document.querySelector(`[data-target="${x.element.name}"]`) : x.element, k = x.schema.safeParse(vr(T)), E = (N) => {
32320
32320
  const B = Qy(N.target);
@@ -32391,7 +32391,7 @@ const Lz = (e) => {
32391
32391
  id: t,
32392
32392
  name: t
32393
32393
  });
32394
- return xe(() => {
32394
+ return we(() => {
32395
32395
  n.interceptor && n.interceptor?.set(a);
32396
32396
  }, [a]), {
32397
32397
  get: g,
@@ -32412,7 +32412,7 @@ const Lz = (e) => {
32412
32412
  };
32413
32413
  }, NB = (e) => e ? JSON.parse(e.getAttribute("data-json")) : {}, LB = (e) => {
32414
32414
  const t = pe(void 0);
32415
- return xe(() => {
32415
+ return we(() => {
32416
32416
  t.current = e;
32417
32417
  }, [e]), t.current;
32418
32418
  }, BS = {
@@ -32445,7 +32445,7 @@ const Lz = (e) => {
32445
32445
  rounded: BS,
32446
32446
  spacing: HS,
32447
32447
  shadow: {
32448
- "shadow-notification": "1px 2px 2px 2px hsla(210, 25%, 40%, 0.15)",
32448
+ "shadow-notification": "1px 2px 2px 2px hsla(210, 15%, 20%, 0.15)",
32449
32449
  "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
32450
32450
  "shadow-card": "0px 1px 1px 1px hsla(210, 25%, 20%, 0.1)"
32451
32451
  },
@@ -32500,7 +32500,7 @@ const Lz = (e) => {
32500
32500
  subtle: "hsla(160, 75%, 75%)",
32501
32501
  hover: "hsla(160, 91%, 27%)",
32502
32502
  foreground: "hsla(160, 91%, 50%)",
32503
- notification: "hsla(161,62%,17%)"
32503
+ notification: "hsla(160,90%,5%)"
32504
32504
  },
32505
32505
  input: {
32506
32506
  border: "hsla(240, 4%, 25%)",