@overmap-ai/blocks 0.0.2-alpha.3 → 0.0.2

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