@chaibuilder/sdk 1.2.17 → 1.2.19

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 (91) hide show
  1. package/dist/AddBlocks-KeHVFaIr.cjs +1 -0
  2. package/dist/{AddBlocks--SllKzEG.js → AddBlocks-gcTaEIKO.js} +5 -4
  3. package/dist/BrandingOptions-I2I8w6E9.cjs +1 -0
  4. package/dist/{BrandingOptions-IqtZrxqX.js → BrandingOptions-bfiFY0VR.js} +11 -10
  5. package/dist/{CanvasArea-iLUw-tom.cjs → CanvasArea-JfHkTnQD.cjs} +1 -1
  6. package/dist/{CanvasArea-T1XNnB7d.js → CanvasArea-xvMCbQDL.js} +8 -7
  7. package/dist/{CurrentPage-TCduhO-X.js → CurrentPage-0Ap2N0uc.js} +13 -12
  8. package/dist/CurrentPage-vj52UxMA.cjs +1 -0
  9. package/dist/ListTree-Vq0_s1wC.cjs +1 -0
  10. package/dist/ListTree-k-QMO740.js +96 -0
  11. package/dist/{Outline-3IPrK7F-.js → Outline-HI6-c9nf.js} +96 -92
  12. package/dist/Outline-fAflJ_lN.cjs +1 -0
  13. package/dist/{PagesPanel-7goyNL8t.js → PagesPanel-Pk-C1956.js} +7 -6
  14. package/dist/PagesPanel-ug8Tmva6.cjs +1 -0
  15. package/dist/{ProjectPanel-CdPFwsXg.js → ProjectPanel-_KQBhuPO.js} +8 -7
  16. package/dist/ProjectPanel-o8-6cPX-.cjs +1 -0
  17. package/dist/Settings-Cc9eV4VG.cjs +1 -0
  18. package/dist/{Settings-pva9XRUC.js → Settings-XtAatoiu.js} +5 -4
  19. package/dist/{SidePanels-u5QXQrWL.js → SidePanels-O52zKXbH.js} +134 -133
  20. package/dist/SidePanels-ugRobm34.cjs +1 -0
  21. package/dist/Topbar-e5MGWX9n.cjs +1 -0
  22. package/dist/{Topbar-S3zgo3N8.js → Topbar-oTx7a12r.js} +5 -4
  23. package/dist/{UnsplashImages-132gZ842.js → UnsplashImages-5A21uzMK.js} +5 -4
  24. package/dist/UnsplashImages-KSbKGs91.cjs +1 -0
  25. package/dist/UploadImages-V42YSRVO.cjs +1 -0
  26. package/dist/{UploadImages-tr54Ik1I.js → UploadImages-V_54lCAO.js} +5 -4
  27. package/dist/{add-page-modal-AsP5g0Fp.js → add-page-modal-dKQLw7RQ.js} +17 -16
  28. package/dist/add-page-modal-xMedOdsp.cjs +1 -0
  29. package/dist/{confirm-alert-dYoU1ln_.js → confirm-alert-8GP3bKH_.js} +5 -4
  30. package/dist/{confirm-alert-bw0VBgoG.cjs → confirm-alert-KtW-4OjG.cjs} +1 -1
  31. package/dist/core.cjs +1 -1
  32. package/dist/core.d.ts +3 -2
  33. package/dist/core.js +47 -46
  34. package/dist/defaultTheme-7Lk2zq60.cjs +1 -0
  35. package/dist/{defaultTheme-s0cpA5Oy.js → defaultTheme-gunU_Fe5.js} +31 -33
  36. package/dist/{delete-page-modal-_Hy6ls6b.js → delete-page-modal-Zb5ld6O-.js} +7 -6
  37. package/dist/delete-page-modal-lebJCBBe.cjs +1 -0
  38. package/dist/email-blocks.cjs +1 -1
  39. package/dist/email-blocks.js +79 -79
  40. package/dist/email.cjs +1 -1
  41. package/dist/email.d.ts +3 -2
  42. package/dist/email.js +6 -5
  43. package/dist/{form-jzX2YXUO.cjs → form-o6_55v8F.cjs} +1 -1
  44. package/dist/{form-f13cs-An.js → form-yyU2x7So.js} +1 -1
  45. package/dist/{index-4xyhDki2.cjs → index-BMZLAJUV.cjs} +1 -1
  46. package/dist/{index-0JU8vPT_.cjs → index-JdnF6lYP.cjs} +42 -42
  47. package/dist/{index-MaXiXghQ.js → index-WP7IRkij.js} +915 -915
  48. package/dist/{index-ugsWasKp.js → index-lFcrvDFC.js} +3 -3
  49. package/dist/index-thKfFhmr.cjs +1 -0
  50. package/dist/{index-eyVVbA05.js → index-yILWlilS.js} +3142 -3132
  51. package/dist/lib.cjs +1 -1
  52. package/dist/lib.js +1 -1
  53. package/dist/{page-viewer-P5Im9RfR.js → page-viewer-3QXwPGpg.js} +11 -10
  54. package/dist/page-viewer-DTIblLiz.cjs +1 -0
  55. package/dist/{project-general-setting-R3pVVXmY.js → project-general-setting-UalRmyHm.js} +8 -7
  56. package/dist/project-general-setting-g7WhM3hc.cjs +1 -0
  57. package/dist/{project-seo-setting-pGpm3-6U.js → project-seo-setting-8FsvPSPl.js} +6 -5
  58. package/dist/project-seo-setting-xoeLQVj3.cjs +1 -0
  59. package/dist/render.cjs +1 -1
  60. package/dist/render.d.ts +10 -0
  61. package/dist/render.js +164 -78
  62. package/dist/{single-page-detail-m-THVQnz.js → single-page-detail-GaB85dNv.js} +9 -8
  63. package/dist/single-page-detail-XdBysrE_.cjs +1 -0
  64. package/dist/studio.cjs +1 -1
  65. package/dist/studio.d.ts +3 -2
  66. package/dist/studio.js +6 -5
  67. package/dist/ui.cjs +1 -1
  68. package/dist/ui.d.ts +1 -1
  69. package/dist/ui.js +140 -139
  70. package/dist/{useAddBlockByDrop-6qaL4Ufz.cjs → useAddBlockByDrop-6EbioQV4.cjs} +1 -1
  71. package/dist/{useAddBlockByDrop-vGme3brY.js → useAddBlockByDrop-BIK2fdgj.js} +1 -1
  72. package/package.json +2 -1
  73. package/dist/AddBlocks-7TF41ISQ.cjs +0 -1
  74. package/dist/BrandingOptions-uKE1vuWd.cjs +0 -1
  75. package/dist/CurrentPage-N5hSL1xB.cjs +0 -1
  76. package/dist/Outline-g4TXJ-hK.cjs +0 -1
  77. package/dist/PagesPanel-qI3sijis.cjs +0 -1
  78. package/dist/ProjectPanel-bMllQ4_a.cjs +0 -1
  79. package/dist/Settings-8f4ivm4-.cjs +0 -1
  80. package/dist/SidePanels-7HqZM4-j.cjs +0 -1
  81. package/dist/Topbar-poeqjjZb.cjs +0 -1
  82. package/dist/UnsplashImages-BOypn-e5.cjs +0 -1
  83. package/dist/UploadImages-giiNNHKq.cjs +0 -1
  84. package/dist/add-page-modal-ajpd-Gmw.cjs +0 -1
  85. package/dist/defaultTheme-1XwPZT2b.cjs +0 -1
  86. package/dist/delete-page-modal-H4JOWYZe.cjs +0 -1
  87. package/dist/index-MQH3blB-.cjs +0 -1
  88. package/dist/page-viewer-Xj9v8mji.cjs +0 -1
  89. package/dist/project-general-setting--5DT1RoW.cjs +0 -1
  90. package/dist/project-seo-setting-3DzzF83_.cjs +0 -1
  91. package/dist/single-page-detail-nJzGUDym.cjs +0 -1
@@ -1,44 +1,45 @@
1
1
  import * as m from "react";
2
- import tt, { createContext as Is, useContext as Ms, useRef as vr, createElement as yr, useReducer as Ds, useEffect as Ce, useDebugValue as Es, useCallback as L, useMemo as Os, useState as Be, Suspense as vt } from "react";
3
- import { has as pe, get as F, flatten as ne, filter as M, omit as Oe, isEmpty as ve, isString as Et, find as te, map as R, each as ue, set as Se, includes as q, isUndefined as Nr, without as Ot, forIn as Lt, isObject as Ls, first as Q, noop as zs, keys as Vs, startsWith as zt, isNull as qe, pick as yt, sortBy as wt } from "lodash-es";
4
- import { g as ce, a as $s } from "./Functions-7jnEwJyw.js";
5
- import { getBlockComponent as Le } from "@chaibuilder/runtime";
6
- import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as _e } from "jotai";
7
- import Vt from "flat-to-nested";
8
- import { a as me, I as $t, S as Ke, B as Je } from "./MODIFIERS-WQdaNvb8.js";
9
- import { g as Fs } from "./_commonjsHelpers-UyOWmZb0.js";
10
- import { useThrottledCallback as Us } from "@react-hookz/web";
2
+ import et, { createContext as Ms, useContext as Ds, useRef as br, createElement as xr, useReducer as Es, useEffect as Ae, useDebugValue as Os, useCallback as L, useMemo as Ls, useState as Ce, Suspense as vt } from "react";
3
+ import { has as fe, get as F, filter as M, map as R, includes as q, find as te, isUndefined as vr, without as Et, set as je, isEmpty as _e, forIn as Ot, each as de, isObject as zs, flatten as ne, first as Q, omit as tt, noop as Vs, keys as $s, startsWith as Lt, isNull as He, pick as yt, sortBy as wt, isString as zt } from "lodash-es";
4
+ import { g as le, a as Fs } from "./Functions-7jnEwJyw.js";
5
+ import { getBlockComponent as Oe } from "@chaibuilder/runtime";
6
+ import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as Be } from "jotai";
7
+ import { a as ue, I as Vt, S as qe, B as Ke } from "./MODIFIERS-WQdaNvb8.js";
8
+ import { g as Us } from "./_commonjsHelpers-UyOWmZb0.js";
9
+ import { useThrottledCallback as Ws } from "@react-hookz/web";
10
+ import $t from "flat-to-nested";
11
11
  import { j as a } from "./jsx-runtime-WbnYoNE9.js";
12
12
  import * as Ft from "@radix-ui/react-toggle";
13
- import { cva as ge } from "class-variance-authority";
13
+ import { cva as pe } from "class-variance-authority";
14
14
  import { a as d, c as Ie } from "./Class-3k8xjeiM.js";
15
- import * as Ye from "@radix-ui/react-switch";
16
- import { Slot as Ws } from "@radix-ui/react-slot";
17
- import * as fe from "@radix-ui/react-accordion";
18
- import { ChevronDownIcon as Gs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as ze, DotFilledIcon as nt, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
15
+ import * as Je from "@radix-ui/react-switch";
16
+ import { Slot as Gs } from "@radix-ui/react-slot";
17
+ import * as me from "@radix-ui/react-accordion";
18
+ import { ChevronDownIcon as Hs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as Le, DotFilledIcon as nt, CaretSortIcon as qs, MagnifyingGlassIcon as Ks } from "@radix-ui/react-icons";
19
19
  import * as U from "@radix-ui/react-alert-dialog";
20
- import * as _ from "@radix-ui/react-dialog";
20
+ import * as B from "@radix-ui/react-dialog";
21
21
  import * as Ut from "@radix-ui/react-label";
22
- import * as de from "@radix-ui/react-scroll-area";
23
- import * as be from "@radix-ui/react-tabs";
24
- import * as ye from "@radix-ui/react-tooltip";
25
- import * as Ae from "@radix-ui/react-popover";
22
+ import * as ce from "@radix-ui/react-scroll-area";
23
+ import * as ge from "@radix-ui/react-tabs";
24
+ import * as ve from "@radix-ui/react-tooltip";
25
+ import * as Se from "@radix-ui/react-popover";
26
26
  import * as C from "@radix-ui/react-menubar";
27
- import * as Ve from "@radix-ui/react-hover-card";
27
+ import * as ze from "@radix-ui/react-hover-card";
28
28
  import * as z from "@radix-ui/react-select";
29
29
  import * as T from "@radix-ui/react-dropdown-menu";
30
30
  import * as Wt from "@radix-ui/react-separator";
31
31
  import * as Y from "@radix-ui/react-toast";
32
32
  import { Command as K } from "cmdk";
33
33
  import * as P from "@radix-ui/react-context-menu";
34
- import Ks, { IconPickerItem as Js } from "react-icons-picker";
35
- import Ys from "react-dom";
36
- import Qs from "react-quill";
34
+ import Js, { IconPickerItem as Ys } from "react-icons-picker";
35
+ import Qs from "react-dom";
36
+ import Xs from "react-quill";
37
+ import { isEmpty as Or } from "lodash";
37
38
  import "react-i18next";
38
39
  var V = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
39
- let Xs = 0;
40
+ let Zs = 0;
40
41
  function oe(e, t) {
41
- const s = `atom${++Xs}`, o = {
42
+ const s = `atom${++Zs}`, o = {
42
43
  toString: () => s
43
44
  };
44
45
  return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, i, r) => i(
@@ -46,7 +47,7 @@ function oe(e, t) {
46
47
  typeof r == "function" ? r(n(o)) : r
47
48
  )), t && (o.write = t), o;
48
49
  }
49
- const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new WeakMap(), Zs = (e, t) => {
50
+ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Ee = /* @__PURE__ */ new WeakMap(), eo = (e, t) => {
50
51
  Ee.set(e, t), e.catch(() => {
51
52
  }).finally(() => Ee.delete(e));
52
53
  }, Nt = (e, t) => {
@@ -56,11 +57,11 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
56
57
  e.status = "fulfilled", e.value = t;
57
58
  }, jt = (e, t) => {
58
59
  e.status = "rejected", e.reason = t;
59
- }, eo = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), St = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), he = (e) => "v" in e && e.v instanceof Promise, to = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Pe = (e) => {
60
+ }, to = (e) => typeof (e == null ? void 0 : e.then) == "function", we = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), St = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), he = (e) => "v" in e && e.v instanceof Promise, so = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Pe = (e) => {
60
61
  if ("e" in e)
61
62
  throw e.e;
62
63
  return e.v;
63
- }, so = () => {
64
+ }, oo = () => {
64
65
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
65
66
  let o, n, i;
66
67
  (V ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
@@ -71,7 +72,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
71
72
  const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
72
73
  Nt(v.v, b);
73
74
  }
74
- }, f = (u, g, v) => {
75
+ }, p = (u, g, v) => {
75
76
  const b = /* @__PURE__ */ new Map();
76
77
  let y = !1;
77
78
  v.forEach((h, j) => {
@@ -82,21 +83,21 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
82
83
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
83
84
  v: g
84
85
  };
85
- if (v && f(u, y, v), b && Ne(b, y) && b.d === y.d)
86
+ if (v && p(u, y, v), b && we(b, y) && b.d === y.d)
86
87
  return b;
87
- if (b && he(b) && he(y) && to(b, y)) {
88
+ if (b && he(b) && he(y) && so(b, y)) {
88
89
  if (b.d === y.d)
89
90
  return b;
90
91
  y.v = b.v;
91
92
  }
92
93
  return c(u, y), y;
93
- }, p = (u, g, v, b) => {
94
- if (eo(g)) {
94
+ }, f = (u, g, v, b) => {
95
+ if (to(g)) {
95
96
  let y;
96
97
  const h = new Promise((j, E) => {
97
98
  let S = !1;
98
99
  g.then(
99
- (B) => {
100
+ (_) => {
100
101
  if (!S) {
101
102
  S = !0;
102
103
  const A = r(u), ee = l(
@@ -104,10 +105,10 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
104
105
  h,
105
106
  v
106
107
  );
107
- kt(h, B), j(B), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
108
+ kt(h, _), j(_), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
108
109
  }
109
110
  },
110
- (B) => {
111
+ (_) => {
111
112
  if (!S) {
112
113
  S = !0;
113
114
  const A = r(u), ee = l(
@@ -115,17 +116,17 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
115
116
  h,
116
117
  v
117
118
  );
118
- jt(h, B), E(B), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
119
+ jt(h, _), E(_), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
119
120
  }
120
121
  }
121
- ), y = (B) => {
122
- S || (S = !0, B.then(
122
+ ), y = (_) => {
123
+ S || (S = !0, _.then(
123
124
  (A) => kt(h, A),
124
125
  (A) => jt(h, A)
125
- ), j(B));
126
+ ), j(_));
126
127
  };
127
128
  });
128
- return h.orig = g, h.status = "pending", Zs(h, (j) => {
129
+ return h.orig = g, h.status = "pending", eo(h, (j) => {
129
130
  j && y(j), b == null || b();
130
131
  }), l(u, h, v);
131
132
  }
@@ -135,15 +136,15 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
135
136
  d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
136
137
  e: g
137
138
  };
138
- return v && f(u, y, v), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
139
+ return v && p(u, y, v), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
139
140
  }, N = (u) => {
140
141
  const g = r(u);
141
- if (g && (g.d.forEach((S, B) => {
142
- B !== u && !t.has(B) && N(B);
143
- }), Array.from(g.d).every(([S, B]) => {
142
+ if (g && (g.d.forEach((S, _) => {
143
+ _ !== u && !t.has(_) && N(_);
144
+ }), Array.from(g.d).every(([S, _]) => {
144
145
  const A = r(S);
145
- return S === u || A === B || // TODO This is a hack, we should find a better solution.
146
- A && !he(A) && Ne(A, B);
146
+ return S === u || A === _ || // TODO This is a hack, we should find a better solution.
147
+ A && !he(A) && we(A, _);
147
148
  })))
148
149
  return g;
149
150
  const v = /* @__PURE__ */ new Map();
@@ -153,12 +154,12 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
153
154
  const A = r(S);
154
155
  if (A)
155
156
  return v.set(S, A), Pe(A);
156
- if (Fe(S))
157
+ if ($e(S))
157
158
  return v.set(S, void 0), S.init;
158
159
  throw new Error("no atom init");
159
160
  }
160
- const B = N(S);
161
- return v.set(S, B), Pe(B);
161
+ const _ = N(S);
162
+ return v.set(S, _), Pe(_);
162
163
  };
163
164
  let h, j;
164
165
  const E = {
@@ -166,7 +167,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
166
167
  return h || (h = new AbortController()), h.signal;
167
168
  },
168
169
  get setSelf() {
169
- return (V ? "production" : void 0) !== "production" && !Ue(u) && console.warn("setSelf function cannot be used with read-only atom"), !j && Ue(u) && (j = (...S) => {
170
+ return (V ? "production" : void 0) !== "production" && !Fe(u) && console.warn("setSelf function cannot be used with read-only atom"), !j && Fe(u) && (j = (...S) => {
170
171
  if ((V ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
171
172
  return $(u, ...S);
172
173
  }), j;
@@ -174,7 +175,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
174
175
  };
175
176
  try {
176
177
  const S = u.read(y, E);
177
- return p(
178
+ return f(
178
179
  u,
179
180
  S,
180
181
  v,
@@ -190,7 +191,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
190
191
  return g || (g = Z(u)), g;
191
192
  }, O = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), W = (u) => {
192
193
  const g = t.get(u);
193
- g && O(u, g) && le(u);
194
+ g && O(u, g) && ie(u);
194
195
  }, G = (u) => {
195
196
  const g = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new WeakMap(), b = (h) => {
196
197
  const j = t.get(h);
@@ -207,12 +208,12 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
207
208
  j == null || j.t.forEach((E) => {
208
209
  var S;
209
210
  if (E !== h) {
210
- let B = v.get(E);
211
- if (B && v.set(E, --B), !B) {
211
+ let _ = v.get(E);
212
+ if (_ && v.set(E, --_), !_) {
212
213
  let A = !!((S = g.get(E)) != null && S.size);
213
214
  if (A) {
214
- const ee = r(E), Ps = N(E);
215
- A = !ee || !Ne(ee, Ps);
215
+ const ee = r(E), Is = N(E);
216
+ A = !ee || !we(ee, Is);
216
217
  }
217
218
  A || g.forEach((ee) => ee.delete(E));
218
219
  }
@@ -226,16 +227,16 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
226
227
  const b = (j) => Pe(N(j)), y = (j, ...E) => {
227
228
  let S;
228
229
  if (j === u) {
229
- if (!Fe(j))
230
+ if (!$e(j))
230
231
  throw new Error("atom not writable");
231
- const B = r(j), A = p(j, E[0]);
232
- (!B || !Ne(B, A)) && G(j);
232
+ const _ = r(j), A = f(j, E[0]);
233
+ (!_ || !we(_, A)) && G(j);
233
234
  } else
234
235
  S = H(j, ...E);
235
236
  if (!v) {
236
- const B = ae();
237
+ const _ = ae();
237
238
  (V ? "production" : void 0) !== "production" && n.forEach(
238
- (A) => A({ type: "async-write", flushed: B })
239
+ (A) => A({ type: "async-write", flushed: _ })
239
240
  );
240
241
  }
241
242
  return S;
@@ -254,12 +255,12 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
254
255
  if (t.set(u, v), (V ? "production" : void 0) !== "production" && i.add(u), N(u).d.forEach((b, y) => {
255
256
  const h = t.get(y);
256
257
  h ? h.t.add(u) : y !== u && Z(y, u);
257
- }), N(u), Ue(u) && u.onMount) {
258
+ }), N(u), Fe(u) && u.onMount) {
258
259
  const b = u.onMount((...y) => $(u, ...y));
259
260
  b && (v.u = b);
260
261
  }
261
262
  return v;
262
- }, le = (u) => {
263
+ }, ie = (u) => {
263
264
  var g;
264
265
  const v = (g = t.get(u)) == null ? void 0 : g.u;
265
266
  v && v(), t.delete(u), (V ? "production" : void 0) !== "production" && i.delete(u);
@@ -267,7 +268,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
267
268
  b ? (he(b) && Nt(b.v), b.d.forEach((y, h) => {
268
269
  if (h !== u) {
269
270
  const j = t.get(h);
270
- j && (j.t.delete(u), O(h, j) && le(h));
271
+ j && (j.t.delete(u), O(h, j) && ie(h));
271
272
  }
272
273
  })) : (V ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
273
274
  }, J = (u, g, v) => {
@@ -278,7 +279,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
278
279
  return;
279
280
  }
280
281
  const j = t.get(h);
281
- j && (j.t.delete(u), O(h, j) && le(h));
282
+ j && (j.t.delete(u), O(h, j) && ie(h));
282
283
  }), b.forEach((y) => {
283
284
  const h = t.get(y);
284
285
  h ? h.t.add(u) : t.has(u) && Z(y, u);
@@ -294,7 +295,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
294
295
  const h = t.get(v);
295
296
  h && !// TODO This seems pretty hacky. Hope to fix it.
296
297
  // Maybe we could `mountDependencies` in `setAtomState`?
297
- (b && !he(b) && (Ne(b, y) || St(b, y))) && (h.l.forEach((j) => j()), (V ? "production" : void 0) !== "production" && u.add(v));
298
+ (b && !he(b) && (we(b, y) || St(b, y))) && (h.l.forEach((j) => j()), (V ? "production" : void 0) !== "production" && u.add(v));
298
299
  } else
299
300
  (V ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
300
301
  });
@@ -326,7 +327,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
326
327
  dev_get_mounted: (u) => t.get(u),
327
328
  dev_restore_atoms: (u) => {
328
329
  for (const [v, b] of u)
329
- Fe(v) && (p(v, b), G(v));
330
+ $e(v) && (f(v, b), G(v));
330
331
  const g = ae();
331
332
  n.forEach(
332
333
  (v) => v({ type: "restore", flushed: g })
@@ -338,14 +339,14 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
338
339
  sub: re
339
340
  };
340
341
  };
341
- let We;
342
- const oo = () => (We || (We = so()), We);
343
- var no = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
344
- const ao = Is(void 0), Gt = (e) => {
345
- const t = Ms(ao);
346
- return (e == null ? void 0 : e.store) || t || oo();
342
+ let Ue;
343
+ const no = () => (Ue || (Ue = oo()), Ue);
344
+ var ao = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
345
+ const ro = Ms(void 0), Gt = (e) => {
346
+ const t = Ds(ro);
347
+ return (e == null ? void 0 : e.store) || t || no();
347
348
  };
348
- const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = tt.use || ((e) => {
349
+ const io = (e) => typeof (e == null ? void 0 : e.then) == "function", lo = et.use || ((e) => {
349
350
  if (e.status === "pending")
350
351
  throw e;
351
352
  if (e.status === "fulfilled")
@@ -359,67 +360,67 @@ const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = tt.us
359
360
  }
360
361
  ), e);
361
362
  });
362
- function lo(e, t) {
363
- const s = Gt(t), [[o, n, i], r] = Ds(
363
+ function co(e, t) {
364
+ const s = Gt(t), [[o, n, i], r] = Es(
364
365
  (l) => {
365
- const p = s.get(e);
366
- return Object.is(l[0], p) && l[1] === s && l[2] === e ? l : [p, s, e];
366
+ const f = s.get(e);
367
+ return Object.is(l[0], f) && l[1] === s && l[2] === e ? l : [f, s, e];
367
368
  },
368
369
  void 0,
369
370
  () => [s.get(e), s, e]
370
371
  );
371
372
  let c = o;
372
373
  (n !== s || i !== e) && (r(), c = s.get(e));
373
- const f = t == null ? void 0 : t.delay;
374
- return Ce(() => {
374
+ const p = t == null ? void 0 : t.delay;
375
+ return Ae(() => {
375
376
  const l = s.sub(e, () => {
376
- if (typeof f == "number") {
377
- setTimeout(r, f);
377
+ if (typeof p == "number") {
378
+ setTimeout(r, p);
378
379
  return;
379
380
  }
380
381
  r();
381
382
  });
382
383
  return r(), l;
383
- }, [s, e, f]), Es(c), ro(c) ? io(c) : c;
384
+ }, [s, e, p]), Os(c), io(c) ? lo(c) : c;
384
385
  }
385
- function co(e, t) {
386
+ function uo(e, t) {
386
387
  const s = Gt(t);
387
388
  return L(
388
389
  (...n) => {
389
- if ((no ? "production" : void 0) !== "production" && !("write" in e))
390
+ if ((ao ? "production" : void 0) !== "production" && !("write" in e))
390
391
  throw new Error("not writable atom");
391
392
  return s.set(e, ...n);
392
393
  },
393
394
  [s, e]
394
395
  );
395
396
  }
396
- function Vr(e, t) {
397
+ function zr(e, t) {
397
398
  return [
398
- lo(e, t),
399
+ co(e, t),
399
400
  // We do wrong type assertion here, which results in throwing an error.
400
- co(e, t)
401
+ uo(e, t)
401
402
  ];
402
403
  }
403
404
  var at = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
404
405
  const Ht = Symbol();
405
- const At = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), uo = /* @__PURE__ */ new WeakMap(), mo = (e, t, s) => {
406
- const o = At(() => /* @__PURE__ */ new WeakMap(), uo, t);
406
+ const At = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), mo = /* @__PURE__ */ new WeakMap(), fo = (e, t, s) => {
407
+ const o = At(() => /* @__PURE__ */ new WeakMap(), mo, t);
407
408
  return At(e, o, s);
408
- }, fo = {}, Ct = (e) => !!e.write, po = (e) => typeof e == "function";
409
- function go(e, t) {
410
- return mo(
409
+ }, po = {}, Ct = (e) => !!e.write, go = (e) => typeof e == "function";
410
+ function bo(e, t) {
411
+ return fo(
411
412
  () => {
412
413
  const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
413
- let f = s.get(r);
414
- if (f)
415
- return f;
416
- const l = c && s.get(c), p = [], x = [];
414
+ let p = s.get(r);
415
+ if (p)
416
+ return p;
417
+ const l = c && s.get(c), f = [], x = [];
417
418
  return r.forEach((N, k) => {
418
419
  const I = t ? t(N) : k;
419
420
  x[k] = I;
420
421
  const O = l && l.atomList[l.keyList.indexOf(I)];
421
422
  if (O) {
422
- p[k] = O;
423
+ f[k] = O;
423
424
  return;
424
425
  }
425
426
  const W = (H) => {
@@ -432,63 +433,63 @@ function go(e, t) {
432
433
  }
433
434
  return Z[J];
434
435
  }, G = (H, $, Z) => {
435
- const le = H(n), J = H(e), re = o(J, le == null ? void 0 : le.arr).keyList.indexOf(I);
436
+ const ie = H(n), J = H(e), re = o(J, ie == null ? void 0 : ie.arr).keyList.indexOf(I);
436
437
  if (re < 0 || re >= J.length)
437
438
  throw new Error("splitAtom: index out of bounds for write");
438
- const u = po(Z) ? Z(J[re]) : Z;
439
+ const u = go(Z) ? Z(J[re]) : Z;
439
440
  $(e, [
440
441
  ...J.slice(0, re),
441
442
  u,
442
443
  ...J.slice(re + 1)
443
444
  ]);
444
445
  };
445
- p[k] = Ct(e) ? oe(W, G) : oe(W);
446
- }), l && l.keyList.length === x.length && l.keyList.every((N, k) => N === x[k]) ? f = l : f = { arr: r, atomList: p, keyList: x }, s.set(r, f), f;
446
+ f[k] = Ct(e) ? oe(W, G) : oe(W);
447
+ }), 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;
447
448
  }, n = oe((r) => {
448
- const c = r(n), f = r(e);
449
- return o(f, c == null ? void 0 : c.arr);
449
+ const c = r(n), p = r(e);
450
+ return o(p, c == null ? void 0 : c.arr);
450
451
  });
451
452
  (at ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
452
453
  const i = Ct(e) ? oe(
453
454
  (r) => r(n).atomList,
454
- (r, c, f) => {
455
- switch (f.type) {
455
+ (r, c, p) => {
456
+ switch (p.type) {
456
457
  case "remove": {
457
- const l = r(i).indexOf(f.atom);
458
+ const l = r(i).indexOf(p.atom);
458
459
  if (l >= 0) {
459
- const p = r(e);
460
+ const f = r(e);
460
461
  c(e, [
461
- ...p.slice(0, l),
462
- ...p.slice(l + 1)
462
+ ...f.slice(0, l),
463
+ ...f.slice(l + 1)
463
464
  ]);
464
465
  }
465
466
  break;
466
467
  }
467
468
  case "insert": {
468
- const l = f.before ? r(i).indexOf(f.before) : r(i).length;
469
+ const l = p.before ? r(i).indexOf(p.before) : r(i).length;
469
470
  if (l >= 0) {
470
- const p = r(e);
471
+ const f = r(e);
471
472
  c(e, [
472
- ...p.slice(0, l),
473
- f.value,
474
- ...p.slice(l)
473
+ ...f.slice(0, l),
474
+ p.value,
475
+ ...f.slice(l)
475
476
  ]);
476
477
  }
477
478
  break;
478
479
  }
479
480
  case "move": {
480
- const l = r(i).indexOf(f.atom), p = f.before ? r(i).indexOf(f.before) : r(i).length;
481
- if (l >= 0 && p >= 0) {
481
+ const l = r(i).indexOf(p.atom), f = p.before ? r(i).indexOf(p.before) : r(i).length;
482
+ if (l >= 0 && f >= 0) {
482
483
  const x = r(e);
483
- l < p ? c(e, [
484
+ l < f ? c(e, [
484
485
  ...x.slice(0, l),
485
- ...x.slice(l + 1, p),
486
+ ...x.slice(l + 1, f),
486
487
  x[l],
487
- ...x.slice(p)
488
+ ...x.slice(f)
488
489
  ]) : c(e, [
489
- ...x.slice(0, p),
490
+ ...x.slice(0, f),
490
491
  x[l],
491
- ...x.slice(p, l),
492
+ ...x.slice(f, l),
492
493
  ...x.slice(l + 1)
493
494
  ]);
494
495
  }
@@ -500,10 +501,10 @@ function go(e, t) {
500
501
  return i;
501
502
  },
502
503
  e,
503
- t || fo
504
+ t || po
504
505
  );
505
506
  }
506
- function $r(e) {
507
+ function Vr(e) {
507
508
  const t = Symbol(), s = oe(t);
508
509
  (at ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
509
510
  const o = oe(
@@ -523,24 +524,24 @@ function $r(e) {
523
524
  );
524
525
  return o;
525
526
  }
526
- const bo = (e) => typeof (e == null ? void 0 : e.then) == "function";
527
- function xo(e) {
527
+ const xo = (e) => typeof (e == null ? void 0 : e.then) == "function";
528
+ function ho(e) {
528
529
  let t, s;
529
530
  const o = {
530
531
  getItem: (n, i) => {
531
532
  var r, c;
532
- const f = (p) => {
533
- if (p = p || "", t !== p) {
533
+ const p = (f) => {
534
+ if (f = f || "", t !== f) {
534
535
  try {
535
- s = JSON.parse(p);
536
+ s = JSON.parse(f);
536
537
  } catch {
537
538
  return i;
538
539
  }
539
- t = p;
540
+ t = f;
540
541
  }
541
542
  return s;
542
543
  }, l = (c = (r = e()) == null ? void 0 : r.getItem(n)) != null ? c : null;
543
- return bo(l) ? l.then(f) : f(l);
544
+ return xo(l) ? l.then(p) : p(l);
544
545
  },
545
546
  setItem: (n, i) => {
546
547
  var r;
@@ -555,11 +556,11 @@ function xo(e) {
555
556
  if (!(e() instanceof window.Storage))
556
557
  return () => {
557
558
  };
558
- const c = (f) => {
559
- if (f.storageArea === e() && f.key === n) {
559
+ const c = (p) => {
560
+ if (p.storageArea === e() && p.key === n) {
560
561
  let l;
561
562
  try {
562
- l = JSON.parse(f.newValue || "");
563
+ l = JSON.parse(p.newValue || "");
563
564
  } catch {
564
565
  l = r;
565
566
  }
@@ -571,114 +572,69 @@ function xo(e) {
571
572
  };
572
573
  }), o;
573
574
  }
574
- const ho = xo(
575
+ const vo = ho(
575
576
  () => typeof window < "u" ? window.localStorage : void 0
576
577
  );
577
- function Re(e, t, s = ho, o) {
578
+ function Re(e, t, s = vo, o) {
578
579
  const n = o == null ? void 0 : o.unstable_getOnInit, i = oe(
579
580
  n ? s.getItem(e, t) : t
580
581
  );
581
582
  return (at ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
582
583
  n || c(s.getItem(e, t));
583
- let f;
584
- return s.subscribe && (f = s.subscribe(e, c, t)), f;
584
+ let p;
585
+ return s.subscribe && (p = s.subscribe(e, c, t)), p;
585
586
  }, oe(
586
587
  (c) => c(i),
587
- (c, f, l) => {
588
- const p = typeof l == "function" ? l(c(i)) : l;
589
- return p === Ht ? (f(i, t), s.removeItem(e)) : p instanceof Promise ? p.then((x) => (f(i, x), s.setItem(e, x))) : (f(i, p), s.setItem(e, p));
588
+ (c, p, l) => {
589
+ const f = typeof l == "function" ? l(c(i)) : l;
590
+ return f === Ht ? (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));
590
591
  }
591
592
  );
592
593
  }
593
594
  const qt = w(null);
594
595
  qt.debugLabel = "chaiBuilderPropsAtom";
595
- const vo = w({});
596
- vo.debugLabel = "chaiExternalDataAtom";
597
- const Fr = () => !1, yo = (e) => {
598
- const t = e.replace(me, "").split(",");
596
+ const yo = w({});
597
+ yo.debugLabel = "chaiExternalDataAtom";
598
+ const $r = () => !1, wo = (e) => {
599
+ const t = e.replace(ue, "").split(",");
599
600
  return { baseClasses: t[0], classes: t[1] };
600
- }, Qe = (e, t) => {
601
+ }, Ye = (e, t) => {
601
602
  if (!e)
602
603
  return !0;
603
- const s = Le(e);
604
- return s && pe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
605
- }, wo = (e, t) => {
606
- const s = Le(t);
607
- return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
604
+ const s = Oe(e);
605
+ return s && fe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
606
+ }, No = (e, t) => {
607
+ const s = Oe(t);
608
+ return s && fe(s, "canBeNested") ? s.canBeNested(e) : !0;
609
+ }, Fr = (e) => {
610
+ const t = Oe(e);
611
+ return t && fe(t, "canDuplicate") ? t.canDuplicate() : !0;
608
612
  }, Ur = (e) => {
609
- const t = Le(e);
610
- return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
611
- }, Wr = (e) => {
612
- const t = Le(e);
613
- return t && pe(t, "canDelete") ? t.canDelete() : !0;
614
- }, Gr = (e, { dragSource: t, dropTarget: s }) => {
613
+ const t = Oe(e);
614
+ return t && fe(t, "canDelete") ? t.canDelete() : !0;
615
+ }, Wr = (e, { dragSource: t, dropTarget: s }) => {
615
616
  const o = F(t, "data._type", ""), n = F(s, "data._type", "");
616
- return Qe(n, o);
617
+ return Ye(n, o);
617
618
  };
618
- const No = new Vt({ children: "blockNodes" });
619
- function Kt(e, t, s) {
620
- const o = M(e, (i) => i._parent === t), n = [];
621
- for (let i = 0; i < o.length; i++) {
622
- const r = Jt(o[i]);
623
- if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
624
- o[i][c] = `slot:${ce()}`;
625
- }), M(e, { _parent: o[i]._id }).length > 0) {
626
- const c = ce();
627
- n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(Kt(e, o[i]._id, c)));
628
- } else
629
- n.push({
630
- ...o[i],
631
- oldId: o[i]._id,
632
- _id: ce(),
633
- _parent: s
634
- });
635
- }
636
- return ne(n);
637
- }
638
- function ko(e) {
639
- let t = No.convert(e.map((s) => Oe(s, ["settings"])));
640
- return t = !t.type && t.blockNodes ? t.blockNodes : ve(t) ? [] : [t], t;
641
- }
642
- const Jt = (e) => {
643
- const t = {};
644
- return Object.keys(e).forEach((s) => {
645
- Et(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
646
- }), t;
647
- }, jo = (e, t, s = null) => {
648
- let o = te(e, { _id: t });
649
- o = { ...o, oldId: o._id, _id: ce() }, s && (o = { ...o, _parent: s });
650
- const n = [o];
651
- M(e, { _parent: t }).length > 0 && n.push(ne(Kt(e, t, o._id)));
652
- const i = ne(n);
653
- return R(i, (r) => {
654
- const c = r, f = Jt(c);
655
- return Object.keys(f).length > 0 && Object.keys(f).forEach((l) => {
656
- const p = te(i, { oldId: f[l].replace("slot:", "") });
657
- c[l] = `slot:${p._id}`;
658
- }), Oe(c, ["global", "oldId"]);
659
- });
660
- };
661
- const ie = w([]);
662
- ie.debugLabel = "presentBlocksAtom";
663
- const rt = go(ie);
619
+ const be = w([]);
620
+ be.debugLabel = "presentBlocksAtom";
621
+ const rt = bo(be);
664
622
  rt.debugLabel = "pageBlocksAtomsAtom";
665
- const So = w((e) => ko(e(ie)));
666
- So.debugLabel = "pageBlocksTreeAtom";
667
- const Ao = w("");
668
- Ao.debugLabel = "builderActivePageAtom";
669
- const Co = w(-1);
670
- Co.debugLabel = "destinationDropIndexAtom";
671
- const Yt = w([]);
672
- Yt.debugLabel = "buildingBlocksAtom";
673
- const Bo = w((e) => {
674
- const t = e(Yt);
675
- return M(t, (s) => pe(s, "blockId"));
623
+ const ko = w("");
624
+ ko.debugLabel = "builderActivePageAtom";
625
+ const jo = w(-1);
626
+ jo.debugLabel = "destinationDropIndexAtom";
627
+ const Kt = w([]);
628
+ Kt.debugLabel = "buildingBlocksAtom";
629
+ const So = w((e) => {
630
+ const t = e(Kt);
631
+ return M(t, (s) => fe(s, "blockId"));
676
632
  });
677
- Bo.debugLabel = "globalBlocksAtom";
633
+ So.debugLabel = "globalBlocksAtom";
678
634
  const it = w([]);
679
635
  it.debugLabel = "selectedBlockIdsAtom";
680
636
  const lt = w((e) => {
681
- const t = e(ie), s = e(it);
637
+ const t = e(be), s = e(it);
682
638
  return R(
683
639
  M(t, ({ _id: o }) => q(s, o)),
684
640
  (o) => ({ ...o })
@@ -693,32 +649,32 @@ const ct = w((e) => {
693
649
  };
694
650
  });
695
651
  ct.debugLabel = "selectedBlockAtom";
696
- const _o = (e) => F(e, "parent", null), Ro = w((e) => {
697
- const t = e(lt), s = R(t, _o);
698
- return M(e(ie), (o) => q(s, o._id));
652
+ const Ao = (e) => F(e, "parent", null), Co = w((e) => {
653
+ const t = e(lt), s = R(t, Ao);
654
+ return M(e(be), (o) => q(s, o._id));
699
655
  });
700
- Ro.debugLabel = "selectedBlocksParentsAtom";
701
- const Qt = w(() => !1);
702
- Qt.debugLabel = "selectedBlockFlexChildAtom";
703
- const Xt = w(() => !1);
704
- Xt.debugLabel = "selectedBlockGridChildAtom";
656
+ Co.debugLabel = "selectedBlocksParentsAtom";
657
+ const Jt = w(() => !1);
658
+ Jt.debugLabel = "selectedBlockFlexChildAtom";
659
+ const Yt = w(() => !1);
660
+ Yt.debugLabel = "selectedBlockGridChildAtom";
705
661
  const dt = w("");
706
662
  dt.debugLabel = "styleStateAtom";
707
- const Zt = Re("styleBreakpoint", "xs");
708
- Zt.debugLabel = "styleBreakpointAtom";
709
- const Hr = () => ({
710
- flexChild: X(Qt),
711
- gridChild: X(Xt)
712
- }), qr = () => X(ct);
713
- const $e = () => {
663
+ const Qt = Re("styleBreakpoint", "xs");
664
+ Qt.debugLabel = "styleBreakpointAtom";
665
+ const Gr = () => ({
666
+ flexChild: X(Jt),
667
+ gridChild: X(Yt)
668
+ }), Hr = () => X(ct);
669
+ const Ve = () => {
714
670
  const [e, t] = D(it), s = L(
715
671
  (o) => {
716
- t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
672
+ t((n) => q(n, o) ? Et(n, o) : [...n, o]);
717
673
  },
718
674
  [t]
719
675
  );
720
676
  return [e, t, s];
721
- }, Bt = (e) => {
677
+ }, _t = (e) => {
722
678
  switch (e.type) {
723
679
  case "singular":
724
680
  return e.uiSchema;
@@ -729,7 +685,7 @@ const $e = () => {
729
685
  if (q(["slot", "styles"], r.type))
730
686
  return;
731
687
  const c = i;
732
- s[c] = Bt(r);
688
+ s[c] = _t(r);
733
689
  }), s;
734
690
  case "list":
735
691
  const { itemProperties: o } = e, n = {
@@ -740,12 +696,12 @@ const $e = () => {
740
696
  if (q(["slot", "styles"], r.type))
741
697
  return;
742
698
  const c = i;
743
- n.items[c] = Bt(r);
699
+ n.items[c] = _t(r);
744
700
  }), n;
745
701
  default:
746
702
  return {};
747
703
  }
748
- }, _t = (e) => {
704
+ }, Bt = (e) => {
749
705
  switch (e.type) {
750
706
  case "singular":
751
707
  return e.schema;
@@ -756,11 +712,11 @@ const $e = () => {
756
712
  properties: {}
757
713
  };
758
714
  return Object.keys(t).forEach((c) => {
759
- const f = t[c];
760
- if (q(["slot", "styles"], f.type))
715
+ const p = t[c];
716
+ if (q(["slot", "styles"], p.type))
761
717
  return;
762
718
  const l = c;
763
- o.properties[l] = _t(f);
719
+ o.properties[l] = Bt(p);
764
720
  }), o;
765
721
  case "list":
766
722
  const { itemProperties: n, title: i } = e, r = {
@@ -772,50 +728,50 @@ const $e = () => {
772
728
  }
773
729
  };
774
730
  return Object.keys(n).forEach((c) => {
775
- const f = n[c];
776
- if (q(["slot", "styles"], f.type))
731
+ const p = n[c];
732
+ if (q(["slot", "styles"], p.type))
777
733
  return;
778
734
  const l = c;
779
- r.items.properties[l] = _t(f), Se(r.items, "title", F(f, "itemTitle", `${i} item`));
735
+ r.items.properties[l] = Bt(p), je(r.items, "title", F(p, "itemTitle", `${i} item`));
780
736
  }), r;
781
737
  default:
782
738
  return {};
783
739
  }
784
- }, es = (e) => {
740
+ }, Xt = (e) => {
785
741
  if (!e)
786
742
  return {};
787
743
  const t = {};
788
744
  return Object.keys(e).forEach((s) => {
789
- t[s] = Po(e[s]);
745
+ t[s] = Bo(e[s]);
790
746
  }), t;
791
- }, To = (e) => {
792
- if (ve(e.default))
747
+ }, _o = (e) => {
748
+ if (_e(e.default))
793
749
  return [];
794
750
  const { itemProperties: t } = e;
795
751
  return R(e.default, (s) => {
796
752
  const o = { ...s };
797
- return Lt(s, (n, i) => {
798
- pe(t, i) && F(t[i], "i18n", !1) && (o[i] = $t);
753
+ return Ot(s, (n, i) => {
754
+ fe(t, i) && F(t[i], "i18n", !1) && (o[i] = Vt);
799
755
  }), o;
800
756
  });
801
- }, Po = (e) => {
757
+ }, Bo = (e) => {
802
758
  switch (e.type) {
803
759
  case "styles":
804
760
  return e.default;
805
761
  case "slot":
806
- return `${Ke}${ce()}`;
762
+ return `${qe}${le()}`;
807
763
  case "singular":
808
764
  const { i18n: t, schema: s } = e;
809
- return t ? $t : F(s, "default", "");
765
+ return t ? Vt : F(s, "default", "");
810
766
  case "model":
811
- return es(e.properties);
767
+ return Xt(e.properties);
812
768
  case "list":
813
- return To(e);
769
+ return _o(e);
814
770
  default:
815
771
  return "";
816
772
  }
817
773
  };
818
- var ut = { exports: {} }, Kr = ut.exports;
774
+ var ut = { exports: {} }, qr = ut.exports;
819
775
  (function(e) {
820
776
  (function() {
821
777
  "use strict";
@@ -827,8 +783,8 @@ var ut = { exports: {} }, Kr = ut.exports;
827
783
  }
828
784
  let s = function() {
829
785
  let o = [], n = -1, i = 0, r = !1, c;
830
- function f(l, p) {
831
- return !l || typeof l[p] != "function" ? this : (r = !0, l[p](), r = !1, this);
786
+ function p(l, f) {
787
+ return !l || typeof l[f] != "function" ? this : (r = !0, l[f](), r = !1, this);
832
788
  }
833
789
  return {
834
790
  /**
@@ -855,8 +811,8 @@ var ut = { exports: {} }, Kr = ut.exports;
855
811
  let l = o[n];
856
812
  if (!l)
857
813
  return this;
858
- const p = l.groupId;
859
- for (; l.groupId === p && (f(l, "undo"), n -= 1, l = o[n], !(!l || !l.groupId)); )
814
+ const f = l.groupId;
815
+ for (; l.groupId === f && (p(l, "undo"), n -= 1, l = o[n], !(!l || !l.groupId)); )
860
816
  ;
861
817
  return c && c(), this;
862
818
  },
@@ -867,8 +823,8 @@ var ut = { exports: {} }, Kr = ut.exports;
867
823
  let l = o[n + 1];
868
824
  if (!l)
869
825
  return this;
870
- const p = l.groupId;
871
- for (; l.groupId === p && (f(l, "redo"), n += 1, l = o[n + 1], !(!l || !l.groupId)); )
826
+ const f = l.groupId;
827
+ for (; l.groupId === f && (p(l, "redo"), n += 1, l = o[n + 1], !(!l || !l.groupId)); )
872
828
  ;
873
829
  return c && c(), this;
874
830
  },
@@ -899,7 +855,7 @@ var ut = { exports: {} }, Kr = ut.exports;
899
855
  * @returns {array}
900
856
  */
901
857
  getCommands: function(l) {
902
- return l ? o.filter((p) => p.groupId === l) : o;
858
+ return l ? o.filter((f) => f.groupId === l) : o;
903
859
  },
904
860
  /**
905
861
  * Returns the index of the actions list.
@@ -920,17 +876,17 @@ var ut = { exports: {} }, Kr = ut.exports;
920
876
  e.exports ? e.exports = s : window.UndoManager = s;
921
877
  })();
922
878
  })(ut);
923
- var Io = ut.exports;
924
- const Mo = /* @__PURE__ */ Fs(Io), Do = w(Je), Eo = w(null), Oo = () => {
925
- const [e, t] = D(Do);
879
+ var Ro = ut.exports;
880
+ const To = /* @__PURE__ */ Us(Ro), Po = w(Ke), Io = w(null), Zt = () => {
881
+ const [e, t] = D(Po);
926
882
  return [
927
- Ls(e) ? { ...Je, ...e } : Je,
883
+ zs(e) ? { ...Ke, ...e } : Ke,
928
884
  t
929
885
  ];
930
- }, Jr = () => D(Eo), Lo = w(null), zo = () => ({ currentPage: X(Lo) }), ts = new Vt({});
931
- function Vo(e) {
932
- let t = ts.convert(e);
933
- return t = !t.type && t.children && t.children.length ? t.children : ve(t) ? [] : [t], t;
886
+ }, Kr = () => D(Io), Mo = w(null), Do = () => ({ currentPage: X(Mo) }), es = new $t({});
887
+ function Eo(e) {
888
+ let t = es.convert(e);
889
+ return t = !t.type && t.children && t.children.length ? t.children : _e(t) ? [] : [t], t;
934
890
  }
935
891
  const mt = (e, t) => ne(
936
892
  e.map((s) => {
@@ -952,80 +908,80 @@ function ft(e, t = !1) {
952
908
  } : o.children && o.children.length && ft(o.children);
953
909
  }
954
910
  }
955
- function ss(e) {
911
+ function ts(e) {
956
912
  let t = [], s = M(e, { type: "GlobalBlock" });
957
- return s.length > 0 && (s = R(s, os), ue(s, (o) => {
958
- t = [...t, ...$o(o)];
913
+ return s.length > 0 && (s = R(s, ss), de(s, (o) => {
914
+ t = [...t, ...Oo(o)];
959
915
  })), t;
960
916
  }
961
- function $o(e) {
917
+ function Oo(e) {
962
918
  let t = [];
963
919
  const s = F(Q(e), "parent", null);
964
- Se(Q(e), "parent", null);
965
- const o = [ts.convert(ns(e))];
920
+ je(Q(e), "parent", null);
921
+ const o = [es.convert(os(e))];
966
922
  ft(o, !0);
967
923
  let n = mt(o, e[0]._id);
968
- return n = Se(n, "0.parent", s), t = [...t, n, ...ss(n)], t;
924
+ return n = je(n, "0.parent", s), t = [...t, n, ...ts(n)], t;
969
925
  }
970
- function os(e) {
971
- const t = te(Xe, { _id: e._id });
926
+ function ss(e) {
927
+ const t = te(Qe, { _id: e._id });
972
928
  if (!t)
973
929
  return [];
974
- const s = [t], o = M(Xe, { _parent: e._id });
975
- return o.length ? ne([...s, ...ne(R(o, os))]) : ne(s);
930
+ const s = [t], o = M(Qe, { _parent: e._id });
931
+ return o.length ? ne([...s, ...ne(R(o, ss))]) : ne(s);
976
932
  }
977
- const ns = (e) => JSON.parse(JSON.stringify(e));
978
- let Xe = [];
979
- function Fo(e) {
980
- Xe = e;
981
- const t = Vo(ns(e));
933
+ const os = (e) => JSON.parse(JSON.stringify(e));
934
+ let Qe = [];
935
+ function Lo(e) {
936
+ Qe = e;
937
+ const t = Eo(os(e));
982
938
  ft(t);
983
- const s = mt(t, null), o = ss(s), n = {};
984
- return ue(o, (i) => Se(n, Q(i).blockId, i)), [s, n];
939
+ const s = mt(t, null), o = ts(s), n = {};
940
+ return de(o, (i) => je(n, Q(i).blockId, i)), [s, n];
985
941
  }
986
- const Uo = () => {
987
- const [e] = Oo(), { currentPage: t } = zo(), [s] = we();
942
+ const zo = () => {
943
+ const [e] = Zt(), { currentPage: t } = Do(), [s] = ye();
988
944
  return L(() => {
989
945
  const o = R(
990
946
  s,
991
- (r) => Oe(r, ["expanded", "order", "title", "siblings", "tempClasses"])
992
- ), [n = [], i = []] = Fo(o);
947
+ (r) => tt(r, ["expanded", "order", "title", "siblings", "tempClasses"])
948
+ ), [n = [], i = []] = Lo(o);
993
949
  return {
994
950
  currentPage: t,
995
951
  blocks: n,
996
952
  globalBlocks: i
997
953
  };
998
954
  }, [e, t, s]);
999
- }, ke = (e, t = void 0) => {
955
+ }, Ne = (e, t = void 0) => {
1000
956
  const s = X(qt);
1001
957
  return F(s, e, t);
1002
- }, as = w([]);
1003
- as.debugLabel = "dataProvidersAtom";
1004
- const Wo = () => D(as), pt = w("SAVED");
958
+ }, ns = w([]);
959
+ ns.debugLabel = "dataProvidersAtom";
960
+ const Vo = () => D(ns), pt = w("SAVED");
1005
961
  pt.debugLabel = "pageSyncStateAtom";
1006
- const Yr = () => {
1007
- const [e, t] = D(pt), s = ke("onSaveBlocks", async (f) => {
1008
- }), o = ke("onSavePage", async (f) => {
1009
- }), n = ke("onSyncStatusChange", (f) => {
1010
- }), i = Uo(), [r] = Wo();
1011
- return { savePage: Us(
962
+ const Jr = () => {
963
+ const [e, t] = D(pt), s = Ne("onSavePage", async (l) => {
964
+ }), o = Ne("onSave", async (l) => {
965
+ }), n = Ne("onSyncStatusChange", (l) => {
966
+ }), i = zo(), [r] = Vo(), [c] = Zt();
967
+ return { savePage: Ws(
1012
968
  async () => {
1013
969
  t("SAVING"), n("SAVING");
1014
- const f = i();
1015
- return await o({ blocks: f.blocks, providers: r }), setTimeout(() => {
970
+ const l = i();
971
+ return await s({ blocks: l.blocks, providers: r }), await o({ blocks: l.blocks, providers: r, brandingOptions: c }), setTimeout(() => {
1016
972
  t("SAVED"), n("SAVED");
1017
973
  }, 100), !0;
1018
974
  },
1019
- [i, t, n, s],
975
+ [i, t, c, o, n],
1020
976
  5e3
1021
977
  // save only every 5 seconds
1022
978
  ), syncState: e, setSyncState: t };
1023
- }, se = new Mo();
979
+ }, se = new To();
1024
980
  se.setLimit(50);
1025
- const rs = () => {
981
+ const as = () => {
1026
982
  const [, e] = D(pt);
1027
- return Ce(() => (se.setCallback(() => e("UNSAVED")), () => {
1028
- se.setCallback(zs);
983
+ return Ae(() => (se.setCallback(() => e("UNSAVED")), () => {
984
+ se.setCallback(Vs);
1029
985
  }), []), {
1030
986
  add: se.add,
1031
987
  undo: se.undo,
@@ -1036,9 +992,9 @@ const rs = () => {
1036
992
  };
1037
993
  }, gt = (e, t) => {
1038
994
  const s = [], o = M(e, (n) => q(t, n._id) || q(t, n._parent) ? (s.push(n._id), !1) : !0);
1039
- return ve(s) ? o : gt(o, s);
1040
- }, Qr = () => {
1041
- const [e] = we(), [t, s] = $e(), { setNewBlocks: o } = xe();
995
+ return _e(s) ? o : gt(o, s);
996
+ }, Yr = () => {
997
+ const [e] = ye(), [t, s] = Ve(), { setNewBlocks: o } = xe();
1042
998
  return L(
1043
999
  (n) => {
1044
1000
  var r;
@@ -1048,29 +1004,29 @@ const rs = () => {
1048
1004
  [e, s, t]
1049
1005
  );
1050
1006
  };
1051
- function Go(e, t, s, o) {
1007
+ function $o(e, t, s, o) {
1052
1008
  let n = e.filter((c) => !c._parent);
1053
1009
  s && (n = e.filter((c) => c._parent === s));
1054
1010
  const i = o !== void 0 ? o : n.length;
1055
1011
  let r = e.length;
1056
- for (let c = 0, f = 0; c < e.length; c++)
1012
+ for (let c = 0, p = 0; c < e.length; c++)
1057
1013
  if (e[c]._parent === s) {
1058
- if (f === i) {
1014
+ if (p === i) {
1059
1015
  r = c;
1060
1016
  break;
1061
1017
  }
1062
- f++;
1018
+ p++;
1063
1019
  }
1064
1020
  return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
1065
1021
  }
1066
- const Ho = () => {
1067
- const [, e] = we();
1022
+ const Fo = () => {
1023
+ const [, e] = ye();
1068
1024
  return {
1069
1025
  setNewBlocks: (t) => {
1070
1026
  e(t);
1071
1027
  },
1072
1028
  addBlocks: (t, s, o) => {
1073
- e((n) => Go(n, t, s, o));
1029
+ e((n) => $o(n, t, s, o));
1074
1030
  },
1075
1031
  removeBlocks: (t) => {
1076
1032
  e((s) => gt(s, t));
@@ -1081,20 +1037,20 @@ const Ho = () => {
1081
1037
  return s.map((n) => {
1082
1038
  if (o.includes(n._id)) {
1083
1039
  const i = te(t, { _id: n._id });
1084
- return { ...n, ...Oe(i, "_id") };
1040
+ return { ...n, ...tt(i, "_id") };
1085
1041
  }
1086
1042
  return n;
1087
1043
  });
1088
1044
  });
1089
1045
  }
1090
1046
  };
1091
- }, we = () => D(ie), xe = () => {
1092
- const { add: e } = rs(), [t] = we(), {
1047
+ }, ye = () => D(be), xe = () => {
1048
+ const { add: e } = as(), [t] = ye(), {
1093
1049
  setNewBlocks: s,
1094
1050
  addBlocks: o,
1095
1051
  removeBlocks: n,
1096
1052
  updateBlocksProps: i
1097
- } = Ho();
1053
+ } = Fo();
1098
1054
  return {
1099
1055
  addBlocks: (x, N, k) => {
1100
1056
  o(x, N, k), e({
@@ -1115,10 +1071,10 @@ const Ho = () => {
1115
1071
  if (k)
1116
1072
  I = R(x, (O) => ({ _id: O, ...k }));
1117
1073
  else {
1118
- const O = Vs(N);
1074
+ const O = $s(N);
1119
1075
  I = R(x, (W) => {
1120
1076
  const G = t.find(($) => $._id === W), H = { _id: W };
1121
- return ue(O, ($) => H[$] = G[$]), H;
1077
+ return de(O, ($) => H[$] = G[$]), H;
1122
1078
  });
1123
1079
  }
1124
1080
  i(R(x, (O) => ({ _id: O, ...N }))), e({
@@ -1136,7 +1092,7 @@ const Ho = () => {
1136
1092
  });
1137
1093
  }
1138
1094
  };
1139
- }, qo = ge(
1095
+ }, Uo = pe(
1140
1096
  "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",
1141
1097
  {
1142
1098
  variants: {
@@ -1155,10 +1111,10 @@ const Ho = () => {
1155
1111
  size: "default"
1156
1112
  }
1157
1113
  }
1158
- ), Ko = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: n, className: d(qo({ variant: t, size: s, className: e })), ...o }));
1159
- Ko.displayName = Ft.Root.displayName;
1160
- const Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1161
- Ye.Root,
1114
+ ), Wo = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: n, className: d(Uo({ variant: t, size: s, className: e })), ...o }));
1115
+ Wo.displayName = Ft.Root.displayName;
1116
+ const Go = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1117
+ Je.Root,
1162
1118
  {
1163
1119
  className: d(
1164
1120
  "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
@@ -1167,7 +1123,7 @@ const Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1167
1123
  ...t,
1168
1124
  ref: s,
1169
1125
  children: /* @__PURE__ */ a.jsx(
1170
- Ye.Thumb,
1126
+ Je.Thumb,
1171
1127
  {
1172
1128
  className: d(
1173
1129
  "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
@@ -1176,8 +1132,8 @@ const Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1176
1132
  )
1177
1133
  }
1178
1134
  ));
1179
- Jo.displayName = Ye.Root.displayName;
1180
- const bt = ge(
1135
+ Go.displayName = Je.Root.displayName;
1136
+ const bt = pe(
1181
1137
  "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",
1182
1138
  {
1183
1139
  variants: {
@@ -1201,17 +1157,17 @@ const bt = ge(
1201
1157
  size: "default"
1202
1158
  }
1203
1159
  }
1204
- ), Yo = m.forwardRef(
1160
+ ), Ho = m.forwardRef(
1205
1161
  ({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
1206
- const r = o ? Ws : "button";
1162
+ const r = o ? Gs : "button";
1207
1163
  return /* @__PURE__ */ a.jsx(r, { className: d(bt({ variant: t, size: s, className: e })), ref: i, ...n });
1208
1164
  }
1209
1165
  );
1210
- Yo.displayName = "Button";
1211
- const Xr = fe.Root, Qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(fe.Item, { ref: s, className: d("border-b", e), ...t }));
1212
- Qo.displayName = "AccordionItem";
1213
- const Xo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(fe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1214
- fe.Trigger,
1166
+ Ho.displayName = "Button";
1167
+ const Qr = me.Root, qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: d("border-b", e), ...t }));
1168
+ qo.displayName = "AccordionItem";
1169
+ const Ko = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
1170
+ me.Trigger,
1215
1171
  {
1216
1172
  ref: o,
1217
1173
  className: d(
@@ -1221,13 +1177,13 @@ const Xo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1221
1177
  ...s,
1222
1178
  children: [
1223
1179
  t,
1224
- /* @__PURE__ */ a.jsx(Gs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1180
+ /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1225
1181
  ]
1226
1182
  }
1227
1183
  ) }));
1228
- Xo.displayName = fe.Trigger.displayName;
1229
- const Zo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1230
- fe.Content,
1184
+ Ko.displayName = me.Trigger.displayName;
1185
+ const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1186
+ me.Content,
1231
1187
  {
1232
1188
  ref: o,
1233
1189
  className: d(
@@ -1238,8 +1194,8 @@ const Zo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1238
1194
  children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
1239
1195
  }
1240
1196
  ));
1241
- Zo.displayName = fe.Content.displayName;
1242
- const en = ge(
1197
+ Jo.displayName = me.Content.displayName;
1198
+ const Yo = pe(
1243
1199
  "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",
1244
1200
  {
1245
1201
  variants: {
@@ -1252,17 +1208,17 @@ const en = ge(
1252
1208
  variant: "default"
1253
1209
  }
1254
1210
  }
1255
- ), tn = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(en({ variant: t }), e), ...s }));
1256
- tn.displayName = "Alert";
1257
- const sn = m.forwardRef(
1211
+ ), Qo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Yo({ variant: t }), e), ...s }));
1212
+ Qo.displayName = "Alert";
1213
+ const Xo = m.forwardRef(
1258
1214
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
1259
1215
  );
1260
- sn.displayName = "AlertTitle";
1261
- const on = m.forwardRef(
1216
+ Xo.displayName = "AlertTitle";
1217
+ const Zo = m.forwardRef(
1262
1218
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
1263
1219
  );
1264
- on.displayName = "AlertDescription";
1265
- const nn = ge(
1220
+ Zo.displayName = "AlertDescription";
1221
+ const en = pe(
1266
1222
  "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",
1267
1223
  {
1268
1224
  variants: {
@@ -1277,9 +1233,9 @@ const nn = ge(
1277
1233
  variant: "default"
1278
1234
  }
1279
1235
  }
1280
- ), Zr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(nn({ variant: t }), e), ...s }), ei = U.Root, ti = U.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(U.Portal, { className: d(e), ...t });
1281
- is.displayName = U.Portal.displayName;
1282
- const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1236
+ ), Xr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(en({ variant: t }), e), ...s }), Zr = U.Root, ei = U.Trigger, rs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(U.Portal, { className: d(e), ...t });
1237
+ rs.displayName = U.Portal.displayName;
1238
+ const is = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1283
1239
  U.Overlay,
1284
1240
  {
1285
1241
  className: d(
@@ -1290,9 +1246,9 @@ const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1290
1246
  ref: s
1291
1247
  }
1292
1248
  ));
1293
- ls.displayName = U.Overlay.displayName;
1294
- const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
1295
- /* @__PURE__ */ a.jsx(ls, {}),
1249
+ is.displayName = U.Overlay.displayName;
1250
+ const tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(rs, { children: [
1251
+ /* @__PURE__ */ a.jsx(is, {}),
1296
1252
  /* @__PURE__ */ a.jsx(
1297
1253
  U.Content,
1298
1254
  {
@@ -1305,18 +1261,18 @@ const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is
1305
1261
  }
1306
1262
  )
1307
1263
  ] }));
1308
- an.displayName = U.Content.displayName;
1309
- const rn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1310
- rn.displayName = "AlertDialogHeader";
1311
- const ln = ({ 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 });
1312
- ln.displayName = "AlertDialogFooter";
1313
- const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1314
- cn.displayName = U.Title.displayName;
1315
- const dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1316
- dn.displayName = U.Description.displayName;
1317
- const un = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(bt(), e), ...t }));
1318
- un.displayName = U.Action.displayName;
1319
- const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1264
+ tn.displayName = U.Content.displayName;
1265
+ const sn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1266
+ sn.displayName = "AlertDialogHeader";
1267
+ const on = ({ 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 });
1268
+ on.displayName = "AlertDialogFooter";
1269
+ const nn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
1270
+ nn.displayName = U.Title.displayName;
1271
+ const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1272
+ an.displayName = U.Description.displayName;
1273
+ const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(bt(), e), ...t }));
1274
+ rn.displayName = U.Action.displayName;
1275
+ const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1320
1276
  U.Cancel,
1321
1277
  {
1322
1278
  ref: s,
@@ -1324,11 +1280,11 @@ const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1324
1280
  ...t
1325
1281
  }
1326
1282
  ));
1327
- mn.displayName = U.Cancel.displayName;
1328
- const cs = _.Root, fn = _.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(_.Portal, { className: d(e), ...t });
1329
- ds.displayName = _.Portal.displayName;
1330
- const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1331
- _.Overlay,
1283
+ ln.displayName = U.Cancel.displayName;
1284
+ const ls = B.Root, cn = B.Trigger, cs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1285
+ cs.displayName = B.Portal.displayName;
1286
+ const ds = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1287
+ B.Overlay,
1332
1288
  {
1333
1289
  ref: s,
1334
1290
  className: d(
@@ -1338,11 +1294,11 @@ const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1338
1294
  ...t
1339
1295
  }
1340
1296
  ));
1341
- us.displayName = _.Overlay.displayName;
1342
- const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ds, { children: [
1343
- /* @__PURE__ */ a.jsx(us, {}),
1297
+ ds.displayName = B.Overlay.displayName;
1298
+ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(cs, { children: [
1299
+ /* @__PURE__ */ a.jsx(ds, {}),
1344
1300
  /* @__PURE__ */ a.jsxs(
1345
- _.Content,
1301
+ B.Content,
1346
1302
  {
1347
1303
  ref: o,
1348
1304
  className: d(
@@ -1352,7 +1308,7 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1352
1308
  ...s,
1353
1309
  children: [
1354
1310
  t,
1355
- /* @__PURE__ */ a.jsxs(_.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: [
1311
+ /* @__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: [
1356
1312
  /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
1357
1313
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1358
1314
  ] })
@@ -1360,45 +1316,45 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1360
1316
  }
1361
1317
  )
1362
1318
  ] }));
1363
- xt.displayName = _.Content.displayName;
1364
- const pn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1365
- pn.displayName = "DialogHeader";
1366
- const gn = ({ 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 });
1367
- gn.displayName = "DialogFooter";
1368
- const bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1369
- _.Title,
1319
+ xt.displayName = B.Content.displayName;
1320
+ const dn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
1321
+ dn.displayName = "DialogHeader";
1322
+ const un = ({ 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 });
1323
+ un.displayName = "DialogFooter";
1324
+ const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1325
+ B.Title,
1370
1326
  {
1371
1327
  ref: s,
1372
1328
  className: d("text-lg font-semibold leading-none tracking-tight", e),
1373
1329
  ...t
1374
1330
  }
1375
1331
  ));
1376
- bn.displayName = _.Title.displayName;
1377
- const xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1378
- xn.displayName = _.Description.displayName;
1379
- const hn = 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 }));
1380
- hn.displayName = "Card";
1381
- const vn = m.forwardRef(
1332
+ mn.displayName = B.Title.displayName;
1333
+ const fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1334
+ fn.displayName = B.Description.displayName;
1335
+ const pn = 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 }));
1336
+ pn.displayName = "Card";
1337
+ const gn = m.forwardRef(
1382
1338
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
1383
1339
  );
1384
- vn.displayName = "CardHeader";
1385
- const yn = m.forwardRef(
1340
+ gn.displayName = "CardHeader";
1341
+ const bn = m.forwardRef(
1386
1342
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
1387
1343
  );
1388
- yn.displayName = "CardTitle";
1389
- const wn = m.forwardRef(
1344
+ bn.displayName = "CardTitle";
1345
+ const xn = m.forwardRef(
1390
1346
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
1391
1347
  );
1392
- wn.displayName = "CardDescription";
1393
- const Nn = m.forwardRef(
1348
+ xn.displayName = "CardDescription";
1349
+ const hn = m.forwardRef(
1394
1350
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
1395
1351
  );
1396
- Nn.displayName = "CardContent";
1397
- const kn = m.forwardRef(
1352
+ hn.displayName = "CardContent";
1353
+ const vn = m.forwardRef(
1398
1354
  ({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
1399
1355
  );
1400
- kn.displayName = "CardFooter";
1401
- const jn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1356
+ vn.displayName = "CardFooter";
1357
+ const yn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1402
1358
  "input",
1403
1359
  {
1404
1360
  type: t,
@@ -1410,10 +1366,10 @@ const jn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
1410
1366
  ...s
1411
1367
  }
1412
1368
  ));
1413
- jn.displayName = "Input";
1414
- const Sn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), An = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ut.Root, { ref: s, className: d(Sn(), e), ...t }));
1415
- An.displayName = Ut.Root.displayName;
1416
- const Cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1369
+ yn.displayName = "Input";
1370
+ const wn = pe("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Nn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ut.Root, { ref: s, className: d(wn(), e), ...t }));
1371
+ Nn.displayName = Ut.Root.displayName;
1372
+ const kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1417
1373
  "textarea",
1418
1374
  {
1419
1375
  className: d(
@@ -1424,15 +1380,15 @@ const Cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1424
1380
  ...t
1425
1381
  }
1426
1382
  ));
1427
- Cn.displayName = "Textarea";
1428
- const Bn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(de.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1429
- /* @__PURE__ */ a.jsx(de.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1430
- /* @__PURE__ */ a.jsx(ms, {}),
1431
- /* @__PURE__ */ a.jsx(de.Corner, {})
1383
+ kn.displayName = "Textarea";
1384
+ const jn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ce.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
1385
+ /* @__PURE__ */ a.jsx(ce.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
1386
+ /* @__PURE__ */ a.jsx(us, {}),
1387
+ /* @__PURE__ */ a.jsx(ce.Corner, {})
1432
1388
  ] }));
1433
- Bn.displayName = de.Root.displayName;
1434
- const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1435
- de.ScrollAreaScrollbar,
1389
+ jn.displayName = ce.Root.displayName;
1390
+ const us = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
1391
+ ce.ScrollAreaScrollbar,
1436
1392
  {
1437
1393
  ref: o,
1438
1394
  orientation: t,
@@ -1443,12 +1399,12 @@ const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
1443
1399
  e
1444
1400
  ),
1445
1401
  ...s,
1446
- children: /* @__PURE__ */ a.jsx(de.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1402
+ children: /* @__PURE__ */ a.jsx(ce.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
1447
1403
  }
1448
1404
  ));
1449
- ms.displayName = de.ScrollAreaScrollbar.displayName;
1450
- const _n = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1451
- be.List,
1405
+ us.displayName = ce.ScrollAreaScrollbar.displayName;
1406
+ const Sn = ge.Root, ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1407
+ ge.List,
1452
1408
  {
1453
1409
  ref: s,
1454
1410
  className: d(
@@ -1458,9 +1414,9 @@ const _n = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
1458
1414
  ...t
1459
1415
  }
1460
1416
  ));
1461
- fs.displayName = be.List.displayName;
1462
- const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1463
- be.Trigger,
1417
+ ms.displayName = ge.List.displayName;
1418
+ const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1419
+ ge.Trigger,
1464
1420
  {
1465
1421
  ref: s,
1466
1422
  className: d(
@@ -1470,9 +1426,9 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1470
1426
  ...t
1471
1427
  }
1472
1428
  ));
1473
- Ze.displayName = be.Trigger.displayName;
1474
- const et = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1475
- be.Content,
1429
+ Xe.displayName = ge.Trigger.displayName;
1430
+ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1431
+ ge.Content,
1476
1432
  {
1477
1433
  ref: s,
1478
1434
  className: d(
@@ -1482,9 +1438,9 @@ const et = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1482
1438
  ...t
1483
1439
  }
1484
1440
  ));
1485
- et.displayName = be.Content.displayName;
1486
- const si = ye.Portal, oi = ye.Provider, ni = ye.Root, ai = ye.Trigger, Rn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1487
- ye.Content,
1441
+ Ze.displayName = ge.Content.displayName;
1442
+ const ti = ve.Portal, si = ve.Provider, oi = ve.Root, ni = ve.Trigger, An = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
1443
+ ve.Content,
1488
1444
  {
1489
1445
  ref: o,
1490
1446
  sideOffset: t,
@@ -1495,9 +1451,9 @@ const si = ye.Portal, oi = ye.Provider, ni = ye.Root, ai = ye.Trigger, Rn = m.fo
1495
1451
  ...s
1496
1452
  }
1497
1453
  ));
1498
- Rn.displayName = ye.Content.displayName;
1499
- const ri = Ae.Root, ii = Ae.Trigger, Tn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Ae.Portal, { children: /* @__PURE__ */ a.jsx(
1500
- Ae.Content,
1454
+ An.displayName = ve.Content.displayName;
1455
+ const ai = Se.Root, ri = Se.Trigger, Cn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
1456
+ Se.Content,
1501
1457
  {
1502
1458
  ref: n,
1503
1459
  align: t,
@@ -1509,8 +1465,8 @@ const ri = Ae.Root, ii = Ae.Trigger, Tn = m.forwardRef(({ className: e, align: t
1509
1465
  ...o
1510
1466
  }
1511
1467
  ) }));
1512
- Tn.displayName = Ae.Content.displayName;
1513
- const li = C.Menu, ci = C.Group, di = C.Portal, ui = C.Sub, mi = C.RadioGroup, Pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1468
+ Cn.displayName = Se.Content.displayName;
1469
+ const ii = C.Menu, li = C.Group, ci = C.Portal, di = C.Sub, ui = C.RadioGroup, _n = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1514
1470
  C.Root,
1515
1471
  {
1516
1472
  ref: s,
@@ -1518,8 +1474,8 @@ const li = C.Menu, ci = C.Group, di = C.Portal, ui = C.Sub, mi = C.RadioGroup, P
1518
1474
  ...t
1519
1475
  }
1520
1476
  ));
1521
- Pn.displayName = C.Root.displayName;
1522
- const In = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1477
+ _n.displayName = C.Root.displayName;
1478
+ const Bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1523
1479
  C.Trigger,
1524
1480
  {
1525
1481
  ref: s,
@@ -1530,8 +1486,8 @@ const In = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1530
1486
  ...t
1531
1487
  }
1532
1488
  ));
1533
- In.displayName = C.Trigger.displayName;
1534
- const Mn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1489
+ Bn.displayName = C.Trigger.displayName;
1490
+ const Rn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1535
1491
  C.SubTrigger,
1536
1492
  {
1537
1493
  ref: n,
@@ -1547,8 +1503,8 @@ const Mn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
1547
1503
  ]
1548
1504
  }
1549
1505
  ));
1550
- Mn.displayName = C.SubTrigger.displayName;
1551
- const Dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1506
+ Rn.displayName = C.SubTrigger.displayName;
1507
+ const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1552
1508
  C.SubContent,
1553
1509
  {
1554
1510
  ref: s,
@@ -1559,8 +1515,8 @@ const Dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1559
1515
  ...t
1560
1516
  }
1561
1517
  ));
1562
- Dn.displayName = C.SubContent.displayName;
1563
- const En = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1518
+ Tn.displayName = C.SubContent.displayName;
1519
+ const Pn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
1564
1520
  C.Content,
1565
1521
  {
1566
1522
  ref: i,
@@ -1574,8 +1530,8 @@ const En = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
1574
1530
  ...n
1575
1531
  }
1576
1532
  ) }));
1577
- En.displayName = C.Content.displayName;
1578
- const On = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1533
+ Pn.displayName = C.Content.displayName;
1534
+ const In = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1579
1535
  C.Item,
1580
1536
  {
1581
1537
  ref: o,
@@ -1587,8 +1543,8 @@ const On = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1587
1543
  ...s
1588
1544
  }
1589
1545
  ));
1590
- On.displayName = C.Item.displayName;
1591
- const Ln = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1546
+ In.displayName = C.Item.displayName;
1547
+ const Mn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1592
1548
  C.CheckboxItem,
1593
1549
  {
1594
1550
  ref: n,
@@ -1599,13 +1555,13 @@ const Ln = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1599
1555
  checked: s,
1600
1556
  ...o,
1601
1557
  children: [
1602
- /* @__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(ze, { className: "h-4 w-4" }) }) }),
1558
+ /* @__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" }) }) }),
1603
1559
  t
1604
1560
  ]
1605
1561
  }
1606
1562
  ));
1607
- Ln.displayName = C.CheckboxItem.displayName;
1608
- const zn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1563
+ Mn.displayName = C.CheckboxItem.displayName;
1564
+ const Dn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1609
1565
  C.RadioItem,
1610
1566
  {
1611
1567
  ref: o,
@@ -1620,8 +1576,8 @@ const zn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1620
1576
  ]
1621
1577
  }
1622
1578
  ));
1623
- zn.displayName = C.RadioItem.displayName;
1624
- const Vn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1579
+ Dn.displayName = C.RadioItem.displayName;
1580
+ const En = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1625
1581
  C.Label,
1626
1582
  {
1627
1583
  ref: o,
@@ -1629,13 +1585,13 @@ const Vn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1629
1585
  ...s
1630
1586
  }
1631
1587
  ));
1632
- Vn.displayName = C.Label.displayName;
1633
- const $n = 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 }));
1634
- $n.displayName = C.Separator.displayName;
1635
- const Fn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1636
- Fn.displayname = "MenubarShortcut";
1637
- const fi = Ve.Root, pi = Ve.Trigger, Un = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1638
- Ve.Content,
1588
+ En.displayName = C.Label.displayName;
1589
+ const On = 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 }));
1590
+ On.displayName = C.Separator.displayName;
1591
+ const Ln = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
1592
+ Ln.displayname = "MenubarShortcut";
1593
+ const mi = ze.Root, fi = ze.Trigger, zn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
1594
+ ze.Content,
1639
1595
  {
1640
1596
  ref: n,
1641
1597
  align: t,
@@ -1647,8 +1603,8 @@ const fi = Ve.Root, pi = Ve.Trigger, Un = m.forwardRef(({ className: e, align: t
1647
1603
  ...o
1648
1604
  }
1649
1605
  ));
1650
- Un.displayName = Ve.Content.displayName;
1651
- const gi = z.Root, bi = z.Group, xi = z.Value, Wn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1606
+ zn.displayName = ze.Content.displayName;
1607
+ const pi = z.Root, gi = z.Group, bi = z.Value, Vn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1652
1608
  z.Trigger,
1653
1609
  {
1654
1610
  ref: o,
@@ -1659,12 +1615,12 @@ const gi = z.Root, bi = z.Group, xi = z.Value, Wn = m.forwardRef(({ className: e
1659
1615
  ...s,
1660
1616
  children: [
1661
1617
  t,
1662
- /* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
1618
+ /* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(qs, { className: "h-4 w-4 opacity-50" }) })
1663
1619
  ]
1664
1620
  }
1665
1621
  ));
1666
- Wn.displayName = z.Trigger.displayName;
1667
- const Gn = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(z.Portal, { children: /* @__PURE__ */ a.jsx(
1622
+ Vn.displayName = z.Trigger.displayName;
1623
+ const $n = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(z.Portal, { children: /* @__PURE__ */ a.jsx(
1668
1624
  z.Content,
1669
1625
  {
1670
1626
  ref: n,
@@ -1687,10 +1643,10 @@ const Gn = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
1687
1643
  )
1688
1644
  }
1689
1645
  ) }));
1690
- Gn.displayName = z.Content.displayName;
1691
- const Hn = 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 }));
1692
- Hn.displayName = z.Label.displayName;
1693
- const qn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1646
+ $n.displayName = z.Content.displayName;
1647
+ const Fn = 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 }));
1648
+ Fn.displayName = z.Label.displayName;
1649
+ const Un = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1694
1650
  z.Item,
1695
1651
  {
1696
1652
  ref: o,
@@ -1700,18 +1656,18 @@ const qn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1700
1656
  ),
1701
1657
  ...s,
1702
1658
  children: [
1703
- /* @__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(ze, { className: "h-4 w-4" }) }) }),
1659
+ /* @__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" }) }) }),
1704
1660
  /* @__PURE__ */ a.jsx(z.ItemText, { children: t })
1705
1661
  ]
1706
1662
  }
1707
1663
  ));
1708
- qn.displayName = z.Item.displayName;
1709
- const Kn = 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 }));
1710
- Kn.displayName = z.Separator.displayName;
1711
- const hi = _.Root, vi = _.Trigger, yi = _.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(_.Portal, { className: d(e), ...t });
1712
- ps.displayName = _.Portal.displayName;
1713
- const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1714
- _.Overlay,
1664
+ Un.displayName = z.Item.displayName;
1665
+ const Wn = 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 }));
1666
+ Wn.displayName = z.Separator.displayName;
1667
+ const xi = B.Root, hi = B.Trigger, vi = B.Close, fs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: d(e), ...t });
1668
+ fs.displayName = B.Portal.displayName;
1669
+ const ps = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1670
+ B.Overlay,
1715
1671
  {
1716
1672
  className: d(
1717
1673
  "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",
@@ -1721,8 +1677,8 @@ const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1721
1677
  ref: s
1722
1678
  }
1723
1679
  ));
1724
- gs.displayName = _.Overlay.displayName;
1725
- const Jn = ge(
1680
+ ps.displayName = B.Overlay.displayName;
1681
+ const Gn = pe(
1726
1682
  "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",
1727
1683
  {
1728
1684
  variants: {
@@ -1737,28 +1693,28 @@ const Jn = ge(
1737
1693
  side: "right"
1738
1694
  }
1739
1695
  }
1740
- ), Yn = m.forwardRef(
1741
- ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(ps, { children: [
1742
- /* @__PURE__ */ a.jsx(gs, {}),
1743
- /* @__PURE__ */ a.jsxs(_.Content, { ref: n, className: d(Jn({ side: e }), t), ...o, children: [
1696
+ ), Hn = m.forwardRef(
1697
+ ({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(fs, { children: [
1698
+ /* @__PURE__ */ a.jsx(ps, {}),
1699
+ /* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: d(Gn({ side: e }), t), ...o, children: [
1744
1700
  s,
1745
- /* @__PURE__ */ a.jsxs(_.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: [
1701
+ /* @__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: [
1746
1702
  /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
1747
1703
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
1748
1704
  ] })
1749
1705
  ] })
1750
1706
  ] })
1751
1707
  );
1752
- Yn.displayName = _.Content.displayName;
1753
- const Qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1754
- Qn.displayName = "SheetHeader";
1755
- const Xn = ({ 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 });
1756
- Xn.displayName = "SheetFooter";
1757
- const Zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1758
- Zn.displayName = _.Title.displayName;
1759
- const ea = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1760
- ea.displayName = _.Description.displayName;
1761
- const wi = T.Root, Ni = T.Trigger, ki = T.Group, ji = T.Portal, Si = T.Sub, Ai = T.RadioGroup, ta = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1708
+ Hn.displayName = B.Content.displayName;
1709
+ const qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
1710
+ qn.displayName = "SheetHeader";
1711
+ const Kn = ({ 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 });
1712
+ Kn.displayName = "SheetFooter";
1713
+ const Jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
1714
+ Jn.displayName = B.Title.displayName;
1715
+ const Yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
1716
+ Yn.displayName = B.Description.displayName;
1717
+ const yi = T.Root, wi = T.Trigger, Ni = T.Group, ki = T.Portal, ji = T.Sub, Si = T.RadioGroup, Qn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1762
1718
  T.SubTrigger,
1763
1719
  {
1764
1720
  ref: n,
@@ -1774,8 +1730,8 @@ const wi = T.Root, Ni = T.Trigger, ki = T.Group, ji = T.Portal, Si = T.Sub, Ai =
1774
1730
  ]
1775
1731
  }
1776
1732
  ));
1777
- ta.displayName = T.SubTrigger.displayName;
1778
- const sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1733
+ Qn.displayName = T.SubTrigger.displayName;
1734
+ const Xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1779
1735
  T.SubContent,
1780
1736
  {
1781
1737
  ref: s,
@@ -1786,8 +1742,8 @@ const sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1786
1742
  ...t
1787
1743
  }
1788
1744
  ));
1789
- sa.displayName = T.SubContent.displayName;
1790
- const oa = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
1745
+ Xn.displayName = T.SubContent.displayName;
1746
+ const Zn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
1791
1747
  T.Content,
1792
1748
  {
1793
1749
  ref: o,
@@ -1800,8 +1756,8 @@ const oa = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
1800
1756
  ...s
1801
1757
  }
1802
1758
  ) }));
1803
- oa.displayName = T.Content.displayName;
1804
- const na = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1759
+ Zn.displayName = T.Content.displayName;
1760
+ const ea = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1805
1761
  T.Item,
1806
1762
  {
1807
1763
  ref: o,
@@ -1813,8 +1769,8 @@ const na = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1813
1769
  ...s
1814
1770
  }
1815
1771
  ));
1816
- na.displayName = T.Item.displayName;
1817
- const aa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1772
+ ea.displayName = T.Item.displayName;
1773
+ const ta = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
1818
1774
  T.CheckboxItem,
1819
1775
  {
1820
1776
  ref: n,
@@ -1825,13 +1781,13 @@ const aa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
1825
1781
  checked: s,
1826
1782
  ...o,
1827
1783
  children: [
1828
- /* @__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(ze, { className: "h-4 w-4" }) }) }),
1784
+ /* @__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" }) }) }),
1829
1785
  t
1830
1786
  ]
1831
1787
  }
1832
1788
  ));
1833
- aa.displayName = T.CheckboxItem.displayName;
1834
- const ra = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1789
+ ta.displayName = T.CheckboxItem.displayName;
1790
+ const sa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
1835
1791
  T.RadioItem,
1836
1792
  {
1837
1793
  ref: o,
@@ -1846,8 +1802,8 @@ const ra = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
1846
1802
  ]
1847
1803
  }
1848
1804
  ));
1849
- ra.displayName = T.RadioItem.displayName;
1850
- const ia = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1805
+ sa.displayName = T.RadioItem.displayName;
1806
+ const oa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
1851
1807
  T.Label,
1852
1808
  {
1853
1809
  ref: o,
@@ -1855,12 +1811,12 @@ const ia = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
1855
1811
  ...s
1856
1812
  }
1857
1813
  ));
1858
- ia.displayName = T.Label.displayName;
1859
- const la = 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 }));
1860
- la.displayName = T.Separator.displayName;
1861
- const ca = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1862
- ca.displayName = "DropdownMenuShortcut";
1863
- const da = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1814
+ oa.displayName = T.Label.displayName;
1815
+ const na = 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 }));
1816
+ na.displayName = T.Separator.displayName;
1817
+ const aa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
1818
+ aa.displayName = "DropdownMenuShortcut";
1819
+ const ra = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
1864
1820
  Wt.Root,
1865
1821
  {
1866
1822
  ref: n,
@@ -1870,28 +1826,28 @@ const da = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
1870
1826
  ...o
1871
1827
  }
1872
1828
  ));
1873
- da.displayName = Wt.Root.displayName;
1874
- const ua = 1, ma = 1e6;
1875
- let Ge = 0;
1876
- function fa() {
1877
- return Ge = (Ge + 1) % Number.MAX_VALUE, Ge.toString();
1829
+ ra.displayName = Wt.Root.displayName;
1830
+ const ia = 1, la = 1e6;
1831
+ let We = 0;
1832
+ function ca() {
1833
+ return We = (We + 1) % Number.MAX_VALUE, We.toString();
1878
1834
  }
1879
- const He = /* @__PURE__ */ new Map(), Rt = (e) => {
1880
- if (He.has(e))
1835
+ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
1836
+ if (Ge.has(e))
1881
1837
  return;
1882
1838
  const t = setTimeout(() => {
1883
- He.delete(e), je({
1839
+ Ge.delete(e), ke({
1884
1840
  type: "REMOVE_TOAST",
1885
1841
  toastId: e
1886
1842
  });
1887
- }, ma);
1888
- He.set(e, t);
1889
- }, pa = (e, t) => {
1843
+ }, la);
1844
+ Ge.set(e, t);
1845
+ }, da = (e, t) => {
1890
1846
  switch (t.type) {
1891
1847
  case "ADD_TOAST":
1892
1848
  return {
1893
1849
  ...e,
1894
- toasts: [t.toast, ...e.toasts].slice(0, ua)
1850
+ toasts: [t.toast, ...e.toasts].slice(0, ia)
1895
1851
  };
1896
1852
  case "UPDATE_TOAST":
1897
1853
  return {
@@ -1923,17 +1879,17 @@ const He = /* @__PURE__ */ new Map(), Rt = (e) => {
1923
1879
  }
1924
1880
  }, Me = [];
1925
1881
  let De = { toasts: [] };
1926
- function je(e) {
1927
- De = pa(De, e), Me.forEach((t) => {
1882
+ function ke(e) {
1883
+ De = da(De, e), Me.forEach((t) => {
1928
1884
  t(De);
1929
1885
  });
1930
1886
  }
1931
- function ga({ ...e }) {
1932
- const t = fa(), s = (n) => je({
1887
+ function ua({ ...e }) {
1888
+ const t = ca(), s = (n) => ke({
1933
1889
  type: "UPDATE_TOAST",
1934
1890
  toast: { ...n, id: t }
1935
- }), o = () => je({ type: "DISMISS_TOAST", toastId: t });
1936
- return je({
1891
+ }), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
1892
+ return ke({
1937
1893
  type: "ADD_TOAST",
1938
1894
  toast: {
1939
1895
  ...e,
@@ -1949,18 +1905,18 @@ function ga({ ...e }) {
1949
1905
  update: s
1950
1906
  };
1951
1907
  }
1952
- function bs() {
1908
+ function gs() {
1953
1909
  const [e, t] = m.useState(De);
1954
1910
  return m.useEffect(() => (Me.push(t), () => {
1955
1911
  const s = Me.indexOf(t);
1956
1912
  s > -1 && Me.splice(s, 1);
1957
1913
  }), [e]), {
1958
1914
  ...e,
1959
- toast: ga,
1960
- dismiss: (s) => je({ type: "DISMISS_TOAST", toastId: s })
1915
+ toast: ua,
1916
+ dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
1961
1917
  };
1962
1918
  }
1963
- const ba = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1919
+ const ma = Y.Provider, bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1964
1920
  Y.Viewport,
1965
1921
  {
1966
1922
  ref: s,
@@ -1971,8 +1927,8 @@ const ba = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
1971
1927
  ...t
1972
1928
  }
1973
1929
  ));
1974
- xs.displayName = Y.Viewport.displayName;
1975
- const xa = ge(
1930
+ bs.displayName = Y.Viewport.displayName;
1931
+ const fa = pe(
1976
1932
  "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",
1977
1933
  {
1978
1934
  variants: {
@@ -1985,9 +1941,9 @@ const xa = ge(
1985
1941
  variant: "default"
1986
1942
  }
1987
1943
  }
1988
- ), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Y.Root, { ref: o, className: d(xa({ variant: t }), e), ...s }));
1989
- hs.displayName = Y.Root.displayName;
1990
- const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1944
+ ), xs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Y.Root, { ref: o, className: d(fa({ variant: t }), e), ...s }));
1945
+ xs.displayName = Y.Root.displayName;
1946
+ const pa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1991
1947
  Y.Action,
1992
1948
  {
1993
1949
  ref: s,
@@ -1998,8 +1954,8 @@ const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1998
1954
  ...t
1999
1955
  }
2000
1956
  ));
2001
- ha.displayName = Y.Action.displayName;
2002
- const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
1957
+ pa.displayName = Y.Action.displayName;
1958
+ const hs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2003
1959
  Y.Close,
2004
1960
  {
2005
1961
  ref: s,
@@ -2012,26 +1968,26 @@ const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2012
1968
  children: /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" })
2013
1969
  }
2014
1970
  ));
2015
- vs.displayName = Y.Close.displayName;
2016
- 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 }));
2017
- ys.displayName = Y.Title.displayName;
2018
- const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
2019
- ws.displayName = Y.Description.displayName;
2020
- function Ci() {
2021
- const { toasts: e } = bs();
2022
- return /* @__PURE__ */ a.jsxs(ba, { children: [
2023
- e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(hs, { ...i, children: [
1971
+ hs.displayName = Y.Close.displayName;
1972
+ const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
1973
+ vs.displayName = Y.Title.displayName;
1974
+ const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
1975
+ ys.displayName = Y.Description.displayName;
1976
+ function Ai() {
1977
+ const { toasts: e } = gs();
1978
+ return /* @__PURE__ */ a.jsxs(ma, { children: [
1979
+ e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(xs, { ...i, children: [
2024
1980
  /* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
2025
- s && /* @__PURE__ */ a.jsx(ys, { children: s }),
2026
- o && /* @__PURE__ */ a.jsx(ws, { children: o })
1981
+ s && /* @__PURE__ */ a.jsx(vs, { children: s }),
1982
+ o && /* @__PURE__ */ a.jsx(ys, { children: o })
2027
1983
  ] }),
2028
1984
  n,
2029
- /* @__PURE__ */ a.jsx(vs, {})
1985
+ /* @__PURE__ */ a.jsx(hs, {})
2030
1986
  ] }, t)),
2031
- /* @__PURE__ */ a.jsx(xs, {})
1987
+ /* @__PURE__ */ a.jsx(bs, {})
2032
1988
  ] });
2033
1989
  }
2034
- const Bi = ({ 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(
1990
+ const Ci = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2035
1991
  K,
2036
1992
  {
2037
1993
  ref: s,
@@ -2042,9 +1998,9 @@ const Bi = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
2042
1998
  ...t
2043
1999
  }
2044
2000
  ));
2045
- Ns.displayName = K.displayName;
2046
- const _i = ({ 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 }) }) }), va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2047
- /* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2001
+ ws.displayName = K.displayName;
2002
+ const _i = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ls, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(ws, { 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 }) }) }), ga = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2003
+ /* @__PURE__ */ a.jsx(Ks, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2048
2004
  /* @__PURE__ */ a.jsx(
2049
2005
  K.Input,
2050
2006
  {
@@ -2057,8 +2013,8 @@ const _i = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children
2057
2013
  }
2058
2014
  )
2059
2015
  ] }));
2060
- va.displayName = K.Input.displayName;
2061
- const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2016
+ ga.displayName = K.Input.displayName;
2017
+ const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2062
2018
  K.List,
2063
2019
  {
2064
2020
  ref: s,
@@ -2066,10 +2022,10 @@ const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2066
2022
  ...t
2067
2023
  }
2068
2024
  ));
2069
- ya.displayName = K.List.displayName;
2070
- const wa = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(K.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2071
- wa.displayName = K.Empty.displayName;
2072
- const Na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2025
+ ba.displayName = K.List.displayName;
2026
+ const xa = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(K.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
2027
+ xa.displayName = K.Empty.displayName;
2028
+ const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2073
2029
  K.Group,
2074
2030
  {
2075
2031
  ref: s,
@@ -2080,10 +2036,10 @@ const Na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2080
2036
  ...t
2081
2037
  }
2082
2038
  ));
2083
- Na.displayName = K.Group.displayName;
2084
- const ka = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(K.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2085
- ka.displayName = K.Separator.displayName;
2086
- const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2039
+ ha.displayName = K.Group.displayName;
2040
+ const va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(K.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
2041
+ va.displayName = K.Separator.displayName;
2042
+ const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2087
2043
  K.Item,
2088
2044
  {
2089
2045
  ref: s,
@@ -2094,10 +2050,10 @@ const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2094
2050
  ...t
2095
2051
  }
2096
2052
  ));
2097
- ja.displayName = K.Item.displayName;
2098
- const Sa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2099
- Sa.displayName = "CommandShortcut";
2100
- const Ri = P.Root, Ti = P.Trigger, Pi = P.Group, Ii = P.Portal, Mi = P.Sub, Di = P.RadioGroup, Aa = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2053
+ ya.displayName = K.Item.displayName;
2054
+ const wa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2055
+ wa.displayName = "CommandShortcut";
2056
+ const Bi = P.Root, Ri = P.Trigger, Ti = P.Group, Pi = P.Portal, Ii = P.Sub, Mi = P.RadioGroup, Na = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2101
2057
  P.SubTrigger,
2102
2058
  {
2103
2059
  ref: n,
@@ -2113,8 +2069,8 @@ const Ri = P.Root, Ti = P.Trigger, Pi = P.Group, Ii = P.Portal, Mi = P.Sub, Di =
2113
2069
  ]
2114
2070
  }
2115
2071
  ));
2116
- Aa.displayName = P.SubTrigger.displayName;
2117
- const Ca = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2072
+ Na.displayName = P.SubTrigger.displayName;
2073
+ const ka = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2118
2074
  P.SubContent,
2119
2075
  {
2120
2076
  ref: s,
@@ -2125,8 +2081,8 @@ const Ca = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
2125
2081
  ...t
2126
2082
  }
2127
2083
  ));
2128
- Ca.displayName = P.SubContent.displayName;
2129
- const Ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2084
+ ka.displayName = P.SubContent.displayName;
2085
+ const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
2130
2086
  P.Content,
2131
2087
  {
2132
2088
  ref: s,
@@ -2137,8 +2093,8 @@ const Ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.P
2137
2093
  ...t
2138
2094
  }
2139
2095
  ) }));
2140
- Ba.displayName = P.Content.displayName;
2141
- const _a = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2096
+ ja.displayName = P.Content.displayName;
2097
+ const Sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2142
2098
  P.Item,
2143
2099
  {
2144
2100
  ref: o,
@@ -2150,8 +2106,8 @@ const _a = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2150
2106
  ...s
2151
2107
  }
2152
2108
  ));
2153
- _a.displayName = P.Item.displayName;
2154
- const Ra = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2109
+ Sa.displayName = P.Item.displayName;
2110
+ const Aa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
2155
2111
  P.CheckboxItem,
2156
2112
  {
2157
2113
  ref: n,
@@ -2162,13 +2118,13 @@ const Ra = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
2162
2118
  checked: s,
2163
2119
  ...o,
2164
2120
  children: [
2165
- /* @__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(ze, { className: "h-4 w-4" }) }) }),
2121
+ /* @__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" }) }) }),
2166
2122
  t
2167
2123
  ]
2168
2124
  }
2169
2125
  ));
2170
- Ra.displayName = P.CheckboxItem.displayName;
2171
- const Ta = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2126
+ Aa.displayName = P.CheckboxItem.displayName;
2127
+ const Ca = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
2172
2128
  P.RadioItem,
2173
2129
  {
2174
2130
  ref: o,
@@ -2183,8 +2139,8 @@ const Ta = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
2183
2139
  ]
2184
2140
  }
2185
2141
  ));
2186
- Ta.displayName = P.RadioItem.displayName;
2187
- const Pa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2142
+ Ca.displayName = P.RadioItem.displayName;
2143
+ const _a = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
2188
2144
  P.Label,
2189
2145
  {
2190
2146
  ref: o,
@@ -2192,15 +2148,15 @@ const Pa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
2192
2148
  ...s
2193
2149
  }
2194
2150
  ));
2195
- Pa.displayName = P.Label.displayName;
2196
- const Ia = 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 }));
2197
- Ia.displayName = P.Separator.displayName;
2198
- const Ma = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2199
- Ma.displayName = "ContextMenuShortcut";
2200
- const Da = (e) => {
2151
+ _a.displayName = P.Label.displayName;
2152
+ const Ba = 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 }));
2153
+ Ba.displayName = P.Separator.displayName;
2154
+ const Ra = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
2155
+ Ra.displayName = "ContextMenuShortcut";
2156
+ const Ta = (e) => {
2201
2157
  try {
2202
2158
  const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
2203
- Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
2159
+ Qs.render(/* @__PURE__ */ a.jsx(Ys, { value: e }), s), t.appendChild(s), s.hidden = !0;
2204
2160
  let o = s.innerHTML;
2205
2161
  setTimeout(() => t.removeChild(s), 100);
2206
2162
  const i = new DOMParser().parseFromString(o, "image/svg+xml"), r = i.querySelector("svg");
@@ -2208,10 +2164,10 @@ const Da = (e) => {
2208
2164
  } catch (t) {
2209
2165
  return console.error(t), "";
2210
2166
  }
2211
- }, Ei = ({ value: e, onChange: t }) => {
2167
+ }, Di = ({ value: e, onChange: t }) => {
2212
2168
  const s = (o) => {
2213
2169
  t("<svg />");
2214
- const n = Da(o);
2170
+ const n = Ta(o);
2215
2171
  t(n);
2216
2172
  };
2217
2173
  return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
@@ -2226,7 +2182,7 @@ const Da = (e) => {
2226
2182
  }
2227
2183
  ),
2228
2184
  /* @__PURE__ */ a.jsx(
2229
- Ks,
2185
+ Js,
2230
2186
  {
2231
2187
  value: e ? "BiSolidGrid" : null,
2232
2188
  onChange: s,
@@ -2262,37 +2218,37 @@ const Da = (e) => {
2262
2218
  }
2263
2219
  )
2264
2220
  ] });
2265
- }, Ea = tt.lazy(() => import("./UnsplashImages-132gZ842.js")), Oa = tt.lazy(() => import("./UploadImages-tr54Ik1I.js")), ks = ({
2221
+ }, Pa = et.lazy(() => import("./UnsplashImages-5A21uzMK.js")), Ia = et.lazy(() => import("./UploadImages-V_54lCAO.js")), Ns = ({
2266
2222
  isModalView: e = !1,
2267
2223
  onSelect: t = () => {
2268
2224
  }
2269
2225
  }) => {
2270
- const [s, o] = Be("upload");
2226
+ const [s, o] = Ce("upload");
2271
2227
  return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
2272
2228
  /* @__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" }) }),
2273
- /* @__PURE__ */ a.jsxs(_n, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2274
- /* @__PURE__ */ a.jsxs(fs, { className: "w-full", children: [
2275
- /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "w-1/2", children: "Upload" }),
2276
- /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2229
+ /* @__PURE__ */ a.jsxs(Sn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
2230
+ /* @__PURE__ */ a.jsxs(ms, { className: "w-full", children: [
2231
+ /* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
2232
+ /* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
2277
2233
  ] }),
2278
- s === "unsplash" ? /* @__PURE__ */ a.jsx(et, { 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(Ea, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(et, { 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(Oa, { isModalView: e, onSelect: t }) }) })
2234
+ 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(Pa, { 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(Ia, { isModalView: e, onSelect: t }) }) })
2279
2235
  ] })
2280
2236
  ] });
2281
- }, Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2237
+ }, Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2282
2238
  __proto__: null,
2283
- default: ks
2239
+ default: Ns
2284
2240
  }, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
2285
- const [s, o] = Be(!1), n = (...i) => {
2241
+ const [s, o] = Ce(!1), n = (...i) => {
2286
2242
  t.call(void 0, ...i), o(!1);
2287
2243
  };
2288
- return /* @__PURE__ */ a.jsxs(cs, { open: s, onOpenChange: (i) => o(i), children: [
2289
- /* @__PURE__ */ a.jsx(fn, { asChild: !0, children: e }),
2290
- /* @__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 }) }) })
2244
+ return /* @__PURE__ */ a.jsxs(ls, { open: s, onOpenChange: (i) => o(i), children: [
2245
+ /* @__PURE__ */ a.jsx(cn, { asChild: !0, children: e }),
2246
+ /* @__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(Ns, { isModalView: !0, onSelect: n }) }) })
2291
2247
  ] });
2292
- }, Li = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2248
+ }, Oi = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
2293
2249
  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" }) }),
2294
2250
  /* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
2295
- /* @__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 || !ve(e) ? "Replace Image" : "Choose Image" }) }),
2251
+ /* @__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 || !_e(e) ? "Replace Image" : "Choose Image" }) }),
2296
2252
  /* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
2297
2253
  /* @__PURE__ */ a.jsx(
2298
2254
  "input",
@@ -2306,7 +2262,7 @@ const Da = (e) => {
2306
2262
  }
2307
2263
  )
2308
2264
  ] })
2309
- ] }), zi = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2265
+ ] }), Li = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
2310
2266
  const i = {
2311
2267
  toolbar: [
2312
2268
  ["bold", "italic", "underline", "strike", "blockquote"],
@@ -2330,7 +2286,7 @@ const Da = (e) => {
2330
2286
  "image"
2331
2287
  ];
2332
2288
  return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
2333
- Qs,
2289
+ Xs,
2334
2290
  {
2335
2291
  id: e,
2336
2292
  value: s,
@@ -2342,9 +2298,9 @@ const Da = (e) => {
2342
2298
  className: "mt-1 rounded-md"
2343
2299
  }
2344
2300
  );
2345
- }, Vi = ({ schema: e, formData: t, onChange: s }) => {
2346
- const [o, n] = Be([]), i = ke("getPages", () => []), { type: r = "page", href: c = "", target: f = "self" } = t;
2347
- return Ce(() => {
2301
+ }, zi = ({ schema: e, formData: t, onChange: s }) => {
2302
+ const [o, n] = Ce([]), i = Ne("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
2303
+ return Ae(() => {
2348
2304
  (async () => {
2349
2305
  const l = await i();
2350
2306
  n(l || []);
@@ -2386,42 +2342,42 @@ const Da = (e) => {
2386
2342
  "input",
2387
2343
  {
2388
2344
  type: "checkbox",
2389
- defaultChecked: f === "_blank",
2345
+ defaultChecked: p === "_blank",
2390
2346
  className: "cursor-pointer rounded-md border border-border",
2391
- onChange: () => s({ ...t, target: f === "_blank" ? "_self" : "_blank" })
2347
+ onChange: () => s({ ...t, target: p === "_blank" ? "_self" : "_blank" })
2392
2348
  }
2393
2349
  ),
2394
2350
  /* @__PURE__ */ a.jsx("span", { className: "pt-1 text-xs", children: "Open in new tab" })
2395
2351
  ] })
2396
2352
  ] })
2397
2353
  ] });
2398
- }, $i = () => {
2399
- const [e] = we(), [, t] = $e(), { addBlocks: s } = xe(), { toast: o } = bs(), n = L(
2400
- (r, c, f) => {
2354
+ }, Vi = () => {
2355
+ const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = gs(), n = L(
2356
+ (r, c, p) => {
2401
2357
  var k;
2402
2358
  for (let I = 0; I < r.length; I++) {
2403
2359
  const { _id: O } = r[I];
2404
- r[I]._id = ce();
2360
+ r[I]._id = le();
2405
2361
  const W = M(r, { _parent: O });
2406
2362
  for (let G = 0; G < W.length; G++)
2407
2363
  W[G]._parent = r[I]._id;
2408
2364
  }
2409
2365
  const l = Q(r);
2410
- let p, x;
2411
- return c && (p = te(e, { _id: c }), r[0]._parent = c, x = c), !(p ? Qe(p._type, l._type) : !0) && p && (r[0]._parent = p._parent, x = p._parent), s(r, x, f), t([(k = Q(r)) == null ? void 0 : k._id]), Q(r);
2366
+ let f, x;
2367
+ 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);
2412
2368
  },
2413
2369
  [e, t]
2414
2370
  );
2415
2371
  return { addCoreBlock: L(
2416
- (r, c, f) => {
2417
- if (pe(r, "blocks")) {
2372
+ (r, c, p) => {
2373
+ if (fe(r, "blocks")) {
2418
2374
  const G = r.blocks;
2419
- return n(G, c, f);
2375
+ return n(G, c, p);
2420
2376
  }
2421
- const l = ce(), p = es(r.props), x = [];
2422
- Lt(p, (G, H) => {
2423
- if (zt(G, Ke)) {
2424
- const $ = G.replace(Ke, "");
2377
+ const l = le(), f = Xt(r.props), x = [];
2378
+ Ot(f, (G, H) => {
2379
+ if (Lt(G, qe)) {
2380
+ const $ = G.replace(qe, "");
2425
2381
  x.push({
2426
2382
  _id: $,
2427
2383
  _type: "Slot",
@@ -2435,10 +2391,10 @@ const Da = (e) => {
2435
2391
  const N = {
2436
2392
  _type: r.type,
2437
2393
  _id: l,
2438
- ...p
2394
+ ...f
2439
2395
  };
2440
2396
  let k, I;
2441
- if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !wo(k == null ? void 0 : k._type, r.type)) {
2397
+ if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !No(k == null ? void 0 : k._type, r.type)) {
2442
2398
  o({
2443
2399
  variant: "destructive",
2444
2400
  title: "Error",
@@ -2446,9 +2402,9 @@ const Da = (e) => {
2446
2402
  }), t([]);
2447
2403
  return;
2448
2404
  }
2449
- !(k ? Qe(k._type, r.type) : !0) && k && (N._parent = k._parent, I = k._parent);
2405
+ !(k ? Ye(k._type, r.type) : !0) && k && (N._parent = k._parent, I = k._parent);
2450
2406
  const W = [N, ...x];
2451
- return s(W, I, f), t([N._id]), N;
2407
+ return s(W, I, p), t([N._id]), N;
2452
2408
  },
2453
2409
  [n, e, t]
2454
2410
  ), addPredefinedBlock: n };
@@ -2460,7 +2416,7 @@ const Da = (e) => {
2460
2416
  xl: 1280,
2461
2417
  "2xl": 1536
2462
2418
  }, It = ["xs", "sm", "md", "lg", "xl", "2xl"];
2463
- function La(e, t) {
2419
+ function Ma(e, t) {
2464
2420
  if (t === null)
2465
2421
  return "baseClasses";
2466
2422
  const s = t.mq;
@@ -2481,30 +2437,30 @@ function La(e, t) {
2481
2437
  return o;
2482
2438
  }
2483
2439
  const Mt = [];
2484
- function za(e = "", t = "", s = []) {
2440
+ function Da(e = "", t = "", s = []) {
2485
2441
  e = e.trim().replace(/ +/g, "");
2486
2442
  let o = M(
2487
2443
  R(e.split(" "), Ie),
2488
- (l) => !qe(l)
2489
- ), n = M(R(t.split(" "), Ie), (l) => !qe(l));
2444
+ (l) => !He(l)
2445
+ ), n = M(R(t.split(" "), Ie), (l) => !He(l));
2490
2446
  n = M(
2491
2447
  n,
2492
2448
  (l) => !q(Mt, l.property)
2493
2449
  );
2494
2450
  const i = [], r = [];
2495
- ue(s, (l) => {
2496
- const p = Ie(l), x = te(o, yt(p, ["dark", "mq", "mod", "property"]));
2451
+ de(s, (l) => {
2452
+ const f = Ie(l), x = te(o, yt(f, ["dark", "mq", "mod", "property"]));
2497
2453
  if (x && (o = M(
2498
2454
  o,
2499
2455
  (N) => N.fullCls !== (x == null ? void 0 : x.fullCls)
2500
- )), i.push(p), p.mq === "xs" && !p.dark && p.mod === "" && (n = M(n, (N) => N.property !== p.property)), La(o, p) === "baseClasses" && !q(Mt, p.property)) {
2501
- const N = te(n, yt(p, ["property"]));
2456
+ )), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.property)), Ma(o, f) === "baseClasses" && !q(Mt, f.property)) {
2457
+ const N = te(n, yt(f, ["property"]));
2502
2458
  x && (n = M(
2503
2459
  n,
2504
2460
  (k) => k.fullCls !== (N == null ? void 0 : N.fullCls)
2505
2461
  )), r.push({
2506
- ...p,
2507
- fullCls: p.cls,
2462
+ ...f,
2463
+ fullCls: f.cls,
2508
2464
  mq: "xs"
2509
2465
  });
2510
2466
  }
@@ -2520,10 +2476,10 @@ function za(e = "", t = "", s = []) {
2520
2476
  }
2521
2477
  const Te = w([]);
2522
2478
  Te.debugLabel = "selectedStylingBlocksAtom";
2523
- const Va = () => D(Te), $a = (e) => {
2524
- const t = e.replace(me, "").split(",");
2479
+ const Ea = () => D(Te), Oa = (e) => {
2480
+ const t = e.replace(ue, "").split(",");
2525
2481
  return { baseClasses: t[0], classes: t[1] };
2526
- }, Fa = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2482
+ }, La = w(null, (e, t, { blockIds: s, newClasses: o }) => {
2527
2483
  const n = M(
2528
2484
  e(rt),
2529
2485
  (r) => (
@@ -2532,14 +2488,14 @@ const Va = () => D(Te), $a = (e) => {
2532
2488
  )
2533
2489
  ), i = Q(e(Te));
2534
2490
  return R(n, (r) => {
2535
- const c = e(r), f = F(c, i.prop, `${me},`), { baseClasses: l, classes: p } = $a(f);
2491
+ const c = e(r), p = F(c, i.prop, `${ue},`), { baseClasses: l, classes: f } = Oa(p);
2536
2492
  return {
2537
2493
  ids: [c._id],
2538
- props: { [i.prop]: `${me}${za(p, l, o)}` }
2494
+ props: { [i.prop]: `${ue}${Da(f, l, o)}` }
2539
2495
  };
2540
2496
  });
2541
- }), Fi = () => {
2542
- const e = _e(Fa), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2497
+ }), $i = () => {
2498
+ const e = Be(La), { updateBlocks: t, updateBlocksRuntime: s } = xe();
2543
2499
  return L(
2544
2500
  (o, n, i = !1) => {
2545
2501
  const r = e({ blockIds: o, newClasses: n });
@@ -2551,86 +2507,130 @@ const Va = () => D(Te), $a = (e) => {
2551
2507
  },
2552
2508
  [e]
2553
2509
  );
2554
- }, Ua = () => D(Zt), js = Re("canvasWidth", 800), Ss = w((e) => {
2555
- const t = e(js);
2556
- return $s(t).toLowerCase();
2557
- }), Ui = () => {
2558
- const [e, t] = D(js), s = X(Ss), [o, n] = Ua();
2559
- return Ce(() => {
2510
+ }, za = () => D(Qt), ks = Re("canvasWidth", 800), js = w((e) => {
2511
+ const t = e(ks);
2512
+ return Fs(t).toLowerCase();
2513
+ }), Fi = () => {
2514
+ const [e, t] = D(ks), s = X(js), [o, n] = za();
2515
+ return Ae(() => {
2560
2516
  o !== "xs" && n(s);
2561
2517
  }, [s, o, n]), [e, s, t];
2562
- }, Wa = Re("canvasZoom", 100), Wi = () => D(Wa), As = w([]), Ga = () => {
2563
- const [e, t] = D(As), s = _e(ht), o = L(
2518
+ }, Va = Re("canvasZoom", 100), Ui = () => D(Va), Ss = w([]), $a = () => {
2519
+ const [e, t] = D(Ss), s = Be(ht), o = L(
2564
2520
  (n) => {
2565
2521
  t(n), s([]);
2566
2522
  },
2567
2523
  [t, s]
2568
2524
  );
2569
2525
  return [e, o];
2570
- }, ht = w([]), Gi = () => {
2571
- const [e, t] = D(ht), s = _e(As), o = L(
2526
+ }, ht = w([]), Wi = () => {
2527
+ const [e, t] = D(ht), s = Be(Ss), o = L(
2572
2528
  (n) => {
2573
2529
  t(n), s([]);
2574
2530
  },
2575
2531
  [t, s]
2576
2532
  );
2577
2533
  return [e, o];
2578
- }, Cs = Re("darkMode", !1), Hi = () => {
2579
- const [e, t] = D(Cs);
2534
+ }, As = Re("darkMode", !1), Gi = () => {
2535
+ const [e, t] = D(As);
2580
2536
  return [e, t];
2581
- }, Ha = () => {
2582
- const [e] = we(), [, t] = $e(), { addBlocks: s } = xe();
2537
+ }, Hi = new $t({
2538
+ children: "children",
2539
+ id: "_id",
2540
+ parent: "_parent",
2541
+ options: { deleteParent: !1 }
2542
+ });
2543
+ function Cs(e, t, s) {
2544
+ const o = M(e, (i) => i._parent === t), n = [];
2545
+ for (let i = 0; i < o.length; i++) {
2546
+ const r = _s(o[i]);
2547
+ if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
2548
+ o[i][c] = `slot:${le()}`;
2549
+ }), M(e, { _parent: o[i]._id }).length > 0) {
2550
+ const c = le();
2551
+ n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(Cs(e, o[i]._id, c)));
2552
+ } else
2553
+ n.push({
2554
+ ...o[i],
2555
+ oldId: o[i]._id,
2556
+ _id: le(),
2557
+ _parent: s
2558
+ });
2559
+ }
2560
+ return ne(n);
2561
+ }
2562
+ const _s = (e) => {
2563
+ const t = {};
2564
+ return Object.keys(e).forEach((s) => {
2565
+ zt(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
2566
+ }), t;
2567
+ }, Fa = (e, t, s = null) => {
2568
+ let o = te(e, { _id: t });
2569
+ o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
2570
+ const n = [o];
2571
+ M(e, { _parent: t }).length > 0 && n.push(ne(Cs(e, t, o._id)));
2572
+ const i = ne(n);
2573
+ return R(i, (r) => {
2574
+ const c = r, p = _s(c);
2575
+ return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
2576
+ const f = te(i, { oldId: p[l].replace("slot:", "") });
2577
+ c[l] = `slot:${f._id}`;
2578
+ }), tt(c, ["global", "oldId"]);
2579
+ });
2580
+ };
2581
+ const Ua = () => {
2582
+ const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe();
2583
2583
  return L(
2584
2584
  (o, n = null) => {
2585
2585
  const i = [];
2586
- ue(o, (r) => {
2586
+ de(o, (r) => {
2587
2587
  const c = e.find((N) => N._id === r);
2588
2588
  n || (n = c._parent);
2589
- const p = M(
2589
+ const f = M(
2590
2590
  e,
2591
- (N) => Et(n) ? N._parent === n : !c._parent
2592
- ).indexOf(c) + 1, x = jo(e, r, n);
2593
- s(x, n, p), i.push(F(x, "0._id", ""));
2591
+ (N) => zt(n) ? N._parent === n : !c._parent
2592
+ ).indexOf(c) + 1, x = Fa(e, r, n);
2593
+ s(x, n, f), i.push(F(x, "0._id", ""));
2594
2594
  }), t(i);
2595
2595
  },
2596
2596
  [e, t]
2597
2597
  );
2598
- }, qa = w([]), qi = () => {
2599
- const [e, t] = D(qa), s = L(
2598
+ }, Wa = w([]), qi = () => {
2599
+ const [e, t] = D(Wa), s = L(
2600
2600
  (o) => {
2601
- t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
2601
+ t((n) => q(n, o) ? Et(n, o) : [...n, o]);
2602
2602
  },
2603
2603
  [t]
2604
2604
  );
2605
2605
  return [e, t, s];
2606
- }, Ka = w(""), Ja = () => D(Ka), Ya = () => {
2607
- const e = X(ie);
2606
+ }, Ga = w(""), Ha = () => D(Ga), qa = () => {
2607
+ const e = X(be);
2608
2608
  return L(
2609
2609
  (t, s) => {
2610
- const o = R(e, (n) => (q(t, F(n, "_id")) && Se(n, "_parent", s), n));
2610
+ const o = R(e, (n) => (q(t, F(n, "_id")) && je(n, "_parent", s), n));
2611
2611
  console.log("newBlocks", o);
2612
2612
  },
2613
2613
  [e]
2614
2614
  );
2615
2615
  }, Ki = () => {
2616
2616
  console.warn("usePasteBlocks is not implemented");
2617
- const e = X(ht), [t, s] = Ga(), o = Ha(), n = Ya();
2617
+ const e = X(ht), [t, s] = $a(), o = Ua(), n = qa();
2618
2618
  return {
2619
- canPaste: Os(
2619
+ canPaste: Ls(
2620
2620
  () => t.length > 0 || e.length > 0,
2621
2621
  [e, t]
2622
2622
  ),
2623
2623
  pasteBlocks: L(
2624
2624
  (r) => {
2625
- ve(e) ? n(t, r) : o(e, r), s(() => []);
2625
+ _e(e) ? n(t, r) : o(e, r), s(() => []);
2626
2626
  },
2627
2627
  [t, e, o, n, s]
2628
2628
  )
2629
2629
  };
2630
- }, Qa = w(!1), Ji = () => {
2631
- const [e, t] = D(Qa);
2630
+ }, Ka = w(!1), Ji = () => {
2631
+ const [e, t] = D(Ka);
2632
2632
  return [e, t];
2633
- }, Xa = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2633
+ }, Ja = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
2634
2634
  const n = Q(e(Te)), i = M(
2635
2635
  e(rt),
2636
2636
  (r) => (
@@ -2639,25 +2639,25 @@ const Va = () => D(Te), $a = (e) => {
2639
2639
  )
2640
2640
  );
2641
2641
  return R(i, (r) => {
2642
- const c = e(r), f = o;
2643
- let { classes: l, baseClasses: p } = yo(F(c, n.prop, "styles:,"));
2644
- return ue(f, (x) => {
2642
+ const c = e(r), p = o;
2643
+ let { classes: l, baseClasses: f } = wo(F(c, n.prop, "styles:,"));
2644
+ return de(p, (x) => {
2645
2645
  const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2646
2646
  l = l.replace(N, " ").replace(/ +/g, " ").trim();
2647
2647
  const k = Q(x.split(":"));
2648
- q(["2xl", "xl", "lg", "md", "sm"], k) && f.push(x.split(":").pop().trim());
2649
- }), ue(f, (x) => {
2648
+ q(["2xl", "xl", "lg", "md", "sm"], k) && p.push(x.split(":").pop().trim());
2649
+ }), de(p, (x) => {
2650
2650
  const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
2651
- p = p.replace(N, " ").replace(/ +/g, " ").trim();
2651
+ f = f.replace(N, " ").replace(/ +/g, " ").trim();
2652
2652
  }), {
2653
2653
  ids: [c._id],
2654
2654
  props: {
2655
- [n.prop]: `${me}${p},${l}`
2655
+ [n.prop]: `${ue}${f},${l}`
2656
2656
  }
2657
2657
  };
2658
2658
  });
2659
2659
  }), Yi = () => {
2660
- const { updateBlocks: e } = xe(), t = _e(Xa);
2660
+ const { updateBlocks: e } = xe(), t = Be(Ja);
2661
2661
  return L(
2662
2662
  (s, o) => {
2663
2663
  const n = t({ blockIds: s, fullClasses: o });
@@ -2669,13 +2669,13 @@ const Va = () => D(Te), $a = (e) => {
2669
2669
  const t = Q(e(Te)), s = e(ct);
2670
2670
  if (!t || t.blockId !== F(s, "_id", null))
2671
2671
  return [];
2672
- const n = F(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
2673
- return M(R(n.trim().split(" "), Ie), (i) => !qe(i));
2674
- }), Qi = () => X(Bs), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Za = w((e) => {
2675
- const t = e(Ss), s = e(dt), o = e(Cs), n = er(t);
2672
+ const n = F(s, t.prop, `${ue},`).replace(ue, "").split(",").join(" ");
2673
+ return M(R(n.trim().split(" "), Ie), (i) => !He(i));
2674
+ }), Qi = () => X(Bs), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ya = w((e) => {
2675
+ const t = e(js), s = e(dt), o = e(As), n = Qa(t);
2676
2676
  let i = M(e(Bs), { mod: s });
2677
- 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;
2678
- }), er = (e) => {
2677
+ return Lt(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;
2678
+ }), Qa = (e) => {
2679
2679
  let t = [];
2680
2680
  switch (e) {
2681
2681
  case "xs":
@@ -2701,7 +2701,7 @@ const Va = () => D(Te), $a = (e) => {
2701
2701
  break;
2702
2702
  }
2703
2703
  return t;
2704
- }, Xi = () => X(Za), Zi = () => D(dt), el = () => {
2704
+ }, Xi = () => X(Ya), Zi = () => D(dt), el = () => {
2705
2705
  const { updateBlocks: e } = xe();
2706
2706
  return L(
2707
2707
  (t, s, o) => {
@@ -2717,13 +2717,13 @@ const Va = () => D(Te), $a = (e) => {
2717
2717
  },
2718
2718
  [e]
2719
2719
  );
2720
- }, _s = {
2720
+ }, Rs = {
2721
2721
  name: "",
2722
2722
  props: {},
2723
2723
  modalProps: {},
2724
2724
  backdropClose: !0
2725
- }, tr = w(_s), sl = () => {
2726
- const [e, t] = D(tr), s = L(
2725
+ }, Xa = w(Rs), sl = () => {
2726
+ const [e, t] = D(Xa), s = L(
2727
2727
  (n, i = {}, r = {}) => {
2728
2728
  t({ name: n, props: i, modalProps: r });
2729
2729
  },
@@ -2731,7 +2731,7 @@ const Va = () => D(Te), $a = (e) => {
2731
2731
  ), o = L(
2732
2732
  (...n) => {
2733
2733
  F(e, "props.onClose", () => {
2734
- })(...n), t(_s);
2734
+ })(...n), t(Rs);
2735
2735
  },
2736
2736
  [t, e]
2737
2737
  );
@@ -2740,49 +2740,49 @@ const Va = () => D(Te), $a = (e) => {
2740
2740
  openModal: s,
2741
2741
  closeModal: o
2742
2742
  };
2743
- }, ol = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(ie)), Rs = w(!1);
2744
- Rs.debugLabel = "readOnlyModeAtom";
2743
+ }, ol = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(be)), Ts = w(!1);
2744
+ Ts.debugLabel = "readOnlyModeAtom";
2745
+ const Za = w(!1);
2746
+ Za.debugLabel = "advanceStylingOpenAtom";
2747
+ const er = w("online");
2748
+ er.debugLabel = "networkModeAtom";
2749
+ const tr = w(!1);
2750
+ tr.debugLabel = "codeEditorOpenAtom";
2745
2751
  const sr = w(!1);
2746
- sr.debugLabel = "advanceStylingOpenAtom";
2747
- const or = w("online");
2748
- or.debugLabel = "networkModeAtom";
2749
- const nr = w(!1);
2750
- nr.debugLabel = "codeEditorOpenAtom";
2751
- const ar = w(!1);
2752
- ar.debugLabel = "editLayerNameAtom";
2753
- const rr = w("");
2754
- rr.debugLabel = "activeLanguageAtom";
2752
+ sr.debugLabel = "editLayerNameAtom";
2753
+ const or = w("");
2754
+ or.debugLabel = "activeLanguageAtom";
2755
+ const nr = w("");
2756
+ nr.debugLabel = "primaryLanguageAtom";
2757
+ const ar = w(null);
2758
+ ar.debugLabel = "canvasIframeAtom";
2759
+ const rr = w("outline");
2760
+ rr.debugLabel = "activePanelAtom";
2755
2761
  const ir = w("");
2756
- ir.debugLabel = "primaryLanguageAtom";
2757
- const lr = w(null);
2758
- lr.debugLabel = "canvasIframeAtom";
2759
- const cr = w("outline");
2760
- cr.debugLabel = "activePanelAtom";
2762
+ ir.debugLabel = "showPredefinedBlockCategoryAtom";
2763
+ const Ps = w({ undoCount: 0, redoCount: 0 });
2764
+ Ps.debugLabel = "historyStatesAtom";
2765
+ const lr = w("");
2766
+ lr.debugLabel = "inlineEditingActiveAtom";
2767
+ const cr = w(!1);
2768
+ cr.debugLabel = "draggingFlagAtom";
2761
2769
  const dr = w("");
2762
- dr.debugLabel = "showPredefinedBlockCategoryAtom";
2763
- const Ts = w({ undoCount: 0, redoCount: 0 });
2764
- Ts.debugLabel = "historyStatesAtom";
2765
- const ur = w("");
2766
- ur.debugLabel = "inlineEditingActiveAtom";
2767
- const mr = w(!1);
2768
- mr.debugLabel = "draggingFlagAtom";
2769
- const fr = w("");
2770
- fr.debugLabel = "draggedBlockIdAtom";
2771
- const nl = () => X(Rs), pr = w(""), gr = w(null), al = () => D(pr), rl = () => D(gr), br = Re("selectedBreakpoints", ["XS", "MD", "XL"]), il = () => {
2772
- const [e, t] = D(br);
2770
+ dr.debugLabel = "draggedBlockIdAtom";
2771
+ const nl = () => X(Ts), ur = w(""), mr = w(null), al = () => D(ur), rl = () => D(mr), fr = Re("selectedBreakpoints", ["XS", "MD", "XL"]), il = () => {
2772
+ const [e, t] = D(fr);
2773
2773
  return [e, t];
2774
2774
  }, ll = () => {
2775
- const e = _e(Ts), { clear: t } = rs(), [, s] = $e(), [, o] = Ja(), [, n] = Va();
2775
+ const e = Be(Ps), { clear: t } = as(), [, s] = Ve(), [, o] = Ha(), [, n] = Ea();
2776
2776
  return () => {
2777
2777
  s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
2778
2778
  };
2779
- }, xr = w([]), cl = () => {
2780
- const [e, t] = Be(!1), [s, o] = D(xr), n = ke("getUILibraryBlocks", () => []);
2781
- return Ce(() => {
2779
+ }, pr = w([]), cl = () => {
2780
+ const [e, t] = Ce(!1), [s, o] = D(pr), n = Ne("getUILibraryBlocks", () => []);
2781
+ return Ae(() => {
2782
2782
  (async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
2783
2783
  }, []), { data: s, isLoading: e };
2784
2784
  }, dl = () => {
2785
- const [e, t] = Be(null), s = L(async (o) => {
2785
+ const [e, t] = Ce(null), s = L(async (o) => {
2786
2786
  if (!(navigator != null && navigator.clipboard))
2787
2787
  return console.warn("Clipboard not supported"), !1;
2788
2788
  try {
@@ -2795,212 +2795,212 @@ const nl = () => X(Rs), pr = w(""), gr = w(null), al = () => D(pr), rl = () => D
2795
2795
  };
2796
2796
  export {
2797
2797
  Xi as $,
2798
- ei as A,
2799
- Yo as B,
2798
+ Zr as A,
2799
+ Ho as B,
2800
2800
  pt as C,
2801
- Fr as D,
2802
- we as E,
2803
- Oo as F,
2801
+ $r as D,
2802
+ ye as E,
2803
+ Zt as F,
2804
2804
  qt as G,
2805
- as as H,
2806
- Ci as I,
2805
+ ns as H,
2806
+ Ai as I,
2807
2807
  nl as J,
2808
2808
  sl as K,
2809
- $i as L,
2810
- Fi as M,
2811
- Ui as N,
2812
- Wi as O,
2813
- Gi as P,
2809
+ Vi as L,
2810
+ $i as M,
2811
+ Fi as N,
2812
+ Ui as O,
2813
+ Wi as P,
2814
2814
  dl as Q,
2815
- zo as R,
2816
- Bi as S,
2817
- oi as T,
2818
- Ga as U,
2819
- Hi as V,
2820
- Uo as W,
2815
+ Do as R,
2816
+ Ci as S,
2817
+ si as T,
2818
+ $a as U,
2819
+ Gi as V,
2820
+ zo as W,
2821
2821
  qi as X,
2822
- Ja as Y,
2822
+ Ha as Y,
2823
2823
  Ki as Z,
2824
2824
  Yi as _,
2825
- ti as a,
2826
- wa as a$,
2825
+ ei as a,
2826
+ xa as a$,
2827
2827
  Qi as a0,
2828
- qr as a1,
2829
- Ua as a2,
2828
+ Hr as a1,
2829
+ za as a2,
2830
2830
  cl as a3,
2831
2831
  Zi as a4,
2832
2832
  el as a5,
2833
2833
  tl as a6,
2834
- Hr as a7,
2834
+ Gr as a7,
2835
2835
  ol as a8,
2836
2836
  al as a9,
2837
- da as aA,
2838
- An as aB,
2839
- Jo as aC,
2840
- fi as aD,
2841
- pi as aE,
2842
- Un as aF,
2843
- wi as aG,
2844
- Ni as aH,
2845
- oa as aI,
2846
- ia as aJ,
2847
- la as aK,
2848
- aa as aL,
2837
+ ra as aA,
2838
+ Nn as aB,
2839
+ Go as aC,
2840
+ mi as aD,
2841
+ fi as aE,
2842
+ zn as aF,
2843
+ yi as aG,
2844
+ wi as aH,
2845
+ Zn as aI,
2846
+ oa as aJ,
2847
+ na as aK,
2848
+ ta as aL,
2849
2849
  xe as aM,
2850
- mr as aN,
2851
- ur as aO,
2852
- ar as aP,
2853
- fr as aQ,
2854
- Ur as aR,
2855
- Wr as aS,
2856
- or as aT,
2857
- lr as aU,
2858
- ri as aV,
2859
- ii as aW,
2860
- Tn as aX,
2861
- Ns as aY,
2862
- va as aZ,
2863
- ya as a_,
2850
+ cr as aN,
2851
+ lr as aO,
2852
+ sr as aP,
2853
+ dr as aQ,
2854
+ Fr as aR,
2855
+ Ur as aS,
2856
+ er as aT,
2857
+ ar as aU,
2858
+ ai as aV,
2859
+ ri as aW,
2860
+ Cn as aX,
2861
+ ws as aY,
2862
+ ga as aZ,
2863
+ ba as a_,
2864
2864
  rl as aa,
2865
2865
  il as ab,
2866
- Va as ac,
2867
- cs as ad,
2866
+ Ea as ac,
2867
+ ls as ad,
2868
2868
  xt as ae,
2869
- pn as af,
2870
- bn as ag,
2871
- xn as ah,
2872
- un as ai,
2873
- gi as aj,
2874
- Wn as ak,
2875
- xi as al,
2876
- Gn as am,
2877
- qn as an,
2878
- fn as ao,
2879
- ni as ap,
2880
- ai as aq,
2881
- Rn as ar,
2882
- Zr as as,
2883
- cr as at,
2884
- _n as au,
2885
- fs as av,
2886
- Ze as aw,
2887
- et as ax,
2888
- bi as ay,
2889
- Hn as az,
2890
- an as b,
2891
- ea as b$,
2892
- Na as b0,
2893
- ja as b1,
2894
- gn as b2,
2895
- _t as b3,
2896
- Bt as b4,
2897
- zi as b5,
2898
- Ei as b6,
2899
- Li as b7,
2900
- Vi as b8,
2901
- Xr as b9,
2902
- nn as bA,
2903
- yn as bB,
2904
- ms as bC,
2905
- Pn as bD,
2906
- li as bE,
2907
- In as bF,
2908
- En as bG,
2909
- On as bH,
2910
- $n as bI,
2911
- Vn as bJ,
2912
- Ln as bK,
2913
- mi as bL,
2914
- zn as bM,
2915
- di as bN,
2916
- Dn as bO,
2917
- Mn as bP,
2918
- ci as bQ,
2919
- ui as bR,
2920
- Fn as bS,
2921
- Kn as bT,
2922
- hi as bU,
2923
- vi as bV,
2924
- yi as bW,
2925
- Yn as bX,
2926
- Qn as bY,
2927
- Xn as bZ,
2928
- Zn as b_,
2929
- Qo as ba,
2930
- Xo as bb,
2931
- Zo as bc,
2932
- jn as bd,
2933
- si as be,
2934
- sr as bf,
2935
- Bn as bg,
2936
- hn as bh,
2937
- vn as bi,
2938
- wn as bj,
2939
- Nn as bk,
2940
- Cn as bl,
2941
- kn as bm,
2942
- tn as bn,
2943
- sn as bo,
2944
- dr as bp,
2945
- _a as bq,
2946
- Ba as br,
2947
- Ri as bs,
2948
- Ti as bt,
2949
- Jr as bu,
2950
- Gr as bv,
2951
- Ko as bw,
2952
- qo as bx,
2869
+ dn as af,
2870
+ mn as ag,
2871
+ fn as ah,
2872
+ rn as ai,
2873
+ pi as aj,
2874
+ Vn as ak,
2875
+ bi as al,
2876
+ $n as am,
2877
+ Un as an,
2878
+ cn as ao,
2879
+ oi as ap,
2880
+ ni as aq,
2881
+ An as ar,
2882
+ Xr as as,
2883
+ rr as at,
2884
+ Sn as au,
2885
+ ms as av,
2886
+ Xe as aw,
2887
+ Ze as ax,
2888
+ gi as ay,
2889
+ Fn as az,
2890
+ tn as b,
2891
+ Yn as b$,
2892
+ ha as b0,
2893
+ ya as b1,
2894
+ un as b2,
2895
+ Bt as b3,
2896
+ _t as b4,
2897
+ Li as b5,
2898
+ Di as b6,
2899
+ Oi as b7,
2900
+ zi as b8,
2901
+ Qr as b9,
2902
+ en as bA,
2903
+ bn as bB,
2904
+ us as bC,
2905
+ _n as bD,
2906
+ ii as bE,
2907
+ Bn as bF,
2908
+ Pn as bG,
2909
+ In as bH,
2910
+ On as bI,
2911
+ En as bJ,
2912
+ Mn as bK,
2913
+ ui as bL,
2914
+ Dn as bM,
2915
+ ci as bN,
2916
+ Tn as bO,
2917
+ Rn as bP,
2918
+ li as bQ,
2919
+ di as bR,
2920
+ Ln as bS,
2921
+ Wn as bT,
2922
+ xi as bU,
2923
+ hi as bV,
2924
+ vi as bW,
2925
+ Hn as bX,
2926
+ qn as bY,
2927
+ Kn as bZ,
2928
+ Jn as b_,
2929
+ qo as ba,
2930
+ Ko as bb,
2931
+ Jo as bc,
2932
+ yn as bd,
2933
+ ti as be,
2934
+ Za as bf,
2935
+ jn as bg,
2936
+ pn as bh,
2937
+ gn as bi,
2938
+ xn as bj,
2939
+ hn as bk,
2940
+ kn as bl,
2941
+ vn as bm,
2942
+ Qo as bn,
2943
+ Xo as bo,
2944
+ ir as bp,
2945
+ Sa as bq,
2946
+ ja as br,
2947
+ Bi as bs,
2948
+ Ri as bt,
2949
+ Kr as bu,
2950
+ Wr as bv,
2951
+ Wo as bw,
2952
+ Uo as bx,
2953
2953
  bt as by,
2954
- on as bz,
2955
- rn as c,
2956
- na as c0,
2957
- ra as c1,
2958
- ca as c2,
2959
- ki as c3,
2960
- ji as c4,
2961
- Si as c5,
2962
- sa as c6,
2963
- ta as c7,
2964
- Ai as c8,
2965
- pa as c9,
2966
- bs as ca,
2967
- ga as cb,
2954
+ Zo as bz,
2955
+ sn as c,
2956
+ ea as c0,
2957
+ sa as c1,
2958
+ aa as c2,
2959
+ Ni as c3,
2960
+ ki as c4,
2961
+ ji as c5,
2962
+ Xn as c6,
2963
+ Qn as c7,
2964
+ Si as c8,
2965
+ da as c9,
2966
+ gs as ca,
2967
+ ua as cb,
2968
2968
  _i as cc,
2969
- Sa as cd,
2970
- ka as ce,
2971
- Ra as cf,
2972
- Ta as cg,
2973
- Pa as ch,
2974
- Ia as ci,
2975
- Ma as cj,
2976
- Pi as ck,
2977
- Ii as cl,
2978
- Mi as cm,
2979
- Ca as cn,
2980
- Aa as co,
2981
- Di as cp,
2982
- Oi as cq,
2983
- cn as d,
2984
- dn as e,
2985
- ln as f,
2986
- mn as g,
2987
- ke as h,
2969
+ wa as cd,
2970
+ va as ce,
2971
+ Aa as cf,
2972
+ Ca as cg,
2973
+ _a as ch,
2974
+ Ba as ci,
2975
+ Ra as cj,
2976
+ Ti as ck,
2977
+ Pi as cl,
2978
+ Ii as cm,
2979
+ ka as cn,
2980
+ Na as co,
2981
+ Mi as cp,
2982
+ Ei as cq,
2983
+ nn as d,
2984
+ an as e,
2985
+ on as f,
2986
+ ln as g,
2987
+ Ne as h,
2988
2988
  Gt as i,
2989
- Vr as j,
2990
- so as k,
2989
+ zr as j,
2990
+ oo as k,
2991
2991
  oe as l,
2992
- co as m,
2993
- lo as n,
2992
+ uo as m,
2993
+ co as n,
2994
2994
  Re as o,
2995
- $r as p,
2995
+ Vr as p,
2996
2996
  Ji as q,
2997
- $e as r,
2998
- Qr as s,
2999
- Ha as t,
2997
+ Ve as r,
2998
+ Yr as s,
2999
+ Ua as t,
3000
3000
  ll as u,
3001
- rs as v,
3002
- ie as w,
3003
- vo as x,
3004
- Wo as y,
3005
- Yr as z
3001
+ as as v,
3002
+ be as w,
3003
+ yo as x,
3004
+ Vo as y,
3005
+ Jr as z
3006
3006
  };