@chaibuilder/sdk 1.2.18 → 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.
- package/dist/AddBlocks-KeHVFaIr.cjs +1 -0
- package/dist/{AddBlocks-uCdu9Xpr.js → AddBlocks-gcTaEIKO.js} +5 -4
- package/dist/BrandingOptions-I2I8w6E9.cjs +1 -0
- package/dist/{BrandingOptions-JbHRN7V5.js → BrandingOptions-bfiFY0VR.js} +5 -4
- package/dist/{CanvasArea-oUIvLfdq.cjs → CanvasArea-JfHkTnQD.cjs} +1 -1
- package/dist/{CanvasArea-aWzbzB9p.js → CanvasArea-xvMCbQDL.js} +8 -7
- package/dist/{CurrentPage-AlOLPG4o.js → CurrentPage-0Ap2N0uc.js} +13 -12
- package/dist/CurrentPage-vj52UxMA.cjs +1 -0
- package/dist/ListTree-Vq0_s1wC.cjs +1 -0
- package/dist/ListTree-k-QMO740.js +96 -0
- package/dist/{Outline-oGoAdnBw.js → Outline-HI6-c9nf.js} +96 -92
- package/dist/Outline-fAflJ_lN.cjs +1 -0
- package/dist/{PagesPanel-VbSQHEu_.js → PagesPanel-Pk-C1956.js} +7 -6
- package/dist/PagesPanel-ug8Tmva6.cjs +1 -0
- package/dist/{ProjectPanel-fqux215P.js → ProjectPanel-_KQBhuPO.js} +8 -7
- package/dist/ProjectPanel-o8-6cPX-.cjs +1 -0
- package/dist/Settings-Cc9eV4VG.cjs +1 -0
- package/dist/{Settings-IhWI1ice.js → Settings-XtAatoiu.js} +5 -4
- package/dist/{SidePanels-lMCXrchR.js → SidePanels-O52zKXbH.js} +134 -133
- package/dist/SidePanels-ugRobm34.cjs +1 -0
- package/dist/Topbar-e5MGWX9n.cjs +1 -0
- package/dist/{Topbar-DYiisBtw.js → Topbar-oTx7a12r.js} +5 -4
- package/dist/{UnsplashImages-lGLcqo4M.js → UnsplashImages-5A21uzMK.js} +5 -4
- package/dist/UnsplashImages-KSbKGs91.cjs +1 -0
- package/dist/UploadImages-V42YSRVO.cjs +1 -0
- package/dist/{UploadImages-06m6vjbL.js → UploadImages-V_54lCAO.js} +5 -4
- package/dist/{add-page-modal-mEbIXSKX.js → add-page-modal-dKQLw7RQ.js} +17 -16
- package/dist/add-page-modal-xMedOdsp.cjs +1 -0
- package/dist/{confirm-alert-YETlIRpE.js → confirm-alert-8GP3bKH_.js} +5 -4
- package/dist/{confirm-alert-ZpEIxh3X.cjs → confirm-alert-KtW-4OjG.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +47 -46
- package/dist/defaultTheme-7Lk2zq60.cjs +1 -0
- package/dist/{defaultTheme-s0cpA5Oy.js → defaultTheme-gunU_Fe5.js} +31 -33
- package/dist/{delete-page-modal-J_SmPWrw.js → delete-page-modal-Zb5ld6O-.js} +7 -6
- package/dist/delete-page-modal-lebJCBBe.cjs +1 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +79 -79
- package/dist/email.cjs +1 -1
- package/dist/email.d.ts +1 -0
- package/dist/email.js +6 -5
- package/dist/{form-Y0Vb4m04.cjs → form-o6_55v8F.cjs} +1 -1
- package/dist/{form-2xJcQs_Y.js → form-yyU2x7So.js} +1 -1
- package/dist/{index-3TQsdso6.cjs → index-BMZLAJUV.cjs} +1 -1
- package/dist/{index-ZwpjuB-N.cjs → index-JdnF6lYP.cjs} +42 -42
- package/dist/{index-ZBqiaKhx.js → index-WP7IRkij.js} +739 -739
- package/dist/{index-627XtO9e.js → index-lFcrvDFC.js} +3 -3
- package/dist/index-thKfFhmr.cjs +1 -0
- package/dist/{index-LF3KXx4u.js → index-yILWlilS.js} +3142 -3132
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +1 -1
- package/dist/{page-viewer-7u0SWWmO.js → page-viewer-3QXwPGpg.js} +11 -10
- package/dist/page-viewer-DTIblLiz.cjs +1 -0
- package/dist/{project-general-setting-SqC85J7F.js → project-general-setting-UalRmyHm.js} +8 -7
- package/dist/project-general-setting-g7WhM3hc.cjs +1 -0
- package/dist/{project-seo-setting-TlQherop.js → project-seo-setting-8FsvPSPl.js} +6 -5
- package/dist/project-seo-setting-xoeLQVj3.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.d.ts +10 -0
- package/dist/render.js +164 -78
- package/dist/{single-page-detail-ClZYIdSO.js → single-page-detail-GaB85dNv.js} +9 -8
- package/dist/single-page-detail-XdBysrE_.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.d.ts +1 -0
- package/dist/studio.js +6 -5
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +140 -139
- package/dist/{useAddBlockByDrop-E343zoB3.cjs → useAddBlockByDrop-6EbioQV4.cjs} +1 -1
- package/dist/{useAddBlockByDrop-sPX4lN-O.js → useAddBlockByDrop-BIK2fdgj.js} +1 -1
- package/package.json +2 -1
- package/dist/AddBlocks-5Q5w5lPJ.cjs +0 -1
- package/dist/BrandingOptions-xrGQI1Kn.cjs +0 -1
- package/dist/CurrentPage-atmd8UrZ.cjs +0 -1
- package/dist/Outline-uMUTwN-R.cjs +0 -1
- package/dist/PagesPanel-nN3QUwXp.cjs +0 -1
- package/dist/ProjectPanel-UIEFhref.cjs +0 -1
- package/dist/Settings-8qUW0Iow.cjs +0 -1
- package/dist/SidePanels-cOHgPE9y.cjs +0 -1
- package/dist/Topbar-vLD-rWl5.cjs +0 -1
- package/dist/UnsplashImages-1JWfKlBc.cjs +0 -1
- package/dist/UploadImages-T4MYMOhW.cjs +0 -1
- package/dist/add-page-modal-niwhffYL.cjs +0 -1
- package/dist/defaultTheme-1XwPZT2b.cjs +0 -1
- package/dist/delete-page-modal-sOqRlmKb.cjs +0 -1
- package/dist/index-T3wfa1kz.cjs +0 -1
- package/dist/page-viewer-6UDraUKW.cjs +0 -1
- package/dist/project-general-setting-AW5Vtmgx.cjs +0 -1
- package/dist/project-seo-setting-cWiNZcxW.cjs +0 -1
- package/dist/single-page-detail-kJUW6FE9.cjs +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import
|
|
3
|
-
import { has as
|
|
4
|
-
import { g as
|
|
5
|
-
import { getBlockComponent as
|
|
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
6
|
import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as Be } from "jotai";
|
|
7
|
-
import Vt from "
|
|
8
|
-
import { a as me, I as $t, S as Ke, B as Je } from "./MODIFIERS-WQdaNvb8.js";
|
|
7
|
+
import { a as ue, I as Vt, S as qe, B as Ke } from "./MODIFIERS-WQdaNvb8.js";
|
|
9
8
|
import { g as Us } from "./_commonjsHelpers-UyOWmZb0.js";
|
|
10
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
|
|
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
|
|
15
|
+
import * as Je from "@radix-ui/react-switch";
|
|
16
16
|
import { Slot as Gs } from "@radix-ui/react-slot";
|
|
17
|
-
import * as
|
|
18
|
-
import { ChevronDownIcon as Hs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as
|
|
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
20
|
import * as B from "@radix-ui/react-dialog";
|
|
21
21
|
import * as Ut from "@radix-ui/react-label";
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
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
|
|
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";
|
|
@@ -34,6 +34,7 @@ import * as P from "@radix-ui/react-context-menu";
|
|
|
34
34
|
import Js, { IconPickerItem as Ys } from "react-icons-picker";
|
|
35
35
|
import Qs from "react-dom";
|
|
36
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
40
|
let Zs = 0;
|
|
@@ -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
|
|
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,7 +57,7 @@ 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
|
-
}, to = (e) => typeof (e == null ? void 0 : e.then) == "function",
|
|
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;
|
|
@@ -82,7 +83,7 @@ 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 && p(u, y, v), b &&
|
|
86
|
+
if (v && p(u, y, v), b && we(b, y) && b.d === y.d)
|
|
86
87
|
return b;
|
|
87
88
|
if (b && he(b) && he(y) && so(b, y)) {
|
|
88
89
|
if (b.d === y.d)
|
|
@@ -143,7 +144,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
143
144
|
}), Array.from(g.d).every(([S, _]) => {
|
|
144
145
|
const A = r(S);
|
|
145
146
|
return S === u || A === _ || // TODO This is a hack, we should find a better solution.
|
|
146
|
-
A && !he(A) &&
|
|
147
|
+
A && !he(A) && we(A, _);
|
|
147
148
|
})))
|
|
148
149
|
return g;
|
|
149
150
|
const v = /* @__PURE__ */ new Map();
|
|
@@ -153,7 +154,7 @@ 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 (
|
|
157
|
+
if ($e(S))
|
|
157
158
|
return v.set(S, void 0), S.init;
|
|
158
159
|
throw new Error("no atom init");
|
|
159
160
|
}
|
|
@@ -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" && !
|
|
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;
|
|
@@ -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) &&
|
|
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);
|
|
@@ -212,7 +213,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
212
213
|
let A = !!((S = g.get(E)) != null && S.size);
|
|
213
214
|
if (A) {
|
|
214
215
|
const ee = r(E), Is = N(E);
|
|
215
|
-
A = !ee || !
|
|
216
|
+
A = !ee || !we(ee, Is);
|
|
216
217
|
}
|
|
217
218
|
A || g.forEach((ee) => ee.delete(E));
|
|
218
219
|
}
|
|
@@ -226,10 +227,10 @@ 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 (
|
|
230
|
+
if (!$e(j))
|
|
230
231
|
throw new Error("atom not writable");
|
|
231
232
|
const _ = r(j), A = f(j, E[0]);
|
|
232
|
-
(!_ || !
|
|
233
|
+
(!_ || !we(_, A)) && G(j);
|
|
233
234
|
} else
|
|
234
235
|
S = H(j, ...E);
|
|
235
236
|
if (!v) {
|
|
@@ -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),
|
|
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
|
-
},
|
|
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) &&
|
|
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) &&
|
|
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) && (
|
|
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
|
-
|
|
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
|
|
342
|
-
const no = () => (
|
|
342
|
+
let Ue;
|
|
343
|
+
const no = () => (Ue || (Ue = oo()), Ue);
|
|
343
344
|
var ao = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
344
345
|
const ro = Ms(void 0), Gt = (e) => {
|
|
345
346
|
const t = Ds(ro);
|
|
346
347
|
return (e == null ? void 0 : e.store) || t || no();
|
|
347
348
|
};
|
|
348
|
-
const io = (e) => typeof (e == null ? void 0 : e.then) == "function", lo =
|
|
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")
|
|
@@ -371,7 +372,7 @@ function co(e, t) {
|
|
|
371
372
|
let c = o;
|
|
372
373
|
(n !== s || i !== e) && (r(), c = s.get(e));
|
|
373
374
|
const p = t == null ? void 0 : t.delay;
|
|
374
|
-
return
|
|
375
|
+
return Ae(() => {
|
|
375
376
|
const l = s.sub(e, () => {
|
|
376
377
|
if (typeof p == "number") {
|
|
377
378
|
setTimeout(r, p);
|
|
@@ -393,7 +394,7 @@ function uo(e, t) {
|
|
|
393
394
|
[s, e]
|
|
394
395
|
);
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function zr(e, t) {
|
|
397
398
|
return [
|
|
398
399
|
co(e, t),
|
|
399
400
|
// We do wrong type assertion here, which results in throwing an error.
|
|
@@ -432,7 +433,7 @@ function bo(e, t) {
|
|
|
432
433
|
}
|
|
433
434
|
return Z[J];
|
|
434
435
|
}, G = (H, $, Z) => {
|
|
435
|
-
const
|
|
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
439
|
const u = go(Z) ? Z(J[re]) : Z;
|
|
@@ -503,7 +504,7 @@ function bo(e, t) {
|
|
|
503
504
|
t || po
|
|
504
505
|
);
|
|
505
506
|
}
|
|
506
|
-
function
|
|
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(
|
|
@@ -594,91 +595,46 @@ const qt = w(null);
|
|
|
594
595
|
qt.debugLabel = "chaiBuilderPropsAtom";
|
|
595
596
|
const yo = w({});
|
|
596
597
|
yo.debugLabel = "chaiExternalDataAtom";
|
|
597
|
-
const
|
|
598
|
-
const t = e.replace(
|
|
598
|
+
const $r = () => !1, wo = (e) => {
|
|
599
|
+
const t = e.replace(ue, "").split(",");
|
|
599
600
|
return { baseClasses: t[0], classes: t[1] };
|
|
600
|
-
},
|
|
601
|
+
}, Ye = (e, t) => {
|
|
601
602
|
if (!e)
|
|
602
603
|
return !0;
|
|
603
|
-
const s =
|
|
604
|
-
return s &&
|
|
604
|
+
const s = Oe(e);
|
|
605
|
+
return s && fe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
|
|
605
606
|
}, No = (e, t) => {
|
|
606
|
-
const s =
|
|
607
|
-
return s &&
|
|
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 =
|
|
610
|
-
return t &&
|
|
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
|
|
617
|
+
return Ye(n, o);
|
|
617
618
|
};
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
|
|
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 jo(e) {
|
|
639
|
-
let t = ko.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
|
-
}, So = (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, p = Jt(c);
|
|
655
|
-
return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
|
|
656
|
-
const f = te(i, { oldId: p[l].replace("slot:", "") });
|
|
657
|
-
c[l] = `slot:${f._id}`;
|
|
658
|
-
}), Oe(c, ["global", "oldId"]);
|
|
659
|
-
});
|
|
660
|
-
};
|
|
661
|
-
const ie = w([]);
|
|
662
|
-
ie.debugLabel = "presentBlocksAtom";
|
|
663
|
-
const rt = bo(ie);
|
|
619
|
+
const be = w([]);
|
|
620
|
+
be.debugLabel = "presentBlocksAtom";
|
|
621
|
+
const rt = bo(be);
|
|
664
622
|
rt.debugLabel = "pageBlocksAtomsAtom";
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
const
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
|
|
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
|
-
|
|
633
|
+
So.debugLabel = "globalBlocksAtom";
|
|
678
634
|
const it = w([]);
|
|
679
635
|
it.debugLabel = "selectedBlockIdsAtom";
|
|
680
636
|
const lt = w((e) => {
|
|
681
|
-
const t = e(
|
|
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,27 +649,27 @@ const ct = w((e) => {
|
|
|
693
649
|
};
|
|
694
650
|
});
|
|
695
651
|
ct.debugLabel = "selectedBlockAtom";
|
|
696
|
-
const
|
|
697
|
-
const t = e(lt), s = R(t,
|
|
698
|
-
return M(e(
|
|
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
|
-
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
const
|
|
704
|
-
|
|
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
|
|
708
|
-
|
|
709
|
-
const
|
|
710
|
-
flexChild: X(
|
|
711
|
-
gridChild: X(
|
|
712
|
-
}),
|
|
713
|
-
const
|
|
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) ?
|
|
672
|
+
t((n) => q(n, o) ? Et(n, o) : [...n, o]);
|
|
717
673
|
},
|
|
718
674
|
[t]
|
|
719
675
|
);
|
|
@@ -776,46 +732,46 @@ const $e = () => {
|
|
|
776
732
|
if (q(["slot", "styles"], p.type))
|
|
777
733
|
return;
|
|
778
734
|
const l = c;
|
|
779
|
-
r.items.properties[l] = Bt(p),
|
|
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
|
-
},
|
|
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] =
|
|
745
|
+
t[s] = Bo(e[s]);
|
|
790
746
|
}), t;
|
|
791
|
-
},
|
|
792
|
-
if (
|
|
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
|
|
798
|
-
|
|
753
|
+
return Ot(s, (n, i) => {
|
|
754
|
+
fe(t, i) && F(t[i], "i18n", !1) && (o[i] = Vt);
|
|
799
755
|
}), o;
|
|
800
756
|
});
|
|
801
|
-
},
|
|
757
|
+
}, Bo = (e) => {
|
|
802
758
|
switch (e.type) {
|
|
803
759
|
case "styles":
|
|
804
760
|
return e.default;
|
|
805
761
|
case "slot":
|
|
806
|
-
return `${
|
|
762
|
+
return `${qe}${le()}`;
|
|
807
763
|
case "singular":
|
|
808
764
|
const { i18n: t, schema: s } = e;
|
|
809
|
-
return t ?
|
|
765
|
+
return t ? Vt : F(s, "default", "");
|
|
810
766
|
case "model":
|
|
811
|
-
return
|
|
767
|
+
return Xt(e.properties);
|
|
812
768
|
case "list":
|
|
813
|
-
return
|
|
769
|
+
return _o(e);
|
|
814
770
|
default:
|
|
815
771
|
return "";
|
|
816
772
|
}
|
|
817
773
|
};
|
|
818
|
-
var ut = { exports: {} },
|
|
774
|
+
var ut = { exports: {} }, qr = ut.exports;
|
|
819
775
|
(function(e) {
|
|
820
776
|
(function() {
|
|
821
777
|
"use strict";
|
|
@@ -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
|
|
924
|
-
const
|
|
925
|
-
const [e, t] = D(
|
|
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
|
-
zs(e) ? { ...
|
|
883
|
+
zs(e) ? { ...Ke, ...e } : Ke,
|
|
928
884
|
t
|
|
929
885
|
];
|
|
930
|
-
},
|
|
931
|
-
function
|
|
932
|
-
let t =
|
|
933
|
-
return t = !t.type && t.children && t.children.length ? t.children :
|
|
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,62 +908,62 @@ function ft(e, t = !1) {
|
|
|
952
908
|
} : o.children && o.children.length && ft(o.children);
|
|
953
909
|
}
|
|
954
910
|
}
|
|
955
|
-
function
|
|
911
|
+
function ts(e) {
|
|
956
912
|
let t = [], s = M(e, { type: "GlobalBlock" });
|
|
957
|
-
return s.length > 0 && (s = R(s,
|
|
958
|
-
t = [...t,
|
|
913
|
+
return s.length > 0 && (s = R(s, ss), de(s, (o) => {
|
|
914
|
+
t = [...t, ...Oo(o)];
|
|
959
915
|
})), t;
|
|
960
916
|
}
|
|
961
|
-
function
|
|
917
|
+
function Oo(e) {
|
|
962
918
|
let t = [];
|
|
963
919
|
const s = F(Q(e), "parent", null);
|
|
964
|
-
|
|
965
|
-
const o = [
|
|
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 =
|
|
924
|
+
return n = je(n, "0.parent", s), t = [...t, n, ...ts(n)], t;
|
|
969
925
|
}
|
|
970
|
-
function
|
|
971
|
-
const t = te(
|
|
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(
|
|
975
|
-
return o.length ? ne([...s, ...ne(R(o,
|
|
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
|
|
978
|
-
let
|
|
979
|
-
function
|
|
980
|
-
|
|
981
|
-
const t =
|
|
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 =
|
|
984
|
-
return
|
|
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
|
|
987
|
-
const [e] =
|
|
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) =>
|
|
992
|
-
), [n = [], i = []] =
|
|
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
|
-
},
|
|
955
|
+
}, Ne = (e, t = void 0) => {
|
|
1000
956
|
const s = X(qt);
|
|
1001
957
|
return F(s, e, t);
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
const
|
|
958
|
+
}, ns = w([]);
|
|
959
|
+
ns.debugLabel = "dataProvidersAtom";
|
|
960
|
+
const Vo = () => D(ns), pt = w("SAVED");
|
|
1005
961
|
pt.debugLabel = "pageSyncStateAtom";
|
|
1006
|
-
const
|
|
1007
|
-
const [e, t] = D(pt), s =
|
|
1008
|
-
}), o =
|
|
1009
|
-
}), n =
|
|
1010
|
-
}), i =
|
|
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();
|
|
1011
967
|
return { savePage: Ws(
|
|
1012
968
|
async () => {
|
|
1013
969
|
t("SAVING"), n("SAVING");
|
|
@@ -1020,11 +976,11 @@ const Yr = () => {
|
|
|
1020
976
|
5e3
|
|
1021
977
|
// save only every 5 seconds
|
|
1022
978
|
), syncState: e, setSyncState: t };
|
|
1023
|
-
}, se = new
|
|
979
|
+
}, se = new To();
|
|
1024
980
|
se.setLimit(50);
|
|
1025
|
-
const
|
|
981
|
+
const as = () => {
|
|
1026
982
|
const [, e] = D(pt);
|
|
1027
|
-
return
|
|
983
|
+
return Ae(() => (se.setCallback(() => e("UNSAVED")), () => {
|
|
1028
984
|
se.setCallback(Vs);
|
|
1029
985
|
}), []), {
|
|
1030
986
|
add: se.add,
|
|
@@ -1036,9 +992,9 @@ const is = () => {
|
|
|
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
|
|
1040
|
-
},
|
|
1041
|
-
const [e] =
|
|
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,7 +1004,7 @@ const is = () => {
|
|
|
1048
1004
|
[e, s, t]
|
|
1049
1005
|
);
|
|
1050
1006
|
};
|
|
1051
|
-
function
|
|
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;
|
|
@@ -1063,14 +1019,14 @@ function Go(e, t, s, o) {
|
|
|
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
|
|
1067
|
-
const [, e] =
|
|
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) =>
|
|
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, ...
|
|
1040
|
+
return { ...n, ...tt(i, "_id") };
|
|
1085
1041
|
}
|
|
1086
1042
|
return n;
|
|
1087
1043
|
});
|
|
1088
1044
|
});
|
|
1089
1045
|
}
|
|
1090
1046
|
};
|
|
1091
|
-
},
|
|
1092
|
-
const { add: e } =
|
|
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
|
-
} =
|
|
1053
|
+
} = Fo();
|
|
1098
1054
|
return {
|
|
1099
1055
|
addBlocks: (x, N, k) => {
|
|
1100
1056
|
o(x, N, k), e({
|
|
@@ -1118,7 +1074,7 @@ const Ho = () => {
|
|
|
1118
1074
|
const O = $s(N);
|
|
1119
1075
|
I = R(x, (W) => {
|
|
1120
1076
|
const G = t.find(($) => $._id === W), H = { _id: W };
|
|
1121
|
-
return
|
|
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
|
-
},
|
|
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
|
-
),
|
|
1159
|
-
|
|
1160
|
-
const
|
|
1161
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1180
|
-
const bt =
|
|
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
|
-
),
|
|
1160
|
+
), Ho = m.forwardRef(
|
|
1205
1161
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
|
|
1206
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
|
-
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
const
|
|
1214
|
-
|
|
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(
|
|
@@ -1225,9 +1181,9 @@ const Xo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1225
1181
|
]
|
|
1226
1182
|
}
|
|
1227
1183
|
) }));
|
|
1228
|
-
|
|
1229
|
-
const
|
|
1230
|
-
|
|
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
|
-
|
|
1242
|
-
const
|
|
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
|
-
),
|
|
1256
|
-
|
|
1257
|
-
const
|
|
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
|
-
|
|
1261
|
-
const
|
|
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
|
-
|
|
1265
|
-
const
|
|
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
|
-
),
|
|
1281
|
-
|
|
1282
|
-
const
|
|
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 cs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1290
1246
|
ref: s
|
|
1291
1247
|
}
|
|
1292
1248
|
));
|
|
1293
|
-
|
|
1294
|
-
const
|
|
1295
|
-
/* @__PURE__ */ a.jsx(
|
|
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(ls
|
|
|
1305
1261
|
}
|
|
1306
1262
|
)
|
|
1307
1263
|
] }));
|
|
1308
|
-
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1313
|
-
const
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1316
|
-
|
|
1317
|
-
const
|
|
1318
|
-
|
|
1319
|
-
const
|
|
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,10 +1280,10 @@ const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1324
1280
|
...t
|
|
1325
1281
|
}
|
|
1326
1282
|
));
|
|
1327
|
-
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1330
|
-
const
|
|
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(
|
|
1331
1287
|
B.Overlay,
|
|
1332
1288
|
{
|
|
1333
1289
|
ref: s,
|
|
@@ -1338,9 +1294,9 @@ const ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1338
1294
|
...t
|
|
1339
1295
|
}
|
|
1340
1296
|
));
|
|
1341
|
-
|
|
1342
|
-
const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1343
|
-
/* @__PURE__ */ a.jsx(
|
|
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
1301
|
B.Content,
|
|
1346
1302
|
{
|
|
@@ -1361,11 +1317,11 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1361
1317
|
)
|
|
1362
1318
|
] }));
|
|
1363
1319
|
xt.displayName = B.Content.displayName;
|
|
1364
|
-
const
|
|
1365
|
-
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1368
|
-
const
|
|
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(
|
|
1369
1325
|
B.Title,
|
|
1370
1326
|
{
|
|
1371
1327
|
ref: s,
|
|
@@ -1373,32 +1329,32 @@ const bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1373
1329
|
...t
|
|
1374
1330
|
}
|
|
1375
1331
|
));
|
|
1376
|
-
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1381
|
-
const
|
|
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
|
-
|
|
1385
|
-
const
|
|
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
|
-
|
|
1389
|
-
const
|
|
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
|
-
|
|
1393
|
-
const
|
|
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
|
-
|
|
1397
|
-
const
|
|
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
|
-
|
|
1401
|
-
const
|
|
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
|
-
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1416
|
-
const
|
|
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
|
-
|
|
1428
|
-
const
|
|
1429
|
-
/* @__PURE__ */ a.jsx(
|
|
1430
|
-
/* @__PURE__ */ a.jsx(
|
|
1431
|
-
/* @__PURE__ */ a.jsx(
|
|
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
|
-
|
|
1434
|
-
const
|
|
1435
|
-
|
|
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 fs = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1443
1399
|
e
|
|
1444
1400
|
),
|
|
1445
1401
|
...s,
|
|
1446
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1402
|
+
children: /* @__PURE__ */ a.jsx(ce.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1447
1403
|
}
|
|
1448
1404
|
));
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
|
|
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 Bn = be.Root, ps = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
|
|
|
1458
1414
|
...t
|
|
1459
1415
|
}
|
|
1460
1416
|
));
|
|
1461
|
-
|
|
1462
|
-
const
|
|
1463
|
-
|
|
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
|
-
|
|
1474
|
-
const
|
|
1475
|
-
|
|
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
|
-
|
|
1486
|
-
const
|
|
1487
|
-
|
|
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
|
-
|
|
1499
|
-
const
|
|
1500
|
-
|
|
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
|
-
|
|
1513
|
-
const
|
|
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
|
-
|
|
1522
|
-
const
|
|
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
|
-
|
|
1534
|
-
const
|
|
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
|
-
|
|
1551
|
-
const
|
|
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
|
-
|
|
1563
|
-
const
|
|
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
|
-
|
|
1578
|
-
const
|
|
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
|
-
|
|
1591
|
-
const
|
|
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(
|
|
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
|
-
|
|
1608
|
-
const
|
|
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
|
-
|
|
1624
|
-
const
|
|
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
|
-
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1638
|
-
|
|
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
|
-
|
|
1651
|
-
const
|
|
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,
|
|
@@ -1663,8 +1619,8 @@ const gi = z.Root, bi = z.Group, xi = z.Value, Wn = m.forwardRef(({ className: e
|
|
|
1663
1619
|
]
|
|
1664
1620
|
}
|
|
1665
1621
|
));
|
|
1666
|
-
|
|
1667
|
-
const
|
|
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
|
-
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1693
|
-
const
|
|
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,17 +1656,17 @@ 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(
|
|
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
|
-
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1711
|
-
const
|
|
1712
|
-
|
|
1713
|
-
const
|
|
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(
|
|
1714
1670
|
B.Overlay,
|
|
1715
1671
|
{
|
|
1716
1672
|
className: d(
|
|
@@ -1721,8 +1677,8 @@ const bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1721
1677
|
ref: s
|
|
1722
1678
|
}
|
|
1723
1679
|
));
|
|
1724
|
-
|
|
1725
|
-
const
|
|
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,10 +1693,10 @@ const Jn = ge(
|
|
|
1737
1693
|
side: "right"
|
|
1738
1694
|
}
|
|
1739
1695
|
}
|
|
1740
|
-
),
|
|
1741
|
-
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1742
|
-
/* @__PURE__ */ a.jsx(
|
|
1743
|
-
/* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: d(
|
|
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
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" }),
|
|
@@ -1749,16 +1705,16 @@ const Jn = ge(
|
|
|
1749
1705
|
] })
|
|
1750
1706
|
] })
|
|
1751
1707
|
);
|
|
1752
|
-
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
const
|
|
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
|
-
|
|
1778
|
-
const
|
|
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
|
-
|
|
1790
|
-
const
|
|
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
|
-
|
|
1804
|
-
const
|
|
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
|
-
|
|
1817
|
-
const
|
|
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(
|
|
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
|
-
|
|
1834
|
-
const
|
|
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
|
-
|
|
1850
|
-
const
|
|
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
|
-
|
|
1859
|
-
const
|
|
1860
|
-
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1863
|
-
const
|
|
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
|
-
|
|
1874
|
-
const
|
|
1875
|
-
let
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
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
|
|
1880
|
-
if (
|
|
1835
|
+
const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
|
|
1836
|
+
if (Ge.has(e))
|
|
1881
1837
|
return;
|
|
1882
1838
|
const t = setTimeout(() => {
|
|
1883
|
-
|
|
1839
|
+
Ge.delete(e), ke({
|
|
1884
1840
|
type: "REMOVE_TOAST",
|
|
1885
1841
|
toastId: e
|
|
1886
1842
|
});
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1889
|
-
},
|
|
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,
|
|
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
|
|
1927
|
-
De =
|
|
1882
|
+
function ke(e) {
|
|
1883
|
+
De = da(De, e), Me.forEach((t) => {
|
|
1928
1884
|
t(De);
|
|
1929
1885
|
});
|
|
1930
1886
|
}
|
|
1931
|
-
function
|
|
1932
|
-
const t =
|
|
1887
|
+
function ua({ ...e }) {
|
|
1888
|
+
const t = ca(), s = (n) => ke({
|
|
1933
1889
|
type: "UPDATE_TOAST",
|
|
1934
1890
|
toast: { ...n, id: t }
|
|
1935
|
-
}), o = () =>
|
|
1936
|
-
return
|
|
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
|
|
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:
|
|
1960
|
-
dismiss: (s) =>
|
|
1915
|
+
toast: ua,
|
|
1916
|
+
dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
|
|
1961
1917
|
};
|
|
1962
1918
|
}
|
|
1963
|
-
const
|
|
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, hs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
1971
1927
|
...t
|
|
1972
1928
|
}
|
|
1973
1929
|
));
|
|
1974
|
-
|
|
1975
|
-
const
|
|
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
|
-
),
|
|
1989
|
-
|
|
1990
|
-
const
|
|
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
|
-
|
|
2002
|
-
const
|
|
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 ys = 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
|
-
|
|
2016
|
-
const
|
|
2017
|
-
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2020
|
-
function
|
|
2021
|
-
const { toasts: e } =
|
|
2022
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2023
|
-
e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(
|
|
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(
|
|
2026
|
-
o && /* @__PURE__ */ a.jsx(
|
|
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(
|
|
1985
|
+
/* @__PURE__ */ a.jsx(hs, {})
|
|
2030
1986
|
] }, t)),
|
|
2031
|
-
/* @__PURE__ */ a.jsx(
|
|
1987
|
+
/* @__PURE__ */ a.jsx(bs, {})
|
|
2032
1988
|
] });
|
|
2033
1989
|
}
|
|
2034
|
-
const
|
|
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,8 +1998,8 @@ const _i = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2042
1998
|
...t
|
|
2043
1999
|
}
|
|
2044
2000
|
));
|
|
2045
|
-
|
|
2046
|
-
const
|
|
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: [
|
|
2047
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,
|
|
@@ -2057,8 +2013,8 @@ const Bi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ds, { ...t, children
|
|
|
2057
2013
|
}
|
|
2058
2014
|
)
|
|
2059
2015
|
] }));
|
|
2060
|
-
|
|
2061
|
-
const
|
|
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
|
-
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
const
|
|
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
|
-
|
|
2084
|
-
const
|
|
2085
|
-
|
|
2086
|
-
const
|
|
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
|
-
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2100
|
-
const
|
|
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
|
-
|
|
2117
|
-
const
|
|
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
|
-
|
|
2129
|
-
const
|
|
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 _a = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.P
|
|
|
2137
2093
|
...t
|
|
2138
2094
|
}
|
|
2139
2095
|
) }));
|
|
2140
|
-
|
|
2141
|
-
const
|
|
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 Ba = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2150
2106
|
...s
|
|
2151
2107
|
}
|
|
2152
2108
|
));
|
|
2153
|
-
|
|
2154
|
-
const
|
|
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(
|
|
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
|
-
|
|
2171
|
-
const
|
|
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
|
-
|
|
2187
|
-
const
|
|
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,12 +2148,12 @@ const Pa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2192
2148
|
...s
|
|
2193
2149
|
}
|
|
2194
2150
|
));
|
|
2195
|
-
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
-
const
|
|
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
2159
|
Qs.render(/* @__PURE__ */ a.jsx(Ys, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
@@ -2208,10 +2164,10 @@ const Da = (e) => {
|
|
|
2208
2164
|
} catch (t) {
|
|
2209
2165
|
return console.error(t), "";
|
|
2210
2166
|
}
|
|
2211
|
-
},
|
|
2167
|
+
}, Di = ({ value: e, onChange: t }) => {
|
|
2212
2168
|
const s = (o) => {
|
|
2213
2169
|
t("<svg />");
|
|
2214
|
-
const n =
|
|
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: [
|
|
@@ -2262,37 +2218,37 @@ const Da = (e) => {
|
|
|
2262
2218
|
}
|
|
2263
2219
|
)
|
|
2264
2220
|
] });
|
|
2265
|
-
},
|
|
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] =
|
|
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(
|
|
2274
|
-
/* @__PURE__ */ a.jsxs(
|
|
2275
|
-
/* @__PURE__ */ a.jsx(
|
|
2276
|
-
/* @__PURE__ */ a.jsx(
|
|
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(
|
|
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
|
-
},
|
|
2237
|
+
}, Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2282
2238
|
__proto__: null,
|
|
2283
|
-
default:
|
|
2239
|
+
default: Ns
|
|
2284
2240
|
}, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
|
|
2285
|
-
const [s, o] =
|
|
2241
|
+
const [s, o] = Ce(!1), n = (...i) => {
|
|
2286
2242
|
t.call(void 0, ...i), o(!1);
|
|
2287
2243
|
};
|
|
2288
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2289
|
-
/* @__PURE__ */ a.jsx(
|
|
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(
|
|
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
|
-
},
|
|
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 || !
|
|
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
|
-
] }),
|
|
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"],
|
|
@@ -2342,9 +2298,9 @@ const Da = (e) => {
|
|
|
2342
2298
|
className: "mt-1 rounded-md"
|
|
2343
2299
|
}
|
|
2344
2300
|
);
|
|
2345
|
-
},
|
|
2346
|
-
const [o, n] =
|
|
2347
|
-
return
|
|
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 || []);
|
|
@@ -2395,33 +2351,33 @@ const Da = (e) => {
|
|
|
2395
2351
|
] })
|
|
2396
2352
|
] })
|
|
2397
2353
|
] });
|
|
2398
|
-
},
|
|
2399
|
-
const [e] =
|
|
2354
|
+
}, Vi = () => {
|
|
2355
|
+
const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = gs(), n = L(
|
|
2400
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 =
|
|
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
2366
|
let f, x;
|
|
2411
|
-
return c && (f = te(e, { _id: c }), r[0]._parent = c, x = c), !(f ?
|
|
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
2372
|
(r, c, p) => {
|
|
2417
|
-
if (
|
|
2373
|
+
if (fe(r, "blocks")) {
|
|
2418
2374
|
const G = r.blocks;
|
|
2419
2375
|
return n(G, c, p);
|
|
2420
2376
|
}
|
|
2421
|
-
const l =
|
|
2422
|
-
|
|
2423
|
-
if (
|
|
2424
|
-
const $ = G.replace(
|
|
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",
|
|
@@ -2446,7 +2402,7 @@ const Da = (e) => {
|
|
|
2446
2402
|
}), t([]);
|
|
2447
2403
|
return;
|
|
2448
2404
|
}
|
|
2449
|
-
!(k ?
|
|
2405
|
+
!(k ? Ye(k._type, r.type) : !0) && k && (N._parent = k._parent, I = k._parent);
|
|
2450
2406
|
const W = [N, ...x];
|
|
2451
2407
|
return s(W, I, p), t([N._id]), N;
|
|
2452
2408
|
},
|
|
@@ -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
|
|
2419
|
+
function Ma(e, t) {
|
|
2464
2420
|
if (t === null)
|
|
2465
2421
|
return "baseClasses";
|
|
2466
2422
|
const s = t.mq;
|
|
@@ -2481,23 +2437,23 @@ function La(e, t) {
|
|
|
2481
2437
|
return o;
|
|
2482
2438
|
}
|
|
2483
2439
|
const Mt = [];
|
|
2484
|
-
function
|
|
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) => !
|
|
2489
|
-
), n = M(R(t.split(" "), Ie), (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
|
-
|
|
2451
|
+
de(s, (l) => {
|
|
2496
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(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.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)) {
|
|
2501
2457
|
const N = te(n, yt(f, ["property"]));
|
|
2502
2458
|
x && (n = M(
|
|
2503
2459
|
n,
|
|
@@ -2520,10 +2476,10 @@ function za(e = "", t = "", s = []) {
|
|
|
2520
2476
|
}
|
|
2521
2477
|
const Te = w([]);
|
|
2522
2478
|
Te.debugLabel = "selectedStylingBlocksAtom";
|
|
2523
|
-
const
|
|
2524
|
-
const t = e.replace(
|
|
2479
|
+
const Ea = () => D(Te), Oa = (e) => {
|
|
2480
|
+
const t = e.replace(ue, "").split(",");
|
|
2525
2481
|
return { baseClasses: t[0], classes: t[1] };
|
|
2526
|
-
},
|
|
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), p = F(c, i.prop, `${
|
|
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]: `${
|
|
2494
|
+
props: { [i.prop]: `${ue}${Da(f, l, o)}` }
|
|
2539
2495
|
};
|
|
2540
2496
|
});
|
|
2541
|
-
}),
|
|
2542
|
-
const e = Be(
|
|
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,70 +2507,114 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2551
2507
|
},
|
|
2552
2508
|
[e]
|
|
2553
2509
|
);
|
|
2554
|
-
},
|
|
2555
|
-
const t = e(
|
|
2510
|
+
}, za = () => D(Qt), ks = Re("canvasWidth", 800), js = w((e) => {
|
|
2511
|
+
const t = e(ks);
|
|
2556
2512
|
return Fs(t).toLowerCase();
|
|
2557
|
-
}),
|
|
2558
|
-
const [e, t] = D(
|
|
2559
|
-
return
|
|
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
|
-
},
|
|
2563
|
-
const [e, t] = D(
|
|
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([]),
|
|
2571
|
-
const [e, t] = D(ht), s = Be(
|
|
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
|
-
},
|
|
2579
|
-
const [e, t] = D(
|
|
2534
|
+
}, As = Re("darkMode", !1), Gi = () => {
|
|
2535
|
+
const [e, t] = D(As);
|
|
2580
2536
|
return [e, t];
|
|
2581
|
-
},
|
|
2582
|
-
|
|
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
|
-
|
|
2586
|
+
de(o, (r) => {
|
|
2587
2587
|
const c = e.find((N) => N._id === r);
|
|
2588
2588
|
n || (n = c._parent);
|
|
2589
2589
|
const f = M(
|
|
2590
2590
|
e,
|
|
2591
|
-
(N) =>
|
|
2592
|
-
).indexOf(c) + 1, x =
|
|
2591
|
+
(N) => zt(n) ? N._parent === n : !c._parent
|
|
2592
|
+
).indexOf(c) + 1, x = Fa(e, r, n);
|
|
2593
2593
|
s(x, n, f), i.push(F(x, "0._id", ""));
|
|
2594
2594
|
}), t(i);
|
|
2595
2595
|
},
|
|
2596
2596
|
[e, t]
|
|
2597
2597
|
);
|
|
2598
|
-
},
|
|
2599
|
-
const [e, t] = D(
|
|
2598
|
+
}, Wa = w([]), qi = () => {
|
|
2599
|
+
const [e, t] = D(Wa), s = L(
|
|
2600
2600
|
(o) => {
|
|
2601
|
-
t((n) => q(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
|
-
},
|
|
2607
|
-
const e = X(
|
|
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")) &&
|
|
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] =
|
|
2617
|
+
const e = X(ht), [t, s] = $a(), o = Ua(), n = qa();
|
|
2618
2618
|
return {
|
|
2619
2619
|
canPaste: Ls(
|
|
2620
2620
|
() => t.length > 0 || e.length > 0,
|
|
@@ -2622,15 +2622,15 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2622
2622
|
),
|
|
2623
2623
|
pasteBlocks: L(
|
|
2624
2624
|
(r) => {
|
|
2625
|
-
|
|
2625
|
+
_e(e) ? n(t, r) : o(e, r), s(() => []);
|
|
2626
2626
|
},
|
|
2627
2627
|
[t, e, o, n, s]
|
|
2628
2628
|
)
|
|
2629
2629
|
};
|
|
2630
|
-
},
|
|
2631
|
-
const [e, t] = D(
|
|
2630
|
+
}, Ka = w(!1), Ji = () => {
|
|
2631
|
+
const [e, t] = D(Ka);
|
|
2632
2632
|
return [e, t];
|
|
2633
|
-
},
|
|
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) => (
|
|
@@ -2641,23 +2641,23 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2641
2641
|
return R(i, (r) => {
|
|
2642
2642
|
const c = e(r), p = o;
|
|
2643
2643
|
let { classes: l, baseClasses: f } = wo(F(c, n.prop, "styles:,"));
|
|
2644
|
-
return
|
|
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
2648
|
q(["2xl", "xl", "lg", "md", "sm"], k) && p.push(x.split(":").pop().trim());
|
|
2649
|
-
}),
|
|
2649
|
+
}), de(p, (x) => {
|
|
2650
2650
|
const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
2651
2651
|
f = f.replace(N, " ").replace(/ +/g, " ").trim();
|
|
2652
2652
|
}), {
|
|
2653
2653
|
ids: [c._id],
|
|
2654
2654
|
props: {
|
|
2655
|
-
[n.prop]: `${
|
|
2655
|
+
[n.prop]: `${ue}${f},${l}`
|
|
2656
2656
|
}
|
|
2657
2657
|
};
|
|
2658
2658
|
});
|
|
2659
2659
|
}), Yi = () => {
|
|
2660
|
-
const { updateBlocks: e } = xe(), t = Be(
|
|
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, `${
|
|
2673
|
-
return M(R(n.trim().split(" "), Ie), (i) => !
|
|
2674
|
-
}), Qi = () => X(Bs), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 },
|
|
2675
|
-
const t = e(
|
|
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
|
|
2678
|
-
}),
|
|
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(
|
|
2704
|
+
}, Xi = () => X(Ya), Zi = () => D(dt), el = () => {
|
|
2705
2705
|
const { updateBlocks: e } = xe();
|
|
2706
2706
|
return L(
|
|
2707
2707
|
(t, s, o) => {
|
|
@@ -2722,8 +2722,8 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2722
2722
|
props: {},
|
|
2723
2723
|
modalProps: {},
|
|
2724
2724
|
backdropClose: !0
|
|
2725
|
-
},
|
|
2726
|
-
const [e, t] = D(
|
|
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
|
},
|
|
@@ -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(
|
|
2743
|
+
}, ol = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(be)), Ts = w(!1);
|
|
2744
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 = "
|
|
2747
|
-
const or = w("
|
|
2748
|
-
or.debugLabel = "
|
|
2749
|
-
const nr = w(
|
|
2750
|
-
nr.debugLabel = "
|
|
2751
|
-
const ar = w(
|
|
2752
|
-
ar.debugLabel = "
|
|
2753
|
-
const rr = w("");
|
|
2754
|
-
rr.debugLabel = "
|
|
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 = "
|
|
2757
|
-
const lr = w(null);
|
|
2758
|
-
lr.debugLabel = "canvasIframeAtom";
|
|
2759
|
-
const cr = w("outline");
|
|
2760
|
-
cr.debugLabel = "activePanelAtom";
|
|
2761
|
-
const dr = w("");
|
|
2762
|
-
dr.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
2762
|
+
ir.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
2763
2763
|
const Ps = w({ undoCount: 0, redoCount: 0 });
|
|
2764
2764
|
Ps.debugLabel = "historyStatesAtom";
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
const
|
|
2768
|
-
|
|
2769
|
-
const
|
|
2770
|
-
|
|
2771
|
-
const nl = () => X(Ts),
|
|
2772
|
-
const [e, t] = D(
|
|
2765
|
+
const lr = w("");
|
|
2766
|
+
lr.debugLabel = "inlineEditingActiveAtom";
|
|
2767
|
+
const cr = w(!1);
|
|
2768
|
+
cr.debugLabel = "draggingFlagAtom";
|
|
2769
|
+
const dr = w("");
|
|
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 = Be(Ps), { clear: t } =
|
|
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
|
-
},
|
|
2780
|
-
const [e, t] =
|
|
2781
|
-
return
|
|
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] =
|
|
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(Ts), pr = w(""), gr = w(null), al = () => D(pr), rl = () => D
|
|
|
2795
2795
|
};
|
|
2796
2796
|
export {
|
|
2797
2797
|
Xi as $,
|
|
2798
|
-
|
|
2799
|
-
|
|
2798
|
+
Zr as A,
|
|
2799
|
+
Ho as B,
|
|
2800
2800
|
pt as C,
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2801
|
+
$r as D,
|
|
2802
|
+
ye as E,
|
|
2803
|
+
Zt as F,
|
|
2804
2804
|
qt as G,
|
|
2805
|
-
|
|
2806
|
-
|
|
2805
|
+
ns as H,
|
|
2806
|
+
Ai as I,
|
|
2807
2807
|
nl as J,
|
|
2808
2808
|
sl as K,
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
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
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
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
|
-
|
|
2822
|
+
Ha as Y,
|
|
2823
2823
|
Ki as Z,
|
|
2824
2824
|
Yi as _,
|
|
2825
|
-
|
|
2826
|
-
|
|
2825
|
+
ei as a,
|
|
2826
|
+
xa as a$,
|
|
2827
2827
|
Qi as a0,
|
|
2828
|
-
|
|
2829
|
-
|
|
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
|
-
|
|
2834
|
+
Gr as a7,
|
|
2835
2835
|
ol as a8,
|
|
2836
2836
|
al as a9,
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
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
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
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
|
-
|
|
2867
|
-
|
|
2866
|
+
Ea as ac,
|
|
2867
|
+
ls as ad,
|
|
2868
2868
|
xt as ae,
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
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
2895
|
Bt as b3,
|
|
2896
2896
|
_t as b4,
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
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
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
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
|
+
_i as cc,
|
|
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
|
-
|
|
2989
|
+
zr as j,
|
|
2990
2990
|
oo as k,
|
|
2991
2991
|
oe as l,
|
|
2992
2992
|
uo as m,
|
|
2993
2993
|
co as n,
|
|
2994
2994
|
Re as o,
|
|
2995
|
-
|
|
2995
|
+
Vr as p,
|
|
2996
2996
|
Ji as q,
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
2997
|
+
Ve as r,
|
|
2998
|
+
Yr as s,
|
|
2999
|
+
Ua as t,
|
|
3000
3000
|
ll as u,
|
|
3001
|
-
|
|
3002
|
-
|
|
3001
|
+
as as v,
|
|
3002
|
+
be as w,
|
|
3003
3003
|
yo as x,
|
|
3004
|
-
|
|
3005
|
-
|
|
3004
|
+
Vo as y,
|
|
3005
|
+
Jr as z
|
|
3006
3006
|
};
|