@chaibuilder/sdk 1.1.2 → 1.1.4

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.
Files changed (60) hide show
  1. package/dist/{AddBlocks-P3qHuE5J.cjs → AddBlocks-Wsoku0Sm.cjs} +1 -1
  2. package/dist/{AddBlocks-imyQSCbI.js → AddBlocks-rteGefHR.js} +20 -20
  3. package/dist/{BrandingOptions-tSNtQ1Kv.js → BrandingOptions-4l1Yo42i.js} +1 -1
  4. package/dist/{BrandingOptions-_2XBEPab.cjs → BrandingOptions-CqVvc-GC.cjs} +1 -1
  5. package/dist/CanvasArea-_WcM6PCy.js +1426 -0
  6. package/dist/CanvasArea-jzvQJnbQ.cjs +59 -0
  7. package/dist/{CurrentPage-hHwsHam-.cjs → CurrentPage-8AWFWOJ8.cjs} +1 -1
  8. package/dist/{CurrentPage-uRwS0DQC.js → CurrentPage-tnHIOkX2.js} +5 -5
  9. package/dist/{Layers-eXMT1ncm.js → Layers-6PHQWIbV.js} +15 -15
  10. package/dist/{Layers--5nyqOjK.cjs → Layers-jsOPQbVU.cjs} +1 -1
  11. package/dist/{MarkAsGlobalBlock-aqik3ouc.js → MarkAsGlobalBlock-9pfqCgrO.js} +1 -1
  12. package/dist/{MarkAsGlobalBlock-p_wvHkQZ.cjs → MarkAsGlobalBlock-bXkERbl2.cjs} +1 -1
  13. package/dist/{PagesPanel-WZgw7xVs.cjs → PagesPanel-Zvy5ZKPf.cjs} +1 -1
  14. package/dist/{PagesPanel-xRUnAMIb.js → PagesPanel-cmJ1UiP0.js} +3 -3
  15. package/dist/{ProjectPanel-FC03TiyG.cjs → ProjectPanel-4BsxvZu-.cjs} +1 -1
  16. package/dist/{ProjectPanel-8l4Bi3Kh.js → ProjectPanel-VxbDdgA2.js} +5 -5
  17. package/dist/Settings-AJet4HbF.cjs +1 -0
  18. package/dist/{Settings-4v3M1bRS.js → Settings-zzs6KaRd.js} +294 -303
  19. package/dist/{SidePanels-0xaw3Td6.js → SidePanels-UGgpWdPF.js} +9 -9
  20. package/dist/{SidePanels-5e5q3c7J.cjs → SidePanels-_8tt1l6S.cjs} +1 -1
  21. package/dist/{Topbar-ZjAs5fDc.cjs → Topbar-geYx1fCH.cjs} +1 -1
  22. package/dist/{Topbar-Jc74a6oE.js → Topbar-zw_KlpKs.js} +5 -5
  23. package/dist/{UnsplashImages-nXceZLmd.cjs → UnsplashImages-C4_dg08Y.cjs} +1 -1
  24. package/dist/{UnsplashImages-_PxEYx5c.js → UnsplashImages-yk5eowZf.js} +4 -4
  25. package/dist/{UploadImages-tcQb5NZu.cjs → UploadImages-hLrNjSXF.cjs} +1 -1
  26. package/dist/{UploadImages-zzSgKmP9.js → UploadImages-ioTAmtvl.js} +10 -10
  27. package/dist/{add-page-modal-K5isTZOT.js → add-page-modal-31-dJjna.js} +3 -3
  28. package/dist/{add-page-modal-JRSQ_N56.cjs → add-page-modal-Gsa-gnsn.cjs} +1 -1
  29. package/dist/{confirm-alert-2JxcNf3T.js → confirm-alert-c7sRVjK8.js} +1 -1
  30. package/dist/{confirm-alert-mzlwOW9w.cjs → confirm-alert-zqK8LIx8.cjs} +1 -1
  31. package/dist/core.cjs +1 -1
  32. package/dist/core.d.ts +0 -25
  33. package/dist/core.js +51 -55
  34. package/dist/{delete-page-modal-x81Ed4jF.js → delete-page-modal-5xqoPPl3.js} +2 -2
  35. package/dist/{delete-page-modal-c8nB2y7w.cjs → delete-page-modal-jEsSWzKN.cjs} +1 -1
  36. package/dist/{form-TQ7vwDYO.js → form-5tYo3gKa.js} +1 -1
  37. package/dist/{form-bSW-Pkw9.cjs → form-hHv26OT7.cjs} +1 -1
  38. package/dist/{index-HjvZqhVh.js → index-K_TiChPs.js} +4 -4
  39. package/dist/index-LLhN-70p.cjs +1 -0
  40. package/dist/{index-ORFlyrBx.js → index-pJPfM9Bm.js} +874 -878
  41. package/dist/{index-7NRFGya_.cjs → index-rdttRR05.cjs} +2 -2
  42. package/dist/{page-viewer-huD5B1om.cjs → page-viewer-DJqp04Tr.cjs} +1 -1
  43. package/dist/{page-viewer-fFaDQOOI.js → page-viewer-Oku6zrcm.js} +3 -3
  44. package/dist/{project-general-setting-rH_1r38b.js → project-general-setting-hrJZUYnV.js} +3 -3
  45. package/dist/{project-general-setting-rNNI-K6l.cjs → project-general-setting-rVhljgfP.cjs} +1 -1
  46. package/dist/{project-seo-setting-cERASO9j.cjs → project-seo-setting-Xg6cVYXo.cjs} +1 -1
  47. package/dist/{project-seo-setting-k0HlefUD.js → project-seo-setting-fwyxNcY-.js} +2 -2
  48. package/dist/{single-page-detail-CrgTQFUX.js → single-page-detail-1UCpERBU.js} +4 -4
  49. package/dist/{single-page-detail-52_cuxNe.cjs → single-page-detail-ilh1I9gv.cjs} +1 -1
  50. package/dist/studio.cjs +1 -1
  51. package/dist/studio.js +2 -2
  52. package/dist/ui.cjs +1 -1
  53. package/dist/ui.js +41 -41
  54. package/dist/{useAddBlockByDrop-UA_Iw_4l.js → useAddBlockByDrop-UJ6QE7aE.js} +1 -1
  55. package/dist/{useAddBlockByDrop-DPV32UHP.cjs → useAddBlockByDrop-jJ_MnZ5y.cjs} +1 -1
  56. package/package.json +1 -1
  57. package/dist/CanvasArea-UtFK5IS6.cjs +0 -58
  58. package/dist/CanvasArea-dkwSFbQA.js +0 -1412
  59. package/dist/Settings-kcmKFymH.cjs +0 -1
  60. package/dist/index-zkc4SQCu.cjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "./jsx-runtime-NV737rRe.js";
2
- import * as p from "react";
3
- import et, { createContext as Os, useContext as zs, useRef as Tr, createElement as Ir, useReducer as $s, useEffect as Ae, useDebugValue as Vs, useCallback as j, useMemo as Fs, useState as De, Suspense as vt } from "react";
2
+ import * as m from "react";
3
+ import et, { createContext as Os, useContext as zs, useRef as Br, createElement as Rr, useReducer as Vs, useEffect as je, useDebugValue as $s, useCallback as A, useMemo as Fs, useState as De, Suspense as vt } from "react";
4
4
  import * as zt from "@radix-ui/react-toggle";
5
5
  import { cva as be } from "class-variance-authority";
6
6
  import { g as le, a as Pe, b as Gs, c } from "./utils-PPBbw5bk.js";
@@ -8,28 +8,28 @@ import * as He from "@radix-ui/react-switch";
8
8
  import { Slot as Ws } from "@radix-ui/react-slot";
9
9
  import * as pe from "@radix-ui/react-accordion";
10
10
  import { ChevronDownIcon as Us, Cross2Icon as tt, ChevronRightIcon as st, CheckIcon as Ee, DotFilledIcon as ot, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
11
- import * as V from "@radix-ui/react-alert-dialog";
12
- import * as R from "@radix-ui/react-dialog";
13
- import * as $t from "@radix-ui/react-label";
11
+ import * as $ from "@radix-ui/react-alert-dialog";
12
+ import * as B from "@radix-ui/react-dialog";
13
+ import * as Vt from "@radix-ui/react-label";
14
14
  import * as me from "@radix-ui/react-scroll-area";
15
15
  import * as xe from "@radix-ui/react-tabs";
16
16
  import * as we from "@radix-ui/react-tooltip";
17
17
  import * as Se from "@radix-ui/react-popover";
18
- import * as _ from "@radix-ui/react-menubar";
18
+ import * as C from "@radix-ui/react-menubar";
19
19
  import * as Le from "@radix-ui/react-hover-card";
20
20
  import * as O from "@radix-ui/react-select";
21
- import * as T from "@radix-ui/react-dropdown-menu";
22
- import * as Vt from "@radix-ui/react-separator";
21
+ import * as P from "@radix-ui/react-dropdown-menu";
22
+ import * as $t from "@radix-ui/react-separator";
23
23
  import * as H from "@radix-ui/react-toast";
24
24
  import { Command as W } from "cmdk";
25
- import * as I from "@radix-ui/react-context-menu";
25
+ import * as T from "@radix-ui/react-context-menu";
26
26
  import Ks, { IconPickerItem as Js } from "react-icons-picker";
27
27
  import Ys from "react-dom";
28
- import { flatten as Y, filter as M, omit as at, isEmpty as oe, isString as Qs, find as te, map as $, each as ce, get as P, set as fe, has as nt, includes as G, isUndefined as Fr, without as Ft, forIn as Gt, findIndex as Be, last as Xs, first as se, startsWith as Wt, isNull as qe, pick as wt, sortBy as Nt, isObject as Zs } from "lodash";
28
+ import { flatten as Y, filter as I, omit as at, isEmpty as oe, isString as Qs, find as te, map as V, each as ce, get as E, set as fe, has as nt, includes as G, isUndefined as zr, without as Ft, forIn as Gt, findIndex as Be, last as Xs, first as se, startsWith as Wt, isNull as qe, pick as wt, sortBy as Nt, isObject as Zs } from "lodash";
29
29
  import eo from "react-quill";
30
- import { atom as y, useAtom as C, useAtomValue as L, useSetAtom as de } from "jotai";
30
+ import { atom as y, useAtom as R, useAtomValue as L, useSetAtom as de } from "jotai";
31
31
  import Ut from "flat-to-nested";
32
- import to, { excludeAction as so, ActionCreators as $e } from "redux-undo";
32
+ import to, { excludeAction as so, ActionCreators as Ve } from "redux-undo";
33
33
  import { a as ge, I as Ht, S as Ke, B as Je } from "./MODIFIERS-MLfpKQY1.js";
34
34
  import { useChaiBlocks as oo } from "@chaibuilder/runtime";
35
35
  import { useThrottledCallback as ao } from "@react-hookz/web";
@@ -45,7 +45,7 @@ function Z(e, t) {
45
45
  typeof i == "function" ? i(n(o)) : i
46
46
  )), t && (o.write = t), o;
47
47
  }
48
- const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new WeakMap(), ro = (e, t) => {
48
+ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new WeakMap(), ro = (e, t) => {
49
49
  Me.set(e, t), e.catch(() => {
50
50
  }).finally(() => Me.delete(e));
51
51
  }, kt = (e, t) => {
@@ -53,9 +53,9 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
53
53
  s && (Me.delete(e), s(t));
54
54
  }, St = (e, t) => {
55
55
  e.status = "fulfilled", e.value = t;
56
- }, At = (e, t) => {
56
+ }, jt = (e, t) => {
57
57
  e.status = "rejected", e.reason = t;
58
- }, io = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), jt = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), ye = (e) => "v" in e && e.v instanceof Promise, lo = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Re = (e) => {
58
+ }, io = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), At = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), ye = (e) => "v" in e && e.v instanceof Promise, lo = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Re = (e) => {
59
59
  if ("e" in e)
60
60
  throw e.e;
61
61
  return e.v;
@@ -63,117 +63,117 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
63
63
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
64
64
  let o, n, r;
65
65
  (z ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set());
66
- const i = (d) => e.get(d), u = (d, g) => {
67
- (z ? "production" : void 0) !== "production" && Object.freeze(g);
66
+ const i = (d) => e.get(d), u = (d, f) => {
67
+ (z ? "production" : void 0) !== "production" && Object.freeze(f);
68
68
  const h = e.get(d);
69
- if (e.set(d, g), s.has(d) || s.set(d, h), h && ye(h)) {
70
- const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
71
- kt(h.v, b);
69
+ if (e.set(d, f), s.has(d) || s.set(d, h), h && ye(h)) {
70
+ const g = "v" in f ? f.v instanceof Promise ? f.v : Promise.resolve(f.v) : Promise.reject(f.e);
71
+ kt(h.v, g);
72
72
  }
73
- }, m = (d, g, h) => {
74
- const b = /* @__PURE__ */ new Map();
73
+ }, p = (d, f, h) => {
74
+ const g = /* @__PURE__ */ new Map();
75
75
  let v = !1;
76
76
  h.forEach((x, N) => {
77
- !x && N === d && (x = g), x ? (b.set(N, x), g.d.get(N) !== x && (v = !0)) : (z ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
78
- }), (v || g.d.size !== b.size) && (g.d = b);
79
- }, l = (d, g, h) => {
80
- const b = i(d), v = {
81
- d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
82
- v: g
77
+ !x && N === d && (x = f), x ? (g.set(N, x), f.d.get(N) !== x && (v = !0)) : (z ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
78
+ }), (v || f.d.size !== g.size) && (f.d = g);
79
+ }, l = (d, f, h) => {
80
+ const g = i(d), v = {
81
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
82
+ v: f
83
83
  };
84
- if (h && m(d, v, h), b && Ne(b, v) && b.d === v.d)
85
- return b;
86
- if (b && ye(b) && ye(v) && lo(b, v)) {
87
- if (b.d === v.d)
88
- return b;
89
- v.v = b.v;
84
+ if (h && p(d, v, h), g && Ne(g, v) && g.d === v.d)
85
+ return g;
86
+ if (g && ye(g) && ye(v) && lo(g, v)) {
87
+ if (g.d === v.d)
88
+ return g;
89
+ v.v = g.v;
90
90
  }
91
91
  return u(d, v), v;
92
- }, f = (d, g, h, b) => {
93
- if (io(g)) {
92
+ }, b = (d, f, h, g) => {
93
+ if (io(f)) {
94
94
  let v;
95
- const x = new Promise((N, D) => {
95
+ const x = new Promise((N, M) => {
96
96
  let S = !1;
97
- g.then(
98
- (B) => {
97
+ f.then(
98
+ (_) => {
99
99
  if (!S) {
100
100
  S = !0;
101
- const A = i(d), X = l(
101
+ const j = i(d), X = l(
102
102
  d,
103
103
  x,
104
104
  h
105
105
  );
106
- St(x, B), N(B), (A == null ? void 0 : A.d) !== X.d && U(d, X, A == null ? void 0 : A.d);
106
+ St(x, _), N(_), (j == null ? void 0 : j.d) !== X.d && U(d, X, j == null ? void 0 : j.d);
107
107
  }
108
108
  },
109
- (B) => {
109
+ (_) => {
110
110
  if (!S) {
111
111
  S = !0;
112
- const A = i(d), X = l(
112
+ const j = i(d), X = l(
113
113
  d,
114
114
  x,
115
115
  h
116
116
  );
117
- At(x, B), D(B), (A == null ? void 0 : A.d) !== X.d && U(d, X, A == null ? void 0 : A.d);
117
+ jt(x, _), M(_), (j == null ? void 0 : j.d) !== X.d && U(d, X, j == null ? void 0 : j.d);
118
118
  }
119
119
  }
120
- ), v = (B) => {
121
- S || (S = !0, B.then(
122
- (A) => St(x, A),
123
- (A) => At(x, A)
124
- ), N(B));
120
+ ), v = (_) => {
121
+ S || (S = !0, _.then(
122
+ (j) => St(x, j),
123
+ (j) => jt(x, j)
124
+ ), N(_));
125
125
  };
126
126
  });
127
- return x.orig = g, x.status = "pending", ro(x, (N) => {
128
- N && v(N), b == null || b();
127
+ return x.orig = f, x.status = "pending", ro(x, (N) => {
128
+ N && v(N), g == null || g();
129
129
  }), l(d, x, h);
130
130
  }
131
- return l(d, g, h);
132
- }, w = (d, g, h) => {
133
- const b = i(d), v = {
134
- d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
135
- e: g
131
+ return l(d, f, h);
132
+ }, w = (d, f, h) => {
133
+ const g = i(d), v = {
134
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
135
+ e: f
136
136
  };
137
- return h && m(d, v, h), b && jt(b, v) && b.d === v.d ? b : (u(d, v), v);
137
+ return h && p(d, v, h), g && At(g, v) && g.d === v.d ? g : (u(d, v), v);
138
138
  }, k = (d) => {
139
- const g = i(d);
140
- if (g && (g.d.forEach((S, B) => {
141
- B !== d && !t.has(B) && k(B);
142
- }), Array.from(g.d).every(([S, B]) => {
143
- const A = i(S);
144
- return S === d || A === B || // TODO This is a hack, we should find a better solution.
145
- A && !ye(A) && Ne(A, B);
139
+ const f = i(d);
140
+ if (f && (f.d.forEach((S, _) => {
141
+ _ !== d && !t.has(_) && k(_);
142
+ }), Array.from(f.d).every(([S, _]) => {
143
+ const j = i(S);
144
+ return S === d || j === _ || // TODO This is a hack, we should find a better solution.
145
+ j && !ye(j) && Ne(j, _);
146
146
  })))
147
- return g;
147
+ return f;
148
148
  const h = /* @__PURE__ */ new Map();
149
- let b = !0;
149
+ let g = !0;
150
150
  const v = (S) => {
151
151
  if (S === d) {
152
- const A = i(S);
153
- if (A)
154
- return h.set(S, A), Re(A);
155
- if (Ve(S))
152
+ const j = i(S);
153
+ if (j)
154
+ return h.set(S, j), Re(j);
155
+ if ($e(S))
156
156
  return h.set(S, void 0), S.init;
157
157
  throw new Error("no atom init");
158
158
  }
159
- const B = k(S);
160
- return h.set(S, B), Re(B);
159
+ const _ = k(S);
160
+ return h.set(S, _), Re(_);
161
161
  };
162
162
  let x, N;
163
- const D = {
163
+ const M = {
164
164
  get signal() {
165
165
  return x || (x = new AbortController()), x.signal;
166
166
  },
167
167
  get setSelf() {
168
168
  return (z ? "production" : void 0) !== "production" && !Fe(d) && console.warn("setSelf function cannot be used with read-only atom"), !N && Fe(d) && (N = (...S) => {
169
- if ((z ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
169
+ if ((z ? "production" : void 0) !== "production" && g && console.warn("setSelf function cannot be called in sync"), !g)
170
170
  return ee(d, ...S);
171
171
  }), N;
172
172
  }
173
173
  };
174
174
  try {
175
- const S = d.read(v, D);
176
- return f(
175
+ const S = d.read(v, M);
176
+ return b(
177
177
  d,
178
178
  S,
179
179
  h,
@@ -182,138 +182,138 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
182
182
  } catch (S) {
183
183
  return w(d, S, h);
184
184
  } finally {
185
- b = !1;
185
+ g = !1;
186
186
  }
187
- }, E = (d) => Re(k(d)), F = (d) => {
188
- let g = t.get(d);
189
- return g || (g = J(d)), g;
190
- }, K = (d, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(d)), ae = (d) => {
191
- const g = t.get(d);
192
- g && K(d, g) && ue(d);
187
+ }, D = (d) => Re(k(d)), F = (d) => {
188
+ let f = t.get(d);
189
+ return f || (f = J(d)), f;
190
+ }, K = (d, f) => !f.l.size && (!f.t.size || f.t.size === 1 && f.t.has(d)), ae = (d) => {
191
+ const f = t.get(d);
192
+ f && K(d, f) && ue(d);
193
193
  }, he = (d) => {
194
- const g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), b = (x) => {
194
+ const f = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), g = (x) => {
195
195
  const N = t.get(x);
196
- N == null || N.t.forEach((D) => {
197
- D !== x && (g.set(
198
- D,
199
- (g.get(D) || /* @__PURE__ */ new Set()).add(x)
200
- ), h.set(D, (h.get(D) || 0) + 1), b(D));
196
+ N == null || N.t.forEach((M) => {
197
+ M !== x && (f.set(
198
+ M,
199
+ (f.get(M) || /* @__PURE__ */ new Set()).add(x)
200
+ ), h.set(M, (h.get(M) || 0) + 1), g(M));
201
201
  });
202
202
  };
203
- b(d);
203
+ g(d);
204
204
  const v = (x) => {
205
205
  const N = t.get(x);
206
- N == null || N.t.forEach((D) => {
206
+ N == null || N.t.forEach((M) => {
207
207
  var S;
208
- if (D !== x) {
209
- let B = h.get(D);
210
- if (B && h.set(D, --B), !B) {
211
- let A = !!((S = g.get(D)) != null && S.size);
212
- if (A) {
213
- const X = i(D), Ls = k(D);
214
- A = !X || !Ne(X, Ls);
208
+ if (M !== x) {
209
+ let _ = h.get(M);
210
+ if (_ && h.set(M, --_), !_) {
211
+ let j = !!((S = f.get(M)) != null && S.size);
212
+ if (j) {
213
+ const X = i(M), Ls = k(M);
214
+ j = !X || !Ne(X, Ls);
215
215
  }
216
- A || g.forEach((X) => X.delete(D));
216
+ j || f.forEach((X) => X.delete(M));
217
217
  }
218
- v(D);
218
+ v(M);
219
219
  }
220
220
  });
221
221
  };
222
222
  v(d);
223
- }, ne = (d, ...g) => {
223
+ }, ne = (d, ...f) => {
224
224
  let h = !0;
225
- const b = (N) => Re(k(N)), v = (N, ...D) => {
225
+ const g = (N) => Re(k(N)), v = (N, ...M) => {
226
226
  let S;
227
227
  if (N === d) {
228
- if (!Ve(N))
228
+ if (!$e(N))
229
229
  throw new Error("atom not writable");
230
- const B = i(N), A = f(N, D[0]);
231
- (!B || !Ne(B, A)) && he(N);
230
+ const _ = i(N), j = b(N, M[0]);
231
+ (!_ || !Ne(_, j)) && he(N);
232
232
  } else
233
- S = ne(N, ...D);
233
+ S = ne(N, ...M);
234
234
  if (!h) {
235
- const B = re();
235
+ const _ = re();
236
236
  (z ? "production" : void 0) !== "production" && n.forEach(
237
- (A) => A({ type: "async-write", flushed: B })
237
+ (j) => j({ type: "async-write", flushed: _ })
238
238
  );
239
239
  }
240
240
  return S;
241
- }, x = d.write(b, v, ...g);
241
+ }, x = d.write(g, v, ...f);
242
242
  return h = !1, x;
243
- }, ee = (d, ...g) => {
244
- const h = ne(d, ...g), b = re();
243
+ }, ee = (d, ...f) => {
244
+ const h = ne(d, ...f), g = re();
245
245
  return (z ? "production" : void 0) !== "production" && n.forEach(
246
- (v) => v({ type: "write", flushed: b })
246
+ (v) => v({ type: "write", flushed: g })
247
247
  ), h;
248
- }, J = (d, g) => {
248
+ }, J = (d, f) => {
249
249
  const h = {
250
- t: new Set(g && [g]),
250
+ t: new Set(f && [f]),
251
251
  l: /* @__PURE__ */ new Set()
252
252
  };
253
- if (t.set(d, h), (z ? "production" : void 0) !== "production" && r.add(d), k(d).d.forEach((b, v) => {
253
+ if (t.set(d, h), (z ? "production" : void 0) !== "production" && r.add(d), k(d).d.forEach((g, v) => {
254
254
  const x = t.get(v);
255
255
  x ? x.t.add(d) : v !== d && J(v, d);
256
256
  }), k(d), Fe(d) && d.onMount) {
257
- const b = d.onMount((...v) => ee(d, ...v));
258
- b && (h.u = b);
257
+ const g = d.onMount((...v) => ee(d, ...v));
258
+ g && (h.u = g);
259
259
  }
260
260
  return h;
261
261
  }, ue = (d) => {
262
- var g;
263
- const h = (g = t.get(d)) == null ? void 0 : g.u;
262
+ var f;
263
+ const h = (f = t.get(d)) == null ? void 0 : f.u;
264
264
  h && h(), t.delete(d), (z ? "production" : void 0) !== "production" && r.delete(d);
265
- const b = i(d);
266
- b ? (ye(b) && kt(b.v), b.d.forEach((v, x) => {
265
+ const g = i(d);
266
+ g ? (ye(g) && kt(g.v), g.d.forEach((v, x) => {
267
267
  if (x !== d) {
268
268
  const N = t.get(x);
269
269
  N && (N.t.delete(d), K(x, N) && ue(x));
270
270
  }
271
271
  })) : (z ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", d);
272
- }, U = (d, g, h) => {
273
- const b = new Set(g.d.keys());
272
+ }, U = (d, f, h) => {
273
+ const g = new Set(f.d.keys());
274
274
  h == null || h.forEach((v, x) => {
275
- if (b.has(x)) {
276
- b.delete(x);
275
+ if (g.has(x)) {
276
+ g.delete(x);
277
277
  return;
278
278
  }
279
279
  const N = t.get(x);
280
280
  N && (N.t.delete(d), K(x, N) && ue(x));
281
- }), b.forEach((v) => {
281
+ }), g.forEach((v) => {
282
282
  const x = t.get(v);
283
283
  x ? x.t.add(d) : t.has(d) && J(v, d);
284
284
  });
285
285
  }, re = () => {
286
286
  let d;
287
287
  for ((z ? "production" : void 0) !== "production" && (d = /* @__PURE__ */ new Set()); s.size; ) {
288
- const g = Array.from(s);
289
- s.clear(), g.forEach(([h, b]) => {
288
+ const f = Array.from(s);
289
+ s.clear(), f.forEach(([h, g]) => {
290
290
  const v = i(h);
291
291
  if (v) {
292
- v.d !== (b == null ? void 0 : b.d) && U(h, v, b == null ? void 0 : b.d);
292
+ v.d !== (g == null ? void 0 : g.d) && U(h, v, g == null ? void 0 : g.d);
293
293
  const x = t.get(h);
294
294
  x && !// TODO This seems pretty hacky. Hope to fix it.
295
295
  // Maybe we could `mountDependencies` in `setAtomState`?
296
- (b && !ye(b) && (Ne(b, v) || jt(b, v))) && (x.l.forEach((N) => N()), (z ? "production" : void 0) !== "production" && d.add(h));
296
+ (g && !ye(g) && (Ne(g, v) || At(g, v))) && (x.l.forEach((N) => N()), (z ? "production" : void 0) !== "production" && d.add(h));
297
297
  } else
298
298
  (z ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
299
299
  });
300
300
  }
301
301
  if ((z ? "production" : void 0) !== "production")
302
- return o.forEach((g) => g("state")), d;
303
- }, ie = (d, g) => {
304
- const h = F(d), b = re(), v = h.l;
305
- return v.add(g), (z ? "production" : void 0) !== "production" && (o.forEach((x) => x("sub")), n.forEach(
306
- (x) => x({ type: "sub", flushed: b })
302
+ return o.forEach((f) => f("state")), d;
303
+ }, ie = (d, f) => {
304
+ const h = F(d), g = re(), v = h.l;
305
+ return v.add(f), (z ? "production" : void 0) !== "production" && (o.forEach((x) => x("sub")), n.forEach(
306
+ (x) => x({ type: "sub", flushed: g })
307
307
  )), () => {
308
- v.delete(g), ae(d), (z ? "production" : void 0) !== "production" && (o.forEach((x) => x("unsub")), n.forEach((x) => x({ type: "unsub" })));
308
+ v.delete(f), ae(d), (z ? "production" : void 0) !== "production" && (o.forEach((x) => x("unsub")), n.forEach((x) => x({ type: "unsub" })));
309
309
  };
310
310
  };
311
311
  return (z ? "production" : void 0) !== "production" ? {
312
- get: E,
312
+ get: D,
313
313
  set: ee,
314
314
  sub: ie,
315
315
  // store dev methods (these are tentative and subject to change without notice)
316
- dev_subscribe_store: (d, g) => g !== 2 ? (console.warn(
316
+ dev_subscribe_store: (d, f) => f !== 2 ? (console.warn(
317
317
  "The current StoreListener revision is 2. The older ones are deprecated."
318
318
  ), o.add(d), () => {
319
319
  o.delete(d);
@@ -324,15 +324,15 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
324
324
  dev_get_atom_state: (d) => e.get(d),
325
325
  dev_get_mounted: (d) => t.get(d),
326
326
  dev_restore_atoms: (d) => {
327
- for (const [h, b] of d)
328
- Ve(h) && (f(h, b), he(h));
329
- const g = re();
327
+ for (const [h, g] of d)
328
+ $e(h) && (b(h, g), he(h));
329
+ const f = re();
330
330
  n.forEach(
331
- (h) => h({ type: "restore", flushed: g })
331
+ (h) => h({ type: "restore", flushed: f })
332
332
  );
333
333
  }
334
334
  } : {
335
- get: E,
335
+ get: D,
336
336
  set: ee,
337
337
  sub: ie
338
338
  };
@@ -359,31 +359,31 @@ const fo = (e) => typeof (e == null ? void 0 : e.then) == "function", go = et.us
359
359
  ), e);
360
360
  });
361
361
  function bo(e, t) {
362
- const s = qt(t), [[o, n, r], i] = $s(
362
+ const s = qt(t), [[o, n, r], i] = Vs(
363
363
  (l) => {
364
- const f = s.get(e);
365
- return Object.is(l[0], f) && l[1] === s && l[2] === e ? l : [f, s, e];
364
+ const b = s.get(e);
365
+ return Object.is(l[0], b) && l[1] === s && l[2] === e ? l : [b, s, e];
366
366
  },
367
367
  void 0,
368
368
  () => [s.get(e), s, e]
369
369
  );
370
370
  let u = o;
371
371
  (n !== s || r !== e) && (i(), u = s.get(e));
372
- const m = t == null ? void 0 : t.delay;
373
- return Ae(() => {
372
+ const p = t == null ? void 0 : t.delay;
373
+ return je(() => {
374
374
  const l = s.sub(e, () => {
375
- if (typeof m == "number") {
376
- setTimeout(i, m);
375
+ if (typeof p == "number") {
376
+ setTimeout(i, p);
377
377
  return;
378
378
  }
379
379
  i();
380
380
  });
381
381
  return i(), l;
382
- }, [s, e, m]), Vs(u), fo(u) ? go(u) : u;
382
+ }, [s, e, p]), $s(u), fo(u) ? go(u) : u;
383
383
  }
384
384
  function xo(e, t) {
385
385
  const s = qt(t);
386
- return j(
386
+ return A(
387
387
  (...n) => {
388
388
  if ((mo ? "production" : void 0) !== "production" && !("write" in e))
389
389
  throw new Error("not writable atom");
@@ -392,7 +392,7 @@ function xo(e, t) {
392
392
  [s, e]
393
393
  );
394
394
  }
395
- function Qr(e, t) {
395
+ function Kr(e, t) {
396
396
  return [
397
397
  bo(e, t),
398
398
  // We do wrong type assertion here, which results in throwing an error.
@@ -416,16 +416,16 @@ function ko(e, t) {
416
416
  return vo(
417
417
  () => {
418
418
  const s = /* @__PURE__ */ new WeakMap(), o = (i, u) => {
419
- let m = s.get(i);
420
- if (m)
421
- return m;
422
- const l = u && s.get(u), f = [], w = [];
423
- return i.forEach((k, E) => {
424
- const F = t ? t(k) : E;
425
- w[E] = F;
419
+ let p = s.get(i);
420
+ if (p)
421
+ return p;
422
+ const l = u && s.get(u), b = [], w = [];
423
+ return i.forEach((k, D) => {
424
+ const F = t ? t(k) : D;
425
+ w[D] = F;
426
426
  const K = l && l.atomList[l.keyList.indexOf(F)];
427
427
  if (K) {
428
- f[E] = K;
428
+ b[D] = K;
429
429
  return;
430
430
  }
431
431
  const ae = (ne) => {
@@ -448,53 +448,53 @@ function ko(e, t) {
448
448
  ...U.slice(ie + 1)
449
449
  ]);
450
450
  };
451
- f[E] = _t(e) ? Z(ae, he) : Z(ae);
452
- }), l && l.keyList.length === w.length && l.keyList.every((k, E) => k === w[E]) ? m = l : m = { arr: i, atomList: f, keyList: w }, s.set(i, m), m;
451
+ b[D] = _t(e) ? Z(ae, he) : Z(ae);
452
+ }), l && l.keyList.length === w.length && l.keyList.every((k, D) => k === w[D]) ? p = l : p = { arr: i, atomList: b, keyList: w }, s.set(i, p), p;
453
453
  }, n = Z((i) => {
454
- const u = i(n), m = i(e);
455
- return o(m, u == null ? void 0 : u.arr);
454
+ const u = i(n), p = i(e);
455
+ return o(p, u == null ? void 0 : u.arr);
456
456
  });
457
457
  (rt ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
458
458
  const r = _t(e) ? Z(
459
459
  (i) => i(n).atomList,
460
- (i, u, m) => {
461
- switch (m.type) {
460
+ (i, u, p) => {
461
+ switch (p.type) {
462
462
  case "remove": {
463
- const l = i(r).indexOf(m.atom);
463
+ const l = i(r).indexOf(p.atom);
464
464
  if (l >= 0) {
465
- const f = i(e);
465
+ const b = i(e);
466
466
  u(e, [
467
- ...f.slice(0, l),
468
- ...f.slice(l + 1)
467
+ ...b.slice(0, l),
468
+ ...b.slice(l + 1)
469
469
  ]);
470
470
  }
471
471
  break;
472
472
  }
473
473
  case "insert": {
474
- const l = m.before ? i(r).indexOf(m.before) : i(r).length;
474
+ const l = p.before ? i(r).indexOf(p.before) : i(r).length;
475
475
  if (l >= 0) {
476
- const f = i(e);
476
+ const b = i(e);
477
477
  u(e, [
478
- ...f.slice(0, l),
479
- m.value,
480
- ...f.slice(l)
478
+ ...b.slice(0, l),
479
+ p.value,
480
+ ...b.slice(l)
481
481
  ]);
482
482
  }
483
483
  break;
484
484
  }
485
485
  case "move": {
486
- const l = i(r).indexOf(m.atom), f = m.before ? i(r).indexOf(m.before) : i(r).length;
487
- if (l >= 0 && f >= 0) {
486
+ const l = i(r).indexOf(p.atom), b = p.before ? i(r).indexOf(p.before) : i(r).length;
487
+ if (l >= 0 && b >= 0) {
488
488
  const w = i(e);
489
- l < f ? u(e, [
489
+ l < b ? u(e, [
490
490
  ...w.slice(0, l),
491
- ...w.slice(l + 1, f),
491
+ ...w.slice(l + 1, b),
492
492
  w[l],
493
- ...w.slice(f)
493
+ ...w.slice(b)
494
494
  ]) : u(e, [
495
- ...w.slice(0, f),
495
+ ...w.slice(0, b),
496
496
  w[l],
497
- ...w.slice(f, l),
497
+ ...w.slice(b, l),
498
498
  ...w.slice(l + 1)
499
499
  ]);
500
500
  }
@@ -509,7 +509,7 @@ function ko(e, t) {
509
509
  t || wo
510
510
  );
511
511
  }
512
- function Xr(e) {
512
+ function Jr(e) {
513
513
  const t = Symbol(), s = Z(t);
514
514
  (rt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
515
515
  const o = Z(
@@ -530,23 +530,23 @@ function Xr(e) {
530
530
  return o;
531
531
  }
532
532
  const So = (e) => typeof (e == null ? void 0 : e.then) == "function";
533
- function Ao(e) {
533
+ function jo(e) {
534
534
  let t, s;
535
535
  const o = {
536
536
  getItem: (n, r) => {
537
537
  var i, u;
538
- const m = (f) => {
539
- if (f = f || "", t !== f) {
538
+ const p = (b) => {
539
+ if (b = b || "", t !== b) {
540
540
  try {
541
- s = JSON.parse(f);
541
+ s = JSON.parse(b);
542
542
  } catch {
543
543
  return r;
544
544
  }
545
- t = f;
545
+ t = b;
546
546
  }
547
547
  return s;
548
548
  }, l = (u = (i = e()) == null ? void 0 : i.getItem(n)) != null ? u : null;
549
- return So(l) ? l.then(m) : m(l);
549
+ return So(l) ? l.then(p) : p(l);
550
550
  },
551
551
  setItem: (n, r) => {
552
552
  var i;
@@ -561,11 +561,11 @@ function Ao(e) {
561
561
  if (!(e() instanceof window.Storage))
562
562
  return () => {
563
563
  };
564
- const u = (m) => {
565
- if (m.storageArea === e() && m.key === n) {
564
+ const u = (p) => {
565
+ if (p.storageArea === e() && p.key === n) {
566
566
  let l;
567
567
  try {
568
- l = JSON.parse(m.newValue || "");
568
+ l = JSON.parse(p.newValue || "");
569
569
  } catch {
570
570
  l = i;
571
571
  }
@@ -577,22 +577,22 @@ function Ao(e) {
577
577
  };
578
578
  }), o;
579
579
  }
580
- const jo = Ao(
580
+ const Ao = jo(
581
581
  () => typeof window < "u" ? window.localStorage : void 0
582
582
  );
583
- function je(e, t, s = jo, o) {
583
+ function Ae(e, t, s = Ao, o) {
584
584
  const n = o == null ? void 0 : o.unstable_getOnInit, r = Z(
585
585
  n ? s.getItem(e, t) : t
586
586
  );
587
587
  return (rt ? "production" : void 0) !== "production" && (r.debugPrivate = !0), r.onMount = (u) => {
588
588
  n || u(s.getItem(e, t));
589
- let m;
590
- return s.subscribe && (m = s.subscribe(e, u, t)), m;
589
+ let p;
590
+ return s.subscribe && (p = s.subscribe(e, u, t)), p;
591
591
  }, Z(
592
592
  (u) => u(r),
593
- (u, m, l) => {
594
- const f = typeof l == "function" ? l(u(r)) : l;
595
- return f === Kt ? (m(r, t), s.removeItem(e)) : f instanceof Promise ? f.then((w) => (m(r, w), s.setItem(e, w))) : (m(r, f), s.setItem(e, f));
593
+ (u, p, l) => {
594
+ const b = typeof l == "function" ? l(u(r)) : l;
595
+ return b === Kt ? (p(r, t), s.removeItem(e)) : b instanceof Promise ? b.then((w) => (p(r, w), s.setItem(e, w))) : (p(r, b), s.setItem(e, b));
596
596
  }
597
597
  );
598
598
  }
@@ -600,7 +600,7 @@ const it = y(null);
600
600
  it.debugLabel = "chaiBuilderPropsAtom";
601
601
  const Co = y({});
602
602
  Co.debugLabel = "chaiExternalDataAtom";
603
- const Zr = () => !1, _o = (e) => {
603
+ const Yr = () => !1, _o = (e) => {
604
604
  const t = e.replace(ge, "").split(",");
605
605
  return { baseClasses: t[0], classes: t[1] };
606
606
  };
@@ -614,12 +614,12 @@ const Bo = new Ut({ children: "blockNodes" }), Jt = (e, t = null) => Y(
614
614
  })
615
615
  );
616
616
  function Yt(e, t, s) {
617
- const o = M(e, (r) => r._parent === t), n = [];
617
+ const o = I(e, (r) => r._parent === t), n = [];
618
618
  for (let r = 0; r < o.length; r++) {
619
619
  const i = Qt(o[r]);
620
620
  if (Object.keys(i).length > 0 && Object.keys(i).forEach((u) => {
621
621
  o[r][u] = `slot:${le()}`;
622
- }), M(e, { _parent: o[r]._id }).length > 0) {
622
+ }), I(e, { _parent: o[r]._id }).length > 0) {
623
623
  const u = le();
624
624
  n.push({ ...o[r], oldId: o[r]._id, _id: u, _parent: s }), n.push(Y(Yt(e, o[r]._id, u)));
625
625
  } else
@@ -645,13 +645,13 @@ const Qt = (e) => {
645
645
  let o = te(e, { _id: t });
646
646
  o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
647
647
  const n = [o];
648
- M(e, { _parent: t }).length > 0 && n.push(Y(Yt(e, t, o._id)));
648
+ I(e, { _parent: t }).length > 0 && n.push(Y(Yt(e, t, o._id)));
649
649
  const r = Y(n);
650
- return $(r, (i) => {
651
- const u = i, m = Qt(u);
652
- return Object.keys(m).length > 0 && Object.keys(m).forEach((l) => {
653
- const f = te(r, { oldId: m[l].replace("slot:", "") });
654
- u[l] = `slot:${f._id}`;
650
+ return V(r, (i) => {
651
+ const u = i, p = Qt(u);
652
+ return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
653
+ const b = te(r, { oldId: p[l].replace("slot:", "") });
654
+ u[l] = `slot:${b._id}`;
655
655
  }), at(u, ["global", "oldId"]);
656
656
  });
657
657
  };
@@ -711,14 +711,14 @@ const Zt = y([]);
711
711
  Zt.debugLabel = "buildingBlocksAtom";
712
712
  const es = y((e) => {
713
713
  const t = e(Zt);
714
- return M(t, (s) => nt(s, "blockId"));
714
+ return I(t, (s) => nt(s, "blockId"));
715
715
  });
716
716
  es.debugLabel = "globalBlocksAtom";
717
717
  const q = () => {
718
- const [, e] = C(Oe);
718
+ const [, e] = R(Oe);
719
719
  return e;
720
- }, ei = () => {
721
- const e = q(), t = L(Xt), s = j(
720
+ }, Qr = () => {
721
+ const e = q(), t = L(Xt), s = A(
722
722
  (o) => {
723
723
  const n = Jt(o);
724
724
  e({ type: "set_page_blocks", payload: n });
@@ -726,9 +726,9 @@ const q = () => {
726
726
  [e]
727
727
  );
728
728
  return [t, s];
729
- }, ti = () => {
729
+ }, Xr = () => {
730
730
  const e = q();
731
- return [j(
731
+ return [A(
732
732
  (s) => {
733
733
  e({ type: "set_page_blocks", payload: s });
734
734
  },
@@ -747,19 +747,19 @@ const q = () => {
747
747
  "Table",
748
748
  "Row",
749
749
  "TableCell"
750
- ].includes(e), si = (e) => !["Slot"].includes(e), oi = (e) => !["Slot"].includes(e);
750
+ ].includes(e), Zr = (e) => !["Slot"].includes(e), ei = (e) => !["Slot"].includes(e);
751
751
  function Eo(e, t) {
752
752
  return e === "Slot" || t === "List" && e !== "ListItem" || t === "Row" && e !== "Column" ? !1 : Ye(t);
753
753
  }
754
- const ai = (e, { dragSource: t, dropTarget: s }) => {
755
- const o = P(t, "data._type", ""), n = P(s, "data._type", "");
756
- return o === "Slot" || P(t, "id") && P(t, "id") === P(s, "id") ? !1 : oe(n) ? !0 : Eo(o, n);
754
+ const ti = (e, { dragSource: t, dropTarget: s }) => {
755
+ const o = E(t, "data._type", ""), n = E(s, "data._type", "");
756
+ return o === "Slot" || E(t, "id") && E(t, "id") === E(s, "id") ? !1 : oe(n) ? !0 : Eo(o, n);
757
757
  }, ct = y([]);
758
758
  ct.debugLabel = "selectedBlockIdsAtom";
759
759
  const dt = y((e) => {
760
760
  const t = e(Q), s = e(ct);
761
- return $(
762
- M(t, ({ _id: o }) => G(s, o)),
761
+ return V(
762
+ I(t, ({ _id: o }) => G(s, o)),
763
763
  (o) => ({ ...o })
764
764
  );
765
765
  });
@@ -768,13 +768,13 @@ const ut = y((e) => {
768
768
  const t = e(dt);
769
769
  return t.length === 0 ? null : t.length === 1 ? t[0] : {
770
770
  type: "Multiple",
771
- id: $(t, "id")
771
+ id: V(t, "id")
772
772
  };
773
773
  });
774
774
  ut.debugLabel = "selectedBlockAtom";
775
- const Lo = (e) => P(e, "parent", null), Oo = y((e) => {
776
- const t = e(dt), s = $(t, Lo);
777
- return M(e(Q), (o) => G(s, o._id));
775
+ const Lo = (e) => E(e, "parent", null), Oo = y((e) => {
776
+ const t = e(dt), s = V(t, Lo);
777
+ return I(e(Q), (o) => G(s, o._id));
778
778
  });
779
779
  Oo.debugLabel = "selectedBlocksParentsAtom";
780
780
  const ts = y(() => !1);
@@ -783,99 +783,99 @@ const ss = y(() => !1);
783
783
  ss.debugLabel = "selectedBlockGridChildAtom";
784
784
  const mt = y("");
785
785
  mt.debugLabel = "styleStateAtom";
786
- const os = je("styleBreakpoint", "xs");
786
+ const os = Ae("styleBreakpoint", "xs");
787
787
  os.debugLabel = "styleBreakpointAtom";
788
- const ni = () => ({
788
+ const si = () => ({
789
789
  flexChild: L(ts),
790
790
  gridChild: L(ss)
791
- }), ri = () => L(ut);
791
+ }), oi = () => L(ut);
792
792
  const Ce = () => {
793
- const [e, t] = C(ct), s = j(
793
+ const [e, t] = R(ct), s = A(
794
794
  (o) => {
795
795
  t((n) => G(n, o) ? Ft(n, o) : [...n, o]);
796
796
  },
797
797
  [t]
798
798
  );
799
799
  return [e, t, s];
800
- }, Bt = (e, t = "") => {
800
+ }, Bt = (e) => {
801
801
  switch (e.type) {
802
802
  case "singular":
803
803
  return e.uiSchema;
804
804
  case "model":
805
- const { properties: s } = e, o = {};
806
- return Object.keys(s).forEach((i) => {
807
- const u = s[i];
808
- if (G(["slot", "styles"], u.type))
805
+ const { properties: t } = e, s = {};
806
+ return Object.keys(t).forEach((r) => {
807
+ const i = t[r];
808
+ if (G(["slot", "styles"], i.type))
809
809
  return;
810
- const m = P(u, "i18n", !1) ? `${i}-${t}` : i;
811
- o[m] = Bt(u, t);
812
- }), o;
810
+ const u = r;
811
+ s[u] = Bt(i);
812
+ }), s;
813
813
  case "list":
814
- const { itemProperties: n } = e, r = {
814
+ const { itemProperties: o } = e, n = {
815
815
  items: {}
816
816
  };
817
- return Object.keys(n).forEach((i) => {
818
- const u = n[i];
819
- if (G(["slot", "styles"], u.type))
817
+ return Object.keys(o).forEach((r) => {
818
+ const i = o[r];
819
+ if (G(["slot", "styles"], i.type))
820
820
  return;
821
- const m = P(u, "i18n", !1) ? `${i}-${t}` : i;
822
- r.items[m] = Bt(u, t);
823
- }), r;
821
+ const u = r;
822
+ n.items[u] = Bt(i);
823
+ }), n;
824
824
  default:
825
825
  return {};
826
826
  }
827
- }, Rt = (e, t = "") => {
827
+ }, Rt = (e) => {
828
828
  switch (e.type) {
829
829
  case "singular":
830
830
  return e.schema;
831
831
  case "model":
832
- const { properties: s, title: o } = e, n = {
833
- title: o,
832
+ const { properties: t, title: s } = e, o = {
833
+ title: s,
834
834
  type: "object",
835
835
  properties: {}
836
836
  };
837
- return Object.keys(s).forEach((m) => {
838
- const l = s[m];
839
- if (G(["slot", "styles"], l.type))
837
+ return Object.keys(t).forEach((u) => {
838
+ const p = t[u];
839
+ if (G(["slot", "styles"], p.type))
840
840
  return;
841
- const f = P(l, "i18n", !1) ? `${m}-${t}` : m;
842
- n.properties[f] = Rt(l, t);
843
- }), n;
841
+ const l = u;
842
+ o.properties[l] = Rt(p);
843
+ }), o;
844
844
  case "list":
845
- const { itemProperties: r, title: i } = e, u = {
846
- title: i,
845
+ const { itemProperties: n, title: r } = e, i = {
846
+ title: r,
847
847
  type: "array",
848
848
  items: {
849
849
  type: "object",
850
850
  properties: {}
851
851
  }
852
852
  };
853
- return Object.keys(r).forEach((m) => {
854
- const l = r[m];
855
- if (G(["slot", "styles"], l.type))
853
+ return Object.keys(n).forEach((u) => {
854
+ const p = n[u];
855
+ if (G(["slot", "styles"], p.type))
856
856
  return;
857
- const f = P(l, "i18n", !1) ? `${m}-${t}` : m;
858
- u.items.properties[f] = Rt(l, t), fe(u.items, "title", P(l, "itemTitle", `${i} item`));
859
- }), u;
857
+ const l = u;
858
+ i.items.properties[l] = Rt(p), fe(i.items, "title", E(p, "itemTitle", `${r} item`));
859
+ }), i;
860
860
  default:
861
861
  return {};
862
862
  }
863
863
  }, as = (e) => {
864
864
  const t = {};
865
865
  return Object.keys(e).forEach((s) => {
866
- t[s] = $o(e[s]);
866
+ t[s] = Vo(e[s]);
867
867
  }), t;
868
868
  }, zo = (e) => {
869
869
  if (oe(e.default))
870
870
  return [];
871
871
  const { itemProperties: t } = e;
872
- return $(e.default, (s) => {
872
+ return V(e.default, (s) => {
873
873
  const o = { ...s };
874
874
  return Gt(s, (n, r) => {
875
- nt(t, r) && P(t[r], "i18n", !1) && (o[r] = Ht);
875
+ nt(t, r) && E(t[r], "i18n", !1) && (o[r] = Ht);
876
876
  }), o;
877
877
  });
878
- }, $o = (e) => {
878
+ }, Vo = (e) => {
879
879
  switch (e.type) {
880
880
  case "styles":
881
881
  return e.default;
@@ -883,7 +883,7 @@ const Ce = () => {
883
883
  return `${Ke}${le()}`;
884
884
  case "singular":
885
885
  const { i18n: t, schema: s } = e;
886
- return t ? Ht : P(s, "default", "");
886
+ return t ? Ht : E(s, "default", "");
887
887
  case "model":
888
888
  return as(e.properties);
889
889
  case "list":
@@ -892,10 +892,10 @@ const Ce = () => {
892
892
  return "";
893
893
  }
894
894
  };
895
- const Vo = () => L(Q);
895
+ const $o = () => L(Q);
896
896
  function Pt(e, t, s, o, n) {
897
897
  if (s !== null) {
898
- const m = Be(e, { _parent: t }), l = (m === -1 ? 0 : m) + s;
898
+ const p = Be(e, { _parent: t }), l = (p === -1 ? 0 : p) + s;
899
899
  return e.splice(l, 0, ...o), e;
900
900
  }
901
901
  if (!n) {
@@ -903,46 +903,46 @@ function Pt(e, t, s, o, n) {
903
903
  return e.splice(l, 0, ...o), e;
904
904
  }
905
905
  let r = Be(e, { _id: t });
906
- const i = M(e, { _parent: t });
906
+ const i = I(e, { _parent: t });
907
907
  oe(i) || (r = Be(e, { _id: Xs(i)._id }));
908
908
  const u = r + 1;
909
909
  return e.splice(u, 0, ...o), e;
910
910
  }
911
- const ii = () => {
912
- const e = q(), t = Vo(), [, s] = Ce(), o = j(
911
+ const ai = () => {
912
+ const e = q(), t = $o(), [, s] = Ce(), o = A(
913
913
  (r, i, u) => {
914
- var f;
914
+ var b;
915
915
  for (let w = 0; w < r.length; w++) {
916
916
  const { _id: k } = r[w];
917
917
  r[w]._id = le();
918
- const E = M(r, { _parent: k });
919
- for (let F = 0; F < E.length; F++)
920
- E[F]._parent = r[w]._id;
918
+ const D = I(r, { _parent: k });
919
+ for (let F = 0; F < D.length; F++)
920
+ D[F]._parent = r[w]._id;
921
921
  }
922
- let m;
923
- i && (m = te(t, { _id: i }), r[0]._parent = i);
924
- const l = m ? Ye(m._type) : !0;
925
- return !l && m && (r[0]._parent = m._parent), e({
922
+ let p;
923
+ i && (p = te(t, { _id: i }), r[0]._parent = i);
924
+ const l = p ? Ye(p._type) : !0;
925
+ return !l && p && (r[0]._parent = p._parent), e({
926
926
  type: "set_blocks",
927
927
  payload: Pt(t, i || null, u || null, r, l)
928
- }), s([(f = se(r)) == null ? void 0 : f._id]), se(r);
928
+ }), s([(b = se(r)) == null ? void 0 : b._id]), se(r);
929
929
  },
930
930
  [t, e, s]
931
931
  );
932
- return { addCoreBlock: j(
932
+ return { addCoreBlock: A(
933
933
  (r, i, u) => {
934
934
  if (nt(r, "blocks")) {
935
935
  const K = r.blocks;
936
936
  return o(K, i, u);
937
937
  }
938
- const m = le(), l = as(r.props), f = [];
938
+ const p = le(), l = as(r.props), b = [];
939
939
  Gt(l, (K, ae) => {
940
940
  if (Wt(K, Ke)) {
941
941
  const he = K.replace(Ke, "");
942
- f.push({
942
+ b.push({
943
943
  _id: he,
944
944
  _type: "Slot",
945
- _parent: m,
945
+ _parent: p,
946
946
  _name: r.props[ae].name,
947
947
  _styles: r.props[ae].styles,
948
948
  _emptyStyles: r.props[ae].emptyStyles
@@ -951,17 +951,17 @@ const ii = () => {
951
951
  });
952
952
  const w = {
953
953
  _type: r.type,
954
- _id: m,
954
+ _id: p,
955
955
  ...l
956
956
  };
957
957
  let k;
958
958
  i && (k = te(t, { _id: i }), w._parent = i);
959
- const E = k ? Ye(k._type) : !0;
960
- !E && k && (w._parent = k._parent);
961
- const F = [w, ...f];
959
+ const D = k ? Ye(k._type) : !0;
960
+ !D && k && (w._parent = k._parent);
961
+ const F = [w, ...b];
962
962
  return e({
963
963
  type: "set_blocks",
964
- payload: Pt(t, i || null, u || null, F, E)
964
+ payload: Pt(t, i || null, u || null, F, D)
965
965
  }), s([w._id]), w;
966
966
  },
967
967
  [o, t, e, s]
@@ -997,48 +997,48 @@ function Fo(e, t) {
997
997
  const Mt = [];
998
998
  function Go(e = "", t = "", s = []) {
999
999
  e = e.trim().replace(/ +/g, "");
1000
- let o = M(
1001
- $(e.split(" "), Pe),
1000
+ let o = I(
1001
+ V(e.split(" "), Pe),
1002
1002
  (l) => !qe(l)
1003
- ), n = M($(t.split(" "), Pe), (l) => !qe(l));
1004
- n = M(
1003
+ ), n = I(V(t.split(" "), Pe), (l) => !qe(l));
1004
+ n = I(
1005
1005
  n,
1006
1006
  (l) => !G(Mt, l.property)
1007
1007
  );
1008
1008
  const r = [], i = [];
1009
1009
  ce(s, (l) => {
1010
- const f = Pe(l), w = te(o, wt(f, ["dark", "mq", "mod", "property"]));
1011
- if (w && (o = M(
1010
+ const b = Pe(l), w = te(o, wt(b, ["dark", "mq", "mod", "property"]));
1011
+ if (w && (o = I(
1012
1012
  o,
1013
1013
  (k) => k.fullCls !== (w == null ? void 0 : w.fullCls)
1014
- )), r.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (k) => k.property !== f.property)), Fo(o, f) === "baseClasses" && !G(Mt, f.property)) {
1015
- const k = te(n, wt(f, ["property"]));
1016
- w && (n = M(
1014
+ )), r.push(b), b.mq === "xs" && !b.dark && b.mod === "" && (n = I(n, (k) => k.property !== b.property)), Fo(o, b) === "baseClasses" && !G(Mt, b.property)) {
1015
+ const k = te(n, wt(b, ["property"]));
1016
+ w && (n = I(
1017
1017
  n,
1018
- (E) => E.fullCls !== (k == null ? void 0 : k.fullCls)
1018
+ (D) => D.fullCls !== (k == null ? void 0 : k.fullCls)
1019
1019
  )), i.push({
1020
- ...f,
1021
- fullCls: f.cls,
1020
+ ...b,
1021
+ fullCls: b.cls,
1022
1022
  mq: "xs"
1023
1023
  });
1024
1024
  }
1025
1025
  });
1026
- const u = $(
1026
+ const u = V(
1027
1027
  Nt([...o, ...r], (l) => Tt[l.mq]),
1028
1028
  "fullCls"
1029
1029
  ).join(" ");
1030
- return `${$(
1030
+ return `${V(
1031
1031
  Nt([...n, ...i], (l) => Tt[l.mq]),
1032
1032
  "fullCls"
1033
1033
  ).join(" ").trim()},${u.trim()}`.trim().replace(/ +/g, "");
1034
1034
  }
1035
1035
  const _e = y([]);
1036
1036
  _e.debugLabel = "selectedStylingBlocksAtom";
1037
- const ns = () => C(_e), Wo = (e) => {
1037
+ const ns = () => R(_e), Wo = (e) => {
1038
1038
  const t = e.replace(ge, "").split(",");
1039
1039
  return { baseClasses: t[0], classes: t[1] };
1040
1040
  }, Uo = y(null, (e, t, { blockIds: s, newClasses: o, dispatch: n }) => {
1041
- const r = M(
1041
+ const r = I(
1042
1042
  e(lt),
1043
1043
  (u) => (
1044
1044
  // @ts-ignore
@@ -1046,18 +1046,18 @@ const ns = () => C(_e), Wo = (e) => {
1046
1046
  )
1047
1047
  ), i = se(e(_e));
1048
1048
  ce(r, (u) => {
1049
- const m = e(u), l = P(m, i.prop, `${ge},`), { baseClasses: f, classes: w } = Wo(l);
1049
+ const p = e(u), l = E(p, i.prop, `${ge},`), { baseClasses: b, classes: w } = Wo(l);
1050
1050
  n({
1051
1051
  type: "update_props_realtime",
1052
1052
  payload: {
1053
- ids: [m._id],
1054
- props: { [i.prop]: `${ge}${Go(w, f, o)}` }
1053
+ ids: [p._id],
1054
+ props: { [i.prop]: `${ge}${Go(w, b, o)}` }
1055
1055
  }
1056
1056
  });
1057
1057
  });
1058
- }), li = () => {
1058
+ }), ni = () => {
1059
1059
  const e = q(), t = de(Uo);
1060
- return j(
1060
+ return A(
1061
1061
  (s, o, n) => {
1062
1062
  t({ blockIds: s, newClasses: o, dispatch: e }), n && setTimeout(() => e({ type: "create_snapshot" }), 500);
1063
1063
  },
@@ -1067,13 +1067,13 @@ const ns = () => C(_e), Wo = (e) => {
1067
1067
  }, Ho = () => {
1068
1068
  const e = oo(), t = L(es), s = () => {
1069
1069
  Dt();
1070
- }, o = j(() => Dt(), []);
1070
+ }, o = A(() => Dt(), []);
1071
1071
  return [e, t, s, o];
1072
1072
  }, qo = y(!1), Ko = () => {
1073
- const [e, t] = C(qo);
1073
+ const [e, t] = R(qo);
1074
1074
  return [e, t];
1075
1075
  }, Jo = y(Je), Yo = () => {
1076
- const [e, t] = C(Jo);
1076
+ const [e, t] = R(Jo);
1077
1077
  return [
1078
1078
  Zs(e) ? { ...Je, ...e } : Je,
1079
1079
  t
@@ -1098,20 +1098,20 @@ function ft(e, t = !1) {
1098
1098
  o.global && !t ? e[s] = {
1099
1099
  type: "GlobalBlock",
1100
1100
  blockId: o.blockId,
1101
- _parent: P(o, "parent", null),
1101
+ _parent: E(o, "parent", null),
1102
1102
  _id: o._id
1103
1103
  } : o.children && o.children.length && ft(o.children);
1104
1104
  }
1105
1105
  }
1106
1106
  function is(e) {
1107
- let t = [], s = M(e, { type: "GlobalBlock" });
1108
- return s.length > 0 && (s = $(s, ls), ce(s, (o) => {
1107
+ let t = [], s = I(e, { type: "GlobalBlock" });
1108
+ return s.length > 0 && (s = V(s, ls), ce(s, (o) => {
1109
1109
  t = [...t, ...ea(o)];
1110
1110
  })), t;
1111
1111
  }
1112
1112
  function ea(e) {
1113
1113
  let t = [];
1114
- const s = P(se(e), "parent", null);
1114
+ const s = E(se(e), "parent", null);
1115
1115
  fe(se(e), "parent", null);
1116
1116
  const o = [rs.convert(cs(e))];
1117
1117
  ft(o, !0);
@@ -1122,8 +1122,8 @@ function ls(e) {
1122
1122
  const t = te(Qe, { _id: e._id });
1123
1123
  if (!t)
1124
1124
  return [];
1125
- const s = [t], o = M(Qe, { _parent: e._id });
1126
- return o.length ? Y([...s, ...Y($(o, ls))]) : Y(s);
1125
+ const s = [t], o = I(Qe, { _parent: e._id });
1126
+ return o.length ? Y([...s, ...Y(V(o, ls))]) : Y(s);
1127
1127
  }
1128
1128
  const cs = (e) => JSON.parse(JSON.stringify(e));
1129
1129
  let Qe = [];
@@ -1136,8 +1136,8 @@ function ta(e) {
1136
1136
  }
1137
1137
  const ds = () => {
1138
1138
  const [e] = Yo(), { currentPage: t } = Xo(), s = L(Q);
1139
- return j(() => {
1140
- const o = $(
1139
+ return A(() => {
1140
+ const o = V(
1141
1141
  s,
1142
1142
  (i) => at(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1143
1143
  ), [n = [], r = []] = ta(o);
@@ -1149,7 +1149,7 @@ const ds = () => {
1149
1149
  }, [e, t, s]);
1150
1150
  }, ve = (e, t = void 0) => {
1151
1151
  const s = L(it);
1152
- return P(s, e, t);
1152
+ return E(s, e, t);
1153
1153
  }, us = y(!1);
1154
1154
  us.debugLabel = "readOnlyModeAtom";
1155
1155
  const sa = y(!1);
@@ -1177,22 +1177,24 @@ ze.debugLabel = "historyStatesAtom";
1177
1177
  const ma = y("");
1178
1178
  ma.debugLabel = "inlineEditingActiveAtom";
1179
1179
  const pa = y(!1);
1180
- pa.debugLabel = "isDraggingAtom";
1180
+ pa.debugLabel = "draggingFlagAtom";
1181
+ const fa = y("");
1182
+ fa.debugLabel = "draggedBlockIdAtom";
1181
1183
  const ms = y([]);
1182
1184
  ms.debugLabel = "dataProvidersAtom";
1183
- const fa = () => C(ms), gt = y("SAVED");
1185
+ const ga = () => R(ms), gt = y("SAVED");
1184
1186
  gt.debugLabel = "pageSyncStateAtom";
1185
- const ci = () => {
1186
- const [e, t] = C(gt), s = ve("onSaveBlocks", async () => {
1187
+ const ri = () => {
1188
+ const [e, t] = R(gt), s = ve("onSaveBlocks", async () => {
1187
1189
  }), o = ve("onSavePage", async () => {
1188
1190
  }), n = ve("onSyncStatusChange", () => {
1189
- }), r = ds(), i = de(ze), { undoCount: u, redoCount: m } = bt(), [l] = fa();
1191
+ }), r = ds(), i = de(ze), { undoCount: u, redoCount: p } = bt(), [l] = ga();
1190
1192
  return { savePage: ao(
1191
1193
  async () => {
1192
1194
  t("SAVING"), n("SAVING");
1193
1195
  const w = r();
1194
1196
  return await o({ blocks: w.blocks, providers: l }), setTimeout(() => {
1195
- i({ undoCount: u, redoCount: m }), t("SAVED"), n("SAVED");
1197
+ i({ undoCount: u, redoCount: p }), t("SAVED"), n("SAVED");
1196
1198
  }, 100), !0;
1197
1199
  },
1198
1200
  [r, t, n, s],
@@ -1200,124 +1202,124 @@ const ci = () => {
1200
1202
  // save only every 5 seconds
1201
1203
  ), syncState: e, setSyncState: t };
1202
1204
  }, bt = () => {
1203
- const e = L(Oe), [{ undoCount: t, redoCount: s }] = C(ze), o = q(), [n] = Ko(), [, r] = Ce(), [, i] = ns(), [u, m] = C(gt), l = ve("onSyncStatusChange", () => {
1204
- }), f = j(() => {
1205
+ const e = L(Oe), [{ undoCount: t, redoCount: s }] = R(ze), o = q(), [n] = Ko(), [, r] = Ce(), [, i] = ns(), [u, p] = R(gt), l = ve("onSyncStatusChange", () => {
1206
+ }), b = A(() => {
1205
1207
  o({ type: "create_snapshot" });
1206
1208
  }, [o]);
1207
- return Ae(() => {
1208
- (u === "SAVED" && t !== (e == null ? void 0 : e.past.length) || s !== (e == null ? void 0 : e.future.length)) && (m("UNSAVED"), l("UNSAVED"));
1209
- }, [e == null ? void 0 : e.past.length, e == null ? void 0 : e.future.length, t, s, l, m, u]), {
1209
+ return je(() => {
1210
+ (u === "SAVED" && t !== (e == null ? void 0 : e.past.length) || s !== (e == null ? void 0 : e.future.length)) && (p("UNSAVED"), l("UNSAVED"));
1211
+ }, [e == null ? void 0 : e.past.length, e == null ? void 0 : e.future.length, t, s, l, p, u]), {
1210
1212
  undoCount: e == null ? void 0 : e.past.length,
1211
1213
  redoCount: e == null ? void 0 : e.future.length,
1212
- undo: j(() => {
1213
- n || (o($e.undo()), setTimeout(() => {
1214
+ undo: A(() => {
1215
+ n || (o(Ve.undo()), setTimeout(() => {
1214
1216
  i([]), r([]);
1215
1217
  }, 200));
1216
1218
  }, [o, n, r, i]),
1217
- redo: j(() => {
1218
- n || (o($e.redo()), setTimeout(() => {
1219
+ redo: A(() => {
1220
+ n || (o(Ve.redo()), setTimeout(() => {
1219
1221
  i([]), r([]);
1220
1222
  }, 200));
1221
1223
  }, [n, o, i, r]),
1222
1224
  clear: () => {
1223
- o($e.clearHistory());
1225
+ o(Ve.clearHistory());
1224
1226
  },
1225
- createSnapshot: f
1227
+ createSnapshot: b
1226
1228
  };
1227
- }, ga = () => C(os), ps = je("canvasWidth", 800), fs = y((e) => {
1229
+ }, ba = () => R(os), ps = Ae("canvasWidth", 800), fs = y((e) => {
1228
1230
  const t = e(ps);
1229
1231
  return Gs(t).toLowerCase();
1230
- }), di = () => {
1231
- const [e, t] = C(ps), s = L(fs), [o, n] = ga();
1232
- return Ae(() => {
1232
+ }), ii = () => {
1233
+ const [e, t] = R(ps), s = L(fs), [o, n] = ba();
1234
+ return je(() => {
1233
1235
  o !== "xs" && n(s);
1234
1236
  }, [s, o, n]), [e, s, t];
1235
- }, ba = je("canvasZoom", 100), ui = () => C(ba), gs = y([]), xa = () => {
1236
- const [e, t] = C(gs), s = de(xt), o = j(
1237
+ }, xa = Ae("canvasZoom", 100), li = () => R(xa), gs = y([]), ha = () => {
1238
+ const [e, t] = R(gs), s = de(xt), o = A(
1237
1239
  (n) => {
1238
1240
  t(n), s([]);
1239
1241
  },
1240
1242
  [t, s]
1241
1243
  );
1242
1244
  return [e, o];
1243
- }, xt = y([]), mi = () => {
1244
- const [e, t] = C(xt), s = de(gs), o = j(
1245
+ }, xt = y([]), ci = () => {
1246
+ const [e, t] = R(xt), s = de(gs), o = A(
1245
1247
  (n) => {
1246
1248
  t(n), s([]);
1247
1249
  },
1248
1250
  [t, s]
1249
1251
  );
1250
1252
  return [e, o];
1251
- }, bs = je("darkMode", !1), pi = () => {
1252
- const [e, t] = C(bs);
1253
+ }, bs = Ae("darkMode", !1), di = () => {
1254
+ const [e, t] = R(bs);
1253
1255
  return [e, t];
1254
- }, ha = y(!1), fi = () => {
1255
- const [e, t] = C(ha);
1256
+ }, ya = y(!1), ui = () => {
1257
+ const [e, t] = R(ya);
1256
1258
  return [e, t];
1257
- }, ya = () => {
1259
+ }, va = () => {
1258
1260
  const e = q(), t = L(Q), [, s] = Ce();
1259
- return j(
1261
+ return A(
1260
1262
  (o, n = null) => {
1261
1263
  const r = [];
1262
1264
  ce(o, (i) => {
1263
- const m = Po(t, i, n === i ? null : n);
1264
- r.push(P(m, "0._id", "")), e({ type: "add_duplicate_blocks", payload: m });
1265
+ const p = Po(t, i, n === i ? null : n);
1266
+ r.push(E(p, "0._id", "")), e({ type: "add_duplicate_blocks", payload: p });
1265
1267
  }), s(r), e({ type: "create_snapshot" });
1266
1268
  },
1267
1269
  [t, s, e]
1268
1270
  );
1269
- }, va = y([]), gi = () => {
1270
- const [e, t] = C(va), s = j(
1271
+ }, wa = y([]), mi = () => {
1272
+ const [e, t] = R(wa), s = A(
1271
1273
  (o) => {
1272
1274
  t((n) => G(n, o) ? Ft(n, o) : [...n, o]);
1273
1275
  },
1274
1276
  [t]
1275
1277
  );
1276
1278
  return [e, t, s];
1277
- }, wa = y(""), Na = () => C(wa), bi = () => {
1279
+ }, Na = y(""), ka = () => R(Na), pi = () => {
1278
1280
  const e = L(Q), t = q(), s = ds(), [, , o] = Ho();
1279
- return j(
1281
+ return A(
1280
1282
  async (n, r) => {
1281
- const i = le(16), u = $(e, (m) => (m._id === n && (m._globalBlockId = i, m._name = r), m));
1283
+ const i = le(16), u = V(e, (p) => (p._id === n && (p._globalBlockId = i, p._name = r), p));
1282
1284
  t({ type: "set_page_blocks", payload: u }), o();
1283
1285
  },
1284
1286
  [e, t, s, o]
1285
1287
  );
1286
- }, xi = () => ({}), ka = () => {
1288
+ }, fi = () => ({}), Sa = () => {
1287
1289
  const e = L(Q), t = q();
1288
- return j(
1290
+ return A(
1289
1291
  (s, o) => {
1290
- const n = $(e, (r) => (G(s, P(r, "_id")) && fe(r, "_parent", o), r));
1292
+ const n = V(e, (r) => (G(s, E(r, "_id")) && fe(r, "_parent", o), r));
1291
1293
  t({ type: "set_blocks", payload: n });
1292
1294
  },
1293
1295
  [e, t]
1294
1296
  );
1295
- }, hi = () => {
1296
- const e = L(xt), [t, s] = xa(), o = ya(), n = ka();
1297
+ }, gi = () => {
1298
+ const e = L(xt), [t, s] = ha(), o = va(), n = Sa();
1297
1299
  return {
1298
1300
  canPaste: Fs(
1299
1301
  () => t.length > 0 || e.length > 0,
1300
1302
  [e, t]
1301
1303
  ),
1302
- pasteBlocks: j(
1304
+ pasteBlocks: A(
1303
1305
  (i) => {
1304
1306
  oe(e) ? n(t, i) : o(e, i), s(() => []);
1305
1307
  },
1306
1308
  [t, e, o, n, s]
1307
1309
  )
1308
1310
  };
1309
- }, Sa = y(""), yi = () => {
1310
- const e = L(Sa), t = j(() => {
1311
- }, []), s = j(() => {
1312
- }, []), o = j(() => {
1311
+ }, ja = y(""), bi = () => {
1312
+ const e = L(ja), t = A(() => {
1313
+ }, []), s = A(() => {
1314
+ }, []), o = A(() => {
1313
1315
  }, []);
1314
1316
  return { currentProject: e, createProject: o, deleteProject: t, updateProject: s };
1315
1317
  }, xs = (e, t) => {
1316
- const s = [], o = M(e, (n) => G(t, n._id) || G(t, n._parent) ? (s.push(n._id), !1) : !0);
1318
+ const s = [], o = I(e, (n) => G(t, n._id) || G(t, n._parent) ? (s.push(n._id), !1) : !0);
1317
1319
  return oe(s) ? o : xs(o, s);
1318
- }, vi = () => {
1320
+ }, xi = () => {
1319
1321
  const e = q(), t = L(Q), [s, o] = Ce();
1320
- return j(
1322
+ return A(
1321
1323
  (n) => {
1322
1324
  var u;
1323
1325
  const r = ((u = te(t, { _id: n[0] })) == null ? void 0 : u._parent) || null, i = xs(t, n);
@@ -1326,7 +1328,7 @@ const ci = () => {
1326
1328
  [t, o, e, s]
1327
1329
  );
1328
1330
  }, Aa = y(null, (e, t, { blockIds: s, fullClasses: o, dispatch: n }) => {
1329
- const r = se(e(_e)), i = M(
1331
+ const r = se(e(_e)), i = I(
1330
1332
  e(lt),
1331
1333
  (u) => (
1332
1334
  // @ts-ignore
@@ -1334,29 +1336,29 @@ const ci = () => {
1334
1336
  )
1335
1337
  );
1336
1338
  ce(i, (u) => {
1337
- const m = e(u), l = o;
1338
- let { classes: f, baseClasses: w } = _o(P(m, r.prop, "styles:,"));
1339
+ const p = e(u), l = o;
1340
+ let { classes: b, baseClasses: w } = _o(E(p, r.prop, "styles:,"));
1339
1341
  ce(l, (k) => {
1340
- const E = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1341
- f = f.replace(E, " ").replace(/ +/g, " ").trim();
1342
+ const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1343
+ b = b.replace(D, " ").replace(/ +/g, " ").trim();
1342
1344
  const F = se(k.split(":"));
1343
1345
  G(["2xl", "xl", "lg", "md", "sm"], F) && l.push(k.split(":").pop().trim());
1344
1346
  }), ce(l, (k) => {
1345
- const E = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1346
- w = w.replace(E, " ").replace(/ +/g, " ").trim();
1347
+ const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
1348
+ w = w.replace(D, " ").replace(/ +/g, " ").trim();
1347
1349
  }), n({
1348
1350
  type: "update_props_realtime",
1349
1351
  payload: {
1350
- ids: [m._id],
1352
+ ids: [p._id],
1351
1353
  props: {
1352
- [r.prop]: `${ge}${w},${f}`
1354
+ [r.prop]: `${ge}${w},${b}`
1353
1355
  }
1354
1356
  }
1355
1357
  });
1356
1358
  });
1357
- }), wi = () => {
1359
+ }), hi = () => {
1358
1360
  const e = q(), t = de(Aa);
1359
- return j(
1361
+ return A(
1360
1362
  (s, o) => {
1361
1363
  t({ blockIds: s, fullClasses: o, dispatch: e }), setTimeout(() => e({ type: "create_snapshot" }));
1362
1364
  },
@@ -1364,15 +1366,15 @@ const ci = () => {
1364
1366
  );
1365
1367
  }, hs = y((e) => {
1366
1368
  const t = se(e(_e)), s = e(ut);
1367
- if (!t || t.blockId !== P(s, "_id", null))
1369
+ if (!t || t.blockId !== E(s, "_id", null))
1368
1370
  return [];
1369
- const n = P(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
1370
- return M($(n.trim().split(" "), Pe), (r) => !qe(r));
1371
- }), Ni = () => L(hs), Et = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, ja = y((e) => {
1372
- const t = e(fs), s = e(mt), o = e(bs), n = Ca(t);
1373
- let r = M(e(hs), { mod: s });
1374
- return Wt(s, "_") || (r = M(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Et[i.mq] - Et[u.mq]), o || (r = M(r, { dark: !1 })), r;
1375
- }), Ca = (e) => {
1371
+ const n = E(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
1372
+ return I(V(n.trim().split(" "), Pe), (r) => !qe(r));
1373
+ }), yi = () => L(hs), Et = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ca = y((e) => {
1374
+ const t = e(fs), s = e(mt), o = e(bs), n = _a(t);
1375
+ let r = I(e(hs), { mod: s });
1376
+ return Wt(s, "_") || (r = I(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Et[i.mq] - Et[u.mq]), o || (r = I(r, { dark: !1 })), r;
1377
+ }), _a = (e) => {
1376
1378
  let t = [];
1377
1379
  switch (e) {
1378
1380
  case "xs":
@@ -1398,22 +1400,22 @@ const ci = () => {
1398
1400
  break;
1399
1401
  }
1400
1402
  return t;
1401
- }, ki = () => L(ja), Si = () => C(mt), ys = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
1403
+ }, vi = () => L(Ca), wi = () => R(mt), ys = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
1402
1404
  n({
1403
1405
  type: "update_props_realtime",
1404
1406
  payload: { ids: s, props: o }
1405
1407
  });
1406
- }), Ai = () => {
1408
+ }), Ni = () => {
1407
1409
  const { createSnapshot: e } = bt(), t = q(), s = de(ys);
1408
- return j(
1410
+ return A(
1409
1411
  (o, n) => {
1410
1412
  s({ blockIds: o, props: n, dispatch: t }), e();
1411
1413
  },
1412
1414
  [e, t, s]
1413
1415
  );
1414
- }, ji = () => {
1416
+ }, ki = () => {
1415
1417
  const e = q(), t = de(ys);
1416
- return j(
1418
+ return A(
1417
1419
  (s, o) => {
1418
1420
  t({ blockIds: s, props: o, dispatch: e });
1419
1421
  },
@@ -1424,15 +1426,15 @@ const ci = () => {
1424
1426
  props: {},
1425
1427
  modalProps: {},
1426
1428
  backdropClose: !0
1427
- }, _a = y(vs), Ci = () => {
1428
- const [e, t] = C(_a), s = j(
1429
+ }, Ba = y(vs), Si = () => {
1430
+ const [e, t] = R(Ba), s = A(
1429
1431
  (n, r = {}, i = {}) => {
1430
1432
  t({ name: n, props: r, modalProps: i });
1431
1433
  },
1432
1434
  [t]
1433
- ), o = j(
1435
+ ), o = A(
1434
1436
  (...n) => {
1435
- P(e, "props.onClose", () => {
1437
+ E(e, "props.onClose", () => {
1436
1438
  })(...n), t(vs);
1437
1439
  },
1438
1440
  [t, e]
@@ -1442,34 +1444,31 @@ const ci = () => {
1442
1444
  openModal: s,
1443
1445
  closeModal: o
1444
1446
  };
1445
- }, _i = () => L(us), Ba = y(""), Ra = y(null), Bi = () => C(Ba), Ri = () => C(Ra), Pa = je("selectedBreakpoints", ["XS", "MD", "XL"]), Pi = () => {
1446
- const [e, t] = C(Pa);
1447
+ }, ji = () => L(us), Ra = y(""), Pa = y(null), Ai = () => R(Ra), Ci = () => R(Pa), Ta = Ae("selectedBreakpoints", ["XS", "MD", "XL"]), _i = () => {
1448
+ const [e, t] = R(Ta);
1447
1449
  return [e, t];
1448
- }, Ti = () => {
1449
- const e = de(ze), { clear: t } = bt(), [, s] = Ce(), [, o] = Na(), [, n] = ns();
1450
+ }, Bi = () => {
1451
+ const e = de(ze), { clear: t } = bt(), [, s] = Ce(), [, o] = ka(), [, n] = ns();
1450
1452
  return () => {
1451
1453
  s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
1452
1454
  };
1453
- }, Ta = y({ en: {} }), Ii = () => {
1454
- const [e, t] = C(Ta), s = j(
1455
+ }, Ia = y({ en: {} }), Ri = () => {
1456
+ const [e, t] = R(Ia), s = A(
1455
1457
  (o, n, r) => {
1456
1458
  fe(e, `${o}.${n}`, r), t(e);
1457
1459
  },
1458
1460
  [e, t]
1459
1461
  );
1460
1462
  return [e, s];
1461
- }, Mi = (e, t) => {
1462
- const [s] = C(it);
1463
- return P(s, e, t);
1464
- }, Ia = y([]), Di = () => {
1465
- const [e, t] = De(!1), [s, o] = C(Ia), n = ve("getUILibraryBlocks", () => []);
1466
- return Ae(() => {
1463
+ }, Pi = (e, t) => {
1464
+ const [s] = R(it);
1465
+ return E(s, e, t);
1466
+ }, Ma = y([]), Ti = () => {
1467
+ const [e, t] = De(!1), [s, o] = R(Ma), n = ve("getUILibraryBlocks", () => []);
1468
+ return je(() => {
1467
1469
  (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
1468
1470
  }, []), { data: s, isLoading: e };
1469
- }, Ma = y("en"), Da = y("en"), Ea = y(["en"]), La = () => C(Ma), Ei = () => C(Da), Li = () => C(Ea), Oi = (e, t) => {
1470
- const [s] = La(), o = `${e}${s ? `-${s}` : ""}`;
1471
- return { content: P(t, o, P(t, e, "")), propKey: e };
1472
- }, Oa = be(
1471
+ }, Da = be(
1473
1472
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1474
1473
  {
1475
1474
  variants: {
@@ -1488,9 +1487,9 @@ const ci = () => {
1488
1487
  size: "default"
1489
1488
  }
1490
1489
  }
1491
- ), za = p.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(zt.Root, { ref: n, className: c(Oa({ variant: t, size: s, className: e })), ...o }));
1492
- za.displayName = zt.Root.displayName;
1493
- const $a = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1490
+ ), Ea = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(zt.Root, { ref: n, className: c(Da({ variant: t, size: s, className: e })), ...o }));
1491
+ Ea.displayName = zt.Root.displayName;
1492
+ const La = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1494
1493
  He.Root,
1495
1494
  {
1496
1495
  className: c(
@@ -1509,7 +1508,7 @@ const $a = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1509
1508
  )
1510
1509
  }
1511
1510
  ));
1512
- $a.displayName = He.Root.displayName;
1511
+ La.displayName = He.Root.displayName;
1513
1512
  const ht = be(
1514
1513
  "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
1515
1514
  {
@@ -1534,16 +1533,16 @@ const ht = be(
1534
1533
  size: "default"
1535
1534
  }
1536
1535
  }
1537
- ), Va = p.forwardRef(
1536
+ ), Oa = m.forwardRef(
1538
1537
  ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, r) => {
1539
1538
  const i = o ? Ws : "button";
1540
1539
  return /* @__PURE__ */ a.jsx(i, { className: c(ht({ variant: t, size: s, className: e })), ref: r, ...n });
1541
1540
  }
1542
1541
  );
1543
- Va.displayName = "Button";
1544
- const zi = pe.Root, Fa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(pe.Item, { ref: s, className: c("border-b", e), ...t }));
1545
- Fa.displayName = "AccordionItem";
1546
- const Ga = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(pe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1542
+ Oa.displayName = "Button";
1543
+ const Ii = pe.Root, za = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(pe.Item, { ref: s, className: c("border-b", e), ...t }));
1544
+ za.displayName = "AccordionItem";
1545
+ const Va = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(pe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1547
1546
  pe.Trigger,
1548
1547
  {
1549
1548
  ref: o,
@@ -1558,8 +1557,8 @@ const Ga = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1558
1557
  ]
1559
1558
  }
1560
1559
  ) }));
1561
- Ga.displayName = pe.Trigger.displayName;
1562
- const Wa = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1560
+ Va.displayName = pe.Trigger.displayName;
1561
+ const $a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1563
1562
  pe.Content,
1564
1563
  {
1565
1564
  ref: o,
@@ -1571,8 +1570,8 @@ const Wa = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1571
1570
  children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1572
1571
  }
1573
1572
  ));
1574
- Wa.displayName = pe.Content.displayName;
1575
- const Ua = be(
1573
+ $a.displayName = pe.Content.displayName;
1574
+ const Fa = be(
1576
1575
  "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1577
1576
  {
1578
1577
  variants: {
@@ -1585,17 +1584,17 @@ const Ua = be(
1585
1584
  variant: "default"
1586
1585
  }
1587
1586
  }
1588
- ), Ha = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Ua({ variant: t }), e), ...s }));
1589
- Ha.displayName = "Alert";
1590
- const qa = p.forwardRef(
1587
+ ), Ga = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Fa({ variant: t }), e), ...s }));
1588
+ Ga.displayName = "Alert";
1589
+ const Wa = m.forwardRef(
1591
1590
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: c("mb-1 font-medium leading-none tracking-tight", e), ...t })
1592
1591
  );
1593
- qa.displayName = "AlertTitle";
1594
- const Ka = p.forwardRef(
1592
+ Wa.displayName = "AlertTitle";
1593
+ const Ua = m.forwardRef(
1595
1594
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("text-sm [&_p]:leading-relaxed", e), ...t })
1596
1595
  );
1597
- Ka.displayName = "AlertDescription";
1598
- const Ja = be(
1596
+ Ua.displayName = "AlertDescription";
1597
+ const Ha = be(
1599
1598
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
1600
1599
  {
1601
1600
  variants: {
@@ -1610,10 +1609,10 @@ const Ja = be(
1610
1609
  variant: "default"
1611
1610
  }
1612
1611
  }
1613
- ), $i = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ja({ variant: t }), e), ...s }), Vi = V.Root, Fi = V.Trigger, ws = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(V.Portal, { className: c(e), ...t });
1614
- ws.displayName = V.Portal.displayName;
1615
- const Ns = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1616
- V.Overlay,
1612
+ ), Mi = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ha({ variant: t }), e), ...s }), Di = $.Root, Ei = $.Trigger, ws = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx($.Portal, { className: c(e), ...t });
1613
+ ws.displayName = $.Portal.displayName;
1614
+ const Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1615
+ $.Overlay,
1617
1616
  {
1618
1617
  className: c(
1619
1618
  "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -1623,11 +1622,11 @@ const Ns = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1623
1622
  ref: s
1624
1623
  }
1625
1624
  ));
1626
- Ns.displayName = V.Overlay.displayName;
1627
- const Ya = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws, { children: [
1625
+ Ns.displayName = $.Overlay.displayName;
1626
+ const qa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws, { children: [
1628
1627
  /* @__PURE__ */ a.jsx(Ns, {}),
1629
1628
  /* @__PURE__ */ a.jsx(
1630
- V.Content,
1629
+ $.Content,
1631
1630
  {
1632
1631
  ref: s,
1633
1632
  className: c(
@@ -1638,30 +1637,30 @@ const Ya = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws
1638
1637
  }
1639
1638
  )
1640
1639
  ] }));
1641
- Ya.displayName = V.Content.displayName;
1642
- const Qa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1643
- Qa.displayName = "AlertDialogHeader";
1644
- const Xa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1645
- Xa.displayName = "AlertDialogFooter";
1646
- const Za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(V.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
1647
- Za.displayName = V.Title.displayName;
1648
- const en = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(V.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1649
- en.displayName = V.Description.displayName;
1650
- const tn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(V.Action, { ref: s, className: c(ht(), e), ...t }));
1651
- tn.displayName = V.Action.displayName;
1652
- const sn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1653
- V.Cancel,
1640
+ qa.displayName = $.Content.displayName;
1641
+ const Ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1642
+ Ka.displayName = "AlertDialogHeader";
1643
+ const Ja = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1644
+ Ja.displayName = "AlertDialogFooter";
1645
+ const Ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
1646
+ Ya.displayName = $.Title.displayName;
1647
+ const Qa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1648
+ Qa.displayName = $.Description.displayName;
1649
+ const Xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Action, { ref: s, className: c(ht(), e), ...t }));
1650
+ Xa.displayName = $.Action.displayName;
1651
+ const Za = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1652
+ $.Cancel,
1654
1653
  {
1655
1654
  ref: s,
1656
1655
  className: c(ht({ variant: "outline" }), "mt-2 sm:mt-0", e),
1657
1656
  ...t
1658
1657
  }
1659
1658
  ));
1660
- sn.displayName = V.Cancel.displayName;
1661
- const ks = R.Root, on = R.Trigger, Ss = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(R.Portal, { className: c(e), ...t });
1662
- Ss.displayName = R.Portal.displayName;
1663
- const As = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1664
- R.Overlay,
1659
+ Za.displayName = $.Cancel.displayName;
1660
+ const ks = B.Root, en = B.Trigger, Ss = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
1661
+ Ss.displayName = B.Portal.displayName;
1662
+ const js = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1663
+ B.Overlay,
1665
1664
  {
1666
1665
  ref: s,
1667
1666
  className: c(
@@ -1671,11 +1670,11 @@ const As = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1671
1670
  ...t
1672
1671
  }
1673
1672
  ));
1674
- As.displayName = R.Overlay.displayName;
1675
- const yt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(Ss, { children: [
1676
- /* @__PURE__ */ a.jsx(As, {}),
1673
+ js.displayName = B.Overlay.displayName;
1674
+ const yt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(Ss, { children: [
1675
+ /* @__PURE__ */ a.jsx(js, {}),
1677
1676
  /* @__PURE__ */ a.jsxs(
1678
- R.Content,
1677
+ B.Content,
1679
1678
  {
1680
1679
  ref: o,
1681
1680
  className: c(
@@ -1685,7 +1684,7 @@ const yt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1685
1684
  ...s,
1686
1685
  children: [
1687
1686
  t,
1688
- /* @__PURE__ */ a.jsxs(R.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1687
+ /* @__PURE__ */ a.jsxs(B.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1689
1688
  /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
1690
1689
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1691
1690
  ] })
@@ -1693,45 +1692,45 @@ const yt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1693
1692
  }
1694
1693
  )
1695
1694
  ] }));
1696
- yt.displayName = R.Content.displayName;
1697
- const an = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1698
- an.displayName = "DialogHeader";
1699
- const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1700
- nn.displayName = "DialogFooter";
1701
- const rn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1702
- R.Title,
1695
+ yt.displayName = B.Content.displayName;
1696
+ const tn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1697
+ tn.displayName = "DialogHeader";
1698
+ const sn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1699
+ sn.displayName = "DialogFooter";
1700
+ const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1701
+ B.Title,
1703
1702
  {
1704
1703
  ref: s,
1705
1704
  className: c("text-lg font-semibold leading-none tracking-tight", e),
1706
1705
  ...t
1707
1706
  }
1708
1707
  ));
1709
- rn.displayName = R.Title.displayName;
1710
- const ln = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1711
- ln.displayName = R.Description.displayName;
1712
- const cn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1713
- cn.displayName = "Card";
1714
- const dn = p.forwardRef(
1708
+ on.displayName = B.Title.displayName;
1709
+ const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
1710
+ an.displayName = B.Description.displayName;
1711
+ const nn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1712
+ nn.displayName = "Card";
1713
+ const rn = m.forwardRef(
1715
1714
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("flex flex-col space-y-1.5 p-6", e), ...t })
1716
1715
  );
1717
- dn.displayName = "CardHeader";
1718
- const un = p.forwardRef(
1716
+ rn.displayName = "CardHeader";
1717
+ const ln = m.forwardRef(
1719
1718
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: c("font-semibold leading-none tracking-tight", e), ...t })
1720
1719
  );
1721
- un.displayName = "CardTitle";
1722
- const mn = p.forwardRef(
1720
+ ln.displayName = "CardTitle";
1721
+ const cn = m.forwardRef(
1723
1722
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: c("text-sm text-muted-foreground", e), ...t })
1724
1723
  );
1725
- mn.displayName = "CardDescription";
1726
- const pn = p.forwardRef(
1724
+ cn.displayName = "CardDescription";
1725
+ const dn = m.forwardRef(
1727
1726
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("p-6 pt-0", e), ...t })
1728
1727
  );
1729
- pn.displayName = "CardContent";
1730
- const fn = p.forwardRef(
1728
+ dn.displayName = "CardContent";
1729
+ const un = m.forwardRef(
1731
1730
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c(" flex items-center p-6 pt-0", e), ...t })
1732
1731
  );
1733
- fn.displayName = "CardFooter";
1734
- const gn = p.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1732
+ un.displayName = "CardFooter";
1733
+ const mn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1735
1734
  "input",
1736
1735
  {
1737
1736
  type: t,
@@ -1743,10 +1742,10 @@ const gn = p.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
1743
1742
  ...s
1744
1743
  }
1745
1744
  ));
1746
- gn.displayName = "Input";
1747
- const bn = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), xn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($t.Root, { ref: s, className: c(bn(), e), ...t }));
1748
- xn.displayName = $t.Root.displayName;
1749
- const hn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1745
+ mn.displayName = "Input";
1746
+ const pn = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Vt.Root, { ref: s, className: c(pn(), e), ...t }));
1747
+ fn.displayName = Vt.Root.displayName;
1748
+ const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1750
1749
  "textarea",
1751
1750
  {
1752
1751
  className: c(
@@ -1757,14 +1756,14 @@ const hn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1757
1756
  ...t
1758
1757
  }
1759
1758
  ));
1760
- hn.displayName = "Textarea";
1761
- const yn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(me.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
1759
+ gn.displayName = "Textarea";
1760
+ const bn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(me.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
1762
1761
  /* @__PURE__ */ a.jsx(me.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1763
- /* @__PURE__ */ a.jsx(js, {}),
1762
+ /* @__PURE__ */ a.jsx(As, {}),
1764
1763
  /* @__PURE__ */ a.jsx(me.Corner, {})
1765
1764
  ] }));
1766
- yn.displayName = me.Root.displayName;
1767
- const js = p.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1765
+ bn.displayName = me.Root.displayName;
1766
+ const As = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1768
1767
  me.ScrollAreaScrollbar,
1769
1768
  {
1770
1769
  ref: o,
@@ -1779,8 +1778,8 @@ const js = p.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
1779
1778
  children: /* @__PURE__ */ a.jsx(me.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1780
1779
  }
1781
1780
  ));
1782
- js.displayName = me.ScrollAreaScrollbar.displayName;
1783
- const vn = xe.Root, Cs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1781
+ As.displayName = me.ScrollAreaScrollbar.displayName;
1782
+ const xn = xe.Root, Cs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1784
1783
  xe.List,
1785
1784
  {
1786
1785
  ref: s,
@@ -1792,7 +1791,7 @@ const vn = xe.Root, Cs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
1792
1791
  }
1793
1792
  ));
1794
1793
  Cs.displayName = xe.List.displayName;
1795
- const Xe = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1794
+ const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1796
1795
  xe.Trigger,
1797
1796
  {
1798
1797
  ref: s,
@@ -1804,7 +1803,7 @@ const Xe = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1804
1803
  }
1805
1804
  ));
1806
1805
  Xe.displayName = xe.Trigger.displayName;
1807
- const Ze = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1806
+ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1808
1807
  xe.Content,
1809
1808
  {
1810
1809
  ref: s,
@@ -1816,7 +1815,7 @@ const Ze = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1816
1815
  }
1817
1816
  ));
1818
1817
  Ze.displayName = xe.Content.displayName;
1819
- const Gi = we.Portal, Wi = we.Provider, Ui = we.Root, Hi = we.Trigger, wn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1818
+ const Li = we.Portal, Oi = we.Provider, zi = we.Root, Vi = we.Trigger, hn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1820
1819
  we.Content,
1821
1820
  {
1822
1821
  ref: o,
@@ -1828,8 +1827,8 @@ const Gi = we.Portal, Wi = we.Provider, Ui = we.Root, Hi = we.Trigger, wn = p.fo
1828
1827
  ...s
1829
1828
  }
1830
1829
  ));
1831
- wn.displayName = we.Content.displayName;
1832
- const qi = Se.Root, Ki = Se.Trigger, Nn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1830
+ hn.displayName = we.Content.displayName;
1831
+ const $i = Se.Root, Fi = Se.Trigger, yn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1833
1832
  Se.Content,
1834
1833
  {
1835
1834
  ref: n,
@@ -1842,18 +1841,18 @@ const qi = Se.Root, Ki = Se.Trigger, Nn = p.forwardRef(({ className: e, align: t
1842
1841
  ...o
1843
1842
  }
1844
1843
  ) }));
1845
- Nn.displayName = Se.Content.displayName;
1846
- const Ji = _.Menu, Yi = _.Group, Qi = _.Portal, Xi = _.Sub, Zi = _.RadioGroup, kn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1847
- _.Root,
1844
+ yn.displayName = Se.Content.displayName;
1845
+ const Gi = C.Menu, Wi = C.Group, Ui = C.Portal, Hi = C.Sub, qi = C.RadioGroup, vn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1846
+ C.Root,
1848
1847
  {
1849
1848
  ref: s,
1850
1849
  className: c("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
1851
1850
  ...t
1852
1851
  }
1853
1852
  ));
1854
- kn.displayName = _.Root.displayName;
1855
- const Sn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1856
- _.Trigger,
1853
+ vn.displayName = C.Root.displayName;
1854
+ const wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1855
+ C.Trigger,
1857
1856
  {
1858
1857
  ref: s,
1859
1858
  className: c(
@@ -1863,9 +1862,9 @@ const Sn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1863
1862
  ...t
1864
1863
  }
1865
1864
  ));
1866
- Sn.displayName = _.Trigger.displayName;
1867
- const An = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1868
- _.SubTrigger,
1865
+ wn.displayName = C.Trigger.displayName;
1866
+ const Nn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1867
+ C.SubTrigger,
1869
1868
  {
1870
1869
  ref: n,
1871
1870
  className: c(
@@ -1880,9 +1879,9 @@ const An = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
1880
1879
  ]
1881
1880
  }
1882
1881
  ));
1883
- An.displayName = _.SubTrigger.displayName;
1884
- const jn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1885
- _.SubContent,
1882
+ Nn.displayName = C.SubTrigger.displayName;
1883
+ const kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1884
+ C.SubContent,
1886
1885
  {
1887
1886
  ref: s,
1888
1887
  className: c(
@@ -1892,9 +1891,9 @@ const jn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1892
1891
  ...t
1893
1892
  }
1894
1893
  ));
1895
- jn.displayName = _.SubContent.displayName;
1896
- const Cn = p.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(_.Portal, { children: /* @__PURE__ */ a.jsx(
1897
- _.Content,
1894
+ kn.displayName = C.SubContent.displayName;
1895
+ const Sn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1896
+ C.Content,
1898
1897
  {
1899
1898
  ref: r,
1900
1899
  align: t,
@@ -1907,9 +1906,9 @@ const Cn = p.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
1907
1906
  ...n
1908
1907
  }
1909
1908
  ) }));
1910
- Cn.displayName = _.Content.displayName;
1911
- const _n = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1912
- _.Item,
1909
+ Sn.displayName = C.Content.displayName;
1910
+ const jn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1911
+ C.Item,
1913
1912
  {
1914
1913
  ref: o,
1915
1914
  className: c(
@@ -1920,9 +1919,9 @@ const _n = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1920
1919
  ...s
1921
1920
  }
1922
1921
  ));
1923
- _n.displayName = _.Item.displayName;
1924
- const Bn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1925
- _.CheckboxItem,
1922
+ jn.displayName = C.Item.displayName;
1923
+ const An = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1924
+ C.CheckboxItem,
1926
1925
  {
1927
1926
  ref: n,
1928
1927
  className: c(
@@ -1932,14 +1931,14 @@ const Bn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1932
1931
  checked: s,
1933
1932
  ...o,
1934
1933
  children: [
1935
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(_.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
1934
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(C.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
1936
1935
  t
1937
1936
  ]
1938
1937
  }
1939
1938
  ));
1940
- Bn.displayName = _.CheckboxItem.displayName;
1941
- const Rn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1942
- _.RadioItem,
1939
+ An.displayName = C.CheckboxItem.displayName;
1940
+ const Cn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1941
+ C.RadioItem,
1943
1942
  {
1944
1943
  ref: o,
1945
1944
  className: c(
@@ -1948,26 +1947,26 @@ const Rn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1948
1947
  ),
1949
1948
  ...s,
1950
1949
  children: [
1951
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(_.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
1950
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(C.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
1952
1951
  t
1953
1952
  ]
1954
1953
  }
1955
1954
  ));
1956
- Rn.displayName = _.RadioItem.displayName;
1957
- const Pn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1958
- _.Label,
1955
+ Cn.displayName = C.RadioItem.displayName;
1956
+ const _n = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1957
+ C.Label,
1959
1958
  {
1960
1959
  ref: o,
1961
1960
  className: c("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
1962
1961
  ...s
1963
1962
  }
1964
1963
  ));
1965
- Pn.displayName = _.Label.displayName;
1966
- const Tn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
1967
- Tn.displayName = _.Separator.displayName;
1968
- const In = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1969
- In.displayname = "MenubarShortcut";
1970
- const el = Le.Root, tl = Le.Trigger, Mn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1964
+ _n.displayName = C.Label.displayName;
1965
+ const Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
1966
+ Bn.displayName = C.Separator.displayName;
1967
+ const Rn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1968
+ Rn.displayname = "MenubarShortcut";
1969
+ const Ki = Le.Root, Ji = Le.Trigger, Pn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1971
1970
  Le.Content,
1972
1971
  {
1973
1972
  ref: n,
@@ -1980,8 +1979,8 @@ const el = Le.Root, tl = Le.Trigger, Mn = p.forwardRef(({ className: e, align: t
1980
1979
  ...o
1981
1980
  }
1982
1981
  ));
1983
- Mn.displayName = Le.Content.displayName;
1984
- const sl = O.Root, ol = O.Group, al = O.Value, Dn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1982
+ Pn.displayName = Le.Content.displayName;
1983
+ const Yi = O.Root, Qi = O.Group, Xi = O.Value, Tn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1985
1984
  O.Trigger,
1986
1985
  {
1987
1986
  ref: o,
@@ -1996,8 +1995,8 @@ const sl = O.Root, ol = O.Group, al = O.Value, Dn = p.forwardRef(({ className: e
1996
1995
  ]
1997
1996
  }
1998
1997
  ));
1999
- Dn.displayName = O.Trigger.displayName;
2000
- const En = p.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
1998
+ Tn.displayName = O.Trigger.displayName;
1999
+ const In = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
2001
2000
  O.Content,
2002
2001
  {
2003
2002
  ref: n,
@@ -2020,10 +2019,10 @@ const En = p.forwardRef(({ className: e, children: t, position: s = "popper", ..
2020
2019
  )
2021
2020
  }
2022
2021
  ) }));
2023
- En.displayName = O.Content.displayName;
2024
- const Ln = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Label, { ref: s, className: c("px-2 py-1.5 text-sm font-semibold", e), ...t }));
2025
- Ln.displayName = O.Label.displayName;
2026
- const On = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2022
+ In.displayName = O.Content.displayName;
2023
+ const Mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Label, { ref: s, className: c("px-2 py-1.5 text-sm font-semibold", e), ...t }));
2024
+ Mn.displayName = O.Label.displayName;
2025
+ const Dn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2027
2026
  O.Item,
2028
2027
  {
2029
2028
  ref: o,
@@ -2038,13 +2037,13 @@ const On = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2038
2037
  ]
2039
2038
  }
2040
2039
  ));
2041
- On.displayName = O.Item.displayName;
2042
- const zn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2043
- zn.displayName = O.Separator.displayName;
2044
- const nl = R.Root, rl = R.Trigger, il = R.Close, _s = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(R.Portal, { className: c(e), ...t });
2045
- _s.displayName = R.Portal.displayName;
2046
- const Bs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2047
- R.Overlay,
2040
+ Dn.displayName = O.Item.displayName;
2041
+ const En = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2042
+ En.displayName = O.Separator.displayName;
2043
+ const Zi = B.Root, el = B.Trigger, tl = B.Close, _s = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
2044
+ _s.displayName = B.Portal.displayName;
2045
+ const Bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2046
+ B.Overlay,
2048
2047
  {
2049
2048
  className: c(
2050
2049
  "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -2054,8 +2053,8 @@ const Bs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2054
2053
  ref: s
2055
2054
  }
2056
2055
  ));
2057
- Bs.displayName = R.Overlay.displayName;
2058
- const $n = be(
2056
+ Bs.displayName = B.Overlay.displayName;
2057
+ const Ln = be(
2059
2058
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
2060
2059
  {
2061
2060
  variants: {
@@ -2070,29 +2069,29 @@ const $n = be(
2070
2069
  side: "right"
2071
2070
  }
2072
2071
  }
2073
- ), Vn = p.forwardRef(
2072
+ ), On = m.forwardRef(
2074
2073
  ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(_s, { children: [
2075
2074
  /* @__PURE__ */ a.jsx(Bs, {}),
2076
- /* @__PURE__ */ a.jsxs(R.Content, { ref: n, className: c($n({ side: e }), t), ...o, children: [
2075
+ /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: c(Ln({ side: e }), t), ...o, children: [
2077
2076
  s,
2078
- /* @__PURE__ */ a.jsxs(R.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
2077
+ /* @__PURE__ */ a.jsxs(B.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
2079
2078
  /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
2080
2079
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
2081
2080
  ] })
2082
2081
  ] })
2083
2082
  ] })
2084
2083
  );
2085
- Vn.displayName = R.Content.displayName;
2086
- const Fn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
2087
- Fn.displayName = "SheetHeader";
2088
- const Gn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
2089
- Gn.displayName = "SheetFooter";
2090
- const Wn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
2091
- Wn.displayName = R.Title.displayName;
2092
- const Un = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
2093
- Un.displayName = R.Description.displayName;
2094
- const ll = T.Root, cl = T.Trigger, dl = T.Group, ul = T.Portal, ml = T.Sub, pl = T.RadioGroup, Hn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2095
- T.SubTrigger,
2084
+ On.displayName = B.Content.displayName;
2085
+ const zn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
2086
+ zn.displayName = "SheetHeader";
2087
+ const Vn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
2088
+ Vn.displayName = "SheetFooter";
2089
+ const $n = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
2090
+ $n.displayName = B.Title.displayName;
2091
+ const Fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
2092
+ Fn.displayName = B.Description.displayName;
2093
+ const sl = P.Root, ol = P.Trigger, al = P.Group, nl = P.Portal, rl = P.Sub, il = P.RadioGroup, Gn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2094
+ P.SubTrigger,
2096
2095
  {
2097
2096
  ref: n,
2098
2097
  className: c(
@@ -2107,9 +2106,9 @@ const ll = T.Root, cl = T.Trigger, dl = T.Group, ul = T.Portal, ml = T.Sub, pl =
2107
2106
  ]
2108
2107
  }
2109
2108
  ));
2110
- Hn.displayName = T.SubTrigger.displayName;
2111
- const qn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2112
- T.SubContent,
2109
+ Gn.displayName = P.SubTrigger.displayName;
2110
+ const Wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2111
+ P.SubContent,
2113
2112
  {
2114
2113
  ref: s,
2115
2114
  className: c(
@@ -2119,9 +2118,9 @@ const qn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2119
2118
  ...t
2120
2119
  }
2121
2120
  ));
2122
- qn.displayName = T.SubContent.displayName;
2123
- const Kn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
2124
- T.Content,
2121
+ Wn.displayName = P.SubContent.displayName;
2122
+ const Un = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2123
+ P.Content,
2125
2124
  {
2126
2125
  ref: o,
2127
2126
  sideOffset: t,
@@ -2133,9 +2132,9 @@ const Kn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
2133
2132
  ...s
2134
2133
  }
2135
2134
  ) }));
2136
- Kn.displayName = T.Content.displayName;
2137
- const Jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2138
- T.Item,
2135
+ Un.displayName = P.Content.displayName;
2136
+ const Hn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2137
+ P.Item,
2139
2138
  {
2140
2139
  ref: o,
2141
2140
  className: c(
@@ -2146,9 +2145,9 @@ const Jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2146
2145
  ...s
2147
2146
  }
2148
2147
  ));
2149
- Jn.displayName = T.Item.displayName;
2150
- const Yn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2151
- T.CheckboxItem,
2148
+ Hn.displayName = P.Item.displayName;
2149
+ const qn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2150
+ P.CheckboxItem,
2152
2151
  {
2153
2152
  ref: n,
2154
2153
  className: c(
@@ -2158,14 +2157,14 @@ const Yn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2158
2157
  checked: s,
2159
2158
  ...o,
2160
2159
  children: [
2161
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2160
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2162
2161
  t
2163
2162
  ]
2164
2163
  }
2165
2164
  ));
2166
- Yn.displayName = T.CheckboxItem.displayName;
2167
- const Qn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2168
- T.RadioItem,
2165
+ qn.displayName = P.CheckboxItem.displayName;
2166
+ const Kn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2167
+ P.RadioItem,
2169
2168
  {
2170
2169
  ref: o,
2171
2170
  className: c(
@@ -2174,27 +2173,27 @@ const Qn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2174
2173
  ),
2175
2174
  ...s,
2176
2175
  children: [
2177
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
2176
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
2178
2177
  t
2179
2178
  ]
2180
2179
  }
2181
2180
  ));
2182
- Qn.displayName = T.RadioItem.displayName;
2183
- const Xn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2184
- T.Label,
2181
+ Kn.displayName = P.RadioItem.displayName;
2182
+ const Jn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2183
+ P.Label,
2185
2184
  {
2186
2185
  ref: o,
2187
2186
  className: c("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
2188
2187
  ...s
2189
2188
  }
2190
2189
  ));
2191
- Xn.displayName = T.Label.displayName;
2192
- const Zn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2193
- Zn.displayName = T.Separator.displayName;
2194
- const er = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
2195
- er.displayName = "DropdownMenuShortcut";
2196
- const tr = p.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
2197
- Vt.Root,
2190
+ Jn.displayName = P.Label.displayName;
2191
+ const Yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
2192
+ Yn.displayName = P.Separator.displayName;
2193
+ const Qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
2194
+ Qn.displayName = "DropdownMenuShortcut";
2195
+ const Xn = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
2196
+ $t.Root,
2198
2197
  {
2199
2198
  ref: n,
2200
2199
  decorative: s,
@@ -2203,10 +2202,10 @@ const tr = p.forwardRef(({ className: e, orientation: t = "horizontal", decorati
2203
2202
  ...o
2204
2203
  }
2205
2204
  ));
2206
- tr.displayName = Vt.Root.displayName;
2207
- const sr = 1, or = 1e6;
2205
+ Xn.displayName = $t.Root.displayName;
2206
+ const Zn = 1, er = 1e6;
2208
2207
  let We = 0;
2209
- function ar() {
2208
+ function tr() {
2210
2209
  return We = (We + 1) % Number.MAX_VALUE, We.toString();
2211
2210
  }
2212
2211
  const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
@@ -2217,14 +2216,14 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
2217
2216
  type: "REMOVE_TOAST",
2218
2217
  toastId: e
2219
2218
  });
2220
- }, or);
2219
+ }, er);
2221
2220
  Ue.set(e, t);
2222
- }, nr = (e, t) => {
2221
+ }, sr = (e, t) => {
2223
2222
  switch (t.type) {
2224
2223
  case "ADD_TOAST":
2225
2224
  return {
2226
2225
  ...e,
2227
- toasts: [t.toast, ...e.toasts].slice(0, sr)
2226
+ toasts: [t.toast, ...e.toasts].slice(0, Zn)
2228
2227
  };
2229
2228
  case "UPDATE_TOAST":
2230
2229
  return {
@@ -2257,12 +2256,12 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
2257
2256
  }, Te = [];
2258
2257
  let Ie = { toasts: [] };
2259
2258
  function ke(e) {
2260
- Ie = nr(Ie, e), Te.forEach((t) => {
2259
+ Ie = sr(Ie, e), Te.forEach((t) => {
2261
2260
  t(Ie);
2262
2261
  });
2263
2262
  }
2264
- function rr({ ...e }) {
2265
- const t = ar(), s = (n) => ke({
2263
+ function or({ ...e }) {
2264
+ const t = tr(), s = (n) => ke({
2266
2265
  type: "UPDATE_TOAST",
2267
2266
  toast: { ...n, id: t }
2268
2267
  }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
@@ -2282,18 +2281,18 @@ function rr({ ...e }) {
2282
2281
  update: s
2283
2282
  };
2284
2283
  }
2285
- function ir() {
2286
- const [e, t] = p.useState(Ie);
2287
- return p.useEffect(() => (Te.push(t), () => {
2284
+ function ar() {
2285
+ const [e, t] = m.useState(Ie);
2286
+ return m.useEffect(() => (Te.push(t), () => {
2288
2287
  const s = Te.indexOf(t);
2289
2288
  s > -1 && Te.splice(s, 1);
2290
2289
  }), [e]), {
2291
2290
  ...e,
2292
- toast: rr,
2291
+ toast: or,
2293
2292
  dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
2294
2293
  };
2295
2294
  }
2296
- const lr = H.Provider, Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2295
+ const nr = H.Provider, Rs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2297
2296
  H.Viewport,
2298
2297
  {
2299
2298
  ref: s,
@@ -2305,7 +2304,7 @@ const lr = H.Provider, Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PU
2305
2304
  }
2306
2305
  ));
2307
2306
  Rs.displayName = H.Viewport.displayName;
2308
- const cr = be(
2307
+ const rr = be(
2309
2308
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
2310
2309
  {
2311
2310
  variants: {
@@ -2318,9 +2317,9 @@ const cr = be(
2318
2317
  variant: "default"
2319
2318
  }
2320
2319
  }
2321
- ), Ps = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(H.Root, { ref: o, className: c(cr({ variant: t }), e), ...s }));
2320
+ ), Ps = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(H.Root, { ref: o, className: c(rr({ variant: t }), e), ...s }));
2322
2321
  Ps.displayName = H.Root.displayName;
2323
- const dr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2322
+ const ir = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2324
2323
  H.Action,
2325
2324
  {
2326
2325
  ref: s,
@@ -2331,8 +2330,8 @@ const dr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2331
2330
  ...t
2332
2331
  }
2333
2332
  ));
2334
- dr.displayName = H.Action.displayName;
2335
- const Ts = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2333
+ ir.displayName = H.Action.displayName;
2334
+ const Ts = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2336
2335
  H.Close,
2337
2336
  {
2338
2337
  ref: s,
@@ -2346,13 +2345,13 @@ const Ts = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2346
2345
  }
2347
2346
  ));
2348
2347
  Ts.displayName = H.Close.displayName;
2349
- const Is = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Title, { ref: s, className: c("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2348
+ const Is = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Title, { ref: s, className: c("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2350
2349
  Is.displayName = H.Title.displayName;
2351
- const Ms = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
2350
+ const Ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
2352
2351
  Ms.displayName = H.Description.displayName;
2353
- function fl() {
2354
- const { toasts: e } = ir();
2355
- return /* @__PURE__ */ a.jsxs(lr, { children: [
2352
+ function ll() {
2353
+ const { toasts: e } = ar();
2354
+ return /* @__PURE__ */ a.jsxs(nr, { children: [
2356
2355
  e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(Ps, { ...r, children: [
2357
2356
  /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
2358
2357
  s && /* @__PURE__ */ a.jsx(Is, { children: s }),
@@ -2364,7 +2363,7 @@ function fl() {
2364
2363
  /* @__PURE__ */ a.jsx(Rs, {})
2365
2364
  ] });
2366
2365
  }
2367
- const gl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Ds = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2366
+ const cl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Ds = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2368
2367
  W,
2369
2368
  {
2370
2369
  ref: s,
@@ -2376,7 +2375,7 @@ const gl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
2376
2375
  }
2377
2376
  ));
2378
2377
  Ds.displayName = W.displayName;
2379
- const bl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children: /* @__PURE__ */ a.jsx(yt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ds, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), ur = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2378
+ const dl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children: /* @__PURE__ */ a.jsx(yt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ds, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), lr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2380
2379
  /* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2381
2380
  /* @__PURE__ */ a.jsx(
2382
2381
  W.Input,
@@ -2390,8 +2389,8 @@ const bl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children
2390
2389
  }
2391
2390
  )
2392
2391
  ] }));
2393
- ur.displayName = W.Input.displayName;
2394
- const mr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2392
+ lr.displayName = W.Input.displayName;
2393
+ const cr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2395
2394
  W.List,
2396
2395
  {
2397
2396
  ref: s,
@@ -2399,10 +2398,10 @@ const mr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2399
2398
  ...t
2400
2399
  }
2401
2400
  ));
2402
- mr.displayName = W.List.displayName;
2403
- const pr = p.forwardRef((e, t) => /* @__PURE__ */ a.jsx(W.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2404
- pr.displayName = W.Empty.displayName;
2405
- const fr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2401
+ cr.displayName = W.List.displayName;
2402
+ const dr = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(W.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2403
+ dr.displayName = W.Empty.displayName;
2404
+ const ur = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2406
2405
  W.Group,
2407
2406
  {
2408
2407
  ref: s,
@@ -2413,10 +2412,10 @@ const fr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2413
2412
  ...t
2414
2413
  }
2415
2414
  ));
2416
- fr.displayName = W.Group.displayName;
2417
- const gr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(W.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
2418
- gr.displayName = W.Separator.displayName;
2419
- const br = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2415
+ ur.displayName = W.Group.displayName;
2416
+ const mr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(W.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
2417
+ mr.displayName = W.Separator.displayName;
2418
+ const pr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2420
2419
  W.Item,
2421
2420
  {
2422
2421
  ref: s,
@@ -2427,11 +2426,11 @@ const br = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2427
2426
  ...t
2428
2427
  }
2429
2428
  ));
2430
- br.displayName = W.Item.displayName;
2431
- const xr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2432
- xr.displayName = "CommandShortcut";
2433
- const xl = I.Root, hl = I.Trigger, yl = I.Group, vl = I.Portal, wl = I.Sub, Nl = I.RadioGroup, hr = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2434
- I.SubTrigger,
2429
+ pr.displayName = W.Item.displayName;
2430
+ const fr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2431
+ fr.displayName = "CommandShortcut";
2432
+ const ul = T.Root, ml = T.Trigger, pl = T.Group, fl = T.Portal, gl = T.Sub, bl = T.RadioGroup, gr = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2433
+ T.SubTrigger,
2435
2434
  {
2436
2435
  ref: n,
2437
2436
  className: c(
@@ -2446,9 +2445,9 @@ const xl = I.Root, hl = I.Trigger, yl = I.Group, vl = I.Portal, wl = I.Sub, Nl =
2446
2445
  ]
2447
2446
  }
2448
2447
  ));
2449
- hr.displayName = I.SubTrigger.displayName;
2450
- const yr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2451
- I.SubContent,
2448
+ gr.displayName = T.SubTrigger.displayName;
2449
+ const br = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2450
+ T.SubContent,
2452
2451
  {
2453
2452
  ref: s,
2454
2453
  className: c(
@@ -2458,9 +2457,9 @@ const yr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2458
2457
  ...t
2459
2458
  }
2460
2459
  ));
2461
- yr.displayName = I.SubContent.displayName;
2462
- const vr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Portal, { children: /* @__PURE__ */ a.jsx(
2463
- I.Content,
2460
+ br.displayName = T.SubContent.displayName;
2461
+ const xr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
2462
+ T.Content,
2464
2463
  {
2465
2464
  ref: s,
2466
2465
  className: c(
@@ -2470,9 +2469,9 @@ const vr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.P
2470
2469
  ...t
2471
2470
  }
2472
2471
  ) }));
2473
- vr.displayName = I.Content.displayName;
2474
- const wr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2475
- I.Item,
2472
+ xr.displayName = T.Content.displayName;
2473
+ const hr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2474
+ T.Item,
2476
2475
  {
2477
2476
  ref: o,
2478
2477
  className: c(
@@ -2483,9 +2482,9 @@ const wr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2483
2482
  ...s
2484
2483
  }
2485
2484
  ));
2486
- wr.displayName = I.Item.displayName;
2487
- const Nr = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2488
- I.CheckboxItem,
2485
+ hr.displayName = T.Item.displayName;
2486
+ const yr = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2487
+ T.CheckboxItem,
2489
2488
  {
2490
2489
  ref: n,
2491
2490
  className: c(
@@ -2495,14 +2494,14 @@ const Nr = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2495
2494
  checked: s,
2496
2495
  ...o,
2497
2496
  children: [
2498
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(I.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2497
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
2499
2498
  t
2500
2499
  ]
2501
2500
  }
2502
2501
  ));
2503
- Nr.displayName = I.CheckboxItem.displayName;
2504
- const kr = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2505
- I.RadioItem,
2502
+ yr.displayName = T.CheckboxItem.displayName;
2503
+ const vr = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2504
+ T.RadioItem,
2506
2505
  {
2507
2506
  ref: o,
2508
2507
  className: c(
@@ -2511,26 +2510,26 @@ const kr = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2511
2510
  ),
2512
2511
  ...s,
2513
2512
  children: [
2514
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(I.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
2513
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
2515
2514
  t
2516
2515
  ]
2517
2516
  }
2518
2517
  ));
2519
- kr.displayName = I.RadioItem.displayName;
2520
- const Sr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2521
- I.Label,
2518
+ vr.displayName = T.RadioItem.displayName;
2519
+ const wr = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2520
+ T.Label,
2522
2521
  {
2523
2522
  ref: o,
2524
2523
  className: c("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
2525
2524
  ...s
2526
2525
  }
2527
2526
  ));
2528
- Sr.displayName = I.Label.displayName;
2529
- const Ar = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
2530
- Ar.displayName = I.Separator.displayName;
2531
- const jr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2532
- jr.displayName = "ContextMenuShortcut";
2533
- const Cr = (e) => {
2527
+ wr.displayName = T.Label.displayName;
2528
+ const Nr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
2529
+ Nr.displayName = T.Separator.displayName;
2530
+ const kr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2531
+ kr.displayName = "ContextMenuShortcut";
2532
+ const Sr = (e) => {
2534
2533
  try {
2535
2534
  const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2536
2535
  Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
@@ -2541,10 +2540,10 @@ const Cr = (e) => {
2541
2540
  } catch {
2542
2541
  return "";
2543
2542
  }
2544
- }, kl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
2543
+ }, xl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
2545
2544
  const n = (r) => {
2546
2545
  t("<svg />");
2547
- const i = Cr(r);
2546
+ const i = Sr(r);
2548
2547
  t(i), s(o, i);
2549
2548
  };
2550
2549
  return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
@@ -2593,7 +2592,7 @@ const Cr = (e) => {
2593
2592
  }
2594
2593
  )
2595
2594
  ] });
2596
- }, _r = et.lazy(() => import("./UnsplashImages-_PxEYx5c.js")), Br = et.lazy(() => import("./UploadImages-zzSgKmP9.js")), Es = ({
2595
+ }, jr = et.lazy(() => import("./UnsplashImages-yk5eowZf.js")), Ar = et.lazy(() => import("./UploadImages-ioTAmtvl.js")), Es = ({
2597
2596
  isModalView: e = !1,
2598
2597
  onSelect: t = () => {
2599
2598
  }
@@ -2601,15 +2600,15 @@ const Cr = (e) => {
2601
2600
  const [s, o] = De("upload");
2602
2601
  return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2603
2602
  /* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: /* @__PURE__ */ a.jsx("h1", { className: "px-1 font-semibold", children: e ? "Select or upload images" : "Images" }) }),
2604
- /* @__PURE__ */ a.jsxs(vn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2603
+ /* @__PURE__ */ a.jsxs(xn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2605
2604
  /* @__PURE__ */ a.jsxs(Cs, { className: "w-full", children: [
2606
2605
  /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2607
2606
  /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2608
2607
  ] }),
2609
- s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(_r, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Br, { isModalView: e, onSelect: t }) }) })
2608
+ s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(jr, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ar, { isModalView: e, onSelect: t }) }) })
2610
2609
  ] })
2611
2610
  ] });
2612
- }, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2611
+ }, hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2613
2612
  __proto__: null,
2614
2613
  default: Es
2615
2614
  }, Symbol.toStringTag, { value: "Module" })), Ot = ({ children: e, onSelect: t }) => {
@@ -2617,10 +2616,10 @@ const Cr = (e) => {
2617
2616
  t.call(void 0, ...r), o(!1);
2618
2617
  };
2619
2618
  return /* @__PURE__ */ a.jsxs(ks, { open: s, onOpenChange: (r) => o(r), children: [
2620
- /* @__PURE__ */ a.jsx(on, { asChild: !0, children: e }),
2619
+ /* @__PURE__ */ a.jsx(en, { asChild: !0, children: e }),
2621
2620
  /* @__PURE__ */ a.jsx(yt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Es, { isModalView: !0, onSelect: n }) }) })
2622
2621
  ] });
2623
- }, Al = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2622
+ }, yl = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2624
2623
  e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Ot, { onSelect: t, children: /* @__PURE__ */ a.jsx("div", { className: "h-20 w-20 cursor-pointer rounded-md border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px] hover:border-gray-400" }) }),
2625
2624
  /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2626
2625
  /* @__PURE__ */ a.jsx(Ot, { onSelect: t, children: /* @__PURE__ */ a.jsx("small", { className: "cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700", children: e || !oe(e) ? "Replace Image" : "Choose Image" }) }),
@@ -2637,7 +2636,7 @@ const Cr = (e) => {
2637
2636
  }
2638
2637
  )
2639
2638
  ] })
2640
- ] }), jl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2639
+ ] }), vl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2641
2640
  const r = {
2642
2641
  toolbar: [
2643
2642
  ["bold", "italic", "underline", "strike", "blockquote"],
@@ -2673,9 +2672,9 @@ const Cr = (e) => {
2673
2672
  className: "mt-1 rounded-md"
2674
2673
  }
2675
2674
  );
2676
- }, Cl = ({ schema: e, formData: t, onChange: s }) => {
2677
- const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: m = "self" } = t;
2678
- return Ae(() => {
2675
+ }, wl = ({ schema: e, formData: t, onChange: s }) => {
2676
+ const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: p = "self" } = t;
2677
+ return je(() => {
2679
2678
  (async () => {
2680
2679
  const l = await r();
2681
2680
  n(l || []);
@@ -2699,7 +2698,7 @@ const Cr = (e) => {
2699
2698
  onChange: (l) => s({ ...t, href: l.target.value }),
2700
2699
  children: [
2701
2700
  /* @__PURE__ */ a.jsx("option", { value: "", children: "Choose page" }),
2702
- $(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2701
+ V(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2703
2702
  ]
2704
2703
  }
2705
2704
  ) : /* @__PURE__ */ a.jsx(
@@ -2717,9 +2716,9 @@ const Cr = (e) => {
2717
2716
  "input",
2718
2717
  {
2719
2718
  type: "checkbox",
2720
- defaultChecked: m === "_blank",
2719
+ defaultChecked: p === "_blank",
2721
2720
  className: "cursor-pointer rounded-md border border-border",
2722
- onChange: () => s({ ...t, target: m === "_blank" ? "_self" : "_blank" })
2721
+ onChange: () => s({ ...t, target: p === "_blank" ? "_self" : "_blank" })
2723
2722
  }
2724
2723
  ),
2725
2724
  /* @__PURE__ */ a.jsx("span", { className: "pt-1 text-xs", children: "Open in new tab" })
@@ -2728,224 +2727,221 @@ const Cr = (e) => {
2728
2727
  ] });
2729
2728
  };
2730
2729
  export {
2731
- bi as $,
2730
+ pi as $,
2732
2731
  ms as A,
2733
- Va as B,
2734
- fl as C,
2735
- Vi as D,
2736
- Fi as E,
2737
- Ya as F,
2738
- Qa as G,
2739
- Za as H,
2740
- en as I,
2741
- Xa as J,
2742
- sn as K,
2743
- Mi as L,
2744
- _i as M,
2745
- Ci as N,
2746
- ii as O,
2747
- li as P,
2732
+ Oa as B,
2733
+ ll as C,
2734
+ Di as D,
2735
+ Ei as E,
2736
+ qa as F,
2737
+ Ka as G,
2738
+ Ya as H,
2739
+ Qa as I,
2740
+ Ja as J,
2741
+ Za as K,
2742
+ Pi as L,
2743
+ ji as M,
2744
+ Si as N,
2745
+ ai as O,
2746
+ ni as P,
2748
2747
  Ho as Q,
2749
- di as R,
2750
- gl as S,
2751
- Wi as T,
2752
- ui as U,
2748
+ ii as R,
2749
+ cl as S,
2750
+ Oi as T,
2751
+ li as U,
2753
2752
  Xo as V,
2754
- pi as W,
2755
- fi as X,
2753
+ di as W,
2754
+ ui as X,
2756
2755
  ds as Y,
2757
- gi as Z,
2758
- Na as _,
2759
- Qr as a,
2760
- oi as a$,
2761
- xi as a0,
2762
- yi as a1,
2763
- Ii as a2,
2764
- wi as a3,
2765
- ki as a4,
2766
- Ni as a5,
2767
- ri as a6,
2768
- ga as a7,
2769
- Di as a8,
2770
- Si as a9,
2771
- Do as aA,
2772
- vn as aB,
2773
- Cs as aC,
2774
- Xe as aD,
2775
- Ze as aE,
2776
- ol as aF,
2777
- Ln as aG,
2778
- Ui as aH,
2779
- Hi as aI,
2780
- za as aJ,
2781
- wn as aK,
2782
- tr as aL,
2783
- xn as aM,
2784
- $a as aN,
2785
- el as aO,
2786
- tl as aP,
2787
- Mn as aQ,
2788
- ll as aR,
2789
- cl as aS,
2790
- Kn as aT,
2791
- Xn as aU,
2792
- Zn as aV,
2793
- Yn as aW,
2794
- pa as aX,
2795
- ma as aY,
2796
- na as aZ,
2797
- si as a_,
2798
- ei as aa,
2799
- Ai as ab,
2800
- ji as ac,
2801
- ni as ad,
2802
- Vo as ae,
2803
- Bi as af,
2804
- ci as ag,
2805
- Ri as ah,
2806
- Pi as ai,
2756
+ mi as Z,
2757
+ ka as _,
2758
+ Kr as a,
2759
+ la as a$,
2760
+ fi as a0,
2761
+ bi as a1,
2762
+ Ri as a2,
2763
+ hi as a3,
2764
+ vi as a4,
2765
+ yi as a5,
2766
+ oi as a6,
2767
+ ba as a7,
2768
+ Ti as a8,
2769
+ wi as a9,
2770
+ Ze as aA,
2771
+ Qi as aB,
2772
+ Mn as aC,
2773
+ zi as aD,
2774
+ Vi as aE,
2775
+ Ea as aF,
2776
+ hn as aG,
2777
+ Xn as aH,
2778
+ fn as aI,
2779
+ La as aJ,
2780
+ Ki as aK,
2781
+ Ji as aL,
2782
+ Pn as aM,
2783
+ sl as aN,
2784
+ ol as aO,
2785
+ Un as aP,
2786
+ Jn as aQ,
2787
+ Yn as aR,
2788
+ qn as aS,
2789
+ pa as aT,
2790
+ ma as aU,
2791
+ na as aV,
2792
+ fa as aW,
2793
+ Zr as aX,
2794
+ ei as aY,
2795
+ Ye as aZ,
2796
+ oa as a_,
2797
+ Qr as aa,
2798
+ Ni as ab,
2799
+ ki as ac,
2800
+ si as ad,
2801
+ $o as ae,
2802
+ Ai as af,
2803
+ ri as ag,
2804
+ Ci as ah,
2805
+ _i as ai,
2807
2806
  ns as aj,
2808
- La as ak,
2809
- Ei as al,
2810
- Li as am,
2811
- Oi as an,
2812
- ks as ao,
2813
- yt as ap,
2814
- an as aq,
2815
- rn as ar,
2816
- ln as as,
2817
- tn as at,
2818
- sl as au,
2819
- Dn as av,
2820
- al as aw,
2821
- En as ax,
2822
- On as ay,
2823
- ca as az,
2807
+ ks as ak,
2808
+ yt as al,
2809
+ tn as am,
2810
+ on as an,
2811
+ an as ao,
2812
+ Xa as ap,
2813
+ Yi as aq,
2814
+ Tn as ar,
2815
+ Xi as as,
2816
+ In as at,
2817
+ Dn as au,
2818
+ ca as av,
2819
+ Do as aw,
2820
+ xn as ax,
2821
+ Cs as ay,
2822
+ Xe as az,
2824
2823
  Z as b,
2825
- Yi as b$,
2826
- Ye as b0,
2827
- oa as b1,
2828
- la as b2,
2829
- qi as b3,
2830
- Ki as b4,
2831
- Nn as b5,
2832
- Ds as b6,
2824
+ En as b$,
2825
+ $i as b0,
2826
+ Fi as b1,
2827
+ yn as b2,
2828
+ Ds as b3,
2829
+ lr as b4,
2830
+ cr as b5,
2831
+ dr as b6,
2833
2832
  ur as b7,
2834
- mr as b8,
2835
- pr as b9,
2836
- qa as bA,
2837
- ua as bB,
2838
- wr as bC,
2839
- vr as bD,
2840
- xl as bE,
2841
- hl as bF,
2842
- ai as bG,
2843
- Oa as bH,
2844
- ht as bI,
2845
- Ka as bJ,
2846
- $i as bK,
2847
- Ja as bL,
2848
- un as bM,
2849
- js as bN,
2850
- kn as bO,
2851
- Ji as bP,
2852
- Sn as bQ,
2853
- Cn as bR,
2854
- _n as bS,
2855
- Tn as bT,
2856
- Pn as bU,
2857
- Bn as bV,
2858
- Zi as bW,
2859
- Rn as bX,
2860
- Qi as bY,
2861
- jn as bZ,
2862
- An as b_,
2863
- fr as ba,
2864
- br as bb,
2865
- nn as bc,
2866
- on as bd,
2867
- Rt as be,
2868
- Bt as bf,
2869
- jl as bg,
2870
- kl as bh,
2871
- Al as bi,
2872
- Cl as bj,
2873
- zi as bk,
2874
- Fa as bl,
2875
- Ga as bm,
2876
- Wa as bn,
2877
- gn as bo,
2878
- Gi as bp,
2879
- sa as bq,
2880
- yn as br,
2881
- da as bs,
2882
- cn as bt,
2883
- dn as bu,
2884
- mn as bv,
2885
- pn as bw,
2886
- hn as bx,
2887
- fn as by,
2888
- Ha as bz,
2833
+ pr as b8,
2834
+ sn as b9,
2835
+ xr as bA,
2836
+ ul as bB,
2837
+ ml as bC,
2838
+ ti as bD,
2839
+ Da as bE,
2840
+ ht as bF,
2841
+ Ua as bG,
2842
+ Mi as bH,
2843
+ Ha as bI,
2844
+ ln as bJ,
2845
+ As as bK,
2846
+ vn as bL,
2847
+ Gi as bM,
2848
+ wn as bN,
2849
+ Sn as bO,
2850
+ jn as bP,
2851
+ Bn as bQ,
2852
+ _n as bR,
2853
+ An as bS,
2854
+ qi as bT,
2855
+ Cn as bU,
2856
+ Ui as bV,
2857
+ kn as bW,
2858
+ Nn as bX,
2859
+ Wi as bY,
2860
+ Hi as bZ,
2861
+ Rn as b_,
2862
+ en as ba,
2863
+ Rt as bb,
2864
+ Bt as bc,
2865
+ vl as bd,
2866
+ xl as be,
2867
+ yl as bf,
2868
+ wl as bg,
2869
+ Ii as bh,
2870
+ za as bi,
2871
+ Va as bj,
2872
+ $a as bk,
2873
+ mn as bl,
2874
+ Li as bm,
2875
+ sa as bn,
2876
+ bn as bo,
2877
+ da as bp,
2878
+ nn as bq,
2879
+ rn as br,
2880
+ cn as bs,
2881
+ dn as bt,
2882
+ gn as bu,
2883
+ un as bv,
2884
+ Ga as bw,
2885
+ Wa as bx,
2886
+ ua as by,
2887
+ hr as bz,
2889
2888
  co as c,
2890
- Xi as c0,
2891
- In as c1,
2892
- zn as c2,
2893
- nl as c3,
2894
- rl as c4,
2895
- il as c5,
2896
- Vn as c6,
2889
+ Zi as c0,
2890
+ el as c1,
2891
+ tl as c2,
2892
+ On as c3,
2893
+ zn as c4,
2894
+ Vn as c5,
2895
+ $n as c6,
2897
2896
  Fn as c7,
2898
- Gn as c8,
2899
- Wn as c9,
2900
- Nl as cA,
2901
- Sl as cB,
2902
- Un as ca,
2903
- Jn as cb,
2904
- Qn as cc,
2905
- er as cd,
2906
- dl as ce,
2907
- ul as cf,
2908
- ml as cg,
2909
- qn as ch,
2910
- Hn as ci,
2911
- pl as cj,
2912
- nr as ck,
2913
- ir as cl,
2914
- rr as cm,
2915
- bl as cn,
2916
- xr as co,
2917
- gr as cp,
2897
+ Hn as c8,
2898
+ Kn as c9,
2899
+ Qn as ca,
2900
+ al as cb,
2901
+ nl as cc,
2902
+ rl as cd,
2903
+ Wn as ce,
2904
+ Gn as cf,
2905
+ il as cg,
2906
+ sr as ch,
2907
+ ar as ci,
2908
+ or as cj,
2909
+ dl as ck,
2910
+ fr as cl,
2911
+ mr as cm,
2912
+ yr as cn,
2913
+ vr as co,
2914
+ wr as cp,
2918
2915
  Nr as cq,
2919
2916
  kr as cr,
2920
- Sr as cs,
2921
- Ar as ct,
2922
- jr as cu,
2923
- yl as cv,
2924
- vl as cw,
2925
- wl as cx,
2926
- yr as cy,
2927
- hr as cz,
2917
+ pl as cs,
2918
+ fl as ct,
2919
+ gl as cu,
2920
+ br as cv,
2921
+ gr as cw,
2922
+ bl as cx,
2923
+ hl as cy,
2928
2924
  xo as d,
2929
2925
  bo as e,
2930
- je as f,
2931
- Xr as g,
2926
+ Ae as f,
2927
+ Jr as g,
2932
2928
  Ko as h,
2933
2929
  ve as i,
2934
2930
  Ce as j,
2935
- mi as k,
2936
- vi as l,
2937
- ya as m,
2938
- xa as n,
2939
- hi as o,
2931
+ ci as k,
2932
+ xi as l,
2933
+ va as m,
2934
+ ha as n,
2935
+ gi as o,
2940
2936
  bt as p,
2941
2937
  Q as q,
2942
2938
  Co as r,
2943
- fa as s,
2939
+ ga as s,
2944
2940
  gt as t,
2945
2941
  qt as u,
2946
- Zr as v,
2947
- ti as w,
2942
+ Yr as v,
2943
+ Xr as w,
2948
2944
  Yo as x,
2949
- Ti as y,
2945
+ Bi as y,
2950
2946
  it as z
2951
2947
  };