@overmap-ai/blocks 0.0.12-alpha.2 → 1.0.1

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