@overmap-ai/blocks 0.0.4 → 0.0.6

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