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

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