@overmap-ai/blocks 0.0.2 → 0.0.3

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