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

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