@abdellatifui/react 3.2.135 → 3.2.136

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 (2) hide show
  1. package/dist/nextgen.js +389 -385
  2. package/package.json +1 -1
package/dist/nextgen.js CHANGED
@@ -4,7 +4,7 @@ import * as Wr from "@radix-ui/react-tooltip";
4
4
  import { createPortal as Hr } from "react-dom";
5
5
  import * as ct from "@radix-ui/react-alert-dialog";
6
6
  import { Slot as gf } from "@radix-ui/react-slot";
7
- import ce from "jquery";
7
+ import ue from "jquery";
8
8
  import { ClickAwayListener as yf, MenuItem as vf, TableContainer as bf, Paper as xf, Table as Cf, TableHead as wf, TableRow as Ca, TableCell as ao, TableBody as Sf } from "@mui/material";
9
9
  import { MapboxOverlay as kf } from "@deck.gl/mapbox";
10
10
  import Ef from "maplibre-gl";
@@ -128,8 +128,8 @@ function Cp() {
128
128
  }
129
129
  if (M) {
130
130
  M = console;
131
- var G = M.error, B = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
132
- return G.call(
131
+ var U = M.error, B = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
132
+ return U.call(
133
133
  M,
134
134
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
135
135
  B
@@ -162,14 +162,14 @@ function Cp() {
162
162
  return T.key !== void 0;
163
163
  }
164
164
  function a(T, M) {
165
- function G() {
165
+ function U() {
166
166
  D || (D = !0, console.error(
167
167
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
168
168
  M
169
169
  ));
170
170
  }
171
- G.isReactWarning = !0, Object.defineProperty(T, "key", {
172
- get: G,
171
+ U.isReactWarning = !0, Object.defineProperty(T, "key", {
172
+ get: U,
173
173
  configurable: !0
174
174
  });
175
175
  }
@@ -179,15 +179,15 @@ function Cp() {
179
179
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
180
180
  )), T = this.props.ref, T !== void 0 ? T : null;
181
181
  }
182
- function u(T, M, G, B, te, re) {
183
- var U = G.ref;
182
+ function u(T, M, U, B, te, re) {
183
+ var G = U.ref;
184
184
  return T = {
185
185
  $$typeof: g,
186
186
  type: T,
187
187
  key: M,
188
- props: G,
188
+ props: U,
189
189
  _owner: B
190
- }, (U !== void 0 ? U : null) !== null ? Object.defineProperty(T, "ref", {
190
+ }, (G !== void 0 ? G : null) !== null ? Object.defineProperty(T, "ref", {
191
191
  enumerable: !1,
192
192
  get: l
193
193
  }) : Object.defineProperty(T, "ref", { enumerable: !1, value: null }), T._store = {}, Object.defineProperty(T._store, "validated", {
@@ -212,25 +212,25 @@ function Cp() {
212
212
  value: re
213
213
  }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
214
214
  }
215
- function f(T, M, G, B, te, re) {
216
- var U = M.children;
217
- if (U !== void 0)
215
+ function f(T, M, U, B, te, re) {
216
+ var G = M.children;
217
+ if (G !== void 0)
218
218
  if (B)
219
- if (P(U)) {
220
- for (B = 0; B < U.length; B++)
221
- p(U[B]);
222
- Object.freeze && Object.freeze(U);
219
+ if (P(G)) {
220
+ for (B = 0; B < G.length; B++)
221
+ p(G[B]);
222
+ Object.freeze && Object.freeze(G);
223
223
  } else
224
224
  console.error(
225
225
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
226
226
  );
227
- else p(U);
227
+ else p(G);
228
228
  if (j.call(M, "key")) {
229
- U = e(T);
229
+ G = e(T);
230
230
  var L = Object.keys(M).filter(function(J) {
231
231
  return J !== "key";
232
232
  });
233
- B = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", z[U + B] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
233
+ B = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", z[G + B] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
234
234
  `A props object containing a "key" prop is being spread into JSX:
235
235
  let props = %s;
236
236
  <%s {...props} />
@@ -238,23 +238,23 @@ React keys must be passed directly to JSX without using spread:
238
238
  let props = %s;
239
239
  <%s key={someKey} {...props} />`,
240
240
  B,
241
- U,
241
+ G,
242
242
  L,
243
- U
244
- ), z[U + B] = !0);
243
+ G
244
+ ), z[G + B] = !0);
245
245
  }
246
- if (U = null, G !== void 0 && (t(G), U = "" + G), i(M) && (t(M.key), U = "" + M.key), "key" in M) {
247
- G = {};
248
- for (var K in M)
249
- K !== "key" && (G[K] = M[K]);
250
- } else G = M;
251
- return U && a(
252
- G,
246
+ if (G = null, U !== void 0 && (t(U), G = "" + U), i(M) && (t(M.key), G = "" + M.key), "key" in M) {
247
+ U = {};
248
+ for (var X in M)
249
+ X !== "key" && (U[X] = M[X]);
250
+ } else U = M;
251
+ return G && a(
252
+ U,
253
253
  typeof T == "function" ? T.displayName || T.name || "Unknown" : T
254
254
  ), u(
255
255
  T,
256
- U,
257
256
  G,
257
+ U,
258
258
  o(),
259
259
  te,
260
260
  re
@@ -277,26 +277,26 @@ React keys must be passed directly to JSX without using spread:
277
277
  var D, Y = {}, _ = h.react_stack_bottom_frame.bind(
278
278
  h,
279
279
  s
280
- )(), X = W(r(s)), z = {};
281
- Er.Fragment = x, Er.jsx = function(T, M, G) {
280
+ )(), K = W(r(s)), z = {};
281
+ Er.Fragment = x, Er.jsx = function(T, M, U) {
282
282
  var B = 1e4 > b.recentlyCreatedOwnerStacks++;
283
283
  return f(
284
284
  T,
285
285
  M,
286
- G,
286
+ U,
287
287
  !1,
288
288
  B ? Error("react-stack-top-frame") : _,
289
- B ? W(r(T)) : X
289
+ B ? W(r(T)) : K
290
290
  );
291
- }, Er.jsxs = function(T, M, G) {
291
+ }, Er.jsxs = function(T, M, U) {
292
292
  var B = 1e4 > b.recentlyCreatedOwnerStacks++;
293
293
  return f(
294
294
  T,
295
295
  M,
296
- G,
296
+ U,
297
297
  !0,
298
298
  B ? Error("react-stack-top-frame") : _,
299
- B ? W(r(T)) : X
299
+ B ? W(r(T)) : K
300
300
  );
301
301
  };
302
302
  })()), Er;
@@ -625,13 +625,13 @@ const Sp = (e, n) => {
625
625
  "left-bottom"
626
626
  ], v = () => [...k(), ie, se], N = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], E = () => [ie, se, l], $ = () => [zn, "full", "auto", ...E()], F = () => [Zt, "none", "subgrid", ie, se], R = () => ["auto", {
627
627
  span: ["full", Zt, ie, se]
628
- }, Zt, ie, se], b = () => [Zt, "auto", ie, se], j = () => ["auto", "min", "max", "fr", ie, se], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...E()], Y = () => [zn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], _ = () => [e, ie, se], X = () => [...k(), Oa, ja, {
628
+ }, Zt, ie, se], b = () => [Zt, "auto", ie, se], j = () => ["auto", "min", "max", "fr", ie, se], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...E()], Y = () => [zn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], _ = () => [e, ie, se], K = () => [...k(), Oa, ja, {
629
629
  position: [ie, se]
630
630
  }], z = () => ["no-repeat", {
631
631
  repeat: ["", "x", "y", "space", "round"]
632
632
  }], T = () => ["auto", "cover", "contain", sm, nm, {
633
633
  size: [ie, se]
634
- }], M = () => [zs, Tr, yn], G = () => [
634
+ }], M = () => [zs, Tr, yn], U = () => [
635
635
  // Deprecated since Tailwind CSS v4.0.0
636
636
  "",
637
637
  "none",
@@ -639,14 +639,14 @@ const Sp = (e, n) => {
639
639
  u,
640
640
  ie,
641
641
  se
642
- ], B = () => ["", me, Tr, yn], te = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [me, zs, Oa, ja], L = () => [
642
+ ], B = () => ["", me, Tr, yn], te = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => [me, zs, Oa, ja], L = () => [
643
643
  // Deprecated since Tailwind CSS v4.0.0
644
644
  "",
645
645
  "none",
646
646
  g,
647
647
  ie,
648
648
  se
649
- ], K = () => ["none", me, ie, se], J = () => ["none", me, ie, se], ue = () => [me, ie, se], ee = () => [zn, "full", ...E()];
649
+ ], X = () => ["none", me, ie, se], J = () => ["none", me, ie, se], ce = () => [me, ie, se], ee = () => [zn, "full", ...E()];
650
650
  return {
651
651
  cacheSize: 500,
652
652
  theme: {
@@ -1598,7 +1598,7 @@ const Sp = (e, n) => {
1598
1598
  * @see https://tailwindcss.com/docs/background-position
1599
1599
  */
1600
1600
  "bg-position": [{
1601
- bg: X()
1601
+ bg: K()
1602
1602
  }],
1603
1603
  /**
1604
1604
  * Background Repeat
@@ -1684,105 +1684,105 @@ const Sp = (e, n) => {
1684
1684
  * @see https://tailwindcss.com/docs/border-radius
1685
1685
  */
1686
1686
  rounded: [{
1687
- rounded: G()
1687
+ rounded: U()
1688
1688
  }],
1689
1689
  /**
1690
1690
  * Border Radius Start
1691
1691
  * @see https://tailwindcss.com/docs/border-radius
1692
1692
  */
1693
1693
  "rounded-s": [{
1694
- "rounded-s": G()
1694
+ "rounded-s": U()
1695
1695
  }],
1696
1696
  /**
1697
1697
  * Border Radius End
1698
1698
  * @see https://tailwindcss.com/docs/border-radius
1699
1699
  */
1700
1700
  "rounded-e": [{
1701
- "rounded-e": G()
1701
+ "rounded-e": U()
1702
1702
  }],
1703
1703
  /**
1704
1704
  * Border Radius Top
1705
1705
  * @see https://tailwindcss.com/docs/border-radius
1706
1706
  */
1707
1707
  "rounded-t": [{
1708
- "rounded-t": G()
1708
+ "rounded-t": U()
1709
1709
  }],
1710
1710
  /**
1711
1711
  * Border Radius Right
1712
1712
  * @see https://tailwindcss.com/docs/border-radius
1713
1713
  */
1714
1714
  "rounded-r": [{
1715
- "rounded-r": G()
1715
+ "rounded-r": U()
1716
1716
  }],
1717
1717
  /**
1718
1718
  * Border Radius Bottom
1719
1719
  * @see https://tailwindcss.com/docs/border-radius
1720
1720
  */
1721
1721
  "rounded-b": [{
1722
- "rounded-b": G()
1722
+ "rounded-b": U()
1723
1723
  }],
1724
1724
  /**
1725
1725
  * Border Radius Left
1726
1726
  * @see https://tailwindcss.com/docs/border-radius
1727
1727
  */
1728
1728
  "rounded-l": [{
1729
- "rounded-l": G()
1729
+ "rounded-l": U()
1730
1730
  }],
1731
1731
  /**
1732
1732
  * Border Radius Start Start
1733
1733
  * @see https://tailwindcss.com/docs/border-radius
1734
1734
  */
1735
1735
  "rounded-ss": [{
1736
- "rounded-ss": G()
1736
+ "rounded-ss": U()
1737
1737
  }],
1738
1738
  /**
1739
1739
  * Border Radius Start End
1740
1740
  * @see https://tailwindcss.com/docs/border-radius
1741
1741
  */
1742
1742
  "rounded-se": [{
1743
- "rounded-se": G()
1743
+ "rounded-se": U()
1744
1744
  }],
1745
1745
  /**
1746
1746
  * Border Radius End End
1747
1747
  * @see https://tailwindcss.com/docs/border-radius
1748
1748
  */
1749
1749
  "rounded-ee": [{
1750
- "rounded-ee": G()
1750
+ "rounded-ee": U()
1751
1751
  }],
1752
1752
  /**
1753
1753
  * Border Radius End Start
1754
1754
  * @see https://tailwindcss.com/docs/border-radius
1755
1755
  */
1756
1756
  "rounded-es": [{
1757
- "rounded-es": G()
1757
+ "rounded-es": U()
1758
1758
  }],
1759
1759
  /**
1760
1760
  * Border Radius Top Left
1761
1761
  * @see https://tailwindcss.com/docs/border-radius
1762
1762
  */
1763
1763
  "rounded-tl": [{
1764
- "rounded-tl": G()
1764
+ "rounded-tl": U()
1765
1765
  }],
1766
1766
  /**
1767
1767
  * Border Radius Top Right
1768
1768
  * @see https://tailwindcss.com/docs/border-radius
1769
1769
  */
1770
1770
  "rounded-tr": [{
1771
- "rounded-tr": G()
1771
+ "rounded-tr": U()
1772
1772
  }],
1773
1773
  /**
1774
1774
  * Border Radius Bottom Right
1775
1775
  * @see https://tailwindcss.com/docs/border-radius
1776
1776
  */
1777
1777
  "rounded-br": [{
1778
- "rounded-br": G()
1778
+ "rounded-br": U()
1779
1779
  }],
1780
1780
  /**
1781
1781
  * Border Radius Bottom Left
1782
1782
  * @see https://tailwindcss.com/docs/border-radius
1783
1783
  */
1784
1784
  "rounded-bl": [{
1785
- "rounded-bl": G()
1785
+ "rounded-bl": U()
1786
1786
  }],
1787
1787
  /**
1788
1788
  * Border Width
@@ -2131,10 +2131,10 @@ const Sp = (e, n) => {
2131
2131
  "mask-linear": [me]
2132
2132
  }],
2133
2133
  "mask-image-linear-from-pos": [{
2134
- "mask-linear-from": U()
2134
+ "mask-linear-from": G()
2135
2135
  }],
2136
2136
  "mask-image-linear-to-pos": [{
2137
- "mask-linear-to": U()
2137
+ "mask-linear-to": G()
2138
2138
  }],
2139
2139
  "mask-image-linear-from-color": [{
2140
2140
  "mask-linear-from": _()
@@ -2143,10 +2143,10 @@ const Sp = (e, n) => {
2143
2143
  "mask-linear-to": _()
2144
2144
  }],
2145
2145
  "mask-image-t-from-pos": [{
2146
- "mask-t-from": U()
2146
+ "mask-t-from": G()
2147
2147
  }],
2148
2148
  "mask-image-t-to-pos": [{
2149
- "mask-t-to": U()
2149
+ "mask-t-to": G()
2150
2150
  }],
2151
2151
  "mask-image-t-from-color": [{
2152
2152
  "mask-t-from": _()
@@ -2155,10 +2155,10 @@ const Sp = (e, n) => {
2155
2155
  "mask-t-to": _()
2156
2156
  }],
2157
2157
  "mask-image-r-from-pos": [{
2158
- "mask-r-from": U()
2158
+ "mask-r-from": G()
2159
2159
  }],
2160
2160
  "mask-image-r-to-pos": [{
2161
- "mask-r-to": U()
2161
+ "mask-r-to": G()
2162
2162
  }],
2163
2163
  "mask-image-r-from-color": [{
2164
2164
  "mask-r-from": _()
@@ -2167,10 +2167,10 @@ const Sp = (e, n) => {
2167
2167
  "mask-r-to": _()
2168
2168
  }],
2169
2169
  "mask-image-b-from-pos": [{
2170
- "mask-b-from": U()
2170
+ "mask-b-from": G()
2171
2171
  }],
2172
2172
  "mask-image-b-to-pos": [{
2173
- "mask-b-to": U()
2173
+ "mask-b-to": G()
2174
2174
  }],
2175
2175
  "mask-image-b-from-color": [{
2176
2176
  "mask-b-from": _()
@@ -2179,10 +2179,10 @@ const Sp = (e, n) => {
2179
2179
  "mask-b-to": _()
2180
2180
  }],
2181
2181
  "mask-image-l-from-pos": [{
2182
- "mask-l-from": U()
2182
+ "mask-l-from": G()
2183
2183
  }],
2184
2184
  "mask-image-l-to-pos": [{
2185
- "mask-l-to": U()
2185
+ "mask-l-to": G()
2186
2186
  }],
2187
2187
  "mask-image-l-from-color": [{
2188
2188
  "mask-l-from": _()
@@ -2191,10 +2191,10 @@ const Sp = (e, n) => {
2191
2191
  "mask-l-to": _()
2192
2192
  }],
2193
2193
  "mask-image-x-from-pos": [{
2194
- "mask-x-from": U()
2194
+ "mask-x-from": G()
2195
2195
  }],
2196
2196
  "mask-image-x-to-pos": [{
2197
- "mask-x-to": U()
2197
+ "mask-x-to": G()
2198
2198
  }],
2199
2199
  "mask-image-x-from-color": [{
2200
2200
  "mask-x-from": _()
@@ -2203,10 +2203,10 @@ const Sp = (e, n) => {
2203
2203
  "mask-x-to": _()
2204
2204
  }],
2205
2205
  "mask-image-y-from-pos": [{
2206
- "mask-y-from": U()
2206
+ "mask-y-from": G()
2207
2207
  }],
2208
2208
  "mask-image-y-to-pos": [{
2209
- "mask-y-to": U()
2209
+ "mask-y-to": G()
2210
2210
  }],
2211
2211
  "mask-image-y-from-color": [{
2212
2212
  "mask-y-from": _()
@@ -2218,10 +2218,10 @@ const Sp = (e, n) => {
2218
2218
  "mask-radial": [ie, se]
2219
2219
  }],
2220
2220
  "mask-image-radial-from-pos": [{
2221
- "mask-radial-from": U()
2221
+ "mask-radial-from": G()
2222
2222
  }],
2223
2223
  "mask-image-radial-to-pos": [{
2224
- "mask-radial-to": U()
2224
+ "mask-radial-to": G()
2225
2225
  }],
2226
2226
  "mask-image-radial-from-color": [{
2227
2227
  "mask-radial-from": _()
@@ -2245,10 +2245,10 @@ const Sp = (e, n) => {
2245
2245
  "mask-conic": [me]
2246
2246
  }],
2247
2247
  "mask-image-conic-from-pos": [{
2248
- "mask-conic-from": U()
2248
+ "mask-conic-from": G()
2249
2249
  }],
2250
2250
  "mask-image-conic-to-pos": [{
2251
- "mask-conic-to": U()
2251
+ "mask-conic-to": G()
2252
2252
  }],
2253
2253
  "mask-image-conic-from-color": [{
2254
2254
  "mask-conic-from": _()
@@ -2275,7 +2275,7 @@ const Sp = (e, n) => {
2275
2275
  * @see https://tailwindcss.com/docs/mask-position
2276
2276
  */
2277
2277
  "mask-position": [{
2278
- mask: X()
2278
+ mask: K()
2279
2279
  }],
2280
2280
  /**
2281
2281
  * Mask Repeat
@@ -2593,28 +2593,28 @@ const Sp = (e, n) => {
2593
2593
  * @see https://tailwindcss.com/docs/rotate
2594
2594
  */
2595
2595
  rotate: [{
2596
- rotate: K()
2596
+ rotate: X()
2597
2597
  }],
2598
2598
  /**
2599
2599
  * Rotate X
2600
2600
  * @see https://tailwindcss.com/docs/rotate
2601
2601
  */
2602
2602
  "rotate-x": [{
2603
- "rotate-x": K()
2603
+ "rotate-x": X()
2604
2604
  }],
2605
2605
  /**
2606
2606
  * Rotate Y
2607
2607
  * @see https://tailwindcss.com/docs/rotate
2608
2608
  */
2609
2609
  "rotate-y": [{
2610
- "rotate-y": K()
2610
+ "rotate-y": X()
2611
2611
  }],
2612
2612
  /**
2613
2613
  * Rotate Z
2614
2614
  * @see https://tailwindcss.com/docs/rotate
2615
2615
  */
2616
2616
  "rotate-z": [{
2617
- "rotate-z": K()
2617
+ "rotate-z": X()
2618
2618
  }],
2619
2619
  /**
2620
2620
  * Scale
@@ -2654,21 +2654,21 @@ const Sp = (e, n) => {
2654
2654
  * @see https://tailwindcss.com/docs/skew
2655
2655
  */
2656
2656
  skew: [{
2657
- skew: ue()
2657
+ skew: ce()
2658
2658
  }],
2659
2659
  /**
2660
2660
  * Skew X
2661
2661
  * @see https://tailwindcss.com/docs/skew
2662
2662
  */
2663
2663
  "skew-x": [{
2664
- "skew-x": ue()
2664
+ "skew-x": ce()
2665
2665
  }],
2666
2666
  /**
2667
2667
  * Skew Y
2668
2668
  * @see https://tailwindcss.com/docs/skew
2669
2669
  */
2670
2670
  "skew-y": [{
2671
- "skew-y": ue()
2671
+ "skew-y": ce()
2672
2672
  }],
2673
2673
  /**
2674
2674
  * Transform
@@ -3116,14 +3116,14 @@ const Qc = ({
3116
3116
  }, [u]), F = oe((D, Y) => {
3117
3117
  const _ = $();
3118
3118
  if (!_) return { x: D, y: Y };
3119
- let X = D, z = Y;
3120
- return _.left !== void 0 && (X = Math.max(X, _.left)), _.right !== void 0 && (X = Math.min(X, _.right)), _.top !== void 0 && (z = Math.max(z, _.top)), _.bottom !== void 0 && (z = Math.min(z, _.bottom)), { x: X, y: z };
3119
+ let K = D, z = Y;
3120
+ return _.left !== void 0 && (K = Math.max(K, _.left)), _.right !== void 0 && (K = Math.min(K, _.right)), _.top !== void 0 && (z = Math.max(z, _.top)), _.bottom !== void 0 && (z = Math.min(z, _.bottom)), { x: K, y: z };
3121
3121
  }, [$]), R = oe((D, Y) => {
3122
3122
  if (!p) return { x: D, y: Y };
3123
- const [_, X] = p;
3123
+ const [_, K] = p;
3124
3124
  return {
3125
3125
  x: Math.round(D / _) * _,
3126
- y: Math.round(Y / X) * X
3126
+ y: Math.round(Y / K) * K
3127
3127
  };
3128
3128
  }, [p]), b = oe((D, Y) => {
3129
3129
  switch (h) {
@@ -3139,12 +3139,12 @@ const Qc = ({
3139
3139
  }, [h, C]), j = oe((D) => {
3140
3140
  if (l || f && D.target.closest(f) || e && !D.target.closest(e) || !m && D.button !== 0) return;
3141
3141
  D.preventDefault(), D.stopPropagation();
3142
- const Y = E ? o : C, _ = D.clientX, X = D.clientY;
3142
+ const Y = E ? o : C, _ = D.clientX, K = D.clientY;
3143
3143
  A.current = {
3144
3144
  x: Y.x,
3145
3145
  y: Y.y,
3146
3146
  startX: _,
3147
- startY: X
3147
+ startY: K
3148
3148
  }, N(!0), w.current && w.current.classList.add(d);
3149
3149
  const z = D.nativeEvent;
3150
3150
  s?.(z, { x: Y.x, y: Y.y });
@@ -3153,20 +3153,20 @@ const Qc = ({
3153
3153
  if (!v || !A.current) return;
3154
3154
  const D = (_) => {
3155
3155
  if (!A.current || !w.current) return;
3156
- const X = (_.clientX - A.current.startX) / S, z = (_.clientY - A.current.startY) / S;
3157
- let T = A.current.x + X, M = A.current.y + z;
3158
- const G = b(T, M);
3159
- T = G.x, M = G.y;
3156
+ const K = (_.clientX - A.current.startX) / S, z = (_.clientY - A.current.startY) / S;
3157
+ let T = A.current.x + K, M = A.current.y + z;
3158
+ const U = b(T, M);
3159
+ T = U.x, M = U.y;
3160
3160
  const B = R(T, M);
3161
3161
  T = B.x, M = B.y;
3162
3162
  const te = F(T, M);
3163
3163
  T = te.x, M = te.y, E || k({ x: T, y: M }), i?.(_, { x: T, y: M });
3164
3164
  }, Y = (_) => {
3165
3165
  if (!A.current || !w.current) return;
3166
- const X = (_.clientX - A.current.startX) / S, z = (_.clientY - A.current.startY) / S;
3167
- let T = A.current.x + X, M = A.current.y + z;
3168
- const G = b(T, M);
3169
- T = G.x, M = G.y;
3166
+ const K = (_.clientX - A.current.startX) / S, z = (_.clientY - A.current.startY) / S;
3167
+ let T = A.current.x + K, M = A.current.y + z;
3168
+ const U = b(T, M);
3169
+ T = U.x, M = U.y;
3170
3170
  const B = R(T, M);
3171
3171
  T = B.x, M = B.y;
3172
3172
  const te = F(T, M);
@@ -5499,8 +5499,8 @@ svg.p-icon g,
5499
5499
  var d = m, x = /./g.test(d) && !!h[d.split(".")[0]], S = x ? De.toFlatCase(d.split(".")[1]) : De.toFlatCase(d), w = h.hostName && De.toFlatCase(h.hostName), C = w || h.props && h.props.__TYPE && De.toFlatCase(h.props.__TYPE) || "", k = S === "transition", v = "data-pc-", N = function(_) {
5500
5500
  return _ != null && _.props ? _.hostName ? _.props.__TYPE === _.hostName ? _.props : N(_.parent) : _.parent : void 0;
5501
5501
  }, A = function(_) {
5502
- var X, z;
5503
- return ((X = h.props) === null || X === void 0 ? void 0 : X[_]) || ((z = N(h)) === null || z === void 0 ? void 0 : z[_]);
5502
+ var K, z;
5503
+ return ((K = h.props) === null || K === void 0 ? void 0 : K[_]) || ((z = N(h)) === null || z === void 0 ? void 0 : z[_]);
5504
5504
  };
5505
5505
  He.cParams = h, He.cName = C;
5506
5506
  var E = A("ptOptions") || He.context.ptOptions || {}, $ = E.mergeSections, F = $ === void 0 ? !0 : $, R = E.mergeProps, b = R === void 0 ? !1 : R, j = function() {
@@ -6062,52 +6062,52 @@ const lh = Ce("flex items-center justify-center z-1 css-iuur1", {
6062
6062
  },
6063
6063
  closeDelay: Y = 0,
6064
6064
  animationDuration: _ = 0.2,
6065
- applyStackRules: X = !0,
6065
+ applyStackRules: K = !0,
6066
6066
  defaultOpen: z = !1,
6067
6067
  windowMode: T = !1
6068
- } = e, M = { open: n, ref: k, container: R, children: w, props: e, _children: a, id: r }, G = oe((L) => {
6068
+ } = e, M = { open: n, ref: k, container: R, children: w, props: e, _children: a, id: r }, U = oe((L) => {
6069
6069
  W({ ...M, event: L }), setTimeout(() => {
6070
- ce(i.current).addClass("opacity-0"), i.current?.addEventListener("transitionend", (K) => {
6071
- ce(R?.current).removeClass("overflow-hidden"), t(!1), l(null), L?.callback?.({ ...M, open: !1 }), P({ ...M, event: L });
6070
+ ue(i.current).addClass("opacity-0"), i.current?.addEventListener("transitionend", (X) => {
6071
+ ue(R?.current).removeClass("overflow-hidden"), t(!1), l(null), L?.callback?.({ ...M, open: !1 }), P({ ...M, event: L });
6072
6072
  });
6073
6073
  }, Y);
6074
6074
  }, [n, R, Y]), B = oe((L) => {
6075
- j({ ...M, open: !0, event: L }), ce(R?.current).addClass("overflow-hidden"), t(!0), setTimeout(() => {
6076
- ce(i.current).removeClass("opacity-0");
6075
+ j({ ...M, open: !0, event: L }), ue(R?.current).addClass("overflow-hidden"), t(!0), setTimeout(() => {
6076
+ ue(i.current).removeClass("opacity-0");
6077
6077
  }, 50);
6078
6078
  }, [n, R, i]);
6079
6079
  q(() => {
6080
6080
  z && B();
6081
- }, [z]), q(() => (n && h?.((L) => [...L, M]), n || h?.((L) => L.filter((K) => K.id !== r)), () => {
6082
- h?.((L) => L.filter((K) => K.id !== r));
6081
+ }, [z]), q(() => (n && h?.((L) => [...L, M]), n || h?.((L) => L.filter((X) => X.id !== r)), () => {
6082
+ h?.((L) => L.filter((X) => X.id !== r));
6083
6083
  }), [n]), q(() => {
6084
- const L = m?.findIndex((K) => K.id === r);
6085
- d(L), L > 0 && X && p(!0), L === 0 && X && p(!1), S(m?.length === L + 1);
6084
+ const L = m?.findIndex((X) => X.id === r);
6085
+ d(L), L > 0 && K && p(!0), L === 0 && K && p(!1), S(m?.length === L + 1);
6086
6086
  }, [m]), Tt(
6087
6087
  k,
6088
6088
  () => ({
6089
6089
  current: i.current,
6090
6090
  open: B,
6091
6091
  close: (L) => {
6092
- G({ callback: L });
6092
+ U({ callback: L });
6093
6093
  },
6094
6094
  props: e,
6095
6095
  isMultiWindowMode: o,
6096
6096
  isLastItemInArray: x,
6097
- applyStackRules: X,
6097
+ applyStackRules: K,
6098
6098
  bodyClick: C,
6099
6099
  get isOpen() {
6100
6100
  return n;
6101
6101
  }
6102
6102
  }),
6103
- [G, B, n, x, X, C]
6103
+ [U, B, n, x, K, C]
6104
6104
  ), q(() => {
6105
6105
  b(M);
6106
6106
  }, [n]);
6107
6107
  const te = le(() => !!(R?.current || R), [n]), re = le(() => /* @__PURE__ */ c.jsx(
6108
6108
  Vi.Provider,
6109
6109
  {
6110
- value: { openModel: B, closeModel: G, ref: k, props: e },
6110
+ value: { openModel: B, closeModel: U, ref: k, props: e },
6111
6111
  children: /* @__PURE__ */ c.jsx(Zm, { open: !0, children: /* @__PURE__ */ c.jsx(
6112
6112
  Bi,
6113
6113
  {
@@ -6117,7 +6117,7 @@ const lh = Ce("flex items-center justify-center z-1 css-iuur1", {
6117
6117
  style: {
6118
6118
  "--animate-period": _ + "s"
6119
6119
  },
6120
- onContextMenu: U,
6120
+ onContextMenu: G,
6121
6121
  id: r,
6122
6122
  className: V(
6123
6123
  lh({ variant: N, inline: A, blur: F }),
@@ -6131,9 +6131,9 @@ const lh = Ce("flex items-center justify-center z-1 css-iuur1", {
6131
6131
  yf,
6132
6132
  {
6133
6133
  onClickAway: (L) => {
6134
- if (D({ event: L, open: n, applyStackRules: X, isLastItemInArray: x, ref: k, container: R, children: w, props: e, _children: a, id: r }), C) {
6135
- if (X && !x) return;
6136
- G();
6134
+ if (D({ event: L, open: n, applyStackRules: K, isLastItemInArray: x, ref: k, container: R, children: w, props: e, _children: a, id: r }), C) {
6135
+ if (K && !x) return;
6136
+ U();
6137
6137
  }
6138
6138
  },
6139
6139
  children: a || w
@@ -6142,8 +6142,8 @@ const lh = Ce("flex items-center justify-center z-1 css-iuur1", {
6142
6142
  }
6143
6143
  ) })
6144
6144
  }
6145
- ), [a, w, n, te, f, C, X, x]);
6146
- function U(L) {
6145
+ ), [a, w, n, te, f, C, K, x]);
6146
+ function G(L) {
6147
6147
  E && (L.preventDefault(), t(!1));
6148
6148
  }
6149
6149
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -6306,7 +6306,7 @@ function ph() {
6306
6306
  }
6307
6307
  }
6308
6308
  var v = l, N = u, A = a, E = i, $ = n, F = f, R = r, b = g, j = h, P = t, W = s, D = o, Y = p, _ = !1;
6309
- function X(ee) {
6309
+ function K(ee) {
6310
6310
  return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), z(ee) || k(ee) === l;
6311
6311
  }
6312
6312
  function z(ee) {
@@ -6318,7 +6318,7 @@ function ph() {
6318
6318
  function M(ee) {
6319
6319
  return k(ee) === i;
6320
6320
  }
6321
- function G(ee) {
6321
+ function U(ee) {
6322
6322
  return typeof ee == "object" && ee !== null && ee.$$typeof === n;
6323
6323
  }
6324
6324
  function B(ee) {
@@ -6330,22 +6330,22 @@ function ph() {
6330
6330
  function re(ee) {
6331
6331
  return k(ee) === g;
6332
6332
  }
6333
- function U(ee) {
6333
+ function G(ee) {
6334
6334
  return k(ee) === h;
6335
6335
  }
6336
6336
  function L(ee) {
6337
6337
  return k(ee) === t;
6338
6338
  }
6339
- function K(ee) {
6339
+ function X(ee) {
6340
6340
  return k(ee) === s;
6341
6341
  }
6342
6342
  function J(ee) {
6343
6343
  return k(ee) === o;
6344
6344
  }
6345
- function ue(ee) {
6345
+ function ce(ee) {
6346
6346
  return k(ee) === p;
6347
6347
  }
6348
- xe.AsyncMode = v, xe.ConcurrentMode = N, xe.ContextConsumer = A, xe.ContextProvider = E, xe.Element = $, xe.ForwardRef = F, xe.Fragment = R, xe.Lazy = b, xe.Memo = j, xe.Portal = P, xe.Profiler = W, xe.StrictMode = D, xe.Suspense = Y, xe.isAsyncMode = X, xe.isConcurrentMode = z, xe.isContextConsumer = T, xe.isContextProvider = M, xe.isElement = G, xe.isForwardRef = B, xe.isFragment = te, xe.isLazy = re, xe.isMemo = U, xe.isPortal = L, xe.isProfiler = K, xe.isStrictMode = J, xe.isSuspense = ue, xe.isValidElementType = C, xe.typeOf = k;
6348
+ xe.AsyncMode = v, xe.ConcurrentMode = N, xe.ContextConsumer = A, xe.ContextProvider = E, xe.Element = $, xe.ForwardRef = F, xe.Fragment = R, xe.Lazy = b, xe.Memo = j, xe.Portal = P, xe.Profiler = W, xe.StrictMode = D, xe.Suspense = Y, xe.isAsyncMode = K, xe.isConcurrentMode = z, xe.isContextConsumer = T, xe.isContextProvider = M, xe.isElement = U, xe.isForwardRef = B, xe.isFragment = te, xe.isLazy = re, xe.isMemo = G, xe.isPortal = L, xe.isProfiler = X, xe.isStrictMode = J, xe.isSuspense = ce, xe.isValidElementType = C, xe.typeOf = k;
6349
6349
  })()), xe;
6350
6350
  }
6351
6351
  var Ua;
@@ -6513,30 +6513,30 @@ function gh() {
6513
6513
  function x(z) {
6514
6514
  if (process.env.NODE_ENV !== "production")
6515
6515
  var T = {}, M = 0;
6516
- function G(te, re, U, L, K, J, ue) {
6517
- if (L = L || m, J = J || U, ue !== t) {
6516
+ function U(te, re, G, L, X, J, ce) {
6517
+ if (L = L || m, J = J || G, ce !== t) {
6518
6518
  if (l) {
6519
6519
  var ee = new Error(
6520
6520
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
6521
6521
  );
6522
6522
  throw ee.name = "Invariant Violation", ee;
6523
6523
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
6524
- var Be = L + ":" + U;
6524
+ var Be = L + ":" + G;
6525
6525
  !T[Be] && // Avoid spamming the console because they are often not actionable except for lib authors
6526
6526
  M < 3 && (s(
6527
6527
  "You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
6528
6528
  ), T[Be] = !0, M++);
6529
6529
  }
6530
6530
  }
6531
- return re[U] == null ? te ? re[U] === null ? new d("The " + K + " `" + J + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new d("The " + K + " `" + J + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : z(re, U, L, K, J);
6531
+ return re[G] == null ? te ? re[G] === null ? new d("The " + X + " `" + J + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new d("The " + X + " `" + J + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : z(re, G, L, X, J);
6532
6532
  }
6533
- var B = G.bind(null, !1);
6534
- return B.isRequired = G.bind(null, !0), B;
6533
+ var B = U.bind(null, !1);
6534
+ return B.isRequired = U.bind(null, !0), B;
6535
6535
  }
6536
6536
  function S(z) {
6537
- function T(M, G, B, te, re, U) {
6538
- var L = M[G], K = D(L);
6539
- if (K !== z) {
6537
+ function T(M, U, B, te, re, G) {
6538
+ var L = M[U], X = D(L);
6539
+ if (X !== z) {
6540
6540
  var J = Y(L);
6541
6541
  return new d(
6542
6542
  "Invalid " + te + " `" + re + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected ") + ("`" + z + "`."),
@@ -6551,16 +6551,16 @@ function gh() {
6551
6551
  return x(i);
6552
6552
  }
6553
6553
  function C(z) {
6554
- function T(M, G, B, te, re) {
6554
+ function T(M, U, B, te, re) {
6555
6555
  if (typeof z != "function")
6556
6556
  return new d("Property `" + re + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
6557
- var U = M[G];
6558
- if (!Array.isArray(U)) {
6559
- var L = D(U);
6557
+ var G = M[U];
6558
+ if (!Array.isArray(G)) {
6559
+ var L = D(G);
6560
6560
  return new d("Invalid " + te + " `" + re + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected an array."));
6561
6561
  }
6562
- for (var K = 0; K < U.length; K++) {
6563
- var J = z(U, K, B, te, re + "[" + K + "]", t);
6562
+ for (var X = 0; X < G.length; X++) {
6563
+ var J = z(G, X, B, te, re + "[" + X + "]", t);
6564
6564
  if (J instanceof Error)
6565
6565
  return J;
6566
6566
  }
@@ -6569,32 +6569,32 @@ function gh() {
6569
6569
  return x(T);
6570
6570
  }
6571
6571
  function k() {
6572
- function z(T, M, G, B, te) {
6572
+ function z(T, M, U, B, te) {
6573
6573
  var re = T[M];
6574
6574
  if (!a(re)) {
6575
- var U = D(re);
6576
- return new d("Invalid " + B + " `" + te + "` of type " + ("`" + U + "` supplied to `" + G + "`, expected a single ReactElement."));
6575
+ var G = D(re);
6576
+ return new d("Invalid " + B + " `" + te + "` of type " + ("`" + G + "` supplied to `" + U + "`, expected a single ReactElement."));
6577
6577
  }
6578
6578
  return null;
6579
6579
  }
6580
6580
  return x(z);
6581
6581
  }
6582
6582
  function v() {
6583
- function z(T, M, G, B, te) {
6583
+ function z(T, M, U, B, te) {
6584
6584
  var re = T[M];
6585
6585
  if (!e.isValidElementType(re)) {
6586
- var U = D(re);
6587
- return new d("Invalid " + B + " `" + te + "` of type " + ("`" + U + "` supplied to `" + G + "`, expected a single ReactElement type."));
6586
+ var G = D(re);
6587
+ return new d("Invalid " + B + " `" + te + "` of type " + ("`" + G + "` supplied to `" + U + "`, expected a single ReactElement type."));
6588
6588
  }
6589
6589
  return null;
6590
6590
  }
6591
6591
  return x(z);
6592
6592
  }
6593
6593
  function N(z) {
6594
- function T(M, G, B, te, re) {
6595
- if (!(M[G] instanceof z)) {
6596
- var U = z.name || m, L = X(M[G]);
6597
- return new d("Invalid " + te + " `" + re + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected ") + ("instance of `" + U + "`."));
6594
+ function T(M, U, B, te, re) {
6595
+ if (!(M[U] instanceof z)) {
6596
+ var G = z.name || m, L = K(M[U]);
6597
+ return new d("Invalid " + te + " `" + re + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected ") + ("instance of `" + G + "`."));
6598
6598
  }
6599
6599
  return null;
6600
6600
  }
@@ -6605,28 +6605,28 @@ function gh() {
6605
6605
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
6606
6606
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
6607
6607
  ) : s("Invalid argument supplied to oneOf, expected an array.")), i;
6608
- function T(M, G, B, te, re) {
6609
- for (var U = M[G], L = 0; L < z.length; L++)
6610
- if (g(U, z[L]))
6608
+ function T(M, U, B, te, re) {
6609
+ for (var G = M[U], L = 0; L < z.length; L++)
6610
+ if (g(G, z[L]))
6611
6611
  return null;
6612
- var K = JSON.stringify(z, function(ue, ee) {
6612
+ var X = JSON.stringify(z, function(ce, ee) {
6613
6613
  var Be = Y(ee);
6614
6614
  return Be === "symbol" ? String(ee) : ee;
6615
6615
  });
6616
- return new d("Invalid " + te + " `" + re + "` of value `" + String(U) + "` " + ("supplied to `" + B + "`, expected one of " + K + "."));
6616
+ return new d("Invalid " + te + " `" + re + "` of value `" + String(G) + "` " + ("supplied to `" + B + "`, expected one of " + X + "."));
6617
6617
  }
6618
6618
  return x(T);
6619
6619
  }
6620
6620
  function E(z) {
6621
- function T(M, G, B, te, re) {
6621
+ function T(M, U, B, te, re) {
6622
6622
  if (typeof z != "function")
6623
6623
  return new d("Property `" + re + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
6624
- var U = M[G], L = D(U);
6624
+ var G = M[U], L = D(G);
6625
6625
  if (L !== "object")
6626
6626
  return new d("Invalid " + te + " `" + re + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected an object."));
6627
- for (var K in U)
6628
- if (r(U, K)) {
6629
- var J = z(U, K, B, te, re + "." + K, t);
6627
+ for (var X in G)
6628
+ if (r(G, X)) {
6629
+ var J = z(G, X, B, te, re + "." + X, t);
6630
6630
  if (J instanceof Error)
6631
6631
  return J;
6632
6632
  }
@@ -6644,62 +6644,62 @@ function gh() {
6644
6644
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + _(M) + " at index " + T + "."
6645
6645
  ), i;
6646
6646
  }
6647
- function G(B, te, re, U, L) {
6648
- for (var K = [], J = 0; J < z.length; J++) {
6649
- var ue = z[J], ee = ue(B, te, re, U, L, t);
6647
+ function U(B, te, re, G, L) {
6648
+ for (var X = [], J = 0; J < z.length; J++) {
6649
+ var ce = z[J], ee = ce(B, te, re, G, L, t);
6650
6650
  if (ee == null)
6651
6651
  return null;
6652
- ee.data && r(ee.data, "expectedType") && K.push(ee.data.expectedType);
6652
+ ee.data && r(ee.data, "expectedType") && X.push(ee.data.expectedType);
6653
6653
  }
6654
- var Be = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
6655
- return new d("Invalid " + U + " `" + L + "` supplied to " + ("`" + re + "`" + Be + "."));
6654
+ var Be = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
6655
+ return new d("Invalid " + G + " `" + L + "` supplied to " + ("`" + re + "`" + Be + "."));
6656
6656
  }
6657
- return x(G);
6657
+ return x(U);
6658
6658
  }
6659
6659
  function F() {
6660
- function z(T, M, G, B, te) {
6661
- return P(T[M]) ? null : new d("Invalid " + B + " `" + te + "` supplied to " + ("`" + G + "`, expected a ReactNode."));
6660
+ function z(T, M, U, B, te) {
6661
+ return P(T[M]) ? null : new d("Invalid " + B + " `" + te + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
6662
6662
  }
6663
6663
  return x(z);
6664
6664
  }
6665
- function R(z, T, M, G, B) {
6665
+ function R(z, T, M, U, B) {
6666
6666
  return new d(
6667
- (z || "React class") + ": " + T + " type `" + M + "." + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
6667
+ (z || "React class") + ": " + T + " type `" + M + "." + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
6668
6668
  );
6669
6669
  }
6670
6670
  function b(z) {
6671
- function T(M, G, B, te, re) {
6672
- var U = M[G], L = D(U);
6671
+ function T(M, U, B, te, re) {
6672
+ var G = M[U], L = D(G);
6673
6673
  if (L !== "object")
6674
6674
  return new d("Invalid " + te + " `" + re + "` of type `" + L + "` " + ("supplied to `" + B + "`, expected `object`."));
6675
- for (var K in z) {
6676
- var J = z[K];
6675
+ for (var X in z) {
6676
+ var J = z[X];
6677
6677
  if (typeof J != "function")
6678
- return R(B, te, re, K, Y(J));
6679
- var ue = J(U, K, B, te, re + "." + K, t);
6680
- if (ue)
6681
- return ue;
6678
+ return R(B, te, re, X, Y(J));
6679
+ var ce = J(G, X, B, te, re + "." + X, t);
6680
+ if (ce)
6681
+ return ce;
6682
6682
  }
6683
6683
  return null;
6684
6684
  }
6685
6685
  return x(T);
6686
6686
  }
6687
6687
  function j(z) {
6688
- function T(M, G, B, te, re) {
6689
- var U = M[G], L = D(U);
6688
+ function T(M, U, B, te, re) {
6689
+ var G = M[U], L = D(G);
6690
6690
  if (L !== "object")
6691
6691
  return new d("Invalid " + te + " `" + re + "` of type `" + L + "` " + ("supplied to `" + B + "`, expected `object`."));
6692
- var K = n({}, M[G], z);
6693
- for (var J in K) {
6694
- var ue = z[J];
6695
- if (r(z, J) && typeof ue != "function")
6696
- return R(B, te, re, J, Y(ue));
6697
- if (!ue)
6692
+ var X = n({}, M[U], z);
6693
+ for (var J in X) {
6694
+ var ce = z[J];
6695
+ if (r(z, J) && typeof ce != "function")
6696
+ return R(B, te, re, J, Y(ce));
6697
+ if (!ce)
6698
6698
  return new d(
6699
- "Invalid " + te + " `" + re + "` key `" + J + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(M[G], null, " ") + `
6699
+ "Invalid " + te + " `" + re + "` key `" + J + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(M[U], null, " ") + `
6700
6700
  Valid keys: ` + JSON.stringify(Object.keys(z), null, " ")
6701
6701
  );
6702
- var ee = ue(U, J, B, te, re + "." + J, t);
6702
+ var ee = ce(G, J, B, te, re + "." + J, t);
6703
6703
  if (ee)
6704
6704
  return ee;
6705
6705
  }
@@ -6722,14 +6722,14 @@ Valid keys: ` + JSON.stringify(Object.keys(z), null, " ")
6722
6722
  return !0;
6723
6723
  var T = p(z);
6724
6724
  if (T) {
6725
- var M = T.call(z), G;
6725
+ var M = T.call(z), U;
6726
6726
  if (T !== z.entries) {
6727
- for (; !(G = M.next()).done; )
6728
- if (!P(G.value))
6727
+ for (; !(U = M.next()).done; )
6728
+ if (!P(U.value))
6729
6729
  return !1;
6730
6730
  } else
6731
- for (; !(G = M.next()).done; ) {
6732
- var B = G.value;
6731
+ for (; !(U = M.next()).done; ) {
6732
+ var B = U.value;
6733
6733
  if (B && !P(B[1]))
6734
6734
  return !1;
6735
6735
  }
@@ -6773,7 +6773,7 @@ Valid keys: ` + JSON.stringify(Object.keys(z), null, " ")
6773
6773
  return T;
6774
6774
  }
6775
6775
  }
6776
- function X(z) {
6776
+ function K(z) {
6777
6777
  return !z.constructor || !z.constructor.name ? m : z.constructor.name;
6778
6778
  }
6779
6779
  return h.checkPropTypes = o, h.resetWarningCache = o.resetWarningCache, h.PropTypes = h, h;
@@ -8944,9 +8944,9 @@ function _y(e) {
8944
8944
  black: "#000"
8945
8945
  }
8946
8946
  }, v = (L) => {
8947
- var K;
8948
- const J = L.split("-"), ue = J[1], ee = J[2];
8949
- return C(L, (K = k[ue]) == null ? void 0 : K[ee]);
8947
+ var X;
8948
+ const J = L.split("-"), ce = J[1], ee = J[2];
8949
+ return C(L, (X = k[ce]) == null ? void 0 : X[ee]);
8950
8950
  }, N = (L) => ({
8951
8951
  plainColor: v(`palette-${L}-500`),
8952
8952
  plainHoverBg: v(`palette-${L}-100`),
@@ -9244,9 +9244,9 @@ function _y(e) {
9244
9244
  color: C(`palette-text-tertiary, ${E.palette.text.tertiary}`)
9245
9245
  }
9246
9246
  }
9247
- }, X = w ? qt(_, w) : _, {
9247
+ }, K = w ? qt(_, w) : _, {
9248
9248
  colorSchemes: z
9249
- } = X, T = Ue(X, $y), M = Q({
9249
+ } = K, T = Ue(K, $y), M = Q({
9250
9250
  colorSchemes: z
9251
9251
  }, T, {
9252
9252
  breakpoints: xu(h ?? {}),
@@ -9259,20 +9259,20 @@ function _y(e) {
9259
9259
  styleOverrides: {
9260
9260
  root: ({
9261
9261
  ownerState: L,
9262
- theme: K
9262
+ theme: X
9263
9263
  }) => {
9264
9264
  var J;
9265
- const ue = L.instanceFontSize;
9265
+ const ce = L.instanceFontSize;
9266
9266
  return Q({
9267
9267
  margin: "var(--Icon-margin)"
9268
9268
  }, L.fontSize && L.fontSize !== "inherit" && {
9269
- fontSize: `var(--Icon-fontSize, ${K.vars.fontSize[L.fontSize]})`
9269
+ fontSize: `var(--Icon-fontSize, ${X.vars.fontSize[L.fontSize]})`
9270
9270
  }, !L.htmlColor && Q({
9271
9271
  color: `var(--Icon-color, ${M.vars.palette.text.icon})`
9272
- }, L.color && L.color !== "inherit" && K.vars.palette[L.color] && {
9273
- color: `rgba(${(J = K.vars.palette[L.color]) == null ? void 0 : J.mainChannel} / 1)`
9274
- }), ue && ue !== "inherit" && {
9275
- "--Icon-fontSize": K.vars.fontSize[ue]
9272
+ }, L.color && L.color !== "inherit" && X.vars.palette[L.color] && {
9273
+ color: `rgba(${(J = X.vars.palette[L.color]) == null ? void 0 : J.mainChannel} / 1)`
9274
+ }), ce && ce !== "inherit" && {
9275
+ "--Icon-fontSize": X.vars.fontSize[ce]
9276
9276
  });
9277
9277
  }
9278
9278
  }
@@ -9282,18 +9282,18 @@ function _y(e) {
9282
9282
  getCssVar: C,
9283
9283
  spacing: Su(g)
9284
9284
  });
9285
- function G(L, K) {
9286
- Object.keys(K).forEach((J) => {
9287
- const ue = {
9285
+ function U(L, X) {
9286
+ Object.keys(X).forEach((J) => {
9287
+ const ce = {
9288
9288
  main: "500",
9289
9289
  light: "200",
9290
9290
  dark: "700"
9291
9291
  };
9292
- L === "dark" && (ue.main = 400), !K[J].mainChannel && K[J][ue.main] && (K[J].mainChannel = vn(K[J][ue.main])), !K[J].lightChannel && K[J][ue.light] && (K[J].lightChannel = vn(K[J][ue.light])), !K[J].darkChannel && K[J][ue.dark] && (K[J].darkChannel = vn(K[J][ue.dark]));
9292
+ L === "dark" && (ce.main = 400), !X[J].mainChannel && X[J][ce.main] && (X[J].mainChannel = vn(X[J][ce.main])), !X[J].lightChannel && X[J][ce.light] && (X[J].lightChannel = vn(X[J][ce.light])), !X[J].darkChannel && X[J][ce.dark] && (X[J].darkChannel = vn(X[J][ce.dark]));
9293
9293
  });
9294
9294
  }
9295
- Object.entries(M.colorSchemes).forEach(([L, K]) => {
9296
- G(L, K.palette);
9295
+ Object.entries(M.colorSchemes).forEach(([L, X]) => {
9296
+ U(L, X.palette);
9297
9297
  });
9298
9298
  const B = {
9299
9299
  prefix: m,
@@ -9308,33 +9308,33 @@ function _y(e) {
9308
9308
  }, T),
9309
9309
  B
9310
9310
  );
9311
- M.vars = te, M.generateCssVars = re, M.unstable_sxConfig = Q({}, Py, void 0), M.unstable_sx = function(K) {
9311
+ M.vars = te, M.generateCssVars = re, M.unstable_sxConfig = Q({}, Py, void 0), M.unstable_sx = function(X) {
9312
9312
  return ns({
9313
- sx: K,
9313
+ sx: X,
9314
9314
  theme: this
9315
9315
  });
9316
9316
  }, M.getColorSchemeSelector = (L) => L === "light" ? "&" : `&[data-joy-color-scheme="${L}"], [data-joy-color-scheme="${L}"] &`;
9317
- const U = {
9317
+ const G = {
9318
9318
  getCssVar: C,
9319
9319
  palette: M.colorSchemes.light.palette
9320
9320
  };
9321
9321
  return M.variants = qt({
9322
- plain: et("plain", U),
9323
- plainHover: et("plainHover", U),
9324
- plainActive: et("plainActive", U),
9325
- plainDisabled: et("plainDisabled", U),
9326
- outlined: et("outlined", U),
9327
- outlinedHover: et("outlinedHover", U),
9328
- outlinedActive: et("outlinedActive", U),
9329
- outlinedDisabled: et("outlinedDisabled", U),
9330
- soft: et("soft", U),
9331
- softHover: et("softHover", U),
9332
- softActive: et("softActive", U),
9333
- softDisabled: et("softDisabled", U),
9334
- solid: et("solid", U),
9335
- solidHover: et("solidHover", U),
9336
- solidActive: et("solidActive", U),
9337
- solidDisabled: et("solidDisabled", U)
9322
+ plain: et("plain", G),
9323
+ plainHover: et("plainHover", G),
9324
+ plainActive: et("plainActive", G),
9325
+ plainDisabled: et("plainDisabled", G),
9326
+ outlined: et("outlined", G),
9327
+ outlinedHover: et("outlinedHover", G),
9328
+ outlinedActive: et("outlinedActive", G),
9329
+ outlinedDisabled: et("outlinedDisabled", G),
9330
+ soft: et("soft", G),
9331
+ softHover: et("softHover", G),
9332
+ softActive: et("softActive", G),
9333
+ softDisabled: et("softDisabled", G),
9334
+ solid: et("solid", G),
9335
+ solidHover: et("solidHover", G),
9336
+ solidActive: et("solidActive", G),
9337
+ solidDisabled: et("solidDisabled", G)
9338
9338
  }, x), M.palette = Q({}, M.colorSchemes.light.palette, {
9339
9339
  colorScheme: "light"
9340
9340
  }), M.shouldSkipGeneratingVar = S, M.applyStyles = ku, M;
@@ -9742,7 +9742,7 @@ const Ky = (e) => {
9742
9742
  elementType: Xy,
9743
9743
  externalForwardedProps: j,
9744
9744
  ownerState: R
9745
- }), [_, X] = ht("endDecorator", {
9745
+ }), [_, K] = ht("endDecorator", {
9746
9746
  className: b.endDecorator,
9747
9747
  elementType: Qy,
9748
9748
  externalForwardedProps: j,
@@ -9755,7 +9755,7 @@ const Ky = (e) => {
9755
9755
  children: w
9756
9756
  })), $ ? /* @__PURE__ */ O.cloneElement(x, {
9757
9757
  variant: x.props.variant || "inline"
9758
- }) : x, S && /* @__PURE__ */ c.jsx(_, Q({}, X, {
9758
+ }) : x, S && /* @__PURE__ */ c.jsx(_, Q({}, K, {
9759
9759
  children: S
9760
9760
  }))]
9761
9761
  }))
@@ -10059,15 +10059,15 @@ const Zy = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
10059
10059
  component: W,
10060
10060
  slots: D = {},
10061
10061
  slotProps: Y = {}
10062
- } = l, _ = Ue(l, Zy), X = O.useContext(ju), z = (r = (o = n.disabled) != null ? o : X?.disabled) != null ? r : g, T = (s = (i = n.size) != null ? i : X?.size) != null ? s : P;
10062
+ } = l, _ = Ue(l, Zy), K = O.useContext(ju), z = (r = (o = n.disabled) != null ? o : K?.disabled) != null ? r : g, T = (s = (i = n.size) != null ? i : K?.size) != null ? s : P;
10063
10063
  if (process.env.NODE_ENV !== "production") {
10064
- const Lt = X?.registerEffect;
10064
+ const Lt = K?.registerEffect;
10065
10065
  O.useEffect(() => {
10066
10066
  if (Lt)
10067
10067
  return Lt();
10068
10068
  }, [Lt]);
10069
10069
  }
10070
- const M = Ph(S ?? X?.htmlFor), G = {
10070
+ const M = Ph(S ?? K?.htmlFor), U = {
10071
10071
  checked: u,
10072
10072
  defaultChecked: h,
10073
10073
  disabled: z,
@@ -10079,15 +10079,15 @@ const Zy = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
10079
10079
  getInputProps: B,
10080
10080
  checked: te,
10081
10081
  disabled: re,
10082
- focusVisible: U
10083
- } = og(G), L = te || w, ue = L ? j || "solid" : j || "outlined", ee = n.color || (X != null && X.error ? "danger" : (a = X?.color) != null ? a : b), it = Q({}, l, {
10082
+ focusVisible: G
10083
+ } = og(U), L = te || w, ce = L ? j || "solid" : j || "outlined", ee = n.color || (K != null && K.error ? "danger" : (a = K?.color) != null ? a : b), it = Q({}, l, {
10084
10084
  checked: te,
10085
10085
  disabled: re,
10086
10086
  disableIcon: d,
10087
10087
  overlay: x,
10088
- focusVisible: U,
10088
+ focusVisible: G,
10089
10089
  color: L ? ee || "primary" : ee || "neutral",
10090
- variant: ue,
10090
+ variant: ce,
10091
10091
  size: T
10092
10092
  }), pe = ev(it), Ye = Q({}, _, {
10093
10093
  component: W,
@@ -10116,8 +10116,8 @@ const Zy = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
10116
10116
  value: R,
10117
10117
  readOnly: $,
10118
10118
  role: void 0,
10119
- required: F ?? X?.required,
10120
- "aria-describedby": X?.["aria-describedby"]
10119
+ required: F ?? K?.required,
10120
+ "aria-describedby": K?.["aria-describedby"]
10121
10121
  }, w && {
10122
10122
  // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked#values
10123
10123
  "aria-checked": "mixed"
@@ -14221,19 +14221,19 @@ const ux = Pn("MuiButtonBase", ["root", "disabled", "focusVisible"]), dx = (e) =
14221
14221
  touchRippleRef: W,
14222
14222
  type: D,
14223
14223
  ...Y
14224
- } = r, _ = O.useRef(null), X = U0(), z = bi(X.ref, W), [T, M] = O.useState(!1);
14224
+ } = r, _ = O.useRef(null), K = U0(), z = bi(K.ref, W), [T, M] = O.useState(!1);
14225
14225
  u && T && M(!1), O.useImperativeHandle(o, () => ({
14226
14226
  focusVisible: () => {
14227
14227
  M(!0), _.current.focus();
14228
14228
  }
14229
14229
  }), []);
14230
- const G = X.shouldMount && !f && !u;
14230
+ const U = K.shouldMount && !f && !u;
14231
14231
  O.useEffect(() => {
14232
- T && m && !f && X.pulsate();
14233
- }, [f, m, T, X]);
14234
- const B = Ut(X, "start", A, p), te = Ut(X, "stop", S, p), re = Ut(X, "stop", w, p), U = Ut(X, "stop", $, p), L = Ut(X, "stop", (de) => {
14232
+ T && m && !f && K.pulsate();
14233
+ }, [f, m, T, K]);
14234
+ const B = Ut(K, "start", A, p), te = Ut(K, "stop", S, p), re = Ut(K, "stop", w, p), G = Ut(K, "stop", $, p), L = Ut(K, "stop", (de) => {
14235
14235
  T && de.preventDefault(), E && E(de);
14236
- }, p), K = Ut(X, "start", b, p), J = Ut(X, "stop", F, p), ue = Ut(X, "stop", R, p), ee = Ut(X, "stop", (de) => {
14236
+ }, p), X = Ut(K, "start", b, p), J = Ut(K, "stop", F, p), ce = Ut(K, "stop", R, p), ee = Ut(K, "stop", (de) => {
14237
14237
  Yl(de.target) || M(!1), d && d(de);
14238
14238
  }, !1), Be = No((de) => {
14239
14239
  _.current || (_.current = de.currentTarget), Yl(de.target) && (M(!0), k && k(de)), C && C(de);
@@ -14241,12 +14241,12 @@ const ux = Pn("MuiButtonBase", ["root", "disabled", "focusVisible"]), dx = (e) =
14241
14241
  const de = _.current;
14242
14242
  return l && l !== "button" && !(de.tagName === "A" && de.href);
14243
14243
  }, it = No((de) => {
14244
- m && !de.repeat && T && de.key === " " && X.stop(de, () => {
14245
- X.start(de);
14244
+ m && !de.repeat && T && de.key === " " && K.stop(de, () => {
14245
+ K.start(de);
14246
14246
  }), de.target === de.currentTarget && ft() && de.key === " " && de.preventDefault(), v && v(de), de.target === de.currentTarget && ft() && de.key === "Enter" && !u && (de.preventDefault(), x && x(de));
14247
14247
  }), pe = No((de) => {
14248
- m && de.key === " " && T && !de.defaultPrevented && X.stop(de, () => {
14249
- X.pulsate(de);
14248
+ m && de.key === " " && T && !de.defaultPrevented && K.stop(de, () => {
14249
+ K.pulsate(de);
14250
14250
  }), N && N(de), x && de.target === de.currentTarget && ft() && de.key === " " && !de.defaultPrevented && x(de);
14251
14251
  });
14252
14252
  let Ye = l;
@@ -14276,17 +14276,17 @@ const ux = Pn("MuiButtonBase", ["root", "disabled", "focusVisible"]), dx = (e) =
14276
14276
  onKeyUp: pe,
14277
14277
  onMouseDown: B,
14278
14278
  onMouseLeave: L,
14279
- onMouseUp: U,
14279
+ onMouseUp: G,
14280
14280
  onDragLeave: re,
14281
14281
  onTouchEnd: J,
14282
- onTouchMove: ue,
14283
- onTouchStart: K,
14282
+ onTouchMove: ce,
14283
+ onTouchStart: X,
14284
14284
  ref: Ot,
14285
14285
  tabIndex: u ? -1 : j,
14286
14286
  type: D,
14287
14287
  ...at,
14288
14288
  ...Y,
14289
- children: [i, G ? /* @__PURE__ */ c.jsx(ed, {
14289
+ children: [i, U ? /* @__PURE__ */ c.jsx(ed, {
14290
14290
  ref: z,
14291
14291
  center: s,
14292
14292
  ...P
@@ -15927,39 +15927,41 @@ const Jx = (e) => {
15927
15927
  id: s,
15928
15928
  index: i,
15929
15929
  draggable: a,
15930
- bounds: l
15931
- } = e, u = ze(), [f, p] = I(!1);
15932
- function m() {
15933
- ce(".abui-window-box").attr("data-ontop", "false"), ce(".abui-window-box-content").attr("data-ontop", "false"), ce(n.current).parent().attr("data-ontop", "true"), ce(n.current).attr("data-ontop", "true");
15934
- }
15935
- return q(() => (m(), console.log(l), ce(document).on("bringtofront", (h, g) => {
15936
- g === s && m();
15930
+ bounds: l,
15931
+ draggableProps: u
15932
+ } = e, f = ze(), [p, m] = I(!1);
15933
+ function h() {
15934
+ ue(".abui-window-box").attr("data-ontop", "false"), ue(".abui-window-box-content").attr("data-ontop", "false"), ue(n.current).parent().attr("data-ontop", "true"), ue(n.current).attr("data-ontop", "true");
15935
+ }
15936
+ return q(() => (h(), console.log(l), ue(document).on("bringtofront", (g, d) => {
15937
+ d === s && h();
15937
15938
  }), () => {
15938
- ce(document).off("bringtofront");
15939
+ ue(document).off("bringtofront");
15939
15940
  }), []), /* @__PURE__ */ c.jsx(
15940
15941
  vp,
15941
15942
  {
15942
15943
  defaultClassName: "group absolute z-auto abui-window-box bg-red-200 data-[ontop=true]:z-50 pointer-events-auto",
15943
15944
  handle: ".abui-window-box-dragger",
15944
15945
  nodeRef: n,
15945
- onClick: m,
15946
- onStart: m,
15946
+ onClick: h,
15947
+ onStart: h,
15947
15948
  disabled: !a,
15948
15949
  bounds: l,
15949
15950
  defaultPosition: {
15950
15951
  y: i * 25,
15951
15952
  x: i * 25
15952
15953
  },
15954
+ ...u,
15953
15955
  children: /* @__PURE__ */ c.jsxs(
15954
15956
  "div",
15955
15957
  {
15956
- id: u,
15958
+ id: f,
15957
15959
  ref: n,
15958
15960
  "data-bounds": JSON.stringify(l),
15959
15961
  "data-window-id": s,
15960
15962
  className: "abui-window-box-content absolute data-[ontop=true]:shadow",
15961
- onClick: m,
15962
- onDragStart: m,
15963
+ onClick: h,
15964
+ onDragStart: h,
15963
15965
  children: [
15964
15966
  /* @__PURE__ */ c.jsx("div", { className: V(
15965
15967
  "abui-window-box-dragger z-51 w-full absolute top-0 left-0 h-3",
@@ -15987,14 +15989,14 @@ const Jx = (e) => {
15987
15989
  beforeReady: u
15988
15990
  } = e, [f, p] = I(!1), [m, h] = I(!1), g = ne({}), [d, x] = I([]), [S, w] = I({
15989
15991
  removeHtmlElement: z,
15990
- createHtmlElements: X,
15992
+ createHtmlElements: K,
15991
15993
  getHtmlElement: T
15992
15994
  }), [C, k] = I(r), [v, N] = I(), [A, E] = I(0), [$, F] = I([]), [R, b] = I(0), j = localStorage.getItem("buid"), P = (M) => {
15993
15995
  j || localStorage.setItem("buid", ih()), h(!0);
15994
- }, W = (M, G) => {
15995
- g.current = { ...g.current, [M]: G };
15996
- }, D = (M, G) => {
15997
- w((B) => ({ ...B, [M]: G }));
15996
+ }, W = (M, U) => {
15997
+ g.current = { ...g.current, [M]: U };
15998
+ }, D = (M, U) => {
15999
+ w((B) => ({ ...B, [M]: U }));
15998
16000
  }, Y = () => {
15999
16001
  E((M) => M + 1);
16000
16002
  }, _ = {
@@ -16015,7 +16017,7 @@ const Jx = (e) => {
16015
16017
  modelStack: $,
16016
16018
  setModelStack: F,
16017
16019
  htmlElements: d,
16018
- createHtmlElements: X,
16020
+ createHtmlElements: K,
16019
16021
  removeHtmlElement: z
16020
16022
  };
16021
16023
  q(() => {
@@ -16023,30 +16025,32 @@ const Jx = (e) => {
16023
16025
  }, [f]), q(() => (m && (u?.(_), p(m)), () => {
16024
16026
  F([]);
16025
16027
  }), [m]);
16026
- function X(M, G, B = {}) {
16028
+ function K(M, U, B = {}) {
16027
16029
  const {
16028
16030
  draggable: te = !0,
16029
- bounds: re = ".abui-context-root"
16031
+ bounds: re = ".abui-context-root",
16032
+ draggableProps: G = {}
16030
16033
  } = B;
16031
- x((U) => U.find((K) => K.id === M) ? (ce(document).trigger("bringtofront", [M]), U) : [
16032
- ...U,
16034
+ x((L) => L.find((J) => J.id === M) ? (ue(document).trigger("bringtofront", [M]), L) : [
16035
+ ...L,
16033
16036
  {
16034
16037
  id: M,
16035
- element: G,
16036
- zIndex: U?.length,
16038
+ element: U,
16039
+ zIndex: L?.length,
16037
16040
  draggable: te,
16038
16041
  remove: () => {
16039
- x((K) => K.filter((J) => J.id !== M));
16042
+ x((J) => J.filter((ce) => ce.id !== M));
16040
16043
  },
16041
16044
  portal: /* @__PURE__ */ c.jsx(
16042
16045
  tC,
16043
16046
  {
16044
16047
  htmlElements: d,
16045
16048
  id: M,
16046
- index: U?.length,
16049
+ index: L?.length,
16047
16050
  draggable: te,
16048
16051
  bounds: re,
16049
- children: G
16052
+ draggableProps: G,
16053
+ children: U
16050
16054
  },
16051
16055
  M
16052
16056
  )
@@ -16054,10 +16058,10 @@ const Jx = (e) => {
16054
16058
  ]);
16055
16059
  }
16056
16060
  function z(M) {
16057
- x((G) => G.filter((B) => B.id !== M));
16061
+ x((U) => U.filter((B) => B.id !== M));
16058
16062
  }
16059
16063
  function T(M) {
16060
- return d.find((G) => G.id === M);
16064
+ return d.find((U) => U.id === M);
16061
16065
  }
16062
16066
  return /* @__PURE__ */ c.jsxs(Tn.Provider, { value: {
16063
16067
  ready: f,
@@ -16076,7 +16080,7 @@ const Jx = (e) => {
16076
16080
  setExternalApi: w,
16077
16081
  modelStack: $,
16078
16082
  setModelStack: F,
16079
- createHtmlElements: X,
16083
+ createHtmlElements: K,
16080
16084
  htmlElements: d,
16081
16085
  removeHtmlElement: z,
16082
16086
  windowIndex: R,
@@ -16098,7 +16102,7 @@ function ar(e, n = {}) {
16098
16102
  const {
16099
16103
  returnUpdate: t = !1
16100
16104
  } = n, [r, o] = I({ y: 0, x: 0, width: 0, height: 0 }), s = () => {
16101
- const i = ce(e?.current).height(), a = ce(e?.current).width();
16105
+ const i = ue(e?.current).height(), a = ue(e?.current).width();
16102
16106
  o({ y: i, x: a, width: a, height: i });
16103
16107
  };
16104
16108
  return q(() => {
@@ -16289,7 +16293,7 @@ const cC = (e) => {
16289
16293
  k(P), j?.source != "default " && t(j, P);
16290
16294
  }, [n]), b = oe(() => {
16291
16295
  C && setTimeout(() => {
16292
- const j = "_" + btoa(C).replaceAll("=", ""), P = ce("." + j).get(0);
16296
+ const j = "_" + btoa(C).replaceAll("=", ""), P = ue("." + j).get(0);
16293
16297
  P && P.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
16294
16298
  }, 100);
16295
16299
  }, [C]);
@@ -16348,11 +16352,11 @@ const cC = (e) => {
16348
16352
  /* @__PURE__ */ c.jsx("div", { className: "rounded-none text-blue-500 w-[20px] aspect-square px-0 truncate flex items-center justify-center", children: /* @__PURE__ */ c.jsx(kc, { size: 14 }) }),
16349
16353
  /* @__PURE__ */ c.jsx("label", { children: D })
16350
16354
  ] }) : /* @__PURE__ */ c.jsx("label", { children: D }),
16351
- onSelect: (X) => {
16355
+ onSelect: (K) => {
16352
16356
  R({
16353
- value: X,
16357
+ value: K,
16354
16358
  item: j
16355
- }, X), N(!1);
16359
+ }, K), N(!1);
16356
16360
  }
16357
16361
  },
16358
16362
  P
@@ -16597,7 +16601,7 @@ const mC = ({
16597
16601
  });
16598
16602
  function vC(e) {
16599
16603
  const [n, t] = I({ y: 0, x: 0, width: 0, height: 0 }), r = () => {
16600
- const o = ce(e).height(), s = ce(e).width(), i = e.getBoundingClientRect();
16604
+ const o = ue(e).height(), s = ue(e).width(), i = e.getBoundingClientRect();
16601
16605
  t({ y: o, x: s, width: s, height: o, clientRect: i });
16602
16606
  };
16603
16607
  return q(() => {
@@ -17452,8 +17456,8 @@ const UC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
17452
17456
  if (P) {
17453
17457
  o.location.lat = B.lngLat.lat, o.location.lng = B.lngLat.lng;
17454
17458
  const te = g?.map((re) => {
17455
- const U = re?.sourceId == o.elementId ? "source" : re?.destinationId == o.elementId ? "destination" : null;
17456
- return U && (re[U].lat = B.lngLat.lat, re[U].lng = B.lngLat.lng), re;
17459
+ const G = re?.sourceId == o.elementId ? "source" : re?.destinationId == o.elementId ? "destination" : null;
17460
+ return G && (re[G].lat = B.lngLat.lat, re[G].lng = B.lngLat.lng), re;
17457
17461
  });
17458
17462
  f(h, te, !0);
17459
17463
  }
@@ -17461,16 +17465,16 @@ const UC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
17461
17465
  W(null);
17462
17466
  };
17463
17467
  }, [P]);
17464
- const X = oe((B) => {
17468
+ const K = oe((B) => {
17465
17469
  B?.originalEvent?.stopPropagation(), x({ event: B, data: o, type: "node", id: A, elementId: o?.elementId, mapApi: a, ref: v });
17466
17470
  }, [A]), z = oe((B) => {
17467
17471
  $([B.lngLat.lng, B.lngLat.lat]), s?.draggingMode && !s?.hideLinksOnDrag && W(B);
17468
17472
  }, [A, s?.draggingMode]), T = oe((B) => {
17469
17473
  s?.draggingMode && s?.hideLinksOnDrag && W(B);
17470
- }, [A]), M = le(() => [0, 0], []), G = "visible";
17474
+ }, [A]), M = le(() => [0, 0], []), U = "visible";
17471
17475
  return q(() => {
17472
17476
  console.log("Rendered Node Item : ", o);
17473
- }, [G]), /* @__PURE__ */ c.jsx(Mr, { mode: G, children: /* @__PURE__ */ c.jsx(
17477
+ }, [U]), /* @__PURE__ */ c.jsx(Mr, { mode: U, children: /* @__PURE__ */ c.jsx(
17474
17478
  xd,
17475
17479
  {
17476
17480
  ref: N,
@@ -17488,7 +17492,7 @@ const UC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
17488
17492
  s?.draggingMode && "cursor-grab",
17489
17493
  C
17490
17494
  ),
17491
- onClick: X,
17495
+ onClick: K,
17492
17496
  children: /* @__PURE__ */ c.jsx(
17493
17497
  "div",
17494
17498
  {
@@ -17500,7 +17504,7 @@ const UC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
17500
17504
  },
17501
17505
  onMouseEnter: (B) => {
17502
17506
  B?.originalEvent?.stopPropagation(), w(!0), console.log(a);
17503
- const te = ce(a?.current?.element?.current).height(), re = ce(a?.current?.element?.current).width(), U = N?.current?._pos?.y, L = te - U;
17507
+ const te = ue(a?.current?.element?.current).height(), re = ue(a?.current?.element?.current).width(), G = N?.current?._pos?.y, L = te - G;
17504
17508
  S({
17505
17509
  event: B,
17506
17510
  data: o,
@@ -17511,7 +17515,7 @@ const UC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
17511
17515
  clientHeight: te,
17512
17516
  clientWidth: re,
17513
17517
  markerRef: N,
17514
- offsetTop: U,
17518
+ offsetTop: G,
17515
17519
  remainingBottom: L
17516
17520
  });
17517
17521
  },
@@ -18419,7 +18423,7 @@ const kw = (e) => {
18419
18423
  try {
18420
18424
  const v = t?.current;
18421
18425
  if (!v || !n?.source || !n?.destination) return null;
18422
- const N = v.project([n?.source?.lng, n?.source?.lat]), A = v.project([n?.destination?.lng, n?.destination?.lat]), E = A?.x - N?.x, $ = A?.y - N?.y, F = Math.hypot(E, $) || 1, R = E / F, b = $ / F, j = -b, P = R, W = n?.source?.markerSize ? n?.source?.markerSize / 2 : 12, D = F, Y = { along: 100, perpendicular: 0 }, _ = n?.sourcePortOffset || {}, X = typeof _?.along == "number" ? _.along : Y.along, z = typeof _?.perpendicular == "number" ? _.perpendicular : Y.perpendicular, T = W + X, M = Math.min(Math.max(T, W + 4), D * 0.6), G = z, B = j * G + R * M, te = P * G + b * M, re = N?.x + B, U = N?.y + te, L = v.unproject([re, U]), K = Math.atan2(b, R) * 180 / Math.PI, J = (K + 360) % 360, ee = J > 90 && J < 270 ? K + 180 : K;
18426
+ const N = v.project([n?.source?.lng, n?.source?.lat]), A = v.project([n?.destination?.lng, n?.destination?.lat]), E = A?.x - N?.x, $ = A?.y - N?.y, F = Math.hypot(E, $) || 1, R = E / F, b = $ / F, j = -b, P = R, W = n?.source?.markerSize ? n?.source?.markerSize / 2 : 12, D = F, Y = { along: 100, perpendicular: 0 }, _ = n?.sourcePortOffset || {}, K = typeof _?.along == "number" ? _.along : Y.along, z = typeof _?.perpendicular == "number" ? _.perpendicular : Y.perpendicular, T = W + K, M = Math.min(Math.max(T, W + 4), D * 0.6), U = z, B = j * U + R * M, te = P * U + b * M, re = N?.x + B, G = N?.y + te, L = v.unproject([re, G]), X = Math.atan2(b, R) * 180 / Math.PI, J = (X + 360) % 360, ee = J > 90 && J < 270 ? X + 180 : X;
18423
18427
  return { position: { lng: L?.lng, lat: L?.lat }, rotation: ee };
18424
18428
  } catch {
18425
18429
  return null;
@@ -18428,7 +18432,7 @@ const kw = (e) => {
18428
18432
  try {
18429
18433
  const v = t?.current;
18430
18434
  if (!v || !n?.source || !n?.destination) return null;
18431
- const N = v.project([n?.source?.lng, n?.source?.lat]), A = v.project([n?.destination?.lng, n?.destination?.lat]), E = N?.x - A?.x, $ = N?.y - A?.y, F = Math.hypot(E, $) || 1, R = E / F, b = $ / F, j = -b, P = R, W = n?.destination?.markerSize ? n?.destination?.markerSize / 2 : 12, D = F, Y = { along: 100, perpendicular: 0 }, _ = n?.destinationPortOffset || {}, X = typeof _?.along == "number" ? _.along : Y.along, z = typeof _?.perpendicular == "number" ? _.perpendicular : Y.perpendicular, T = W + X, M = Math.min(Math.max(T, W + 4), D * 0.6), G = z, B = j * G + R * M, te = P * G + b * M, re = A?.x + B, U = A?.y + te, L = v.unproject([re, U]), K = Math.atan2(b, R) * 180 / Math.PI, J = (K + 360) % 360, ee = J > 90 && J < 270 ? K + 180 : K;
18435
+ const N = v.project([n?.source?.lng, n?.source?.lat]), A = v.project([n?.destination?.lng, n?.destination?.lat]), E = N?.x - A?.x, $ = N?.y - A?.y, F = Math.hypot(E, $) || 1, R = E / F, b = $ / F, j = -b, P = R, W = n?.destination?.markerSize ? n?.destination?.markerSize / 2 : 12, D = F, Y = { along: 100, perpendicular: 0 }, _ = n?.destinationPortOffset || {}, K = typeof _?.along == "number" ? _.along : Y.along, z = typeof _?.perpendicular == "number" ? _.perpendicular : Y.perpendicular, T = W + K, M = Math.min(Math.max(T, W + 4), D * 0.6), U = z, B = j * U + R * M, te = P * U + b * M, re = A?.x + B, G = A?.y + te, L = v.unproject([re, G]), X = Math.atan2(b, R) * 180 / Math.PI, J = (X + 360) % 360, ee = J > 90 && J < 270 ? X + 180 : X;
18432
18436
  return { position: { lng: L?.lng, lat: L?.lat }, rotation: ee };
18433
18437
  } catch {
18434
18438
  return null;
@@ -18927,19 +18931,19 @@ const gc = [
18927
18931
  enableNativeContextMenu: D = !0,
18928
18932
  hideLinks: Y = !1,
18929
18933
  getCenterBox: _,
18930
- enableLngLatBox: X = !0,
18934
+ enableLngLatBox: K = !0,
18931
18935
  enalbeSearchBox: z = !0,
18932
18936
  nodeVirtualizationMethod: T = "moveend",
18933
18937
  draggingMode: M = !1,
18934
- mapProps: G = {},
18938
+ mapProps: U = {},
18935
18939
  menuItems: B = [],
18936
18940
  nodeMenuItems: te = [],
18937
18941
  showHoveredLinksOnly: re = !1,
18938
- nodeIconMapper: U,
18942
+ nodeIconMapper: G,
18939
18943
  nodeIconMapperParentClassName: L = "",
18940
- mapStyle: K = gc?.[1],
18944
+ mapStyle: X = gc?.[1],
18941
18945
  isolateNonSelectedLinksOnNodeClick: J = !1,
18942
- showLinkCount: ue = !0,
18946
+ showLinkCount: ce = !0,
18943
18947
  debug: ee = !1,
18944
18948
  className: Be = "",
18945
18949
  customNavigateButtonsClassName: ft = "",
@@ -18970,7 +18974,7 @@ const gc = [
18970
18974
  draggingMode: M,
18971
18975
  isolateNonSelectedLinksOnNodeClick: J,
18972
18976
  staticMapColor: k,
18973
- mapStyle: K,
18977
+ mapStyle: X,
18974
18978
  showEndpoints: W,
18975
18979
  enalbeSearchBox: z,
18976
18980
  loadSavedPreferences: l,
@@ -19010,20 +19014,20 @@ const gc = [
19010
19014
  link_highlighted_color_hex: Pr(o),
19011
19015
  defaultAnimationLinkColor: Pr(i),
19012
19016
  enableNativeContextMenu: D,
19013
- enableLngLatBox: X,
19017
+ enableLngLatBox: K,
19014
19018
  hideLinksOnDrag: a,
19015
19019
  showHoveredLinksOnly: re,
19016
19020
  hideLinks: Y,
19017
- mapStyle: K,
19021
+ mapStyle: X,
19018
19022
  draggingMode: M,
19019
19023
  isolateNonSelectedLinksOnNodeClick: J,
19020
- showLinkCount: ue,
19024
+ showLinkCount: ce,
19021
19025
  maxZoomOutForLinkCount: v,
19022
19026
  nodeSizeScaler: N,
19023
19027
  pathCurvature: Ye,
19024
19028
  pathThikness: at
19025
19029
  }));
19026
- }, [h, at, Ye, l, v, ue, ye?.current, J, M, re, K?.name, Y, s, o, i, D, X, a, v, N]);
19030
+ }, [h, at, Ye, l, v, ce, ye?.current, J, M, re, X?.name, Y, s, o, i, D, K, a, v, N]);
19027
19031
  const js = le(() => {
19028
19032
  const Z = eo / t;
19029
19033
  return Lw * Z - 0.3;
@@ -19327,7 +19331,7 @@ const gc = [
19327
19331
  onClick: ba,
19328
19332
  dragPan: { inertia: !1 },
19329
19333
  dragRotate: !1,
19330
- ...G,
19334
+ ...U,
19331
19335
  children: [
19332
19336
  /* @__PURE__ */ c.jsx(
19333
19337
  Mw,
@@ -19355,7 +19359,7 @@ const gc = [
19355
19359
  options: Ve,
19356
19360
  CreateMapObjectsScheme: yr,
19357
19361
  latitude: Z?.location?.lat,
19358
- nodeIconMapper: U,
19362
+ nodeIconMapper: G,
19359
19363
  hoveredConnection: pt,
19360
19364
  onScreenLinksGroup: cr,
19361
19365
  onNodeSelected: Je,
@@ -19429,7 +19433,7 @@ const gc = [
19429
19433
  children: u
19430
19434
  }
19431
19435
  ),
19432
- X && /* @__PURE__ */ c.jsx(ww, { ref: Ft }),
19436
+ K && /* @__PURE__ */ c.jsx(ww, { ref: Ft }),
19433
19437
  Ve?.enalbeSearchBox && /* @__PURE__ */ c.jsx(Dw, { ref: pe, nodes: Ct }),
19434
19438
  ee && /* @__PURE__ */ c.jsx(Fw, {})
19435
19439
  ]
@@ -19521,12 +19525,12 @@ const $d = ln({}), sk = (e) => {
19521
19525
  function S() {
19522
19526
  const w = t.current.dataset.state != "open", C = { ...e, open: w, ref: t, refTrigger: o };
19523
19527
  w && (u(C), setTimeout(() => {
19524
- ce(r.current).find("div").first().removeClass("css-opacity-0");
19528
+ ue(r.current).find("div").first().removeClass("css-opacity-0");
19525
19529
  }, h)), w || f(C), g((k) => ({ ...k, ...C }));
19526
19530
  }
19527
19531
  return q(() => {
19528
19532
  p && o?.current && setTimeout(() => {
19529
- ce(o.current).click();
19533
+ ue(o.current).click();
19530
19534
  }, 100);
19531
19535
  }, [p]), /* @__PURE__ */ c.jsxs(
19532
19536
  oa,
@@ -19855,7 +19859,7 @@ const Jw = (e) => {
19855
19859
  /* @__PURE__ */ c.jsx(Hf, {})
19856
19860
  ]), S = () => {
19857
19861
  console.log(g);
19858
- const w = ce(p?.current)?.closest(".abui-panel")?.parent().attr("data-window-id");
19862
+ const w = ue(p?.current)?.closest(".abui-panel")?.parent().attr("data-window-id");
19859
19863
  g?.removeHtmlElement?.(w), h?.();
19860
19864
  };
19861
19865
  return q(() => {
@@ -19878,8 +19882,8 @@ const Jw = (e) => {
19878
19882
  tooltip1: "Maximize",
19879
19883
  tooltip2: "Minimize",
19880
19884
  onClick: () => {
19881
- const w = ce(p?.current).attr("data-size");
19882
- ce(p?.current).attr("data-size", w === "default" ? "maximized" : "default"), ce(p.current).toggleClass("w-screen h-screen fixed top-0 left-0"), u && (ce(p?.current)?.closest(".abui-window-box").toggleClass("top-0 left-0 transform-none!"), ce(p?.current)?.closest(".abui-context-root").toggleClass("z-600!"));
19885
+ const w = ue(p?.current).attr("data-size");
19886
+ ue(p?.current).attr("data-size", w === "default" ? "maximized" : "default"), ue(p.current).toggleClass("w-screen h-screen fixed top-0 left-0"), u && (ue(p?.current)?.closest(".abui-window-box").toggleClass("top-0 left-0 transform-none!"), ue(p?.current)?.closest(".abui-context-root").toggleClass("z-600!"));
19883
19887
  }
19884
19888
  }
19885
19889
  ),
@@ -19892,7 +19896,7 @@ const Jw = (e) => {
19892
19896
  tooltip1: a[0],
19893
19897
  tooltip2: a[1],
19894
19898
  onClick: () => {
19895
- ce(p.current).find(".css-i231").toggle();
19899
+ ue(p.current).find(".css-i231").toggle();
19896
19900
  }
19897
19901
  }
19898
19902
  )
@@ -19927,12 +19931,12 @@ const Jw = (e) => {
19927
19931
  /* @__PURE__ */ c.jsx(Ms, { size: 16 }),
19928
19932
  /* @__PURE__ */ c.jsx(So, { size: 16 })
19929
19933
  ]), [v, N] = I([]), A = oe(() => {
19930
- p ? (ce(w.current).find(".css-i231").hide(), k([/* @__PURE__ */ c.jsx(So, { size: 16 }), /* @__PURE__ */ c.jsx(Ms, { size: 16 })]), N(["Hide", "Show"])) : p || (ce(w.current).find(".css-i231").show(), k([/* @__PURE__ */ c.jsx(Ms, { size: 16 }), /* @__PURE__ */ c.jsx(So, { size: 16 })]), N(["Show", "Hide"]));
19934
+ p ? (ue(w.current).find(".css-i231").hide(), k([/* @__PURE__ */ c.jsx(So, { size: 16 }), /* @__PURE__ */ c.jsx(Ms, { size: 16 })]), N(["Hide", "Show"])) : p || (ue(w.current).find(".css-i231").show(), k([/* @__PURE__ */ c.jsx(Ms, { size: 16 }), /* @__PURE__ */ c.jsx(So, { size: 16 })]), N(["Show", "Hide"]));
19931
19935
  }, [p]);
19932
19936
  q(() => {
19933
19937
  A();
19934
19938
  }, [p]);
19935
- const E = le(() => ce(w?.current)?.closest(".abui-panel")?.parent().hasClass("abui-window-box-content"), [w?.current]);
19939
+ const E = le(() => ue(w?.current)?.closest(".abui-panel")?.parent().hasClass("abui-window-box-content"), [w?.current]);
19936
19940
  return /* @__PURE__ */ c.jsx(
19937
19941
  Qc,
19938
19942
  {
@@ -20131,7 +20135,7 @@ function o1(e, n, t) {
20131
20135
  const [r, o] = I({ x: null, y: null, top: null, left: null, right: null });
20132
20136
  return q(() => {
20133
20137
  e && setTimeout(() => {
20134
- const s = { x: e.pageX, y: e.pageY }, i = n.current, a = window.innerWidth, l = window.innerHeight, u = ce(i).width(), f = ce(i).height(), p = a - (s.x + u), m = l - (s.y + f);
20138
+ const s = { x: e.pageX, y: e.pageY }, i = n.current, a = window.innerWidth, l = window.innerHeight, u = ue(i).width(), f = ue(i).height(), p = a - (s.x + u), m = l - (s.y + f);
20135
20139
  p <= 20 && (s.x = s.x + p - 5), m <= 20 && (s.y = s.y + m - 5), o(s);
20136
20140
  }, 10);
20137
20141
  }, [e]), [r, o];
@@ -20253,7 +20257,7 @@ const s1 = Ce("custom-scroll-bar overflow-auto relative h-full w-full", {}), Cs
20253
20257
  }, 100), m?.(z);
20254
20258
  }, _ = (z) => {
20255
20259
  s.onChange && s.onChange(z);
20256
- }, X = le(() => p ? [
20260
+ }, K = le(() => p ? [
20257
20261
  p.ctrl && "CTRL",
20258
20262
  p.alt && "ALT",
20259
20263
  p.shift && "SHIFT",
@@ -20277,7 +20281,7 @@ const s1 = Ce("custom-scroll-bar overflow-auto relative h-full w-full", {}), Cs
20277
20281
  /* @__PURE__ */ c.jsx("div", { className: "pointer-events-none -translate-x-6 absolute w-[15px] h-fit flex justify-center items-center", children: w }),
20278
20282
  !i && /* @__PURE__ */ c.jsx("p", { className: "text-nowrap pointer-events-none select-none mr-4", children: ah(d) }),
20279
20283
  i,
20280
- p && !l && /* @__PURE__ */ c.jsx("div", { className: "ml-auto truncate border border-accent px-2 rounded-full pointer-events-none font-geist select-none text-[10px] tracking-widest text-muted-foreground", children: X }),
20284
+ p && !l && /* @__PURE__ */ c.jsx("div", { className: "ml-auto truncate border border-accent px-2 rounded-full pointer-events-none font-geist select-none text-[10px] tracking-widest text-muted-foreground", children: K }),
20281
20285
  s.type === "switch" && /* @__PURE__ */ c.jsx("div", { className: "ml-auto pointer-events-auto", children: /* @__PURE__ */ c.jsx(
20282
20286
  jd,
20283
20287
  {
@@ -20823,7 +20827,7 @@ const ti = Ce(
20823
20827
  ref: C = ne(),
20824
20828
  autoFocus: k = !1,
20825
20829
  inputProps: v = {}
20826
- } = e, [N, A] = I(a), [E, $] = I(r), [F, R] = I(), b = st(), j = st(), [P, W] = I(""), D = ne(), Y = ne(), { width: _ } = ar(Y), X = b1(P, w), [z, T] = I(i), [M, G] = I(0);
20830
+ } = e, [N, A] = I(a), [E, $] = I(r), [F, R] = I(), b = st(), j = st(), [P, W] = I(""), D = ne(), Y = ne(), { width: _ } = ar(Y), K = b1(P, w), [z, T] = I(i), [M, U] = I(0);
20827
20831
  q(() => {
20828
20832
  T(i);
20829
20833
  }, [i]), q(() => {
@@ -20831,55 +20835,55 @@ const ti = Ce(
20831
20835
  }, [k]), q(() => {
20832
20836
  m && W(p);
20833
20837
  }, [m, p]);
20834
- const B = (K) => {
20835
- A(K === 1 ? "password" : "text");
20838
+ const B = (X) => {
20839
+ A(X === 1 ? "password" : "text");
20836
20840
  };
20837
20841
  q(() => {
20838
20842
  $(r);
20839
20843
  }, [r]), q(() => {
20840
20844
  h.state && te(h.state, h.message);
20841
20845
  }, [h]);
20842
- function te(K, J) {
20843
- if (!["invalid", "valid", "info"].includes(K))
20846
+ function te(X, J) {
20847
+ if (!["invalid", "valid", "info"].includes(X))
20844
20848
  throw new Error("Invalid status, must be invalid or valid.");
20845
- if (K === "invalid")
20849
+ if (X === "invalid")
20846
20850
  $(/* @__PURE__ */ c.jsx("p", { className: "font-aptos text-destructive", children: J })), F && clearTimeout(F);
20847
- else if (K === "valid" || K === "info") {
20851
+ else if (X === "valid" || X === "info") {
20848
20852
  $(
20849
- K == "valid" ? /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: J }) : /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-blue-600", children: J })
20853
+ X == "valid" ? /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: J }) : /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-blue-600", children: J })
20850
20854
  ), F && clearTimeout(F);
20851
- const ue = setTimeout(() => {
20855
+ const ce = setTimeout(() => {
20852
20856
  $(r);
20853
20857
  }, 15e3);
20854
- R(ue);
20858
+ R(ce);
20855
20859
  }
20856
20860
  }
20857
- function re(K) {
20861
+ function re(X) {
20858
20862
  try {
20859
- K === "" ? $(r) : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K) ? te("valid", "Valid email address") : te("invalid", "Not a valid email address...");
20863
+ X === "" ? $(r) : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(X) ? te("valid", "Valid email address") : te("invalid", "Not a valid email address...");
20860
20864
  } catch {
20861
20865
  }
20862
20866
  }
20863
- const U = oe((K, J) => {
20864
- const ue = ce(`#${j}`).val();
20865
- a === "email" && re(J || ue);
20866
- }, [C?.current, j]), L = (K) => {
20867
- const J = K.target, ue = J.value;
20867
+ const G = oe((X, J) => {
20868
+ const ce = ue(`#${j}`).val();
20869
+ a === "email" && re(J || ce);
20870
+ }, [C?.current, j]), L = (X) => {
20871
+ const J = X.target, ce = J.value;
20868
20872
  if (u) {
20869
20873
  const ee = J.scrollHeight, Be = J.scrollTop;
20870
20874
  Be > 0 && (J.style.height = ee + Be + "px");
20871
20875
  }
20872
- e?.readOnly || W(ue);
20876
+ e?.readOnly || W(ce);
20873
20877
  };
20874
20878
  return q(() => {
20875
20879
  if (M == 0) {
20876
- G(1);
20880
+ U(1);
20877
20881
  return;
20878
20882
  }
20879
- G((J) => J++), d({
20883
+ U((J) => J++), d({
20880
20884
  ref2: D,
20881
20885
  ref: C,
20882
- value: X,
20886
+ value: K,
20883
20887
  description: r,
20884
20888
  source: "direct",
20885
20889
  updateDescription: te,
@@ -20890,8 +20894,8 @@ const ti = Ce(
20890
20894
  return z;
20891
20895
  },
20892
20896
  setInvalid: T
20893
- }, X);
20894
- }, [X]), q(() => {
20897
+ }, K);
20898
+ }, [K]), q(() => {
20895
20899
  l && W(l);
20896
20900
  }, [l]), /* @__PURE__ */ c.jsx(
20897
20901
  "div",
@@ -20915,7 +20919,7 @@ const ti = Ce(
20915
20919
  name: j,
20916
20920
  variant: "secondary",
20917
20921
  className: V(ti({ invalid: z, type: a, size: t }), s, "overflow-hidden"),
20918
- onKeyUp: U,
20922
+ onKeyUp: G,
20919
20923
  placeholder: f ? "" : n,
20920
20924
  type: N,
20921
20925
  invalid: z.toString(),
@@ -20933,18 +20937,18 @@ const ti = Ce(
20933
20937
  name: j,
20934
20938
  variant: "secondary",
20935
20939
  className: V(ti({ invalid: z, type: a, size: t }), a == "password" && "pr-[35px]", s),
20936
- onKeyUp: U,
20940
+ onKeyUp: G,
20937
20941
  placeholder: n,
20938
20942
  type: N,
20939
20943
  invalid: z.toString(),
20940
20944
  onChange: L,
20941
20945
  ...v,
20942
- onKeyDown: (K) => {
20943
- v?.onKeyDown?.(K), K.key === "Enter" && g({
20946
+ onKeyDown: (X) => {
20947
+ v?.onKeyDown?.(X), X.key === "Enter" && g({
20944
20948
  ref2: D,
20945
- event: K,
20949
+ event: X,
20946
20950
  ref: C,
20947
- value: X,
20951
+ value: K,
20948
20952
  description: r,
20949
20953
  source: "direct",
20950
20954
  updateDescription: te,
@@ -20955,7 +20959,7 @@ const ti = Ce(
20955
20959
  return z;
20956
20960
  },
20957
20961
  setInvalid: T
20958
- }, X);
20962
+ }, K);
20959
20963
  }
20960
20964
  }
20961
20965
  ),
@@ -21213,20 +21217,20 @@ const mk = Oe((e, n) => {
21213
21217
  const p = a?.states?.rowHeightInt, [m, h] = I(0);
21214
21218
  q(() => {
21215
21219
  if (n?.current)
21216
- return ce(n?.current).on(`expandrow-${o}`, (d, x) => {
21220
+ return ue(n?.current).on(`expandrow-${o}`, (d, x) => {
21217
21221
  i(x);
21218
21222
  }), () => {
21219
- ce(n?.current).off(`expandrow-${o}`), i(null);
21223
+ ue(n?.current).off(`expandrow-${o}`), i(null);
21220
21224
  };
21221
21225
  }, [o]);
21222
21226
  const g = oe((d) => {
21223
- const x = d.node.rowTop, S = d.node.rowHeight, C = ce(a?.tref?.current).find(".ag-body-viewport").height() - 1 - (x + S);
21227
+ const x = d.node.rowTop, S = d.node.rowHeight, C = ue(a?.tref?.current).find(".ag-body-viewport").height() - 1 - (x + S);
21224
21228
  return r({ ...d, remainingBodyHeight: C, size: f });
21225
21229
  }, [r]);
21226
21230
  return q(() => {
21227
21231
  if (!l.current || f.y == 0 || !s?.node) return;
21228
21232
  const d = s?.expanded ? f?.y + p + 2 : p, x = s?.expanded ? "visible" : "", S = s?.expanded ? 30 : null, w = s?.expanded ? 1 : 0;
21229
- ce(l.current).closest(".ag-row").css("overflow", x), ce(l.current).closest(".ag-row").css("z-index", S), s.node.setRowHeight(d), s.api.onRowHeightChanged(), ce(l.current).css("opacity", w);
21233
+ ue(l.current).closest(".ag-row").css("overflow", x), ue(l.current).closest(".ag-row").css("z-index", S), s.node.setRowHeight(d), s.api.onRowHeightChanged(), ue(l.current).css("opacity", w);
21230
21234
  }, [f?.y, s?.expanded]), /* @__PURE__ */ c.jsx(
21231
21235
  "div",
21232
21236
  {
@@ -21635,10 +21639,10 @@ const O1 = (e) => /* @__PURE__ */ c.jsx(E1, { ...e }), $1 = (e) => {
21635
21639
  cellGrid: m
21636
21640
  } = e, { valueFormatted: h, data: g, context: d, colDef: x, node: S, value: w } = l, C = ne(), k = ne(null), v = ne(null), N = h == "[object Object]" && !h?.$$typeof ? w : h, [A, E] = I(N || w), { supressCellRefresh: $ } = Pe(tr);
21637
21641
  le(() => ({
21638
- rowZIndex: ce(C?.current)?.closest(".ag-row")?.css("z-index"),
21639
- cellZIndex: ce(C?.current)?.closest(".ag-cell")?.css("z-index"),
21640
- rowOverflow: ce(C?.current)?.closest(".ag-row")?.css("overflow"),
21641
- cellOverflow: ce(C?.current)?.closest(".ag-cell")?.css("overflow")
21642
+ rowZIndex: ue(C?.current)?.closest(".ag-row")?.css("z-index"),
21643
+ cellZIndex: ue(C?.current)?.closest(".ag-cell")?.css("z-index"),
21644
+ rowOverflow: ue(C?.current)?.closest(".ag-row")?.css("overflow"),
21645
+ cellOverflow: ue(C?.current)?.closest(".ag-cell")?.css("overflow")
21642
21646
  }), [C]);
21643
21647
  const F = le(() => n ? "" : A === "true" || A === !0 ? /* @__PURE__ */ c.jsx(
21644
21648
  T1,
@@ -21676,13 +21680,13 @@ const O1 = (e) => /* @__PURE__ */ c.jsx(E1, { ...e }), $1 = (e) => {
21676
21680
  }, [n]);
21677
21681
  const R = () => {
21678
21682
  j && (s((P) => P + 1), v.current && clearTimeout(v.current), v.current = setTimeout(() => {
21679
- const P = ce(C?.current)?.closest(".ag-row"), W = ce(C?.current)?.closest(".ag-cell");
21683
+ const P = ue(C?.current)?.closest(".ag-row"), W = ue(C?.current)?.closest(".ag-cell");
21680
21684
  P.addClass("arr-visible"), W.addClass("arr-visible"), t(!0);
21681
21685
  }, 0));
21682
21686
  }, b = () => {
21683
21687
  if (!j) return;
21684
21688
  v.current && clearTimeout(v.current);
21685
- const P = ce(C?.current)?.closest(".ag-row"), W = ce(C?.current)?.closest(".ag-cell");
21689
+ const P = ue(C?.current)?.closest(".ag-row"), W = ue(C?.current)?.closest(".ag-cell");
21686
21690
  P.removeClass("arr-visible"), W.removeClass("arr-visible"), t(!1), a(0);
21687
21691
  }, j = le(() => Array?.isArray(w), [w]);
21688
21692
  return /* @__PURE__ */ c.jsxs(
@@ -21698,7 +21702,7 @@ const O1 = (e) => /* @__PURE__ */ c.jsx(E1, { ...e }), $1 = (e) => {
21698
21702
  "div",
21699
21703
  {
21700
21704
  style: {
21701
- maxHeight: 0.7 * ce(r.current).height(),
21705
+ maxHeight: 0.7 * ue(r.current).height(),
21702
21706
  transform: `translateY(-${i}px)`
21703
21707
  },
21704
21708
  ref: k,
@@ -21742,7 +21746,7 @@ const O1 = (e) => /* @__PURE__ */ c.jsx(E1, { ...e }), $1 = (e) => {
21742
21746
  enableAdvancedFilter: w
21743
21747
  }) => {
21744
21748
  const [C, k] = I([]), v = ["view", ...r], N = (R) => {
21745
- ce(u?.current).trigger(`expandrow-${R?.node?.rowIndex}`, R);
21749
+ ue(u?.current).trigger(`expandrow-${R?.node?.rowIndex}`, R);
21746
21750
  }, A = {
21747
21751
  filter: w ? {
21748
21752
  component: R1
@@ -21799,7 +21803,7 @@ const O1 = (e) => /* @__PURE__ */ c.jsx(E1, { ...e }), $1 = (e) => {
21799
21803
  const W = j.indexOf(P?.column), D = P?.index;
21800
21804
  j = j1(j, W, D);
21801
21805
  }), j.forEach((P, W) => {
21802
- const D = g?.find((X) => X.column === P) || {}, Y = n.find((X) => X.key === P), _ = xc(Y ? Y.value : P);
21806
+ const D = g?.find((K) => K.column === P) || {}, Y = n.find((K) => K.key === P), _ = xc(Y ? Y.value : P);
21803
21807
  P?.startsWith("_") && v.push(P), R.push({
21804
21808
  ...A,
21805
21809
  field: P,
@@ -21815,8 +21819,8 @@ const O1 = (e) => /* @__PURE__ */ c.jsx(E1, { ...e }), $1 = (e) => {
21815
21819
  displayName: _,
21816
21820
  hide: t.includes(P) || v.includes(P),
21817
21821
  // Custom cell renderer
21818
- cellRenderer: (X) => I1({
21819
- params: X,
21822
+ cellRenderer: (K) => I1({
21823
+ params: K,
21820
21824
  formater: o[P],
21821
21825
  fontFamily: d,
21822
21826
  enableRowStream: x,
@@ -22344,30 +22348,30 @@ const tr = ln({}), Q1 = (e) => {
22344
22348
  enableExpand: D = !1,
22345
22349
  ready: Y,
22346
22350
  autoHideSpinner: _ = !1,
22347
- toolbarBtns: X = [],
22351
+ toolbarBtns: K = [],
22348
22352
  groupBy: z,
22349
22353
  filter: T = {},
22350
22354
  onMultiRowSelection: M = function() {
22351
22355
  },
22352
- hideFromTable: G = [],
22356
+ hideFromTable: U = [],
22353
22357
  expandRows: B = {},
22354
22358
  onExpand: te = () => {
22355
22359
  },
22356
22360
  onCollapse: re = () => {
22357
22361
  },
22358
- onExpandChange: U = () => {
22362
+ onExpandChange: G = () => {
22359
22363
  },
22360
22364
  supressCellRefresh: L = !1,
22361
- rowSelectionBgColor: K,
22365
+ rowSelectionBgColor: X,
22362
22366
  api: J = {},
22363
- fontFamily: ue,
22367
+ fontFamily: ce,
22364
22368
  tableTheme: ee,
22365
22369
  enableAdvancedFilter: Be = !0
22366
22370
  } = e, [ft, it] = I([]), pe = ne(), Ye = ne(), at = ne({}), [Ot, ye] = I([]), [Ft, de] = I({}), [jn, Ct] = I([]), [pn, Qr] = I(), On = ne(!1), pt = ne(), Lt = ar(pt, { returnUpdate: !1 })?.x, [$n] = _1({
22367
22371
  data: r,
22368
22372
  mapper: E,
22369
22373
  hidden: $,
22370
- hideFromTable: G,
22374
+ hideFromTable: U,
22371
22375
  formater: m,
22372
22376
  filterItems: ft,
22373
22377
  setFilterItems: it,
@@ -22379,7 +22383,7 @@ const tr = ln({}), Q1 = (e) => {
22379
22383
  enableExpand: D,
22380
22384
  tid: n,
22381
22385
  columnProps: h,
22382
- fontFamily: ue,
22386
+ fontFamily: ce,
22383
22387
  enableRowStream: l,
22384
22388
  cellGrid: i,
22385
22389
  enableAdvancedFilter: Be
@@ -22573,7 +22577,7 @@ const tr = ln({}), Q1 = (e) => {
22573
22577
  {
22574
22578
  cell: Bt,
22575
22579
  showCellTextInTopBar: u,
22576
- toolbarBtns: X,
22580
+ toolbarBtns: K,
22577
22581
  selectedRows: pr,
22578
22582
  updateEvent: Zr,
22579
22583
  ref: t,
@@ -22610,7 +22614,7 @@ const tr = ln({}), Q1 = (e) => {
22610
22614
  Y1,
22611
22615
  {
22612
22616
  headers: $n,
22613
- hideFromTable: G,
22617
+ hideFromTable: U,
22614
22618
  gridRef: pe,
22615
22619
  data: Ot,
22616
22620
  enableExpand: D,
@@ -22767,7 +22771,7 @@ const Qd = ln({ name: "", onChange: () => {
22767
22771
  children: i,
22768
22772
  source: "contextmenu"
22769
22773
  };
22770
- ce(r.current).click(), v.preventDefault(), p(N);
22774
+ ue(r.current).click(), v.preventDefault(), p(N);
22771
22775
  };
22772
22776
  return /* @__PURE__ */ c.jsxs(
22773
22777
  "label",
@@ -22809,7 +22813,7 @@ const Qd = ln({ name: "", onChange: () => {
22809
22813
  style: i
22810
22814
  } = e, a = ze(), [l, u] = I();
22811
22815
  q(() => {
22812
- l && l.ref.current && (ce("#" + a + " *").removeClass("css-c-233"), l.ref.current.classList.add("css-c-233"), r(l.event, l.checked, l));
22816
+ l && l.ref.current && (ue("#" + a + " *").removeClass("css-c-233"), l.ref.current.classList.add("css-c-233"), r(l.event, l.checked, l));
22813
22817
  }, [l]);
22814
22818
  const f = (p) => {
22815
22819
  p.preventDefault(), o(l.event, l.checked, l);