@overmap-ai/blocks 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/blocks.js CHANGED
@@ -1,28 +1,28 @@
1
1
  export * from "@radix-ui/colors";
2
- import { Cross1Icon as nn, CheckIcon as xt, DragHandleDots2Icon as Qe, Cross2Icon as wt, DividerHorizontalIcon as on, CaretSortIcon as rn, ArrowUpIcon as an, ArrowDownIcon as sn, MagnifyingGlassIcon as ln, MixerHorizontalIcon as cn, Pencil1Icon as dn, TrashIcon as un, DoubleArrowLeftIcon as hn, ChevronLeftIcon as pn, ChevronRightIcon as mn, DoubleArrowRightIcon as fn, QuestionMarkIcon as gn } from "@radix-ui/react-icons";
2
+ import { Cross1Icon as nn, CheckIcon as St, DragHandleDots2Icon as Je, Cross2Icon as $t, DividerHorizontalIcon as on, CaretSortIcon as rn, ArrowUpIcon as sn, ArrowDownIcon as an, MagnifyingGlassIcon as cn, MixerHorizontalIcon as ln, Pencil1Icon as dn, TrashIcon as un, DoubleArrowLeftIcon as hn, ChevronLeftIcon as pn, ChevronRightIcon as fn, DoubleArrowRightIcon as mn } from "@radix-ui/react-icons";
3
3
  export * from "@radix-ui/react-icons";
4
- import { useThemeContext as Cn, Badge as bn, Flex as D, Box as V, Link as vn, Text as ze, Button as _n, IconButton as Pt, Card as $n, Inset as We, Dialog as xe, AlertDialog as me, Separator as mt, DropdownMenu as ne, TextField as ie, Select as se, Checkbox as Sn, Switch as yn, Portal as xn, Popover as He, TextArea as wn, Callout as je, Tooltip as Pn, Theme as kn, TableRow as Tn } from "@radix-ui/themes";
5
- import { AccessibleIcon as Yi, AspectRatio as Zi, Avatar as es, Blockquote as ts, Box as ns, Callout as os, Card as rs, Code as as, Container as is, ContextMenu as ss, Em as ls, Grid as cs, Heading as ds, HoverCard as us, Inset as hs, Kbd as ps, Link as ms, Portal as fs, Quote as gs, RadioGroup as Cs, ScrollArea as bs, Section as vs, Slider as _s, Slot as $s, Strong as Ss, Tabs as ys, TextField as xs, Theme as ws, VisuallyHidden as Ps, updateThemeAppearanceClass as ks, useThemeContext as Ts } from "@radix-ui/themes";
6
- import { jsx as a, jsxs as b, Fragment as X } from "react/jsx-runtime";
7
- import U, { useMemo as M, useState as k, useLayoutEffect as st, useCallback as y, useEffect as E, Children as fe, isValidElement as Oe, forwardRef as x, memo as w, createContext as Pe, useContext as Ee, cloneElement as Be, createElement as H, useRef as W, useReducer as Nn, Fragment as Dn } from "react";
8
- import { useMediaQuery as Ie } from "react-responsive";
4
+ import { useThemeContext as gn, Badge as Cn, Flex as D, Box as G, Link as vn, Text as Re, Button as _n, IconButton as Pt, Card as bn, Inset as He, Dialog as xe, AlertDialog as fe, Separator as ft, DropdownMenu as ee, TextField as ie, Select as se, Checkbox as wn, Switch as yn, Portal as xn, Popover as je, TextArea as Sn, Callout as Fe, Tooltip as $n, Theme as Pn, TableRow as kn } from "@radix-ui/themes";
5
+ import { AccessibleIcon as Ks, AspectRatio as qs, Avatar as Xs, Blockquote as Js, Box as Qs, Callout as Ys, Card as Zs, Code as ea, Container as ta, ContextMenu as na, Em as oa, Grid as ra, Heading as ia, HoverCard as sa, Inset as aa, Kbd as ca, Link as la, Portal as da, Quote as ua, RadioGroup as ha, ScrollArea as pa, Section as fa, Slider as ma, Slot as ga, Strong as Ca, Tabs as va, TextField as _a, Theme as ba, VisuallyHidden as wa, updateThemeAppearanceClass as ya, useThemeContext as xa } from "@radix-ui/themes";
6
+ import { jsx as i, jsxs as v, Fragment as J } from "react/jsx-runtime";
7
+ import W, { useMemo as R, useState as k, useLayoutEffect as ct, useCallback as x, useEffect as M, Children as me, isValidElement as Oe, forwardRef as S, memo as $, createContext as Se, useContext as ze, cloneElement as Ae, createElement as F, useRef as H, useReducer as Nn, Fragment as Tn } from "react";
8
+ import { useMediaQuery as Te } from "react-responsive";
9
9
  import * as Ve from "@radix-ui/react-dialog";
10
- import { Resizable as Ye } from "re-resizable";
11
- import { DismissableLayer as An } from "@radix-ui/react-dismissable-layer";
12
- import { CSSTransition as In, Transition as ft } from "react-transition-group";
13
- import { Root as Mn, Item as Rn } from "@radix-ui/react-toggle-group";
14
- import { Root as On } from "@radix-ui/react-toolbar";
15
- import * as Me from "@radix-ui/react-toast";
16
- import { ToastProvider as zn, ToastViewport as En } from "@radix-ui/react-toast";
10
+ import { Resizable as Qe } from "re-resizable";
11
+ import { DismissableLayer as Dn } from "@radix-ui/react-dismissable-layer";
12
+ import { CSSTransition as In, Transition as mt } from "react-transition-group";
13
+ import { Root as On, Item as Rn } from "@radix-ui/react-toggle-group";
14
+ import { Root as zn } from "@radix-ui/react-toolbar";
15
+ import * as De from "@radix-ui/react-toast";
16
+ import { ToastProvider as An, ToastViewport as En } from "@radix-ui/react-toast";
17
17
  import { flushSync as Bn } from "react-dom";
18
- import { HeaderCell as Ln, Table as Fn, Header as Un, HeaderRow as Wn, Body as Hn, Cell as gt, Row as jn } from "@table-library/react-table-library/table";
18
+ import { HeaderCell as Mn, Table as Ln, Header as Wn, HeaderRow as Hn, Body as jn, Cell as gt, Row as Fn } from "@table-library/react-table-library/table";
19
19
  import { useTheme as Vn } from "@table-library/react-table-library/theme";
20
- import { useSort as qn, HeaderCellSort as Gn } from "@table-library/react-table-library/sort";
21
- import { useRowSelect as Kn, SelectTypes as Ct, SelectClickTypes as Jn, HeaderCellSelect as Xn, CellSelect as Qn } from "@table-library/react-table-library/select";
22
- import { usePagination as Yn } from "@table-library/react-table-library/pagination";
23
- import { isMobile as qe } from "react-device-detect";
24
- function Zn(t) {
25
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
20
+ import { useSort as Un, HeaderCellSort as Gn } from "@table-library/react-table-library/sort";
21
+ import { useRowSelect as Kn, SelectTypes as Ct, SelectClickTypes as qn, HeaderCellSelect as Xn, CellSelect as Jn } from "@table-library/react-table-library/select";
22
+ import { usePagination as Qn } from "@table-library/react-table-library/pagination";
23
+ import { isMobile as Ue } from "react-device-detect";
24
+ function Yn(e) {
25
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
26
26
  }
27
27
  var kt = { exports: {} };
28
28
  /*!
@@ -30,337 +30,347 @@ var kt = { exports: {} };
30
30
  Licensed under the MIT License (MIT), see
31
31
  http://jedwatson.github.io/classnames
32
32
  */
33
- (function(t) {
33
+ (function(e) {
34
34
  (function() {
35
- var e = {}.hasOwnProperty;
35
+ var o = {}.hasOwnProperty;
36
36
  function n() {
37
- for (var o = [], i = 0; i < arguments.length; i++) {
38
- var r = arguments[i];
37
+ for (var t = [], s = 0; s < arguments.length; s++) {
38
+ var r = arguments[s];
39
39
  if (r) {
40
- var l = typeof r;
41
- if (l === "string" || l === "number")
42
- o.push(r);
40
+ var c = typeof r;
41
+ if (c === "string" || c === "number")
42
+ t.push(r);
43
43
  else if (Array.isArray(r)) {
44
44
  if (r.length) {
45
- var s = n.apply(null, r);
46
- s && o.push(s);
45
+ var a = n.apply(null, r);
46
+ a && t.push(a);
47
47
  }
48
- } else if (l === "object") {
48
+ } else if (c === "object") {
49
49
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) {
50
- o.push(r.toString());
50
+ t.push(r.toString());
51
51
  continue;
52
52
  }
53
53
  for (var d in r)
54
- e.call(r, d) && r[d] && o.push(d);
54
+ o.call(r, d) && r[d] && t.push(d);
55
55
  }
56
56
  }
57
57
  }
58
- return o.join(" ");
58
+ return t.join(" ");
59
59
  }
60
- t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
60
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
61
61
  })();
62
62
  })(kt);
63
- var eo = kt.exports;
64
- const S = /* @__PURE__ */ Zn(eo);
65
- function ce(t, e) {
66
- return M(() => {
67
- if (t !== void 0)
68
- if (typeof t == "object") {
69
- if (!("initial" in t))
63
+ var Zn = kt.exports;
64
+ const y = /* @__PURE__ */ Yn(Zn);
65
+ function ce(e, o) {
66
+ return R(() => {
67
+ if (e !== void 0)
68
+ if (typeof e == "object") {
69
+ if (!("initial" in e))
70
70
  throw new Error("Expected initial property to be set in Responsive object");
71
- return Object.fromEntries(Object.entries(t).map(([n, o]) => [n, e[o]]));
71
+ return Object.fromEntries(Object.entries(e).map(([n, t]) => [n, o[t]]));
72
72
  } else
73
- return e[t];
74
- }, [e, t]);
73
+ return o[e];
74
+ }, [o, e]);
75
75
  }
76
- const to = {
76
+ const eo = {
77
77
  success: "green",
78
78
  danger: "red",
79
79
  warning: "amber",
80
80
  info: "gray"
81
- }, z = (t) => {
82
- const e = Cn();
83
- if (t)
84
- return t === "primary" ? e.accentColor : to[t];
85
- }, vi = () => {
86
- const [t, e] = k("initial"), [n, o] = k("initial"), i = Ie({ minWidth: "520px" }), r = Ie({ minWidth: "768px" }), l = Ie({ minWidth: "1024px" }), s = Ie({ minWidth: "1280px" }), d = Ie({ minWidth: "1640px" });
87
- return st(() => {
88
- o((c) => (e(c), d ? "xl" : s ? "lg" : l ? "md" : r ? "sm" : i ? "xs" : "initial"));
89
- }, [s, l, r, d, i]), { size: n, prevSize: t, xs: i, sm: r, md: l, lg: s, xl: d };
90
- }, Tt = (t, e, n) => {
91
- const [o, i] = k([]), [r, l] = k(!0), s = y(
81
+ }, E = (e) => {
82
+ const o = gn();
83
+ if (e)
84
+ return e === "primary" ? o.accentColor : eo[e];
85
+ }, vs = () => {
86
+ const [e, o] = k("initial"), [n, t] = k("initial"), s = Te({ minWidth: "520px" }), r = Te({ minWidth: "768px" }), c = Te({ minWidth: "1024px" }), a = Te({ minWidth: "1280px" }), d = Te({ minWidth: "1640px" });
87
+ return ct(() => {
88
+ t((l) => (o(l), d ? "xl" : a ? "lg" : c ? "md" : r ? "sm" : s ? "xs" : "initial"));
89
+ }, [a, c, r, d, s]), { size: n, prevSize: e, xs: s, sm: r, md: c, lg: a, xl: d };
90
+ }, Nt = (e, o, n) => {
91
+ const [t, s] = k([]), [r, c] = k(!0), a = x(
92
92
  (h) => {
93
93
  const { repeat: u, key: g } = h;
94
- l(!0), !(u || o.includes(g)) && i((m) => [...m, g]);
94
+ c(!0), !(u || t.includes(g)) && s((f) => [...f, g]);
95
95
  },
96
- [o]
97
- ), d = y(
96
+ [t]
97
+ ), d = x(
98
98
  (h) => {
99
99
  const { key: u } = h;
100
- l(!1), o.includes(u) && i((g) => {
101
- const m = [...g];
102
- return m.splice(g.indexOf(u), 1), m;
100
+ c(!1), t.includes(u) && s((g) => {
101
+ const f = [...g];
102
+ return f.splice(g.indexOf(u), 1), f;
103
103
  });
104
104
  },
105
- [o]
105
+ [t]
106
106
  );
107
- E(() => (e || document.addEventListener("keydown", s, !0), () => {
108
- document.removeEventListener("keydown", s, !0);
109
- }), [e, s]), E(() => (e || document.addEventListener("keyup", d, !0), () => {
107
+ M(() => (o || document.addEventListener("keydown", a, !0), () => {
108
+ document.removeEventListener("keydown", a, !0);
109
+ }), [o, a]), M(() => (o || document.addEventListener("keyup", d, !0), () => {
110
110
  document.removeEventListener("keyup", d, !0);
111
- }), [e, d]);
112
- const c = M(() => !e && r && o.length === t.length && o.every((h) => t.includes(h)), [e, r, o, t]);
113
- return E(() => {
114
- c && n();
115
- }, [c, n]), c;
116
- }, no = (t) => {
117
- const e = [];
118
- for (const n of fe.toArray(t))
119
- Oe(n) && e.push(n);
120
- return e;
121
- }, oo = x(function({ className: e, severity: n = "primary", color: o, children: i, ...r }, l) {
122
- const s = z(n);
123
- return /* @__PURE__ */ a(
124
- bn,
111
+ }), [o, d]);
112
+ const l = R(() => !o && r && t.length === e.length && t.every((h) => e.includes(h)), [o, r, t, e]);
113
+ return M(() => {
114
+ l && n();
115
+ }, [l, n]), l;
116
+ }, to = (e) => {
117
+ const o = [];
118
+ for (const n of me.toArray(e))
119
+ Oe(n) && o.push(n);
120
+ return o;
121
+ }, no = S(function({ className: o, severity: n = "primary", color: t, children: s, ...r }, c) {
122
+ const a = E(n);
123
+ return /* @__PURE__ */ i(
124
+ Cn,
125
125
  {
126
- className: S("overmap-badge", e),
127
- ref: l,
128
- color: o || s,
126
+ className: y("overmap-badge", o),
127
+ ref: c,
128
+ color: t || a,
129
129
  ...r,
130
- children: i
130
+ children: s
131
131
  }
132
132
  );
133
- }), _i = w(oo), ro = "_zeroMinWidth_curjh_1", ao = "_zeroMinHeight_curjh_5", io = "_radius_curjh_9", nt = {
134
- zeroMinWidth: ro,
135
- zeroMinHeight: ao,
133
+ }), _s = $(no), oo = "_zeroMinWidth_curjh_1", ro = "_zeroMinHeight_curjh_5", io = "_radius_curjh_9", ot = {
134
+ zeroMinWidth: oo,
135
+ zeroMinHeight: ro,
136
136
  radius: io
137
- }, J = w(
138
- x(
139
- ({ className: t, radius: e = !1, children: n, zeroMinWidth: o = !1, zeroMinHeight: i = !1, ...r }, l) => /* @__PURE__ */ a(
137
+ }, X = $(
138
+ S(
139
+ ({ className: e, radius: o = !1, children: n, zeroMinWidth: t = !1, zeroMinHeight: s = !1, ...r }, c) => /* @__PURE__ */ i(
140
140
  D,
141
141
  {
142
- className: S(t, {
143
- [nt.radius]: e,
144
- [nt.zeroMinWidth]: o,
145
- [nt.zeroMinHeight]: i
142
+ className: y(e, {
143
+ [ot.radius]: o,
144
+ [ot.zeroMinWidth]: t,
145
+ [ot.zeroMinHeight]: s
146
146
  }),
147
- ref: l,
147
+ ref: c,
148
148
  ...r,
149
149
  children: n
150
150
  }
151
151
  )
152
152
  )
153
- ), Nt = Pe({}), so = () => Ee(Nt), lo = w(
154
- x(({ className: t, children: e, ...n }, o) => {
155
- const { size: i, severity: r } = so(), l = z(r);
156
- return /* @__PURE__ */ a(V, { className: S("overmap-breadcrumb-item", t), height: "max-content", width: "max-content", children: /* @__PURE__ */ a(vn, { ref: o, size: i, color: l, ...n, children: /* @__PURE__ */ a(J, { height: "100%", width: "100%", align: "center", gap: "1", children: e }) }) });
153
+ ), Tt = Se({}), so = () => ze(Tt), ao = $(
154
+ S(({ className: e, children: o, ...n }, t) => {
155
+ const { size: s, severity: r } = so(), c = E(r);
156
+ return /* @__PURE__ */ i(G, { className: y("overmap-breadcrumb-item", e), height: "max-content", width: "max-content", children: /* @__PURE__ */ i(vn, { ref: t, size: s, color: c, ...n, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", gap: "1", children: o }) }) });
157
157
  })
158
- ), co = w(
159
- x(
160
- ({ className: t, children: e, separator: n, severity: o = "info", size: i, gap: r = "2", ...l }, s) => {
161
- const d = z(o), c = no(e);
162
- return /* @__PURE__ */ a(Nt.Provider, { value: { size: i, severity: o }, children: /* @__PURE__ */ a(
163
- J,
158
+ ), co = $(
159
+ S(
160
+ ({ className: e, children: o, separator: n, severity: t = "info", size: s, gap: r = "2", ...c }, a) => {
161
+ const d = E(t), l = to(o);
162
+ return /* @__PURE__ */ i(Tt.Provider, { value: { size: s, severity: t }, children: /* @__PURE__ */ i(
163
+ X,
164
164
  {
165
- className: S("overmap-breadcrumb-group", t),
166
- ref: s,
165
+ className: y("overmap-breadcrumb-group", e),
166
+ ref: a,
167
167
  gap: r,
168
168
  role: "breadcrumb",
169
169
  height: "max-content",
170
170
  width: "max-content",
171
- ...l,
172
- children: c.map((h, u) => /* @__PURE__ */ b(X, { children: [
173
- Be(h, { key: u }),
174
- c.length - 1 !== u && /* @__PURE__ */ a(ze, { color: d, children: /* @__PURE__ */ a(J, { height: "100%", width: "100%", align: "center", children: n }) })
171
+ ...c,
172
+ children: l.map((h, u) => /* @__PURE__ */ v(J, { children: [
173
+ Ae(h, { key: u }),
174
+ l.length - 1 !== u && /* @__PURE__ */ i(Re, { color: d, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", children: n }) })
175
175
  ] }))
176
176
  }
177
177
  ) });
178
178
  }
179
179
  )
180
- ), $i = {
180
+ ), bs = {
181
181
  Group: co,
182
- Item: lo
183
- }, uo = "_fluid_r73gr_1", ho = "_hoverSpin90Clockwise_r73gr_15", po = "_hoverSpin180Clockwise_r73gr_25", mo = "_hoverSpin360Clockwise_r73gr_35", Re = {
184
- fluid: uo,
185
- hoverSpin90Clockwise: ho,
186
- hoverSpin180Clockwise: po,
187
- hoverSpin360Clockwise: mo
182
+ Item: ao
183
+ }, lo = "_fluid_r73gr_1", uo = "_hoverSpin90Clockwise_r73gr_15", ho = "_hoverSpin180Clockwise_r73gr_25", po = "_hoverSpin360Clockwise_r73gr_35", Ie = {
184
+ fluid: lo,
185
+ hoverSpin90Clockwise: uo,
186
+ hoverSpin180Clockwise: ho,
187
+ hoverSpin360Clockwise: po
188
188
  }, Dt = {
189
- spin90Clockwise: Re.hoverSpin90Clockwise,
190
- spin180Clockwise: Re.hoverSpin180Clockwise,
191
- spin360Clockwise: Re.hoverSpin360Clockwise
192
- }, fo = (t) => {
193
- (t.key === "Enter" || t.key === " ") && t.currentTarget.click();
194
- }, Si = {
189
+ spin90Clockwise: Ie.hoverSpin90Clockwise,
190
+ spin180Clockwise: Ie.hoverSpin180Clockwise,
191
+ spin360Clockwise: Ie.hoverSpin360Clockwise
192
+ }, fo = (e) => {
193
+ (e.key === "Enter" || e.key === " ") && e.currentTarget.click();
194
+ }, ws = {
195
195
  role: "button",
196
196
  tabIndex: 0,
197
197
  onKeyDown: fo
198
- }, Te = {
198
+ }, Pe = {
199
199
  small: "1",
200
200
  medium: "2",
201
201
  large: "3"
202
- }, At = Pe({}), lt = () => Ee(At), go = x(function(e, n) {
203
- const o = lt(), {
204
- className: i,
202
+ }, It = Se({}), lt = () => ze(It), mo = "_spinner_isifr_9", go = "_spin_isifr_9", Co = {
203
+ spinner: mo,
204
+ spin: go
205
+ }, Ot = $(() => /* @__PURE__ */ i("div", { className: Co.spinner }));
206
+ Ot.displayName = "Spinner";
207
+ const vo = S(function(o, n) {
208
+ const t = lt(), {
209
+ className: s,
205
210
  type: r = "button",
206
- fluid: l = o.fluid ?? !1,
207
- size: s = o.size ?? "medium",
208
- severity: d = o.severity ?? "primary",
209
- hoverEffects: c = o.hoverEffects ?? [],
210
- variant: h = o.variant,
211
+ fluid: c = t.fluid ?? !1,
212
+ size: a = t.size ?? "medium",
213
+ severity: d = t.severity ?? "primary",
214
+ hoverEffects: l = t.hoverEffects ?? [],
215
+ variant: h = t.variant,
211
216
  shortcut: u = {
212
217
  keys: [],
213
218
  action: () => {
214
219
  },
215
220
  disabled: !1
216
221
  },
217
- ...g
218
- } = e, m = z(d), C = c.map((_) => Dt[_]);
219
- return Tt(u.keys, u.disabled || u.keys.length === 0, u.action), /* @__PURE__ */ a(
222
+ loading: g,
223
+ children: f,
224
+ disabled: C,
225
+ ...b
226
+ } = o, m = E(d), P = l.map((w) => Dt[w]);
227
+ return Nt(u.keys, u.disabled || u.keys.length === 0, u.action), /* @__PURE__ */ i(
220
228
  _n,
221
229
  {
222
230
  ref: n,
223
231
  type: r,
224
- className: S(i, C, {
225
- [Re.fluid]: l
232
+ className: y(s, P, {
233
+ [Ie.fluid]: c
226
234
  }),
227
235
  color: m,
228
- size: ce(s, Te),
236
+ size: ce(a, Pe),
229
237
  variant: h,
230
- ...g
238
+ disabled: g || C,
239
+ ...b,
240
+ children: g ? /* @__PURE__ */ i(Ot, {}) : f
231
241
  }
232
242
  );
233
- }), ke = U.memo(go), Co = x(function(e, n) {
234
- const o = lt(), {
235
- className: i,
243
+ }), $e = W.memo(vo), _o = S(function(o, n) {
244
+ const t = lt(), {
245
+ className: s,
236
246
  children: r,
237
- type: l = "button",
238
- fluid: s = o.fluid ?? !1,
239
- size: d = o.size ?? "medium",
240
- severity: c = o.severity ?? "primary",
241
- hoverEffects: h = o.hoverEffects ?? [],
242
- variant: u = o.variant,
247
+ type: c = "button",
248
+ fluid: a = t.fluid ?? !1,
249
+ size: d = t.size ?? "medium",
250
+ severity: l = t.severity ?? "primary",
251
+ hoverEffects: h = t.hoverEffects ?? [],
252
+ variant: u = t.variant,
243
253
  shortcut: g = {
244
254
  keys: [],
245
255
  action: () => {
246
256
  },
247
257
  disabled: !1
248
258
  },
249
- ...m
250
- } = e, C = z(c), _ = (h == null ? void 0 : h.map((f) => Dt[f])) || [];
251
- return Tt(g.keys, g.disabled || g.keys.length === 0, g.action), /* @__PURE__ */ a(
259
+ ...f
260
+ } = o, C = E(l), b = (h == null ? void 0 : h.map((m) => Dt[m])) || [];
261
+ return Nt(g.keys, g.disabled || g.keys.length === 0, g.action), /* @__PURE__ */ i(
252
262
  Pt,
253
263
  {
254
- className: S(i, _, {
255
- [Re.fluid]: s
264
+ className: y(s, b, {
265
+ [Ie.fluid]: a
256
266
  }),
257
267
  ref: n,
258
268
  color: C,
259
- size: ce(d, Te),
269
+ size: ce(d, Pe),
260
270
  variant: u,
261
- type: l,
262
- ...m,
271
+ type: c,
272
+ ...f,
263
273
  children: r
264
274
  }
265
275
  );
266
- }), te = U.memo(Co), bo = "_merged_wdgxo_1", vo = {
276
+ }), re = W.memo(_o), bo = "_merged_wdgxo_1", wo = {
267
277
  merged: bo
268
- }, _o = {
278
+ }, yo = {
269
279
  row: { small: "4", medium: "4", large: "5" },
270
280
  column: { small: "2", medium: "3", large: "4" }
271
- }, $o = x(function({
272
- className: e,
281
+ }, xo = S(function({
282
+ className: o,
273
283
  merged: n = !1,
274
- children: o,
275
- gap: i,
284
+ children: t,
285
+ gap: s,
276
286
  direction: r = "row",
277
- severity: l,
278
- size: s = "medium",
287
+ severity: c,
288
+ size: a = "medium",
279
289
  variant: d,
280
- hoverEffects: c,
290
+ hoverEffects: l,
281
291
  fluid: h,
282
292
  ...u
283
293
  }, g) {
284
- const m = ce(s, _o[r]), C = d === "ghost" ? m : "0";
285
- return /* @__PURE__ */ a(
294
+ const f = ce(a, yo[r]), C = d === "ghost" ? f : "0";
295
+ return /* @__PURE__ */ i(
286
296
  D,
287
297
  {
288
- className: S("overmap-button-group", e, {
289
- [vo.merged]: n
298
+ className: y("overmap-button-group", o, {
299
+ [wo.merged]: n
290
300
  }),
291
301
  ref: g,
292
- gap: n ? i ?? C : i ?? "2",
302
+ gap: n ? s ?? C : s ?? "2",
293
303
  direction: r,
294
304
  "data-direction": r,
295
305
  ...u,
296
- children: /* @__PURE__ */ a(At.Provider, { value: { size: s, severity: l, variant: d, hoverEffects: c, fluid: h }, children: o })
306
+ children: /* @__PURE__ */ i(It.Provider, { value: { size: a, severity: c, variant: d, hoverEffects: l, fluid: h }, children: t })
297
307
  }
298
308
  );
299
- }), It = w($o), So = "_separators_1f7v1_1", yo = {
309
+ }), Rt = $(xo), So = "_separators_1f7v1_1", $o = {
300
310
  separators: So
301
- }, xo = w(
302
- x((t, e) => {
303
- const { children: n, border: o, before: i, after: r, size: l } = t, s = o ? "surface" : "ghost", d = ce(l, Te), h = /* @__PURE__ */ b($n, { ref: e, size: d, variant: s, children: [
304
- i,
305
- i && r ? /* @__PURE__ */ a(We, { side: "x", pt: "current", pb: "current", children: n }) : i ? /* @__PURE__ */ a(We, { side: "bottom", pt: "current", children: n }) : r ? /* @__PURE__ */ a(We, { side: "top", pb: "current", children: n }) : /* @__PURE__ */ a(We, { children: n }),
311
+ }, Po = $(
312
+ S((e, o) => {
313
+ const { children: n, border: t, before: s, after: r, size: c } = e, a = t ? "surface" : "ghost", d = ce(c, Pe), h = /* @__PURE__ */ v(bn, { ref: o, size: d, variant: a, children: [
314
+ s,
315
+ s && r ? /* @__PURE__ */ i(He, { side: "x", pt: "current", pb: "current", children: n }) : s ? /* @__PURE__ */ i(He, { side: "bottom", pt: "current", children: n }) : r ? /* @__PURE__ */ i(He, { side: "top", pb: "current", children: n }) : /* @__PURE__ */ i(He, { children: n }),
306
316
  r
307
317
  ] });
308
- return s === "ghost" ? /* @__PURE__ */ a(V, { p: "3", children: h }) : h;
318
+ return a === "ghost" ? /* @__PURE__ */ i(G, { p: "3", children: h }) : h;
309
319
  })
310
- ), wo = w(
311
- x((t, e) => {
312
- const { children: n, variant: o = "outline", size: i, className: r, ...l } = t;
313
- return /* @__PURE__ */ a(xo, { ...l, border: o === "outline" || o === "surface", size: i, children: /* @__PURE__ */ a(
314
- It,
320
+ ), ko = $(
321
+ S((e, o) => {
322
+ const { children: n, variant: t = "outline", size: s, className: r, ...c } = e;
323
+ return /* @__PURE__ */ i(Po, { ...c, border: t === "outline" || t === "surface", size: s, children: /* @__PURE__ */ i(
324
+ Rt,
315
325
  {
316
- size: i,
326
+ size: s,
317
327
  severity: "info",
318
- variant: o === "outline" ? "ghost" : o === "surface" ? "soft" : o,
319
- className: S(r, yo.separators),
328
+ variant: t === "outline" ? "ghost" : t === "surface" ? "soft" : t,
329
+ className: y(r, $o.separators),
320
330
  merged: !0,
321
331
  gap: "0",
322
332
  direction: "column",
323
- ref: e,
333
+ ref: o,
324
334
  children: n
325
335
  }
326
336
  ) });
327
337
  })
328
- ), Po = w(
329
- x((t, e) => {
330
- const { variant: n } = lt(), o = /* @__PURE__ */ a(ke, { ref: e, ...t, radius: "large", variant: n });
331
- return n === "ghost" ? /* @__PURE__ */ a(V, { asChild: !0, my: "1", mx: "2", children: o }) : o;
338
+ ), No = $(
339
+ S((e, o) => {
340
+ const { variant: n } = lt(), t = /* @__PURE__ */ i($e, { ref: o, ...e, radius: "large", variant: n });
341
+ return n === "ghost" ? /* @__PURE__ */ i(G, { asChild: !0, my: "1", mx: "2", children: t }) : t;
332
342
  })
333
- ), yi = {
334
- Root: wo,
335
- Item: Po
336
- }, ko = w(function(e) {
337
- const { title: n, description: o, content: i, closeDialog: r } = e;
338
- return /* @__PURE__ */ b(D, { direction: "column", gap: "2", children: [
339
- /* @__PURE__ */ b(D, { direction: "column", gap: "1", children: [
340
- /* @__PURE__ */ b(D, { justify: "between", children: [
341
- /* @__PURE__ */ a(xe.Title, { mb: "0", children: n }),
342
- /* @__PURE__ */ a(xe.Close, { children: /* @__PURE__ */ a(Pt, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ a(nn, {}) }) })
343
+ ), ys = {
344
+ Root: ko,
345
+ Item: No
346
+ }, To = $(function(o) {
347
+ const { title: n, description: t, content: s, closeDialog: r } = o;
348
+ return /* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
349
+ /* @__PURE__ */ v(D, { direction: "column", gap: "1", children: [
350
+ /* @__PURE__ */ v(D, { justify: "between", children: [
351
+ /* @__PURE__ */ i(xe.Title, { mb: "0", children: n }),
352
+ /* @__PURE__ */ i(xe.Close, { children: /* @__PURE__ */ i(Pt, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ i(nn, {}) }) })
343
353
  ] }),
344
- o && /* @__PURE__ */ a(xe.Description, { children: o })
354
+ t && /* @__PURE__ */ i(xe.Description, { children: t })
345
355
  ] }),
346
- i(r)
356
+ s(r)
347
357
  ] });
348
- }), xi = w(
349
- x((t, e) => {
358
+ }), xs = $(
359
+ S((e, o) => {
350
360
  const {
351
361
  children: n,
352
- content: o,
353
- title: i,
362
+ content: t,
363
+ title: s,
354
364
  description: r,
355
- onOpen: l,
356
- onClose: s,
365
+ onOpen: c,
366
+ onClose: a,
357
367
  defaultOpen: d,
358
- onCloseInterrupt: c,
368
+ onCloseInterrupt: l,
359
369
  open: h,
360
370
  onOpenChange: u,
361
371
  ...g
362
- } = t, [m, C] = k(d ?? !1), _ = h ?? m;
363
- if ((c || l) && u)
372
+ } = e, [f, C] = k(d ?? !1), b = h ?? f;
373
+ if ((l || c) && u)
364
374
  throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");
365
375
  if (h !== void 0 && u === void 0)
366
376
  throw new Error("The `open` prop requires the `onOpenChange` prop.");
@@ -368,177 +378,177 @@ const to = {
368
378
  throw new Error("Either the `children` or `open` prop must be defined.");
369
379
  if (n && h !== void 0)
370
380
  throw new Error("The `children` and `open` props cannot be used together.");
371
- const f = y(
372
- ($) => {
381
+ const m = x(
382
+ (w) => {
373
383
  if (u)
374
- return u($);
375
- if ($ && l)
376
- l();
384
+ return u(w);
385
+ if (w && c)
386
+ c();
377
387
  else {
378
- if (!$ && c)
379
- return c(() => {
380
- C(!1), s && s();
388
+ if (!w && l)
389
+ return l(() => {
390
+ C(!1), a && a();
381
391
  });
382
- !$ && s && s();
392
+ !w && a && a();
383
393
  }
384
- C($);
394
+ C(w);
385
395
  },
386
- [u, l, s, c]
387
- ), P = y(
388
- ($) => {
389
- if ($ != null && $.force)
396
+ [u, c, a, l]
397
+ ), P = x(
398
+ (w) => {
399
+ if (w != null && w.force)
390
400
  return C(!1);
391
- f(!1);
401
+ m(!1);
392
402
  },
393
- [f]
403
+ [m]
394
404
  );
395
- return /* @__PURE__ */ b(xe.Root, { open: _, onOpenChange: f, children: [
396
- /* @__PURE__ */ a(xe.Trigger, { children: n }),
397
- /* @__PURE__ */ a(xe.Content, { ref: e, ...g, children: /* @__PURE__ */ a(
398
- ko,
405
+ return /* @__PURE__ */ v(xe.Root, { open: b, onOpenChange: m, children: [
406
+ /* @__PURE__ */ i(xe.Trigger, { children: n }),
407
+ /* @__PURE__ */ i(xe.Content, { ref: o, ...g, children: /* @__PURE__ */ i(
408
+ To,
399
409
  {
400
410
  closeDialog: P,
401
- content: o,
402
- title: i,
411
+ content: t,
412
+ title: s,
403
413
  description: r
404
414
  }
405
415
  ) })
406
416
  ] });
407
417
  })
408
- ), Mt = (t) => /* @__PURE__ */ a(me.Title, { mb: "0", ...t }), To = (t) => {
409
- const { title: e, description: n, actionText: o = "Confirm", cancelText: i = "Cancel", onAction: r, onCancel: l, severity: s } = t;
410
- return /* @__PURE__ */ b(D, { direction: "column", gap: "2", children: [
411
- /* @__PURE__ */ b(D, { direction: "column", gap: "1", children: [
412
- /* @__PURE__ */ a(Mt, { children: e }),
413
- /* @__PURE__ */ a(me.Description, { children: n })
418
+ ), zt = (e) => /* @__PURE__ */ i(fe.Title, { mb: "0", ...e }), Do = (e) => {
419
+ const { title: o, description: n, actionText: t = "Confirm", cancelText: s = "Cancel", onAction: r, onCancel: c, severity: a } = e;
420
+ return /* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
421
+ /* @__PURE__ */ v(D, { direction: "column", gap: "1", children: [
422
+ /* @__PURE__ */ i(zt, { children: o }),
423
+ /* @__PURE__ */ i(fe.Description, { children: n })
414
424
  ] }),
415
- /* @__PURE__ */ b(D, { gap: "3", mt: "4", justify: "end", children: [
416
- /* @__PURE__ */ a(me.Cancel, { children: /* @__PURE__ */ a(ke, { variant: "soft", severity: "info", onClick: l, children: i }) }),
417
- /* @__PURE__ */ a(me.Action, { children: /* @__PURE__ */ a(ke, { variant: "solid", severity: s, onClick: r, children: o }) })
425
+ /* @__PURE__ */ v(D, { gap: "3", mt: "4", justify: "end", children: [
426
+ /* @__PURE__ */ i(fe.Cancel, { children: /* @__PURE__ */ i($e, { variant: "soft", severity: "info", onClick: c, children: s }) }),
427
+ /* @__PURE__ */ i(fe.Action, { children: /* @__PURE__ */ i($e, { variant: "solid", severity: a, onClick: r, children: t }) })
418
428
  ] })
419
429
  ] });
420
- }, No = w(function(e) {
421
- const { open: n, setOpen: o, children: i, ...r } = e, l = M(() => ({
422
- close: () => o(!1),
423
- Title: Mt,
424
- Description: me.Description
425
- }), [o]);
426
- return /* @__PURE__ */ b(me.Root, { open: n, onOpenChange: o, children: [
427
- /* @__PURE__ */ a(me.Content, { children: "content" in r ? r.content(l) : /* @__PURE__ */ a(To, { ...r }) }),
428
- i
430
+ }, Io = $(function(o) {
431
+ const { open: n, setOpen: t, children: s, ...r } = o, c = R(() => ({
432
+ close: () => t(!1),
433
+ Title: zt,
434
+ Description: fe.Description
435
+ }), [t]);
436
+ return /* @__PURE__ */ v(fe.Root, { open: n, onOpenChange: t, children: [
437
+ /* @__PURE__ */ i(fe.Content, { children: "content" in r ? r.content(c) : /* @__PURE__ */ i(Do, { ...r }) }),
438
+ s
429
439
  ] });
430
- }), Rt = Pe(() => {
440
+ }), At = Se(() => {
431
441
  throw new Error("No AlertDialogProvider found");
432
- }), Do = {
442
+ }), Oo = {
433
443
  content: () => null
434
- }, wi = w(function({ children: e }) {
435
- const [n, o] = k(!1), [i, r] = k(Do), l = y(
436
- (s) => {
444
+ }, Ss = $(function({ children: o }) {
445
+ const [n, t] = k(!1), [s, r] = k(Oo), c = x(
446
+ (a) => {
437
447
  if (n)
438
448
  throw new Error("AlertDialog is already open");
439
- r(s), o(!0);
449
+ r(a), t(!0);
440
450
  },
441
451
  [n]
442
452
  );
443
- return /* @__PURE__ */ a(No, { open: n, setOpen: o, ...i, children: /* @__PURE__ */ a(Rt.Provider, { value: l, children: e }) });
444
- }), Ao = () => Ee(Rt), Pi = () => {
445
- const t = Ao();
446
- return y(
447
- (e) => t({
453
+ return /* @__PURE__ */ i(Io, { open: n, setOpen: t, ...s, children: /* @__PURE__ */ i(At.Provider, { value: c, children: o }) });
454
+ }), Ro = () => ze(At), $s = () => {
455
+ const e = Ro();
456
+ return x(
457
+ (o) => e({
448
458
  title: "Discard changes?",
449
459
  description: "You have unsaved changes. Are you sure you want to discard them?",
450
460
  actionText: "Discard",
451
461
  severity: "danger",
452
- onAction: e.onDiscard,
453
- onCancel: e.onCancel
462
+ onAction: o.onDiscard,
463
+ onCancel: o.onCancel
454
464
  }),
455
- [t]
465
+ [e]
456
466
  );
457
- }, Io = "_DropdownMenu_hj4sz_1", Mo = "_DropdownMenuItemWrapper_hj4sz_8", Ro = "_DropdownMenuSeparatorWrapper_hj4sz_13", Oo = "_DropdownMenuItem_hj4sz_8", Xe = {
458
- DropdownMenu: Io,
459
- DropdownMenuItemWrapper: Mo,
460
- DropdownMenuSeparatorWrapper: Ro,
461
- DropdownMenuItem: Oo
462
- }, zo = {
467
+ }, zo = "_DropdownMenu_hj4sz_1", Ao = "_DropdownMenuItemWrapper_hj4sz_8", Eo = "_DropdownMenuSeparatorWrapper_hj4sz_13", Bo = "_DropdownMenuItem_hj4sz_8", qe = {
468
+ DropdownMenu: zo,
469
+ DropdownMenuItemWrapper: Ao,
470
+ DropdownMenuSeparatorWrapper: Eo,
471
+ DropdownMenuItem: Bo
472
+ }, Mo = {
463
473
  1: "max-content",
464
474
  2: "max-content",
465
475
  3: "max-content",
466
476
  4: "100%"
467
- }, Eo = x(function({ severity: e = "info", weight: n = "light", gap: o = "1", text: i, orientation: r = "horizontal", size: l, ...s }, d) {
468
- const c = ce(l, zo), h = z(e);
469
- return /* @__PURE__ */ b(
477
+ }, Lo = S(function({ severity: o = "info", weight: n = "light", gap: t = "1", text: s, orientation: r = "horizontal", size: c, ...a }, d) {
478
+ const l = ce(c, Mo), h = E(o);
479
+ return /* @__PURE__ */ v(
470
480
  D,
471
481
  {
472
482
  ref: d,
473
- width: r === "horizontal" ? c : "max-content",
474
- height: r === "vertical" ? c : "max-content",
483
+ width: r === "horizontal" ? l : "max-content",
484
+ height: r === "vertical" ? l : "max-content",
475
485
  direction: r === "vertical" ? "column" : "row",
476
486
  align: "center",
477
- gap: o,
487
+ gap: t,
478
488
  children: [
479
- /* @__PURE__ */ a(mt, { size: l, orientation: r, color: h, ...s }),
480
- i && /* @__PURE__ */ b(X, { children: [
481
- /* @__PURE__ */ a(ze, { as: "span", size: "1", weight: n, color: h, children: i }),
482
- /* @__PURE__ */ a(mt, { size: l, orientation: r, color: h, ...s })
489
+ /* @__PURE__ */ i(ft, { size: c, orientation: r, color: h, ...a }),
490
+ s && /* @__PURE__ */ v(J, { children: [
491
+ /* @__PURE__ */ i(Re, { as: "span", size: "1", weight: n, color: h, children: s }),
492
+ /* @__PURE__ */ i(ft, { size: c, orientation: r, color: h, ...a })
483
493
  ] })
484
494
  ]
485
495
  }
486
496
  );
487
- }), Bo = w(Eo), Lo = w(function({
488
- content: e,
497
+ }), Wo = $(Lo), Ho = $(function({
498
+ content: o,
489
499
  onSelect: n,
490
- closeOnSelect: o,
491
- ...i
500
+ closeOnSelect: t,
501
+ ...s
492
502
  }) {
493
- const r = y(
494
- (l) => {
495
- n && n(l), o || l.preventDefault();
503
+ const r = x(
504
+ (c) => {
505
+ n && n(c), t || c.preventDefault();
496
506
  },
497
- [o, n]
507
+ [t, n]
498
508
  );
499
- return /* @__PURE__ */ a(ne.Item, { className: Xe.DropdownMenuItem, textValue: "", onSelect: r, ...i, children: /* @__PURE__ */ a(D, { align: "center", gap: "1", children: e }) });
500
- }), ki = w(
501
- x(
509
+ return /* @__PURE__ */ i(ee.Item, { className: qe.DropdownMenuItem, textValue: "", onSelect: r, ...s, children: /* @__PURE__ */ i(D, { align: "center", gap: "1", children: o }) });
510
+ }), Ps = $(
511
+ S(
502
512
  ({
503
- className: t,
504
- trigger: e,
513
+ className: e,
514
+ trigger: o,
505
515
  items: n,
506
- label: o,
507
- disabled: i,
516
+ label: t,
517
+ disabled: s,
508
518
  severity: r = "info",
509
- modal: l = !1,
510
- closeOnSelect: s = !0,
519
+ modal: c = !1,
520
+ closeOnSelect: a = !0,
511
521
  ...d
512
522
  }) => {
513
- const c = z(r);
514
- return /* @__PURE__ */ b(ne.Root, { modal: l, children: [
515
- /* @__PURE__ */ a(ne.Trigger, { disabled: i, children: e }),
516
- /* @__PURE__ */ a(
517
- ne.Content,
523
+ const l = E(r);
524
+ return /* @__PURE__ */ v(ee.Root, { modal: c, children: [
525
+ /* @__PURE__ */ i(ee.Trigger, { disabled: s, children: o }),
526
+ /* @__PURE__ */ i(
527
+ ee.Content,
518
528
  {
519
- className: S("overmap-dropdown", t),
520
- color: c,
529
+ className: y("overmap-dropdown", e),
530
+ color: l,
521
531
  variant: "soft",
522
532
  ...d,
523
- children: /* @__PURE__ */ b(
533
+ children: /* @__PURE__ */ v(
524
534
  D,
525
535
  {
526
- className: Xe.DropdownMenu,
536
+ className: qe.DropdownMenu,
527
537
  direction: "column",
528
538
  height: "max-content",
529
539
  width: "max-content",
530
540
  children: [
531
- !!o && /* @__PURE__ */ a(ne.Label, { children: o }),
532
- n.map(({ closeOnSelect: h, separator: u, ...g }, m) => /* @__PURE__ */ b(X, { children: [
533
- /* @__PURE__ */ a(V, { className: Xe.DropdownMenuItemWrapper, children: /* @__PURE__ */ a(
534
- Lo,
541
+ !!t && /* @__PURE__ */ i(ee.Label, { children: t }),
542
+ n.map(({ closeOnSelect: h, separator: u, ...g }, f) => /* @__PURE__ */ v(J, { children: [
543
+ /* @__PURE__ */ i(G, { className: qe.DropdownMenuItemWrapper, children: /* @__PURE__ */ i(
544
+ Ho,
535
545
  {
536
- closeOnSelect: h ?? s,
546
+ closeOnSelect: h ?? a,
537
547
  ...g
538
548
  },
539
- m
549
+ f
540
550
  ) }),
541
- !!u && /* @__PURE__ */ a(V, { className: Xe.DropdownMenuSeparatorWrapper, children: /* @__PURE__ */ a(Bo, { size: "4" }) })
551
+ !!u && /* @__PURE__ */ i(G, { className: qe.DropdownMenuSeparatorWrapper, children: /* @__PURE__ */ i(Wo, { size: "4" }) })
542
552
  ] }))
543
553
  ]
544
554
  }
@@ -548,223 +558,223 @@ const to = {
548
558
  ] });
549
559
  }
550
560
  )
551
- ), Fo = "_DropdownSelect_k517z_1", Uo = "_BorderBottom_k517z_8", Wo = "_DropdownSelectInputWrapper_k517z_12", Ho = "_DropdownSelectInput_k517z_12", jo = "_DropdownSelectItem_k517z_27", $e = {
552
- DropdownSelect: Fo,
553
- BorderBottom: Uo,
554
- DropdownSelectInputWrapper: Wo,
555
- DropdownSelectInput: Ho,
556
- DropdownSelectItem: jo
557
- }, Vo = 150, Ti = w(
558
- x(
561
+ ), jo = "_DropdownSelect_k517z_1", Fo = "_BorderBottom_k517z_8", Vo = "_DropdownSelectInputWrapper_k517z_12", Uo = "_DropdownSelectInput_k517z_12", Go = "_DropdownSelectItem_k517z_27", be = {
562
+ DropdownSelect: jo,
563
+ BorderBottom: Fo,
564
+ DropdownSelectInputWrapper: Vo,
565
+ DropdownSelectInput: Uo,
566
+ DropdownSelectItem: Go
567
+ }, Ko = 150, ks = $(
568
+ S(
559
569
  ({
560
- trigger: t,
561
- items: e,
570
+ trigger: e,
571
+ items: o,
562
572
  disabled: n = !1,
563
- value: o,
564
- onValueChange: i,
573
+ value: t,
574
+ onValueChange: s,
565
575
  placeholder: r,
566
- filterValue: l,
567
- onFilterValueChange: s,
576
+ filterValue: c,
577
+ onFilterValueChange: a,
568
578
  closeOnSelect: d = !0,
569
- icons: c,
579
+ icons: l,
570
580
  severity: h = "info"
571
581
  }, u) => {
572
- const g = z(h), m = y(
573
- (f) => (P) => {
574
- i(o !== f ? f : void 0), d || P.preventDefault();
582
+ const g = E(h), f = x(
583
+ (m) => (P) => {
584
+ s(t !== m ? m : void 0), d || P.preventDefault();
575
585
  },
576
- [o, d, i]
577
- ), C = y(
578
- (f) => {
579
- s && s(f.target.value);
586
+ [t, d, s]
587
+ ), C = x(
588
+ (m) => {
589
+ a && a(m.target.value);
580
590
  },
581
- [s]
582
- ), _ = y(
583
- (f) => {
584
- !f && s && setTimeout(() => {
585
- s("");
586
- }, Vo);
591
+ [a]
592
+ ), b = x(
593
+ (m) => {
594
+ !m && a && setTimeout(() => {
595
+ a("");
596
+ }, Ko);
587
597
  },
588
- [s]
598
+ [a]
589
599
  );
590
- return /* @__PURE__ */ b(ne.Root, { onOpenChange: _, children: [
591
- /* @__PURE__ */ a(ne.Trigger, { disabled: n, children: t }),
592
- /* @__PURE__ */ a(ne.Content, { ref: u, variant: "soft", color: g, className: $e.Test, children: /* @__PURE__ */ b(J, { className: $e.DropdownSelect, direction: "column", children: [
593
- l !== void 0 && !!s && /* @__PURE__ */ a(V, { px: "1", className: S({ [$e.BorderBottom]: e.length !== 0 }), children: /* @__PURE__ */ b(
600
+ return /* @__PURE__ */ v(ee.Root, { onOpenChange: b, children: [
601
+ /* @__PURE__ */ i(ee.Trigger, { disabled: n, children: e }),
602
+ /* @__PURE__ */ i(ee.Content, { ref: u, variant: "soft", color: g, className: be.Test, children: /* @__PURE__ */ v(X, { className: be.DropdownSelect, direction: "column", children: [
603
+ c !== void 0 && !!a && /* @__PURE__ */ i(G, { px: "1", className: y({ [be.BorderBottom]: o.length !== 0 }), children: /* @__PURE__ */ v(
594
604
  ie.Root,
595
605
  {
596
- className: $e.DropdownSelectInputWrapper,
606
+ className: be.DropdownSelectInputWrapper,
597
607
  size: "2",
598
608
  variant: "soft",
599
609
  children: [
600
- !!c && !!c.leftInputIcon && /* @__PURE__ */ a(ie.Slot, { children: c.leftInputIcon }),
601
- /* @__PURE__ */ a(
610
+ !!l && !!l.leftInputIcon && /* @__PURE__ */ i(ie.Slot, { children: l.leftInputIcon }),
611
+ /* @__PURE__ */ i(
602
612
  ie.Input,
603
613
  {
604
- className: $e.DropdownSelectInput,
605
- value: l,
614
+ className: be.DropdownSelectInput,
615
+ value: c,
606
616
  placeholder: r,
607
617
  onChange: C
608
618
  }
609
619
  ),
610
- !!c && !!c.rightInputIcon && /* @__PURE__ */ a(ie.Slot, { children: c.rightInputIcon })
620
+ !!l && !!l.rightInputIcon && /* @__PURE__ */ i(ie.Slot, { children: l.rightInputIcon })
611
621
  ]
612
622
  }
613
623
  ) }),
614
- /* @__PURE__ */ a(V, { p: e.length !== 0 ? "1" : "0", children: /* @__PURE__ */ a(J, { direction: "column", children: e.map(({ content: f, value: P }, $) => /* @__PURE__ */ a(
615
- ne.Item,
624
+ /* @__PURE__ */ i(G, { p: o.length !== 0 ? "1" : "0", children: /* @__PURE__ */ i(X, { direction: "column", children: o.map(({ content: m, value: P }, w) => /* @__PURE__ */ i(
625
+ ee.Item,
616
626
  {
617
- className: $e.DropdownSelectItem,
618
- onSelect: m(P),
627
+ className: be.DropdownSelectItem,
628
+ onSelect: f(P),
619
629
  textValue: "",
620
630
  asChild: !0,
621
- children: /* @__PURE__ */ b(J, { align: "center", height: "max-content", width: "100%", gap: "5", children: [
622
- /* @__PURE__ */ a(V, { grow: "1", children: f }),
623
- /* @__PURE__ */ a(
624
- J,
631
+ children: /* @__PURE__ */ v(X, { align: "center", height: "max-content", width: "100%", gap: "5", children: [
632
+ /* @__PURE__ */ i(G, { grow: "1", children: m }),
633
+ /* @__PURE__ */ i(
634
+ X,
625
635
  {
626
636
  justify: "center",
627
637
  align: "center",
628
638
  height: "max-content",
629
639
  width: "4",
630
- children: o === P && (c && (c != null && c.selectedItemIcon) ? c.selectedItemIcon : /* @__PURE__ */ a(xt, {}))
640
+ children: t === P && (l && (l != null && l.selectedItemIcon) ? l.selectedItemIcon : /* @__PURE__ */ i(St, {}))
631
641
  }
632
642
  )
633
643
  ] })
634
644
  },
635
- $
645
+ w
636
646
  )) }) })
637
647
  ] }) })
638
648
  ] });
639
649
  }
640
650
  )
641
- ), qo = w(function({ children: e }) {
642
- const [n, o] = k(!1), i = y(() => {
643
- o(!0);
644
- }, []), r = y(() => {
645
- o(!1);
651
+ ), qo = $(function({ children: o }) {
652
+ const [n, t] = k(!1), s = x(() => {
653
+ t(!0);
654
+ }, []), r = x(() => {
655
+ t(!1);
646
656
  }, []);
647
- return e({
657
+ return o({
648
658
  isHovered: n,
649
- onPointerEnter: i,
659
+ onPointerEnter: s,
650
660
  onPointerLeave: r
651
661
  });
652
- }), Go = "_fluid_7n1wr_1", bt = {
653
- fluid: Go
654
- }, Ko = x(function({
655
- className: e,
662
+ }), Xo = "_fluid_7n1wr_1", vt = {
663
+ fluid: Xo
664
+ }, Jo = S(function({
665
+ className: o,
656
666
  fluid: n,
657
- size: o = "medium",
658
- variant: i = "surface",
667
+ size: t = "medium",
668
+ variant: s = "surface",
659
669
  severity: r = "primary",
660
- itemSeverity: l = "info",
661
- placeholder: s = "Select",
670
+ itemSeverity: c = "info",
671
+ placeholder: a = "Select",
662
672
  side: d,
663
- items: c = [],
673
+ items: l = [],
664
674
  value: h,
665
675
  id: u,
666
676
  ...g
667
- }, m) {
668
- const C = ce(o, Te), _ = z(r), f = z(l);
669
- return /* @__PURE__ */ H(se.Root, { size: C, ...g, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ a(
677
+ }, f) {
678
+ const C = ce(t, Pe), b = E(r), m = E(c);
679
+ return /* @__PURE__ */ F(se.Root, { size: C, ...g, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ i(
670
680
  se.Trigger,
671
681
  {
672
- className: S(e, {
673
- [bt.fluid]: n
682
+ className: y(o, {
683
+ [vt.fluid]: n
674
684
  }),
675
685
  id: u,
676
- ref: m,
677
- variant: i,
678
- placeholder: s,
679
- color: _
686
+ ref: f,
687
+ variant: s,
688
+ placeholder: a,
689
+ color: b
680
690
  }
681
- ), /* @__PURE__ */ a(
691
+ ), /* @__PURE__ */ i(
682
692
  se.Content,
683
693
  {
684
694
  side: d,
685
- className: bt.contentDefault,
695
+ className: vt.contentDefault,
686
696
  position: "popper",
687
- variant: i !== "surface" ? "soft" : "solid",
688
- color: f,
689
- children: c.map(({ itemContent: P, value: $, ...T }) => /* @__PURE__ */ a(se.Item, { className: "overmap-select-item", value: $, ...T, children: P }, $))
697
+ variant: s !== "surface" ? "soft" : "solid",
698
+ color: m,
699
+ children: l.map(({ itemContent: P, value: w, ...N }) => /* @__PURE__ */ i(se.Item, { className: "overmap-select-item", value: w, ...N, children: P }, w))
690
700
  }
691
701
  ));
692
- }), Jo = U.memo(Ko), vt = w(
693
- x((t, e) => {
694
- const { checked: n, label: o, value: i, size: r = "2" } = t;
695
- return /* @__PURE__ */ a(V, { asChild: !0, px: r, children: /* @__PURE__ */ a(se.Item, { value: i, ref: e, children: /* @__PURE__ */ b(D, { gap: r, align: "center", children: [
696
- /* @__PURE__ */ a(Sn, { checked: n }),
697
- o
702
+ }), Qo = W.memo(Jo), _t = $(
703
+ S((e, o) => {
704
+ const { checked: n, label: t, value: s, size: r = "2" } = e;
705
+ return /* @__PURE__ */ i(G, { asChild: !0, px: r, children: /* @__PURE__ */ i(se.Item, { value: s, ref: o, children: /* @__PURE__ */ v(D, { gap: r, align: "center", children: [
706
+ /* @__PURE__ */ i(wn, { checked: n }),
707
+ t
698
708
  ] }) }) });
699
709
  })
700
- ), Ge = "__select_all__", Ni = w(
701
- x((t, e) => {
702
- const [n, o] = k(!1), { placeholder: i, value: r, onValueChange: l, options: s, disabled: d, name: c, ...h } = t, u = ce(t.size, Te), g = z(t.severity), m = M(() => new Map(s.map(($) => [$.value, $.label])), [s]), C = r.length > 4 ? (
710
+ ), Ge = "__select_all__", Ns = $(
711
+ S((e, o) => {
712
+ const [n, t] = k(!1), { placeholder: s, value: r, onValueChange: c, options: a, disabled: d, name: l, ...h } = e, u = ce(e.size, Pe), g = E(e.severity), f = R(() => new Map(a.map((w) => [w.value, w.label])), [a]), C = r.length > 4 ? (
703
713
  // to ensure the width of the select doesn't get too big
704
714
  `${r.length} options selected`
705
715
  ) : (
706
716
  // convert the values to labels
707
- /* @__PURE__ */ a("span", { children: r.flatMap(($) => [m.get($), ", "]).slice(0, -1) })
708
- ), _ = y(() => o(!1), []), f = y(($) => {
709
- $ && o(!0);
710
- }, []), P = y(
711
- ($) => {
712
- let T;
713
- $ === Ge ? T = r.length === s.length ? [] : s.map((oe) => oe.value) : T = r.includes($) ? r.filter((O) => O !== $) : [...r, $], l(T);
717
+ /* @__PURE__ */ i("span", { children: r.flatMap((w) => [f.get(w), ", "]).slice(0, -1) })
718
+ ), b = x(() => t(!1), []), m = x((w) => {
719
+ w && t(!0);
720
+ }, []), P = x(
721
+ (w) => {
722
+ let N;
723
+ w === Ge ? N = r.length === a.length ? [] : a.map((te) => te.value) : N = r.includes(w) ? r.filter((A) => A !== w) : [...r, w], c(N);
714
724
  },
715
- [l, s, r]
725
+ [c, a, r]
716
726
  );
717
- return E(() => {
718
- if (s.some(({ value: $ }) => $ === Ge))
727
+ return M(() => {
728
+ if (a.some(({ value: w }) => w === Ge))
719
729
  throw new Error(`Cannot have an option with the value "${Ge}"`);
720
- }, [s]), /* @__PURE__ */ b(
730
+ }, [a]), /* @__PURE__ */ v(
721
731
  se.Root,
722
732
  {
723
733
  open: n,
724
734
  value: "",
725
- onOpenChange: f,
735
+ onOpenChange: m,
726
736
  onValueChange: P,
727
737
  disabled: d,
728
738
  size: u,
729
- name: c,
739
+ name: l,
730
740
  autoComplete: "off",
731
741
  children: [
732
- /* @__PURE__ */ a(
742
+ /* @__PURE__ */ i(
733
743
  se.Trigger,
734
744
  {
735
- ref: e,
745
+ ref: o,
736
746
  color: g,
737
- placeholder: r.length > 0 ? C : i,
747
+ placeholder: r.length > 0 ? C : s,
738
748
  "data-placeholder": r.length > 0 ? void 0 : !0,
739
749
  ...h
740
750
  }
741
751
  ),
742
- /* @__PURE__ */ b(
752
+ /* @__PURE__ */ v(
743
753
  se.Content,
744
754
  {
745
755
  color: "gray",
746
756
  variant: "soft",
747
757
  position: "popper",
748
- onEscapeKeyDown: _,
749
- onPointerDownOutside: _,
758
+ onEscapeKeyDown: b,
759
+ onPointerDownOutside: b,
750
760
  children: [
751
- /* @__PURE__ */ a(
752
- vt,
761
+ /* @__PURE__ */ i(
762
+ _t,
753
763
  {
754
764
  value: Ge,
755
765
  label: "Select all",
756
- checked: r.length === s.length,
766
+ checked: r.length === a.length,
757
767
  size: u
758
768
  }
759
769
  ),
760
- s.map(($) => /* @__PURE__ */ a(
761
- vt,
770
+ a.map((w) => /* @__PURE__ */ i(
771
+ _t,
762
772
  {
763
- ...$,
764
- checked: r.includes($.value),
773
+ ...w,
774
+ checked: r.includes(w.value),
765
775
  size: u
766
776
  },
767
- $.value
777
+ w.value
768
778
  ))
769
779
  ]
770
780
  }
@@ -773,143 +783,143 @@ const to = {
773
783
  }
774
784
  );
775
785
  })
776
- ), Xo = {
786
+ ), Yo = {
777
787
  default: "_default_u936h_1"
778
- }, Qo = x(function({ className: e, severity: n = "primary", icon: o, defaultChecked: i = !1, onCheckedChange: r, ...l }, s) {
779
- const d = W(null), [c, h] = k(l.checked ? l.checked : i), [u, g] = k(), m = z(n);
780
- st(() => {
788
+ }, Zo = S(function({ className: o, severity: n = "primary", icon: t, defaultChecked: s = !1, onCheckedChange: r, ...c }, a) {
789
+ const d = H(null), [l, h] = k(c.checked ? c.checked : s), [u, g] = k(), f = E(n);
790
+ ct(() => {
781
791
  var P;
782
- const f = s || d;
783
- "current" in f && f.current && g((P = f.current) == null ? void 0 : P.querySelector("span.rt-SwitchThumb"));
784
- }, [s]);
785
- const C = y(
786
- (f) => {
787
- h(f), r && r(f);
792
+ const m = a || d;
793
+ "current" in m && m.current && g((P = m.current) == null ? void 0 : P.querySelector("span.rt-SwitchThumb"));
794
+ }, [a]);
795
+ const C = x(
796
+ (m) => {
797
+ h(m), r && r(m);
788
798
  },
789
799
  [r]
790
- ), _ = l.checked ? l.checked : c;
791
- return /* @__PURE__ */ b(X, { children: [
792
- /* @__PURE__ */ a(
800
+ ), b = c.checked ? c.checked : l;
801
+ return /* @__PURE__ */ v(J, { children: [
802
+ /* @__PURE__ */ i(
793
803
  yn,
794
804
  {
795
- className: S("overmap-switch", e, Xo.default),
796
- ref: s || d,
797
- color: m,
805
+ className: y("overmap-switch", o, Yo.default),
806
+ ref: a || d,
807
+ color: f,
798
808
  radius: "full",
799
- defaultChecked: i,
809
+ defaultChecked: s,
800
810
  onCheckedChange: C,
801
- ...l
811
+ ...c
802
812
  }
803
813
  ),
804
- /* @__PURE__ */ a(xn, { container: u, asChild: !0, children: o && "checked" in o ? _ ? o.checked : o.unchecked : o })
814
+ /* @__PURE__ */ i(xn, { container: u, asChild: !0, children: t && "checked" in t ? b ? t.checked : t.unchecked : t })
805
815
  ] });
806
- }), Di = w(Qo), Yo = "_sidebarContent_1onyo_1", Zo = "_right_1onyo_7", er = "_resizeHandle_1onyo_10", tr = "_left_1onyo_13", nr = "_overlay_1onyo_33", Se = {
807
- sidebarContent: Yo,
808
- right: Zo,
809
- resizeHandle: er,
810
- left: tr,
811
- overlay: nr
812
- }, or = { width: "auto", height: "100%" }, rr = x(function({
813
- side: e = "left",
816
+ }), Ts = $(Zo), er = "_sidebarContent_1onyo_1", tr = "_right_1onyo_7", nr = "_resizeHandle_1onyo_10", or = "_left_1onyo_13", rr = "_overlay_1onyo_33", we = {
817
+ sidebarContent: er,
818
+ right: tr,
819
+ resizeHandle: nr,
820
+ left: or,
821
+ overlay: rr
822
+ }, ir = { width: "auto", height: "100%" }, sr = S(function({
823
+ side: o = "left",
814
824
  modal: n = !0,
815
- children: o,
816
- open: i,
825
+ children: t,
826
+ open: s,
817
827
  containerSelector: r,
818
- overlay: l = !0,
819
- resizable: s = !0,
828
+ overlay: c = !0,
829
+ resizable: a = !0,
820
830
  // Props related to Resizable
821
831
  minWidth: d = "300px",
822
- maxWidth: c = "500px",
832
+ maxWidth: l = "500px",
823
833
  ...h
824
834
  }, u) {
825
- const g = e === "right", m = e === "left", [C, _] = k();
826
- return E(() => {
827
- const f = r ?? '[data-is-root-theme="true"]', P = document.querySelector(f);
835
+ const g = o === "right", f = o === "left", [C, b] = k();
836
+ return M(() => {
837
+ const m = r ?? '[data-is-root-theme="true"]', P = document.querySelector(m);
828
838
  if (P === void 0)
829
- throw new Error(`Could not find a container element using the following selector ${f}`);
830
- _(P);
831
- }, [r]), /* @__PURE__ */ a(Ve.Root, { open: i, modal: n, children: /* @__PURE__ */ b(Ve.Portal, { container: C, children: [
832
- l && /* @__PURE__ */ a(Ve.Overlay, { className: S(Se.overlay) }),
833
- /* @__PURE__ */ a(
839
+ throw new Error(`Could not find a container element using the following selector ${m}`);
840
+ b(P);
841
+ }, [r]), /* @__PURE__ */ i(Ve.Root, { open: s, modal: n, children: /* @__PURE__ */ v(Ve.Portal, { container: C, children: [
842
+ c && /* @__PURE__ */ i(Ve.Overlay, { className: y(we.overlay) }),
843
+ /* @__PURE__ */ i(
834
844
  Ve.Content,
835
845
  {
836
- className: S("overmap-sidebar", "rt-DialogContent", Se.sidebarContent, {
837
- [Se.left]: m,
838
- [Se.right]: g
846
+ className: y("overmap-sidebar", "rt-DialogContent", we.sidebarContent, {
847
+ [we.left]: f,
848
+ [we.right]: g
839
849
  }),
840
850
  ref: u,
841
851
  asChild: !0,
842
852
  ...h,
843
- children: /* @__PURE__ */ a(V, { width: "auto", children: /* @__PURE__ */ a(
844
- Ye,
853
+ children: /* @__PURE__ */ i(G, { width: "auto", children: /* @__PURE__ */ i(
854
+ Qe,
845
855
  {
846
856
  minWidth: d,
847
- maxWidth: c,
848
- defaultSize: or,
849
- enable: { right: s && m, left: s && g },
850
- handleClasses: { left: Se.resizeHandle, right: Se.resizeHandle },
857
+ maxWidth: l,
858
+ defaultSize: ir,
859
+ enable: { right: a && f, left: a && g },
860
+ handleClasses: { left: we.resizeHandle, right: we.resizeHandle },
851
861
  handleComponent: {
852
- right: /* @__PURE__ */ a(Qe, {}),
853
- left: /* @__PURE__ */ a(Qe, {})
862
+ right: /* @__PURE__ */ i(Je, {}),
863
+ left: /* @__PURE__ */ i(Je, {})
854
864
  },
855
- children: o
865
+ children: t
856
866
  }
857
867
  ) })
858
868
  }
859
869
  )
860
870
  ] }) });
861
- }), Ai = w(rr), ar = "_outerContent_1iy9c_1", ir = "_enter_1iy9c_4", sr = "_right_1iy9c_4", lr = "_left_1iy9c_8", cr = "_enterActive_1iy9c_12", dr = "_exitActive_1iy9c_22", ur = "_exitDone_1iy9c_32", hr = "_resizable_1iy9c_41", pr = "_slideOutOverlay_1iy9c_47", ee = {
871
+ }), Ds = $(sr), ar = "_outerContent_1iy9c_1", cr = "_enter_1iy9c_4", lr = "_right_1iy9c_4", dr = "_left_1iy9c_8", ur = "_enterActive_1iy9c_12", hr = "_exitActive_1iy9c_22", pr = "_exitDone_1iy9c_32", fr = "_resizable_1iy9c_41", mr = "_slideOutOverlay_1iy9c_47", Z = {
862
872
  outerContent: ar,
863
- enter: ir,
864
- right: sr,
865
- left: lr,
866
- enterActive: cr,
867
- exitActive: dr,
868
- exitDone: ur,
869
- resizable: hr,
870
- slideOutOverlay: pr
871
- }, mr = 200, Ii = w(function({
872
- className: e,
873
+ enter: cr,
874
+ right: lr,
875
+ left: dr,
876
+ enterActive: ur,
877
+ exitActive: hr,
878
+ exitDone: pr,
879
+ resizable: fr,
880
+ slideOutOverlay: mr
881
+ }, gr = 200, Is = $(function({
882
+ className: o,
873
883
  open: n,
874
- side: o = "left",
875
- children: i,
884
+ side: t = "left",
885
+ children: s,
876
886
  minWidth: r,
877
- maxWidth: l,
878
- resizable: s = !0,
887
+ maxWidth: c,
888
+ resizable: a = !0,
879
889
  overlay: d = !1,
880
- modal: c = !1,
890
+ modal: l = !1,
881
891
  resizeHandle: h,
882
892
  position: u = "absolute",
883
893
  ...g
884
894
  }) {
885
- const m = W(null), [C, _] = k(r), f = o === "left", P = o === "right", $ = y(
886
- (T, O, oe, Le) => {
887
- _(oe.clientWidth), m.current && (m.current.style.width = `${oe.clientWidth}px`);
895
+ const f = H(null), [C, b] = k(r), m = t === "left", P = t === "right", w = x(
896
+ (N, A, te, Ee) => {
897
+ b(te.clientWidth), f.current && (f.current.style.width = `${te.clientWidth}px`);
888
898
  },
889
899
  []
890
900
  );
891
- return /* @__PURE__ */ a(
901
+ return /* @__PURE__ */ i(
892
902
  In,
893
903
  {
894
904
  in: n,
895
905
  classNames: {
896
- enter: ee.enter,
897
- enterActive: ee.enterActive,
898
- exitActive: ee.exitActive,
899
- exitDone: ee.exitDone
906
+ enter: Z.enter,
907
+ enterActive: Z.enterActive,
908
+ exitActive: Z.exitActive,
909
+ exitDone: Z.exitDone
900
910
  },
901
- timeout: mr,
902
- nodeRef: m,
911
+ timeout: gr,
912
+ nodeRef: f,
903
913
  unmountOnExit: !0,
904
914
  mountOnEnter: !0,
905
- children: /* @__PURE__ */ b(X, { children: [
906
- d && /* @__PURE__ */ a("div", { className: S("overamp-slide-out-overlay", ee.slideOutOverlay) }),
907
- /* @__PURE__ */ a(An, { disableOutsidePointerEvents: c, asChild: !0, ...g, children: /* @__PURE__ */ a(
915
+ children: /* @__PURE__ */ v(J, { children: [
916
+ d && /* @__PURE__ */ i("div", { className: y("overamp-slide-out-overlay", Z.slideOutOverlay) }),
917
+ /* @__PURE__ */ i(Dn, { disableOutsidePointerEvents: l, asChild: !0, ...g, children: /* @__PURE__ */ i(
908
918
  D,
909
919
  {
910
- className: S("overmap-slide-out", e, ee.outerContent, {
911
- [ee.left]: f,
912
- [ee.right]: P
920
+ className: y("overmap-slide-out", o, Z.outerContent, {
921
+ [Z.left]: m,
922
+ [Z.right]: P
913
923
  }),
914
924
  style: { "--slide-out-width": `${C}px` },
915
925
  height: "100%",
@@ -917,20 +927,20 @@ const to = {
917
927
  position: u,
918
928
  top: "0",
919
929
  bottom: "0",
920
- left: f ? "0" : void 0,
930
+ left: m ? "0" : void 0,
921
931
  right: P ? "0" : void 0,
922
- ref: m,
923
- children: /* @__PURE__ */ a(
924
- Ye,
932
+ ref: f,
933
+ children: /* @__PURE__ */ i(
934
+ Qe,
925
935
  {
926
- className: ee.resizable,
936
+ className: Z.resizable,
927
937
  defaultSize: { width: C, height: "100%" },
928
- onResize: $,
929
- enable: { right: s && f, left: s && P },
938
+ onResize: w,
939
+ enable: { right: a && m, left: a && P },
930
940
  handleComponent: { left: h, right: h },
931
941
  minWidth: r,
932
- maxWidth: l,
933
- children: i
942
+ maxWidth: c,
943
+ children: s
934
944
  }
935
945
  )
936
946
  }
@@ -938,313 +948,313 @@ const to = {
938
948
  ] })
939
949
  }
940
950
  );
941
- }), fr = "_accommodateCharCount_1octa_1", gr = "_wrapper_1octa_5", Cr = "_noLeftIcon_1octa_14", br = "_noRightIcon_1octa_18", vr = "_ghost_1octa_22", _r = "_charCount_1octa_40", pe = {
942
- accommodateCharCount: fr,
943
- wrapper: gr,
951
+ }), Cr = "_accommodateCharCount_1octa_1", vr = "_wrapper_1octa_5", _r = "_noLeftIcon_1octa_14", br = "_noRightIcon_1octa_18", wr = "_ghost_1octa_22", yr = "_charCount_1octa_40", pe = {
952
+ accommodateCharCount: Cr,
953
+ wrapper: vr,
944
954
  default: "_default_1octa_10",
945
- noLeftIcon: Cr,
955
+ noLeftIcon: _r,
946
956
  noRightIcon: br,
947
- ghost: vr,
948
- charCount: _r
949
- }, $r = x(function({
950
- className: e,
957
+ ghost: wr,
958
+ charCount: yr
959
+ }, xr = S(function({
960
+ className: o,
951
961
  leftSlot: n,
952
- rightSlot: o,
953
- size: i = "medium",
962
+ rightSlot: t,
963
+ size: s = "medium",
954
964
  showInputLength: r,
955
- value: l,
956
- variant: s,
965
+ value: c,
966
+ variant: a,
957
967
  severity: d = "primary",
958
- ...c
968
+ ...l
959
969
  }, h) {
960
- const u = ce(i, Te), g = z(d), m = r || r === void 0 && c.maxLength !== void 0, C = l !== void 0 ? l.toString() : void 0;
961
- return /* @__PURE__ */ b(
970
+ const u = ce(s, Pe), g = E(d), f = r || r === void 0 && l.maxLength !== void 0, C = c !== void 0 ? c.toString() : void 0;
971
+ return /* @__PURE__ */ v(
962
972
  ie.Root,
963
973
  {
964
- className: S(pe.wrapper, e, {
965
- [pe.ghost]: s === "ghost",
966
- [pe.accommodateCharCount]: m
974
+ className: y(pe.wrapper, o, {
975
+ [pe.ghost]: a === "ghost",
976
+ [pe.accommodateCharCount]: f
967
977
  }),
968
978
  size: u,
969
- variant: s !== "ghost" ? s : void 0,
979
+ variant: a !== "ghost" ? a : void 0,
970
980
  color: g,
971
981
  children: [
972
- n && /* @__PURE__ */ a(ie.Slot, { children: n }),
973
- /* @__PURE__ */ a(
982
+ n && /* @__PURE__ */ i(ie.Slot, { children: n }),
983
+ /* @__PURE__ */ i(
974
984
  ie.Input,
975
985
  {
976
- className: S(pe.default, {
986
+ className: y(pe.default, {
977
987
  [pe.noLeftIcon]: !n,
978
- [pe.noRightIcon]: !o
988
+ [pe.noRightIcon]: !t
979
989
  }),
980
990
  ref: h,
981
- value: l,
991
+ value: c,
982
992
  size: u,
983
- variant: s !== "ghost" ? s : void 0,
993
+ variant: a !== "ghost" ? a : void 0,
984
994
  color: g,
985
- ...c
995
+ ...l
986
996
  }
987
997
  ),
988
- o && /* @__PURE__ */ a(ie.Slot, { children: o }),
989
- m && /* @__PURE__ */ a(ze, { as: "p", className: pe.charCount, size: "1", color: "gray", children: c.maxLength !== void 0 ? `${C == null ? void 0 : C.length}/${c.maxLength}` : `${C == null ? void 0 : C.length}` })
998
+ t && /* @__PURE__ */ i(ie.Slot, { children: t }),
999
+ f && /* @__PURE__ */ i(Re, { as: "p", className: pe.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${C == null ? void 0 : C.length}/${l.maxLength}` : `${C == null ? void 0 : C.length}` })
990
1000
  ]
991
1001
  }
992
1002
  );
993
- }), Sr = U.memo($r), Mi = w(function({
994
- color: e,
1003
+ }), Sr = W.memo(xr), Os = $(function({
1004
+ color: o,
995
1005
  severity: n,
996
- children: o
1006
+ children: t
997
1007
  }) {
998
- const i = z(n ?? "primary"), r = M(
1008
+ const s = E(n ?? "primary"), r = R(
999
1009
  () => ({
1000
- "data-accent-color": n && i ? i : e || "gray",
1010
+ "data-accent-color": n && s ? s : o || "gray",
1001
1011
  style: {
1002
1012
  color: "var(--accent-a11)"
1003
1013
  }
1004
1014
  }),
1005
- [e, n, i]
1015
+ [o, n, s]
1006
1016
  );
1007
- return Be(o, { ...r });
1008
- }), yr = "_wrapper_tmtz0_1", xr = {
1009
- wrapper: yr
1010
- }, wr = x(function({ className: e, trigger: n, open: o, onOpenChange: i, defaultOpen: r = !1, modal: l = !1, children: s, ...d }, c) {
1011
- return /* @__PURE__ */ b(He.Root, { defaultOpen: r, modal: l, open: o, onOpenChange: i, children: [
1012
- /* @__PURE__ */ a(He.Trigger, { children: n }),
1013
- /* @__PURE__ */ a(
1014
- He.Content,
1017
+ return Ae(t, { ...r });
1018
+ }), $r = "_wrapper_tmtz0_1", Pr = {
1019
+ wrapper: $r
1020
+ }, kr = S(function({ className: o, trigger: n, open: t, onOpenChange: s, defaultOpen: r = !1, modal: c = !1, children: a, ...d }, l) {
1021
+ return /* @__PURE__ */ v(je.Root, { defaultOpen: r, modal: c, open: t, onOpenChange: s, children: [
1022
+ /* @__PURE__ */ i(je.Trigger, { children: n }),
1023
+ /* @__PURE__ */ i(
1024
+ je.Content,
1015
1025
  {
1016
- ref: c,
1017
- className: S("overmap-popover", e, xr.wrapper),
1026
+ ref: l,
1027
+ className: y("overmap-popover", o, Pr.wrapper),
1018
1028
  ...d,
1019
- children: s(He.Close)
1029
+ children: a(je.Close)
1020
1030
  }
1021
1031
  )
1022
1032
  ] });
1023
- }), Pr = U.memo(wr), kr = "_wrapper_1ssf2_1", Tr = "_panelContent_1ssf2_6", Nr = "_left_1ssf2_14", Dr = "_right_1ssf2_18", Ar = "_resizable_1ssf2_23", Ir = "_resizeHandle_1ssf2_28", Mr = "_panelMainContent_1ssf2_48", j = {
1024
- wrapper: kr,
1025
- panelContent: Tr,
1026
- left: Nr,
1027
- right: Dr,
1028
- resizable: Ar,
1029
- resizeHandle: Ir,
1030
- panelMainContent: Mr
1031
- }, _t = 200, ae = 150, Ri = w(function({
1032
- children: e,
1033
+ }), Nr = W.memo(kr), Tr = "_wrapper_1ssf2_1", Dr = "_panelContent_1ssf2_6", Ir = "_left_1ssf2_14", Or = "_right_1ssf2_18", Rr = "_resizable_1ssf2_23", zr = "_resizeHandle_1ssf2_28", Ar = "_panelMainContent_1ssf2_48", U = {
1034
+ wrapper: Tr,
1035
+ panelContent: Dr,
1036
+ left: Ir,
1037
+ right: Or,
1038
+ resizable: Rr,
1039
+ resizeHandle: zr,
1040
+ panelMainContent: Ar
1041
+ }, bt = 200, oe = 150, Rs = $(function({
1042
+ children: o,
1033
1043
  showLeft: n,
1034
- leftPanel: o,
1035
- leftMinWidth: i = _t,
1044
+ leftPanel: t,
1045
+ leftMinWidth: s = bt,
1036
1046
  showRight: r,
1037
- rightPanel: l,
1038
- rightMinWidth: s = _t,
1047
+ rightPanel: c,
1048
+ rightMinWidth: a = bt,
1039
1049
  resizeable: d
1040
1050
  }) {
1041
- const c = W(null), h = W(null), [u, g] = k(0), [m, C] = k(), _ = W(null), [f, P] = k(0), [$, T] = k(), O = y(
1042
- (A, B, L) => (G, Ae, Fe, ve) => {
1043
- if (!c.current)
1051
+ const l = H(null), h = H(null), [u, g] = k(0), [f, C] = k(), b = H(null), [m, P] = k(0), [w, N] = k(), A = x(
1052
+ (I, B, V) => (j, Me, ke, Ne) => {
1053
+ if (!l.current)
1044
1054
  return;
1045
- const Q = A + ve.width;
1046
- L(c.current.clientWidth - Q), B(() => Q);
1055
+ const de = I + Ne.width;
1056
+ V(l.current.clientWidth - de), B(() => de);
1047
1057
  },
1048
1058
  []
1049
- ), oe = y(
1050
- (A, B, L, G) => O(u, g, T)(A, B, L, G),
1051
- [O, u]
1052
- ), Le = y(
1053
- (A, B, L, G) => O(f, P, C)(A, B, L, G),
1054
- [O, f]
1055
- ), Ce = y(
1056
- (A, B, L, G, Ae, Fe, ve, Q) => {
1057
- if (!c.current)
1059
+ ), te = x(
1060
+ (I, B, V, j) => A(u, g, N)(I, B, V, j),
1061
+ [A, u]
1062
+ ), Ee = x(
1063
+ (I, B, V, j) => A(m, P, C)(I, B, V, j),
1064
+ [A, m]
1065
+ ), Ce = x(
1066
+ (I, B, V, j, Me, ke, Ne, de) => {
1067
+ if (!l.current)
1058
1068
  return;
1059
- let re = A;
1060
- if (re === 0 && (re = B, L(re)), Fe) {
1061
- const Y = c.current.clientWidth - re;
1062
- Q(Y), Ae > Y && (ve(Y), G(c.current.clientWidth - Y));
1069
+ let Q = I;
1070
+ if (Q === 0 && (Q = B, V(Q)), ke) {
1071
+ const ne = l.current.clientWidth - Q;
1072
+ de(ne), Me > ne && (Ne(ne), j(l.current.clientWidth - ne));
1063
1073
  }
1064
1074
  },
1065
1075
  []
1066
- ), de = y(
1076
+ ), Ye = x(
1067
1077
  () => Ce(
1068
- f,
1069
- s,
1078
+ m,
1079
+ a,
1070
1080
  P,
1071
- T,
1081
+ N,
1072
1082
  u,
1073
1083
  n,
1074
1084
  g,
1075
1085
  C
1076
1086
  ),
1077
- [Ce, u, s, f, n]
1078
- ), Ze = y(
1087
+ [Ce, u, a, m, n]
1088
+ ), le = x(
1079
1089
  () => Ce(
1080
1090
  u,
1081
- i,
1091
+ s,
1082
1092
  g,
1083
1093
  C,
1084
- f,
1094
+ m,
1085
1095
  r,
1086
1096
  P,
1087
- T
1097
+ N
1088
1098
  ),
1089
- [Ce, i, u, f, r]
1090
- ), be = y(
1091
- (A, B) => {
1092
- c.current && A && B(c.current.clientWidth);
1099
+ [Ce, s, u, m, r]
1100
+ ), ve = x(
1101
+ (I, B) => {
1102
+ l.current && I && B(l.current.clientWidth);
1093
1103
  },
1094
1104
  []
1095
- ), et = y(
1096
- () => be(n, C),
1097
- [be, n]
1098
- ), dt = y(
1099
- () => be(r, T),
1100
- [be, r]
1101
- ), Ne = y(() => {
1102
- var A, B, L, G;
1103
- c.current && (C(c.current.clientWidth - (((A = _.current) == null ? void 0 : A.clientWidth) || 0)), T(c.current.clientWidth - (((B = h.current) == null ? void 0 : B.clientWidth) || 0)), g(((L = h.current) == null ? void 0 : L.clientWidth) || 0), P(((G = _.current) == null ? void 0 : G.clientWidth) || 0));
1105
+ ), Ze = x(
1106
+ () => ve(n, C),
1107
+ [ve, n]
1108
+ ), et = x(
1109
+ () => ve(r, N),
1110
+ [ve, r]
1111
+ ), tt = x(() => {
1112
+ var I, B, V, j;
1113
+ l.current && (C(l.current.clientWidth - (((I = b.current) == null ? void 0 : I.clientWidth) || 0)), N(l.current.clientWidth - (((B = h.current) == null ? void 0 : B.clientWidth) || 0)), g(((V = h.current) == null ? void 0 : V.clientWidth) || 0), P(((j = b.current) == null ? void 0 : j.clientWidth) || 0));
1104
1114
  }, []);
1105
- E(() => {
1106
- if (!c.current)
1115
+ M(() => {
1116
+ if (!l.current)
1107
1117
  return;
1108
- const A = new ResizeObserver(Ne);
1109
- return A.observe(c.current), () => {
1110
- A.disconnect();
1118
+ const I = new ResizeObserver(tt);
1119
+ return I.observe(l.current), () => {
1120
+ I.disconnect();
1111
1121
  };
1112
- }, [Ne]);
1113
- const q = M(() => ({
1122
+ }, [tt]);
1123
+ const Be = R(() => ({
1114
1124
  entering: {
1115
1125
  transform: `translateX(-${u}px)`,
1116
1126
  marginRight: `-${u}px`,
1117
1127
  transitionProperty: "transform, margin-right",
1118
- transitionDuration: `${ae}ms`,
1128
+ transitionDuration: `${oe}ms`,
1119
1129
  transitionTimingFunction: "linear"
1120
1130
  },
1121
1131
  entered: {
1122
1132
  transform: "translateX(0)",
1123
1133
  marginRight: 0,
1124
1134
  transitionProperty: "transform, margin-right",
1125
- transitionDuration: `${ae}ms`,
1135
+ transitionDuration: `${oe}ms`,
1126
1136
  transitionTimingFunction: "linear"
1127
1137
  },
1128
1138
  exiting: {
1129
1139
  transform: `translateX(-${u}px)`,
1130
1140
  marginRight: `-${u}px`,
1131
1141
  transitionProperty: "transform, margin-right",
1132
- transitionDuration: `${ae}ms`,
1142
+ transitionDuration: `${oe}ms`,
1133
1143
  transitionTimingFunction: "linear"
1134
1144
  },
1135
1145
  exited: {},
1136
1146
  unmounted: {}
1137
- }), [u]), De = M(() => ({
1147
+ }), [u]), K = R(() => ({
1138
1148
  entering: {
1139
- transform: `translateX(${f}px)`,
1140
- marginLeft: `${-f}px`,
1149
+ transform: `translateX(${m}px)`,
1150
+ marginLeft: `${-m}px`,
1141
1151
  transitionProperty: "transform, margin-left",
1142
- transitionDuration: `${ae}ms`,
1152
+ transitionDuration: `${oe}ms`,
1143
1153
  transitionTimingFunction: "linear"
1144
1154
  },
1145
1155
  entered: {
1146
1156
  transform: "translateX(0)",
1147
1157
  marginLeft: 0,
1148
1158
  transitionProperty: "transform, margin-left",
1149
- transitionDuration: `${ae}ms`,
1159
+ transitionDuration: `${oe}ms`,
1150
1160
  transitionTimingFunction: "linear"
1151
1161
  },
1152
1162
  exiting: {
1153
- transform: `translateX(${f}px)`,
1154
- marginLeft: `${-f}px`,
1163
+ transform: `translateX(${m}px)`,
1164
+ marginLeft: `${-m}px`,
1155
1165
  transitionProperty: "transform, margin-left",
1156
- transitionDuration: `${ae}ms`,
1166
+ transitionDuration: `${oe}ms`,
1157
1167
  transitionTimingFunction: "linear"
1158
1168
  },
1159
1169
  exited: {},
1160
1170
  unmounted: {}
1161
- }), [f]);
1162
- return /* @__PURE__ */ b(
1171
+ }), [m]);
1172
+ return /* @__PURE__ */ v(
1163
1173
  D,
1164
1174
  {
1165
- className: j.wrapper,
1166
- style: { minWidth: `${i + s}px` },
1167
- ref: c,
1175
+ className: U.wrapper,
1176
+ style: { minWidth: `${s + a}px` },
1177
+ ref: l,
1168
1178
  width: "100%",
1169
1179
  height: "100%",
1170
1180
  justify: "center",
1171
1181
  m: "0",
1172
1182
  p: "0",
1173
1183
  children: [
1174
- /* @__PURE__ */ a(
1175
- ft,
1184
+ /* @__PURE__ */ i(
1185
+ mt,
1176
1186
  {
1177
1187
  nodeRef: h,
1178
- timeout: n ? 0 : ae,
1188
+ timeout: n ? 0 : oe,
1179
1189
  in: n,
1180
1190
  unmountOnExit: !0,
1181
- onEntering: Ze,
1182
- onExited: dt,
1183
- children: (A) => /* @__PURE__ */ a(
1184
- V,
1191
+ onEntering: le,
1192
+ onExited: et,
1193
+ children: (I) => /* @__PURE__ */ i(
1194
+ G,
1185
1195
  {
1186
1196
  ref: h,
1187
- className: S(j.panelContent, j.left),
1188
- style: q[A],
1197
+ className: y(U.panelContent, U.left),
1198
+ style: Be[I],
1189
1199
  width: "auto",
1190
1200
  height: "100%",
1191
1201
  m: "0",
1192
1202
  p: "0",
1193
- children: /* @__PURE__ */ a(
1194
- Ye,
1203
+ children: /* @__PURE__ */ i(
1204
+ Qe,
1195
1205
  {
1196
- className: j.resizable,
1206
+ className: U.resizable,
1197
1207
  size: {
1198
1208
  width: u,
1199
1209
  height: "100%"
1200
1210
  },
1201
- onResizeStop: oe,
1211
+ onResizeStop: te,
1202
1212
  enable: { right: (d == null ? void 0 : d.left) !== void 0 ? d.left : !0 },
1203
- minWidth: i,
1204
- maxWidth: m,
1205
- handleClasses: { right: S(j.resizeHandle, j.left) },
1213
+ minWidth: s,
1214
+ maxWidth: f,
1215
+ handleClasses: { right: y(U.resizeHandle, U.left) },
1206
1216
  handleComponent: {
1207
- right: /* @__PURE__ */ a(Qe, { height: "14px", width: "14px" })
1217
+ right: /* @__PURE__ */ i(Je, { height: "14px", width: "14px" })
1208
1218
  },
1209
- children: o
1219
+ children: t
1210
1220
  }
1211
1221
  )
1212
1222
  }
1213
1223
  )
1214
1224
  }
1215
1225
  ),
1216
- /* @__PURE__ */ a("div", { className: j.panelMainContent, children: e }),
1217
- /* @__PURE__ */ a(
1218
- ft,
1226
+ /* @__PURE__ */ i("div", { className: U.panelMainContent, children: o }),
1227
+ /* @__PURE__ */ i(
1228
+ mt,
1219
1229
  {
1220
- nodeRef: _,
1221
- timeout: r ? 0 : ae,
1230
+ nodeRef: b,
1231
+ timeout: r ? 0 : oe,
1222
1232
  in: r,
1223
1233
  unmountOnExit: !0,
1224
- onEntering: de,
1225
- onExited: et,
1226
- children: (A) => /* @__PURE__ */ a(
1227
- V,
1234
+ onEntering: Ye,
1235
+ onExited: Ze,
1236
+ children: (I) => /* @__PURE__ */ i(
1237
+ G,
1228
1238
  {
1229
- ref: _,
1230
- className: S(j.panelContent, j.right),
1231
- style: De[A],
1239
+ ref: b,
1240
+ className: y(U.panelContent, U.right),
1241
+ style: K[I],
1232
1242
  width: "auto",
1233
1243
  height: "100%",
1234
1244
  m: "0",
1235
1245
  p: "0",
1236
- children: /* @__PURE__ */ a(
1237
- Ye,
1246
+ children: /* @__PURE__ */ i(
1247
+ Qe,
1238
1248
  {
1239
- className: j.resizable,
1240
- size: { width: f, height: "100%" },
1241
- onResizeStop: Le,
1249
+ className: U.resizable,
1250
+ size: { width: m, height: "100%" },
1251
+ onResizeStop: Ee,
1242
1252
  enable: { left: (d == null ? void 0 : d.right) !== void 0 ? d.right : !0 },
1243
- minWidth: s,
1244
- maxWidth: $,
1245
- handleClasses: { left: S(j.resizeHandle, j.right) },
1246
- handleComponent: { left: /* @__PURE__ */ a(Qe, { height: "14px", width: "14px" }) },
1247
- children: l
1253
+ minWidth: a,
1254
+ maxWidth: w,
1255
+ handleClasses: { left: y(U.resizeHandle, U.right) },
1256
+ handleComponent: { left: /* @__PURE__ */ i(Je, { height: "14px", width: "14px" }) },
1257
+ children: c
1248
1258
  }
1249
1259
  )
1250
1260
  }
@@ -1254,159 +1264,159 @@ const to = {
1254
1264
  ]
1255
1265
  }
1256
1266
  );
1257
- }), Rr = "_multiPagePopover_1w3ey_1", Or = "_light_1w3ey_15", zr = "_dark_1w3ey_20", Er = "_pageTitle_1w3ey_28", Br = "_buttonContainer_1w3ey_33", Lr = "_optionsButtonContainer_1w3ey_38", Fr = "_optionsButton_1w3ey_38", we = {
1258
- multiPagePopover: Rr,
1259
- light: Or,
1260
- dark: zr,
1261
- pageTitle: Er,
1262
- buttonContainer: Br,
1267
+ }), Er = "_multiPagePopover_spfw7_1", Br = "_pageTitle_spfw7_12", Mr = "_buttonContainer_spfw7_17", Lr = "_optionsButtonContainer_spfw7_22", Wr = "_optionsButton_spfw7_22", Xe = {
1268
+ multiPagePopover: Er,
1269
+ pageTitle: Br,
1270
+ buttonContainer: Mr,
1263
1271
  optionsButtonContainer: Lr,
1264
- optionsButton: Fr
1272
+ optionsButton: Wr
1265
1273
  };
1266
- function Ot(t, e, n, o = 0) {
1267
- if (!t.options)
1268
- return t.content || /* @__PURE__ */ a(X, {});
1269
- const i = t.options.map((r, l) => /* @__PURE__ */ a(
1270
- ke,
1274
+ function Et(e, o, n, t = 0) {
1275
+ if (!e.options)
1276
+ return e.content || /* @__PURE__ */ i(J, {});
1277
+ const s = e.options.map((r, c) => /* @__PURE__ */ i(
1278
+ $e,
1271
1279
  {
1272
- className: S(we.optionsButton, r.buttonClassName),
1280
+ className: y(Xe.optionsButton, r.buttonClassName),
1273
1281
  variant: "ghost",
1274
1282
  radius: "large",
1275
1283
  style: {
1276
1284
  width: n === "vertical" ? "100%" : "auto"
1277
1285
  },
1278
- onClick: r.onClick || (() => e(
1279
- Ot(r.page || {}, e, n, o + 1)
1286
+ severity: "info",
1287
+ highContrast: !0,
1288
+ onClick: r.onClick || (() => o(
1289
+ Et(r.page || {}, o, n, t + 1)
1280
1290
  )),
1281
1291
  children: r.label
1282
1292
  },
1283
- `${r.value}-page-${o}-button-${l}`
1293
+ `${r.value}-page-${t}-button-${c}`
1284
1294
  ));
1285
- return /* @__PURE__ */ b(X, { children: [
1286
- t.title && /* @__PURE__ */ a("div", { className: we.pageTitle, children: t.title }),
1287
- t.content,
1288
- /* @__PURE__ */ a(
1295
+ return /* @__PURE__ */ v(J, { children: [
1296
+ e.title && /* @__PURE__ */ i("div", { className: Xe.pageTitle, children: e.title }),
1297
+ e.content,
1298
+ /* @__PURE__ */ i(
1289
1299
  "div",
1290
1300
  {
1291
- className: S(we.optionsButtonContainer, t.buttonsContainerClassName),
1301
+ className: y(Xe.optionsButtonContainer, e.buttonsContainerClassName),
1292
1302
  style: {
1293
1303
  flexDirection: n === "vertical" ? "column" : "row"
1294
1304
  },
1295
- children: i
1305
+ children: s
1296
1306
  }
1297
1307
  )
1298
1308
  ] });
1299
1309
  }
1300
- const Ur = x(function({ page: e, className: n, direction: o = "vertical", color: i = "light", ...r }, l) {
1301
- const [s, d] = k(void 0), c = y(() => {
1302
- d(Ot(e, d, o, 0));
1303
- }, [o, e]), h = y((u) => s, [s]);
1304
- return /* @__PURE__ */ a(
1305
- Pr,
1310
+ const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }, r) {
1311
+ const [c, a] = k(void 0), d = x(() => {
1312
+ a(Et(o, a, t, 0));
1313
+ }, [t, o]), l = x((h) => c, [c]);
1314
+ return /* @__PURE__ */ i(
1315
+ Nr,
1306
1316
  {
1307
- className: S(we.multiPagePopover, i === "light" ? we.light : we.dark, n),
1308
- ref: l,
1309
- onOpenAutoFocus: c,
1310
- onCloseAutoFocus: c,
1311
- ...r,
1312
- children: (u) => h(u)
1317
+ className: y(Xe.multiPagePopover, n),
1318
+ ref: r,
1319
+ onOpenAutoFocus: d,
1320
+ onCloseAutoFocus: d,
1321
+ ...s,
1322
+ children: (h) => l(h)
1313
1323
  }
1314
1324
  );
1315
- }), Wr = U.memo(Ur), Hr = "_charCount_1lz28_1", jr = "_ghost_1lz28_5", $t = {
1316
- charCount: Hr,
1317
- ghost: jr
1318
- }, Vr = x(function({
1319
- className: e,
1325
+ }), jr = W.memo(Hr), Fr = "_charCount_1lz28_1", Vr = "_ghost_1lz28_5", wt = {
1326
+ charCount: Fr,
1327
+ ghost: Vr
1328
+ }, Ur = S(function({
1329
+ className: o,
1320
1330
  showInputLength: n,
1321
- inputLengthTemplate: o,
1322
- value: i,
1331
+ inputLengthTemplate: t,
1332
+ value: s,
1323
1333
  severity: r = "primary",
1324
- resize: l,
1325
- variant: s,
1334
+ resize: c,
1335
+ variant: a,
1326
1336
  ...d
1327
- }, c) {
1328
- const h = z(r), u = z("info"), g = n || n === void 0 && (d.maxLength !== void 0 || d.minLength !== void 0), m = i !== void 0 ? i.toString() : "", C = M(() => {
1329
- if (o) {
1330
- let _ = o.replace("{current}", m.length.toString());
1331
- return d.minLength !== void 0 && (_ = _.replace("{min}", d.minLength.toString())), d.maxLength !== void 0 && (_ = _.replace("{max}", d.maxLength.toString())), _;
1337
+ }, l) {
1338
+ const h = E(r), u = E("info"), g = n || n === void 0 && (d.maxLength !== void 0 || d.minLength !== void 0), f = s !== void 0 ? s.toString() : "", C = R(() => {
1339
+ if (t) {
1340
+ let b = t.replace("{current}", f.length.toString());
1341
+ return d.minLength !== void 0 && (b = b.replace("{min}", d.minLength.toString())), d.maxLength !== void 0 && (b = b.replace("{max}", d.maxLength.toString())), b;
1332
1342
  }
1333
- return m.length;
1334
- }, [o, d.maxLength, d.minLength, m.length]);
1335
- return /* @__PURE__ */ b(X, { children: [
1336
- /* @__PURE__ */ a(
1337
- wn,
1343
+ return f.length;
1344
+ }, [t, d.maxLength, d.minLength, f.length]);
1345
+ return /* @__PURE__ */ v(J, { children: [
1346
+ /* @__PURE__ */ i(
1347
+ Sn,
1338
1348
  {
1339
- className: S("overmap-textarea", e, {
1340
- [$t.ghost]: s === "ghost"
1349
+ className: y("overmap-textarea", o, {
1350
+ [wt.ghost]: a === "ghost"
1341
1351
  }),
1342
- style: { resize: l },
1343
- variant: s !== "ghost" ? s : void 0,
1344
- ref: c,
1345
- value: i,
1352
+ style: { resize: c },
1353
+ variant: a !== "ghost" ? a : void 0,
1354
+ ref: l,
1355
+ value: s,
1346
1356
  color: h,
1347
1357
  ...d
1348
1358
  }
1349
1359
  ),
1350
- g && /* @__PURE__ */ a(ze, { as: "p", className: $t.charCount, color: u, align: "right", children: C })
1360
+ g && /* @__PURE__ */ i(Re, { as: "p", className: wt.charCount, color: u, align: "right", children: C })
1351
1361
  ] });
1352
- }), Oi = w(Vr), qr = x(function({
1362
+ }), zs = $(Ur), Gr = S(function({
1353
1363
  // ToggleGroup Primitive Props
1354
- loop: e,
1364
+ loop: o,
1355
1365
  type: n,
1356
- rovingFocus: o,
1357
- value: i,
1366
+ rovingFocus: t,
1367
+ value: s,
1358
1368
  onValueChange: r,
1359
- defaultValue: l,
1360
- disabled: s,
1369
+ defaultValue: c,
1370
+ disabled: a,
1361
1371
  items: d,
1362
1372
  // ButtonGroup Props
1363
- className: c,
1373
+ className: l,
1364
1374
  direction: h = "row",
1365
1375
  ...u
1366
1376
  }, g) {
1367
- return /* @__PURE__ */ a(
1368
- Mn,
1377
+ return /* @__PURE__ */ i(
1378
+ On,
1369
1379
  {
1370
1380
  type: n,
1371
- className: S("overmap-toggle-group", c),
1381
+ className: y("overmap-toggle-group", l),
1372
1382
  ref: g,
1373
- value: i,
1383
+ value: s,
1374
1384
  onValueChange: r,
1375
- disabled: s,
1385
+ disabled: a,
1376
1386
  orientation: h === "column" ? "vertical" : "horizontal",
1377
- loop: e,
1378
- rovingFocus: o,
1379
- defaultValue: l,
1387
+ loop: o,
1388
+ rovingFocus: t,
1389
+ defaultValue: c,
1380
1390
  asChild: !0,
1381
- children: /* @__PURE__ */ a(It, { direction: h, ...u, children: d.map(({ children: m, ...C }) => /* @__PURE__ */ H(Rn, { asChild: !0, ...C, key: C.value }, /* @__PURE__ */ a(
1382
- te,
1391
+ children: /* @__PURE__ */ i(Rt, { direction: h, ...u, children: d.map(({ children: f, ...C }) => /* @__PURE__ */ F(Rn, { asChild: !0, ...C, key: C.value }, /* @__PURE__ */ i(
1392
+ re,
1383
1393
  {
1384
- className: S("overmap-toggle-group-button"),
1394
+ className: y("overmap-toggle-group-button"),
1385
1395
  "aria-label": C.value,
1386
- variant: C.value === i ? "solid" : "soft",
1387
- children: m
1396
+ variant: C.value === s ? "solid" : "soft",
1397
+ children: f
1388
1398
  }
1389
1399
  ))) })
1390
1400
  }
1391
1401
  );
1392
- }), zi = w(qr), Gr = {
1402
+ }), As = $(Gr), Kr = {
1393
1403
  default: "_default_xqvoc_1"
1394
- }, Kr = w(
1395
- x(({ className: t, minContentGap: e = "2", children: n, ...o }, i) => /* @__PURE__ */ a(
1396
- On,
1404
+ }, qr = $(
1405
+ S(({ className: e, minContentGap: o = "2", children: n, ...t }, s) => /* @__PURE__ */ i(
1406
+ zn,
1397
1407
  {
1398
- className: S(t, "overmap-toolbar", Gr.default),
1399
- ref: i,
1408
+ className: y(e, "overmap-toolbar", Kr.default),
1409
+ ref: s,
1400
1410
  asChild: !0,
1401
- ...o,
1402
- children: /* @__PURE__ */ a(J, { grow: "1", width: "100%", height: "max-content", align: "center", gap: e, wrap: "nowrap", children: n })
1411
+ ...t,
1412
+ children: /* @__PURE__ */ i(X, { grow: "1", width: "100%", height: "max-content", align: "center", gap: o, wrap: "nowrap", children: n })
1403
1413
  }
1404
1414
  ))
1405
- ), Jr = w(
1406
- x(({ children: t, gap: e = "2" }, n) => /* @__PURE__ */ a(J, { ref: n, grow: "1", width: "max-content", height: "100%", align: "center", gap: e, children: t }))
1407
- ), Xr = w(
1408
- x(({ children: t, gap: e }, n) => /* @__PURE__ */ a(
1409
- J,
1415
+ ), Xr = $(
1416
+ S(({ children: e, gap: o = "2" }, n) => /* @__PURE__ */ i(X, { ref: n, grow: "1", width: "max-content", height: "100%", align: "center", gap: o, children: e }))
1417
+ ), Jr = $(
1418
+ S(({ children: e, gap: o }, n) => /* @__PURE__ */ i(
1419
+ X,
1410
1420
  {
1411
1421
  ref: n,
1412
1422
  grow: "1",
@@ -1414,340 +1424,340 @@ const Ur = x(function({ page: e, className: n, direction: o = "vertical", color:
1414
1424
  direction: "row-reverse",
1415
1425
  height: "100%",
1416
1426
  align: "center",
1417
- gap: e || "2",
1418
- children: t
1427
+ gap: o || "2",
1428
+ children: e
1419
1429
  }
1420
1430
  ))
1421
- ), Ei = {
1422
- Root: Kr,
1423
- LeftContent: Jr,
1424
- RightContent: Xr
1425
- }, Qr = "_ToastViewport_1i6bp_1", Yr = "_actionButton_1i6bp_20", Zr = "_ToastRoot_1i6bp_24", ea = "_slideIn_1i6bp_1", ta = "_swipeOut_1i6bp_1", rt = {
1431
+ ), Es = {
1432
+ Root: qr,
1433
+ LeftContent: Xr,
1434
+ RightContent: Jr
1435
+ }, Qr = "_ToastViewport_1i6bp_1", Yr = "_actionButton_1i6bp_20", Zr = "_ToastRoot_1i6bp_24", ei = "_slideIn_1i6bp_1", ti = "_swipeOut_1i6bp_1", it = {
1426
1436
  ToastViewport: Qr,
1427
1437
  actionButton: Yr,
1428
1438
  ToastRoot: Zr,
1429
- slideIn: ea,
1430
- swipeOut: ta
1431
- }, na = x(function({ title: e, description: n, icon: o, severity: i = "primary", size: r, onClose: l, sensitivity: s, action: d, ...c }, h) {
1432
- const [u, g] = k(!0), m = z(i), C = y(
1433
- (_) => {
1434
- !_ && l && l(), g(_);
1439
+ slideIn: ei,
1440
+ swipeOut: ti
1441
+ }, ni = S(function({ title: o, description: n, icon: t, severity: s = "primary", size: r, onClose: c, sensitivity: a, action: d, ...l }, h) {
1442
+ const [u, g] = k(!0), f = E(s), C = x(
1443
+ (b) => {
1444
+ !b && c && c(), g(b);
1435
1445
  },
1436
- [l]
1446
+ [c]
1437
1447
  );
1438
- return /* @__PURE__ */ a(Me.Root, { asChild: !0, ref: h, ...c, open: u, type: s, onOpenChange: C, children: /* @__PURE__ */ a(je.Root, { className: rt.ToastRoot, variant: "surface", color: m, size: r, children: /* @__PURE__ */ b(D, { width: "100%", align: "center", gap: "4", justify: "between", children: [
1439
- /* @__PURE__ */ b(D, { align: "center", gap: "3", children: [
1440
- /* @__PURE__ */ a(je.Icon, { children: o }),
1441
- /* @__PURE__ */ b(D, { direction: "column", gap: "2", children: [
1442
- /* @__PURE__ */ b(D, { direction: "column", gap: "0", children: [
1443
- /* @__PURE__ */ a(Me.Title, { asChild: !0, children: /* @__PURE__ */ a(je.Text, { size: "3", weight: "medium", children: e }) }),
1444
- /* @__PURE__ */ a(Me.Description, { asChild: !0, children: /* @__PURE__ */ a(je.Text, { children: n }) })
1448
+ return /* @__PURE__ */ i(De.Root, { asChild: !0, ref: h, ...l, open: u, type: a, onOpenChange: C, children: /* @__PURE__ */ i(Fe.Root, { className: it.ToastRoot, variant: "surface", color: f, size: r, children: /* @__PURE__ */ v(D, { width: "100%", align: "center", gap: "4", justify: "between", children: [
1449
+ /* @__PURE__ */ v(D, { align: "center", gap: "3", children: [
1450
+ /* @__PURE__ */ i(Fe.Icon, { children: t }),
1451
+ /* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
1452
+ /* @__PURE__ */ v(D, { direction: "column", gap: "0", children: [
1453
+ /* @__PURE__ */ i(De.Title, { asChild: !0, children: /* @__PURE__ */ i(Fe.Text, { size: "3", weight: "medium", children: o }) }),
1454
+ /* @__PURE__ */ i(De.Description, { asChild: !0, children: /* @__PURE__ */ i(Fe.Text, { children: n }) })
1445
1455
  ] }),
1446
- d && /* @__PURE__ */ a(Me.Action, { className: rt.actionButton, altText: d.altText, asChild: !0, children: d.content })
1456
+ d && /* @__PURE__ */ i(De.Action, { className: it.actionButton, altText: d.altText, asChild: !0, children: d.content })
1447
1457
  ] })
1448
1458
  ] }),
1449
- /* @__PURE__ */ a(Me.Close, { asChild: !0, children: /* @__PURE__ */ a(te, { "aria-label": "Close", variant: "ghost", severity: i, children: /* @__PURE__ */ a(wt, {}) }) })
1459
+ /* @__PURE__ */ i(De.Close, { asChild: !0, children: /* @__PURE__ */ i(re, { "aria-label": "Close", variant: "ghost", severity: s, children: /* @__PURE__ */ i($t, {}) }) })
1450
1460
  ] }) }) });
1451
- }), oa = w(na), zt = Pe({}), Bi = () => {
1452
- const t = Ee(zt);
1453
- if (!t)
1461
+ }), oi = $(ni), Bt = Se({}), Bs = () => {
1462
+ const e = ze(Bt);
1463
+ if (!e)
1454
1464
  throw new Error("useToast must be used within a ToastProvider");
1455
- return t;
1456
- }, ra = 240 / 60, St = 5e3, aa = (t) => {
1457
- if (t.duration && t.duration >= St)
1458
- return t.duration;
1459
- const e = t.severity === "danger" ? 1.5 : 1, n = t.description.split(" ").length + t.title.split(" ").length;
1460
- return (St + n / ra) * e;
1465
+ return e;
1466
+ }, ri = 240 / 60, yt = 5e3, ii = (e) => {
1467
+ if (e.duration && e.duration >= yt)
1468
+ return e.duration;
1469
+ const o = e.severity === "danger" ? 1.5 : 1, n = e.description.split(" ").length + e.title.split(" ").length;
1470
+ return (yt + n / ri) * o;
1461
1471
  };
1462
- let ia;
1463
- const Li = w(function({
1464
- children: e,
1472
+ let si;
1473
+ const Ms = $(function({
1474
+ children: o,
1465
1475
  // Use this class to change where the viewport for the toasts should be
1466
1476
  className: n,
1467
- hotkey: o,
1468
- ...i
1477
+ hotkey: t,
1478
+ ...s
1469
1479
  }) {
1470
- const [r, l] = k([]), s = y((c, h, u) => {
1471
- l((g) => {
1472
- const m = g.find((C) => C.id === c);
1473
- return m && h === 0 && clearTimeout(m.timeout), g.filter((C) => C.id !== c);
1480
+ const [r, c] = k([]), a = x((l, h, u) => {
1481
+ c((g) => {
1482
+ const f = g.find((C) => C.id === l);
1483
+ return f && h === 0 && clearTimeout(f.timeout), g.filter((C) => C.id !== l);
1474
1484
  }), u && u();
1475
- }, []), d = M(() => {
1476
- let c = 0;
1477
- const h = (f) => {
1478
- const P = aa(f), $ = c.toString();
1479
- c += 1;
1480
- const T = setTimeout(() => s($, 1, f.onClose), P);
1481
- l((O) => [...O, { ...f, timeout: T, duration: P, id: $ }]);
1482
- }, u = (f) => h({ ...f, severity: "primary" }), g = (f) => h({ ...f, severity: "success" }), m = (f) => h({ ...f, severity: "danger" }), C = (f) => h({ ...f, severity: "info" }), _ = (f) => h({ ...f, severity: "warning" });
1483
- return ia = h, {
1485
+ }, []), d = R(() => {
1486
+ let l = 0;
1487
+ const h = (m) => {
1488
+ const P = ii(m), w = l.toString();
1489
+ l += 1;
1490
+ const N = setTimeout(() => a(w, 1, m.onClose), P);
1491
+ c((A) => [...A, { ...m, timeout: N, duration: P, id: w }]);
1492
+ }, u = (m) => h({ ...m, severity: "primary" }), g = (m) => h({ ...m, severity: "success" }), f = (m) => h({ ...m, severity: "danger" }), C = (m) => h({ ...m, severity: "info" }), b = (m) => h({ ...m, severity: "warning" });
1493
+ return si = h, {
1484
1494
  showToast: h,
1485
1495
  showPrimary: u,
1486
1496
  showSuccess: g,
1487
- showError: m,
1497
+ showError: f,
1488
1498
  showInfo: C,
1489
- showWarning: _
1499
+ showWarning: b
1490
1500
  };
1491
- }, [s]);
1492
- return E(() => () => {
1493
- for (const { timeout: c } of r)
1494
- clearTimeout(c);
1495
- }, []), /* @__PURE__ */ a(zt.Provider, { value: d, children: /* @__PURE__ */ b(zn, { ...i, children: [
1496
- e,
1497
- /* @__PURE__ */ a(En, { className: S(n, rt.ToastViewport), hotkey: o }),
1498
- r.map(({ id: c, onClose: h, ...u }) => /* @__PURE__ */ a(oa, { ...u, onClose: () => s(c, 0, h) }, c))
1501
+ }, [a]);
1502
+ return M(() => () => {
1503
+ for (const { timeout: l } of r)
1504
+ clearTimeout(l);
1505
+ }, []), /* @__PURE__ */ i(Bt.Provider, { value: d, children: /* @__PURE__ */ v(An, { ...s, children: [
1506
+ o,
1507
+ /* @__PURE__ */ i(En, { className: y(n, it.ToastViewport), hotkey: t }),
1508
+ r.map(({ id: l, onClose: h, ...u }) => /* @__PURE__ */ i(oi, { ...u, onClose: () => a(l, 0, h) }, l))
1499
1509
  ] }) });
1500
- }), sa = {
1510
+ }), ai = {
1501
1511
  default: "_default_1odpt_1"
1502
- }, Fi = w(
1503
- x(({ className: t, children: e, content: n, ...o }, i) => /* @__PURE__ */ a(
1504
- Pn,
1512
+ }, Ls = $(
1513
+ S(({ className: e, children: o, content: n, ...t }, s) => /* @__PURE__ */ i(
1514
+ $n,
1505
1515
  {
1506
- className: S("overmap-tooltip", t, sa.default),
1507
- ref: i,
1508
- content: /* @__PURE__ */ a(D, { align: "center", gap: "1", width: "max-content", height: "max-content", justify: "center", children: n }),
1509
- ...o,
1510
- children: e
1516
+ className: y("overmap-tooltip", e, ai.default),
1517
+ ref: s,
1518
+ content: /* @__PURE__ */ i(D, { align: "center", gap: "1", width: "max-content", height: "max-content", justify: "center", children: n }),
1519
+ ...t,
1520
+ children: o
1511
1521
  }
1512
1522
  ))
1513
- ), la = "_noWrap_1wpa5_1", ca = {
1514
- noWrap: la
1515
- }, ot = w(
1516
- x(({ className: t, noWrap: e, severity: n, as: o, ...i }, r) => {
1517
- const l = z(n);
1518
- return /* @__PURE__ */ a(
1519
- ze,
1523
+ ), ci = "_noWrap_1wpa5_1", li = {
1524
+ noWrap: ci
1525
+ }, rt = $(
1526
+ S(({ className: e, noWrap: o, severity: n, as: t, ...s }, r) => {
1527
+ const c = E(n);
1528
+ return /* @__PURE__ */ i(
1529
+ Re,
1520
1530
  {
1521
1531
  ref: r,
1522
- as: o,
1523
- className: S(t, { [ca.noWrap]: e }),
1524
- color: l,
1525
- ...i
1532
+ as: t,
1533
+ className: y(e, { [li.noWrap]: o }),
1534
+ color: c,
1535
+ ...s
1526
1536
  }
1527
1537
  );
1528
1538
  })
1529
1539
  );
1530
- const Ui = w(
1531
- x((t, e) => {
1532
- const { panelBackground: n = "solid", radius: o = "full", ...i } = t;
1533
- return /* @__PURE__ */ a(kn, { panelBackground: n, radius: o, ref: e, ...i });
1540
+ const Ws = $(
1541
+ S((e, o) => {
1542
+ const { panelBackground: n = "solid", radius: t = "full", ...s } = e;
1543
+ return /* @__PURE__ */ i(Pn, { panelBackground: n, radius: t, ref: o, ...s });
1534
1544
  })
1535
1545
  );
1536
- function le() {
1537
- return le = Object.assign ? Object.assign.bind() : function(t) {
1538
- for (var e = 1; e < arguments.length; e++) {
1539
- var n = arguments[e];
1540
- for (var o in n)
1541
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
1546
+ function ae() {
1547
+ return ae = Object.assign ? Object.assign.bind() : function(e) {
1548
+ for (var o = 1; o < arguments.length; o++) {
1549
+ var n = arguments[o];
1550
+ for (var t in n)
1551
+ Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
1542
1552
  }
1543
- return t;
1544
- }, le.apply(this, arguments);
1553
+ return e;
1554
+ }, ae.apply(this, arguments);
1545
1555
  }
1546
- function da(t, e) {
1547
- typeof t == "function" ? t(e) : t != null && (t.current = e);
1556
+ function di(e, o) {
1557
+ typeof e == "function" ? e(o) : e != null && (e.current = o);
1548
1558
  }
1549
- function Et(...t) {
1550
- return (e) => t.forEach(
1551
- (n) => da(n, e)
1559
+ function Mt(...e) {
1560
+ return (o) => e.forEach(
1561
+ (n) => di(n, o)
1552
1562
  );
1553
1563
  }
1554
- function Bt(...t) {
1555
- return y(Et(...t), t);
1564
+ function Lt(...e) {
1565
+ return x(Mt(...e), e);
1556
1566
  }
1557
- function ua(t, e = []) {
1567
+ function ui(e, o = []) {
1558
1568
  let n = [];
1559
- function o(r, l) {
1560
- const s = /* @__PURE__ */ Pe(l), d = n.length;
1569
+ function t(r, c) {
1570
+ const a = /* @__PURE__ */ Se(c), d = n.length;
1561
1571
  n = [
1562
1572
  ...n,
1563
- l
1573
+ c
1564
1574
  ];
1565
- function c(u) {
1566
- const { scope: g, children: m, ...C } = u, _ = (g == null ? void 0 : g[t][d]) || s, f = M(
1575
+ function l(u) {
1576
+ const { scope: g, children: f, ...C } = u, b = (g == null ? void 0 : g[e][d]) || a, m = R(
1567
1577
  () => C,
1568
1578
  Object.values(C)
1569
1579
  );
1570
- return /* @__PURE__ */ H(_.Provider, {
1571
- value: f
1572
- }, m);
1580
+ return /* @__PURE__ */ F(b.Provider, {
1581
+ value: m
1582
+ }, f);
1573
1583
  }
1574
1584
  function h(u, g) {
1575
- const m = (g == null ? void 0 : g[t][d]) || s, C = Ee(m);
1585
+ const f = (g == null ? void 0 : g[e][d]) || a, C = ze(f);
1576
1586
  if (C)
1577
1587
  return C;
1578
- if (l !== void 0)
1579
- return l;
1588
+ if (c !== void 0)
1589
+ return c;
1580
1590
  throw new Error(`\`${u}\` must be used within \`${r}\``);
1581
1591
  }
1582
- return c.displayName = r + "Provider", [
1583
- c,
1592
+ return l.displayName = r + "Provider", [
1593
+ l,
1584
1594
  h
1585
1595
  ];
1586
1596
  }
1587
- const i = () => {
1588
- const r = n.map((l) => /* @__PURE__ */ Pe(l));
1589
- return function(s) {
1590
- const d = (s == null ? void 0 : s[t]) || r;
1591
- return M(
1597
+ const s = () => {
1598
+ const r = n.map((c) => /* @__PURE__ */ Se(c));
1599
+ return function(a) {
1600
+ const d = (a == null ? void 0 : a[e]) || r;
1601
+ return R(
1592
1602
  () => ({
1593
- [`__scope${t}`]: {
1594
- ...s,
1595
- [t]: d
1603
+ [`__scope${e}`]: {
1604
+ ...a,
1605
+ [e]: d
1596
1606
  }
1597
1607
  }),
1598
1608
  [
1599
- s,
1609
+ a,
1600
1610
  d
1601
1611
  ]
1602
1612
  );
1603
1613
  };
1604
1614
  };
1605
- return i.scopeName = t, [
1606
- o,
1607
- ha(i, ...e)
1615
+ return s.scopeName = e, [
1616
+ t,
1617
+ hi(s, ...o)
1608
1618
  ];
1609
1619
  }
1610
- function ha(...t) {
1611
- const e = t[0];
1612
- if (t.length === 1)
1613
- return e;
1620
+ function hi(...e) {
1621
+ const o = e[0];
1622
+ if (e.length === 1)
1623
+ return o;
1614
1624
  const n = () => {
1615
- const o = t.map(
1616
- (i) => ({
1617
- useScope: i(),
1618
- scopeName: i.scopeName
1625
+ const t = e.map(
1626
+ (s) => ({
1627
+ useScope: s(),
1628
+ scopeName: s.scopeName
1619
1629
  })
1620
1630
  );
1621
1631
  return function(r) {
1622
- const l = o.reduce((s, { useScope: d, scopeName: c }) => {
1623
- const u = d(r)[`__scope${c}`];
1632
+ const c = t.reduce((a, { useScope: d, scopeName: l }) => {
1633
+ const u = d(r)[`__scope${l}`];
1624
1634
  return {
1625
- ...s,
1635
+ ...a,
1626
1636
  ...u
1627
1637
  };
1628
1638
  }, {});
1629
- return M(
1639
+ return R(
1630
1640
  () => ({
1631
- [`__scope${e.scopeName}`]: l
1641
+ [`__scope${o.scopeName}`]: c
1632
1642
  }),
1633
1643
  [
1634
- l
1644
+ c
1635
1645
  ]
1636
1646
  );
1637
1647
  };
1638
1648
  };
1639
- return n.scopeName = e.scopeName, n;
1649
+ return n.scopeName = o.scopeName, n;
1640
1650
  }
1641
- function yt(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
1642
- return function(i) {
1643
- if (t == null || t(i), n === !1 || !i.defaultPrevented)
1644
- return e == null ? void 0 : e(i);
1651
+ function xt(e, o, { checkForDefaultPrevented: n = !0 } = {}) {
1652
+ return function(s) {
1653
+ if (e == null || e(s), n === !1 || !s.defaultPrevented)
1654
+ return o == null ? void 0 : o(s);
1645
1655
  };
1646
1656
  }
1647
- function Lt(t) {
1648
- const e = W(t);
1649
- return E(() => {
1650
- e.current = t;
1651
- }), M(
1657
+ function Wt(e) {
1658
+ const o = H(e);
1659
+ return M(() => {
1660
+ o.current = e;
1661
+ }), R(
1652
1662
  () => (...n) => {
1653
- var o;
1654
- return (o = e.current) === null || o === void 0 ? void 0 : o.call(e, ...n);
1663
+ var t;
1664
+ return (t = o.current) === null || t === void 0 ? void 0 : t.call(o, ...n);
1655
1665
  },
1656
1666
  []
1657
1667
  );
1658
1668
  }
1659
- function pa({ prop: t, defaultProp: e, onChange: n = () => {
1669
+ function pi({ prop: e, defaultProp: o, onChange: n = () => {
1660
1670
  } }) {
1661
- const [o, i] = ma({
1662
- defaultProp: e,
1671
+ const [t, s] = fi({
1672
+ defaultProp: o,
1663
1673
  onChange: n
1664
- }), r = t !== void 0, l = r ? t : o, s = Lt(n), d = y((c) => {
1674
+ }), r = e !== void 0, c = r ? e : t, a = Wt(n), d = x((l) => {
1665
1675
  if (r) {
1666
- const u = typeof c == "function" ? c(t) : c;
1667
- u !== t && s(u);
1676
+ const u = typeof l == "function" ? l(e) : l;
1677
+ u !== e && a(u);
1668
1678
  } else
1669
- i(c);
1679
+ s(l);
1670
1680
  }, [
1671
1681
  r,
1672
- t,
1673
- i,
1674
- s
1682
+ e,
1683
+ s,
1684
+ a
1675
1685
  ]);
1676
1686
  return [
1677
- l,
1687
+ c,
1678
1688
  d
1679
1689
  ];
1680
1690
  }
1681
- function ma({ defaultProp: t, onChange: e }) {
1682
- const n = k(t), [o] = n, i = W(o), r = Lt(e);
1683
- return E(() => {
1684
- i.current !== o && (r(o), i.current = o);
1691
+ function fi({ defaultProp: e, onChange: o }) {
1692
+ const n = k(e), [t] = n, s = H(t), r = Wt(o);
1693
+ return M(() => {
1694
+ s.current !== t && (r(t), s.current = t);
1685
1695
  }, [
1686
- o,
1687
- i,
1696
+ t,
1697
+ s,
1688
1698
  r
1689
1699
  ]), n;
1690
1700
  }
1691
- function fa(t) {
1692
- const e = W({
1693
- value: t,
1694
- previous: t
1701
+ function mi(e) {
1702
+ const o = H({
1703
+ value: e,
1704
+ previous: e
1695
1705
  });
1696
- return M(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [
1697
- t
1706
+ return R(() => (o.current.value !== e && (o.current.previous = o.current.value, o.current.value = e), o.current.previous), [
1707
+ e
1698
1708
  ]);
1699
1709
  }
1700
- const at = globalThis != null && globalThis.document ? st : () => {
1710
+ const st = globalThis != null && globalThis.document ? ct : () => {
1701
1711
  };
1702
- function ga(t) {
1703
- const [e, n] = k(void 0);
1704
- return at(() => {
1705
- if (t) {
1712
+ function gi(e) {
1713
+ const [o, n] = k(void 0);
1714
+ return st(() => {
1715
+ if (e) {
1706
1716
  n({
1707
- width: t.offsetWidth,
1708
- height: t.offsetHeight
1717
+ width: e.offsetWidth,
1718
+ height: e.offsetHeight
1709
1719
  });
1710
- const o = new ResizeObserver((i) => {
1711
- if (!Array.isArray(i) || !i.length)
1720
+ const t = new ResizeObserver((s) => {
1721
+ if (!Array.isArray(s) || !s.length)
1712
1722
  return;
1713
- const r = i[0];
1714
- let l, s;
1723
+ const r = s[0];
1724
+ let c, a;
1715
1725
  if ("borderBoxSize" in r) {
1716
- const d = r.borderBoxSize, c = Array.isArray(d) ? d[0] : d;
1717
- l = c.inlineSize, s = c.blockSize;
1726
+ const d = r.borderBoxSize, l = Array.isArray(d) ? d[0] : d;
1727
+ c = l.inlineSize, a = l.blockSize;
1718
1728
  } else
1719
- l = t.offsetWidth, s = t.offsetHeight;
1729
+ c = e.offsetWidth, a = e.offsetHeight;
1720
1730
  n({
1721
- width: l,
1722
- height: s
1731
+ width: c,
1732
+ height: a
1723
1733
  });
1724
1734
  });
1725
- return o.observe(t, {
1735
+ return t.observe(e, {
1726
1736
  box: "border-box"
1727
- }), () => o.unobserve(t);
1737
+ }), () => t.unobserve(e);
1728
1738
  } else
1729
1739
  n(void 0);
1730
1740
  }, [
1731
- t
1732
- ]), e;
1741
+ e
1742
+ ]), o;
1733
1743
  }
1734
- function Ca(t, e) {
1735
- return Nn((n, o) => {
1736
- const i = e[n][o];
1737
- return i ?? n;
1738
- }, t);
1744
+ function Ci(e, o) {
1745
+ return Nn((n, t) => {
1746
+ const s = o[n][t];
1747
+ return s ?? n;
1748
+ }, e);
1739
1749
  }
1740
- const Ft = (t) => {
1741
- const { present: e, children: n } = t, o = ba(e), i = typeof n == "function" ? n({
1742
- present: o.isPresent
1743
- }) : fe.only(n), r = Bt(o.ref, i.ref);
1744
- return typeof n == "function" || o.isPresent ? /* @__PURE__ */ Be(i, {
1750
+ const Ht = (e) => {
1751
+ const { present: o, children: n } = e, t = vi(o), s = typeof n == "function" ? n({
1752
+ present: t.isPresent
1753
+ }) : me.only(n), r = Lt(t.ref, s.ref);
1754
+ return typeof n == "function" || t.isPresent ? /* @__PURE__ */ Ae(s, {
1745
1755
  ref: r
1746
1756
  }) : null;
1747
1757
  };
1748
- Ft.displayName = "Presence";
1749
- function ba(t) {
1750
- const [e, n] = k(), o = W({}), i = W(t), r = W("none"), l = t ? "mounted" : "unmounted", [s, d] = Ca(l, {
1758
+ Ht.displayName = "Presence";
1759
+ function vi(e) {
1760
+ const [o, n] = k(), t = H({}), s = H(e), r = H("none"), c = e ? "mounted" : "unmounted", [a, d] = Ci(c, {
1751
1761
  mounted: {
1752
1762
  UNMOUNT: "unmounted",
1753
1763
  ANIMATION_OUT: "unmountSuspended"
@@ -1760,98 +1770,98 @@ function ba(t) {
1760
1770
  MOUNT: "mounted"
1761
1771
  }
1762
1772
  });
1763
- return E(() => {
1764
- const c = Ke(o.current);
1765
- r.current = s === "mounted" ? c : "none";
1773
+ return M(() => {
1774
+ const l = Ke(t.current);
1775
+ r.current = a === "mounted" ? l : "none";
1766
1776
  }, [
1767
- s
1768
- ]), at(() => {
1769
- const c = o.current, h = i.current;
1770
- if (h !== t) {
1771
- const g = r.current, m = Ke(c);
1772
- t ? d("MOUNT") : m === "none" || (c == null ? void 0 : c.display) === "none" ? d("UNMOUNT") : d(h && g !== m ? "ANIMATION_OUT" : "UNMOUNT"), i.current = t;
1777
+ a
1778
+ ]), st(() => {
1779
+ const l = t.current, h = s.current;
1780
+ if (h !== e) {
1781
+ const g = r.current, f = Ke(l);
1782
+ e ? d("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? d("UNMOUNT") : d(h && g !== f ? "ANIMATION_OUT" : "UNMOUNT"), s.current = e;
1773
1783
  }
1774
1784
  }, [
1775
- t,
1785
+ e,
1776
1786
  d
1777
- ]), at(() => {
1778
- if (e) {
1779
- const c = (u) => {
1780
- const m = Ke(o.current).includes(u.animationName);
1781
- u.target === e && m && Bn(
1787
+ ]), st(() => {
1788
+ if (o) {
1789
+ const l = (u) => {
1790
+ const f = Ke(t.current).includes(u.animationName);
1791
+ u.target === o && f && Bn(
1782
1792
  () => d("ANIMATION_END")
1783
1793
  );
1784
1794
  }, h = (u) => {
1785
- u.target === e && (r.current = Ke(o.current));
1795
+ u.target === o && (r.current = Ke(t.current));
1786
1796
  };
1787
- return e.addEventListener("animationstart", h), e.addEventListener("animationcancel", c), e.addEventListener("animationend", c), () => {
1788
- e.removeEventListener("animationstart", h), e.removeEventListener("animationcancel", c), e.removeEventListener("animationend", c);
1797
+ return o.addEventListener("animationstart", h), o.addEventListener("animationcancel", l), o.addEventListener("animationend", l), () => {
1798
+ o.removeEventListener("animationstart", h), o.removeEventListener("animationcancel", l), o.removeEventListener("animationend", l);
1789
1799
  };
1790
1800
  } else
1791
1801
  d("ANIMATION_END");
1792
1802
  }, [
1793
- e,
1803
+ o,
1794
1804
  d
1795
1805
  ]), {
1796
1806
  isPresent: [
1797
1807
  "mounted",
1798
1808
  "unmountSuspended"
1799
- ].includes(s),
1800
- ref: y((c) => {
1801
- c && (o.current = getComputedStyle(c)), n(c);
1809
+ ].includes(a),
1810
+ ref: x((l) => {
1811
+ l && (t.current = getComputedStyle(l)), n(l);
1802
1812
  }, [])
1803
1813
  };
1804
1814
  }
1805
- function Ke(t) {
1806
- return (t == null ? void 0 : t.animationName) || "none";
1815
+ function Ke(e) {
1816
+ return (e == null ? void 0 : e.animationName) || "none";
1807
1817
  }
1808
- const Ut = /* @__PURE__ */ x((t, e) => {
1809
- const { children: n, ...o } = t, i = fe.toArray(n), r = i.find(_a);
1818
+ const jt = /* @__PURE__ */ S((e, o) => {
1819
+ const { children: n, ...t } = e, s = me.toArray(n), r = s.find(bi);
1810
1820
  if (r) {
1811
- const l = r.props.children, s = i.map((d) => d === r ? fe.count(l) > 1 ? fe.only(null) : /* @__PURE__ */ Oe(l) ? l.props.children : null : d);
1812
- return /* @__PURE__ */ H(it, le({}, o, {
1813
- ref: e
1814
- }), /* @__PURE__ */ Oe(l) ? /* @__PURE__ */ Be(l, void 0, s) : null);
1821
+ const c = r.props.children, a = s.map((d) => d === r ? me.count(c) > 1 ? me.only(null) : /* @__PURE__ */ Oe(c) ? c.props.children : null : d);
1822
+ return /* @__PURE__ */ F(at, ae({}, t, {
1823
+ ref: o
1824
+ }), /* @__PURE__ */ Oe(c) ? /* @__PURE__ */ Ae(c, void 0, a) : null);
1815
1825
  }
1816
- return /* @__PURE__ */ H(it, le({}, o, {
1817
- ref: e
1826
+ return /* @__PURE__ */ F(at, ae({}, t, {
1827
+ ref: o
1818
1828
  }), n);
1819
1829
  });
1820
- Ut.displayName = "Slot";
1821
- const it = /* @__PURE__ */ x((t, e) => {
1822
- const { children: n, ...o } = t;
1823
- return /* @__PURE__ */ Oe(n) ? /* @__PURE__ */ Be(n, {
1824
- ...$a(o, n.props),
1825
- ref: e ? Et(e, n.ref) : n.ref
1826
- }) : fe.count(n) > 1 ? fe.only(null) : null;
1830
+ jt.displayName = "Slot";
1831
+ const at = /* @__PURE__ */ S((e, o) => {
1832
+ const { children: n, ...t } = e;
1833
+ return /* @__PURE__ */ Oe(n) ? /* @__PURE__ */ Ae(n, {
1834
+ ...wi(t, n.props),
1835
+ ref: o ? Mt(o, n.ref) : n.ref
1836
+ }) : me.count(n) > 1 ? me.only(null) : null;
1827
1837
  });
1828
- it.displayName = "SlotClone";
1829
- const va = ({ children: t }) => /* @__PURE__ */ H(Dn, null, t);
1830
- function _a(t) {
1831
- return /* @__PURE__ */ Oe(t) && t.type === va;
1838
+ at.displayName = "SlotClone";
1839
+ const _i = ({ children: e }) => /* @__PURE__ */ F(Tn, null, e);
1840
+ function bi(e) {
1841
+ return /* @__PURE__ */ Oe(e) && e.type === _i;
1832
1842
  }
1833
- function $a(t, e) {
1843
+ function wi(e, o) {
1834
1844
  const n = {
1835
- ...e
1845
+ ...o
1836
1846
  };
1837
- for (const o in e) {
1838
- const i = t[o], r = e[o];
1839
- /^on[A-Z]/.test(o) ? i && r ? n[o] = (...s) => {
1840
- r(...s), i(...s);
1841
- } : i && (n[o] = i) : o === "style" ? n[o] = {
1842
- ...i,
1847
+ for (const t in o) {
1848
+ const s = e[t], r = o[t];
1849
+ /^on[A-Z]/.test(t) ? s && r ? n[t] = (...a) => {
1850
+ r(...a), s(...a);
1851
+ } : s && (n[t] = s) : t === "style" ? n[t] = {
1852
+ ...s,
1843
1853
  ...r
1844
- } : o === "className" && (n[o] = [
1845
- i,
1854
+ } : t === "className" && (n[t] = [
1855
+ s,
1846
1856
  r
1847
1857
  ].filter(Boolean).join(" "));
1848
1858
  }
1849
1859
  return {
1850
- ...t,
1860
+ ...e,
1851
1861
  ...n
1852
1862
  };
1853
1863
  }
1854
- const Sa = [
1864
+ const yi = [
1855
1865
  "a",
1856
1866
  "button",
1857
1867
  "div",
@@ -1868,110 +1878,110 @@ const Sa = [
1868
1878
  "span",
1869
1879
  "svg",
1870
1880
  "ul"
1871
- ], Wt = Sa.reduce((t, e) => {
1872
- const n = /* @__PURE__ */ x((o, i) => {
1873
- const { asChild: r, ...l } = o, s = r ? Ut : e;
1874
- return E(() => {
1881
+ ], Ft = yi.reduce((e, o) => {
1882
+ const n = /* @__PURE__ */ S((t, s) => {
1883
+ const { asChild: r, ...c } = t, a = r ? jt : o;
1884
+ return M(() => {
1875
1885
  window[Symbol.for("radix-ui")] = !0;
1876
- }, []), /* @__PURE__ */ H(s, le({}, l, {
1877
- ref: i
1886
+ }, []), /* @__PURE__ */ F(a, ae({}, c, {
1887
+ ref: s
1878
1888
  }));
1879
1889
  });
1880
- return n.displayName = `Primitive.${e}`, {
1881
- ...t,
1882
- [e]: n
1890
+ return n.displayName = `Primitive.${o}`, {
1891
+ ...e,
1892
+ [o]: n
1883
1893
  };
1884
- }, {}), Ht = "Checkbox", [ya, Wi] = ua(Ht), [xa, wa] = ya(Ht), Pa = /* @__PURE__ */ x((t, e) => {
1885
- const { __scopeCheckbox: n, name: o, checked: i, defaultChecked: r, required: l, disabled: s, value: d = "on", onCheckedChange: c, ...h } = t, [u, g] = k(null), m = Bt(
1886
- e,
1887
- (T) => g(T)
1888
- ), C = W(!1), _ = u ? !!u.closest("form") : !0, [f = !1, P] = pa({
1889
- prop: i,
1894
+ }, {}), Vt = "Checkbox", [xi, Hs] = ui(Vt), [Si, $i] = xi(Vt), Pi = /* @__PURE__ */ S((e, o) => {
1895
+ const { __scopeCheckbox: n, name: t, checked: s, defaultChecked: r, required: c, disabled: a, value: d = "on", onCheckedChange: l, ...h } = e, [u, g] = k(null), f = Lt(
1896
+ o,
1897
+ (N) => g(N)
1898
+ ), C = H(!1), b = u ? !!u.closest("form") : !0, [m = !1, P] = pi({
1899
+ prop: s,
1890
1900
  defaultProp: r,
1891
- onChange: c
1892
- }), $ = W(f);
1893
- return E(() => {
1894
- const T = u == null ? void 0 : u.form;
1895
- if (T) {
1896
- const O = () => P($.current);
1897
- return T.addEventListener("reset", O), () => T.removeEventListener("reset", O);
1901
+ onChange: l
1902
+ }), w = H(m);
1903
+ return M(() => {
1904
+ const N = u == null ? void 0 : u.form;
1905
+ if (N) {
1906
+ const A = () => P(w.current);
1907
+ return N.addEventListener("reset", A), () => N.removeEventListener("reset", A);
1898
1908
  }
1899
1909
  }, [
1900
1910
  u,
1901
1911
  P
1902
- ]), /* @__PURE__ */ H(xa, {
1912
+ ]), /* @__PURE__ */ F(Si, {
1903
1913
  scope: n,
1904
- state: f,
1905
- disabled: s
1906
- }, /* @__PURE__ */ H(Wt.button, le({
1914
+ state: m,
1915
+ disabled: a
1916
+ }, /* @__PURE__ */ F(Ft.button, ae({
1907
1917
  type: "button",
1908
1918
  role: "checkbox",
1909
- "aria-checked": ge(f) ? "mixed" : f,
1910
- "aria-required": l,
1911
- "data-state": jt(f),
1912
- "data-disabled": s ? "" : void 0,
1913
- disabled: s,
1919
+ "aria-checked": ge(m) ? "mixed" : m,
1920
+ "aria-required": c,
1921
+ "data-state": Ut(m),
1922
+ "data-disabled": a ? "" : void 0,
1923
+ disabled: a,
1914
1924
  value: d
1915
1925
  }, h, {
1916
- ref: m,
1917
- onKeyDown: yt(t.onKeyDown, (T) => {
1918
- T.key === "Enter" && T.preventDefault();
1926
+ ref: f,
1927
+ onKeyDown: xt(e.onKeyDown, (N) => {
1928
+ N.key === "Enter" && N.preventDefault();
1919
1929
  }),
1920
- onClick: yt(t.onClick, (T) => {
1930
+ onClick: xt(e.onClick, (N) => {
1921
1931
  P(
1922
- (O) => ge(O) ? !0 : !O
1923
- ), _ && (C.current = T.isPropagationStopped(), C.current || T.stopPropagation());
1932
+ (A) => ge(A) ? !0 : !A
1933
+ ), b && (C.current = N.isPropagationStopped(), C.current || N.stopPropagation());
1924
1934
  })
1925
- })), _ && /* @__PURE__ */ H(Na, {
1935
+ })), b && /* @__PURE__ */ F(Ti, {
1926
1936
  control: u,
1927
1937
  bubbles: !C.current,
1928
- name: o,
1938
+ name: t,
1929
1939
  value: d,
1930
- checked: f,
1931
- required: l,
1932
- disabled: s,
1940
+ checked: m,
1941
+ required: c,
1942
+ disabled: a,
1933
1943
  style: {
1934
1944
  transform: "translateX(-100%)"
1935
1945
  }
1936
1946
  }));
1937
- }), ka = "CheckboxIndicator", Ta = /* @__PURE__ */ x((t, e) => {
1938
- const { __scopeCheckbox: n, forceMount: o, ...i } = t, r = wa(ka, n);
1939
- return /* @__PURE__ */ H(Ft, {
1940
- present: o || ge(r.state) || r.state === !0
1941
- }, /* @__PURE__ */ H(Wt.span, le({
1942
- "data-state": jt(r.state),
1947
+ }), ki = "CheckboxIndicator", Ni = /* @__PURE__ */ S((e, o) => {
1948
+ const { __scopeCheckbox: n, forceMount: t, ...s } = e, r = $i(ki, n);
1949
+ return /* @__PURE__ */ F(Ht, {
1950
+ present: t || ge(r.state) || r.state === !0
1951
+ }, /* @__PURE__ */ F(Ft.span, ae({
1952
+ "data-state": Ut(r.state),
1943
1953
  "data-disabled": r.disabled ? "" : void 0
1944
- }, i, {
1945
- ref: e,
1954
+ }, s, {
1955
+ ref: o,
1946
1956
  style: {
1947
1957
  pointerEvents: "none",
1948
- ...t.style
1958
+ ...e.style
1949
1959
  }
1950
1960
  })));
1951
- }), Na = (t) => {
1952
- const { control: e, checked: n, bubbles: o = !0, ...i } = t, r = W(null), l = fa(n), s = ga(e);
1953
- return E(() => {
1954
- const d = r.current, c = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(c, "checked").set;
1955
- if (l !== n && u) {
1961
+ }), Ti = (e) => {
1962
+ const { control: o, checked: n, bubbles: t = !0, ...s } = e, r = H(null), c = mi(n), a = gi(o);
1963
+ return M(() => {
1964
+ const d = r.current, l = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(l, "checked").set;
1965
+ if (c !== n && u) {
1956
1966
  const g = new Event("click", {
1957
- bubbles: o
1967
+ bubbles: t
1958
1968
  });
1959
1969
  d.indeterminate = ge(n), u.call(d, ge(n) ? !1 : n), d.dispatchEvent(g);
1960
1970
  }
1961
1971
  }, [
1962
- l,
1972
+ c,
1963
1973
  n,
1964
- o
1965
- ]), /* @__PURE__ */ H("input", le({
1974
+ t
1975
+ ]), /* @__PURE__ */ F("input", ae({
1966
1976
  type: "checkbox",
1967
1977
  "aria-hidden": !0,
1968
1978
  defaultChecked: ge(n) ? !1 : n
1969
- }, i, {
1979
+ }, s, {
1970
1980
  tabIndex: -1,
1971
1981
  ref: r,
1972
1982
  style: {
1973
- ...t.style,
1974
- ...s,
1983
+ ...e.style,
1984
+ ...a,
1975
1985
  position: "absolute",
1976
1986
  pointerEvents: "none",
1977
1987
  opacity: 0,
@@ -1979,233 +1989,233 @@ const Sa = [
1979
1989
  }
1980
1990
  }));
1981
1991
  };
1982
- function ge(t) {
1983
- return t === "indeterminate";
1992
+ function ge(e) {
1993
+ return e === "indeterminate";
1984
1994
  }
1985
- function jt(t) {
1986
- return ge(t) ? "indeterminate" : t ? "checked" : "unchecked";
1995
+ function Ut(e) {
1996
+ return ge(e) ? "indeterminate" : e ? "checked" : "unchecked";
1987
1997
  }
1988
- const Da = Pa, Aa = Ta, Ia = "_checkboxContainer_pb9za_5", Ma = "_checkbox_pb9za_5", Ra = "_checkboxIndicator_pb9za_27", Oa = "_checkboxLabel_pb9za_38", za = "_noTextHighlight_pb9za_42", Ea = "_checkboxHidden_pb9za_51", ye = {
1989
- checkboxContainer: Ia,
1990
- checkbox: Ma,
1991
- checkboxIndicator: Ra,
1992
- checkboxLabel: Oa,
1993
- noTextHighlight: za,
1994
- checkboxHidden: Ea
1995
- }, Ba = x(function({ className: e, labelClassName: n, label: o, checked: i, onCheckedChange: r, ...l }, s) {
1996
- return /* @__PURE__ */ a(qo, { children: ({ isHovered: d, ...c }) => /* @__PURE__ */ b(D, { className: ye.checkboxContainer, ...c, children: [
1997
- /* @__PURE__ */ a(
1998
- Da,
1998
+ const Di = Pi, Ii = Ni, Oi = "_checkboxContainer_pb9za_5", Ri = "_checkbox_pb9za_5", zi = "_checkboxIndicator_pb9za_27", Ai = "_checkboxLabel_pb9za_38", Ei = "_noTextHighlight_pb9za_42", Bi = "_checkboxHidden_pb9za_51", ye = {
1999
+ checkboxContainer: Oi,
2000
+ checkbox: Ri,
2001
+ checkboxIndicator: zi,
2002
+ checkboxLabel: Ai,
2003
+ noTextHighlight: Ei,
2004
+ checkboxHidden: Bi
2005
+ }, Mi = S(function({ className: o, labelClassName: n, label: t, checked: s, onCheckedChange: r, ...c }, a) {
2006
+ return /* @__PURE__ */ i(qo, { children: ({ isHovered: d, ...l }) => /* @__PURE__ */ v(D, { className: ye.checkboxContainer, ...l, children: [
2007
+ /* @__PURE__ */ i(
2008
+ Di,
1999
2009
  {
2000
- className: S(
2010
+ className: y(
2001
2011
  ye.checkbox,
2002
- !d && !i && ye.checkboxHidden,
2003
- e
2012
+ !d && !s && ye.checkboxHidden,
2013
+ o
2004
2014
  ),
2005
- checked: i,
2015
+ checked: s,
2006
2016
  onCheckedChange: (h) => {
2007
2017
  r && r(h);
2008
2018
  },
2009
- ref: s,
2010
- ...l,
2011
- children: /* @__PURE__ */ a(Aa, { className: ye.checkboxIndicator, children: i === "indeterminate" ? /* @__PURE__ */ a(on, { width: "13px" }) : /* @__PURE__ */ a(xt, {}) })
2019
+ ref: a,
2020
+ ...c,
2021
+ children: /* @__PURE__ */ i(Ii, { className: ye.checkboxIndicator, children: s === "indeterminate" ? /* @__PURE__ */ i(on, { width: "13px" }) : /* @__PURE__ */ i(St, {}) })
2012
2022
  }
2013
2023
  ),
2014
- o && /* @__PURE__ */ a(
2024
+ t && /* @__PURE__ */ i(
2015
2025
  "div",
2016
2026
  {
2017
- className: S(ye.checkboxLabel, n, ye.noTextHighlight),
2027
+ className: y(ye.checkboxLabel, n, ye.noTextHighlight),
2018
2028
  onClick: () => {
2019
- r && r(!i);
2029
+ r && r(!s);
2020
2030
  },
2021
- children: o
2031
+ children: t
2022
2032
  }
2023
2033
  )
2024
2034
  ] }) });
2025
- }), ct = w(Ba);
2026
- ct.displayName = "Checkbox";
2027
- const La = w(function({
2028
- className: e,
2035
+ }), dt = $(Mi);
2036
+ dt.displayName = "Checkbox";
2037
+ const Li = $(function({
2038
+ className: o,
2029
2039
  labelClassName: n,
2030
- label: o,
2031
- onCheckedChange: i,
2040
+ label: t,
2041
+ onCheckedChange: s,
2032
2042
  children: r,
2033
- ...l
2043
+ ...c
2034
2044
  }) {
2035
- const [s, d] = k(
2036
- U.Children.toArray(r).every((m) => U.isValidElement(m) && m.props.checked) ? !0 : U.Children.toArray(r).some((m) => U.isValidElement(m) && m.props.checked) ? "indeterminate" : !1
2037
- ), [c, h] = k(
2038
- U.Children.map(r, (m) => m.props.checked)
2039
- ), u = (m) => {
2040
- const C = s === "indeterminate" || !m;
2041
- s === "indeterminate" && (m = !1), h(c.map((_) => !C)), i && i(m);
2045
+ const [a, d] = k(
2046
+ W.Children.toArray(r).every((f) => W.isValidElement(f) && f.props.checked) ? !0 : W.Children.toArray(r).some((f) => W.isValidElement(f) && f.props.checked) ? "indeterminate" : !1
2047
+ ), [l, h] = k(
2048
+ W.Children.map(r, (f) => f.props.checked)
2049
+ ), u = (f) => {
2050
+ const C = a === "indeterminate" || !f;
2051
+ a === "indeterminate" && (f = !1), h(l.map((b) => !C)), s && s(f);
2042
2052
  };
2043
- E(() => {
2044
- const m = c.filter((C) => C).length;
2045
- m === 0 ? d(!1) : m === r.length ? d(!0) : d("indeterminate");
2046
- }, [r, c]);
2047
- const g = U.Children.map(
2053
+ M(() => {
2054
+ const f = l.filter((C) => C).length;
2055
+ f === 0 ? d(!1) : f === r.length ? d(!0) : d("indeterminate");
2056
+ }, [r, l]);
2057
+ const g = W.Children.map(
2048
2058
  r,
2049
- (m, C) => U.cloneElement(m, {
2050
- ...m.props,
2051
- checked: c[C],
2052
- onCheckedChange: (_) => {
2053
- const f = [...c];
2054
- f[C] = _, h(f), m.props.onCheckedChange && m.props.onCheckedChange(_);
2059
+ (f, C) => W.cloneElement(f, {
2060
+ ...f.props,
2061
+ checked: l[C],
2062
+ onCheckedChange: (b) => {
2063
+ const m = [...l];
2064
+ m[C] = b, h(m), f.props.onCheckedChange && f.props.onCheckedChange(b);
2055
2065
  }
2056
2066
  })
2057
2067
  );
2058
- return /* @__PURE__ */ b(X, { children: [
2059
- /* @__PURE__ */ a(
2060
- ct,
2068
+ return /* @__PURE__ */ v(J, { children: [
2069
+ /* @__PURE__ */ i(
2070
+ dt,
2061
2071
  {
2062
- className: e,
2072
+ className: o,
2063
2073
  labelClassName: n,
2064
- label: o,
2065
- checked: s,
2074
+ label: t,
2075
+ checked: a,
2066
2076
  onCheckedChange: u,
2067
- ...l
2077
+ ...c
2068
2078
  }
2069
2079
  ),
2070
2080
  g
2071
2081
  ] });
2072
- }), Fa = "_tableContainer_5bdnq_1", Ua = "_headerContainer_5bdnq_14", Wa = "_tableTopContainer_5bdnq_18", Ha = "_searchContainer_5bdnq_22", ja = "_columnFilterSelect_5bdnq_32", Va = "_table_5bdnq_1", qa = "_tableHeaderCell_5bdnq_50", Ga = "_tableRow_5bdnq_56", Ka = "_tableCell_5bdnq_71", Ja = "_noDataTextContainer_5bdnq_78", Xa = "_tableBottomContainer_5bdnq_83", Qa = "_rowsPerPageContainer_5bdnq_92", Ya = "_rowsPerPageText_5bdnq_96", Za = "_paginationContainer_5bdnq_101", F = {
2073
- tableContainer: Fa,
2074
- headerContainer: Ua,
2075
- tableTopContainer: Wa,
2076
- searchContainer: Ha,
2077
- columnFilterSelect: ja,
2078
- table: Va,
2079
- tableHeaderCell: qa,
2080
- tableRow: Ga,
2081
- tableCell: Ka,
2082
- noDataTextContainer: Ja,
2083
- tableBottomContainer: Xa,
2084
- rowsPerPageContainer: Qa,
2085
- rowsPerPageText: Ya,
2086
- paginationContainer: Za
2087
- }, ei = x(function(e, n) {
2082
+ }), Wi = "_tableContainer_go3yk_1", Hi = "_headerContainer_go3yk_14", ji = "_tableTopContainer_go3yk_18", Fi = "_searchContainer_go3yk_22", Vi = "_columnFilterSelect_go3yk_32", Ui = "_table_go3yk_1", Gi = "_tableHeaderCell_go3yk_50", Ki = "_tableRow_go3yk_56", qi = "_tableCell_go3yk_71", Xi = "_noDataTextContainer_go3yk_78", Ji = "_tableBottomContainer_go3yk_84", Qi = "_rowsPerPageContainer_go3yk_88", Yi = "_rowsPerPageText_go3yk_98", L = {
2083
+ tableContainer: Wi,
2084
+ headerContainer: Hi,
2085
+ tableTopContainer: ji,
2086
+ searchContainer: Fi,
2087
+ columnFilterSelect: Vi,
2088
+ table: Ui,
2089
+ tableHeaderCell: Gi,
2090
+ tableRow: Ki,
2091
+ tableCell: qi,
2092
+ noDataTextContainer: Xi,
2093
+ tableBottomContainer: Ji,
2094
+ rowsPerPageContainer: Qi,
2095
+ rowsPerPageText: Yi
2096
+ }, Zi = S(function(o, n) {
2088
2097
  const {
2089
- columns: o,
2090
- data: i,
2098
+ columns: t,
2099
+ data: s,
2091
2100
  color: r = "light",
2092
- title: l = "",
2093
- description: s = "",
2101
+ title: c = "",
2102
+ description: a = "",
2094
2103
  rowsPerPage: d = [10, 20, 30, 40, 50],
2095
- showSearchBar: c,
2104
+ showSearchBar: l,
2096
2105
  searchBarPlaceholder: h,
2097
2106
  showSelect: u,
2098
2107
  showFilterButton: g,
2099
- showContainer: m,
2108
+ showContainer: f,
2100
2109
  showRowsPerPage: C,
2101
- showPageNumber: _,
2102
- showPageNavigation: f,
2110
+ showPageNumber: b,
2111
+ showPageNavigation: m,
2103
2112
  showTopBar: P = !0,
2104
- showBottomBar: $ = !0,
2105
- children: T,
2106
- className: O,
2107
- columnClassName: oe,
2108
- rowClassName: Le,
2109
- cellClassName: Ce
2110
- } = e, [de, Ze] = k(""), [be, et] = k([]);
2111
- if (!i.every(
2112
- (p) => Object.keys(p.columns).length === o.length && Object.values(o).every((v) => Object.keys(p.columns).includes(v.id.toString()))
2113
+ showBottomBar: w = !0,
2114
+ emptyMessage: N = "There is no data",
2115
+ children: A,
2116
+ className: te,
2117
+ columnClassName: Ee,
2118
+ rowClassName: Ce,
2119
+ cellClassName: Ye
2120
+ } = o, [le, ve] = k(""), [Ze, et] = k([]);
2121
+ if (!s.every(
2122
+ (p) => Object.keys(p.columns).length === t.length && Object.values(t).every((_) => Object.keys(p.columns).includes(_.id.toString()))
2113
2123
  ))
2114
2124
  throw new Error("Columns in rows do not match ones declared in columns variable.");
2115
- const Ne = M(
2116
- () => o.filter((p) => p.filter).map((p) => ({ [p.id]: [] })).reduce((p, v) => Object.assign(p, v), {}),
2117
- [o]
2118
- ), [q, De] = k(Ne), [A, B] = k(d[0] ?? 10), L = M(
2125
+ const Be = R(
2126
+ () => t.filter((p) => p.filter).map((p) => ({ [p.id]: [] })).reduce((p, _) => Object.assign(p, _), {}),
2127
+ [t]
2128
+ ), [K, I] = k(Be), [B, V] = k(d[0] ?? 10), j = R(
2119
2129
  () => d.map((p) => ({
2120
2130
  value: p.toString(),
2121
2131
  itemContent: p.toString()
2122
2132
  })),
2123
2133
  [d]
2124
- ), G = i.some((p) => p.onClick), Ae = y(
2134
+ ), Me = s.some((p) => p.onClick), ke = x(
2125
2135
  (p) => {
2126
- var N, I;
2127
- return (((N = p.searchValue) == null ? void 0 : N.toString()) || ((I = p.value) == null ? void 0 : I.toString()) || "").toLowerCase().includes(de.toLowerCase());
2136
+ var T, O;
2137
+ return (((T = p.searchValue) == null ? void 0 : T.toString()) || ((O = p.value) == null ? void 0 : O.toString()) || "").toLowerCase().includes(le.toLowerCase());
2128
2138
  },
2129
- [de]
2130
- ), Fe = y((p, v) => {
2131
- var K, ue, _e, he;
2132
- const N = ((K = p.sortValue) == null ? void 0 : K.toString()) || ((ue = p.value) == null ? void 0 : ue.toString()) || "", I = ((_e = v.sortValue) == null ? void 0 : _e.toString()) || ((he = v.value) == null ? void 0 : he.toString()) || "";
2133
- return N.toLowerCase().localeCompare(I.toLowerCase(), void 0, { numeric: !0 });
2134
- }, []), ve = y(
2135
- (p, v) => {
2136
- var I, K, ue;
2137
- const N = ((I = p.filterValue) == null ? void 0 : I.toString()) || ((K = p.value) == null ? void 0 : K.toString()) || "";
2138
- return (ue = q[v.id]) == null ? void 0 : ue.some(
2139
- (_e) => N.toString().toLowerCase() === _e.toString().toLowerCase()
2139
+ [le]
2140
+ ), Ne = x((p, _) => {
2141
+ var q, ue, _e, he;
2142
+ const T = ((q = p.sortValue) == null ? void 0 : q.toString()) || ((ue = p.value) == null ? void 0 : ue.toString()) || "", O = ((_e = _.sortValue) == null ? void 0 : _e.toString()) || ((he = _.value) == null ? void 0 : he.toString()) || "";
2143
+ return T.toLowerCase().localeCompare(O.toLowerCase(), void 0, { numeric: !0 });
2144
+ }, []), de = x(
2145
+ (p, _) => {
2146
+ var O, q, ue;
2147
+ const T = ((O = p.filterValue) == null ? void 0 : O.toString()) || ((q = p.value) == null ? void 0 : q.toString()) || "";
2148
+ return (ue = K[_.id]) == null ? void 0 : ue.some(
2149
+ (_e) => T.toString().toLowerCase() === _e.toString().toLowerCase()
2140
2150
  );
2141
2151
  },
2142
- [q]
2143
- ), Q = M(
2144
- () => o.map((p) => ({
2152
+ [K]
2153
+ ), Q = R(
2154
+ () => t.map((p) => ({
2145
2155
  ...p,
2146
2156
  sort: p.sort ? { sortKey: p.id.toString().toUpperCase() } : !1
2147
2157
  })),
2148
- [o]
2149
- ), re = o.some(
2158
+ [t]
2159
+ ), ne = t.some(
2150
2160
  (p) => {
2151
- var v;
2152
- return p.filter && p.id in q && ((v = q[p.id]) == null ? void 0 : v.length) !== 0;
2161
+ var _;
2162
+ return p.filter && p.id in K && ((_ = K[p.id]) == null ? void 0 : _.length) !== 0;
2153
2163
  }
2154
- ), Y = M(
2155
- () => i.filter(
2156
- (p) => !de || o.some((v) => v.search && Ae(p.columns[v.id]))
2164
+ ), Le = R(
2165
+ () => s.filter(
2166
+ (p) => !le || t.some((_) => _.search && ke(p.columns[_.id]))
2157
2167
  ).filter(
2158
2168
  (p) => (
2159
2169
  // If no column filter is selected, then return true AKA: show all rows
2160
- !re || // Check if any of the table values match the selected column filters. First return true if that
2170
+ !ne || // Check if any of the table values match the selected column filters. First return true if that
2161
2171
  // column is not selected for filtering (has a filter prop). Second, return true if that column
2162
2172
  // has any values in it selected for filtering, lastly, return if row has that filter value
2163
- o.every((v) => {
2164
- var N;
2165
- return !v.filter || ((N = q[v.id]) == null ? void 0 : N.length) === 0 || ve(p.columns[v.id], v);
2173
+ t.every((_) => {
2174
+ var T;
2175
+ return !_.filter || ((T = K[_.id]) == null ? void 0 : T.length) === 0 || de(p.columns[_.id], _);
2166
2176
  })
2167
2177
  )
2168
2178
  ).map((p) => {
2169
- const v = { ...p.columns, ...p }, { columns: N, ...I } = v;
2170
- return I;
2179
+ const _ = { ...p.columns, ...p }, { columns: T, ...O } = _;
2180
+ return O;
2171
2181
  }),
2172
- [ve, q, o, i, re, de, Ae]
2173
- ), [Z, qt] = k(Math.ceil(Y.length / A)), tt = y(
2182
+ [de, K, t, s, ne, le, ke]
2183
+ ), [Y, Gt] = k(Math.ceil(Le.length / B)), nt = x(
2174
2184
  (p) => p.filterValues ? p.filterValues : [...new Set(
2175
- i.map(
2176
- (N) => {
2177
- var I, K;
2178
- return ((I = N.columns[p.id].filterValue) == null ? void 0 : I.toString()) || ((K = N.columns[p.id].value) == null ? void 0 : K.toString()) || "";
2185
+ s.map(
2186
+ (T) => {
2187
+ var O, q;
2188
+ return ((O = T.columns[p.id].filterValue) == null ? void 0 : O.toString()) || ((q = T.columns[p.id].value) == null ? void 0 : q.toString()) || "";
2179
2189
  }
2180
2190
  )
2181
- )].sort().map((N) => ({
2182
- value: N,
2183
- label: N
2191
+ )].sort().map((T) => ({
2192
+ value: T,
2193
+ label: T
2184
2194
  })),
2185
- [i]
2186
- ), Gt = M(
2187
- () => (u ? "auto " : "") + Q.reduce((p, v) => p + `${v.width || "auto"} `, ""),
2195
+ [s]
2196
+ ), Kt = R(
2197
+ () => (u ? "auto " : "") + Q.reduce((p, _) => p + `${_.width || "auto"} `, ""),
2188
2198
  [Q, u]
2189
- ), Kt = y((p) => {
2190
- Ze(p.target.value);
2191
- }, []), Ue = { nodes: Y }, Jt = Kn(
2192
- Ue,
2199
+ ), qt = x((p) => {
2200
+ ve(p.target.value);
2201
+ }, []), We = { nodes: Le }, Xt = Kn(
2202
+ We,
2193
2203
  {
2194
2204
  // Don't know what the type is for these parameters. Not specified in the React Table Library docs
2195
2205
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2196
2206
  // @ts-ignore
2197
- onChange: (p, v) => {
2198
- et(v.ids);
2207
+ onChange: (p, _) => {
2208
+ et(_.ids);
2199
2209
  }
2200
2210
  },
2201
2211
  {
2202
2212
  rowSelect: Ct.MultiSelect,
2203
2213
  buttonSelect: Ct.MultiSelect,
2204
- clickType: Jn.ButtonClick,
2214
+ clickType: qn.ButtonClick,
2205
2215
  isCarryForward: !1
2206
2216
  }
2207
- ), R = Yn(
2208
- Ue,
2217
+ ), z = Qn(
2218
+ We,
2209
2219
  {
2210
2220
  state: {
2211
2221
  page: 0,
@@ -2215,63 +2225,63 @@ const La = w(function({
2215
2225
  {
2216
2226
  isServer: !1
2217
2227
  }
2218
- ), Xt = qn(
2219
- Ue,
2228
+ ), Jt = Un(
2229
+ We,
2220
2230
  { onChange: () => null },
2221
2231
  {
2222
2232
  sortIcon: {
2223
2233
  margin: "10px",
2224
2234
  size: "15px",
2225
- iconDefault: /* @__PURE__ */ a(rn, { width: "20px" }),
2226
- iconUp: /* @__PURE__ */ a(an, {}),
2227
- iconDown: /* @__PURE__ */ a(sn, {})
2235
+ iconDefault: /* @__PURE__ */ i(rn, { width: "20px" }),
2236
+ iconUp: /* @__PURE__ */ i(sn, {}),
2237
+ iconDown: /* @__PURE__ */ i(an, {})
2228
2238
  },
2229
2239
  sortFns: Object.assign(
2230
2240
  {},
2231
2241
  ...Q.map((p) => ({
2232
- [p.id.toString().toUpperCase()]: (v) => v.sort((N, I) => Fe(N[p.id], I[p.id]))
2242
+ [p.id.toString().toUpperCase()]: (_) => _.sort((T, O) => Ne(T[p.id], O[p.id]))
2233
2243
  }))
2234
2244
  )
2235
2245
  }
2236
- ), Qt = M(
2246
+ ), Qt = R(
2237
2247
  () => ({
2238
- options: o.filter((p) => p.filter).map((p) => ({
2248
+ options: t.filter((p) => p.filter).map((p) => ({
2239
2249
  label: p.label,
2240
2250
  value: p.id.toString(),
2241
2251
  page: {
2242
- content: /* @__PURE__ */ a(
2243
- La,
2252
+ content: /* @__PURE__ */ i(
2253
+ Li,
2244
2254
  {
2245
2255
  label: "Select all",
2246
- onCheckedChange: (v) => {
2247
- const N = JSON.parse(JSON.stringify(q));
2248
- v === !0 ? N[p.id] = tt(p).map(
2249
- (I) => I.value
2250
- ) : N[p.id] = [], De(N);
2256
+ onCheckedChange: (_) => {
2257
+ const T = JSON.parse(JSON.stringify(K));
2258
+ _ === !0 ? T[p.id] = nt(p).map(
2259
+ (O) => O.value
2260
+ ) : T[p.id] = [], I(T);
2251
2261
  },
2252
- children: tt(p).map((v, N) => {
2253
- var I, K;
2254
- return /* @__PURE__ */ a(
2255
- ct,
2262
+ children: nt(p).map((_, T) => {
2263
+ var O, q;
2264
+ return /* @__PURE__ */ i(
2265
+ dt,
2256
2266
  {
2257
- label: v.label,
2258
- checked: (K = q[p.id]) == null ? void 0 : K.includes(
2259
- ((I = v.value) == null ? void 0 : I.toString()) || ""
2267
+ label: _.label,
2268
+ checked: (q = K[p.id]) == null ? void 0 : q.includes(
2269
+ ((O = _.value) == null ? void 0 : O.toString()) || ""
2260
2270
  ),
2261
2271
  onCheckedChange: (ue) => {
2262
- De((_e) => {
2272
+ I((_e) => {
2263
2273
  var pt;
2264
2274
  const he = { ..._e }, ht = he[p.id] || [];
2265
2275
  return ue ? he[p.id] = [
2266
2276
  ...ht,
2267
- ((pt = v.value) == null ? void 0 : pt.toString()) || ""
2277
+ ((pt = _.value) == null ? void 0 : pt.toString()) || ""
2268
2278
  ] : he[p.id] = ht.filter(
2269
- (tn) => tn !== v.value
2279
+ (tn) => tn !== (_.value ?? "").toString()
2270
2280
  ), he;
2271
2281
  });
2272
2282
  }
2273
2283
  },
2274
- `checkbox-filter-${p.id}-${N}`
2284
+ `checkbox-filter-${p.id}-${T}`
2275
2285
  );
2276
2286
  })
2277
2287
  },
@@ -2280,25 +2290,25 @@ const La = w(function({
2280
2290
  }
2281
2291
  }))
2282
2292
  }),
2283
- [q, o, tt]
2293
+ [K, t, nt]
2284
2294
  ), Yt = Q.map((p) => {
2285
- const v = p.sort ? Gn : Ln;
2286
- return /* @__PURE__ */ a(
2287
- v,
2295
+ const _ = p.sort ? Gn : Mn;
2296
+ return /* @__PURE__ */ i(
2297
+ _,
2288
2298
  {
2289
- className: S(F.tableHeaderCell, oe, p.className),
2299
+ className: y(L.tableHeaderCell, Ee, p.className),
2290
2300
  sortKey: p.sort ? p.id.toString().toUpperCase() : "",
2291
2301
  children: p.label
2292
2302
  },
2293
2303
  p.id
2294
2304
  );
2295
- }), ut = qe ? te : ke, Zt = M(() => ({ custom: !0 }), []), en = Vn({
2305
+ }), ut = Ue ? re : $e, Zt = R(() => ({ custom: !0 }), []), en = Vn({
2296
2306
  Table: `
2297
- --data-table-library_grid-template-columns: ${Gt};
2307
+ --data-table-library_grid-template-columns: ${Kt};
2298
2308
  `,
2299
2309
  Row: `
2300
2310
  &:hover {
2301
- cursor: ${G ? "pointer" : "inherit"};
2311
+ cursor: ${Me ? "pointer" : "inherit"};
2302
2312
  }
2303
2313
  &.row-select-selected {
2304
2314
  background-color: var(--gray-a4);
@@ -2311,499 +2321,246 @@ const La = w(function({
2311
2321
  background-color: inherit;
2312
2322
  `
2313
2323
  });
2314
- return E(() => {
2315
- if (f) {
2316
- const p = Math.ceil(Y.length / A);
2317
- qt(p), R.state.page < 0 && R.fns.onSetPage(0), R.state.page > p - 1 && R.fns.onSetPage(p - 1);
2324
+ return M(() => {
2325
+ if (m) {
2326
+ const p = Math.ceil(Le.length / B);
2327
+ Gt(p), z.state.page < 0 && z.fns.onSetPage(0), z.state.page > p - 1 && z.fns.onSetPage(p - 1);
2318
2328
  }
2319
- }, [d, Y.length, A, R, f]), /* @__PURE__ */ b("div", { className: S({ [F.tableContainer]: m }), children: [
2320
- (!!l || !!s) && /* @__PURE__ */ b("div", { className: F.headerContainer, children: [
2321
- !!l && /* @__PURE__ */ a(ot, { weight: "bold", size: "7", children: l }),
2322
- !!s && /* @__PURE__ */ a(ot, { as: "div", children: s })
2329
+ }, [d, Le.length, B, z, m]), /* @__PURE__ */ v("div", { className: y({ [L.tableContainer]: f }), children: [
2330
+ (!!c || !!a) && /* @__PURE__ */ v("div", { className: L.headerContainer, children: [
2331
+ !!c && /* @__PURE__ */ i(rt, { weight: "bold", size: "7", children: c }),
2332
+ !!a && /* @__PURE__ */ i(rt, { as: "div", children: a })
2323
2333
  ] }),
2324
- P && /* @__PURE__ */ b(D, { justify: "between", className: F.tableTopContainer, children: [
2325
- /* @__PURE__ */ b(D, { gap: "2", children: [
2326
- c && /* @__PURE__ */ a("div", { className: F.searchContainer, children: /* @__PURE__ */ a(
2334
+ P && /* @__PURE__ */ v(D, { justify: "between", className: L.tableTopContainer, children: [
2335
+ /* @__PURE__ */ v(D, { gap: "2", children: [
2336
+ l && /* @__PURE__ */ i("div", { className: L.searchContainer, children: /* @__PURE__ */ i(
2327
2337
  Sr,
2328
2338
  {
2329
- value: de,
2330
- onChange: Kt,
2331
- leftSlot: /* @__PURE__ */ a(ln, {}),
2339
+ value: le,
2340
+ onChange: qt,
2341
+ leftSlot: /* @__PURE__ */ i(cn, {}),
2332
2342
  placeholder: h || "Filter tasks..."
2333
2343
  }
2334
2344
  ) }),
2335
- g && /* @__PURE__ */ a(
2336
- Wr,
2345
+ g && /* @__PURE__ */ i(
2346
+ jr,
2337
2347
  {
2338
2348
  color: r,
2339
2349
  page: Qt,
2340
- trigger: /* @__PURE__ */ a(te, { variant: "surface", "aria-label": "Filter columns", children: /* @__PURE__ */ a(cn, {}) }),
2350
+ trigger: /* @__PURE__ */ i(re, { variant: "surface", "aria-label": "Filter columns", children: /* @__PURE__ */ i(ln, {}) }),
2341
2351
  children: (p) => ""
2342
2352
  }
2343
2353
  ),
2344
- g && re && /* @__PURE__ */ b(
2345
- ke,
2354
+ g && ne && /* @__PURE__ */ v(
2355
+ $e,
2346
2356
  {
2347
2357
  variant: "surface",
2348
2358
  color: "crimson",
2349
2359
  onClick: () => {
2350
- De(Ne), R.fns.onSetPage(0);
2360
+ I(Be), z.fns.onSetPage(0);
2351
2361
  },
2352
2362
  children: [
2353
- /* @__PURE__ */ a(wt, {}),
2363
+ /* @__PURE__ */ i($t, {}),
2354
2364
  "Clear filters"
2355
2365
  ]
2356
2366
  }
2357
2367
  )
2358
2368
  ] }),
2359
- u && be.length !== 0 && /* @__PURE__ */ b(D, { gap: "2", children: [
2360
- /* @__PURE__ */ b(ut, { variant: "soft", "aria-label": "Edit rows", children: [
2361
- /* @__PURE__ */ a(dn, {}),
2362
- !qe && "Edit"
2369
+ u && Ze.length !== 0 && /* @__PURE__ */ v(D, { gap: "2", children: [
2370
+ /* @__PURE__ */ v(ut, { variant: "soft", "aria-label": "Edit rows", children: [
2371
+ /* @__PURE__ */ i(dn, {}),
2372
+ !Ue && "Edit"
2363
2373
  ] }),
2364
- /* @__PURE__ */ b(ut, { color: "red", "aria-label": "Delete rows", children: [
2365
- /* @__PURE__ */ a(un, {}),
2366
- !qe && "Delete"
2374
+ /* @__PURE__ */ v(ut, { color: "red", "aria-label": "Delete rows", children: [
2375
+ /* @__PURE__ */ i(un, {}),
2376
+ !Ue && "Delete"
2367
2377
  ] })
2368
2378
  ] })
2369
2379
  ] }),
2370
- T,
2371
- /* @__PURE__ */ a(
2372
- Fn,
2380
+ A,
2381
+ /* @__PURE__ */ i(
2382
+ Ln,
2373
2383
  {
2374
- className: S(F.table, O),
2375
- data: Ue,
2384
+ className: y(L.table, te),
2385
+ data: We,
2376
2386
  theme: en,
2377
- sort: Xt,
2378
- pagination: f && R,
2379
- select: Jt,
2387
+ sort: Jt,
2388
+ pagination: m && z,
2389
+ select: Xt,
2380
2390
  layout: Zt,
2381
2391
  ref: n,
2382
- children: (p) => /* @__PURE__ */ b(X, { children: [
2383
- /* @__PURE__ */ a(Un, { children: /* @__PURE__ */ b(Wn, { children: [
2384
- u && /* @__PURE__ */ a(Xn, { className: F.tableHeaderCell }),
2392
+ children: (p) => /* @__PURE__ */ v(J, { children: [
2393
+ /* @__PURE__ */ i(Wn, { children: /* @__PURE__ */ v(Hn, { children: [
2394
+ u && /* @__PURE__ */ i(Xn, { className: L.tableHeaderCell }),
2385
2395
  ...Yt
2386
2396
  ] }) }),
2387
- /* @__PURE__ */ b(Hn, { children: [
2388
- p.length === 0 && /* @__PURE__ */ a(Tn, { className: F.noDataTextContainer, children: /* @__PURE__ */ a(gt, { children: "There is no data" }) }),
2389
- p.map((v) => /* @__PURE__ */ b(
2390
- jn,
2397
+ /* @__PURE__ */ v(jn, { children: [
2398
+ p.length === 0 && /* @__PURE__ */ i(kn, { className: L.noDataTextContainer, children: /* @__PURE__ */ i(gt, { children: N }) }),
2399
+ p.map((_) => /* @__PURE__ */ v(
2400
+ Fn,
2391
2401
  {
2392
- item: v,
2393
- className: S(F.tableRow, Le, v.className),
2394
- onClick: v.onClick,
2402
+ item: _,
2403
+ className: y(L.tableRow, Ce, _.className),
2404
+ onClick: _.onClick,
2395
2405
  children: [
2396
- u && /* @__PURE__ */ a(Qn, { item: v }, v.id),
2397
- o.map((N, I) => /* @__PURE__ */ a(
2406
+ u && /* @__PURE__ */ i(Jn, { item: _ }, _.id),
2407
+ t.map((T, O) => /* @__PURE__ */ i(
2398
2408
  gt,
2399
2409
  {
2400
- className: S(
2401
- F.tableCell,
2402
- Ce,
2403
- v[N.id].className
2410
+ className: y(
2411
+ L.tableCell,
2412
+ Ye,
2413
+ _[T.id].className
2404
2414
  ),
2405
- children: /* @__PURE__ */ a(ot, { children: v[N.id].label })
2415
+ children: /* @__PURE__ */ i(rt, { children: _[T.id].label })
2406
2416
  },
2407
- I
2417
+ O
2408
2418
  ))
2409
2419
  ]
2410
2420
  },
2411
- v.id
2421
+ _.id
2412
2422
  ))
2413
2423
  ] })
2414
2424
  ] })
2415
2425
  }
2416
2426
  ),
2417
- $ && /* @__PURE__ */ b(D, { className: F.tableBottomContainer, wrap: "wrap", direction: qe ? "column" : "row", children: [
2418
- C && /* @__PURE__ */ b(D, { className: F.rowsPerPageContainer, children: [
2419
- /* @__PURE__ */ a("div", { className: F.rowsPerPageText, children: "Rows per page:" }),
2420
- /* @__PURE__ */ a(
2421
- Jo,
2427
+ w && /* @__PURE__ */ v(D, { className: L.tableBottomContainer, wrap: "wrap", direction: Ue ? "column" : "row", children: [
2428
+ C && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, children: [
2429
+ /* @__PURE__ */ i("div", { className: L.rowsPerPageText, children: "Rows per page:" }),
2430
+ /* @__PURE__ */ i(
2431
+ Qo,
2422
2432
  {
2423
- items: L,
2424
- defaultValue: L[0].value.toString(),
2433
+ items: j,
2434
+ defaultValue: j[0].value.toString(),
2425
2435
  onValueChange: (p) => {
2426
- R.fns.onSetSize(Number(p)), B(Number(p));
2436
+ z.fns.onSetSize(Number(p)), V(Number(p));
2427
2437
  },
2428
- placeholder: L[0].itemContent,
2438
+ placeholder: j[0].itemContent,
2429
2439
  "aria-label": "Select number of rows per page"
2430
2440
  }
2431
2441
  )
2432
2442
  ] }),
2433
- _ && /* @__PURE__ */ a(D, { justify: "center", children: Z > 0 && `Page ${R.state.page + 1} of ${Z}` }),
2434
- f && /* @__PURE__ */ b(D, { className: F.paginationContainer, gap: "2", justify: "end", children: [
2435
- /* @__PURE__ */ a(
2436
- te,
2443
+ b && /* @__PURE__ */ i(D, { justify: "center", children: Y > 0 && `Page ${z.state.page + 1} of ${Y}` }),
2444
+ m && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, gap: "2", justify: "end", children: [
2445
+ /* @__PURE__ */ i(
2446
+ re,
2437
2447
  {
2438
2448
  variant: "surface",
2439
- onClick: () => R.fns.onSetPage(0),
2440
- disabled: R.state.page === 0 || Z === 0,
2449
+ onClick: () => z.fns.onSetPage(0),
2450
+ disabled: z.state.page === 0 || Y === 0,
2441
2451
  "aria-label": "Go to first page",
2442
- children: /* @__PURE__ */ a(hn, {})
2452
+ children: /* @__PURE__ */ i(hn, {})
2443
2453
  }
2444
2454
  ),
2445
- /* @__PURE__ */ a(
2446
- te,
2455
+ /* @__PURE__ */ i(
2456
+ re,
2447
2457
  {
2448
2458
  variant: "surface",
2449
- disabled: R.state.page === 0 || Z === 0,
2450
- onClick: () => R.fns.onSetPage(R.state.page - 1),
2459
+ disabled: z.state.page === 0 || Y === 0,
2460
+ onClick: () => z.fns.onSetPage(z.state.page - 1),
2451
2461
  "aria-label": "Previous page",
2452
- children: /* @__PURE__ */ a(pn, {})
2462
+ children: /* @__PURE__ */ i(pn, {})
2453
2463
  }
2454
2464
  ),
2455
- /* @__PURE__ */ a(
2456
- te,
2465
+ /* @__PURE__ */ i(
2466
+ re,
2457
2467
  {
2458
2468
  variant: "surface",
2459
- disabled: R.state.page + 1 === Z || Z === 0,
2460
- onClick: () => R.fns.onSetPage(R.state.page + 1),
2469
+ disabled: z.state.page + 1 === Y || Y === 0,
2470
+ onClick: () => z.fns.onSetPage(z.state.page + 1),
2461
2471
  "aria-label": "Next page",
2462
- children: /* @__PURE__ */ a(mn, {})
2472
+ children: /* @__PURE__ */ i(fn, {})
2463
2473
  }
2464
2474
  ),
2465
- /* @__PURE__ */ a(
2466
- te,
2475
+ /* @__PURE__ */ i(
2476
+ re,
2467
2477
  {
2468
2478
  variant: "surface",
2469
- disabled: R.state.page + 1 === Z || Z === 0,
2470
- onClick: () => R.fns.onSetPage(Z - 1),
2479
+ disabled: z.state.page + 1 === Y || Y === 0,
2480
+ onClick: () => z.fns.onSetPage(Y - 1),
2471
2481
  "aria-label": "Go to last page",
2472
- children: /* @__PURE__ */ a(fn, {})
2482
+ children: /* @__PURE__ */ i(mn, {})
2473
2483
  }
2474
2484
  )
2475
2485
  ] })
2476
2486
  ] })
2477
2487
  ] });
2478
- }), Hi = U.memo(ei), Vt = [
2479
- ["Emily Davis", "Sr. Manger", "Female", "55", "$141,604 ", "United States", "Seattle"],
2480
- ["Theodore Dinh", "Technical Architect", "Male", "59", "$99,975 ", "China", "Chongqing"],
2481
- ["Luna Sanders", "Director", "Female", "50", "$163,099 ", "United States", "Chicago"],
2482
- ["Austin Vo", "Sr. Analyst", "Male", "55", "$95,409 ", "United States", "Phoenix"],
2483
- ["Joshua Gupta", "Account Representative", "Male", "57", "$50,994 ", "China", "Chongqing"],
2484
- ["Ruby Barnes", "Manager", "Female", "27", "$119,746 ", "United States", "Phoenix"],
2485
- ["Luke Martin", "Analyst", "Male", "25", "$41,336 ", "United States", "Miami"],
2486
- ["Easton Bailey", "Manager", "Male", "29", "$113,527 ", "United States", "Austin"],
2487
- ["Madeline Walker", "Sr. Analyst", "Female", "34", "$77,203 ", "United States", "Chicago"],
2488
- ["Savannah Ali", "Sr. Manger", "Female", "36", "$157,333 ", "United States", "Miami"],
2489
- ["Camila Rogers", "Controls Engineer", "Female", "27", "$109,851 ", "United States", "Seattle"],
2490
- ["Eli Jones", "Manager", "Male", "59", "$105,086 ", "United States", "Austin"],
2491
- ["Everleigh Ng", "Sr. Manger", "Female", "51", "$146,742 ", "China", "Shanghai"],
2492
- ["Robert Yang", "Sr. Analyst", "Male", "31", "$97,078 ", "United States", "Austin"],
2493
- ["Isabella Xi", "Vice President", "Female", "41", "$249,270 ", "United States", "Seattle"],
2494
- ["Bella Powell", "Director", "Female", "65", "$175,837 ", "United States", "Phoenix"],
2495
- ["Camila Silva", "Sr. Manger", "Female", "64", "$154,828 ", "United States", "Seattle"],
2496
- ["David Barnes", "Director", "Male", "64", "$186,503 ", "United States", "Columbus"],
2497
- ["Adam Dang", "Director", "Male", "45", "$166,331 ", "China", "Chongqing"],
2498
- ["Elias Alvarado", "Sr. Manger", "Male", "56", "$146,140 ", "Brazil", "Manaus"],
2499
- ["Eva Rivera", "Director", "Female", "36", "$151,703 ", "United States", "Miami"],
2500
- ["Logan Rivera", "Director", "Male", "59", "$172,787 ", "Brazil", "Rio de Janerio"],
2501
- ["Leonardo Dixon", "Analyst", "Male", "37", "$49,998 ", "United States", "Seattle"],
2502
- ["Mateo Her", "Vice President", "Male", "44", "$207,172 ", "China", "Chongqing"],
2503
- ["Jose Henderson", "Director", "Male", "41", "$152,239 ", "United States", "Columbus"],
2504
- ["Abigail Mejia", "Quality Engineer", "Female", "56", "$98,581 ", "Brazil", "Rio de Janerio"],
2505
- ["Wyatt Chin", "Vice President", "Male", "43", "$246,231 ", "United States", "Seattle"],
2506
- ["Carson Lu", "Engineering Manager", "Male", "64", "$99,354 ", "China", "Beijing"],
2507
- ["Dylan Choi", "Vice President", "Male", "63", "$231,141 ", "China", "Beijing"],
2508
- ["Ezekiel Kumar", "IT Coordinator", "Male", "28", "$54,775 ", "United States", "Columbus"],
2509
- ["Dominic Guzman", "Analyst", "Male", "65", "$55,499 ", "Brazil", "Manaus"],
2510
- ["Angel Powell", "Analyst II", "Male", "61", "$66,521 ", "United States", "Seattle"],
2511
- ["Mateo Vu", "Account Representative", "Male", "30", "$59,100 ", "China", "Chongqing"],
2512
- ["Caroline Jenkins", "Analyst", "Female", "27", "$49,011 ", "United States", "Chicago"],
2513
- ["Nora Brown", "Enterprise Architect", "Female", "32", "$99,575 ", "United States", "Austin"],
2514
- ["Adeline Huang", "Controls Engineer", "Female", "34", "$99,989 ", "China", "Chengdu"],
2515
- ["Jackson Perry", "Vice President", "Male", "27", "$256,420 ", "United States", "Phoenix"],
2516
- ["Riley Padilla", "Technical Architect", "Female", "35", "$78,940 ", "United States", "Miami"],
2517
- ["Leah Pena", "Enterprise Architect", "Female", "57", "$82,872 ", "Brazil", "Manaus"],
2518
- ["Owen Lam", "Sr. Business Partner", "Male", "30", "$86,317 ", "China", "Chengdu"],
2519
- ["Kennedy Foster", "Manager", "Female", "53", "$113,135 ", "United States", "Austin"],
2520
- ["John Moore", "Vice President", "Male", "52", "$199,808 ", "United States", "Seattle"],
2521
- ["William Vu", "Account Representative", "Male", "37", "$56,037 ", "China", "Shanghai"],
2522
- ["Sadie Washington", "Sr. Manger", "Female", "29", "$122,350 ", "United States", "Phoenix"],
2523
- ["Gabriel Holmes", "Enterprise Architect", "Male", "40", "$92,952 ", "United States", "Seattle"],
2524
- ["Wyatt Rojas", "Computer Systems Manager", "Male", "32", "$79,921 ", "United States", "Austin"],
2525
- ["Eva Coleman", "Director", "Female", "37", "$167,199 ", "United States", "Seattle"],
2526
- ["Dominic Clark", "Quality Engineer", "Male", "52", "$71,476 ", "United States", "Phoenix"],
2527
- ["Lucy Alexander", "Director", "Female", "45", "$189,420 ", "United States", "Seattle"],
2528
- ["Everleigh Washington", "HRIS Analyst", "Female", "64", "$64,057 ", "United States", "Phoenix"],
2529
- ["Leilani Butler", "Analyst II", "Female", "27", "$68,728 ", "United States", "Phoenix"],
2530
- ["Peyton Huang", "Sr. Manger", "Female", "25", "$125,633 ", "China", "Beijing"]
2531
- ], ji = (t = !0, e = !0, n = !0) => [
2532
- {
2533
- id: "full_name",
2534
- label: "Full Name",
2535
- sort: t,
2536
- search: e
2537
- },
2538
- {
2539
- id: "job_title",
2540
- label: "Job Title",
2541
- sort: t,
2542
- search: e,
2543
- filter: n
2544
- },
2545
- {
2546
- id: "gender",
2547
- label: "Gender",
2548
- sort: t,
2549
- search: e,
2550
- filter: n
2551
- },
2552
- {
2553
- id: "age",
2554
- label: "Age",
2555
- sort: t
2556
- },
2557
- {
2558
- id: "annual_salary",
2559
- label: "Annual Salary",
2560
- sort: t
2561
- },
2562
- {
2563
- id: "country",
2564
- label: "Country",
2565
- sort: t,
2566
- search: e,
2567
- filter: n
2568
- }
2569
- ], Vi = (t) => Vt.slice(0, t).map((e, n) => ({
2570
- id: `row-${n}`,
2571
- columns: {
2572
- full_name: {
2573
- id: `full_name_${n}`,
2574
- value: e[0],
2575
- label: e[0]
2576
- },
2577
- job_title: {
2578
- id: `job_title_${n}`,
2579
- value: e[1],
2580
- label: e[1]
2581
- },
2582
- gender: {
2583
- id: `gender_${n}`,
2584
- value: e[2],
2585
- label: e[2]
2586
- },
2587
- age: {
2588
- id: `age_${n}`,
2589
- value: e[3],
2590
- label: e[3]
2591
- },
2592
- annual_salary: {
2593
- id: `annual_salary_${n}`,
2594
- value: e[4],
2595
- label: e[4]
2596
- },
2597
- country: {
2598
- id: `country_${n}`,
2599
- value: e[5],
2600
- label: e[5]
2601
- }
2602
- }
2603
- })), qi = () => [
2604
- {
2605
- id: "full_name",
2606
- label: "Full Name",
2607
- sort: !0,
2608
- search: !0,
2609
- width: "120px"
2610
- },
2611
- {
2612
- id: "job_title",
2613
- label: "Job Title",
2614
- search: !0,
2615
- filter: !0,
2616
- width: "220px"
2617
- },
2618
- {
2619
- id: "gender",
2620
- label: "Gender",
2621
- sort: !0,
2622
- filter: !0
2623
- },
2624
- {
2625
- id: "age",
2626
- label: "Age",
2627
- sort: !0
2628
- },
2629
- {
2630
- id: "annual_salary",
2631
- label: "Annual Salary",
2632
- sort: !0,
2633
- filter: !0,
2634
- filterValues: [
2635
- {
2636
- value: 1,
2637
- label: /* @__PURE__ */ a("div", { style: { backgroundColor: "red" }, children: "< $40000" })
2638
- },
2639
- {
2640
- value: 2,
2641
- label: /* @__PURE__ */ a("div", { style: { backgroundColor: "orange" }, children: "$40000 - $70000" })
2642
- },
2643
- {
2644
- value: 3,
2645
- label: /* @__PURE__ */ a("div", { style: { backgroundColor: "yellow" }, children: "$70000 - $100000" })
2646
- },
2647
- {
2648
- value: 4,
2649
- label: /* @__PURE__ */ a("div", { style: { backgroundColor: "cyan" }, children: "$100000 - $150000" })
2650
- },
2651
- {
2652
- value: 5,
2653
- label: /* @__PURE__ */ a("div", { style: { backgroundColor: "lime" }, children: "> $150000" })
2654
- }
2655
- ]
2656
- },
2657
- {
2658
- id: "country",
2659
- label: "Country",
2660
- search: !0,
2661
- filter: !0,
2662
- width: "1fr"
2663
- },
2664
- {
2665
- id: "remove_user",
2666
- label: ""
2667
- }
2668
- ], Je = (t) => {
2669
- const e = t.replace(/\D/g, "");
2670
- return parseInt(e);
2671
- }, Gi = (t) => Vt.slice(0, t).map((e, n) => ({
2672
- id: `row-${n}`,
2673
- onClick: () => alert(`Clicked row ${n + 1}`),
2674
- columns: {
2675
- full_name: {
2676
- id: `full_name_${n}`,
2677
- value: e[0],
2678
- label: e[0]
2679
- },
2680
- job_title: {
2681
- id: `job_title_${n}`,
2682
- value: e[1],
2683
- label: e[1]
2684
- },
2685
- gender: {
2686
- id: `gender_${n}`,
2687
- value: e[2],
2688
- label: e[2] === "Male" ? /* @__PURE__ */ a("span", { children: "🧑" }) : /* @__PURE__ */ a("span", { children: "👩" }),
2689
- sortValue: e[2] === "Male" ? 1 : 2
2690
- },
2691
- age: {
2692
- id: `age_${n}`,
2693
- value: e[3],
2694
- label: e[3]
2695
- },
2696
- annual_salary: {
2697
- id: `annual_salary_${n}`,
2698
- value: e[4],
2699
- label: e[4],
2700
- filterValue: Je(e[4]) < 4e4 ? 1 : Je(e[4]) < 7e4 ? 2 : Je(e[4]) < 1e5 ? 3 : Je(e[4]) < 15e4 ? 4 : 5
2701
- },
2702
- country: {
2703
- id: `country_${n}`,
2704
- value: e[5],
2705
- label: e[5],
2706
- searchValue: (
2707
- // Search for country or its abbreviation
2708
- // Ex: (Search for "United States" or "U.S."
2709
- e[5].split(" ").map((o, i, r) => r.length === 1 ? o.substring(0, 2) : o.charAt(0)).join(".") + "." + e[5]
2710
- )
2711
- },
2712
- remove_user: {
2713
- id: `remove_user_${n}`,
2714
- value: -1,
2715
- label: /* @__PURE__ */ a(
2716
- te,
2717
- {
2718
- onClick: () => alert(`This is user ${e[0]}`),
2719
- radius: "large",
2720
- "aria-label": "Identify user",
2721
- children: /* @__PURE__ */ a(gn, {})
2722
- }
2723
- )
2724
- }
2725
- }
2726
- }));
2488
+ }), js = W.memo(Zi);
2727
2489
  export {
2728
- Yi as AccessibleIcon,
2729
- qi as AdvancedTableColumns,
2730
- Gi as AdvancedTableRows,
2731
- No as AlertDialog,
2732
- Rt as AlertDialogContent,
2733
- wi as AlertDialogProvider,
2734
- Zi as AspectRatio,
2735
- es as Avatar,
2736
- _i as Badge,
2737
- ts as Blockquote,
2738
- ns as Box,
2739
- $i as Breadcrumb,
2740
- ke as Button,
2741
- It as ButtonGroup,
2742
- yi as ButtonList,
2743
- os as Callout,
2744
- rs as Card,
2745
- ct as Checkbox,
2746
- as as Code,
2747
- is as Container,
2748
- ss as ContextMenu,
2749
- ji as DefaultTableColumns,
2750
- Vi as DefaultTableRows,
2751
- Ui as DefaultTheme,
2752
- xi as Dialog,
2753
- ki as DropdownMenu,
2754
- Ti as DropdownSelect,
2755
- ls as Em,
2756
- J as Flex,
2757
- cs as Grid,
2758
- ds as Heading,
2759
- us as HoverCard,
2490
+ Ks as AccessibleIcon,
2491
+ Io as AlertDialog,
2492
+ At as AlertDialogContent,
2493
+ Ss as AlertDialogProvider,
2494
+ qs as AspectRatio,
2495
+ Xs as Avatar,
2496
+ _s as Badge,
2497
+ Js as Blockquote,
2498
+ Qs as Box,
2499
+ bs as Breadcrumb,
2500
+ $e as Button,
2501
+ Rt as ButtonGroup,
2502
+ ys as ButtonList,
2503
+ Ys as Callout,
2504
+ Zs as Card,
2505
+ dt as Checkbox,
2506
+ ea as Code,
2507
+ ta as Container,
2508
+ na as ContextMenu,
2509
+ Ws as DefaultTheme,
2510
+ xs as Dialog,
2511
+ Ps as DropdownMenu,
2512
+ ks as DropdownSelect,
2513
+ oa as Em,
2514
+ X as Flex,
2515
+ ra as Grid,
2516
+ ia as Heading,
2517
+ sa as HoverCard,
2760
2518
  qo as HoverUtility,
2761
- te as IconButton,
2762
- Mi as IconColorUtility,
2519
+ re as IconButton,
2520
+ Os as IconColorUtility,
2763
2521
  Sr as Input,
2764
- hs as Inset,
2765
- ps as Kbd,
2766
- Ri as LeftAndRightPanels,
2767
- ms as Link,
2768
- Wr as MultiPagePopover,
2769
- Ni as MultiSelect,
2770
- Pr as Popover,
2771
- fs as Portal,
2772
- gs as Quote,
2773
- Cs as RadioGroup,
2774
- Kr as Root,
2775
- bs as ScrollArea,
2776
- vs as Section,
2777
- Jo as Select,
2778
- La as SelectAllCheckbox,
2779
- Bo as Separator,
2780
- Ai as Sidebar,
2781
- Ii as SlideOut,
2782
- _s as Slider,
2783
- $s as Slot,
2784
- Ss as Strong,
2785
- Di as Switch,
2786
- Hi as Table,
2787
- Vt as TableData,
2788
- ys as Tabs,
2789
- ot as Text,
2790
- Oi as TextArea,
2791
- xs as TextField,
2792
- ws as Theme,
2793
- oa as Toast,
2794
- zt as ToastContext,
2795
- Li as ToastProvider,
2796
- zi as ToggleGroup,
2797
- Ei as Toolbar,
2798
- Fi as Tooltip,
2799
- Ps as VisuallyHidden,
2800
- Si as divButtonProps,
2801
- ia as unsafeShowToast,
2802
- ks as updateThemeAppearanceClass,
2803
- Ao as useAlertDialog,
2804
- Pi as useDiscardAlertDialog,
2805
- z as useSeverityColor,
2806
- Ts as useThemeContext,
2807
- Bi as useToast,
2808
- vi as useViewportSize
2522
+ aa as Inset,
2523
+ ca as Kbd,
2524
+ Rs as LeftAndRightPanels,
2525
+ la as Link,
2526
+ jr as MultiPagePopover,
2527
+ Ns as MultiSelect,
2528
+ Nr as Popover,
2529
+ da as Portal,
2530
+ ua as Quote,
2531
+ ha as RadioGroup,
2532
+ qr as Root,
2533
+ pa as ScrollArea,
2534
+ fa as Section,
2535
+ Qo as Select,
2536
+ Li as SelectAllCheckbox,
2537
+ Wo as Separator,
2538
+ Ds as Sidebar,
2539
+ Is as SlideOut,
2540
+ ma as Slider,
2541
+ ga as Slot,
2542
+ Ca as Strong,
2543
+ Ts as Switch,
2544
+ js as Table,
2545
+ va as Tabs,
2546
+ rt as Text,
2547
+ zs as TextArea,
2548
+ _a as TextField,
2549
+ ba as Theme,
2550
+ oi as Toast,
2551
+ Bt as ToastContext,
2552
+ Ms as ToastProvider,
2553
+ As as ToggleGroup,
2554
+ Es as Toolbar,
2555
+ Ls as Tooltip,
2556
+ wa as VisuallyHidden,
2557
+ ws as divButtonProps,
2558
+ si as unsafeShowToast,
2559
+ ya as updateThemeAppearanceClass,
2560
+ Ro as useAlertDialog,
2561
+ $s as useDiscardAlertDialog,
2562
+ E as useSeverityColor,
2563
+ xa as useThemeContext,
2564
+ Bs as useToast,
2565
+ vs as useViewportSize
2809
2566
  };