@overmap-ai/blocks 0.0.7-alpha.1 → 0.0.7-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/blocks.js CHANGED
@@ -2,10 +2,10 @@ import "@radix-ui/themes/styles.css";
2
2
  export * from "@radix-ui/colors";
3
3
  import { Cross1Icon as Fe, DragHandleDots2Icon as ae, InfoCircledIcon as Xe, Cross2Icon as Ue } from "@radix-ui/react-icons";
4
4
  export * from "@radix-ui/react-icons";
5
- import { useThemeContext as qe, Badge as Ke, Button as Qe, IconButton as De, Flex as b, Box as M, Card as Ye, Inset as ee, Dialog as H, AlertDialog as W, DropdownMenu as O, Select as B, Checkbox as Je, Switch as Ze, Portal as et, TextField as te, Text as ce, Popover as ne, TextArea as tt, Callout as oe, Theme as nt, Separator as xe } from "@radix-ui/themes";
6
- import { AccessibleIcon as co, AspectRatio as lo, Avatar as uo, Blockquote as ho, Box as po, Callout as mo, Card as fo, Checkbox as go, Code as Co, Container as vo, ContextMenu as _o, Em as wo, Flex as yo, Grid as xo, Heading as To, HoverCard as So, Inset as Po, Kbd as Ro, Link as bo, Portal as Do, Quote as $o, RadioGroup as zo, ScrollArea as Io, Section as Oo, Slider as ko, Slot as No, Strong as Ao, Table as Bo, Tabs as Eo, TextField as Lo, Theme as Mo, Tooltip as Wo, VisuallyHidden as jo, updateThemeAppearanceClass as Go, useThemeContext as Vo } from "@radix-ui/themes";
7
- import { jsx as t, jsxs as v, Fragment as le } from "react/jsx-runtime";
8
- import q, { useMemo as j, forwardRef as T, memo as _, createContext as ge, useContext as Ce, useState as $, useCallback as y, createElement as $e, useEffect as ue, useRef as se, useLayoutEffect as ot } from "react";
5
+ import { useThemeContext as qe, Badge as Ke, Button as Qe, IconButton as De, Flex as b, Box as M, Card as Ye, Inset as ee, Dialog as V, AlertDialog as W, DropdownMenu as O, Select as E, Checkbox as Je, Switch as Ze, Portal as et, TextField as te, Text as ce, Popover as ne, TextArea as tt, Callout as oe, Theme as nt, Separator as xe } from "@radix-ui/themes";
6
+ import { AccessibleIcon as lo, AspectRatio as uo, Avatar as ho, Blockquote as po, Box as mo, Callout as fo, Card as go, Checkbox as Co, Code as vo, Container as _o, ContextMenu as yo, Em as wo, Flex as xo, Grid as To, Heading as So, HoverCard as Po, Inset as Ro, Kbd as bo, Link as Do, Portal as $o, Quote as zo, RadioGroup as Io, ScrollArea as Oo, Section as ko, Slider as No, Slot as Ao, Strong as Eo, Table as Bo, Tabs as Lo, TextField as Mo, Theme as Wo, Tooltip as jo, VisuallyHidden as Go, updateThemeAppearanceClass as Ho, useThemeContext as Vo } from "@radix-ui/themes";
7
+ import { jsx as n, jsxs as v, Fragment as le } from "react/jsx-runtime";
8
+ import q, { useMemo as j, forwardRef as T, memo as _, createContext as ge, useContext as Ce, useState as D, useCallback as w, createElement as $e, useEffect as ue, useRef as se, useLayoutEffect as ot } from "react";
9
9
  import * as re from "@radix-ui/react-dialog";
10
10
  import { Resizable as pe } from "re-resizable";
11
11
  import { Transition as Te } from "react-transition-group";
@@ -23,68 +23,68 @@ var ze = { exports: {} };
23
23
  */
24
24
  (function(r) {
25
25
  (function() {
26
- var a = {}.hasOwnProperty;
26
+ var s = {}.hasOwnProperty;
27
27
  function o() {
28
- for (var n = [], i = 0; i < arguments.length; i++) {
28
+ for (var t = [], i = 0; i < arguments.length; i++) {
29
29
  var e = arguments[i];
30
30
  if (e) {
31
31
  var c = typeof e;
32
32
  if (c === "string" || c === "number")
33
- n.push(e);
33
+ t.push(e);
34
34
  else if (Array.isArray(e)) {
35
35
  if (e.length) {
36
- var s = o.apply(null, e);
37
- s && n.push(s);
36
+ var a = o.apply(null, e);
37
+ a && t.push(a);
38
38
  }
39
39
  } else if (c === "object") {
40
40
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]")) {
41
- n.push(e.toString());
41
+ t.push(e.toString());
42
42
  continue;
43
43
  }
44
44
  for (var u in e)
45
- a.call(e, u) && e[u] && n.push(u);
45
+ s.call(e, u) && e[u] && t.push(u);
46
46
  }
47
47
  }
48
48
  }
49
- return n.join(" ");
49
+ return t.join(" ");
50
50
  }
51
51
  r.exports ? (o.default = o, r.exports = o) : window.classNames = o;
52
52
  })();
53
53
  })(ze);
54
54
  var lt = ze.exports;
55
55
  const x = /* @__PURE__ */ ct(lt);
56
- function E(r, a) {
56
+ function B(r, s) {
57
57
  return j(() => {
58
58
  if (r !== void 0)
59
59
  if (typeof r == "object") {
60
60
  if (!("initial" in r))
61
61
  throw new Error("Expected initial property to be set in Responsive object");
62
- return Object.fromEntries(Object.entries(r).map(([o, n]) => [o, a[n]]));
62
+ return Object.fromEntries(Object.entries(r).map(([o, t]) => [o, s[t]]));
63
63
  } else
64
- return a[r];
65
- }, [a, r]);
64
+ return s[r];
65
+ }, [s, r]);
66
66
  }
67
67
  const ut = {
68
68
  success: "green",
69
69
  danger: "red",
70
70
  info: "gray"
71
71
  }, R = (r) => {
72
- const a = qe();
72
+ const s = qe();
73
73
  if (r)
74
- return r === "primary" ? a.accentColor : ut[r];
75
- }, dt = T(function({ className: a, severity: o = "primary", color: n, children: i, ...e }, c) {
76
- const s = R(o);
77
- return /* @__PURE__ */ t(
74
+ return r === "primary" ? s.accentColor : ut[r];
75
+ }, dt = T(function({ className: s, severity: o = "primary", color: t, children: i, ...e }, c) {
76
+ const a = R(o);
77
+ return /* @__PURE__ */ n(
78
78
  Ke,
79
79
  {
80
- className: x("overmap-badge", a),
80
+ className: x("overmap-badge", s),
81
81
  ref: c,
82
- color: n || s,
82
+ color: t || a,
83
83
  ...e,
84
84
  children: i
85
85
  }
86
86
  );
87
- }), En = _(dt), ht = "_fluid_r73gr_1", pt = "_hoverSpin90Clockwise_r73gr_15", mt = "_hoverSpin180Clockwise_r73gr_25", ft = "_hoverSpin360Clockwise_r73gr_35", U = {
87
+ }), Bn = _(dt), ht = "_fluid_r73gr_1", pt = "_hoverSpin90Clockwise_r73gr_15", mt = "_hoverSpin180Clockwise_r73gr_25", ft = "_hoverSpin360Clockwise_r73gr_35", U = {
88
88
  fluid: ht,
89
89
  hoverSpin90Clockwise: pt,
90
90
  hoverSpin180Clockwise: mt,
@@ -103,18 +103,18 @@ const ut = {
103
103
  small: "1",
104
104
  medium: "2",
105
105
  large: "3"
106
- }, Oe = ge({}), ve = () => Ce(Oe), Ct = T(function(a, o) {
107
- const n = ve(), {
106
+ }, Oe = ge({}), ve = () => Ce(Oe), Ct = T(function(s, o) {
107
+ const t = ve(), {
108
108
  className: i,
109
109
  type: e = "button",
110
- fluid: c = n.fluid ?? !1,
111
- size: s = n.size ?? "medium",
112
- severity: u = n.severity ?? "primary",
113
- hoverEffects: l = n.hoverEffects ?? [],
114
- variant: h = n.variant,
110
+ fluid: c = t.fluid ?? !1,
111
+ size: a = t.size ?? "medium",
112
+ severity: u = t.severity ?? "primary",
113
+ hoverEffects: l = t.hoverEffects ?? [],
114
+ variant: h = t.variant,
115
115
  ...p
116
- } = a, m = R(u), f = l.map((d) => Ie[d]);
117
- return /* @__PURE__ */ t(
116
+ } = s, m = R(u), f = l.map((d) => Ie[d]);
117
+ return /* @__PURE__ */ n(
118
118
  Qe,
119
119
  {
120
120
  ref: o,
@@ -123,123 +123,123 @@ const ut = {
123
123
  [U.fluid]: c
124
124
  }),
125
125
  color: m,
126
- size: E(s, F),
126
+ size: B(a, F),
127
127
  variant: h,
128
128
  ...p
129
129
  }
130
130
  );
131
- }), me = q.memo(Ct), vt = T(function(a, o) {
132
- const n = ve(), {
131
+ }), me = q.memo(Ct), vt = T(function(s, o) {
132
+ const t = ve(), {
133
133
  className: i,
134
134
  children: e,
135
135
  type: c = "button",
136
- fluid: s = n.fluid ?? !1,
137
- size: u = n.size ?? "medium",
138
- severity: l = n.severity ?? "primary",
139
- hoverEffects: h = n.hoverEffects ?? [],
140
- variant: p = n.variant,
136
+ fluid: a = t.fluid ?? !1,
137
+ size: u = t.size ?? "medium",
138
+ severity: l = t.severity ?? "primary",
139
+ hoverEffects: h = t.hoverEffects ?? [],
140
+ variant: p = t.variant,
141
141
  ...m
142
- } = a, f = R(l), d = (h == null ? void 0 : h.map((g) => Ie[g])) || [];
143
- return /* @__PURE__ */ t(
142
+ } = s, f = R(l), d = (h == null ? void 0 : h.map((g) => Ie[g])) || [];
143
+ return /* @__PURE__ */ n(
144
144
  De,
145
145
  {
146
146
  className: x(i, d, {
147
- [U.fluid]: s
147
+ [U.fluid]: a
148
148
  }),
149
149
  ref: o,
150
150
  color: f,
151
- size: E(u, F),
151
+ size: B(u, F),
152
152
  variant: p,
153
153
  type: c,
154
154
  ...m,
155
155
  children: e
156
156
  }
157
157
  );
158
- }), ke = q.memo(vt), _t = "_merged_wdgxo_1", wt = {
158
+ }), ke = q.memo(vt), _t = "_merged_wdgxo_1", yt = {
159
159
  merged: _t
160
- }, yt = {
160
+ }, wt = {
161
161
  row: { small: "4", medium: "4", large: "5" },
162
162
  column: { small: "2", medium: "3", large: "4" }
163
163
  }, xt = T(function({
164
- className: a,
164
+ className: s,
165
165
  merged: o = !1,
166
- children: n,
166
+ children: t,
167
167
  gap: i,
168
168
  direction: e = "row",
169
169
  severity: c,
170
- size: s = "medium",
170
+ size: a = "medium",
171
171
  variant: u,
172
172
  hoverEffects: l,
173
173
  fluid: h,
174
174
  ...p
175
175
  }, m) {
176
- const f = E(s, yt[e]), d = u === "ghost" ? f : "0";
177
- return /* @__PURE__ */ t(
176
+ const f = B(a, wt[e]), d = u === "ghost" ? f : "0";
177
+ return /* @__PURE__ */ n(
178
178
  b,
179
179
  {
180
- className: x("overmap-button-group", a, {
181
- [wt.merged]: o
180
+ className: x("overmap-button-group", s, {
181
+ [yt.merged]: o
182
182
  }),
183
183
  ref: m,
184
184
  gap: o ? i ?? d : i ?? "2",
185
185
  direction: e,
186
186
  "data-direction": e,
187
187
  ...p,
188
- children: /* @__PURE__ */ t(Oe.Provider, { value: { size: s, severity: c, variant: u, hoverEffects: l, fluid: h }, children: n })
188
+ children: /* @__PURE__ */ n(Oe.Provider, { value: { size: a, severity: c, variant: u, hoverEffects: l, fluid: h }, children: t })
189
189
  }
190
190
  );
191
191
  }), Ne = _(xt), Tt = "_separators_1f7v1_1", St = {
192
192
  separators: Tt
193
193
  }, Pt = _(
194
- T((r, a) => {
195
- const { children: o, border: n, before: i, after: e, size: c } = r, s = n ? "surface" : "ghost", u = E(c, F), h = /* @__PURE__ */ v(Ye, { ref: a, size: u, variant: s, children: [
194
+ T((r, s) => {
195
+ const { children: o, border: t, before: i, after: e, size: c } = r, a = t ? "surface" : "ghost", u = B(c, F), h = /* @__PURE__ */ v(Ye, { ref: s, size: u, variant: a, children: [
196
196
  i,
197
- i && e ? /* @__PURE__ */ t(ee, { side: "x", pt: "current", pb: "current", children: o }) : i ? /* @__PURE__ */ t(ee, { side: "bottom", pt: "current", children: o }) : e ? /* @__PURE__ */ t(ee, { side: "top", pb: "current", children: o }) : /* @__PURE__ */ t(ee, { children: o }),
197
+ i && e ? /* @__PURE__ */ n(ee, { side: "x", pt: "current", pb: "current", children: o }) : i ? /* @__PURE__ */ n(ee, { side: "bottom", pt: "current", children: o }) : e ? /* @__PURE__ */ n(ee, { side: "top", pb: "current", children: o }) : /* @__PURE__ */ n(ee, { children: o }),
198
198
  e
199
199
  ] });
200
- return s === "ghost" ? /* @__PURE__ */ t(M, { p: "3", children: h }) : h;
200
+ return a === "ghost" ? /* @__PURE__ */ n(M, { p: "3", children: h }) : h;
201
201
  })
202
202
  ), Rt = _(
203
- T((r, a) => {
204
- const { children: o, variant: n = "outline", size: i, className: e, ...c } = r;
205
- return /* @__PURE__ */ t(Pt, { ...c, border: n === "outline" || n === "surface", size: i, children: /* @__PURE__ */ t(
203
+ T((r, s) => {
204
+ const { children: o, variant: t = "outline", size: i, className: e, ...c } = r;
205
+ return /* @__PURE__ */ n(Pt, { ...c, border: t === "outline" || t === "surface", size: i, children: /* @__PURE__ */ n(
206
206
  Ne,
207
207
  {
208
208
  size: i,
209
209
  severity: "info",
210
- variant: n === "outline" ? "ghost" : n === "surface" ? "soft" : n,
210
+ variant: t === "outline" ? "ghost" : t === "surface" ? "soft" : t,
211
211
  className: x(e, St.separators),
212
212
  merged: !0,
213
213
  gap: "0",
214
214
  direction: "column",
215
- ref: a,
215
+ ref: s,
216
216
  children: o
217
217
  }
218
218
  ) });
219
219
  })
220
220
  ), bt = _(
221
- T((r, a) => {
222
- const { variant: o } = ve(), n = /* @__PURE__ */ t(me, { ref: a, ...r, radius: "large", variant: o });
223
- return o === "ghost" ? /* @__PURE__ */ t(M, { asChild: !0, my: "1", mx: "2", children: n }) : n;
221
+ T((r, s) => {
222
+ const { variant: o } = ve(), t = /* @__PURE__ */ n(me, { ref: s, ...r, radius: "large", variant: o });
223
+ return o === "ghost" ? /* @__PURE__ */ n(M, { asChild: !0, my: "1", mx: "2", children: t }) : t;
224
224
  })
225
225
  ), Mn = {
226
226
  Root: Rt,
227
227
  Item: bt
228
- }, Dt = _(function(a) {
229
- const { title: o, description: n, content: i, closeDialog: e } = a;
228
+ }, Dt = _(function(s) {
229
+ const { title: o, description: t, content: i, closeDialog: e } = s;
230
230
  return /* @__PURE__ */ v(b, { direction: "column", gap: "2", children: [
231
231
  /* @__PURE__ */ v(b, { direction: "column", gap: "1", children: [
232
232
  /* @__PURE__ */ v(b, { justify: "between", children: [
233
- /* @__PURE__ */ t(H.Title, { mb: "0", children: o }),
234
- /* @__PURE__ */ t(H.Close, { children: /* @__PURE__ */ t(De, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ t(Fe, {}) }) })
233
+ /* @__PURE__ */ n(V.Title, { mb: "0", children: o }),
234
+ /* @__PURE__ */ n(V.Close, { children: /* @__PURE__ */ n(De, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ n(Fe, {}) }) })
235
235
  ] }),
236
- n && /* @__PURE__ */ t(H.Description, { children: n })
236
+ t && /* @__PURE__ */ n(V.Description, { children: t })
237
237
  ] }),
238
238
  i(e)
239
239
  ] });
240
240
  }), Wn = _(
241
- T((r, a) => {
242
- const { children: o, content: n, title: i, description: e, onOpen: c, defaultOpen: s, onCloseInterrupt: u, ...l } = r, [h, p] = $(s ?? !1), m = y(
241
+ T((r, s) => {
242
+ const { children: o, content: t, title: i, description: e, onOpen: c, defaultOpen: a, onCloseInterrupt: u, ...l } = r, [h, p] = D(a ?? !1), m = w(
243
243
  (d) => {
244
244
  if (d && c)
245
245
  c();
@@ -248,7 +248,7 @@ const ut = {
248
248
  p(d);
249
249
  },
250
250
  [c, u]
251
- ), f = y(
251
+ ), f = w(
252
252
  (d) => {
253
253
  if (d != null && d.force)
254
254
  return p(!1);
@@ -256,199 +256,210 @@ const ut = {
256
256
  },
257
257
  [m]
258
258
  );
259
- return /* @__PURE__ */ v(H.Root, { open: h, onOpenChange: m, children: [
260
- /* @__PURE__ */ t(H.Trigger, { children: o }),
261
- /* @__PURE__ */ t(H.Content, { ref: a, ...l, children: /* @__PURE__ */ t(
259
+ return /* @__PURE__ */ v(V.Root, { open: h, onOpenChange: m, children: [
260
+ /* @__PURE__ */ n(V.Trigger, { children: o }),
261
+ /* @__PURE__ */ n(V.Content, { ref: s, ...l, children: /* @__PURE__ */ n(
262
262
  Dt,
263
263
  {
264
264
  closeDialog: f,
265
- content: n,
265
+ content: t,
266
266
  title: i,
267
267
  description: e
268
268
  }
269
269
  ) })
270
270
  ] });
271
271
  })
272
- ), Ae = (r) => /* @__PURE__ */ t(W.Title, { mb: "0", ...r }), $t = (r) => {
273
- const { title: a, description: o, actionText: n = "Confirm", cancelText: i = "Cancel", onAction: e, onCancel: c, severity: s } = r;
272
+ ), Ae = (r) => /* @__PURE__ */ n(W.Title, { mb: "0", ...r }), $t = (r) => {
273
+ const { title: s, description: o, actionText: t = "Confirm", cancelText: i = "Cancel", onAction: e, onCancel: c, severity: a } = r;
274
274
  return /* @__PURE__ */ v(b, { direction: "column", gap: "2", children: [
275
275
  /* @__PURE__ */ v(b, { direction: "column", gap: "1", children: [
276
- /* @__PURE__ */ t(Ae, { children: a }),
277
- /* @__PURE__ */ t(W.Description, { children: o })
276
+ /* @__PURE__ */ n(Ae, { children: s }),
277
+ /* @__PURE__ */ n(W.Description, { children: o })
278
278
  ] }),
279
279
  /* @__PURE__ */ v(b, { gap: "3", mt: "4", justify: "end", children: [
280
- /* @__PURE__ */ t(W.Cancel, { children: /* @__PURE__ */ t(me, { variant: "soft", severity: "info", onClick: c, children: i }) }),
281
- /* @__PURE__ */ t(W.Action, { children: /* @__PURE__ */ t(me, { variant: "solid", severity: s, onClick: e, children: n }) })
280
+ /* @__PURE__ */ n(W.Cancel, { children: /* @__PURE__ */ n(me, { variant: "soft", severity: "info", onClick: c, children: i }) }),
281
+ /* @__PURE__ */ n(W.Action, { children: /* @__PURE__ */ n(me, { variant: "solid", severity: a, onClick: e, children: t }) })
282
282
  ] })
283
283
  ] });
284
- }, zt = _(function(a) {
285
- const { open: o, setOpen: n, children: i, ...e } = a, c = j(() => ({
286
- close: () => n(!1),
284
+ }, zt = _(function(s) {
285
+ const { open: o, setOpen: t, children: i, ...e } = s, c = j(() => ({
286
+ close: () => t(!1),
287
287
  Title: Ae,
288
288
  Description: W.Description
289
- }), [n]);
290
- return /* @__PURE__ */ v(W.Root, { open: o, onOpenChange: n, children: [
291
- /* @__PURE__ */ t(W.Content, { children: "content" in e ? e.content(c) : /* @__PURE__ */ t($t, { ...e }) }),
289
+ }), [t]);
290
+ return /* @__PURE__ */ v(W.Root, { open: o, onOpenChange: t, children: [
291
+ /* @__PURE__ */ n(W.Content, { children: "content" in e ? e.content(c) : /* @__PURE__ */ n($t, { ...e }) }),
292
292
  i
293
293
  ] });
294
- }), Be = ge(() => {
294
+ }), Ee = ge(() => {
295
295
  throw new Error("No AlertDialogProvider found");
296
296
  }), It = {
297
297
  content: () => null
298
- }, jn = _(function({ children: a }) {
299
- const [o, n] = $(!1), [i, e] = $(It), c = y(
300
- (s) => {
298
+ }, jn = _(function({ children: s }) {
299
+ const [o, t] = D(!1), [i, e] = D(It), c = w(
300
+ (a) => {
301
301
  if (o)
302
302
  throw new Error("AlertDialog is already open");
303
- e(s), n(!0);
303
+ e(a), t(!0);
304
304
  },
305
305
  [o]
306
306
  );
307
- return /* @__PURE__ */ t(zt, { open: o, setOpen: n, ...i, children: /* @__PURE__ */ t(Be.Provider, { value: c, children: a }) });
308
- }), Ot = () => Ce(Be), Gn = () => {
307
+ return /* @__PURE__ */ n(zt, { open: o, setOpen: t, ...i, children: /* @__PURE__ */ n(Ee.Provider, { value: c, children: s }) });
308
+ }), Ot = () => Ce(Ee), Gn = () => {
309
309
  const r = Ot();
310
- return y(
311
- (a) => r({
310
+ return w(
311
+ (s) => r({
312
312
  title: "Discard changes?",
313
313
  description: "You have unsaved changes. Are you sure you want to discard them?",
314
314
  actionText: "Discard",
315
315
  severity: "danger",
316
- onAction: a.onDiscard,
317
- onCancel: a.onCancel
316
+ onAction: s.onDiscard,
317
+ onCancel: s.onCancel
318
318
  }),
319
319
  [r]
320
320
  );
321
321
  }, kt = _(function({
322
- severity: a,
322
+ severity: s,
323
323
  itemContent: o,
324
- closeOnSelect: n = !0,
324
+ closeOnSelect: t = !0,
325
325
  onSelect: i,
326
326
  ...e
327
327
  }) {
328
- const c = R(a), s = y(
328
+ const c = R(s), a = w(
329
329
  (u) => {
330
- n || u.preventDefault(), i && i(u);
330
+ t || u.preventDefault(), i && i(u);
331
331
  },
332
- [n, i]
332
+ [t, i]
333
333
  );
334
- return /* @__PURE__ */ t(O.Item, { onSelect: s, color: c, ...e, children: o });
334
+ return /* @__PURE__ */ n(O.Item, { onSelect: a, color: c, ...e, children: o });
335
335
  }), Nt = _(function({
336
- defaultOpen: a,
336
+ defaultOpen: s,
337
337
  open: o,
338
- onOpenChange: n,
338
+ onOpenChange: t,
339
339
  modal: i,
340
340
  trigger: e,
341
341
  label: c,
342
- severity: s = "info",
342
+ severity: a = "info",
343
343
  children: u,
344
344
  ...l
345
345
  }) {
346
- const h = R(s);
347
- return /* @__PURE__ */ v(O.Root, { defaultOpen: a, open: o, onOpenChange: n, modal: i, children: [
348
- /* @__PURE__ */ t(O.Trigger, { children: e }),
346
+ const h = R(a);
347
+ return /* @__PURE__ */ v(O.Root, { defaultOpen: s, open: o, onOpenChange: t, modal: i, children: [
348
+ /* @__PURE__ */ n(O.Trigger, { children: e }),
349
349
  /* @__PURE__ */ v(O.Content, { color: h, ...l, children: [
350
- c && /* @__PURE__ */ t(O.Label, { children: c }),
350
+ c && /* @__PURE__ */ n(O.Label, { children: c }),
351
351
  u
352
352
  ] })
353
353
  ] });
354
354
  }), At = _(function({
355
- separatorBelow: a = !1,
355
+ separatorBelow: s = !1,
356
356
  separatorAbove: o = !1,
357
- children: n,
357
+ children: t,
358
358
  ...i
359
359
  }) {
360
360
  return /* @__PURE__ */ v(le, { children: [
361
- o && /* @__PURE__ */ t(O.Separator, {}),
362
- /* @__PURE__ */ t(O.Group, { ...i, children: n }),
363
- a && /* @__PURE__ */ t(O.Separator, {})
361
+ o && /* @__PURE__ */ n(O.Separator, {}),
362
+ /* @__PURE__ */ n(O.Group, { ...i, children: t }),
363
+ s && /* @__PURE__ */ n(O.Separator, {})
364
364
  ] });
365
- }), Bt = _(function({
366
- defaultOpen: a,
365
+ }), Et = _(function({
366
+ defaultOpen: s,
367
367
  open: o,
368
- onOpenChange: n,
368
+ onOpenChange: t,
369
369
  trigger: i,
370
370
  children: e,
371
371
  ...c
372
372
  }) {
373
- return /* @__PURE__ */ v(O.Sub, { defaultOpen: a, open: o, onOpenChange: n, children: [
374
- /* @__PURE__ */ t(O.SubTrigger, { children: i }),
375
- /* @__PURE__ */ t(O.SubContent, { ...c, children: e })
373
+ return /* @__PURE__ */ v(O.Sub, { defaultOpen: s, open: o, onOpenChange: t, children: [
374
+ /* @__PURE__ */ n(O.SubTrigger, { children: i }),
375
+ /* @__PURE__ */ n(O.SubContent, { ...c, children: e })
376
376
  ] });
377
- }), Vn = {
377
+ }), Hn = {
378
378
  Root: Nt,
379
379
  ItemGroup: At,
380
380
  Item: kt,
381
- SubMenu: Bt
382
- }, Et = "_fluid_7n1wr_1", Se = {
383
- fluid: Et
381
+ SubMenu: Et
382
+ }, Vn = _(function({ children: s }) {
383
+ const [o, t] = D(!1), i = w(() => {
384
+ t(!0);
385
+ }, []), e = w(() => {
386
+ t(!1);
387
+ }, []);
388
+ return s({
389
+ isHovered: o,
390
+ onPointerEnter: i,
391
+ onPointerLeave: e
392
+ });
393
+ }), Bt = "_fluid_7n1wr_1", Se = {
394
+ fluid: Bt
384
395
  }, Lt = T(function({
385
- className: a,
396
+ className: s,
386
397
  fluid: o,
387
- size: n = "medium",
398
+ size: t = "medium",
388
399
  variant: i = "surface",
389
400
  severity: e = "primary",
390
401
  itemSeverity: c = "info",
391
- placeholder: s = "Select",
402
+ placeholder: a = "Select",
392
403
  side: u,
393
404
  items: l = [],
394
405
  value: h,
395
406
  id: p,
396
407
  ...m
397
408
  }, f) {
398
- const d = E(n, F), g = R(e), C = R(c);
399
- return /* @__PURE__ */ $e(B.Root, { size: d, ...m, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ t(
400
- B.Trigger,
409
+ const d = B(t, F), g = R(e), C = R(c);
410
+ return /* @__PURE__ */ $e(E.Root, { size: d, ...m, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ n(
411
+ E.Trigger,
401
412
  {
402
- className: x(a, {
413
+ className: x(s, {
403
414
  [Se.fluid]: o
404
415
  }),
405
416
  id: p,
406
417
  ref: f,
407
418
  variant: i,
408
- placeholder: s,
419
+ placeholder: a,
409
420
  color: g
410
421
  }
411
- ), /* @__PURE__ */ t(
412
- B.Content,
422
+ ), /* @__PURE__ */ n(
423
+ E.Content,
413
424
  {
414
425
  side: u,
415
426
  className: Se.contentDefault,
416
427
  position: "popper",
417
428
  variant: i !== "surface" ? "soft" : "solid",
418
429
  color: C,
419
- children: l.map(({ itemContent: P, value: w, ...D }) => /* @__PURE__ */ t(B.Item, { className: "overmap-select-item", value: w, ...D, children: P }, w))
430
+ children: l.map(({ itemContent: P, value: y, ...$ }) => /* @__PURE__ */ n(E.Item, { className: "overmap-select-item", value: y, ...$, children: P }, y))
420
431
  }
421
432
  ));
422
- }), Hn = q.memo(Lt), Pe = _(
423
- T((r, a) => {
424
- const { checked: o, label: n, value: i, size: e = "2" } = r;
425
- return /* @__PURE__ */ t(M, { asChild: !0, px: e, children: /* @__PURE__ */ t(B.Item, { value: i, ref: a, children: /* @__PURE__ */ v(b, { gap: e, align: "center", children: [
426
- /* @__PURE__ */ t(Je, { checked: o }),
427
- n
433
+ }), Fn = q.memo(Lt), Pe = _(
434
+ T((r, s) => {
435
+ const { checked: o, label: t, value: i, size: e = "2" } = r;
436
+ return /* @__PURE__ */ n(M, { asChild: !0, px: e, children: /* @__PURE__ */ n(E.Item, { value: i, ref: s, children: /* @__PURE__ */ v(b, { gap: e, align: "center", children: [
437
+ /* @__PURE__ */ n(Je, { checked: o }),
438
+ t
428
439
  ] }) }) });
429
440
  })
430
- ), ie = "__select_all__", Fn = _(
431
- T((r, a) => {
432
- const [o, n] = $(!1), { placeholder: i, value: e, onValueChange: c, options: s, disabled: u, name: l, ...h } = r, p = E(r.size, F), m = R(r.severity), f = j(() => new Map(s.map((w) => [w.value, w.label])), [s]), d = e.length > 4 ? (
441
+ ), ie = "__select_all__", Xn = _(
442
+ T((r, s) => {
443
+ const [o, t] = D(!1), { placeholder: i, value: e, onValueChange: c, options: a, disabled: u, name: l, ...h } = r, p = B(r.size, F), m = R(r.severity), f = j(() => new Map(a.map((y) => [y.value, y.label])), [a]), d = e.length > 4 ? (
433
444
  // to ensure the width of the select doesn't get too big
434
445
  `${e.length} options selected`
435
446
  ) : (
436
447
  // convert the values to labels
437
- /* @__PURE__ */ t("span", { children: e.flatMap((w) => [f.get(w), ", "]).slice(0, -1) })
438
- ), g = y(() => n(!1), []), C = y((w) => {
439
- w && n(!0);
440
- }, []), P = y(
441
- (w) => {
442
- let D;
443
- w === ie ? D = e.length === s.length ? [] : s.map((de) => de.value) : D = e.includes(w) ? e.filter((L) => L !== w) : [...e, w], c(D);
448
+ /* @__PURE__ */ n("span", { children: e.flatMap((y) => [f.get(y), ", "]).slice(0, -1) })
449
+ ), g = w(() => t(!1), []), C = w((y) => {
450
+ y && t(!0);
451
+ }, []), P = w(
452
+ (y) => {
453
+ let $;
454
+ y === ie ? $ = e.length === a.length ? [] : a.map((de) => de.value) : $ = e.includes(y) ? e.filter((L) => L !== y) : [...e, y], c($);
444
455
  },
445
- [c, s, e]
456
+ [c, a, e]
446
457
  );
447
458
  return ue(() => {
448
- if (s.some(({ value: w }) => w === ie))
459
+ if (a.some(({ value: y }) => y === ie))
449
460
  throw new Error(`Cannot have an option with the value "${ie}"`);
450
- }, [s]), /* @__PURE__ */ v(
451
- B.Root,
461
+ }, [a]), /* @__PURE__ */ v(
462
+ E.Root,
452
463
  {
453
464
  open: o,
454
465
  value: "",
@@ -459,10 +470,10 @@ const ut = {
459
470
  name: l,
460
471
  autoComplete: "off",
461
472
  children: [
462
- /* @__PURE__ */ t(
463
- B.Trigger,
473
+ /* @__PURE__ */ n(
474
+ E.Trigger,
464
475
  {
465
- ref: a,
476
+ ref: s,
466
477
  color: m,
467
478
  placeholder: e.length > 0 ? d : i,
468
479
  "data-placeholder": e.length > 0 ? void 0 : !0,
@@ -470,7 +481,7 @@ const ut = {
470
481
  }
471
482
  ),
472
483
  /* @__PURE__ */ v(
473
- B.Content,
484
+ E.Content,
474
485
  {
475
486
  color: "gray",
476
487
  variant: "soft",
@@ -478,23 +489,23 @@ const ut = {
478
489
  onEscapeKeyDown: g,
479
490
  onPointerDownOutside: g,
480
491
  children: [
481
- /* @__PURE__ */ t(
492
+ /* @__PURE__ */ n(
482
493
  Pe,
483
494
  {
484
495
  value: ie,
485
496
  label: "Select all",
486
- checked: e.length === s.length,
497
+ checked: e.length === a.length,
487
498
  size: p
488
499
  }
489
500
  ),
490
- s.map((w) => /* @__PURE__ */ t(
501
+ a.map((y) => /* @__PURE__ */ n(
491
502
  Pe,
492
503
  {
493
- ...w,
494
- checked: e.includes(w.value),
504
+ ...y,
505
+ checked: e.includes(y.value),
495
506
  size: p
496
507
  },
497
- w.value
508
+ y.value
498
509
  ))
499
510
  ]
500
511
  }
@@ -505,25 +516,25 @@ const ut = {
505
516
  })
506
517
  ), Mt = {
507
518
  default: "_default_u936h_1"
508
- }, Wt = T(function({ className: a, severity: o = "primary", icon: n, defaultChecked: i = !1, onCheckedChange: e, ...c }, s) {
509
- const u = se(null), [l, h] = $(c.checked ? c.checked : i), [p, m] = $(), f = R(o);
519
+ }, Wt = T(function({ className: s, severity: o = "primary", icon: t, defaultChecked: i = !1, onCheckedChange: e, ...c }, a) {
520
+ const u = se(null), [l, h] = D(c.checked ? c.checked : i), [p, m] = D(), f = R(o);
510
521
  ot(() => {
511
522
  var P;
512
- const C = s || u;
523
+ const C = a || u;
513
524
  "current" in C && C.current && m((P = C.current) == null ? void 0 : P.querySelector("span.rt-SwitchThumb"));
514
- }, [s]);
515
- const d = y(
525
+ }, [a]);
526
+ const d = w(
516
527
  (C) => {
517
528
  h(C), e && e(C);
518
529
  },
519
530
  [e]
520
531
  ), g = c.checked ? c.checked : l;
521
532
  return /* @__PURE__ */ v(le, { children: [
522
- /* @__PURE__ */ t(
533
+ /* @__PURE__ */ n(
523
534
  Ze,
524
535
  {
525
- className: x("overmap-switch", a, Mt.default),
526
- ref: s || u,
536
+ className: x("overmap-switch", s, Mt.default),
537
+ ref: a || u,
527
538
  color: f,
528
539
  radius: "full",
529
540
  defaultChecked: i,
@@ -531,36 +542,36 @@ const ut = {
531
542
  ...c
532
543
  }
533
544
  ),
534
- /* @__PURE__ */ t(et, { container: p, asChild: !0, children: n && "checked" in n ? g ? n.checked : n.unchecked : n })
545
+ /* @__PURE__ */ n(et, { container: p, asChild: !0, children: t && "checked" in t ? g ? t.checked : t.unchecked : t })
535
546
  ] });
536
- }), Xn = _(Wt), jt = "_sidebarContent_1onyo_1", Gt = "_right_1onyo_7", Vt = "_resizeHandle_1onyo_10", Ht = "_left_1onyo_13", Ft = "_overlay_1onyo_33", G = {
547
+ }), Un = _(Wt), jt = "_sidebarContent_1onyo_1", Gt = "_right_1onyo_7", Ht = "_resizeHandle_1onyo_10", Vt = "_left_1onyo_13", Ft = "_overlay_1onyo_33", G = {
537
548
  sidebarContent: jt,
538
549
  right: Gt,
539
- resizeHandle: Vt,
540
- left: Ht,
550
+ resizeHandle: Ht,
551
+ left: Vt,
541
552
  overlay: Ft
542
553
  }, Xt = T(function({
543
- side: a = "left",
554
+ side: s = "left",
544
555
  modal: o = !0,
545
- children: n,
556
+ children: t,
546
557
  open: i,
547
558
  containerSelector: e,
548
559
  overlay: c = !0,
549
- resizable: s = !0,
560
+ resizable: a = !0,
550
561
  // Props related to Resizable
551
562
  minWidth: u = "300px",
552
563
  maxWidth: l = "500px",
553
564
  ...h
554
565
  }, p) {
555
- const m = a === "right", f = a === "left", [d, g] = $();
566
+ const m = s === "right", f = s === "left", [d, g] = D();
556
567
  return ue(() => {
557
568
  const C = e ?? '[data-is-root-theme="true"]', P = document.querySelector(C);
558
569
  if (P === void 0)
559
570
  throw new Error(`Could not find a container element using the following selector ${C}`);
560
571
  g(P);
561
- }, [e]), /* @__PURE__ */ t(re.Root, { open: i, modal: o, children: /* @__PURE__ */ v(re.Portal, { container: d, children: [
562
- c && /* @__PURE__ */ t(re.Overlay, { className: x(G.overlay) }),
563
- /* @__PURE__ */ t(
572
+ }, [e]), /* @__PURE__ */ n(re.Root, { open: i, modal: o, children: /* @__PURE__ */ v(re.Portal, { container: d, children: [
573
+ c && /* @__PURE__ */ n(re.Overlay, { className: x(G.overlay) }),
574
+ /* @__PURE__ */ n(
564
575
  re.Content,
565
576
  {
566
577
  className: x("overmap-sidebar", "rt-DialogContent", G.sidebarContent, {
@@ -570,25 +581,25 @@ const ut = {
570
581
  ref: p,
571
582
  asChild: !0,
572
583
  ...h,
573
- children: /* @__PURE__ */ t(M, { width: "auto", children: /* @__PURE__ */ t(
584
+ children: /* @__PURE__ */ n(M, { width: "auto", children: /* @__PURE__ */ n(
574
585
  pe,
575
586
  {
576
587
  minWidth: u,
577
588
  maxWidth: l,
578
589
  defaultSize: { width: "300px", height: "100%" },
579
- enable: { right: s && f, left: s && m },
590
+ enable: { right: a && f, left: a && m },
580
591
  handleClasses: { left: G.resizeHandle, right: G.resizeHandle },
581
592
  handleComponent: {
582
- right: /* @__PURE__ */ t(ae, {}),
583
- left: /* @__PURE__ */ t(ae, {})
593
+ right: /* @__PURE__ */ n(ae, {}),
594
+ left: /* @__PURE__ */ n(ae, {})
584
595
  },
585
- children: n
596
+ children: t
586
597
  }
587
598
  ) })
588
599
  }
589
600
  )
590
601
  ] }) });
591
- }), Un = _(Xt), Ut = "_accommodateCharCount_sr18k_1", qt = "_wrapper_sr18k_5", Kt = "_noLeftIcon_sr18k_13", Qt = "_noRightIcon_sr18k_17", Yt = "_charCount_sr18k_21", V = {
602
+ }), qn = _(Xt), Ut = "_accommodateCharCount_sr18k_1", qt = "_wrapper_sr18k_5", Kt = "_noLeftIcon_sr18k_13", Qt = "_noRightIcon_sr18k_17", Yt = "_charCount_sr18k_21", H = {
592
603
  accommodateCharCount: Ut,
593
604
  wrapper: qt,
594
605
  default: "_default_sr18k_9",
@@ -596,63 +607,63 @@ const ut = {
596
607
  noRightIcon: Qt,
597
608
  charCount: Yt
598
609
  }, Jt = T(function({
599
- className: a,
610
+ className: s,
600
611
  leftSlot: o,
601
- rightSlot: n,
612
+ rightSlot: t,
602
613
  size: i = "medium",
603
614
  showInputLength: e,
604
615
  value: c,
605
- variant: s,
616
+ variant: a,
606
617
  severity: u = "primary",
607
618
  ...l
608
619
  }, h) {
609
- const p = E(i, F), m = R(u), f = e || e === void 0 && l.maxLength !== void 0, d = c !== void 0 ? c.toString() : void 0;
620
+ const p = B(i, F), m = R(u), f = e || e === void 0 && l.maxLength !== void 0, d = c !== void 0 ? c.toString() : void 0;
610
621
  return /* @__PURE__ */ v(
611
622
  te.Root,
612
623
  {
613
- className: x(V.wrapper, {
614
- [V.accommodateCharCount]: f
624
+ className: x(H.wrapper, {
625
+ [H.accommodateCharCount]: f
615
626
  }),
616
627
  size: p,
617
- variant: s,
628
+ variant: a,
618
629
  color: m,
619
630
  children: [
620
- o && /* @__PURE__ */ t(te.Slot, { children: o }),
621
- /* @__PURE__ */ t(
631
+ o && /* @__PURE__ */ n(te.Slot, { children: o }),
632
+ /* @__PURE__ */ n(
622
633
  te.Input,
623
634
  {
624
- className: x(V.default, a, {
625
- [V.noLeftIcon]: !o,
626
- [V.noRightIcon]: !n
635
+ className: x(H.default, s, {
636
+ [H.noLeftIcon]: !o,
637
+ [H.noRightIcon]: !t
627
638
  }),
628
639
  ref: h,
629
640
  size: p,
630
- variant: s,
641
+ variant: a,
631
642
  color: m,
632
643
  ...l
633
644
  }
634
645
  ),
635
- n && /* @__PURE__ */ t(te.Slot, { children: n }),
636
- f && /* @__PURE__ */ t(ce, { as: "p", className: V.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${d == null ? void 0 : d.length}/${l.maxLength}` : `${d == null ? void 0 : d.length}` })
646
+ t && /* @__PURE__ */ n(te.Slot, { children: t }),
647
+ f && /* @__PURE__ */ n(ce, { as: "p", className: H.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${d == null ? void 0 : d.length}/${l.maxLength}` : `${d == null ? void 0 : d.length}` })
637
648
  ]
638
649
  }
639
650
  );
640
- }), qn = q.memo(Jt), Zt = "_wrapper_tmtz0_1", en = {
651
+ }), Kn = q.memo(Jt), Zt = "_wrapper_tmtz0_1", en = {
641
652
  wrapper: Zt
642
- }, tn = T(function({ className: a, defaultOpen: o = !1, modal: n = !1, content: i, children: e, ...c }, s) {
643
- return /* @__PURE__ */ v(ne.Root, { defaultOpen: o, modal: n, children: [
644
- /* @__PURE__ */ t(ne.Trigger, { children: e }),
645
- /* @__PURE__ */ t(
653
+ }, tn = T(function({ className: s, defaultOpen: o = !1, modal: t = !1, content: i, children: e, ...c }, a) {
654
+ return /* @__PURE__ */ v(ne.Root, { defaultOpen: o, modal: t, children: [
655
+ /* @__PURE__ */ n(ne.Trigger, { children: e }),
656
+ /* @__PURE__ */ n(
646
657
  ne.Content,
647
658
  {
648
- ref: s,
649
- className: x("overmap-popover", a, en.wrapper),
659
+ ref: a,
660
+ className: x("overmap-popover", s, en.wrapper),
650
661
  ...c,
651
662
  children: i(ne.Close)
652
663
  }
653
664
  )
654
665
  ] });
655
- }), Kn = q.memo(tn), nn = "_wrapper_1mz2e_1", on = "_panelContent_1mz2e_6", rn = "_left_1mz2e_14", sn = "_right_1mz2e_18", an = "_resizable_1mz2e_23", cn = "_resizeHandle_1mz2e_28", ln = "_panelMainContent_1mz2e_48", I = {
666
+ }), Qn = q.memo(tn), nn = "_wrapper_1mz2e_1", on = "_panelContent_1mz2e_6", rn = "_left_1mz2e_14", sn = "_right_1mz2e_18", an = "_resizable_1mz2e_23", cn = "_resizeHandle_1mz2e_28", ln = "_panelMainContent_1mz2e_48", I = {
656
667
  wrapper: nn,
657
668
  panelContent: on,
658
669
  left: rn,
@@ -660,54 +671,54 @@ const ut = {
660
671
  resizable: an,
661
672
  resizeHandle: cn,
662
673
  panelMainContent: ln
663
- }, Re = 200, A = 150, Qn = _(function({
664
- children: a,
674
+ }, Re = 200, A = 150, Yn = _(function({
675
+ children: s,
665
676
  showLeft: o,
666
- leftPanel: n,
677
+ leftPanel: t,
667
678
  leftMinWidth: i = Re,
668
679
  showRight: e,
669
680
  rightPanel: c,
670
- rightMinWidth: s = Re,
681
+ rightMinWidth: a = Re,
671
682
  resizeable: u
672
683
  }) {
673
- const l = se(null), h = se(null), [p, m] = $(0), [f, d] = $(), g = se(null), [C, P] = $(0), [w, D] = $(), L = y(
674
- (S, z, k) => (N, we, ye, he) => {
684
+ const l = se(null), h = se(null), [p, m] = D(0), [f, d] = D(), g = se(null), [C, P] = D(0), [y, $] = D(), L = w(
685
+ (S, z, k) => (N, ye, we, he) => {
675
686
  if (!l.current)
676
687
  return;
677
688
  const Y = S + he.width;
678
689
  k(l.current.clientWidth - Y), z(() => Y);
679
690
  },
680
691
  []
681
- ), de = y(
682
- (S, z, k, N) => L(p, m, D)(S, z, k, N),
692
+ ), de = w(
693
+ (S, z, k, N) => L(p, m, $)(S, z, k, N),
683
694
  [L, p]
684
- ), Le = y(
695
+ ), Le = w(
685
696
  (S, z, k, N) => L(C, P, d)(S, z, k, N),
686
697
  [L, C]
687
- ), K = y(
688
- (S, z, k, N, we, ye, he, Y) => {
698
+ ), K = w(
699
+ (S, z, k, N, ye, we, he, Y) => {
689
700
  if (!l.current)
690
701
  return;
691
702
  let J = S;
692
- if (J === 0 && (J = z, k(J)), ye) {
703
+ if (J === 0 && (J = z, k(J)), we) {
693
704
  const Z = l.current.clientWidth - J;
694
- Y(Z), we > Z && (he(Z), N(l.current.clientWidth - Z));
705
+ Y(Z), ye > Z && (he(Z), N(l.current.clientWidth - Z));
695
706
  }
696
707
  },
697
708
  []
698
- ), Me = y(
709
+ ), Me = w(
699
710
  () => K(
700
711
  C,
701
- s,
712
+ a,
702
713
  P,
703
- D,
714
+ $,
704
715
  p,
705
716
  o,
706
717
  m,
707
718
  d
708
719
  ),
709
- [K, p, s, C, o]
710
- ), We = y(
720
+ [K, p, a, C, o]
721
+ ), We = w(
711
722
  () => K(
712
723
  p,
713
724
  i,
@@ -716,23 +727,23 @@ const ut = {
716
727
  C,
717
728
  e,
718
729
  P,
719
- D
730
+ $
720
731
  ),
721
732
  [K, i, p, C, e]
722
- ), Q = y(
733
+ ), Q = w(
723
734
  (S, z) => {
724
735
  l.current && S && z(l.current.clientWidth);
725
736
  },
726
737
  []
727
- ), je = y(
738
+ ), je = w(
728
739
  () => Q(o, d),
729
740
  [Q, o]
730
- ), Ge = y(
731
- () => Q(e, D),
741
+ ), Ge = w(
742
+ () => Q(e, $),
732
743
  [Q, e]
733
- ), _e = y(() => {
744
+ ), _e = w(() => {
734
745
  var S, z, k, N;
735
- l.current && (d(l.current.clientWidth - (((S = g.current) == null ? void 0 : S.clientWidth) || 0)), D(l.current.clientWidth - (((z = h.current) == null ? void 0 : z.clientWidth) || 0)), m(((k = h.current) == null ? void 0 : k.clientWidth) || 0), P(((N = g.current) == null ? void 0 : N.clientWidth) || 0));
746
+ l.current && (d(l.current.clientWidth - (((S = g.current) == null ? void 0 : S.clientWidth) || 0)), $(l.current.clientWidth - (((z = h.current) == null ? void 0 : z.clientWidth) || 0)), m(((k = h.current) == null ? void 0 : k.clientWidth) || 0), P(((N = g.current) == null ? void 0 : N.clientWidth) || 0));
736
747
  }, []);
737
748
  ue(() => {
738
749
  if (!l.current)
@@ -742,7 +753,7 @@ const ut = {
742
753
  S.disconnect();
743
754
  };
744
755
  }, [_e]);
745
- const Ve = j(() => ({
756
+ const He = j(() => ({
746
757
  entering: {
747
758
  transform: `translateX(-${p}px)`,
748
759
  marginRight: `-${p}px`,
@@ -766,7 +777,7 @@ const ut = {
766
777
  },
767
778
  exited: {},
768
779
  unmounted: {}
769
- }), [p]), He = j(() => ({
780
+ }), [p]), Ve = j(() => ({
770
781
  entering: {
771
782
  transform: `translateX(${C}px)`,
772
783
  marginLeft: `${-C}px`,
@@ -795,7 +806,7 @@ const ut = {
795
806
  b,
796
807
  {
797
808
  className: I.wrapper,
798
- style: { minWidth: `${i + s}px` },
809
+ style: { minWidth: `${i + a}px` },
799
810
  ref: l,
800
811
  width: "100%",
801
812
  height: "100%",
@@ -803,7 +814,7 @@ const ut = {
803
814
  m: "0",
804
815
  p: "0",
805
816
  children: [
806
- /* @__PURE__ */ t(
817
+ /* @__PURE__ */ n(
807
818
  Te,
808
819
  {
809
820
  nodeRef: h,
@@ -812,17 +823,17 @@ const ut = {
812
823
  unmountOnExit: !0,
813
824
  onEntering: We,
814
825
  onExited: Ge,
815
- children: (S) => /* @__PURE__ */ t(
826
+ children: (S) => /* @__PURE__ */ n(
816
827
  M,
817
828
  {
818
829
  ref: h,
819
830
  className: x(I.panelContent, I.left),
820
- style: Ve[S],
831
+ style: He[S],
821
832
  width: "auto",
822
833
  height: "100%",
823
834
  m: "0",
824
835
  p: "0",
825
- children: /* @__PURE__ */ t(
836
+ children: /* @__PURE__ */ n(
826
837
  pe,
827
838
  {
828
839
  className: I.resizable,
@@ -836,17 +847,17 @@ const ut = {
836
847
  maxWidth: f,
837
848
  handleClasses: { right: x(I.resizeHandle, I.left) },
838
849
  handleComponent: {
839
- right: /* @__PURE__ */ t(ae, { height: "14px", width: "14px" })
850
+ right: /* @__PURE__ */ n(ae, { height: "14px", width: "14px" })
840
851
  },
841
- children: n
852
+ children: t
842
853
  }
843
854
  )
844
855
  }
845
856
  )
846
857
  }
847
858
  ),
848
- /* @__PURE__ */ t(M, { className: I.panelMainContent, width: "max-content", children: a }),
849
- /* @__PURE__ */ t(
859
+ /* @__PURE__ */ n(M, { className: I.panelMainContent, width: "max-content", children: s }),
860
+ /* @__PURE__ */ n(
850
861
  Te,
851
862
  {
852
863
  nodeRef: g,
@@ -855,27 +866,27 @@ const ut = {
855
866
  unmountOnExit: !0,
856
867
  onEntering: Me,
857
868
  onExited: je,
858
- children: (S) => /* @__PURE__ */ t(
869
+ children: (S) => /* @__PURE__ */ n(
859
870
  M,
860
871
  {
861
872
  ref: g,
862
873
  className: x(I.panelContent, I.right),
863
- style: He[S],
874
+ style: Ve[S],
864
875
  width: "auto",
865
876
  height: "100%",
866
877
  m: "0",
867
878
  p: "0",
868
- children: /* @__PURE__ */ t(
879
+ children: /* @__PURE__ */ n(
869
880
  pe,
870
881
  {
871
882
  className: I.resizable,
872
883
  size: { width: C, height: "100%" },
873
884
  onResizeStop: Le,
874
885
  enable: { left: (u == null ? void 0 : u.right) !== void 0 ? u.right : !0 },
875
- minWidth: s,
876
- maxWidth: w,
886
+ minWidth: a,
887
+ maxWidth: y,
877
888
  handleClasses: { left: x(I.resizeHandle, I.right) },
878
- handleComponent: { left: /* @__PURE__ */ t(ae, { height: "14px", width: "14px" }) },
889
+ handleComponent: { left: /* @__PURE__ */ n(ae, { height: "14px", width: "14px" }) },
879
890
  children: c
880
891
  }
881
892
  )
@@ -888,44 +899,44 @@ const ut = {
888
899
  );
889
900
  }), un = "_charCount_17uut_1", dn = {
890
901
  charCount: un
891
- }, hn = T(function({ className: a, showInputLength: o, inputLengthTemplate: n, value: i, severity: e = "primary", resize: c, ...s }, u) {
892
- const l = R(e), h = R("info"), p = o || o === void 0 && (s.maxLength !== void 0 || s.minLength !== void 0), m = i !== void 0 ? i.toString() : "", f = j(() => {
893
- if (n) {
894
- let d = n.replace("{current}", m.length.toString());
895
- return s.minLength !== void 0 && (d = d.replace("{min}", s.minLength.toString())), s.maxLength !== void 0 && (d = d.replace("{max}", s.maxLength.toString())), d;
902
+ }, hn = T(function({ className: s, showInputLength: o, inputLengthTemplate: t, value: i, severity: e = "primary", resize: c, ...a }, u) {
903
+ const l = R(e), h = R("info"), p = o || o === void 0 && (a.maxLength !== void 0 || a.minLength !== void 0), m = i !== void 0 ? i.toString() : "", f = j(() => {
904
+ if (t) {
905
+ let d = t.replace("{current}", m.length.toString());
906
+ return a.minLength !== void 0 && (d = d.replace("{min}", a.minLength.toString())), a.maxLength !== void 0 && (d = d.replace("{max}", a.maxLength.toString())), d;
896
907
  }
897
908
  return m.length;
898
- }, [n, s.maxLength, s.minLength, m.length]);
909
+ }, [t, a.maxLength, a.minLength, m.length]);
899
910
  return /* @__PURE__ */ v(le, { children: [
900
- /* @__PURE__ */ t(
911
+ /* @__PURE__ */ n(
901
912
  tt,
902
913
  {
903
- className: x("overmap-textarea", a),
914
+ className: x("overmap-textarea", s),
904
915
  style: { resize: c },
905
916
  ref: u,
906
917
  value: i,
907
918
  color: l,
908
- ...s
919
+ ...a
909
920
  }
910
921
  ),
911
- p && /* @__PURE__ */ t(ce, { as: "p", className: dn.charCount, color: h, align: "right", children: f })
922
+ p && /* @__PURE__ */ n(ce, { as: "p", className: dn.charCount, color: h, align: "right", children: f })
912
923
  ] });
913
- }), Yn = _(hn), pn = T(function({
924
+ }), Jn = _(hn), pn = T(function({
914
925
  // ToggleGroup Primitive Props
915
- loop: a,
926
+ loop: s,
916
927
  type: o,
917
- rovingFocus: n,
928
+ rovingFocus: t,
918
929
  value: i,
919
930
  onValueChange: e,
920
931
  defaultValue: c,
921
- disabled: s,
932
+ disabled: a,
922
933
  items: u,
923
934
  // ButtonGroup Props
924
935
  className: l,
925
936
  direction: h = "row",
926
937
  ...p
927
938
  }, m) {
928
- return /* @__PURE__ */ t(
939
+ return /* @__PURE__ */ n(
929
940
  rt,
930
941
  {
931
942
  type: o,
@@ -933,13 +944,13 @@ const ut = {
933
944
  ref: m,
934
945
  value: i,
935
946
  onValueChange: e,
936
- disabled: s,
947
+ disabled: a,
937
948
  orientation: h === "column" ? "vertical" : "horizontal",
938
- loop: a,
939
- rovingFocus: n,
949
+ loop: s,
950
+ rovingFocus: t,
940
951
  defaultValue: c,
941
952
  asChild: !0,
942
- children: /* @__PURE__ */ t(Ne, { direction: h, ...p, children: u.map(({ children: f, ...d }) => /* @__PURE__ */ $e(it, { asChild: !0, ...d, key: d.value }, /* @__PURE__ */ t(
953
+ children: /* @__PURE__ */ n(Ne, { direction: h, ...p, children: u.map(({ children: f, ...d }) => /* @__PURE__ */ $e(it, { asChild: !0, ...d, key: d.value }, /* @__PURE__ */ n(
943
954
  ke,
944
955
  {
945
956
  className: x("overmap-toggle-group-button"),
@@ -950,52 +961,52 @@ const ut = {
950
961
  ))) })
951
962
  }
952
963
  );
953
- }), Jn = _(pn), mn = "_ToastViewport_1joop_1", fn = "_actionButton_1joop_20", gn = "_ToastRoot_1joop_24", Cn = "_slideIn_1joop_1", vn = "_swipeOut_1joop_1", fe = {
964
+ }), Zn = _(pn), mn = "_ToastViewport_1joop_1", fn = "_actionButton_1joop_20", gn = "_ToastRoot_1joop_24", Cn = "_slideIn_1joop_1", vn = "_swipeOut_1joop_1", fe = {
954
965
  ToastViewport: mn,
955
966
  actionButton: fn,
956
967
  ToastRoot: gn,
957
968
  slideIn: Cn,
958
969
  swipeOut: vn
959
- }, _n = T(function({ title: a, description: o, icon: n, severity: i = "primary", size: e, onClose: c, sensitivity: s, action: u, ...l }, h) {
960
- const [p, m] = $(!0), f = R(i), d = y(
970
+ }, _n = T(function({ title: s, description: o, icon: t, severity: i = "primary", size: e, onClose: c, sensitivity: a, action: u, ...l }, h) {
971
+ const [p, m] = D(!0), f = R(i), d = w(
961
972
  (g) => {
962
973
  !g && c && c(), m(g);
963
974
  },
964
975
  [c]
965
976
  );
966
- return /* @__PURE__ */ t(X.Root, { asChild: !0, ref: h, ...l, open: p, type: s, onOpenChange: d, children: /* @__PURE__ */ t(oe.Root, { className: fe.ToastRoot, variant: "surface", color: f, size: e, children: /* @__PURE__ */ v(b, { width: "100%", align: "center", gap: "4", justify: "between", children: [
977
+ return /* @__PURE__ */ n(X.Root, { asChild: !0, ref: h, ...l, open: p, type: a, onOpenChange: d, children: /* @__PURE__ */ n(oe.Root, { className: fe.ToastRoot, variant: "surface", color: f, size: e, children: /* @__PURE__ */ v(b, { width: "100%", align: "center", gap: "4", justify: "between", children: [
967
978
  /* @__PURE__ */ v(b, { align: "center", gap: "3", children: [
968
- /* @__PURE__ */ t(oe.Icon, { children: n || /* @__PURE__ */ t(Xe, {}) }),
979
+ /* @__PURE__ */ n(oe.Icon, { children: t || /* @__PURE__ */ n(Xe, {}) }),
969
980
  /* @__PURE__ */ v(b, { direction: "column", gap: "1", children: [
970
981
  /* @__PURE__ */ v(b, { direction: "column", gap: "0", children: [
971
- /* @__PURE__ */ t(X.Title, { asChild: !0, children: /* @__PURE__ */ t(oe.Text, { weight: "medium", children: a }) }),
972
- /* @__PURE__ */ t(X.Description, { asChild: !0, children: /* @__PURE__ */ t(oe.Text, { weight: "light", children: o }) })
982
+ /* @__PURE__ */ n(X.Title, { asChild: !0, children: /* @__PURE__ */ n(oe.Text, { weight: "medium", children: s }) }),
983
+ /* @__PURE__ */ n(X.Description, { asChild: !0, children: /* @__PURE__ */ n(oe.Text, { weight: "light", children: o }) })
973
984
  ] }),
974
- u && /* @__PURE__ */ t(X.Action, { className: fe.actionButton, altText: u.altText, asChild: !0, children: u.content })
985
+ u && /* @__PURE__ */ n(X.Action, { className: fe.actionButton, altText: u.altText, asChild: !0, children: u.content })
975
986
  ] })
976
987
  ] }),
977
- /* @__PURE__ */ t(X.Close, { asChild: !0, children: /* @__PURE__ */ t(ke, { "aria-label": "Close", variant: "ghost", size: "small", severity: i, children: /* @__PURE__ */ t(Ue, {}) }) })
988
+ /* @__PURE__ */ n(X.Close, { asChild: !0, children: /* @__PURE__ */ n(ke, { "aria-label": "Close", variant: "ghost", size: "small", severity: i, children: /* @__PURE__ */ n(Ue, {}) }) })
978
989
  ] }) }) });
979
- }), wn = _(_n), Ee = ge({}), Zn = () => {
980
- const r = Ce(Ee);
990
+ }), yn = _(_n), Be = ge({}), eo = () => {
991
+ const r = Ce(Be);
981
992
  if (!r)
982
993
  throw new Error("useToast must be used within a ToastProvider");
983
994
  return r;
984
- }, yn = 240 / 60, be = 5e3, xn = (r) => {
995
+ }, wn = 240 / 60, be = 5e3, xn = (r) => {
985
996
  if (r.duration && r.duration >= be)
986
997
  return r.duration;
987
- const a = r.severity === "danger" ? 1.5 : 1, o = r.description.split(" ").length + r.title.split(" ").length;
988
- return (be + o / yn) * a;
998
+ const s = r.severity === "danger" ? 1.5 : 1, o = r.description.split(" ").length + r.title.split(" ").length;
999
+ return (be + o / wn) * s;
989
1000
  };
990
1001
  let Tn;
991
- const eo = _(function({
992
- children: a,
1002
+ const to = _(function({
1003
+ children: s,
993
1004
  // Use this class to change where the viewport for the toasts should be
994
1005
  className: o,
995
- hotkey: n,
1006
+ hotkey: t,
996
1007
  ...i
997
1008
  }) {
998
- const [e, c] = $([]), s = y((l, h, p) => {
1009
+ const [e, c] = D([]), a = w((l, h, p) => {
999
1010
  c((m) => {
1000
1011
  const f = m.find((d) => d.id === l);
1001
1012
  return f && h === 0 && clearTimeout(f.timeout), m.filter((d) => d.id !== l);
@@ -1005,8 +1016,8 @@ const eo = _(function({
1005
1016
  const h = (g) => {
1006
1017
  const C = xn(g), P = l.toString();
1007
1018
  l += 1;
1008
- const w = setTimeout(() => s(P, 1, g.onClose), C);
1009
- c((D) => [...D, { ...g, timeout: w, duration: C, id: P }]);
1019
+ const y = setTimeout(() => a(P, 1, g.onClose), C);
1020
+ c(($) => [...$, { ...g, timeout: y, duration: C, id: P }]);
1010
1021
  }, p = (g) => h({ ...g, severity: "primary" }), m = (g) => h({ ...g, severity: "success" }), f = (g) => h({ ...g, severity: "danger" }), d = (g) => h({ ...g, severity: "info" });
1011
1022
  return Tn = h, {
1012
1023
  showToast: h,
@@ -1015,44 +1026,44 @@ const eo = _(function({
1015
1026
  showError: f,
1016
1027
  showInfo: d
1017
1028
  };
1018
- }, [s]);
1029
+ }, [a]);
1019
1030
  return ue(() => () => {
1020
1031
  for (const { timeout: l } of e)
1021
1032
  clearTimeout(l);
1022
- }, []), /* @__PURE__ */ t(Ee.Provider, { value: u, children: /* @__PURE__ */ v(st, { ...i, children: [
1023
- a,
1024
- /* @__PURE__ */ t(at, { className: x(o, fe.ToastViewport), hotkey: n }),
1025
- e.map(({ id: l, onClose: h, ...p }) => /* @__PURE__ */ t(wn, { ...p, onClose: () => s(l, 0, h) }, l))
1033
+ }, []), /* @__PURE__ */ n(Be.Provider, { value: u, children: /* @__PURE__ */ v(st, { ...i, children: [
1034
+ s,
1035
+ /* @__PURE__ */ n(at, { className: x(o, fe.ToastViewport), hotkey: t }),
1036
+ e.map(({ id: l, onClose: h, ...p }) => /* @__PURE__ */ n(yn, { ...p, onClose: () => a(l, 0, h) }, l))
1026
1037
  ] }) });
1027
1038
  }), Sn = "_noWrap_1wpa5_1", Pn = {
1028
1039
  noWrap: Sn
1029
- }, to = _(
1030
- T(({ className: r, noWrap: a, severity: o, as: n, ...i }, e) => {
1040
+ }, no = _(
1041
+ T(({ className: r, noWrap: s, severity: o, as: t, ...i }, e) => {
1031
1042
  const c = R(o);
1032
- return /* @__PURE__ */ t(
1043
+ return /* @__PURE__ */ n(
1033
1044
  ce,
1034
1045
  {
1035
1046
  ref: e,
1036
- as: n,
1037
- className: x(r, { [Pn.noWrap]: a }),
1047
+ as: t,
1048
+ className: x(r, { [Pn.noWrap]: s }),
1038
1049
  color: c,
1039
1050
  ...i
1040
1051
  }
1041
1052
  );
1042
1053
  })
1043
1054
  );
1044
- const no = _(
1045
- T((r, a) => {
1046
- const { panelBackground: o = "solid", radius: n = "full", ...i } = r;
1047
- return /* @__PURE__ */ t(nt, { panelBackground: o, radius: n, ref: a, ...i });
1055
+ const oo = _(
1056
+ T((r, s) => {
1057
+ const { panelBackground: o = "solid", radius: t = "full", ...i } = r;
1058
+ return /* @__PURE__ */ n(nt, { panelBackground: o, radius: t, ref: s, ...i });
1048
1059
  })
1049
1060
  ), Rn = {
1050
1061
  1: "max-content",
1051
1062
  2: "max-content",
1052
1063
  3: "max-content",
1053
1064
  4: "100%"
1054
- }, bn = T(function({ severity: a = "info", weight: o = "light", gap: n = "1", text: i, orientation: e = "horizontal", size: c, ...s }, u) {
1055
- const l = E(c, Rn), h = R(a);
1065
+ }, bn = T(function({ severity: s = "info", weight: o = "light", gap: t = "1", text: i, orientation: e = "horizontal", size: c, ...a }, u) {
1066
+ const l = B(c, Rn), h = R(s);
1056
1067
  return /* @__PURE__ */ v(
1057
1068
  b,
1058
1069
  {
@@ -1061,83 +1072,84 @@ const no = _(
1061
1072
  height: e === "vertical" ? l : "max-content",
1062
1073
  direction: e === "vertical" ? "column" : "row",
1063
1074
  align: "center",
1064
- gap: n,
1075
+ gap: t,
1065
1076
  children: [
1066
- /* @__PURE__ */ t(xe, { size: c, orientation: e, color: h, ...s }),
1077
+ /* @__PURE__ */ n(xe, { size: c, orientation: e, color: h, ...a }),
1067
1078
  i && /* @__PURE__ */ v(le, { children: [
1068
- /* @__PURE__ */ t(ce, { as: "span", size: "1", weight: o, color: h, children: i }),
1069
- /* @__PURE__ */ t(xe, { size: c, orientation: e, color: h, ...s })
1079
+ /* @__PURE__ */ n(ce, { as: "span", size: "1", weight: o, color: h, children: i }),
1080
+ /* @__PURE__ */ n(xe, { size: c, orientation: e, color: h, ...a })
1070
1081
  ] })
1071
1082
  ]
1072
1083
  }
1073
1084
  );
1074
- }), oo = _(bn);
1085
+ }), ro = _(bn);
1075
1086
  export {
1076
- co as AccessibleIcon,
1087
+ lo as AccessibleIcon,
1077
1088
  zt as AlertDialog,
1078
- Be as AlertDialogContent,
1089
+ Ee as AlertDialogContent,
1079
1090
  jn as AlertDialogProvider,
1080
- lo as AspectRatio,
1081
- uo as Avatar,
1082
- En as Badge,
1083
- ho as Blockquote,
1084
- po as Box,
1091
+ uo as AspectRatio,
1092
+ ho as Avatar,
1093
+ Bn as Badge,
1094
+ po as Blockquote,
1095
+ mo as Box,
1085
1096
  me as Button,
1086
1097
  Ne as ButtonGroup,
1087
1098
  Mn as ButtonList,
1088
- mo as Callout,
1089
- fo as Card,
1090
- go as Checkbox,
1091
- Co as Code,
1092
- vo as Container,
1093
- _o as ContextMenu,
1094
- no as DefaultTheme,
1099
+ fo as Callout,
1100
+ go as Card,
1101
+ Co as Checkbox,
1102
+ vo as Code,
1103
+ _o as Container,
1104
+ yo as ContextMenu,
1105
+ oo as DefaultTheme,
1095
1106
  Wn as Dialog,
1096
- Vn as DropdownMenu,
1107
+ Hn as DropdownMenu,
1097
1108
  wo as Em,
1098
- yo as Flex,
1099
- xo as Grid,
1100
- To as Heading,
1101
- So as HoverCard,
1109
+ xo as Flex,
1110
+ To as Grid,
1111
+ So as Heading,
1112
+ Po as HoverCard,
1113
+ Vn as HoverUtility,
1102
1114
  ke as IconButton,
1103
- qn as Input,
1104
- Po as Inset,
1105
- Ro as Kbd,
1106
- Qn as LeftAndRightPanels,
1107
- bo as Link,
1108
- Fn as MultiSelect,
1109
- Kn as Popover,
1110
- Do as Portal,
1111
- $o as Quote,
1112
- zo as RadioGroup,
1113
- Io as ScrollArea,
1114
- Oo as Section,
1115
- Hn as Select,
1116
- oo as Separator,
1117
- Un as Sidebar,
1118
- ko as Slider,
1119
- No as Slot,
1120
- Ao as Strong,
1121
- Xn as Switch,
1115
+ Kn as Input,
1116
+ Ro as Inset,
1117
+ bo as Kbd,
1118
+ Yn as LeftAndRightPanels,
1119
+ Do as Link,
1120
+ Xn as MultiSelect,
1121
+ Qn as Popover,
1122
+ $o as Portal,
1123
+ zo as Quote,
1124
+ Io as RadioGroup,
1125
+ Oo as ScrollArea,
1126
+ ko as Section,
1127
+ Fn as Select,
1128
+ ro as Separator,
1129
+ qn as Sidebar,
1130
+ No as Slider,
1131
+ Ao as Slot,
1132
+ Eo as Strong,
1133
+ Un as Switch,
1122
1134
  Bo as Table,
1123
- Eo as Tabs,
1124
- to as Text,
1125
- Yn as TextArea,
1126
- Lo as TextField,
1127
- Mo as Theme,
1128
- wn as Toast,
1129
- Ee as ToastContext,
1130
- eo as ToastProvider,
1131
- Jn as ToggleGroup,
1132
- Wo as Tooltip,
1133
- jo as VisuallyHidden,
1135
+ Lo as Tabs,
1136
+ no as Text,
1137
+ Jn as TextArea,
1138
+ Mo as TextField,
1139
+ Wo as Theme,
1140
+ yn as Toast,
1141
+ Be as ToastContext,
1142
+ to as ToastProvider,
1143
+ Zn as ToggleGroup,
1144
+ jo as Tooltip,
1145
+ Go as VisuallyHidden,
1134
1146
  Ln as divButtonProps,
1135
1147
  Tn as unsafeShowToast,
1136
- Go as updateThemeAppearanceClass,
1148
+ Ho as updateThemeAppearanceClass,
1137
1149
  Ot as useAlertDialog,
1138
1150
  Gn as useDiscardAlertDialog,
1139
1151
  R as useSeverityColor,
1140
1152
  Vo as useThemeContext,
1141
- Zn as useToast
1153
+ eo as useToast
1142
1154
  };
1143
1155
  //# sourceMappingURL=blocks.js.map