@overmap-ai/blocks 0.0.8 → 0.0.9-alpha.1

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