@overmap-ai/blocks 1.0.1 → 1.0.2-alpha.0

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