@chaibuilder/sdk 1.2.20 → 1.2.22

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 (63) hide show
  1. package/dist/{AddBlocks-X9eh8OWJ.cjs → AddBlocks-157fSrJX.cjs} +1 -1
  2. package/dist/{AddBlocks-VIWJkaHJ.js → AddBlocks-WgpssWmQ.js} +2 -2
  3. package/dist/{BrandingOptions-5ss0k1nb.js → BrandingOptions-4961TxX2.js} +2 -2
  4. package/dist/{BrandingOptions-PzPdafIT.cjs → BrandingOptions-nwXR9TMl.cjs} +1 -1
  5. package/dist/{CanvasArea-TTGqlBKO.js → CanvasArea-MajWGr9z.js} +3 -3
  6. package/dist/{CanvasArea-hoyr4dfb.cjs → CanvasArea-MmTlc5Vb.cjs} +1 -1
  7. package/dist/{CurrentPage-EddxgHU-.cjs → CurrentPage-LpLr0lDI.cjs} +1 -1
  8. package/dist/{CurrentPage-a3T2uy8Q.js → CurrentPage-oPZN6Gwj.js} +3 -3
  9. package/dist/ListTree-dvxHTXs4.js +167 -0
  10. package/dist/ListTree-gTmusfso.cjs +1 -0
  11. package/dist/{Outline-rNFJGkap.js → Outline-2OxsXs1-.js} +3 -3
  12. package/dist/{Outline-3IHYlOzF.cjs → Outline-7CCnnzmK.cjs} +1 -1
  13. package/dist/{PagesPanel-B33hWN11.cjs → PagesPanel-8536oBWB.cjs} +1 -1
  14. package/dist/{PagesPanel-0bL28ofN.js → PagesPanel-pRKHw-AZ.js} +4 -4
  15. package/dist/{ProjectPanel-sBRkUXnY.js → ProjectPanel-iU6DY-Yp.js} +4 -4
  16. package/dist/{ProjectPanel-qtRTXNOP.cjs → ProjectPanel-oILsUWOH.cjs} +1 -1
  17. package/dist/{Settings-HgGe1ANj.js → Settings-BhSrj-cE.js} +552 -532
  18. package/dist/Settings-jHiYmt0y.cjs +1 -0
  19. package/dist/{SidePanels-R_g9rSjP.js → SidePanels-OLOUpKn4.js} +45 -45
  20. package/dist/{SidePanels-aAm-2A3s.cjs → SidePanels-bcJJocSq.cjs} +1 -1
  21. package/dist/{Topbar-cXtxVswU.cjs → Topbar-NMvzqQHW.cjs} +1 -1
  22. package/dist/{Topbar-AUTKpVHO.js → Topbar-Ny9T-7Zb.js} +1 -1
  23. package/dist/{UnsplashImages-p34UJJWJ.cjs → UnsplashImages-6tZv1q2_.cjs} +1 -1
  24. package/dist/{UnsplashImages-1RFHZIte.js → UnsplashImages-Y8RGFVSh.js} +1 -1
  25. package/dist/{UploadImages-CLfyNo1i.cjs → UploadImages-VLlVg9Ur.cjs} +1 -1
  26. package/dist/{UploadImages-G2orrhmZ.js → UploadImages-dd8LfyFr.js} +1 -1
  27. package/dist/{add-page-modal-KCy_Khfe.cjs → add-page-modal-IsqDdK7X.cjs} +1 -1
  28. package/dist/{add-page-modal-DUthvJNJ.js → add-page-modal-Jni6CY1x.js} +4 -4
  29. package/dist/{confirm-alert-T8vimDRx.cjs → confirm-alert-f26zJ7Js.cjs} +1 -1
  30. package/dist/{confirm-alert-nk2WQHud.js → confirm-alert-sc8RaWvD.js} +1 -1
  31. package/dist/core.cjs +1 -1
  32. package/dist/core.js +2 -2
  33. package/dist/{delete-page-modal-WvWRQUgU.js → delete-page-modal-0WiMZFxr.js} +3 -3
  34. package/dist/{delete-page-modal-_pFjWLJn.cjs → delete-page-modal-c3b-GCap.cjs} +1 -1
  35. package/dist/email.cjs +1 -1
  36. package/dist/email.js +2 -2
  37. package/dist/{form-kXQX4L2W.js → form-Nj6Kdn3g.js} +1 -1
  38. package/dist/{form-YnnWtUGk.cjs → form-n1Q6u16z.cjs} +1 -1
  39. package/dist/{index-e5cgISUO.cjs → index-0bwkNnA0.cjs} +2 -2
  40. package/dist/index-9PHdn80L.cjs +1 -0
  41. package/dist/{index-la4rqGKN.js → index-IPJAbzzO.js} +965 -928
  42. package/dist/{index-QIbDWoML.js → index-UP_4awU9.js} +2 -2
  43. package/dist/{index--Pt4B5bv.js → index-_VPpjzJu.js} +3 -3
  44. package/dist/{index-JqRQZLN5.cjs → index-nwAgi0aD.cjs} +1 -1
  45. package/dist/{page-viewer-s_lHBVfx.js → page-viewer-L1Dmgj-c.js} +4 -4
  46. package/dist/{page-viewer-6phtctz6.cjs → page-viewer-TnxHhq7S.cjs} +1 -1
  47. package/dist/{project-general-setting-SaNOMXEl.cjs → project-general-setting-1Ot1RU43.cjs} +1 -1
  48. package/dist/{project-general-setting-gj4A0X5W.js → project-general-setting-sUP7JqWK.js} +4 -4
  49. package/dist/{project-seo-setting-bMDdgKRZ.cjs → project-seo-setting-3-vBkx2v.cjs} +1 -1
  50. package/dist/{project-seo-setting-aCPg-IIc.js → project-seo-setting-NNvAGt4T.js} +2 -2
  51. package/dist/{single-page-detail-TP-cxVIT.js → single-page-detail-FXg_NebW.js} +5 -5
  52. package/dist/{single-page-detail-er8i2FIF.cjs → single-page-detail-btEKYXjE.cjs} +1 -1
  53. package/dist/studio.cjs +1 -1
  54. package/dist/studio.js +3 -3
  55. package/dist/ui.cjs +1 -1
  56. package/dist/ui.js +1 -1
  57. package/dist/{useAddBlockByDrop-_vczk5o_.js → useAddBlockByDrop-V8xo-PNQ.js} +1 -1
  58. package/dist/{useAddBlockByDrop-LSV8adwE.cjs → useAddBlockByDrop-qRHgy8_0.cjs} +1 -1
  59. package/package.json +24 -25
  60. package/dist/ListTree-kergCZrw.js +0 -126
  61. package/dist/ListTree-tADrgsqZ.cjs +0 -1
  62. package/dist/Settings-rXxS3RGM.cjs +0 -1
  63. package/dist/index-DeHH1q_1.cjs +0 -1
@@ -1,9 +1,9 @@
1
1
  import * as m from "react";
2
- import et, { createContext as Is, useContext as Ms, useRef as gr, createElement as br, useReducer as Ds, useEffect as Ae, useDebugValue as Es, useCallback as L, useMemo as Os, useState as Ce, Suspense as vt } from "react";
3
- import { has as pe, get as F, flatten as ne, filter as M, isString as Et, find as te, map as R, omit as tt, each as ue, set as je, includes as q, isUndefined as hr, without as Ot, isEmpty as Ee, forIn as Lt, isObject as Ls, first as Q, noop as zs, keys as Vs, startsWith as zt, isNull as He, pick as yt, sortBy as wt } from "lodash-es";
4
- import { g as ce, a as $s } from "./Functions-7jnEwJyw.js";
2
+ import et, { createContext as Is, useContext as Ms, useRef as br, createElement as xr, useReducer as Ds, useEffect as Ae, useDebugValue as Es, useCallback as F, useMemo as Os, useState as Ce, Suspense as vt } from "react";
3
+ import { has as pe, get as H, flatten as ae, filter as D, isString as Et, find as se, map as P, omit as tt, each as ce, set as je, includes as Y, isUndefined as vr, without as Ot, isEmpty as Ee, forIn as Lt, isObject as Ls, first as Z, noop as zs, keys as Vs, startsWith as zt, isNull as He, pick as yt, sortBy as wt } from "lodash-es";
4
+ import { g as de, a as $s } from "./Functions-7jnEwJyw.js";
5
5
  import { getBlockComponent as Oe } from "@chaibuilder/runtime";
6
- import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as _e } from "jotai";
6
+ import { atom as w, useAtomValue as ee, useAtom as E, useSetAtom as _e } from "jotai";
7
7
  import { a as me, I as Vt, S as qe, B as Ke } from "./MODIFIERS-WQdaNvb8.js";
8
8
  import { g as Fs } from "./_commonjsHelpers-UyOWmZb0.js";
9
9
  import { useThrottledCallback as Us } from "@react-hookz/web";
@@ -15,28 +15,28 @@ import * as Je from "@radix-ui/react-switch";
15
15
  import { Slot as Ws } from "@radix-ui/react-slot";
16
16
  import * as fe from "@radix-ui/react-accordion";
17
17
  import { ChevronDownIcon as Gs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as Le, DotFilledIcon as nt, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
18
- import * as U from "@radix-ui/react-alert-dialog";
19
- import * as B from "@radix-ui/react-dialog";
18
+ import * as q from "@radix-ui/react-alert-dialog";
19
+ import * as T from "@radix-ui/react-dialog";
20
20
  import * as Ft from "@radix-ui/react-label";
21
- import * as de from "@radix-ui/react-scroll-area";
21
+ import * as ue from "@radix-ui/react-scroll-area";
22
22
  import * as be from "@radix-ui/react-tabs";
23
23
  import * as ve from "@radix-ui/react-tooltip";
24
24
  import * as Se from "@radix-ui/react-popover";
25
- import * as C from "@radix-ui/react-menubar";
25
+ import * as B from "@radix-ui/react-menubar";
26
26
  import * as ze from "@radix-ui/react-hover-card";
27
- import * as z from "@radix-ui/react-select";
28
- import * as T from "@radix-ui/react-dropdown-menu";
27
+ import * as U from "@radix-ui/react-select";
28
+ import * as I from "@radix-ui/react-dropdown-menu";
29
29
  import * as Ut from "@radix-ui/react-separator";
30
- import * as Y from "@radix-ui/react-toast";
31
- import { Command as K } from "cmdk";
32
- import * as P from "@radix-ui/react-context-menu";
30
+ import * as X from "@radix-ui/react-toast";
31
+ import { Command as Q } from "cmdk";
32
+ import * as M from "@radix-ui/react-context-menu";
33
33
  import Ks, { IconPickerItem as Js } from "react-icons-picker";
34
34
  import Ys from "react-dom";
35
35
  import Qs from "react-quill";
36
36
  import "react-i18next";
37
- var V = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
37
+ var G = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
38
38
  let Xs = 0;
39
- function oe(e, t) {
39
+ function ne(e, t) {
40
40
  const s = `atom${++Xs}`, o = {
41
41
  toString: () => s
42
42
  };
@@ -62,26 +62,26 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
62
62
  }, so = () => {
63
63
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
64
64
  let o, n, i;
65
- (V ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
65
+ (G ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
66
66
  const r = (u) => e.get(u), c = (u, g) => {
67
- (V ? "production" : void 0) !== "production" && Object.freeze(g);
68
- const v = e.get(u);
69
- if (e.set(u, g), s.has(u) || s.set(u, v), v && he(v)) {
67
+ (G ? "production" : void 0) !== "production" && Object.freeze(g);
68
+ const h = e.get(u);
69
+ if (e.set(u, g), s.has(u) || s.set(u, h), h && he(h)) {
70
70
  const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
71
- Nt(v.v, b);
71
+ Nt(h.v, b);
72
72
  }
73
- }, p = (u, g, v) => {
73
+ }, p = (u, g, h) => {
74
74
  const b = /* @__PURE__ */ new Map();
75
75
  let y = !1;
76
- v.forEach((h, j) => {
77
- !h && j === u && (h = g), h ? (b.set(j, h), g.d.get(j) !== h && (y = !0)) : (V ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
76
+ h.forEach((x, k) => {
77
+ !x && k === u && (x = g), x ? (b.set(k, x), g.d.get(k) !== x && (y = !0)) : (G ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
78
78
  }), (y || g.d.size !== b.size) && (g.d = b);
79
- }, l = (u, g, v) => {
79
+ }, l = (u, g, h) => {
80
80
  const b = r(u), y = {
81
81
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
82
82
  v: g
83
83
  };
84
- if (v && p(u, y, v), b && we(b, y) && b.d === y.d)
84
+ if (h && p(u, y, h), b && we(b, y) && b.d === y.d)
85
85
  return b;
86
86
  if (b && he(b) && he(y) && to(b, y)) {
87
87
  if (b.d === y.d)
@@ -89,229 +89,229 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
89
89
  y.v = b.v;
90
90
  }
91
91
  return c(u, y), y;
92
- }, f = (u, g, v, b) => {
92
+ }, f = (u, g, h, b) => {
93
93
  if (eo(g)) {
94
94
  let y;
95
- const h = new Promise((j, E) => {
96
- let S = !1;
95
+ const x = new Promise((k, O) => {
96
+ let A = !1;
97
97
  g.then(
98
- (_) => {
99
- if (!S) {
100
- S = !0;
101
- const A = r(u), ee = l(
98
+ (R) => {
99
+ if (!A) {
100
+ A = !0;
101
+ const _ = r(u), te = l(
102
102
  u,
103
- h,
104
- v
103
+ x,
104
+ h
105
105
  );
106
- kt(h, _), j(_), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
106
+ kt(x, R), k(R), (_ == null ? void 0 : _.d) !== te.d && V(u, te, _ == null ? void 0 : _.d);
107
107
  }
108
108
  },
109
- (_) => {
110
- if (!S) {
111
- S = !0;
112
- const A = r(u), ee = l(
109
+ (R) => {
110
+ if (!A) {
111
+ A = !0;
112
+ const _ = r(u), te = l(
113
113
  u,
114
- h,
115
- v
114
+ x,
115
+ h
116
116
  );
117
- jt(h, _), E(_), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
117
+ jt(x, R), O(R), (_ == null ? void 0 : _.d) !== te.d && V(u, te, _ == null ? void 0 : _.d);
118
118
  }
119
119
  }
120
- ), y = (_) => {
121
- S || (S = !0, _.then(
122
- (A) => kt(h, A),
123
- (A) => jt(h, A)
124
- ), j(_));
120
+ ), y = (R) => {
121
+ A || (A = !0, R.then(
122
+ (_) => kt(x, _),
123
+ (_) => jt(x, _)
124
+ ), k(R));
125
125
  };
126
126
  });
127
- return h.orig = g, h.status = "pending", Zs(h, (j) => {
128
- j && y(j), b == null || b();
129
- }), l(u, h, v);
127
+ return x.orig = g, x.status = "pending", Zs(x, (k) => {
128
+ k && y(k), b == null || b();
129
+ }), l(u, x, h);
130
130
  }
131
- return l(u, g, v);
132
- }, x = (u, g, v) => {
131
+ return l(u, g, h);
132
+ }, N = (u, g, h) => {
133
133
  const b = r(u), y = {
134
134
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
135
135
  e: g
136
136
  };
137
- return v && p(u, y, v), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
138
- }, N = (u) => {
137
+ return h && p(u, y, h), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
138
+ }, j = (u) => {
139
139
  const g = r(u);
140
- if (g && (g.d.forEach((S, _) => {
141
- _ !== u && !t.has(_) && N(_);
142
- }), Array.from(g.d).every(([S, _]) => {
143
- const A = r(S);
144
- return S === u || A === _ || // TODO This is a hack, we should find a better solution.
145
- A && !he(A) && we(A, _);
140
+ if (g && (g.d.forEach((A, R) => {
141
+ R !== u && !t.has(R) && j(R);
142
+ }), Array.from(g.d).every(([A, R]) => {
143
+ const _ = r(A);
144
+ return A === u || _ === R || // TODO This is a hack, we should find a better solution.
145
+ _ && !he(_) && we(_, R);
146
146
  })))
147
147
  return g;
148
- const v = /* @__PURE__ */ new Map();
148
+ const h = /* @__PURE__ */ new Map();
149
149
  let b = !0;
150
- const y = (S) => {
151
- if (S === u) {
152
- const A = r(S);
153
- if (A)
154
- return v.set(S, A), Te(A);
155
- if ($e(S))
156
- return v.set(S, void 0), S.init;
150
+ const y = (A) => {
151
+ if (A === u) {
152
+ const _ = r(A);
153
+ if (_)
154
+ return h.set(A, _), Te(_);
155
+ if ($e(A))
156
+ return h.set(A, void 0), A.init;
157
157
  throw new Error("no atom init");
158
158
  }
159
- const _ = N(S);
160
- return v.set(S, _), Te(_);
159
+ const R = j(A);
160
+ return h.set(A, R), Te(R);
161
161
  };
162
- let h, j;
163
- const E = {
162
+ let x, k;
163
+ const O = {
164
164
  get signal() {
165
- return h || (h = new AbortController()), h.signal;
165
+ return x || (x = new AbortController()), x.signal;
166
166
  },
167
167
  get setSelf() {
168
- return (V ? "production" : void 0) !== "production" && !Fe(u) && console.warn("setSelf function cannot be used with read-only atom"), !j && Fe(u) && (j = (...S) => {
169
- if ((V ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
170
- return $(u, ...S);
171
- }), j;
168
+ return (G ? "production" : void 0) !== "production" && !Fe(u) && console.warn("setSelf function cannot be used with read-only atom"), !k && Fe(u) && (k = (...A) => {
169
+ if ((G ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
170
+ return $(u, ...A);
171
+ }), k;
172
172
  }
173
173
  };
174
174
  try {
175
- const S = u.read(y, E);
175
+ const A = u.read(y, O);
176
176
  return f(
177
177
  u,
178
- S,
179
- v,
180
- () => h == null ? void 0 : h.abort()
178
+ A,
179
+ h,
180
+ () => x == null ? void 0 : x.abort()
181
181
  );
182
- } catch (S) {
183
- return x(u, S, v);
182
+ } catch (A) {
183
+ return N(u, A, h);
184
184
  } finally {
185
185
  b = !1;
186
186
  }
187
- }, k = (u) => Te(N(u)), I = (u) => {
187
+ }, v = (u) => Te(j(u)), S = (u) => {
188
188
  let g = t.get(u);
189
- return g || (g = Z(u)), g;
190
- }, O = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), W = (u) => {
189
+ return g || (g = K(u)), g;
190
+ }, L = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), W = (u) => {
191
191
  const g = t.get(u);
192
- g && O(u, g) && le(u);
193
- }, G = (u) => {
194
- const g = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new WeakMap(), b = (h) => {
195
- const j = t.get(h);
196
- j == null || j.t.forEach((E) => {
197
- E !== h && (g.set(
198
- E,
199
- (g.get(E) || /* @__PURE__ */ new Set()).add(h)
200
- ), v.set(E, (v.get(E) || 0) + 1), b(E));
192
+ g && L(u, g) && J(u);
193
+ }, C = (u) => {
194
+ const g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), b = (x) => {
195
+ const k = t.get(x);
196
+ k == null || k.t.forEach((O) => {
197
+ O !== x && (g.set(
198
+ O,
199
+ (g.get(O) || /* @__PURE__ */ new Set()).add(x)
200
+ ), h.set(O, (h.get(O) || 0) + 1), b(O));
201
201
  });
202
202
  };
203
203
  b(u);
204
- const y = (h) => {
205
- const j = t.get(h);
206
- j == null || j.t.forEach((E) => {
207
- var S;
208
- if (E !== h) {
209
- let _ = v.get(E);
210
- if (_ && v.set(E, --_), !_) {
211
- let A = !!((S = g.get(E)) != null && S.size);
212
- if (A) {
213
- const ee = r(E), Ps = N(E);
214
- A = !ee || !we(ee, Ps);
204
+ const y = (x) => {
205
+ const k = t.get(x);
206
+ k == null || k.t.forEach((O) => {
207
+ var A;
208
+ if (O !== x) {
209
+ let R = h.get(O);
210
+ if (R && h.set(O, --R), !R) {
211
+ let _ = !!((A = g.get(O)) != null && A.size);
212
+ if (_) {
213
+ const te = r(O), Ps = j(O);
214
+ _ = !te || !we(te, Ps);
215
215
  }
216
- A || g.forEach((ee) => ee.delete(E));
216
+ _ || g.forEach((te) => te.delete(O));
217
217
  }
218
- y(E);
218
+ y(O);
219
219
  }
220
220
  });
221
221
  };
222
222
  y(u);
223
- }, H = (u, ...g) => {
224
- let v = !0;
225
- const b = (j) => Te(N(j)), y = (j, ...E) => {
226
- let S;
227
- if (j === u) {
228
- if (!$e(j))
223
+ }, z = (u, ...g) => {
224
+ let h = !0;
225
+ const b = (k) => Te(j(k)), y = (k, ...O) => {
226
+ let A;
227
+ if (k === u) {
228
+ if (!$e(k))
229
229
  throw new Error("atom not writable");
230
- const _ = r(j), A = f(j, E[0]);
231
- (!_ || !we(_, A)) && G(j);
230
+ const R = r(k), _ = f(k, O[0]);
231
+ (!R || !we(R, _)) && C(k);
232
232
  } else
233
- S = H(j, ...E);
234
- if (!v) {
235
- const _ = re();
236
- (V ? "production" : void 0) !== "production" && n.forEach(
237
- (A) => A({ type: "async-write", flushed: _ })
233
+ A = z(k, ...O);
234
+ if (!h) {
235
+ const R = ie();
236
+ (G ? "production" : void 0) !== "production" && n.forEach(
237
+ (_) => _({ type: "async-write", flushed: R })
238
238
  );
239
239
  }
240
- return S;
241
- }, h = u.write(b, y, ...g);
242
- return v = !1, h;
240
+ return A;
241
+ }, x = u.write(b, y, ...g);
242
+ return h = !1, x;
243
243
  }, $ = (u, ...g) => {
244
- const v = H(u, ...g), b = re();
245
- return (V ? "production" : void 0) !== "production" && n.forEach(
244
+ const h = z(u, ...g), b = ie();
245
+ return (G ? "production" : void 0) !== "production" && n.forEach(
246
246
  (y) => y({ type: "write", flushed: b })
247
- ), v;
248
- }, Z = (u, g) => {
249
- const v = {
247
+ ), h;
248
+ }, K = (u, g) => {
249
+ const h = {
250
250
  t: new Set(g && [g]),
251
251
  l: /* @__PURE__ */ new Set()
252
252
  };
253
- if (t.set(u, v), (V ? "production" : void 0) !== "production" && i.add(u), N(u).d.forEach((b, y) => {
254
- const h = t.get(y);
255
- h ? h.t.add(u) : y !== u && Z(y, u);
256
- }), N(u), Fe(u) && u.onMount) {
253
+ if (t.set(u, h), (G ? "production" : void 0) !== "production" && i.add(u), j(u).d.forEach((b, y) => {
254
+ const x = t.get(y);
255
+ x ? x.t.add(u) : y !== u && K(y, u);
256
+ }), j(u), Fe(u) && u.onMount) {
257
257
  const b = u.onMount((...y) => $(u, ...y));
258
- b && (v.u = b);
258
+ b && (h.u = b);
259
259
  }
260
- return v;
261
- }, le = (u) => {
260
+ return h;
261
+ }, J = (u) => {
262
262
  var g;
263
- const v = (g = t.get(u)) == null ? void 0 : g.u;
264
- v && v(), t.delete(u), (V ? "production" : void 0) !== "production" && i.delete(u);
263
+ const h = (g = t.get(u)) == null ? void 0 : g.u;
264
+ h && h(), t.delete(u), (G ? "production" : void 0) !== "production" && i.delete(u);
265
265
  const b = r(u);
266
- b ? (he(b) && Nt(b.v), b.d.forEach((y, h) => {
267
- if (h !== u) {
268
- const j = t.get(h);
269
- j && (j.t.delete(u), O(h, j) && le(h));
266
+ b ? (he(b) && Nt(b.v), b.d.forEach((y, x) => {
267
+ if (x !== u) {
268
+ const k = t.get(x);
269
+ k && (k.t.delete(u), L(x, k) && J(x));
270
270
  }
271
- })) : (V ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
272
- }, J = (u, g, v) => {
271
+ })) : (G ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
272
+ }, V = (u, g, h) => {
273
273
  const b = new Set(g.d.keys());
274
- v == null || v.forEach((y, h) => {
275
- if (b.has(h)) {
276
- b.delete(h);
274
+ h == null || h.forEach((y, x) => {
275
+ if (b.has(x)) {
276
+ b.delete(x);
277
277
  return;
278
278
  }
279
- const j = t.get(h);
280
- j && (j.t.delete(u), O(h, j) && le(h));
279
+ const k = t.get(x);
280
+ k && (k.t.delete(u), L(x, k) && J(x));
281
281
  }), b.forEach((y) => {
282
- const h = t.get(y);
283
- h ? h.t.add(u) : t.has(u) && Z(y, u);
282
+ const x = t.get(y);
283
+ x ? x.t.add(u) : t.has(u) && K(y, u);
284
284
  });
285
- }, re = () => {
285
+ }, ie = () => {
286
286
  let u;
287
- for ((V ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
287
+ for ((G ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
288
288
  const g = Array.from(s);
289
- s.clear(), g.forEach(([v, b]) => {
290
- const y = r(v);
289
+ s.clear(), g.forEach(([h, b]) => {
290
+ const y = r(h);
291
291
  if (y) {
292
- y.d !== (b == null ? void 0 : b.d) && J(v, y, b == null ? void 0 : b.d);
293
- const h = t.get(v);
294
- h && !// TODO This seems pretty hacky. Hope to fix it.
292
+ y.d !== (b == null ? void 0 : b.d) && V(h, y, b == null ? void 0 : b.d);
293
+ const x = t.get(h);
294
+ x && !// TODO This seems pretty hacky. Hope to fix it.
295
295
  // Maybe we could `mountDependencies` in `setAtomState`?
296
- (b && !he(b) && (we(b, y) || St(b, y))) && (h.l.forEach((j) => j()), (V ? "production" : void 0) !== "production" && u.add(v));
296
+ (b && !he(b) && (we(b, y) || St(b, y))) && (x.l.forEach((k) => k()), (G ? "production" : void 0) !== "production" && u.add(h));
297
297
  } else
298
- (V ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
298
+ (G ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
299
299
  });
300
300
  }
301
- if ((V ? "production" : void 0) !== "production")
301
+ if ((G ? "production" : void 0) !== "production")
302
302
  return o.forEach((g) => g("state")), u;
303
- }, ie = (u, g) => {
304
- const v = I(u), b = re(), y = v.l;
305
- return y.add(g), (V ? "production" : void 0) !== "production" && (o.forEach((h) => h("sub")), n.forEach(
306
- (h) => h({ type: "sub", flushed: b })
303
+ }, le = (u, g) => {
304
+ const h = S(u), b = ie(), y = h.l;
305
+ return y.add(g), (G ? "production" : void 0) !== "production" && (o.forEach((x) => x("sub")), n.forEach(
306
+ (x) => x({ type: "sub", flushed: b })
307
307
  )), () => {
308
- y.delete(g), W(u), (V ? "production" : void 0) !== "production" && (o.forEach((h) => h("unsub")), n.forEach((h) => h({ type: "unsub" })));
308
+ y.delete(g), W(u), (G ? "production" : void 0) !== "production" && (o.forEach((x) => x("unsub")), n.forEach((x) => x({ type: "unsub" })));
309
309
  };
310
310
  };
311
- return (V ? "production" : void 0) !== "production" ? {
312
- get: k,
311
+ return (G ? "production" : void 0) !== "production" ? {
312
+ get: v,
313
313
  set: $,
314
- sub: ie,
314
+ sub: le,
315
315
  // store dev methods (these are tentative and subject to change without notice)
316
316
  dev_subscribe_store: (u, g) => g !== 2 ? (console.warn(
317
317
  "The current StoreListener revision is 2. The older ones are deprecated."
@@ -324,17 +324,17 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
324
324
  dev_get_atom_state: (u) => e.get(u),
325
325
  dev_get_mounted: (u) => t.get(u),
326
326
  dev_restore_atoms: (u) => {
327
- for (const [v, b] of u)
328
- $e(v) && (f(v, b), G(v));
329
- const g = re();
327
+ for (const [h, b] of u)
328
+ $e(h) && (f(h, b), C(h));
329
+ const g = ie();
330
330
  n.forEach(
331
- (v) => v({ type: "restore", flushed: g })
331
+ (h) => h({ type: "restore", flushed: g })
332
332
  );
333
333
  }
334
334
  } : {
335
- get: k,
335
+ get: v,
336
336
  set: $,
337
- sub: ie
337
+ sub: le
338
338
  };
339
339
  };
340
340
  let Ue;
@@ -383,7 +383,7 @@ function lo(e, t) {
383
383
  }
384
384
  function co(e, t) {
385
385
  const s = Wt(t);
386
- return L(
386
+ return F(
387
387
  (...n) => {
388
388
  if ((no ? "production" : void 0) !== "production" && !("write" in e))
389
389
  throw new Error("not writable atom");
@@ -392,7 +392,7 @@ function co(e, t) {
392
392
  [s, e]
393
393
  );
394
394
  }
395
- function Dr(e, t) {
395
+ function Er(e, t) {
396
396
  return [
397
397
  lo(e, t),
398
398
  // We do wrong type assertion here, which results in throwing an error.
@@ -412,43 +412,43 @@ function go(e, t) {
412
412
  let p = s.get(r);
413
413
  if (p)
414
414
  return p;
415
- const l = c && s.get(c), f = [], x = [];
416
- return r.forEach((N, k) => {
417
- const I = t ? t(N) : k;
418
- x[k] = I;
419
- const O = l && l.atomList[l.keyList.indexOf(I)];
420
- if (O) {
421
- f[k] = O;
415
+ const l = c && s.get(c), f = [], N = [];
416
+ return r.forEach((j, v) => {
417
+ const S = t ? t(j) : v;
418
+ N[v] = S;
419
+ const L = l && l.atomList[l.keyList.indexOf(S)];
420
+ if (L) {
421
+ f[v] = L;
422
422
  return;
423
423
  }
424
- const W = (H) => {
425
- const $ = H(n), Z = H(e), J = o(Z, $ == null ? void 0 : $.arr).keyList.indexOf(I);
426
- if (J < 0 || J >= Z.length) {
427
- const re = r[o(r).keyList.indexOf(I)];
428
- if (re)
429
- return re;
424
+ const W = (z) => {
425
+ const $ = z(n), K = z(e), V = o(K, $ == null ? void 0 : $.arr).keyList.indexOf(S);
426
+ if (V < 0 || V >= K.length) {
427
+ const ie = r[o(r).keyList.indexOf(S)];
428
+ if (ie)
429
+ return ie;
430
430
  throw new Error("splitAtom: index out of bounds for read");
431
431
  }
432
- return Z[J];
433
- }, G = (H, $, Z) => {
434
- const le = H(n), J = H(e), ie = o(J, le == null ? void 0 : le.arr).keyList.indexOf(I);
435
- if (ie < 0 || ie >= J.length)
432
+ return K[V];
433
+ }, C = (z, $, K) => {
434
+ const J = z(n), V = z(e), le = o(V, J == null ? void 0 : J.arr).keyList.indexOf(S);
435
+ if (le < 0 || le >= V.length)
436
436
  throw new Error("splitAtom: index out of bounds for write");
437
- const u = po(Z) ? Z(J[ie]) : Z;
437
+ const u = po(K) ? K(V[le]) : K;
438
438
  $(e, [
439
- ...J.slice(0, ie),
439
+ ...V.slice(0, le),
440
440
  u,
441
- ...J.slice(ie + 1)
441
+ ...V.slice(le + 1)
442
442
  ]);
443
443
  };
444
- f[k] = Ct(e) ? oe(W, G) : oe(W);
445
- }), l && l.keyList.length === x.length && l.keyList.every((N, k) => N === x[k]) ? p = l : p = { arr: r, atomList: f, keyList: x }, s.set(r, p), p;
446
- }, n = oe((r) => {
444
+ f[v] = Ct(e) ? ne(W, C) : ne(W);
445
+ }), l && l.keyList.length === N.length && l.keyList.every((j, v) => j === N[v]) ? p = l : p = { arr: r, atomList: f, keyList: N }, s.set(r, p), p;
446
+ }, n = ne((r) => {
447
447
  const c = r(n), p = r(e);
448
448
  return o(p, c == null ? void 0 : c.arr);
449
449
  });
450
450
  (at ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
451
- const i = Ct(e) ? oe(
451
+ const i = Ct(e) ? ne(
452
452
  (r) => r(n).atomList,
453
453
  (r, c, p) => {
454
454
  switch (p.type) {
@@ -478,34 +478,34 @@ function go(e, t) {
478
478
  case "move": {
479
479
  const l = r(i).indexOf(p.atom), f = p.before ? r(i).indexOf(p.before) : r(i).length;
480
480
  if (l >= 0 && f >= 0) {
481
- const x = r(e);
481
+ const N = r(e);
482
482
  l < f ? c(e, [
483
- ...x.slice(0, l),
484
- ...x.slice(l + 1, f),
485
- x[l],
486
- ...x.slice(f)
483
+ ...N.slice(0, l),
484
+ ...N.slice(l + 1, f),
485
+ N[l],
486
+ ...N.slice(f)
487
487
  ]) : c(e, [
488
- ...x.slice(0, f),
489
- x[l],
490
- ...x.slice(f, l),
491
- ...x.slice(l + 1)
488
+ ...N.slice(0, f),
489
+ N[l],
490
+ ...N.slice(f, l),
491
+ ...N.slice(l + 1)
492
492
  ]);
493
493
  }
494
494
  break;
495
495
  }
496
496
  }
497
497
  }
498
- ) : oe((r) => r(n).atomList);
498
+ ) : ne((r) => r(n).atomList);
499
499
  return i;
500
500
  },
501
501
  e,
502
502
  t || fo
503
503
  );
504
504
  }
505
- function Er(e) {
506
- const t = Symbol(), s = oe(t);
505
+ function Or(e) {
506
+ const t = Symbol(), s = ne(t);
507
507
  (at ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
508
- const o = oe(
508
+ const o = ne(
509
509
  (n, i) => {
510
510
  const r = n(s);
511
511
  return r !== t ? r : e(n, i);
@@ -574,18 +574,18 @@ const ho = xo(
574
574
  () => typeof window < "u" ? window.localStorage : void 0
575
575
  );
576
576
  function Be(e, t, s = ho, o) {
577
- const n = o == null ? void 0 : o.unstable_getOnInit, i = oe(
577
+ const n = o == null ? void 0 : o.unstable_getOnInit, i = ne(
578
578
  n ? s.getItem(e, t) : t
579
579
  );
580
580
  return (at ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
581
581
  n || c(s.getItem(e, t));
582
582
  let p;
583
583
  return s.subscribe && (p = s.subscribe(e, c, t)), p;
584
- }, oe(
584
+ }, ne(
585
585
  (c) => c(i),
586
586
  (c, p, l) => {
587
587
  const f = typeof l == "function" ? l(c(i)) : l;
588
- return f === Gt ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((x) => (p(i, x), s.setItem(e, x))) : (p(i, f), s.setItem(e, f));
588
+ return f === Gt ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((N) => (p(i, N), s.setItem(e, N))) : (p(i, f), s.setItem(e, f));
589
589
  }
590
590
  );
591
591
  }
@@ -593,7 +593,7 @@ const Ht = w(null);
593
593
  Ht.debugLabel = "chaiBuilderPropsAtom";
594
594
  const vo = w({});
595
595
  vo.debugLabel = "chaiExternalDataAtom";
596
- const Or = () => !1, yo = (e) => {
596
+ const Lr = () => !1, yo = (e) => {
597
597
  const t = e.replace(me, "").split(",");
598
598
  return { baseClasses: t[0], classes: t[1] };
599
599
  }, Ye = (e, t) => {
@@ -604,34 +604,34 @@ const Or = () => !1, yo = (e) => {
604
604
  }, wo = (e, t) => {
605
605
  const s = Oe(t);
606
606
  return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
607
- }, Lr = (e) => {
607
+ }, zr = (e) => {
608
608
  const t = Oe(e);
609
609
  return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
610
- }, zr = (e) => {
610
+ }, Vr = (e) => {
611
611
  const t = Oe(e);
612
612
  return t && pe(t, "canDelete") ? t.canDelete() : !0;
613
- }, Vr = (e, { dragSource: t, dropTarget: s }) => {
614
- const o = F(t, "data._type", ""), n = F(s, "data._type", "");
613
+ }, $r = (e, { dragSource: t, dropTarget: s }) => {
614
+ const o = H(t, "data._type", ""), n = H(s, "data._type", "");
615
615
  return Ye(n, o);
616
616
  };
617
617
  function qt(e, t, s) {
618
- const o = M(e, (i) => i._parent === t), n = [];
618
+ const o = D(e, (i) => i._parent === t), n = [];
619
619
  for (let i = 0; i < o.length; i++) {
620
620
  const r = Jt(o[i]);
621
621
  if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
622
- o[i][c] = `slot:${ce()}`;
623
- }), M(e, { _parent: o[i]._id }).length > 0) {
624
- const c = ce();
625
- n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(qt(e, o[i]._id, c)));
622
+ o[i][c] = `slot:${de()}`;
623
+ }), D(e, { _parent: o[i]._id }).length > 0) {
624
+ const c = de();
625
+ n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ae(qt(e, o[i]._id, c)));
626
626
  } else
627
627
  n.push({
628
628
  ...o[i],
629
629
  oldId: o[i]._id,
630
- _id: ce(),
630
+ _id: de(),
631
631
  _parent: s
632
632
  });
633
633
  }
634
- return ne(n);
634
+ return ae(n);
635
635
  }
636
636
  function Kt(e) {
637
637
  const t = {};
@@ -653,28 +653,28 @@ const Jt = (e) => {
653
653
  Et(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
654
654
  }), t;
655
655
  }, No = (e, t, s = null) => {
656
- let o = te(e, { _id: t });
657
- o = { ...o, oldId: o._id, _id: ce() }, s && (o = { ...o, _parent: s });
656
+ let o = se(e, { _id: t });
657
+ o = { ...o, oldId: o._id, _id: de() }, s && (o = { ...o, _parent: s });
658
658
  const n = [o];
659
- M(e, { _parent: t }).length > 0 && n.push(ne(qt(e, t, o._id)));
660
- const i = ne(n);
661
- return R(i, (r) => {
659
+ D(e, { _parent: t }).length > 0 && n.push(ae(qt(e, t, o._id)));
660
+ const i = ae(n);
661
+ return P(i, (r) => {
662
662
  const c = r, p = Jt(c);
663
663
  return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
664
- const f = te(i, { oldId: p[l].replace("slot:", "") });
664
+ const f = se(i, { oldId: p[l].replace("slot:", "") });
665
665
  c[l] = `slot:${f._id}`;
666
666
  }), tt(c, ["global", "oldId"]);
667
667
  });
668
668
  };
669
- const ae = w([]);
670
- ae.debugLabel = "presentBlocksAtom";
669
+ const re = w([]);
670
+ re.debugLabel = "presentBlocksAtom";
671
671
  const ko = w((e) => {
672
- const t = e(ae);
672
+ const t = e(re);
673
673
  return Kt([...t]);
674
674
  });
675
675
  ko.debugLabel = "treeDSBlocks";
676
- ae.debugLabel = "presentBlocksAtom";
677
- const rt = go(ae);
676
+ re.debugLabel = "presentBlocksAtom";
677
+ const rt = go(re);
678
678
  rt.debugLabel = "pageBlocksAtomsAtom";
679
679
  const jo = w("");
680
680
  jo.debugLabel = "builderActivePageAtom";
@@ -684,15 +684,15 @@ const Yt = w([]);
684
684
  Yt.debugLabel = "buildingBlocksAtom";
685
685
  const Ao = w((e) => {
686
686
  const t = e(Yt);
687
- return M(t, (s) => pe(s, "blockId"));
687
+ return D(t, (s) => pe(s, "blockId"));
688
688
  });
689
689
  Ao.debugLabel = "globalBlocksAtom";
690
690
  const it = w([]);
691
691
  it.debugLabel = "selectedBlockIdsAtom";
692
692
  const lt = w((e) => {
693
- const t = e(ae), s = e(it);
694
- return R(
695
- M(t, ({ _id: o }) => q(s, o)),
693
+ const t = e(re), s = e(it);
694
+ return P(
695
+ D(t, ({ _id: o }) => Y(s, o)),
696
696
  (o) => ({ ...o })
697
697
  );
698
698
  });
@@ -701,13 +701,13 @@ const ct = w((e) => {
701
701
  const t = e(lt);
702
702
  return t.length === 0 ? null : t.length === 1 ? t[0] : {
703
703
  type: "Multiple",
704
- id: R(t, "id")
704
+ id: P(t, "id")
705
705
  };
706
706
  });
707
707
  ct.debugLabel = "selectedBlockAtom";
708
- const Co = (e) => F(e, "parent", null), _o = w((e) => {
709
- const t = e(lt), s = R(t, Co);
710
- return M(e(ae), (o) => q(s, o._id));
708
+ const Co = (e) => H(e, "parent", null), _o = w((e) => {
709
+ const t = e(lt), s = P(t, Co);
710
+ return D(e(re), (o) => Y(s, o._id));
711
711
  });
712
712
  _o.debugLabel = "selectedBlocksParentsAtom";
713
713
  const Qt = w(() => !1);
@@ -718,14 +718,14 @@ const dt = w("");
718
718
  dt.debugLabel = "styleStateAtom";
719
719
  const Zt = Be("styleBreakpoint", "xs");
720
720
  Zt.debugLabel = "styleBreakpointAtom";
721
- const $r = () => ({
722
- flexChild: X(Qt),
723
- gridChild: X(Xt)
724
- }), Fr = () => X(ct);
721
+ const Fr = () => ({
722
+ flexChild: ee(Qt),
723
+ gridChild: ee(Xt)
724
+ }), Ur = () => ee(ct);
725
725
  const Ve = () => {
726
- const [e, t] = D(it), s = L(
726
+ const [e, t] = E(it), s = F(
727
727
  (o) => {
728
- t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
728
+ t((n) => Y(n, o) ? Ot(n, o) : [...n, o]);
729
729
  },
730
730
  [t]
731
731
  );
@@ -738,7 +738,7 @@ const Ve = () => {
738
738
  const { properties: t } = e, s = {};
739
739
  return Object.keys(t).forEach((i) => {
740
740
  const r = t[i];
741
- if (q(["slot", "styles"], r.type))
741
+ if (Y(["slot", "styles"], r.type))
742
742
  return;
743
743
  const c = i;
744
744
  s[c] = _t(r);
@@ -749,7 +749,7 @@ const Ve = () => {
749
749
  };
750
750
  return Object.keys(o).forEach((i) => {
751
751
  const r = o[i];
752
- if (q(["slot", "styles"], r.type))
752
+ if (Y(["slot", "styles"], r.type))
753
753
  return;
754
754
  const c = i;
755
755
  n.items[c] = _t(r);
@@ -769,7 +769,7 @@ const Ve = () => {
769
769
  };
770
770
  return Object.keys(t).forEach((c) => {
771
771
  const p = t[c];
772
- if (q(["slot", "styles"], p.type))
772
+ if (Y(["slot", "styles"], p.type))
773
773
  return;
774
774
  const l = c;
775
775
  o.properties[l] = Bt(p);
@@ -785,10 +785,10 @@ const Ve = () => {
785
785
  };
786
786
  return Object.keys(n).forEach((c) => {
787
787
  const p = n[c];
788
- if (q(["slot", "styles"], p.type))
788
+ if (Y(["slot", "styles"], p.type))
789
789
  return;
790
790
  const l = c;
791
- r.items.properties[l] = Bt(p), je(r.items, "title", F(p, "itemTitle", `${i} item`));
791
+ r.items.properties[l] = Bt(p), je(r.items, "title", H(p, "itemTitle", `${i} item`));
792
792
  }), r;
793
793
  default:
794
794
  return {};
@@ -804,10 +804,10 @@ const Ve = () => {
804
804
  if (Ee(e.default))
805
805
  return [];
806
806
  const { itemProperties: t } = e;
807
- return R(e.default, (s) => {
807
+ return P(e.default, (s) => {
808
808
  const o = { ...s };
809
809
  return Lt(s, (n, i) => {
810
- pe(t, i) && F(t[i], "i18n", !1) && (o[i] = Vt);
810
+ pe(t, i) && H(t[i], "i18n", !1) && (o[i] = Vt);
811
811
  }), o;
812
812
  });
813
813
  }, Ro = (e) => {
@@ -815,10 +815,10 @@ const Ve = () => {
815
815
  case "styles":
816
816
  return e.default;
817
817
  case "slot":
818
- return `${qe}${ce()}`;
818
+ return `${qe}${de()}`;
819
819
  case "singular":
820
820
  const { i18n: t, schema: s } = e;
821
- return t ? Vt : F(s, "default", "");
821
+ return t ? Vt : H(s, "default", "");
822
822
  case "model":
823
823
  return es(e.properties);
824
824
  case "list":
@@ -827,7 +827,7 @@ const Ve = () => {
827
827
  return "";
828
828
  }
829
829
  };
830
- var ut = { exports: {} }, Ur = ut.exports;
830
+ var ut = { exports: {} }, Wr = ut.exports;
831
831
  (function(e) {
832
832
  (function() {
833
833
  "use strict";
@@ -934,20 +934,20 @@ var ut = { exports: {} }, Ur = ut.exports;
934
934
  })(ut);
935
935
  var To = ut.exports;
936
936
  const Po = /* @__PURE__ */ Fs(To), Io = w(Ke), Mo = w(null), ts = () => {
937
- const [e, t] = D(Io);
937
+ const [e, t] = E(Io);
938
938
  return [
939
939
  Ls(e) ? { ...Ke, ...e } : Ke,
940
940
  t
941
941
  ];
942
- }, Wr = () => D(Mo), Do = w(null), Eo = () => ({ currentPage: X(Do) });
942
+ }, Gr = () => E(Mo), Do = w(null), Eo = () => ({ currentPage: ee(Do) });
943
943
  function Oo(e) {
944
944
  return Kt(e);
945
945
  }
946
- const mt = (e, t) => ne(
946
+ const mt = (e, t) => ae(
947
947
  e.map((s) => {
948
948
  if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
949
949
  const o = [...s.children];
950
- return delete s.children, ne([s, ...mt(o, s._id)]);
950
+ return delete s.children, ae([s, ...mt(o, s._id)]);
951
951
  }
952
952
  return s;
953
953
  })
@@ -958,32 +958,32 @@ function ft(e, t = !1) {
958
958
  o.global && !t ? e[s] = {
959
959
  type: "GlobalBlock",
960
960
  blockId: o.blockId,
961
- _parent: F(o, "parent", null),
961
+ _parent: H(o, "parent", null),
962
962
  _id: o._id
963
963
  } : o.children && o.children.length && ft(o.children);
964
964
  }
965
965
  }
966
966
  function ss(e) {
967
- let t = [], s = M(e, { type: "GlobalBlock" });
968
- return s.length > 0 && (s = R(s, os), ue(s, (o) => {
967
+ let t = [], s = D(e, { type: "GlobalBlock" });
968
+ return s.length > 0 && (s = P(s, os), ce(s, (o) => {
969
969
  t = [...t, ...Lo(o)];
970
970
  })), t;
971
971
  }
972
972
  function Lo(e) {
973
973
  let t = [];
974
- const s = F(Q(e), "parent", null);
975
- je(Q(e), "parent", null);
974
+ const s = H(Z(e), "parent", null);
975
+ je(Z(e), "parent", null);
976
976
  const o = [flatToNestedInstance.convert(ns(e))];
977
977
  ft(o, !0);
978
978
  let n = mt(o, e[0]._id);
979
979
  return n = je(n, "0.parent", s), t = [...t, n, ...ss(n)], t;
980
980
  }
981
981
  function os(e) {
982
- const t = te(Qe, { _id: e._id });
982
+ const t = se(Qe, { _id: e._id });
983
983
  if (!t)
984
984
  return [];
985
- const s = [t], o = M(Qe, { _parent: e._id });
986
- return o.length ? ne([...s, ...ne(R(o, os))]) : ne(s);
985
+ const s = [t], o = D(Qe, { _parent: e._id });
986
+ return o.length ? ae([...s, ...ae(P(o, os))]) : ae(s);
987
987
  }
988
988
  const ns = (e) => JSON.parse(JSON.stringify(e));
989
989
  let Qe = [];
@@ -992,12 +992,12 @@ function zo(e) {
992
992
  const t = Oo(ns(e));
993
993
  ft(t);
994
994
  const s = mt(t, null), o = ss(s), n = {};
995
- return ue(o, (i) => je(n, Q(i).blockId, i)), [s, n];
995
+ return ce(o, (i) => je(n, Z(i).blockId, i)), [s, n];
996
996
  }
997
997
  const Vo = () => {
998
998
  const [e] = ts(), { currentPage: t } = Eo(), [s] = ye();
999
- return L(() => {
1000
- const o = R(
999
+ return F(() => {
1000
+ const o = P(
1001
1001
  s,
1002
1002
  (i) => tt(i, ["expanded", "order", "title", "siblings", "tempClasses"])
1003
1003
  ), [n = []] = zo(o);
@@ -1007,14 +1007,14 @@ const Vo = () => {
1007
1007
  };
1008
1008
  }, [e, t, s]);
1009
1009
  }, Ne = (e, t = void 0) => {
1010
- const s = X(Ht);
1011
- return F(s, e, t);
1010
+ const s = ee(Ht);
1011
+ return H(s, e, t);
1012
1012
  }, as = w([]);
1013
1013
  as.debugLabel = "dataProvidersAtom";
1014
- const $o = () => D(as), pt = w("SAVED");
1014
+ const $o = () => E(as), pt = w("SAVED");
1015
1015
  pt.debugLabel = "pageSyncStateAtom";
1016
- const Gr = () => {
1017
- const [e, t] = D(pt), s = Ne("onSavePage", async (l) => {
1016
+ const Hr = () => {
1017
+ const [e, t] = E(pt), s = Ne("onSavePage", async (l) => {
1018
1018
  }), o = Ne("onSave", async (l) => {
1019
1019
  }), n = Ne("onSyncStatusChange", (l) => {
1020
1020
  }), i = Vo(), [r] = $o(), [c] = ts();
@@ -1030,29 +1030,29 @@ const Gr = () => {
1030
1030
  5e3
1031
1031
  // save only every 5 seconds
1032
1032
  ), syncState: e, setSyncState: t };
1033
- }, se = new Po();
1034
- se.setLimit(50);
1033
+ }, oe = new Po();
1034
+ oe.setLimit(50);
1035
1035
  const rs = () => {
1036
- const [, e] = D(pt);
1037
- return Ae(() => (se.setCallback(() => e("UNSAVED")), () => {
1038
- se.setCallback(zs);
1036
+ const [, e] = E(pt);
1037
+ return Ae(() => (oe.setCallback(() => e("UNSAVED")), () => {
1038
+ oe.setCallback(zs);
1039
1039
  }), []), {
1040
- add: se.add,
1041
- undo: se.undo,
1042
- redo: se.redo,
1043
- hasRedo: se.hasRedo,
1044
- hasUndo: se.hasUndo,
1045
- clear: se.clear
1040
+ add: oe.add,
1041
+ undo: oe.undo,
1042
+ redo: oe.redo,
1043
+ hasRedo: oe.hasRedo,
1044
+ hasUndo: oe.hasUndo,
1045
+ clear: oe.clear
1046
1046
  };
1047
1047
  }, gt = (e, t) => {
1048
- const s = [], o = M(e, (n) => q(t, n._id) || q(t, n._parent) ? (s.push(n._id), !1) : !0);
1048
+ const s = [], o = D(e, (n) => Y(t, n._id) || Y(t, n._parent) ? (s.push(n._id), !1) : !0);
1049
1049
  return Ee(s) ? o : gt(o, s);
1050
- }, Hr = () => {
1050
+ }, qr = () => {
1051
1051
  const [e] = ye(), [t, s] = Ve(), { setNewBlocks: o } = xe();
1052
- return L(
1052
+ return F(
1053
1053
  (n) => {
1054
1054
  var r;
1055
- const i = ((r = te(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
1055
+ const i = ((r = se(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
1056
1056
  o(gt(e, n)), setTimeout(() => s(i ? [i] : []), 200);
1057
1057
  },
1058
1058
  [e, s, t]
@@ -1073,7 +1073,28 @@ function Fo(e, t, s, o) {
1073
1073
  }
1074
1074
  return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
1075
1075
  }
1076
- const Uo = () => {
1076
+ const Uo = (e, t, s, o) => {
1077
+ function n(c, p) {
1078
+ const l = c.filter((N) => N._parent === p);
1079
+ let f = [...l];
1080
+ return l.forEach((N) => {
1081
+ f = f.concat(n(c, N._id));
1082
+ }), f;
1083
+ }
1084
+ const i = t.reduce((c, p) => {
1085
+ const l = e.find((f) => f._id === p);
1086
+ if (l) {
1087
+ const f = n(e, p);
1088
+ c.push(l, ...f);
1089
+ }
1090
+ return c;
1091
+ }, []);
1092
+ e = e.filter((c) => !i.includes(c)), i.forEach((c) => {
1093
+ t.includes(c._id) && (c._parent = s);
1094
+ });
1095
+ let r;
1096
+ return s === void 0 ? r = o : r = e.findIndex((p) => p._id === s) + 1 + o, e.splice(r, 0, ...i), e;
1097
+ }, Wo = () => {
1077
1098
  const [, e] = ye();
1078
1099
  return {
1079
1100
  setNewBlocks: (t) => {
@@ -1085,12 +1106,15 @@ const Uo = () => {
1085
1106
  removeBlocks: (t) => {
1086
1107
  e((s) => gt(s, t));
1087
1108
  },
1109
+ moveBlocks: (t, s, o) => {
1110
+ e((n) => Uo(n, t, s, o));
1111
+ },
1088
1112
  updateBlocksProps: (t) => {
1089
1113
  e((s) => {
1090
1114
  const o = t.map((n) => n._id);
1091
1115
  return s.map((n) => {
1092
1116
  if (o.includes(n._id)) {
1093
- const i = te(t, { _id: n._id });
1117
+ const i = se(t, { _id: n._id });
1094
1118
  return { ...n, ...tt(i, "_id") };
1095
1119
  }
1096
1120
  return n;
@@ -1098,55 +1122,68 @@ const Uo = () => {
1098
1122
  });
1099
1123
  }
1100
1124
  };
1101
- }, ye = () => D(ae), xe = () => {
1125
+ }, ye = () => E(re), xe = () => {
1102
1126
  const { add: e } = rs(), [t] = ye(), {
1103
1127
  setNewBlocks: s,
1104
1128
  addBlocks: o,
1105
1129
  removeBlocks: n,
1106
- updateBlocksProps: i
1107
- } = Uo();
1130
+ moveBlocks: i,
1131
+ updateBlocksProps: r
1132
+ } = Wo();
1108
1133
  return {
1109
- addBlocks: (x, N, k) => {
1110
- o(x, N, k), e({
1111
- undo: () => n(R(x, "_id")),
1112
- redo: () => o(x, N, k)
1134
+ moveBlocks: (v, S, L) => {
1135
+ const W = P(v, (C) => {
1136
+ const $ = t.find((V) => V._id === C)._parent || void 0, J = t.filter((V) => $ ? V._parent === $ : !V._parent).map((V) => V._id).indexOf(C);
1137
+ return { _id: C, oldParent: $, oldPosition: J };
1138
+ });
1139
+ i(v, S, L), e({
1140
+ undo: () => ce(W, ({ _id: C, oldParent: z, oldPosition: $ }) => {
1141
+ i([C], z, $);
1142
+ }),
1143
+ redo: () => i(v, S, L)
1144
+ });
1145
+ },
1146
+ addBlocks: (v, S, L) => {
1147
+ o(v, S, L), e({
1148
+ undo: () => n(P(v, "_id")),
1149
+ redo: () => o(v, S, L)
1113
1150
  });
1114
1151
  },
1115
- removeBlocks: (x) => {
1116
- var O;
1117
- const N = (O = Q(x)) == null ? void 0 : O._parent, I = t.filter((W) => N ? W._parent === N : !W._parent).indexOf(Q(x));
1118
- n(R(x, "_id")), e({
1119
- undo: () => o(x, N, I),
1120
- redo: () => n(R(x, "_id"))
1152
+ removeBlocks: (v) => {
1153
+ var C;
1154
+ const S = (C = Z(v)) == null ? void 0 : C._parent, W = t.filter((z) => S ? z._parent === S : !z._parent).indexOf(Z(v));
1155
+ n(P(v, "_id")), e({
1156
+ undo: () => o(v, S, W),
1157
+ redo: () => n(P(v, "_id"))
1121
1158
  });
1122
1159
  },
1123
- updateBlocks: (x, N, k) => {
1124
- let I = [];
1125
- if (k)
1126
- I = R(x, (O) => ({ _id: O, ...k }));
1160
+ updateBlocks: (v, S, L) => {
1161
+ let W = [];
1162
+ if (L)
1163
+ W = P(v, (C) => ({ _id: C, ...L }));
1127
1164
  else {
1128
- const O = Vs(N);
1129
- I = R(x, (W) => {
1130
- const G = t.find(($) => $._id === W), H = { _id: W };
1131
- return ue(O, ($) => H[$] = G[$]), H;
1165
+ const C = Vs(S);
1166
+ W = P(v, (z) => {
1167
+ const $ = t.find((J) => J._id === z), K = { _id: z };
1168
+ return ce(C, (J) => K[J] = $[J]), K;
1132
1169
  });
1133
1170
  }
1134
- i(R(x, (O) => ({ _id: O, ...N }))), e({
1135
- undo: () => i(I),
1136
- redo: () => i(R(x, (O) => ({ _id: O, ...N })))
1171
+ r(P(v, (C) => ({ _id: C, ...S }))), e({
1172
+ undo: () => r(W),
1173
+ redo: () => r(P(v, (C) => ({ _id: C, ...S })))
1137
1174
  });
1138
1175
  },
1139
- updateBlocksRuntime: (x, N) => {
1140
- i(R(x, (k) => ({ _id: k, ...N })));
1176
+ updateBlocksRuntime: (v, S) => {
1177
+ r(P(v, (L) => ({ _id: L, ...S })));
1141
1178
  },
1142
- setNewBlocks: (x) => {
1143
- s(x), e({
1179
+ setNewBlocks: (v) => {
1180
+ s(v), e({
1144
1181
  undo: () => s(t),
1145
- redo: () => s(x)
1182
+ redo: () => s(v)
1146
1183
  });
1147
1184
  }
1148
1185
  };
1149
- }, Wo = ge(
1186
+ }, Go = ge(
1150
1187
  "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",
1151
1188
  {
1152
1189
  variants: {
@@ -1165,9 +1202,9 @@ const Uo = () => {
1165
1202
  size: "default"
1166
1203
  }
1167
1204
  }
1168
- ), Go = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: d(Wo({ variant: t, size: s, className: e })), ...o }));
1169
- Go.displayName = $t.Root.displayName;
1170
- const Ho = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1205
+ ), Ho = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: d(Go({ variant: t, size: s, className: e })), ...o }));
1206
+ Ho.displayName = $t.Root.displayName;
1207
+ const qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1171
1208
  Je.Root,
1172
1209
  {
1173
1210
  className: d(
@@ -1186,7 +1223,7 @@ const Ho = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1186
1223
  )
1187
1224
  }
1188
1225
  ));
1189
- Ho.displayName = Je.Root.displayName;
1226
+ qo.displayName = Je.Root.displayName;
1190
1227
  const bt = ge(
1191
1228
  "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",
1192
1229
  {
@@ -1211,16 +1248,16 @@ const bt = ge(
1211
1248
  size: "default"
1212
1249
  }
1213
1250
  }
1214
- ), qo = m.forwardRef(
1251
+ ), Ko = m.forwardRef(
1215
1252
  ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
1216
1253
  const r = o ? Ws : "button";
1217
1254
  return /* @__PURE__ */ a.jsx(r, { className: d(bt({ variant: t, size: s, className: e })), ref: i, ...n });
1218
1255
  }
1219
1256
  );
1220
- qo.displayName = "Button";
1221
- const qr = fe.Root, Ko = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(fe.Item, { ref: s, className: d("border-b", e), ...t }));
1222
- Ko.displayName = "AccordionItem";
1223
- const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(fe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1257
+ Ko.displayName = "Button";
1258
+ const Kr = fe.Root, Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(fe.Item, { ref: s, className: d("border-b", e), ...t }));
1259
+ Jo.displayName = "AccordionItem";
1260
+ const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(fe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1224
1261
  fe.Trigger,
1225
1262
  {
1226
1263
  ref: o,
@@ -1235,8 +1272,8 @@ const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1235
1272
  ]
1236
1273
  }
1237
1274
  ) }));
1238
- Jo.displayName = fe.Trigger.displayName;
1239
- const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1275
+ Yo.displayName = fe.Trigger.displayName;
1276
+ const Qo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1240
1277
  fe.Content,
1241
1278
  {
1242
1279
  ref: o,
@@ -1248,8 +1285,8 @@ const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1248
1285
  children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1249
1286
  }
1250
1287
  ));
1251
- Yo.displayName = fe.Content.displayName;
1252
- const Qo = ge(
1288
+ Qo.displayName = fe.Content.displayName;
1289
+ const Xo = ge(
1253
1290
  "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",
1254
1291
  {
1255
1292
  variants: {
@@ -1262,17 +1299,17 @@ const Qo = ge(
1262
1299
  variant: "default"
1263
1300
  }
1264
1301
  }
1265
- ), Xo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Qo({ variant: t }), e), ...s }));
1266
- Xo.displayName = "Alert";
1267
- const Zo = m.forwardRef(
1302
+ ), Zo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Xo({ variant: t }), e), ...s }));
1303
+ Zo.displayName = "Alert";
1304
+ const en = m.forwardRef(
1268
1305
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
1269
1306
  );
1270
- Zo.displayName = "AlertTitle";
1271
- const en = m.forwardRef(
1307
+ en.displayName = "AlertTitle";
1308
+ const tn = m.forwardRef(
1272
1309
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
1273
1310
  );
1274
- en.displayName = "AlertDescription";
1275
- const tn = ge(
1311
+ tn.displayName = "AlertDescription";
1312
+ const sn = ge(
1276
1313
  "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",
1277
1314
  {
1278
1315
  variants: {
@@ -1287,10 +1324,10 @@ const tn = ge(
1287
1324
  variant: "default"
1288
1325
  }
1289
1326
  }
1290
- ), Kr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(tn({ variant: t }), e), ...s }), Jr = U.Root, Yr = U.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(U.Portal, { className: d(e), ...t });
1291
- is.displayName = U.Portal.displayName;
1327
+ ), Jr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(sn({ variant: t }), e), ...s }), Yr = q.Root, Qr = q.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(q.Portal, { className: d(e), ...t });
1328
+ is.displayName = q.Portal.displayName;
1292
1329
  const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1293
- U.Overlay,
1330
+ q.Overlay,
1294
1331
  {
1295
1332
  className: d(
1296
1333
  "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",
@@ -1300,11 +1337,11 @@ const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1300
1337
  ref: s
1301
1338
  }
1302
1339
  ));
1303
- ls.displayName = U.Overlay.displayName;
1304
- const sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
1340
+ ls.displayName = q.Overlay.displayName;
1341
+ const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
1305
1342
  /* @__PURE__ */ a.jsx(ls, {}),
1306
1343
  /* @__PURE__ */ a.jsx(
1307
- U.Content,
1344
+ q.Content,
1308
1345
  {
1309
1346
  ref: s,
1310
1347
  className: d(
@@ -1315,30 +1352,30 @@ const sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is
1315
1352
  }
1316
1353
  )
1317
1354
  ] }));
1318
- sn.displayName = U.Content.displayName;
1319
- const on = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1320
- on.displayName = "AlertDialogHeader";
1321
- const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1322
- nn.displayName = "AlertDialogFooter";
1323
- const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1324
- an.displayName = U.Title.displayName;
1325
- const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1326
- rn.displayName = U.Description.displayName;
1327
- const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(bt(), e), ...t }));
1328
- ln.displayName = U.Action.displayName;
1329
- const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1330
- U.Cancel,
1355
+ on.displayName = q.Content.displayName;
1356
+ const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1357
+ nn.displayName = "AlertDialogHeader";
1358
+ const an = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1359
+ an.displayName = "AlertDialogFooter";
1360
+ const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1361
+ rn.displayName = q.Title.displayName;
1362
+ const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1363
+ ln.displayName = q.Description.displayName;
1364
+ const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Action, { ref: s, className: d(bt(), e), ...t }));
1365
+ cn.displayName = q.Action.displayName;
1366
+ const dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1367
+ q.Cancel,
1331
1368
  {
1332
1369
  ref: s,
1333
1370
  className: d(bt({ variant: "outline" }), "mt-2 sm:mt-0", e),
1334
1371
  ...t
1335
1372
  }
1336
1373
  ));
1337
- cn.displayName = U.Cancel.displayName;
1338
- const cs = B.Root, dn = B.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1339
- ds.displayName = B.Portal.displayName;
1374
+ dn.displayName = q.Cancel.displayName;
1375
+ const cs = T.Root, un = T.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(T.Portal, { className: d(e), ...t });
1376
+ ds.displayName = T.Portal.displayName;
1340
1377
  const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1341
- B.Overlay,
1378
+ T.Overlay,
1342
1379
  {
1343
1380
  ref: s,
1344
1381
  className: d(
@@ -1348,11 +1385,11 @@ const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1348
1385
  ...t
1349
1386
  }
1350
1387
  ));
1351
- us.displayName = B.Overlay.displayName;
1388
+ us.displayName = T.Overlay.displayName;
1352
1389
  const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ds, { children: [
1353
1390
  /* @__PURE__ */ a.jsx(us, {}),
1354
1391
  /* @__PURE__ */ a.jsxs(
1355
- B.Content,
1392
+ T.Content,
1356
1393
  {
1357
1394
  ref: o,
1358
1395
  className: d(
@@ -1362,7 +1399,7 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1362
1399
  ...s,
1363
1400
  children: [
1364
1401
  t,
1365
- /* @__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: [
1402
+ /* @__PURE__ */ a.jsxs(T.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: [
1366
1403
  /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
1367
1404
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1368
1405
  ] })
@@ -1370,45 +1407,45 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1370
1407
  }
1371
1408
  )
1372
1409
  ] }));
1373
- xt.displayName = B.Content.displayName;
1374
- const un = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1375
- un.displayName = "DialogHeader";
1376
- const mn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1377
- mn.displayName = "DialogFooter";
1378
- const fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1379
- B.Title,
1410
+ xt.displayName = T.Content.displayName;
1411
+ const mn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1412
+ mn.displayName = "DialogHeader";
1413
+ const fn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1414
+ fn.displayName = "DialogFooter";
1415
+ const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1416
+ T.Title,
1380
1417
  {
1381
1418
  ref: s,
1382
1419
  className: d("text-lg font-semibold leading-none tracking-tight", e),
1383
1420
  ...t
1384
1421
  }
1385
1422
  ));
1386
- fn.displayName = B.Title.displayName;
1387
- const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1388
- pn.displayName = B.Description.displayName;
1389
- const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1390
- gn.displayName = "Card";
1391
- const bn = m.forwardRef(
1423
+ pn.displayName = T.Title.displayName;
1424
+ const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1425
+ gn.displayName = T.Description.displayName;
1426
+ const bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
1427
+ bn.displayName = "Card";
1428
+ const xn = m.forwardRef(
1392
1429
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
1393
1430
  );
1394
- bn.displayName = "CardHeader";
1395
- const xn = m.forwardRef(
1431
+ xn.displayName = "CardHeader";
1432
+ const hn = m.forwardRef(
1396
1433
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
1397
1434
  );
1398
- xn.displayName = "CardTitle";
1399
- const hn = m.forwardRef(
1435
+ hn.displayName = "CardTitle";
1436
+ const vn = m.forwardRef(
1400
1437
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
1401
1438
  );
1402
- hn.displayName = "CardDescription";
1403
- const vn = m.forwardRef(
1439
+ vn.displayName = "CardDescription";
1440
+ const yn = m.forwardRef(
1404
1441
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
1405
1442
  );
1406
- vn.displayName = "CardContent";
1407
- const yn = m.forwardRef(
1443
+ yn.displayName = "CardContent";
1444
+ const wn = m.forwardRef(
1408
1445
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
1409
1446
  );
1410
- yn.displayName = "CardFooter";
1411
- const wn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1447
+ wn.displayName = "CardFooter";
1448
+ const Nn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1412
1449
  "input",
1413
1450
  {
1414
1451
  type: t,
@@ -1420,10 +1457,10 @@ const wn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
1420
1457
  ...s
1421
1458
  }
1422
1459
  ));
1423
- wn.displayName = "Input";
1424
- const Nn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: d(Nn(), e), ...t }));
1425
- kn.displayName = Ft.Root.displayName;
1426
- const jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1460
+ Nn.displayName = "Input";
1461
+ const kn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: d(kn(), e), ...t }));
1462
+ jn.displayName = Ft.Root.displayName;
1463
+ const Sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1427
1464
  "textarea",
1428
1465
  {
1429
1466
  className: d(
@@ -1434,15 +1471,15 @@ const jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1434
1471
  ...t
1435
1472
  }
1436
1473
  ));
1437
- jn.displayName = "Textarea";
1438
- const Sn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(de.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1439
- /* @__PURE__ */ a.jsx(de.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1474
+ Sn.displayName = "Textarea";
1475
+ const An = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ue.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1476
+ /* @__PURE__ */ a.jsx(ue.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1440
1477
  /* @__PURE__ */ a.jsx(ms, {}),
1441
- /* @__PURE__ */ a.jsx(de.Corner, {})
1478
+ /* @__PURE__ */ a.jsx(ue.Corner, {})
1442
1479
  ] }));
1443
- Sn.displayName = de.Root.displayName;
1480
+ An.displayName = ue.Root.displayName;
1444
1481
  const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1445
- de.ScrollAreaScrollbar,
1482
+ ue.ScrollAreaScrollbar,
1446
1483
  {
1447
1484
  ref: o,
1448
1485
  orientation: t,
@@ -1453,11 +1490,11 @@ const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
1453
1490
  e
1454
1491
  ),
1455
1492
  ...s,
1456
- children: /* @__PURE__ */ a.jsx(de.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1493
+ children: /* @__PURE__ */ a.jsx(ue.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1457
1494
  }
1458
1495
  ));
1459
- ms.displayName = de.ScrollAreaScrollbar.displayName;
1460
- const An = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1496
+ ms.displayName = ue.ScrollAreaScrollbar.displayName;
1497
+ const Cn = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1461
1498
  be.List,
1462
1499
  {
1463
1500
  ref: s,
@@ -1493,7 +1530,7 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1493
1530
  }
1494
1531
  ));
1495
1532
  Ze.displayName = be.Content.displayName;
1496
- const Qr = ve.Portal, Xr = ve.Provider, Zr = ve.Root, ei = ve.Trigger, Cn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1533
+ const Xr = ve.Portal, Zr = ve.Provider, ei = ve.Root, ti = ve.Trigger, _n = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1497
1534
  ve.Content,
1498
1535
  {
1499
1536
  ref: o,
@@ -1505,8 +1542,8 @@ const Qr = ve.Portal, Xr = ve.Provider, Zr = ve.Root, ei = ve.Trigger, Cn = m.fo
1505
1542
  ...s
1506
1543
  }
1507
1544
  ));
1508
- Cn.displayName = ve.Content.displayName;
1509
- const ti = Se.Root, si = Se.Trigger, _n = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1545
+ _n.displayName = ve.Content.displayName;
1546
+ const si = Se.Root, oi = Se.Trigger, Bn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1510
1547
  Se.Content,
1511
1548
  {
1512
1549
  ref: n,
@@ -1519,18 +1556,18 @@ const ti = Se.Root, si = Se.Trigger, _n = m.forwardRef(({ className: e, align: t
1519
1556
  ...o
1520
1557
  }
1521
1558
  ) }));
1522
- _n.displayName = Se.Content.displayName;
1523
- const oi = C.Menu, ni = C.Group, ai = C.Portal, ri = C.Sub, ii = C.RadioGroup, Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1524
- C.Root,
1559
+ Bn.displayName = Se.Content.displayName;
1560
+ const ni = B.Menu, ai = B.Group, ri = B.Portal, ii = B.Sub, li = B.RadioGroup, Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1561
+ B.Root,
1525
1562
  {
1526
1563
  ref: s,
1527
1564
  className: d("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
1528
1565
  ...t
1529
1566
  }
1530
1567
  ));
1531
- Bn.displayName = C.Root.displayName;
1532
- const Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1533
- C.Trigger,
1568
+ Rn.displayName = B.Root.displayName;
1569
+ const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1570
+ B.Trigger,
1534
1571
  {
1535
1572
  ref: s,
1536
1573
  className: d(
@@ -1540,9 +1577,9 @@ const Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1540
1577
  ...t
1541
1578
  }
1542
1579
  ));
1543
- Rn.displayName = C.Trigger.displayName;
1544
- const Tn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1545
- C.SubTrigger,
1580
+ Tn.displayName = B.Trigger.displayName;
1581
+ const Pn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1582
+ B.SubTrigger,
1546
1583
  {
1547
1584
  ref: n,
1548
1585
  className: d(
@@ -1557,9 +1594,9 @@ const Tn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
1557
1594
  ]
1558
1595
  }
1559
1596
  ));
1560
- Tn.displayName = C.SubTrigger.displayName;
1561
- const Pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1562
- C.SubContent,
1597
+ Pn.displayName = B.SubTrigger.displayName;
1598
+ const In = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1599
+ B.SubContent,
1563
1600
  {
1564
1601
  ref: s,
1565
1602
  className: d(
@@ -1569,9 +1606,9 @@ const Pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1569
1606
  ...t
1570
1607
  }
1571
1608
  ));
1572
- Pn.displayName = C.SubContent.displayName;
1573
- const In = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1574
- C.Content,
1609
+ In.displayName = B.SubContent.displayName;
1610
+ const Mn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(B.Portal, { children: /* @__PURE__ */ a.jsx(
1611
+ B.Content,
1575
1612
  {
1576
1613
  ref: i,
1577
1614
  align: t,
@@ -1584,9 +1621,9 @@ const In = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
1584
1621
  ...n
1585
1622
  }
1586
1623
  ) }));
1587
- In.displayName = C.Content.displayName;
1588
- const Mn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1589
- C.Item,
1624
+ Mn.displayName = B.Content.displayName;
1625
+ const Dn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1626
+ B.Item,
1590
1627
  {
1591
1628
  ref: o,
1592
1629
  className: d(
@@ -1597,9 +1634,9 @@ const Mn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1597
1634
  ...s
1598
1635
  }
1599
1636
  ));
1600
- Mn.displayName = C.Item.displayName;
1601
- const Dn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1602
- C.CheckboxItem,
1637
+ Dn.displayName = B.Item.displayName;
1638
+ const En = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1639
+ B.CheckboxItem,
1603
1640
  {
1604
1641
  ref: n,
1605
1642
  className: d(
@@ -1609,14 +1646,14 @@ const Dn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1609
1646
  checked: s,
1610
1647
  ...o,
1611
1648
  children: [
1612
- /* @__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(Le, { className: "h-4 w-4" }) }) }),
1649
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(B.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
1613
1650
  t
1614
1651
  ]
1615
1652
  }
1616
1653
  ));
1617
- Dn.displayName = C.CheckboxItem.displayName;
1618
- const En = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1619
- C.RadioItem,
1654
+ En.displayName = B.CheckboxItem.displayName;
1655
+ const On = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1656
+ B.RadioItem,
1620
1657
  {
1621
1658
  ref: o,
1622
1659
  className: d(
@@ -1625,26 +1662,26 @@ const En = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1625
1662
  ),
1626
1663
  ...s,
1627
1664
  children: [
1628
- /* @__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(nt, { className: "h-4 w-4 fill-current" }) }) }),
1665
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(B.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
1629
1666
  t
1630
1667
  ]
1631
1668
  }
1632
1669
  ));
1633
- En.displayName = C.RadioItem.displayName;
1634
- const On = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1635
- C.Label,
1670
+ On.displayName = B.RadioItem.displayName;
1671
+ const Ln = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1672
+ B.Label,
1636
1673
  {
1637
1674
  ref: o,
1638
1675
  className: d("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
1639
1676
  ...s
1640
1677
  }
1641
1678
  ));
1642
- On.displayName = C.Label.displayName;
1643
- const Ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1644
- Ln.displayName = C.Separator.displayName;
1645
- const zn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1646
- zn.displayname = "MenubarShortcut";
1647
- const li = ze.Root, ci = ze.Trigger, Vn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1679
+ Ln.displayName = B.Label.displayName;
1680
+ const zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1681
+ zn.displayName = B.Separator.displayName;
1682
+ const Vn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1683
+ Vn.displayname = "MenubarShortcut";
1684
+ const ci = ze.Root, di = ze.Trigger, $n = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1648
1685
  ze.Content,
1649
1686
  {
1650
1687
  ref: n,
@@ -1657,9 +1694,9 @@ const li = ze.Root, ci = ze.Trigger, Vn = m.forwardRef(({ className: e, align: t
1657
1694
  ...o
1658
1695
  }
1659
1696
  ));
1660
- Vn.displayName = ze.Content.displayName;
1661
- const di = z.Root, ui = z.Group, mi = z.Value, $n = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1662
- z.Trigger,
1697
+ $n.displayName = ze.Content.displayName;
1698
+ const ui = U.Root, mi = U.Group, fi = U.Value, Fn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1699
+ U.Trigger,
1663
1700
  {
1664
1701
  ref: o,
1665
1702
  className: d(
@@ -1669,13 +1706,13 @@ const di = z.Root, ui = z.Group, mi = z.Value, $n = m.forwardRef(({ className: e
1669
1706
  ...s,
1670
1707
  children: [
1671
1708
  t,
1672
- /* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
1709
+ /* @__PURE__ */ a.jsx(U.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
1673
1710
  ]
1674
1711
  }
1675
1712
  ));
1676
- $n.displayName = z.Trigger.displayName;
1677
- const Fn = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(z.Portal, { children: /* @__PURE__ */ a.jsx(
1678
- z.Content,
1713
+ Fn.displayName = U.Trigger.displayName;
1714
+ const Un = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(U.Portal, { children: /* @__PURE__ */ a.jsx(
1715
+ U.Content,
1679
1716
  {
1680
1717
  ref: n,
1681
1718
  className: d(
@@ -1686,7 +1723,7 @@ const Fn = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
1686
1723
  position: s,
1687
1724
  ...o,
1688
1725
  children: /* @__PURE__ */ a.jsx(
1689
- z.Viewport,
1726
+ U.Viewport,
1690
1727
  {
1691
1728
  className: d(
1692
1729
  "p-1",
@@ -1697,11 +1734,11 @@ const Fn = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
1697
1734
  )
1698
1735
  }
1699
1736
  ) }));
1700
- Fn.displayName = z.Content.displayName;
1701
- const Un = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
1702
- Un.displayName = z.Label.displayName;
1703
- const Wn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1704
- z.Item,
1737
+ Un.displayName = U.Content.displayName;
1738
+ const Wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
1739
+ Wn.displayName = U.Label.displayName;
1740
+ const Gn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1741
+ U.Item,
1705
1742
  {
1706
1743
  ref: o,
1707
1744
  className: d(
@@ -1710,18 +1747,18 @@ const Wn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1710
1747
  ),
1711
1748
  ...s,
1712
1749
  children: [
1713
- /* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(z.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
1714
- /* @__PURE__ */ a.jsx(z.ItemText, { children: t })
1750
+ /* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(U.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
1751
+ /* @__PURE__ */ a.jsx(U.ItemText, { children: t })
1715
1752
  ]
1716
1753
  }
1717
1754
  ));
1718
- Wn.displayName = z.Item.displayName;
1719
- const Gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1720
- Gn.displayName = z.Separator.displayName;
1721
- const fi = B.Root, pi = B.Trigger, gi = B.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1722
- ps.displayName = B.Portal.displayName;
1755
+ Gn.displayName = U.Item.displayName;
1756
+ const Hn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1757
+ Hn.displayName = U.Separator.displayName;
1758
+ const pi = T.Root, gi = T.Trigger, bi = T.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(T.Portal, { className: d(e), ...t });
1759
+ ps.displayName = T.Portal.displayName;
1723
1760
  const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1724
- B.Overlay,
1761
+ T.Overlay,
1725
1762
  {
1726
1763
  className: d(
1727
1764
  "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",
@@ -1731,8 +1768,8 @@ const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1731
1768
  ref: s
1732
1769
  }
1733
1770
  ));
1734
- gs.displayName = B.Overlay.displayName;
1735
- const Hn = ge(
1771
+ gs.displayName = T.Overlay.displayName;
1772
+ const qn = ge(
1736
1773
  "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",
1737
1774
  {
1738
1775
  variants: {
@@ -1747,29 +1784,29 @@ const Hn = ge(
1747
1784
  side: "right"
1748
1785
  }
1749
1786
  }
1750
- ), qn = m.forwardRef(
1787
+ ), Kn = m.forwardRef(
1751
1788
  ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(ps, { children: [
1752
1789
  /* @__PURE__ */ a.jsx(gs, {}),
1753
- /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: d(Hn({ side: e }), t), ...o, children: [
1790
+ /* @__PURE__ */ a.jsxs(T.Content, { ref: n, className: d(qn({ side: e }), t), ...o, children: [
1754
1791
  s,
1755
- /* @__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: [
1792
+ /* @__PURE__ */ a.jsxs(T.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: [
1756
1793
  /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
1757
1794
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1758
1795
  ] })
1759
1796
  ] })
1760
1797
  ] })
1761
1798
  );
1762
- qn.displayName = B.Content.displayName;
1763
- const Kn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1764
- Kn.displayName = "SheetHeader";
1765
- const Jn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1766
- Jn.displayName = "SheetFooter";
1767
- const Yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1768
- Yn.displayName = B.Title.displayName;
1769
- const Qn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1770
- Qn.displayName = B.Description.displayName;
1771
- const bi = T.Root, xi = T.Trigger, hi = T.Group, vi = T.Portal, yi = T.Sub, wi = T.RadioGroup, Xn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1772
- T.SubTrigger,
1799
+ Kn.displayName = T.Content.displayName;
1800
+ const Jn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1801
+ Jn.displayName = "SheetHeader";
1802
+ const Yn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
1803
+ Yn.displayName = "SheetFooter";
1804
+ const Qn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1805
+ Qn.displayName = T.Title.displayName;
1806
+ const Xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1807
+ Xn.displayName = T.Description.displayName;
1808
+ const xi = I.Root, hi = I.Trigger, vi = I.Group, yi = I.Portal, wi = I.Sub, Ni = I.RadioGroup, Zn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1809
+ I.SubTrigger,
1773
1810
  {
1774
1811
  ref: n,
1775
1812
  className: d(
@@ -1784,9 +1821,9 @@ const bi = T.Root, xi = T.Trigger, hi = T.Group, vi = T.Portal, yi = T.Sub, wi =
1784
1821
  ]
1785
1822
  }
1786
1823
  ));
1787
- Xn.displayName = T.SubTrigger.displayName;
1788
- const Zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1789
- T.SubContent,
1824
+ Zn.displayName = I.SubTrigger.displayName;
1825
+ const ea = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1826
+ I.SubContent,
1790
1827
  {
1791
1828
  ref: s,
1792
1829
  className: d(
@@ -1796,9 +1833,9 @@ const Zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1796
1833
  ...t
1797
1834
  }
1798
1835
  ));
1799
- Zn.displayName = T.SubContent.displayName;
1800
- const ea = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
1801
- T.Content,
1836
+ ea.displayName = I.SubContent.displayName;
1837
+ const ta = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(I.Portal, { children: /* @__PURE__ */ a.jsx(
1838
+ I.Content,
1802
1839
  {
1803
1840
  ref: o,
1804
1841
  sideOffset: t,
@@ -1810,9 +1847,9 @@ const ea = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
1810
1847
  ...s
1811
1848
  }
1812
1849
  ) }));
1813
- ea.displayName = T.Content.displayName;
1814
- const ta = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1815
- T.Item,
1850
+ ta.displayName = I.Content.displayName;
1851
+ const sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1852
+ I.Item,
1816
1853
  {
1817
1854
  ref: o,
1818
1855
  className: d(
@@ -1823,9 +1860,9 @@ const ta = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1823
1860
  ...s
1824
1861
  }
1825
1862
  ));
1826
- ta.displayName = T.Item.displayName;
1827
- const sa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1828
- T.CheckboxItem,
1863
+ sa.displayName = I.Item.displayName;
1864
+ const oa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1865
+ I.CheckboxItem,
1829
1866
  {
1830
1867
  ref: n,
1831
1868
  className: d(
@@ -1835,14 +1872,14 @@ const sa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1835
1872
  checked: s,
1836
1873
  ...o,
1837
1874
  children: [
1838
- /* @__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(Le, { className: "h-4 w-4" }) }) }),
1875
+ /* @__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(Le, { className: "h-4 w-4" }) }) }),
1839
1876
  t
1840
1877
  ]
1841
1878
  }
1842
1879
  ));
1843
- sa.displayName = T.CheckboxItem.displayName;
1844
- const oa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1845
- T.RadioItem,
1880
+ oa.displayName = I.CheckboxItem.displayName;
1881
+ const na = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1882
+ I.RadioItem,
1846
1883
  {
1847
1884
  ref: o,
1848
1885
  className: d(
@@ -1851,26 +1888,26 @@ const oa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1851
1888
  ),
1852
1889
  ...s,
1853
1890
  children: [
1854
- /* @__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(nt, { className: "h-4 w-4 fill-current" }) }) }),
1891
+ /* @__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(nt, { className: "h-4 w-4 fill-current" }) }) }),
1855
1892
  t
1856
1893
  ]
1857
1894
  }
1858
1895
  ));
1859
- oa.displayName = T.RadioItem.displayName;
1860
- const na = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1861
- T.Label,
1896
+ na.displayName = I.RadioItem.displayName;
1897
+ const aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1898
+ I.Label,
1862
1899
  {
1863
1900
  ref: o,
1864
1901
  className: d("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
1865
1902
  ...s
1866
1903
  }
1867
1904
  ));
1868
- na.displayName = T.Label.displayName;
1869
- const aa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1870
- aa.displayName = T.Separator.displayName;
1871
- const ra = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1872
- ra.displayName = "DropdownMenuShortcut";
1873
- const ia = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1905
+ aa.displayName = I.Label.displayName;
1906
+ const ra = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
1907
+ ra.displayName = I.Separator.displayName;
1908
+ const ia = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1909
+ ia.displayName = "DropdownMenuShortcut";
1910
+ const la = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1874
1911
  Ut.Root,
1875
1912
  {
1876
1913
  ref: n,
@@ -1880,10 +1917,10 @@ const ia = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
1880
1917
  ...o
1881
1918
  }
1882
1919
  ));
1883
- ia.displayName = Ut.Root.displayName;
1884
- const la = 1, ca = 1e6;
1920
+ la.displayName = Ut.Root.displayName;
1921
+ const ca = 1, da = 1e6;
1885
1922
  let We = 0;
1886
- function da() {
1923
+ function ua() {
1887
1924
  return We = (We + 1) % Number.MAX_VALUE, We.toString();
1888
1925
  }
1889
1926
  const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
@@ -1894,14 +1931,14 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1894
1931
  type: "REMOVE_TOAST",
1895
1932
  toastId: e
1896
1933
  });
1897
- }, ca);
1934
+ }, da);
1898
1935
  Ge.set(e, t);
1899
- }, ua = (e, t) => {
1936
+ }, ma = (e, t) => {
1900
1937
  switch (t.type) {
1901
1938
  case "ADD_TOAST":
1902
1939
  return {
1903
1940
  ...e,
1904
- toasts: [t.toast, ...e.toasts].slice(0, la)
1941
+ toasts: [t.toast, ...e.toasts].slice(0, ca)
1905
1942
  };
1906
1943
  case "UPDATE_TOAST":
1907
1944
  return {
@@ -1934,12 +1971,12 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1934
1971
  }, Ie = [];
1935
1972
  let Me = { toasts: [] };
1936
1973
  function ke(e) {
1937
- Me = ua(Me, e), Ie.forEach((t) => {
1974
+ Me = ma(Me, e), Ie.forEach((t) => {
1938
1975
  t(Me);
1939
1976
  });
1940
1977
  }
1941
- function ma({ ...e }) {
1942
- const t = da(), s = (n) => ke({
1978
+ function fa({ ...e }) {
1979
+ const t = ua(), s = (n) => ke({
1943
1980
  type: "UPDATE_TOAST",
1944
1981
  toast: { ...n, id: t }
1945
1982
  }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
@@ -1966,12 +2003,12 @@ function bs() {
1966
2003
  s > -1 && Ie.splice(s, 1);
1967
2004
  }), [e]), {
1968
2005
  ...e,
1969
- toast: ma,
2006
+ toast: fa,
1970
2007
  dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
1971
2008
  };
1972
2009
  }
1973
- const fa = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1974
- Y.Viewport,
2010
+ const pa = X.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2011
+ X.Viewport,
1975
2012
  {
1976
2013
  ref: s,
1977
2014
  className: d(
@@ -1981,8 +2018,8 @@ const fa = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
1981
2018
  ...t
1982
2019
  }
1983
2020
  ));
1984
- xs.displayName = Y.Viewport.displayName;
1985
- const pa = ge(
2021
+ xs.displayName = X.Viewport.displayName;
2022
+ const ga = ge(
1986
2023
  "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",
1987
2024
  {
1988
2025
  variants: {
@@ -1995,10 +2032,10 @@ const pa = ge(
1995
2032
  variant: "default"
1996
2033
  }
1997
2034
  }
1998
- ), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Y.Root, { ref: o, className: d(pa({ variant: t }), e), ...s }));
1999
- hs.displayName = Y.Root.displayName;
2000
- const ga = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2001
- Y.Action,
2035
+ ), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(X.Root, { ref: o, className: d(ga({ variant: t }), e), ...s }));
2036
+ hs.displayName = X.Root.displayName;
2037
+ const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2038
+ X.Action,
2002
2039
  {
2003
2040
  ref: s,
2004
2041
  className: d(
@@ -2008,9 +2045,9 @@ const ga = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2008
2045
  ...t
2009
2046
  }
2010
2047
  ));
2011
- ga.displayName = Y.Action.displayName;
2048
+ ba.displayName = X.Action.displayName;
2012
2049
  const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2013
- Y.Close,
2050
+ X.Close,
2014
2051
  {
2015
2052
  ref: s,
2016
2053
  className: d(
@@ -2022,14 +2059,14 @@ const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2022
2059
  children: /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" })
2023
2060
  }
2024
2061
  ));
2025
- vs.displayName = Y.Close.displayName;
2026
- const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2027
- ys.displayName = Y.Title.displayName;
2028
- const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
2029
- ws.displayName = Y.Description.displayName;
2030
- function Ni() {
2062
+ vs.displayName = X.Close.displayName;
2063
+ const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(X.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
2064
+ ys.displayName = X.Title.displayName;
2065
+ const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(X.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
2066
+ ws.displayName = X.Description.displayName;
2067
+ function ki() {
2031
2068
  const { toasts: e } = bs();
2032
- return /* @__PURE__ */ a.jsxs(fa, { children: [
2069
+ return /* @__PURE__ */ a.jsxs(pa, { children: [
2033
2070
  e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(hs, { ...i, children: [
2034
2071
  /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
2035
2072
  s && /* @__PURE__ */ a.jsx(ys, { children: s }),
@@ -2041,8 +2078,8 @@ function Ni() {
2041
2078
  /* @__PURE__ */ a.jsx(xs, {})
2042
2079
  ] });
2043
2080
  }
2044
- const ki = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2045
- K,
2081
+ const ji = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2082
+ Q,
2046
2083
  {
2047
2084
  ref: s,
2048
2085
  className: d(
@@ -2052,11 +2089,11 @@ const ki = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
2052
2089
  ...t
2053
2090
  }
2054
2091
  ));
2055
- Ns.displayName = K.displayName;
2056
- const ji = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ns, { 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 }) }) }), ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2092
+ Ns.displayName = Q.displayName;
2093
+ const Si = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ns, { 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 }) }) }), xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2057
2094
  /* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2058
2095
  /* @__PURE__ */ a.jsx(
2059
- K.Input,
2096
+ Q.Input,
2060
2097
  {
2061
2098
  ref: s,
2062
2099
  className: d(
@@ -2067,20 +2104,20 @@ const ji = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children
2067
2104
  }
2068
2105
  )
2069
2106
  ] }));
2070
- ba.displayName = K.Input.displayName;
2071
- const xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2072
- K.List,
2107
+ xa.displayName = Q.Input.displayName;
2108
+ const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2109
+ Q.List,
2073
2110
  {
2074
2111
  ref: s,
2075
2112
  className: d("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
2076
2113
  ...t
2077
2114
  }
2078
2115
  ));
2079
- xa.displayName = K.List.displayName;
2080
- const ha = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(K.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2081
- ha.displayName = K.Empty.displayName;
2082
- const va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2083
- K.Group,
2116
+ ha.displayName = Q.List.displayName;
2117
+ const va = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(Q.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2118
+ va.displayName = Q.Empty.displayName;
2119
+ const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2120
+ Q.Group,
2084
2121
  {
2085
2122
  ref: s,
2086
2123
  className: d(
@@ -2090,11 +2127,11 @@ const va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2090
2127
  ...t
2091
2128
  }
2092
2129
  ));
2093
- va.displayName = K.Group.displayName;
2094
- const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(K.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2095
- ya.displayName = K.Separator.displayName;
2096
- const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2097
- K.Item,
2130
+ ya.displayName = Q.Group.displayName;
2131
+ const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Q.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2132
+ wa.displayName = Q.Separator.displayName;
2133
+ const Na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2134
+ Q.Item,
2098
2135
  {
2099
2136
  ref: s,
2100
2137
  className: d(
@@ -2104,11 +2141,11 @@ const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2104
2141
  ...t
2105
2142
  }
2106
2143
  ));
2107
- wa.displayName = K.Item.displayName;
2108
- const Na = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2109
- Na.displayName = "CommandShortcut";
2110
- const Si = P.Root, Ai = P.Trigger, Ci = P.Group, _i = P.Portal, Bi = P.Sub, Ri = P.RadioGroup, ka = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2111
- P.SubTrigger,
2144
+ Na.displayName = Q.Item.displayName;
2145
+ const ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2146
+ ka.displayName = "CommandShortcut";
2147
+ const Ai = M.Root, Ci = M.Trigger, _i = M.Group, Bi = M.Portal, Ri = M.Sub, Ti = M.RadioGroup, ja = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2148
+ M.SubTrigger,
2112
2149
  {
2113
2150
  ref: n,
2114
2151
  className: d(
@@ -2123,9 +2160,9 @@ const Si = P.Root, Ai = P.Trigger, Ci = P.Group, _i = P.Portal, Bi = P.Sub, Ri =
2123
2160
  ]
2124
2161
  }
2125
2162
  ));
2126
- ka.displayName = P.SubTrigger.displayName;
2127
- const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2128
- P.SubContent,
2163
+ ja.displayName = M.SubTrigger.displayName;
2164
+ const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2165
+ M.SubContent,
2129
2166
  {
2130
2167
  ref: s,
2131
2168
  className: d(
@@ -2135,9 +2172,9 @@ const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2135
2172
  ...t
2136
2173
  }
2137
2174
  ));
2138
- ja.displayName = P.SubContent.displayName;
2139
- const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2140
- P.Content,
2175
+ Sa.displayName = M.SubContent.displayName;
2176
+ const Aa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Portal, { children: /* @__PURE__ */ a.jsx(
2177
+ M.Content,
2141
2178
  {
2142
2179
  ref: s,
2143
2180
  className: d(
@@ -2147,9 +2184,9 @@ const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.P
2147
2184
  ...t
2148
2185
  }
2149
2186
  ) }));
2150
- Sa.displayName = P.Content.displayName;
2151
- const Aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2152
- P.Item,
2187
+ Aa.displayName = M.Content.displayName;
2188
+ const Ca = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2189
+ M.Item,
2153
2190
  {
2154
2191
  ref: o,
2155
2192
  className: d(
@@ -2160,9 +2197,9 @@ const Aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2160
2197
  ...s
2161
2198
  }
2162
2199
  ));
2163
- Aa.displayName = P.Item.displayName;
2164
- const Ca = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2165
- P.CheckboxItem,
2200
+ Ca.displayName = M.Item.displayName;
2201
+ const _a = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2202
+ M.CheckboxItem,
2166
2203
  {
2167
2204
  ref: n,
2168
2205
  className: d(
@@ -2172,14 +2209,14 @@ const Ca = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2172
2209
  checked: s,
2173
2210
  ...o,
2174
2211
  children: [
2175
- /* @__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(Le, { className: "h-4 w-4" }) }) }),
2212
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
2176
2213
  t
2177
2214
  ]
2178
2215
  }
2179
2216
  ));
2180
- Ca.displayName = P.CheckboxItem.displayName;
2181
- const _a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2182
- P.RadioItem,
2217
+ _a.displayName = M.CheckboxItem.displayName;
2218
+ const Ba = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2219
+ M.RadioItem,
2183
2220
  {
2184
2221
  ref: o,
2185
2222
  className: d(
@@ -2188,26 +2225,26 @@ const _a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2188
2225
  ),
2189
2226
  ...s,
2190
2227
  children: [
2191
- /* @__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(nt, { className: "h-4 w-4 fill-current" }) }) }),
2228
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
2192
2229
  t
2193
2230
  ]
2194
2231
  }
2195
2232
  ));
2196
- _a.displayName = P.RadioItem.displayName;
2197
- const Ba = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2198
- P.Label,
2233
+ Ba.displayName = M.RadioItem.displayName;
2234
+ const Ra = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2235
+ M.Label,
2199
2236
  {
2200
2237
  ref: o,
2201
2238
  className: d("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
2202
2239
  ...s
2203
2240
  }
2204
2241
  ));
2205
- Ba.displayName = P.Label.displayName;
2206
- const Ra = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
2207
- Ra.displayName = P.Separator.displayName;
2208
- const Ta = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2209
- Ta.displayName = "ContextMenuShortcut";
2210
- const Pa = (e) => {
2242
+ Ra.displayName = M.Label.displayName;
2243
+ const Ta = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
2244
+ Ta.displayName = M.Separator.displayName;
2245
+ const Pa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2246
+ Pa.displayName = "ContextMenuShortcut";
2247
+ const Ia = (e) => {
2211
2248
  try {
2212
2249
  const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2213
2250
  Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
@@ -2218,10 +2255,10 @@ const Pa = (e) => {
2218
2255
  } catch (t) {
2219
2256
  return console.error(t), "";
2220
2257
  }
2221
- }, Ti = ({ value: e, onChange: t }) => {
2258
+ }, Pi = ({ value: e, onChange: t }) => {
2222
2259
  const s = (o) => {
2223
2260
  t("<svg />");
2224
- const n = Pa(o);
2261
+ const n = Ia(o);
2225
2262
  t(n);
2226
2263
  };
2227
2264
  return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
@@ -2272,7 +2309,7 @@ const Pa = (e) => {
2272
2309
  }
2273
2310
  )
2274
2311
  ] });
2275
- }, Ia = et.lazy(() => import("./UnsplashImages-1RFHZIte.js")), Ma = et.lazy(() => import("./UploadImages-G2orrhmZ.js")), ks = ({
2312
+ }, Ma = et.lazy(() => import("./UnsplashImages-Y8RGFVSh.js")), Da = et.lazy(() => import("./UploadImages-dd8LfyFr.js")), ks = ({
2276
2313
  isModalView: e = !1,
2277
2314
  onSelect: t = () => {
2278
2315
  }
@@ -2280,15 +2317,15 @@ const Pa = (e) => {
2280
2317
  const [s, o] = Ce("upload");
2281
2318
  return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2282
2319
  /* @__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" }) }),
2283
- /* @__PURE__ */ a.jsxs(An, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2320
+ /* @__PURE__ */ a.jsxs(Cn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2284
2321
  /* @__PURE__ */ a.jsxs(fs, { className: "w-full", children: [
2285
2322
  /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2286
2323
  /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2287
2324
  ] }),
2288
- 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(Ia, { 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(Ma, { isModalView: e, onSelect: t }) }) })
2325
+ 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(Ma, { 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(Da, { isModalView: e, onSelect: t }) }) })
2289
2326
  ] })
2290
2327
  ] });
2291
- }, Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2328
+ }, Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2292
2329
  __proto__: null,
2293
2330
  default: ks
2294
2331
  }, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
@@ -2296,10 +2333,10 @@ const Pa = (e) => {
2296
2333
  t.call(void 0, ...i), o(!1);
2297
2334
  };
2298
2335
  return /* @__PURE__ */ a.jsxs(cs, { open: s, onOpenChange: (i) => o(i), children: [
2299
- /* @__PURE__ */ a.jsx(dn, { asChild: !0, children: e }),
2336
+ /* @__PURE__ */ a.jsx(un, { asChild: !0, children: e }),
2300
2337
  /* @__PURE__ */ a.jsx(xt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(ks, { isModalView: !0, onSelect: n }) }) })
2301
2338
  ] });
2302
- }, Ii = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2339
+ }, Mi = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2303
2340
  e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Tt, { 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" }) }),
2304
2341
  /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2305
2342
  /* @__PURE__ */ a.jsx(Tt, { 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 || !Ee(e) ? "Replace Image" : "Choose Image" }) }),
@@ -2316,7 +2353,7 @@ const Pa = (e) => {
2316
2353
  }
2317
2354
  )
2318
2355
  ] })
2319
- ] }), Mi = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2356
+ ] }), Di = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2320
2357
  const i = {
2321
2358
  toolbar: [
2322
2359
  ["bold", "italic", "underline", "strike", "blockquote"],
@@ -2352,7 +2389,7 @@ const Pa = (e) => {
2352
2389
  className: "mt-1 rounded-md"
2353
2390
  }
2354
2391
  );
2355
- }, Di = ({ schema: e, formData: t, onChange: s }) => {
2392
+ }, Ei = ({ schema: e, formData: t, onChange: s }) => {
2356
2393
  const [o, n] = Ce([]), i = Ne("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
2357
2394
  return Ae(() => {
2358
2395
  (async () => {
@@ -2378,7 +2415,7 @@ const Pa = (e) => {
2378
2415
  onChange: (l) => s({ ...t, href: l.target.value }),
2379
2416
  children: [
2380
2417
  /* @__PURE__ */ a.jsx("option", { value: "", children: "Choose page" }),
2381
- R(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2418
+ P(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
2382
2419
  ]
2383
2420
  }
2384
2421
  ) : /* @__PURE__ */ a.jsx(
@@ -2405,60 +2442,60 @@ const Pa = (e) => {
2405
2442
  ] })
2406
2443
  ] })
2407
2444
  ] });
2408
- }, Ei = () => {
2409
- const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = bs(), n = L(
2445
+ }, Oi = () => {
2446
+ const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = bs(), n = F(
2410
2447
  (r, c, p) => {
2411
- var k;
2412
- for (let I = 0; I < r.length; I++) {
2413
- const { _id: O } = r[I];
2414
- r[I]._id = ce();
2415
- const W = M(r, { _parent: O });
2416
- for (let G = 0; G < W.length; G++)
2417
- W[G]._parent = r[I]._id;
2448
+ var v;
2449
+ for (let S = 0; S < r.length; S++) {
2450
+ const { _id: L } = r[S];
2451
+ r[S]._id = de();
2452
+ const W = D(r, { _parent: L });
2453
+ for (let C = 0; C < W.length; C++)
2454
+ W[C]._parent = r[S]._id;
2418
2455
  }
2419
- const l = Q(r);
2420
- let f, x;
2421
- return c && (f = te(e, { _id: c }), r[0]._parent = c, x = c), !(f ? Ye(f._type, l._type) : !0) && f && (r[0]._parent = f._parent, x = f._parent), s(r, x, p), t([(k = Q(r)) == null ? void 0 : k._id]), Q(r);
2456
+ const l = Z(r);
2457
+ let f, N;
2458
+ return c && (f = se(e, { _id: c }), r[0]._parent = c, N = c), !(f ? Ye(f._type, l._type) : !0) && f && (r[0]._parent = f._parent, N = f._parent), s(r, N, p), t([(v = Z(r)) == null ? void 0 : v._id]), Z(r);
2422
2459
  },
2423
2460
  [e, t]
2424
2461
  );
2425
- return { addCoreBlock: L(
2462
+ return { addCoreBlock: F(
2426
2463
  (r, c, p) => {
2427
2464
  if (pe(r, "blocks")) {
2428
- const G = r.blocks;
2429
- return n(G, c, p);
2465
+ const C = r.blocks;
2466
+ return n(C, c, p);
2430
2467
  }
2431
- const l = ce(), f = es(r.props), x = [];
2432
- Lt(f, (G, H) => {
2433
- if (zt(G, qe)) {
2434
- const $ = G.replace(qe, "");
2435
- x.push({
2468
+ const l = de(), f = es(r.props), N = [];
2469
+ Lt(f, (C, z) => {
2470
+ if (zt(C, qe)) {
2471
+ const $ = C.replace(qe, "");
2472
+ N.push({
2436
2473
  _id: $,
2437
2474
  _type: "Slot",
2438
2475
  _parent: l,
2439
- _name: r.props[H].name,
2440
- _styles: r.props[H].styles,
2441
- _emptyStyles: r.props[H].emptyStyles
2476
+ _name: r.props[z].name,
2477
+ _styles: r.props[z].styles,
2478
+ _emptyStyles: r.props[z].emptyStyles
2442
2479
  });
2443
2480
  }
2444
2481
  });
2445
- const N = {
2482
+ const j = {
2446
2483
  _type: r.type,
2447
2484
  _id: l,
2448
2485
  ...f
2449
2486
  };
2450
- let k, I;
2451
- if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !wo(k == null ? void 0 : k._type, r.type)) {
2487
+ let v, S;
2488
+ if (c && (v = se(e, { _id: c }), j._parent = c, S = c), !wo(v == null ? void 0 : v._type, r.type)) {
2452
2489
  o({
2453
2490
  variant: "destructive",
2454
2491
  title: "Error",
2455
- description: `"${r.type}" cannot be added under "${k ? k == null ? void 0 : k._type : "root"}"`
2492
+ description: `"${r.type}" cannot be added under "${v ? v == null ? void 0 : v._type : "root"}"`
2456
2493
  }), t([]);
2457
2494
  return;
2458
2495
  }
2459
- !(k ? Ye(k._type, r.type) : !0) && k && (N._parent = k._parent, I = k._parent);
2460
- const W = [N, ...x];
2461
- return s(W, I, p), t([N._id]), N;
2496
+ !(v ? Ye(v._type, r.type) : !0) && v && (j._parent = v._parent, S = v._parent);
2497
+ const W = [j, ...N];
2498
+ return s(W, S, p), t([j._id]), j;
2462
2499
  },
2463
2500
  [n, e, t]
2464
2501
  ), addPredefinedBlock: n };
@@ -2470,7 +2507,7 @@ const Pa = (e) => {
2470
2507
  xl: 1280,
2471
2508
  "2xl": 1536
2472
2509
  }, It = ["xs", "sm", "md", "lg", "xl", "2xl"];
2473
- function Da(e, t) {
2510
+ function Ea(e, t) {
2474
2511
  if (t === null)
2475
2512
  return "baseClasses";
2476
2513
  const s = t.mq;
@@ -2479,7 +2516,7 @@ function Da(e, t) {
2479
2516
  let o = "baseClasses", n = It.indexOf(s);
2480
2517
  for (; n > 0; ) {
2481
2518
  const i = It[n - 1];
2482
- if (te(e, {
2519
+ if (se(e, {
2483
2520
  mq: i,
2484
2521
  property: t.property
2485
2522
  })) {
@@ -2491,27 +2528,27 @@ function Da(e, t) {
2491
2528
  return o;
2492
2529
  }
2493
2530
  const Mt = [];
2494
- function Ea(e = "", t = "", s = []) {
2531
+ function Oa(e = "", t = "", s = []) {
2495
2532
  e = e.trim().replace(/ +/g, "");
2496
- let o = M(
2497
- R(e.split(" "), Pe),
2533
+ let o = D(
2534
+ P(e.split(" "), Pe),
2498
2535
  (l) => !He(l)
2499
- ), n = M(R(t.split(" "), Pe), (l) => !He(l));
2500
- n = M(
2536
+ ), n = D(P(t.split(" "), Pe), (l) => !He(l));
2537
+ n = D(
2501
2538
  n,
2502
- (l) => !q(Mt, l.property)
2539
+ (l) => !Y(Mt, l.property)
2503
2540
  );
2504
2541
  const i = [], r = [];
2505
- ue(s, (l) => {
2506
- const f = Pe(l), x = te(o, yt(f, ["dark", "mq", "mod", "property"]));
2507
- if (x && (o = M(
2542
+ ce(s, (l) => {
2543
+ const f = Pe(l), N = se(o, yt(f, ["dark", "mq", "mod", "property"]));
2544
+ if (N && (o = D(
2508
2545
  o,
2509
- (N) => N.fullCls !== (x == null ? void 0 : x.fullCls)
2510
- )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.property)), Da(o, f) === "baseClasses" && !q(Mt, f.property)) {
2511
- const N = te(n, yt(f, ["property"]));
2512
- x && (n = M(
2546
+ (j) => j.fullCls !== (N == null ? void 0 : N.fullCls)
2547
+ )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = D(n, (j) => j.property !== f.property)), Ea(o, f) === "baseClasses" && !Y(Mt, f.property)) {
2548
+ const j = se(n, yt(f, ["property"]));
2549
+ N && (n = D(
2513
2550
  n,
2514
- (k) => k.fullCls !== (N == null ? void 0 : N.fullCls)
2551
+ (v) => v.fullCls !== (j == null ? void 0 : j.fullCls)
2515
2552
  )), r.push({
2516
2553
  ...f,
2517
2554
  fullCls: f.cls,
@@ -2519,38 +2556,38 @@ function Ea(e = "", t = "", s = []) {
2519
2556
  });
2520
2557
  }
2521
2558
  });
2522
- const c = R(
2559
+ const c = P(
2523
2560
  wt([...o, ...i], (l) => Pt[l.mq]),
2524
2561
  "fullCls"
2525
2562
  ).join(" ");
2526
- return `${R(
2563
+ return `${P(
2527
2564
  wt([...n, ...r], (l) => Pt[l.mq]),
2528
2565
  "fullCls"
2529
2566
  ).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
2530
2567
  }
2531
2568
  const Re = w([]);
2532
2569
  Re.debugLabel = "selectedStylingBlocksAtom";
2533
- const Oa = () => D(Re), La = (e) => {
2570
+ const La = () => E(Re), za = (e) => {
2534
2571
  const t = e.replace(me, "").split(",");
2535
2572
  return { baseClasses: t[0], classes: t[1] };
2536
- }, za = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2537
- const n = M(
2573
+ }, Va = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2574
+ const n = D(
2538
2575
  e(rt),
2539
2576
  (r) => (
2540
2577
  // @ts-ignore
2541
2578
  s.includes(e(r)._id)
2542
2579
  )
2543
- ), i = Q(e(Re));
2544
- return R(n, (r) => {
2545
- const c = e(r), p = F(c, i.prop, `${me},`), { baseClasses: l, classes: f } = La(p);
2580
+ ), i = Z(e(Re));
2581
+ return P(n, (r) => {
2582
+ const c = e(r), p = H(c, i.prop, `${me},`), { baseClasses: l, classes: f } = za(p);
2546
2583
  return {
2547
2584
  ids: [c._id],
2548
- props: { [i.prop]: `${me}${Ea(f, l, o)}` }
2585
+ props: { [i.prop]: `${me}${Oa(f, l, o)}` }
2549
2586
  };
2550
2587
  });
2551
- }), Oi = () => {
2552
- const e = _e(za), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2553
- return L(
2588
+ }), Li = () => {
2589
+ const e = _e(Va), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2590
+ return F(
2554
2591
  (o, n, i = !1) => {
2555
2592
  const r = e({ blockIds: o, newClasses: n });
2556
2593
  if (!i) {
@@ -2561,104 +2598,104 @@ const Oa = () => D(Re), La = (e) => {
2561
2598
  },
2562
2599
  [e]
2563
2600
  );
2564
- }, Va = () => D(Zt), js = Be("canvasWidth", 800), Ss = w((e) => {
2601
+ }, $a = () => E(Zt), js = Be("canvasWidth", 800), Ss = w((e) => {
2565
2602
  const t = e(js);
2566
2603
  return $s(t).toLowerCase();
2567
- }), Li = () => {
2568
- const [e, t] = D(js), s = X(Ss), [o, n] = Va();
2604
+ }), zi = () => {
2605
+ const [e, t] = E(js), s = ee(Ss), [o, n] = $a();
2569
2606
  return Ae(() => {
2570
2607
  o !== "xs" && n(s);
2571
2608
  }, [s, o, n]), [e, s, t];
2572
- }, $a = Be("canvasZoom", 100), zi = () => D($a), As = w([]), Fa = () => {
2573
- const [e, t] = D(As), s = _e(ht), o = L(
2609
+ }, Fa = Be("canvasZoom", 100), Vi = () => E(Fa), As = w([]), Ua = () => {
2610
+ const [e, t] = E(As), s = _e(ht), o = F(
2574
2611
  (n) => {
2575
2612
  t(n), s([]);
2576
2613
  },
2577
2614
  [t, s]
2578
2615
  );
2579
2616
  return [e, o];
2580
- }, ht = w([]), Vi = () => {
2581
- const [e, t] = D(ht), s = _e(As), o = L(
2617
+ }, ht = w([]), $i = () => {
2618
+ const [e, t] = E(ht), s = _e(As), o = F(
2582
2619
  (n) => {
2583
2620
  t(n), s([]);
2584
2621
  },
2585
2622
  [t, s]
2586
2623
  );
2587
2624
  return [e, o];
2588
- }, Cs = Be("darkMode", !1), $i = () => {
2589
- const [e, t] = D(Cs);
2625
+ }, Cs = Be("darkMode", !1), Fi = () => {
2626
+ const [e, t] = E(Cs);
2590
2627
  return [e, t];
2591
- }, Ua = () => {
2628
+ }, Wa = () => {
2592
2629
  const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe();
2593
- return L(
2630
+ return F(
2594
2631
  (o, n = null) => {
2595
2632
  const i = [];
2596
- ue(o, (r) => {
2597
- const c = e.find((N) => N._id === r);
2633
+ ce(o, (r) => {
2634
+ const c = e.find((j) => j._id === r);
2598
2635
  n || (n = c._parent);
2599
- const f = M(
2636
+ const f = D(
2600
2637
  e,
2601
- (N) => Et(n) ? N._parent === n : !c._parent
2602
- ).indexOf(c) + 1, x = No(e, r, n);
2603
- s(x, n, f), i.push(F(x, "0._id", ""));
2638
+ (j) => Et(n) ? j._parent === n : !c._parent
2639
+ ).indexOf(c) + 1, N = No(e, r, n);
2640
+ s(N, n, f), i.push(H(N, "0._id", ""));
2604
2641
  }), t(i);
2605
2642
  },
2606
2643
  [e, t]
2607
2644
  );
2608
- }, Wa = w([]), Fi = () => {
2609
- const [e, t] = D(Wa), s = L(
2645
+ }, Ga = w([]), Ui = () => {
2646
+ const [e, t] = E(Ga), s = F(
2610
2647
  (o) => {
2611
- t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
2648
+ t((n) => Y(n, o) ? Ot(n, o) : [...n, o]);
2612
2649
  },
2613
2650
  [t]
2614
2651
  );
2615
2652
  return [e, t, s];
2616
- }, Ga = w(""), Ha = () => D(Ga), qa = () => {
2617
- const e = X(ae);
2618
- return L(
2653
+ }, Ha = w(""), qa = () => E(Ha), Ka = () => {
2654
+ const e = ee(re);
2655
+ return F(
2619
2656
  (t, s) => {
2620
- const o = R(e, (n) => (q(t, F(n, "_id")) && je(n, "_parent", s), n));
2657
+ const o = P(e, (n) => (Y(t, H(n, "_id")) && je(n, "_parent", s), n));
2621
2658
  console.log("newBlocks", o);
2622
2659
  },
2623
2660
  [e]
2624
2661
  );
2625
- }, Ui = () => {
2662
+ }, Wi = () => {
2626
2663
  console.warn("usePasteBlocks is not implemented");
2627
- const e = X(ht), [t, s] = Fa(), o = Ua(), n = qa();
2664
+ const e = ee(ht), [t, s] = Ua(), o = Wa(), n = Ka();
2628
2665
  return {
2629
2666
  canPaste: Os(
2630
2667
  () => t.length > 0 || e.length > 0,
2631
2668
  [e, t]
2632
2669
  ),
2633
- pasteBlocks: L(
2670
+ pasteBlocks: F(
2634
2671
  (r) => {
2635
2672
  Ee(e) ? n(t, r) : o(e, r), s(() => []);
2636
2673
  },
2637
2674
  [t, e, o, n, s]
2638
2675
  )
2639
2676
  };
2640
- }, Ka = w(!1), Wi = () => {
2641
- const [e, t] = D(Ka);
2677
+ }, Ja = w(!1), Gi = () => {
2678
+ const [e, t] = E(Ja);
2642
2679
  return [e, t];
2643
- }, Ja = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2644
- const n = Q(e(Re)), i = M(
2680
+ }, Ya = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2681
+ const n = Z(e(Re)), i = D(
2645
2682
  e(rt),
2646
2683
  (r) => (
2647
2684
  // @ts-ignore
2648
2685
  s.includes(e(r)._id)
2649
2686
  )
2650
2687
  );
2651
- return R(i, (r) => {
2688
+ return P(i, (r) => {
2652
2689
  const c = e(r), p = o;
2653
- let { classes: l, baseClasses: f } = yo(F(c, n.prop, "styles:,"));
2654
- return ue(p, (x) => {
2655
- const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2656
- l = l.replace(N, " ").replace(/ +/g, " ").trim();
2657
- const k = Q(x.split(":"));
2658
- q(["2xl", "xl", "lg", "md", "sm"], k) && p.push(x.split(":").pop().trim());
2659
- }), ue(p, (x) => {
2660
- const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2661
- f = f.replace(N, " ").replace(/ +/g, " ").trim();
2690
+ let { classes: l, baseClasses: f } = yo(H(c, n.prop, "styles:,"));
2691
+ return ce(p, (N) => {
2692
+ const j = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2693
+ l = l.replace(j, " ").replace(/ +/g, " ").trim();
2694
+ const v = Z(N.split(":"));
2695
+ Y(["2xl", "xl", "lg", "md", "sm"], v) && p.push(N.split(":").pop().trim());
2696
+ }), ce(p, (N) => {
2697
+ const j = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2698
+ f = f.replace(j, " ").replace(/ +/g, " ").trim();
2662
2699
  }), {
2663
2700
  ids: [c._id],
2664
2701
  props: {
@@ -2666,9 +2703,9 @@ const Oa = () => D(Re), La = (e) => {
2666
2703
  }
2667
2704
  };
2668
2705
  });
2669
- }), Gi = () => {
2670
- const { updateBlocks: e } = xe(), t = _e(Ja);
2671
- return L(
2706
+ }), Hi = () => {
2707
+ const { updateBlocks: e } = xe(), t = _e(Ya);
2708
+ return F(
2672
2709
  (s, o) => {
2673
2710
  const n = t({ blockIds: s, fullClasses: o });
2674
2711
  e(s, n[0].props);
@@ -2676,16 +2713,16 @@ const Oa = () => D(Re), La = (e) => {
2676
2713
  [t]
2677
2714
  );
2678
2715
  }, _s = w((e) => {
2679
- const t = Q(e(Re)), s = e(ct);
2680
- if (!t || t.blockId !== F(s, "_id", null))
2716
+ const t = Z(e(Re)), s = e(ct);
2717
+ if (!t || t.blockId !== H(s, "_id", null))
2681
2718
  return [];
2682
- const n = F(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
2683
- return M(R(n.trim().split(" "), Pe), (i) => !He(i));
2684
- }), Hi = () => X(_s), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ya = w((e) => {
2685
- const t = e(Ss), s = e(dt), o = e(Cs), n = Qa(t);
2686
- let i = M(e(_s), { mod: s });
2687
- return zt(s, "_") || (i = M(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = M(i, { dark: !1 })), i;
2688
- }), Qa = (e) => {
2719
+ const n = H(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
2720
+ return D(P(n.trim().split(" "), Pe), (i) => !He(i));
2721
+ }), qi = () => ee(_s), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Qa = w((e) => {
2722
+ const t = e(Ss), s = e(dt), o = e(Cs), n = Xa(t);
2723
+ let i = D(e(_s), { mod: s });
2724
+ return zt(s, "_") || (i = D(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = D(i, { dark: !1 })), i;
2725
+ }), Xa = (e) => {
2689
2726
  let t = [];
2690
2727
  switch (e) {
2691
2728
  case "xs":
@@ -2711,17 +2748,17 @@ const Oa = () => D(Re), La = (e) => {
2711
2748
  break;
2712
2749
  }
2713
2750
  return t;
2714
- }, qi = () => X(Ya), Ki = () => D(dt), Ji = () => {
2751
+ }, Ki = () => ee(Qa), Ji = () => E(dt), Yi = () => {
2715
2752
  const { updateBlocks: e } = xe();
2716
- return L(
2753
+ return F(
2717
2754
  (t, s, o) => {
2718
2755
  e(t, s, o);
2719
2756
  },
2720
2757
  [e]
2721
2758
  );
2722
- }, Yi = () => {
2759
+ }, Qi = () => {
2723
2760
  const { updateBlocksRuntime: e } = xe();
2724
- return L(
2761
+ return F(
2725
2762
  (t, s) => {
2726
2763
  e(t, s);
2727
2764
  },
@@ -2732,15 +2769,15 @@ const Oa = () => D(Re), La = (e) => {
2732
2769
  props: {},
2733
2770
  modalProps: {},
2734
2771
  backdropClose: !0
2735
- }, Xa = w(Bs), Qi = () => {
2736
- const [e, t] = D(Xa), s = L(
2772
+ }, Za = w(Bs), Xi = () => {
2773
+ const [e, t] = E(Za), s = F(
2737
2774
  (n, i = {}, r = {}) => {
2738
2775
  t({ name: n, props: i, modalProps: r });
2739
2776
  },
2740
2777
  [t]
2741
- ), o = L(
2778
+ ), o = F(
2742
2779
  (...n) => {
2743
- F(e, "props.onClose", () => {
2780
+ H(e, "props.onClose", () => {
2744
2781
  })(...n), t(Bs);
2745
2782
  },
2746
2783
  [t, e]
@@ -2750,47 +2787,47 @@ const Oa = () => D(Re), La = (e) => {
2750
2787
  openModal: s,
2751
2788
  closeModal: o
2752
2789
  };
2753
- }, Xi = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(ae)), Rs = w(!1);
2790
+ }, Zi = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), ee(re)), Rs = w(!1);
2754
2791
  Rs.debugLabel = "readOnlyModeAtom";
2755
- const Za = w("online");
2756
- Za.debugLabel = "networkModeAtom";
2757
- const er = w(!1);
2758
- er.debugLabel = "codeEditorOpenAtom";
2792
+ const er = w("online");
2793
+ er.debugLabel = "networkModeAtom";
2759
2794
  const tr = w(!1);
2760
- tr.debugLabel = "editLayerNameAtom";
2761
- const sr = w("");
2762
- sr.debugLabel = "activeLanguageAtom";
2795
+ tr.debugLabel = "codeEditorOpenAtom";
2796
+ const sr = w(!1);
2797
+ sr.debugLabel = "editLayerNameAtom";
2763
2798
  const or = w("");
2764
- or.debugLabel = "primaryLanguageAtom";
2765
- const nr = w(null);
2766
- nr.debugLabel = "canvasIframeAtom";
2767
- const ar = w("outline");
2768
- ar.debugLabel = "activePanelAtom";
2769
- const rr = w("");
2770
- rr.debugLabel = "showPredefinedBlockCategoryAtom";
2799
+ or.debugLabel = "activeLanguageAtom";
2800
+ const nr = w("");
2801
+ nr.debugLabel = "primaryLanguageAtom";
2802
+ const ar = w(null);
2803
+ ar.debugLabel = "canvasIframeAtom";
2804
+ const rr = w("outline");
2805
+ rr.debugLabel = "activePanelAtom";
2806
+ const ir = w("");
2807
+ ir.debugLabel = "showPredefinedBlockCategoryAtom";
2771
2808
  const Ts = w({ undoCount: 0, redoCount: 0 });
2772
2809
  Ts.debugLabel = "historyStatesAtom";
2773
- const ir = w("");
2774
- ir.debugLabel = "inlineEditingActiveAtom";
2775
- const lr = w(!1);
2776
- lr.debugLabel = "draggingFlagAtom";
2777
- const cr = w("");
2778
- cr.debugLabel = "draggedBlockIdAtom";
2779
- const Zi = () => X(Rs), dr = w(""), ur = w(null), el = () => D(dr), tl = () => D(ur), mr = Be("selectedBreakpoints", ["XS", "MD", "XL"]), sl = () => {
2780
- const [e, t] = D(mr);
2810
+ const lr = w("");
2811
+ lr.debugLabel = "inlineEditingActiveAtom";
2812
+ const cr = w(!1);
2813
+ cr.debugLabel = "draggingFlagAtom";
2814
+ const dr = w("");
2815
+ dr.debugLabel = "draggedBlockIdAtom";
2816
+ const el = () => ee(Rs), ur = w(""), mr = w(null), tl = () => E(ur), sl = () => E(mr), fr = Be("selectedBreakpoints", ["XS", "MD", "XL"]), ol = () => {
2817
+ const [e, t] = E(fr);
2781
2818
  return [e, t];
2782
- }, ol = () => {
2783
- const e = _e(Ts), { clear: t } = rs(), [, s] = Ve(), [, o] = Ha(), [, n] = Oa();
2819
+ }, nl = () => {
2820
+ const e = _e(Ts), { clear: t } = rs(), [, s] = Ve(), [, o] = qa(), [, n] = La();
2784
2821
  return () => {
2785
2822
  s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
2786
2823
  };
2787
- }, fr = w([]), nl = () => {
2788
- const [e, t] = Ce(!1), [s, o] = D(fr), n = Ne("getUILibraryBlocks", () => []);
2824
+ }, pr = w([]), al = () => {
2825
+ const [e, t] = Ce(!1), [s, o] = E(pr), n = Ne("getUILibraryBlocks", () => []);
2789
2826
  return Ae(() => {
2790
2827
  (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
2791
2828
  }, []), { data: s, isLoading: e };
2792
- }, al = () => {
2793
- const [e, t] = Ce(null), s = L(async (o) => {
2829
+ }, rl = () => {
2830
+ const [e, t] = Ce(null), s = F(async (o) => {
2794
2831
  if (!(navigator != null && navigator.clipboard))
2795
2832
  return console.warn("Clipboard not supported"), !1;
2796
2833
  try {
@@ -2802,213 +2839,213 @@ const Zi = () => X(Rs), dr = w(""), ur = w(null), el = () => D(dr), tl = () => D
2802
2839
  return [e, s];
2803
2840
  };
2804
2841
  export {
2805
- qi as $,
2806
- Jr as A,
2807
- qo as B,
2842
+ Ki as $,
2843
+ Yr as A,
2844
+ Ko as B,
2808
2845
  pt as C,
2809
- Or as D,
2846
+ Lr as D,
2810
2847
  ye as E,
2811
2848
  ts as F,
2812
2849
  Ht as G,
2813
2850
  as as H,
2814
- Ni as I,
2815
- Zi as J,
2816
- Qi as K,
2817
- Ei as L,
2818
- Oi as M,
2819
- Li as N,
2820
- zi as O,
2821
- Vi as P,
2822
- al as Q,
2851
+ ki as I,
2852
+ el as J,
2853
+ Xi as K,
2854
+ Oi as L,
2855
+ Li as M,
2856
+ zi as N,
2857
+ Vi as O,
2858
+ $i as P,
2859
+ rl as Q,
2823
2860
  Eo as R,
2824
- ki as S,
2825
- Xr as T,
2826
- Fa as U,
2827
- $i as V,
2861
+ ji as S,
2862
+ Zr as T,
2863
+ Ua as U,
2864
+ Fi as V,
2828
2865
  Vo as W,
2829
- Fi as X,
2830
- Ha as Y,
2831
- Ui as Z,
2832
- Gi as _,
2833
- Yr as a,
2834
- ha as a$,
2835
- Hi as a0,
2836
- Fr as a1,
2837
- Va as a2,
2838
- nl as a3,
2839
- Ki as a4,
2840
- Ji as a5,
2841
- Yi as a6,
2842
- $r as a7,
2843
- Xi as a8,
2844
- el as a9,
2845
- ia as aA,
2846
- kn as aB,
2847
- Ho as aC,
2848
- li as aD,
2849
- ci as aE,
2850
- Vn as aF,
2851
- bi as aG,
2852
- xi as aH,
2853
- ea as aI,
2854
- na as aJ,
2855
- aa as aK,
2856
- sa as aL,
2866
+ Ui as X,
2867
+ qa as Y,
2868
+ Wi as Z,
2869
+ Hi as _,
2870
+ Qr as a,
2871
+ va as a$,
2872
+ qi as a0,
2873
+ Ur as a1,
2874
+ $a as a2,
2875
+ al as a3,
2876
+ Ji as a4,
2877
+ Yi as a5,
2878
+ Qi as a6,
2879
+ Fr as a7,
2880
+ Zi as a8,
2881
+ tl as a9,
2882
+ la as aA,
2883
+ jn as aB,
2884
+ qo as aC,
2885
+ ci as aD,
2886
+ di as aE,
2887
+ $n as aF,
2888
+ xi as aG,
2889
+ hi as aH,
2890
+ ta as aI,
2891
+ aa as aJ,
2892
+ ra as aK,
2893
+ oa as aL,
2857
2894
  xe as aM,
2858
- lr as aN,
2859
- ir as aO,
2860
- tr as aP,
2861
- cr as aQ,
2862
- Lr as aR,
2863
- zr as aS,
2864
- Za as aT,
2865
- nr as aU,
2866
- ti as aV,
2867
- si as aW,
2868
- _n as aX,
2895
+ cr as aN,
2896
+ lr as aO,
2897
+ sr as aP,
2898
+ dr as aQ,
2899
+ zr as aR,
2900
+ Vr as aS,
2901
+ er as aT,
2902
+ ar as aU,
2903
+ si as aV,
2904
+ oi as aW,
2905
+ Bn as aX,
2869
2906
  Ns as aY,
2870
- ba as aZ,
2871
- xa as a_,
2872
- tl as aa,
2873
- sl as ab,
2874
- Oa as ac,
2907
+ xa as aZ,
2908
+ ha as a_,
2909
+ sl as aa,
2910
+ ol as ab,
2911
+ La as ac,
2875
2912
  cs as ad,
2876
2913
  xt as ae,
2877
- un as af,
2878
- fn as ag,
2879
- pn as ah,
2880
- ln as ai,
2881
- di as aj,
2882
- $n as ak,
2883
- mi as al,
2884
- Fn as am,
2885
- Wn as an,
2886
- dn as ao,
2887
- Zr as ap,
2888
- ei as aq,
2889
- Cn as ar,
2890
- Kr as as,
2891
- ar as at,
2892
- An as au,
2914
+ mn as af,
2915
+ pn as ag,
2916
+ gn as ah,
2917
+ cn as ai,
2918
+ ui as aj,
2919
+ Fn as ak,
2920
+ fi as al,
2921
+ Un as am,
2922
+ Gn as an,
2923
+ un as ao,
2924
+ ei as ap,
2925
+ ti as aq,
2926
+ _n as ar,
2927
+ Jr as as,
2928
+ rr as at,
2929
+ Cn as au,
2893
2930
  fs as av,
2894
2931
  Xe as aw,
2895
2932
  Ze as ax,
2896
- ui as ay,
2897
- Un as az,
2898
- sn as b,
2899
- Kn as b$,
2900
- va as b0,
2901
- wa as b1,
2902
- mn as b2,
2933
+ mi as ay,
2934
+ Wn as az,
2935
+ on as b,
2936
+ Jn as b$,
2937
+ ya as b0,
2938
+ Na as b1,
2939
+ fn as b2,
2903
2940
  Bt as b3,
2904
2941
  _t as b4,
2905
- Mi as b5,
2906
- Ti as b6,
2907
- Ii as b7,
2908
- Di as b8,
2909
- qr as b9,
2910
- Wo as bA,
2942
+ Di as b5,
2943
+ Pi as b6,
2944
+ Mi as b7,
2945
+ Ei as b8,
2946
+ Kr as b9,
2947
+ Go as bA,
2911
2948
  bt as bB,
2912
- en as bC,
2913
- tn as bD,
2914
- xn as bE,
2949
+ tn as bC,
2950
+ sn as bD,
2951
+ hn as bE,
2915
2952
  ms as bF,
2916
- Bn as bG,
2917
- oi as bH,
2918
- Rn as bI,
2919
- In as bJ,
2920
- Mn as bK,
2921
- Ln as bL,
2922
- On as bM,
2923
- Dn as bN,
2924
- ii as bO,
2925
- En as bP,
2926
- ai as bQ,
2927
- Pn as bR,
2928
- Tn as bS,
2929
- ni as bT,
2930
- ri as bU,
2931
- zn as bV,
2932
- Gn as bW,
2933
- fi as bX,
2934
- pi as bY,
2935
- gi as bZ,
2936
- qn as b_,
2937
- Ko as ba,
2938
- Jo as bb,
2939
- Yo as bc,
2940
- wn as bd,
2941
- Qr as be,
2942
- Sn as bf,
2943
- hi as bg,
2944
- ta as bh,
2945
- ra as bi,
2946
- gn as bj,
2947
- bn as bk,
2948
- hn as bl,
2949
- vn as bm,
2950
- jn as bn,
2951
- yn as bo,
2952
- Xo as bp,
2953
- Zo as bq,
2954
- rr as br,
2955
- Aa as bs,
2956
- Sa as bt,
2957
- Si as bu,
2958
- Ai as bv,
2959
- Wr as bw,
2960
- Vr as bx,
2953
+ Rn as bG,
2954
+ ni as bH,
2955
+ Tn as bI,
2956
+ Mn as bJ,
2957
+ Dn as bK,
2958
+ zn as bL,
2959
+ Ln as bM,
2960
+ En as bN,
2961
+ li as bO,
2962
+ On as bP,
2963
+ ri as bQ,
2964
+ In as bR,
2965
+ Pn as bS,
2966
+ ai as bT,
2967
+ ii as bU,
2968
+ Vn as bV,
2969
+ Hn as bW,
2970
+ pi as bX,
2971
+ gi as bY,
2972
+ bi as bZ,
2973
+ Kn as b_,
2974
+ Jo as ba,
2975
+ Yo as bb,
2976
+ Qo as bc,
2977
+ Nn as bd,
2978
+ Xr as be,
2979
+ An as bf,
2980
+ vi as bg,
2981
+ sa as bh,
2982
+ ia as bi,
2983
+ bn as bj,
2984
+ xn as bk,
2985
+ vn as bl,
2986
+ yn as bm,
2987
+ Sn as bn,
2988
+ wn as bo,
2989
+ Zo as bp,
2990
+ en as bq,
2991
+ ir as br,
2992
+ Ca as bs,
2993
+ Aa as bt,
2994
+ Ai as bu,
2995
+ Ci as bv,
2996
+ Gr as bw,
2997
+ $r as bx,
2961
2998
  ko as by,
2962
- Go as bz,
2963
- on as c,
2964
- Jn as c0,
2965
- Yn as c1,
2966
- Qn as c2,
2967
- oa as c3,
2968
- vi as c4,
2969
- yi as c5,
2970
- Zn as c6,
2971
- Xn as c7,
2972
- wi as c8,
2973
- ua as c9,
2999
+ Ho as bz,
3000
+ nn as c,
3001
+ Yn as c0,
3002
+ Qn as c1,
3003
+ Xn as c2,
3004
+ na as c3,
3005
+ yi as c4,
3006
+ wi as c5,
3007
+ ea as c6,
3008
+ Zn as c7,
3009
+ Ni as c8,
3010
+ ma as c9,
2974
3011
  bs as ca,
2975
- ma as cb,
2976
- ji as cc,
2977
- Na as cd,
2978
- ya as ce,
2979
- Ca as cf,
2980
- _a as cg,
2981
- Ba as ch,
2982
- Ra as ci,
2983
- Ta as cj,
2984
- Ci as ck,
2985
- _i as cl,
2986
- Bi as cm,
2987
- ja as cn,
2988
- ka as co,
2989
- Ri as cp,
2990
- Pi as cq,
2991
- an as d,
2992
- rn as e,
2993
- nn as f,
2994
- cn as g,
3012
+ fa as cb,
3013
+ Si as cc,
3014
+ ka as cd,
3015
+ wa as ce,
3016
+ _a as cf,
3017
+ Ba as cg,
3018
+ Ra as ch,
3019
+ Ta as ci,
3020
+ Pa as cj,
3021
+ _i as ck,
3022
+ Bi as cl,
3023
+ Ri as cm,
3024
+ Sa as cn,
3025
+ ja as co,
3026
+ Ti as cp,
3027
+ Ii as cq,
3028
+ rn as d,
3029
+ ln as e,
3030
+ an as f,
3031
+ dn as g,
2995
3032
  Ne as h,
2996
3033
  Wt as i,
2997
- Dr as j,
3034
+ Er as j,
2998
3035
  so as k,
2999
- oe as l,
3036
+ ne as l,
3000
3037
  co as m,
3001
3038
  lo as n,
3002
3039
  Be as o,
3003
- Er as p,
3004
- Wi as q,
3040
+ Or as p,
3041
+ Gi as q,
3005
3042
  Ve as r,
3006
- Hr as s,
3007
- Ua as t,
3008
- ol as u,
3043
+ qr as s,
3044
+ Wa as t,
3045
+ nl as u,
3009
3046
  rs as v,
3010
- ae as w,
3047
+ re as w,
3011
3048
  vo as x,
3012
3049
  $o as y,
3013
- Gr as z
3050
+ Hr as z
3014
3051
  };