@chaibuilder/sdk 1.2.13 → 1.2.15
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-zN5--UP6.js → AddBlocks-IE14csoo.js} +63 -57
- package/dist/{AddBlocks-tomDo_Is.cjs → AddBlocks-OpGQyVQZ.cjs} +1 -1
- package/dist/{BrandingOptions-BUmE4f72.cjs → BrandingOptions-tBWzqas5.cjs} +1 -1
- package/dist/{BrandingOptions-LbizrmRI.js → BrandingOptions-t_MjeHSM.js} +1 -1
- package/dist/{CanvasArea-nT6ZJh_V.cjs → CanvasArea-SBeW-Kdq.cjs} +4 -4
- package/dist/{CanvasArea-OSH8wqt1.js → CanvasArea-TR5t1xxh.js} +3 -3
- package/dist/{CurrentPage-SWR9WU4k.cjs → CurrentPage--ag-4O2R.cjs} +1 -1
- package/dist/{CurrentPage-FzqNBLy4.js → CurrentPage-JUlhyVbI.js} +2 -2
- package/dist/{Layers-FRHRlPIH.cjs → Layers-05Ut4xZA.cjs} +1 -1
- package/dist/{Layers-g5_pwwgO.js → Layers-Dav1kBNN.js} +125 -148
- package/dist/{PagesPanel-PSg6aqlK.js → PagesPanel--feFCDeH.js} +3 -3
- package/dist/{PagesPanel-3jcf5-iH.cjs → PagesPanel-TLVCJtcF.cjs} +1 -1
- package/dist/{ProjectPanel-XW_Bx880.js → ProjectPanel--Vq6HSMl.js} +3 -3
- package/dist/{ProjectPanel-EyEcNyh8.cjs → ProjectPanel-Q8sNFs1f.cjs} +1 -1
- package/dist/{Settings-h1c8ukpI.cjs → Settings-9iryF0yE.cjs} +1 -1
- package/dist/{Settings--7qJ7ciF.js → Settings-DjE6HR2E.js} +2 -2
- package/dist/{SidePanels-Lmj0Qkd1.js → SidePanels-4zpCzCM6.js} +68 -68
- package/dist/{SidePanels-NbM1mfsY.cjs → SidePanels-LVED6uuT.cjs} +1 -1
- package/dist/{Topbar-2sOsQD2d.cjs → Topbar-iH2L4pe0.cjs} +1 -1
- package/dist/{Topbar-xvrno03z.js → Topbar-ryFhl-PC.js} +1 -1
- package/dist/{UnsplashImages-EiYSWkBa.cjs → UnsplashImages-SrxA-yNu.cjs} +1 -1
- package/dist/{UnsplashImages-hhPOf7kt.js → UnsplashImages-ppQXZ28F.js} +1 -1
- package/dist/{UploadImages-JKjE44i7.js → UploadImages-IKR4oX2k.js} +1 -1
- package/dist/{UploadImages-GGCExfQd.cjs → UploadImages-VBiO6lqp.cjs} +1 -1
- package/dist/{add-page-modal-65wltt_4.cjs → add-page-modal-KixvLXAG.cjs} +1 -1
- package/dist/{add-page-modal-Bl6y65im.js → add-page-modal-nZJaunuz.js} +3 -3
- package/dist/{confirm-alert-Nw1JCtuu.js → confirm-alert-QKtbNbWz.js} +1 -1
- package/dist/{confirm-alert-_DCO6hCV.cjs → confirm-alert-uV_PtYc3.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-Q3Si4nyd.cjs → delete-page-modal-6GxLQkEk.cjs} +1 -1
- package/dist/{delete-page-modal-tiJ2UA5f.js → delete-page-modal-pN5cFz-m.js} +2 -2
- package/dist/email.cjs +1 -1
- package/dist/email.js +2 -2
- package/dist/{form-vNgf0kO2.cjs → form-KkP1F7h1.cjs} +1 -1
- package/dist/{form-lbFCPUoE.js → form-faX0Yn4Q.js} +1 -1
- package/dist/{index-bfKqnRvZ.cjs → index-ERorPL9q.cjs} +1 -1
- package/dist/{index-m9VziIOy.js → index-QGA4ayU7.js} +275 -275
- package/dist/{index-wwk4px_E.js → index-nrRnwUaC.js} +665 -660
- package/dist/{index-hS9T9Nub.cjs → index-xJ8LmB04.cjs} +22 -22
- package/dist/{page-viewer-w-ahza8q.cjs → page-viewer-Nn__90Uo.cjs} +1 -1
- package/dist/{page-viewer-rLCyM4QC.js → page-viewer-U7o88VvR.js} +3 -3
- package/dist/{project-general-setting-RTcIwUWc.cjs → project-general-setting-C98_GooL.cjs} +1 -1
- package/dist/{project-general-setting-pY-Mkc8G.js → project-general-setting-h0TeKYRf.js} +3 -3
- package/dist/{project-seo-setting-aRDdqu88.cjs → project-seo-setting-8oJUrOqk.cjs} +1 -1
- package/dist/{project-seo-setting-9V67NFil.js → project-seo-setting-Sl6AE-Q7.js} +2 -2
- package/dist/{single-page-detail-wHDpn40R.cjs → single-page-detail-RYI1ukX6.cjs} +1 -1
- package/dist/{single-page-detail-HYX4R3U0.js → single-page-detail-a8zY-XHs.js} +4 -4
- package/dist/studio.cjs +1 -1
- package/dist/studio.d.ts +110 -2
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/{useAddBlockByDrop-1WvPoBXa.cjs → useAddBlockByDrop-LBgi6GL7.cjs} +1 -1
- package/dist/{useAddBlockByDrop-bs_SH7Tw.js → useAddBlockByDrop-Y-g4O8UC.js} +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import
|
|
3
|
-
import { has as pe, get as F, flatten as ne, filter as M, omit as Oe, isEmpty as ve, isString as Et, find as te, map as R, each as ue, set as Se, includes as q, isUndefined as Nr, without as Ot, forIn as Lt, isObject as
|
|
4
|
-
import { g as ce, a as
|
|
2
|
+
import tt, { createContext as Is, useContext as Ms, useRef as vr, createElement as yr, useReducer as Ds, useEffect as Ce, useDebugValue as Es, useCallback as L, useMemo as Os, useState as Be, Suspense as vt } from "react";
|
|
3
|
+
import { has as pe, get as F, flatten as ne, filter as M, omit as Oe, isEmpty as ve, isString as Et, find as te, map as R, each as ue, set as Se, includes as q, isUndefined as Nr, without as Ot, forIn as Lt, isObject as Ls, first as Q, noop as zs, keys as Vs, startsWith as zt, isNull as qe, pick as yt, sortBy as wt } from "lodash-es";
|
|
4
|
+
import { g as ce, a as $s } from "./Functions-7jnEwJyw.js";
|
|
5
5
|
import { getBlockComponent as Le } from "@chaibuilder/runtime";
|
|
6
6
|
import { atom as w, useAtomValue as X, useAtom as D, useSetAtom as _e } from "jotai";
|
|
7
7
|
import Vt from "flat-to-nested";
|
|
8
8
|
import { a as me, I as $t, S as Ke, B as Je } from "./MODIFIERS-RiXS5Mn1.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { useThrottledCallback as
|
|
9
|
+
import { g as Fs } from "./_commonjsHelpers-UyOWmZb0.js";
|
|
10
|
+
import { useThrottledCallback as Us } from "@react-hookz/web";
|
|
11
11
|
import { j as a } from "./jsx-runtime-WbnYoNE9.js";
|
|
12
12
|
import * as Ft from "@radix-ui/react-toggle";
|
|
13
13
|
import { cva as ge } from "class-variance-authority";
|
|
14
14
|
import { a as d, c as Ie } from "./Class-17XFhL48.js";
|
|
15
15
|
import * as Ye from "@radix-ui/react-switch";
|
|
16
|
-
import { Slot as
|
|
16
|
+
import { Slot as Ws } from "@radix-ui/react-slot";
|
|
17
17
|
import * as fe from "@radix-ui/react-accordion";
|
|
18
|
-
import { ChevronDownIcon as
|
|
18
|
+
import { ChevronDownIcon as Gs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as ze, DotFilledIcon as nt, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
|
|
19
19
|
import * as U from "@radix-ui/react-alert-dialog";
|
|
20
20
|
import * as _ from "@radix-ui/react-dialog";
|
|
21
21
|
import * as Ut from "@radix-ui/react-label";
|
|
@@ -31,14 +31,14 @@ import * as Wt from "@radix-ui/react-separator";
|
|
|
31
31
|
import * as Y from "@radix-ui/react-toast";
|
|
32
32
|
import { Command as K } from "cmdk";
|
|
33
33
|
import * as P from "@radix-ui/react-context-menu";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
34
|
+
import Ks, { IconPickerItem as Js } from "react-icons-picker";
|
|
35
|
+
import Ys from "react-dom";
|
|
36
|
+
import Qs from "react-quill";
|
|
37
37
|
import "react-i18next";
|
|
38
38
|
var V = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
39
|
-
let
|
|
39
|
+
let Xs = 0;
|
|
40
40
|
function oe(e, t) {
|
|
41
|
-
const s = `atom${++
|
|
41
|
+
const s = `atom${++Xs}`, o = {
|
|
42
42
|
toString: () => s
|
|
43
43
|
};
|
|
44
44
|
return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, i, r) => i(
|
|
@@ -46,21 +46,21 @@ function oe(e, t) {
|
|
|
46
46
|
typeof r == "function" ? r(n(o)) : r
|
|
47
47
|
)), t && (o.write = t), o;
|
|
48
48
|
}
|
|
49
|
-
const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new WeakMap(),
|
|
49
|
+
const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new WeakMap(), Zs = (e, t) => {
|
|
50
50
|
Ee.set(e, t), e.catch(() => {
|
|
51
51
|
}).finally(() => Ee.delete(e));
|
|
52
|
-
},
|
|
52
|
+
}, Nt = (e, t) => {
|
|
53
53
|
const s = Ee.get(e);
|
|
54
54
|
s && (Ee.delete(e), s(t));
|
|
55
|
-
}, Nt = (e, t) => {
|
|
56
|
-
e.status = "fulfilled", e.value = t;
|
|
57
55
|
}, kt = (e, t) => {
|
|
56
|
+
e.status = "fulfilled", e.value = t;
|
|
57
|
+
}, jt = (e, t) => {
|
|
58
58
|
e.status = "rejected", e.reason = t;
|
|
59
|
-
},
|
|
59
|
+
}, eo = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), St = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), he = (e) => "v" in e && e.v instanceof Promise, to = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Pe = (e) => {
|
|
60
60
|
if ("e" in e)
|
|
61
61
|
throw e.e;
|
|
62
62
|
return e.v;
|
|
63
|
-
},
|
|
63
|
+
}, so = () => {
|
|
64
64
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
|
|
65
65
|
let o, n, i;
|
|
66
66
|
(V ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
|
|
@@ -69,7 +69,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
69
69
|
const v = e.get(u);
|
|
70
70
|
if (e.set(u, g), s.has(u) || s.set(u, v), v && he(v)) {
|
|
71
71
|
const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
|
|
72
|
-
|
|
72
|
+
Nt(v.v, b);
|
|
73
73
|
}
|
|
74
74
|
}, p = (u, g, v) => {
|
|
75
75
|
const b = /* @__PURE__ */ new Map();
|
|
@@ -84,14 +84,14 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
84
84
|
};
|
|
85
85
|
if (v && p(u, y, v), b && Ne(b, y) && b.d === y.d)
|
|
86
86
|
return b;
|
|
87
|
-
if (b && he(b) && he(y) &&
|
|
87
|
+
if (b && he(b) && he(y) && to(b, y)) {
|
|
88
88
|
if (b.d === y.d)
|
|
89
89
|
return b;
|
|
90
90
|
y.v = b.v;
|
|
91
91
|
}
|
|
92
92
|
return c(u, y), y;
|
|
93
93
|
}, f = (u, g, v, b) => {
|
|
94
|
-
if (
|
|
94
|
+
if (eo(g)) {
|
|
95
95
|
let y;
|
|
96
96
|
const h = new Promise((j, E) => {
|
|
97
97
|
let S = !1;
|
|
@@ -104,7 +104,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
104
104
|
h,
|
|
105
105
|
v
|
|
106
106
|
);
|
|
107
|
-
|
|
107
|
+
kt(h, B), j(B), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
(B) => {
|
|
@@ -115,17 +115,17 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
115
115
|
h,
|
|
116
116
|
v
|
|
117
117
|
);
|
|
118
|
-
|
|
118
|
+
jt(h, B), E(B), (A == null ? void 0 : A.d) !== ee.d && J(u, ee, A == null ? void 0 : A.d);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
), y = (B) => {
|
|
122
122
|
S || (S = !0, B.then(
|
|
123
|
-
(A) =>
|
|
124
|
-
(A) =>
|
|
123
|
+
(A) => kt(h, A),
|
|
124
|
+
(A) => jt(h, A)
|
|
125
125
|
), j(B));
|
|
126
126
|
};
|
|
127
127
|
});
|
|
128
|
-
return h.orig = g, h.status = "pending",
|
|
128
|
+
return h.orig = g, h.status = "pending", Zs(h, (j) => {
|
|
129
129
|
j && y(j), b == null || b();
|
|
130
130
|
}), l(u, h, v);
|
|
131
131
|
}
|
|
@@ -135,7 +135,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
135
135
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
136
136
|
e: g
|
|
137
137
|
};
|
|
138
|
-
return v && p(u, y, v), b &&
|
|
138
|
+
return v && p(u, y, v), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
|
|
139
139
|
}, N = (u) => {
|
|
140
140
|
const g = r(u);
|
|
141
141
|
if (g && (g.d.forEach((S, B) => {
|
|
@@ -211,8 +211,8 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
211
211
|
if (B && v.set(E, --B), !B) {
|
|
212
212
|
let A = !!((S = g.get(E)) != null && S.size);
|
|
213
213
|
if (A) {
|
|
214
|
-
const ee = r(E),
|
|
215
|
-
A = !ee || !Ne(ee,
|
|
214
|
+
const ee = r(E), Ps = N(E);
|
|
215
|
+
A = !ee || !Ne(ee, Ps);
|
|
216
216
|
}
|
|
217
217
|
A || g.forEach((ee) => ee.delete(E));
|
|
218
218
|
}
|
|
@@ -264,7 +264,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
264
264
|
const v = (g = t.get(u)) == null ? void 0 : g.u;
|
|
265
265
|
v && v(), t.delete(u), (V ? "production" : void 0) !== "production" && i.delete(u);
|
|
266
266
|
const b = r(u);
|
|
267
|
-
b ? (he(b) &&
|
|
267
|
+
b ? (he(b) && Nt(b.v), b.d.forEach((y, h) => {
|
|
268
268
|
if (h !== u) {
|
|
269
269
|
const j = t.get(h);
|
|
270
270
|
j && (j.t.delete(u), O(h, j) && le(h));
|
|
@@ -294,7 +294,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
294
294
|
const h = t.get(v);
|
|
295
295
|
h && !// TODO This seems pretty hacky. Hope to fix it.
|
|
296
296
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
297
|
-
(b && !he(b) && (Ne(b, y) ||
|
|
297
|
+
(b && !he(b) && (Ne(b, y) || St(b, y))) && (h.l.forEach((j) => j()), (V ? "production" : void 0) !== "production" && u.add(v));
|
|
298
298
|
} else
|
|
299
299
|
(V ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
300
300
|
});
|
|
@@ -339,13 +339,13 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
let We;
|
|
342
|
-
const
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
const t =
|
|
346
|
-
return (e == null ? void 0 : e.store) || t ||
|
|
342
|
+
const oo = () => (We || (We = so()), We);
|
|
343
|
+
var no = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
344
|
+
const ao = Is(void 0), Gt = (e) => {
|
|
345
|
+
const t = Ms(ao);
|
|
346
|
+
return (e == null ? void 0 : e.store) || t || oo();
|
|
347
347
|
};
|
|
348
|
-
const
|
|
348
|
+
const ro = (e) => typeof (e == null ? void 0 : e.then) == "function", io = tt.use || ((e) => {
|
|
349
349
|
if (e.status === "pending")
|
|
350
350
|
throw e;
|
|
351
351
|
if (e.status === "fulfilled")
|
|
@@ -359,8 +359,8 @@ const io = (e) => typeof (e == null ? void 0 : e.then) == "function", lo = et.us
|
|
|
359
359
|
}
|
|
360
360
|
), e);
|
|
361
361
|
});
|
|
362
|
-
function
|
|
363
|
-
const s = Gt(t), [[o, n, i], r] =
|
|
362
|
+
function lo(e, t) {
|
|
363
|
+
const s = Gt(t), [[o, n, i], r] = Ds(
|
|
364
364
|
(l) => {
|
|
365
365
|
const f = s.get(e);
|
|
366
366
|
return Object.is(l[0], f) && l[1] === s && l[2] === e ? l : [f, s, e];
|
|
@@ -380,13 +380,13 @@ function co(e, t) {
|
|
|
380
380
|
r();
|
|
381
381
|
});
|
|
382
382
|
return r(), l;
|
|
383
|
-
}, [s, e, p]),
|
|
383
|
+
}, [s, e, p]), Es(c), ro(c) ? io(c) : c;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function co(e, t) {
|
|
386
386
|
const s = Gt(t);
|
|
387
387
|
return L(
|
|
388
388
|
(...n) => {
|
|
389
|
-
if ((
|
|
389
|
+
if ((no ? "production" : void 0) !== "production" && !("write" in e))
|
|
390
390
|
throw new Error("not writable atom");
|
|
391
391
|
return s.set(e, ...n);
|
|
392
392
|
},
|
|
@@ -395,19 +395,19 @@ function uo(e, t) {
|
|
|
395
395
|
}
|
|
396
396
|
function Vr(e, t) {
|
|
397
397
|
return [
|
|
398
|
-
|
|
398
|
+
lo(e, t),
|
|
399
399
|
// We do wrong type assertion here, which results in throwing an error.
|
|
400
|
-
|
|
400
|
+
co(e, t)
|
|
401
401
|
];
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var at = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
404
404
|
const Ht = Symbol();
|
|
405
|
-
const
|
|
406
|
-
const o =
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
function
|
|
410
|
-
return
|
|
405
|
+
const At = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), uo = /* @__PURE__ */ new WeakMap(), mo = (e, t, s) => {
|
|
406
|
+
const o = At(() => /* @__PURE__ */ new WeakMap(), uo, t);
|
|
407
|
+
return At(e, o, s);
|
|
408
|
+
}, fo = {}, Ct = (e) => !!e.write, po = (e) => typeof e == "function";
|
|
409
|
+
function go(e, t) {
|
|
410
|
+
return mo(
|
|
411
411
|
() => {
|
|
412
412
|
const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
|
|
413
413
|
let p = s.get(r);
|
|
@@ -435,21 +435,21 @@ function bo(e, t) {
|
|
|
435
435
|
const le = H(n), J = H(e), re = o(J, le == null ? void 0 : le.arr).keyList.indexOf(I);
|
|
436
436
|
if (re < 0 || re >= J.length)
|
|
437
437
|
throw new Error("splitAtom: index out of bounds for write");
|
|
438
|
-
const u =
|
|
438
|
+
const u = po(Z) ? Z(J[re]) : Z;
|
|
439
439
|
$(e, [
|
|
440
440
|
...J.slice(0, re),
|
|
441
441
|
u,
|
|
442
442
|
...J.slice(re + 1)
|
|
443
443
|
]);
|
|
444
444
|
};
|
|
445
|
-
f[k] =
|
|
445
|
+
f[k] = Ct(e) ? oe(W, G) : oe(W);
|
|
446
446
|
}), l && l.keyList.length === x.length && l.keyList.every((N, k) => N === x[k]) ? p = l : p = { arr: r, atomList: f, keyList: x }, s.set(r, p), p;
|
|
447
447
|
}, n = oe((r) => {
|
|
448
448
|
const c = r(n), p = r(e);
|
|
449
449
|
return o(p, c == null ? void 0 : c.arr);
|
|
450
450
|
});
|
|
451
|
-
(
|
|
452
|
-
const i =
|
|
451
|
+
(at ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
|
|
452
|
+
const i = Ct(e) ? oe(
|
|
453
453
|
(r) => r(n).atomList,
|
|
454
454
|
(r, c, p) => {
|
|
455
455
|
switch (p.type) {
|
|
@@ -500,12 +500,12 @@ function bo(e, t) {
|
|
|
500
500
|
return i;
|
|
501
501
|
},
|
|
502
502
|
e,
|
|
503
|
-
t ||
|
|
503
|
+
t || fo
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
function $r(e) {
|
|
507
507
|
const t = Symbol(), s = oe(t);
|
|
508
|
-
(
|
|
508
|
+
(at ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
|
|
509
509
|
const o = oe(
|
|
510
510
|
(n, i) => {
|
|
511
511
|
const r = n(s);
|
|
@@ -523,8 +523,8 @@ function $r(e) {
|
|
|
523
523
|
);
|
|
524
524
|
return o;
|
|
525
525
|
}
|
|
526
|
-
const
|
|
527
|
-
function
|
|
526
|
+
const bo = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
527
|
+
function xo(e) {
|
|
528
528
|
let t, s;
|
|
529
529
|
const o = {
|
|
530
530
|
getItem: (n, i) => {
|
|
@@ -540,7 +540,7 @@ function ho(e) {
|
|
|
540
540
|
}
|
|
541
541
|
return s;
|
|
542
542
|
}, l = (c = (r = e()) == null ? void 0 : r.getItem(n)) != null ? c : null;
|
|
543
|
-
return
|
|
543
|
+
return bo(l) ? l.then(p) : p(l);
|
|
544
544
|
},
|
|
545
545
|
setItem: (n, i) => {
|
|
546
546
|
var r;
|
|
@@ -571,14 +571,14 @@ function ho(e) {
|
|
|
571
571
|
};
|
|
572
572
|
}), o;
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const ho = xo(
|
|
575
575
|
() => typeof window < "u" ? window.localStorage : void 0
|
|
576
576
|
);
|
|
577
|
-
function Re(e, t, s =
|
|
577
|
+
function Re(e, t, s = ho, o) {
|
|
578
578
|
const n = o == null ? void 0 : o.unstable_getOnInit, i = oe(
|
|
579
579
|
n ? s.getItem(e, t) : t
|
|
580
580
|
);
|
|
581
|
-
return (
|
|
581
|
+
return (at ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
|
|
582
582
|
n || c(s.getItem(e, t));
|
|
583
583
|
let p;
|
|
584
584
|
return s.subscribe && (p = s.subscribe(e, c, t)), p;
|
|
@@ -592,17 +592,17 @@ function Re(e, t, s = vo, o) {
|
|
|
592
592
|
}
|
|
593
593
|
const qt = w(null);
|
|
594
594
|
qt.debugLabel = "chaiBuilderPropsAtom";
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
const Fr = () => !1,
|
|
595
|
+
const vo = w({});
|
|
596
|
+
vo.debugLabel = "chaiExternalDataAtom";
|
|
597
|
+
const Fr = () => !1, yo = (e) => {
|
|
598
598
|
const t = e.replace(me, "").split(",");
|
|
599
599
|
return { baseClasses: t[0], classes: t[1] };
|
|
600
|
-
},
|
|
600
|
+
}, Qe = (e, t) => {
|
|
601
601
|
if (!e)
|
|
602
602
|
return !0;
|
|
603
603
|
const s = Le(e);
|
|
604
604
|
return s && pe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
|
|
605
|
-
},
|
|
605
|
+
}, wo = (e, t) => {
|
|
606
606
|
const s = Le(t);
|
|
607
607
|
return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
|
|
608
608
|
}, Ur = (e) => {
|
|
@@ -613,18 +613,18 @@ const Fr = () => !1, wo = (e) => {
|
|
|
613
613
|
return t && pe(t, "canDelete") ? t.canDelete() : !0;
|
|
614
614
|
}, Gr = (e, { dragSource: t, dropTarget: s }) => {
|
|
615
615
|
const o = F(t, "data._type", ""), n = F(s, "data._type", "");
|
|
616
|
-
return
|
|
616
|
+
return Qe(n, o);
|
|
617
617
|
};
|
|
618
618
|
const No = new Vt({ children: "blockNodes" });
|
|
619
|
-
function
|
|
619
|
+
function Kt(e, t, s) {
|
|
620
620
|
const o = M(e, (i) => i._parent === t), n = [];
|
|
621
621
|
for (let i = 0; i < o.length; i++) {
|
|
622
|
-
const r =
|
|
622
|
+
const r = Jt(o[i]);
|
|
623
623
|
if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
|
|
624
624
|
o[i][c] = `slot:${ce()}`;
|
|
625
625
|
}), M(e, { _parent: o[i]._id }).length > 0) {
|
|
626
626
|
const c = ce();
|
|
627
|
-
n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(
|
|
627
|
+
n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ne(Kt(e, o[i]._id, c)));
|
|
628
628
|
} else
|
|
629
629
|
n.push({
|
|
630
630
|
...o[i],
|
|
@@ -639,7 +639,7 @@ function ko(e) {
|
|
|
639
639
|
let t = No.convert(e.map((s) => Oe(s, ["settings"])));
|
|
640
640
|
return t = !t.type && t.blockNodes ? t.blockNodes : ve(t) ? [] : [t], t;
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const Jt = (e) => {
|
|
643
643
|
const t = {};
|
|
644
644
|
return Object.keys(e).forEach((s) => {
|
|
645
645
|
Et(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
|
|
@@ -648,10 +648,10 @@ const Yt = (e) => {
|
|
|
648
648
|
let o = te(e, { _id: t });
|
|
649
649
|
o = { ...o, oldId: o._id, _id: ce() }, s && (o = { ...o, _parent: s });
|
|
650
650
|
const n = [o];
|
|
651
|
-
M(e, { _parent: t }).length > 0 && n.push(ne(
|
|
651
|
+
M(e, { _parent: t }).length > 0 && n.push(ne(Kt(e, t, o._id)));
|
|
652
652
|
const i = ne(n);
|
|
653
653
|
return R(i, (r) => {
|
|
654
|
-
const c = r, p =
|
|
654
|
+
const c = r, p = Jt(c);
|
|
655
655
|
return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
|
|
656
656
|
const f = te(i, { oldId: p[l].replace("slot:", "") });
|
|
657
657
|
c[l] = `slot:${f._id}`;
|
|
@@ -660,58 +660,58 @@ const Yt = (e) => {
|
|
|
660
660
|
};
|
|
661
661
|
const ie = w([]);
|
|
662
662
|
ie.debugLabel = "presentBlocksAtom";
|
|
663
|
-
const
|
|
664
|
-
|
|
663
|
+
const rt = go(ie);
|
|
664
|
+
rt.debugLabel = "pageBlocksAtomsAtom";
|
|
665
665
|
const So = w((e) => ko(e(ie)));
|
|
666
666
|
So.debugLabel = "pageBlocksTreeAtom";
|
|
667
667
|
const Ao = w("");
|
|
668
668
|
Ao.debugLabel = "builderActivePageAtom";
|
|
669
669
|
const Co = w(-1);
|
|
670
670
|
Co.debugLabel = "destinationDropIndexAtom";
|
|
671
|
-
const
|
|
672
|
-
|
|
671
|
+
const Yt = w([]);
|
|
672
|
+
Yt.debugLabel = "buildingBlocksAtom";
|
|
673
673
|
const Bo = w((e) => {
|
|
674
|
-
const t = e(
|
|
674
|
+
const t = e(Yt);
|
|
675
675
|
return M(t, (s) => pe(s, "blockId"));
|
|
676
676
|
});
|
|
677
677
|
Bo.debugLabel = "globalBlocksAtom";
|
|
678
|
-
const
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
const t = e(ie), s = e(
|
|
678
|
+
const it = w([]);
|
|
679
|
+
it.debugLabel = "selectedBlockIdsAtom";
|
|
680
|
+
const lt = w((e) => {
|
|
681
|
+
const t = e(ie), s = e(it);
|
|
682
682
|
return R(
|
|
683
683
|
M(t, ({ _id: o }) => q(s, o)),
|
|
684
684
|
(o) => ({ ...o })
|
|
685
685
|
);
|
|
686
686
|
});
|
|
687
|
-
|
|
688
|
-
const
|
|
689
|
-
const t = e(
|
|
687
|
+
lt.debugLabel = "selectedBlocksAtom";
|
|
688
|
+
const ct = w((e) => {
|
|
689
|
+
const t = e(lt);
|
|
690
690
|
return t.length === 0 ? null : t.length === 1 ? t[0] : {
|
|
691
691
|
type: "Multiple",
|
|
692
692
|
id: R(t, "id")
|
|
693
693
|
};
|
|
694
694
|
});
|
|
695
|
-
|
|
695
|
+
ct.debugLabel = "selectedBlockAtom";
|
|
696
696
|
const _o = (e) => F(e, "parent", null), Ro = w((e) => {
|
|
697
|
-
const t = e(
|
|
697
|
+
const t = e(lt), s = R(t, _o);
|
|
698
698
|
return M(e(ie), (o) => q(s, o._id));
|
|
699
699
|
});
|
|
700
700
|
Ro.debugLabel = "selectedBlocksParentsAtom";
|
|
701
|
+
const Qt = w(() => !1);
|
|
702
|
+
Qt.debugLabel = "selectedBlockFlexChildAtom";
|
|
701
703
|
const Xt = w(() => !1);
|
|
702
|
-
Xt.debugLabel = "
|
|
703
|
-
const
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
const es = Re("styleBreakpoint", "xs");
|
|
708
|
-
es.debugLabel = "styleBreakpointAtom";
|
|
704
|
+
Xt.debugLabel = "selectedBlockGridChildAtom";
|
|
705
|
+
const dt = w("");
|
|
706
|
+
dt.debugLabel = "styleStateAtom";
|
|
707
|
+
const Zt = Re("styleBreakpoint", "xs");
|
|
708
|
+
Zt.debugLabel = "styleBreakpointAtom";
|
|
709
709
|
const Hr = () => ({
|
|
710
|
-
flexChild: X(
|
|
711
|
-
gridChild: X(
|
|
712
|
-
}), qr = () => X(
|
|
710
|
+
flexChild: X(Qt),
|
|
711
|
+
gridChild: X(Xt)
|
|
712
|
+
}), qr = () => X(ct);
|
|
713
713
|
const $e = () => {
|
|
714
|
-
const [e, t] = D(
|
|
714
|
+
const [e, t] = D(it), s = L(
|
|
715
715
|
(o) => {
|
|
716
716
|
t((n) => q(n, o) ? Ot(n, o) : [...n, o]);
|
|
717
717
|
},
|
|
@@ -781,7 +781,7 @@ const $e = () => {
|
|
|
781
781
|
default:
|
|
782
782
|
return {};
|
|
783
783
|
}
|
|
784
|
-
},
|
|
784
|
+
}, es = (e) => {
|
|
785
785
|
if (!e)
|
|
786
786
|
return {};
|
|
787
787
|
const t = {};
|
|
@@ -808,14 +808,14 @@ const $e = () => {
|
|
|
808
808
|
const { i18n: t, schema: s } = e;
|
|
809
809
|
return t ? $t : F(s, "default", "");
|
|
810
810
|
case "model":
|
|
811
|
-
return
|
|
811
|
+
return es(e.properties);
|
|
812
812
|
case "list":
|
|
813
813
|
return To(e);
|
|
814
814
|
default:
|
|
815
815
|
return "";
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
|
-
var
|
|
818
|
+
var ut = { exports: {} }, Kr = ut.exports;
|
|
819
819
|
(function(e) {
|
|
820
820
|
(function() {
|
|
821
821
|
"use strict";
|
|
@@ -919,29 +919,29 @@ var dt = { exports: {} }, Kr = dt.exports;
|
|
|
919
919
|
};
|
|
920
920
|
e.exports ? e.exports = s : window.UndoManager = s;
|
|
921
921
|
})();
|
|
922
|
-
})(
|
|
923
|
-
var Io =
|
|
924
|
-
const Mo = /* @__PURE__ */
|
|
922
|
+
})(ut);
|
|
923
|
+
var Io = ut.exports;
|
|
924
|
+
const Mo = /* @__PURE__ */ Fs(Io), Do = w(Je), Eo = w(null), Oo = () => {
|
|
925
925
|
const [e, t] = D(Do);
|
|
926
926
|
return [
|
|
927
|
-
|
|
927
|
+
Ls(e) ? { ...Je, ...e } : Je,
|
|
928
928
|
t
|
|
929
929
|
];
|
|
930
|
-
}, Jr = () => D(Eo), Lo = w(null), zo = () => ({ currentPage: X(Lo) }),
|
|
930
|
+
}, Jr = () => D(Eo), Lo = w(null), zo = () => ({ currentPage: X(Lo) }), ts = new Vt({});
|
|
931
931
|
function Vo(e) {
|
|
932
|
-
let t =
|
|
932
|
+
let t = ts.convert(e);
|
|
933
933
|
return t = !t.type && t.children && t.children.length ? t.children : ve(t) ? [] : [t], t;
|
|
934
934
|
}
|
|
935
|
-
const
|
|
935
|
+
const mt = (e, t) => ne(
|
|
936
936
|
e.map((s) => {
|
|
937
937
|
if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
|
|
938
938
|
const o = [...s.children];
|
|
939
|
-
return delete s.children, ne([s, ...
|
|
939
|
+
return delete s.children, ne([s, ...mt(o, s._id)]);
|
|
940
940
|
}
|
|
941
941
|
return s;
|
|
942
942
|
})
|
|
943
943
|
);
|
|
944
|
-
function
|
|
944
|
+
function ft(e, t = !1) {
|
|
945
945
|
for (let s = 0; s < e.length; s++) {
|
|
946
946
|
const o = e[s];
|
|
947
947
|
o.global && !t ? e[s] = {
|
|
@@ -949,12 +949,12 @@ function mt(e, t = !1) {
|
|
|
949
949
|
blockId: o.blockId,
|
|
950
950
|
_parent: F(o, "parent", null),
|
|
951
951
|
_id: o._id
|
|
952
|
-
} : o.children && o.children.length &&
|
|
952
|
+
} : o.children && o.children.length && ft(o.children);
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function ss(e) {
|
|
956
956
|
let t = [], s = M(e, { type: "GlobalBlock" });
|
|
957
|
-
return s.length > 0 && (s = R(s,
|
|
957
|
+
return s.length > 0 && (s = R(s, os), ue(s, (o) => {
|
|
958
958
|
t = [...t, ...$o(o)];
|
|
959
959
|
})), t;
|
|
960
960
|
}
|
|
@@ -962,25 +962,25 @@ function $o(e) {
|
|
|
962
962
|
let t = [];
|
|
963
963
|
const s = F(Q(e), "parent", null);
|
|
964
964
|
Se(Q(e), "parent", null);
|
|
965
|
-
const o = [
|
|
966
|
-
|
|
967
|
-
let n =
|
|
968
|
-
return n = Se(n, "0.parent", s), t = [...t, n, ...
|
|
965
|
+
const o = [ts.convert(ns(e))];
|
|
966
|
+
ft(o, !0);
|
|
967
|
+
let n = mt(o, e[0]._id);
|
|
968
|
+
return n = Se(n, "0.parent", s), t = [...t, n, ...ss(n)], t;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
const t = te(
|
|
970
|
+
function os(e) {
|
|
971
|
+
const t = te(Xe, { _id: e._id });
|
|
972
972
|
if (!t)
|
|
973
973
|
return [];
|
|
974
|
-
const s = [t], o = M(
|
|
975
|
-
return o.length ? ne([...s, ...ne(R(o,
|
|
974
|
+
const s = [t], o = M(Xe, { _parent: e._id });
|
|
975
|
+
return o.length ? ne([...s, ...ne(R(o, os))]) : ne(s);
|
|
976
976
|
}
|
|
977
|
-
const
|
|
978
|
-
let
|
|
977
|
+
const ns = (e) => JSON.parse(JSON.stringify(e));
|
|
978
|
+
let Xe = [];
|
|
979
979
|
function Fo(e) {
|
|
980
|
-
|
|
981
|
-
const t = Vo(
|
|
982
|
-
|
|
983
|
-
const s =
|
|
980
|
+
Xe = e;
|
|
981
|
+
const t = Vo(ns(e));
|
|
982
|
+
ft(t);
|
|
983
|
+
const s = mt(t, null), o = ss(s), n = {};
|
|
984
984
|
return ue(o, (i) => Se(n, Q(i).blockId, i)), [s, n];
|
|
985
985
|
}
|
|
986
986
|
const Uo = () => {
|
|
@@ -999,16 +999,16 @@ const Uo = () => {
|
|
|
999
999
|
}, ke = (e, t = void 0) => {
|
|
1000
1000
|
const s = X(qt);
|
|
1001
1001
|
return F(s, e, t);
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
const Wo = () => D(
|
|
1005
|
-
|
|
1002
|
+
}, as = w([]);
|
|
1003
|
+
as.debugLabel = "dataProvidersAtom";
|
|
1004
|
+
const Wo = () => D(as), pt = w("SAVED");
|
|
1005
|
+
pt.debugLabel = "pageSyncStateAtom";
|
|
1006
1006
|
const Yr = () => {
|
|
1007
|
-
const [e, t] = D(
|
|
1007
|
+
const [e, t] = D(pt), s = ke("onSaveBlocks", async () => {
|
|
1008
1008
|
}), o = ke("onSavePage", async () => {
|
|
1009
1009
|
}), n = ke("onSyncStatusChange", () => {
|
|
1010
1010
|
}), i = Uo(), [r] = Wo();
|
|
1011
|
-
return { savePage:
|
|
1011
|
+
return { savePage: Us(
|
|
1012
1012
|
async () => {
|
|
1013
1013
|
t("SAVING"), n("SAVING");
|
|
1014
1014
|
const p = i();
|
|
@@ -1022,10 +1022,10 @@ const Yr = () => {
|
|
|
1022
1022
|
), syncState: e, setSyncState: t };
|
|
1023
1023
|
}, se = new Mo();
|
|
1024
1024
|
se.setLimit(50);
|
|
1025
|
-
const
|
|
1026
|
-
const [, e] = D(
|
|
1025
|
+
const rs = () => {
|
|
1026
|
+
const [, e] = D(pt);
|
|
1027
1027
|
return Ce(() => (se.setCallback(() => e("UNSAVED")), () => {
|
|
1028
|
-
se.setCallback(
|
|
1028
|
+
se.setCallback(zs);
|
|
1029
1029
|
}), []), {
|
|
1030
1030
|
add: se.add,
|
|
1031
1031
|
undo: se.undo,
|
|
@@ -1034,16 +1034,16 @@ const is = () => {
|
|
|
1034
1034
|
hasUndo: se.hasUndo,
|
|
1035
1035
|
clear: se.clear
|
|
1036
1036
|
};
|
|
1037
|
-
},
|
|
1037
|
+
}, gt = (e, t) => {
|
|
1038
1038
|
const s = [], o = M(e, (n) => q(t, n._id) || q(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1039
|
-
return ve(s) ? o :
|
|
1039
|
+
return ve(s) ? o : gt(o, s);
|
|
1040
1040
|
}, Qr = () => {
|
|
1041
1041
|
const [e] = we(), [t, s] = $e(), { setNewBlocks: o } = xe();
|
|
1042
1042
|
return L(
|
|
1043
1043
|
(n) => {
|
|
1044
1044
|
var r;
|
|
1045
1045
|
const i = ((r = te(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
|
|
1046
|
-
o(
|
|
1046
|
+
o(gt(e, n)), setTimeout(() => s(i ? [i] : []), 200);
|
|
1047
1047
|
},
|
|
1048
1048
|
[e, s, t]
|
|
1049
1049
|
);
|
|
@@ -1073,7 +1073,7 @@ const Ho = () => {
|
|
|
1073
1073
|
e((n) => Go(n, t, s, o));
|
|
1074
1074
|
},
|
|
1075
1075
|
removeBlocks: (t) => {
|
|
1076
|
-
e((s) =>
|
|
1076
|
+
e((s) => gt(s, t));
|
|
1077
1077
|
},
|
|
1078
1078
|
updateBlocksProps: (t) => {
|
|
1079
1079
|
e((s) => {
|
|
@@ -1089,7 +1089,7 @@ const Ho = () => {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
}, we = () => D(ie), xe = () => {
|
|
1092
|
-
const { add: e } =
|
|
1092
|
+
const { add: e } = rs(), [t] = we(), {
|
|
1093
1093
|
setNewBlocks: s,
|
|
1094
1094
|
addBlocks: o,
|
|
1095
1095
|
removeBlocks: n,
|
|
@@ -1115,7 +1115,7 @@ const Ho = () => {
|
|
|
1115
1115
|
if (k)
|
|
1116
1116
|
I = R(x, (O) => ({ _id: O, ...k }));
|
|
1117
1117
|
else {
|
|
1118
|
-
const O =
|
|
1118
|
+
const O = Vs(N);
|
|
1119
1119
|
I = R(x, (W) => {
|
|
1120
1120
|
const G = t.find(($) => $._id === W), H = { _id: W };
|
|
1121
1121
|
return ue(O, ($) => H[$] = G[$]), H;
|
|
@@ -1177,7 +1177,7 @@ const Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1177
1177
|
}
|
|
1178
1178
|
));
|
|
1179
1179
|
Jo.displayName = Ye.Root.displayName;
|
|
1180
|
-
const
|
|
1180
|
+
const bt = ge(
|
|
1181
1181
|
"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
1182
|
{
|
|
1183
1183
|
variants: {
|
|
@@ -1203,8 +1203,8 @@ const gt = ge(
|
|
|
1203
1203
|
}
|
|
1204
1204
|
), Yo = m.forwardRef(
|
|
1205
1205
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
|
|
1206
|
-
const r = o ?
|
|
1207
|
-
return /* @__PURE__ */ a.jsx(r, { className: d(
|
|
1206
|
+
const r = o ? Ws : "button";
|
|
1207
|
+
return /* @__PURE__ */ a.jsx(r, { className: d(bt({ variant: t, size: s, className: e })), ref: i, ...n });
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
1210
1210
|
Yo.displayName = "Button";
|
|
@@ -1221,7 +1221,7 @@ const Xo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1221
1221
|
...s,
|
|
1222
1222
|
children: [
|
|
1223
1223
|
t,
|
|
1224
|
-
/* @__PURE__ */ a.jsx(
|
|
1224
|
+
/* @__PURE__ */ a.jsx(Gs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
1225
1225
|
]
|
|
1226
1226
|
}
|
|
1227
1227
|
) }));
|
|
@@ -1277,9 +1277,9 @@ const nn = ge(
|
|
|
1277
1277
|
variant: "default"
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
), Zr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(nn({ variant: t }), e), ...s }), ei = U.Root, ti = U.Trigger,
|
|
1281
|
-
|
|
1282
|
-
const
|
|
1280
|
+
), Zr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(nn({ variant: t }), e), ...s }), ei = U.Root, ti = U.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(U.Portal, { className: d(e), ...t });
|
|
1281
|
+
is.displayName = U.Portal.displayName;
|
|
1282
|
+
const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1283
1283
|
U.Overlay,
|
|
1284
1284
|
{
|
|
1285
1285
|
className: d(
|
|
@@ -1290,9 +1290,9 @@ const cs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1290
1290
|
ref: s
|
|
1291
1291
|
}
|
|
1292
1292
|
));
|
|
1293
|
-
|
|
1294
|
-
const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(
|
|
1295
|
-
/* @__PURE__ */ a.jsx(
|
|
1293
|
+
ls.displayName = U.Overlay.displayName;
|
|
1294
|
+
const an = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
|
|
1295
|
+
/* @__PURE__ */ a.jsx(ls, {}),
|
|
1296
1296
|
/* @__PURE__ */ a.jsx(
|
|
1297
1297
|
U.Content,
|
|
1298
1298
|
{
|
|
@@ -1314,20 +1314,20 @@ const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.T
|
|
|
1314
1314
|
cn.displayName = U.Title.displayName;
|
|
1315
1315
|
const dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1316
1316
|
dn.displayName = U.Description.displayName;
|
|
1317
|
-
const un = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(
|
|
1317
|
+
const un = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Action, { ref: s, className: d(bt(), e), ...t }));
|
|
1318
1318
|
un.displayName = U.Action.displayName;
|
|
1319
1319
|
const mn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1320
1320
|
U.Cancel,
|
|
1321
1321
|
{
|
|
1322
1322
|
ref: s,
|
|
1323
|
-
className: d(
|
|
1323
|
+
className: d(bt({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
1324
1324
|
...t
|
|
1325
1325
|
}
|
|
1326
1326
|
));
|
|
1327
1327
|
mn.displayName = U.Cancel.displayName;
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1330
|
-
const
|
|
1328
|
+
const cs = _.Root, fn = _.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(_.Portal, { className: d(e), ...t });
|
|
1329
|
+
ds.displayName = _.Portal.displayName;
|
|
1330
|
+
const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1331
1331
|
_.Overlay,
|
|
1332
1332
|
{
|
|
1333
1333
|
ref: s,
|
|
@@ -1338,9 +1338,9 @@ const ms = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1338
1338
|
...t
|
|
1339
1339
|
}
|
|
1340
1340
|
));
|
|
1341
|
-
|
|
1342
|
-
const
|
|
1343
|
-
/* @__PURE__ */ a.jsx(
|
|
1341
|
+
us.displayName = _.Overlay.displayName;
|
|
1342
|
+
const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ds, { children: [
|
|
1343
|
+
/* @__PURE__ */ a.jsx(us, {}),
|
|
1344
1344
|
/* @__PURE__ */ a.jsxs(
|
|
1345
1345
|
_.Content,
|
|
1346
1346
|
{
|
|
@@ -1353,14 +1353,14 @@ const bt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1353
1353
|
children: [
|
|
1354
1354
|
t,
|
|
1355
1355
|
/* @__PURE__ */ a.jsxs(_.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
1356
|
-
/* @__PURE__ */ a.jsx(
|
|
1356
|
+
/* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
|
|
1357
1357
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1358
1358
|
] })
|
|
1359
1359
|
]
|
|
1360
1360
|
}
|
|
1361
1361
|
)
|
|
1362
1362
|
] }));
|
|
1363
|
-
|
|
1363
|
+
xt.displayName = _.Content.displayName;
|
|
1364
1364
|
const pn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
1365
1365
|
pn.displayName = "DialogHeader";
|
|
1366
1366
|
const gn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
@@ -1427,11 +1427,11 @@ const Cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1427
1427
|
Cn.displayName = "Textarea";
|
|
1428
1428
|
const Bn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(de.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
|
|
1429
1429
|
/* @__PURE__ */ a.jsx(de.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
1430
|
-
/* @__PURE__ */ a.jsx(
|
|
1430
|
+
/* @__PURE__ */ a.jsx(ms, {}),
|
|
1431
1431
|
/* @__PURE__ */ a.jsx(de.Corner, {})
|
|
1432
1432
|
] }));
|
|
1433
1433
|
Bn.displayName = de.Root.displayName;
|
|
1434
|
-
const
|
|
1434
|
+
const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1435
1435
|
de.ScrollAreaScrollbar,
|
|
1436
1436
|
{
|
|
1437
1437
|
ref: o,
|
|
@@ -1446,8 +1446,8 @@ const fs = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1446
1446
|
children: /* @__PURE__ */ a.jsx(de.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1447
1447
|
}
|
|
1448
1448
|
));
|
|
1449
|
-
|
|
1450
|
-
const _n = be.Root,
|
|
1449
|
+
ms.displayName = de.ScrollAreaScrollbar.displayName;
|
|
1450
|
+
const _n = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1451
1451
|
be.List,
|
|
1452
1452
|
{
|
|
1453
1453
|
ref: s,
|
|
@@ -1458,8 +1458,8 @@ const _n = be.Root, ps = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
|
|
|
1458
1458
|
...t
|
|
1459
1459
|
}
|
|
1460
1460
|
));
|
|
1461
|
-
|
|
1462
|
-
const
|
|
1461
|
+
fs.displayName = be.List.displayName;
|
|
1462
|
+
const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1463
1463
|
be.Trigger,
|
|
1464
1464
|
{
|
|
1465
1465
|
ref: s,
|
|
@@ -1470,8 +1470,8 @@ const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1470
1470
|
...t
|
|
1471
1471
|
}
|
|
1472
1472
|
));
|
|
1473
|
-
|
|
1474
|
-
const
|
|
1473
|
+
Ze.displayName = be.Trigger.displayName;
|
|
1474
|
+
const et = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1475
1475
|
be.Content,
|
|
1476
1476
|
{
|
|
1477
1477
|
ref: s,
|
|
@@ -1482,7 +1482,7 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1482
1482
|
...t
|
|
1483
1483
|
}
|
|
1484
1484
|
));
|
|
1485
|
-
|
|
1485
|
+
et.displayName = be.Content.displayName;
|
|
1486
1486
|
const si = ye.Portal, oi = ye.Provider, ni = ye.Root, ai = ye.Trigger, Rn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1487
1487
|
ye.Content,
|
|
1488
1488
|
{
|
|
@@ -1543,7 +1543,7 @@ const Mn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
|
|
|
1543
1543
|
...o,
|
|
1544
1544
|
children: [
|
|
1545
1545
|
s,
|
|
1546
|
-
/* @__PURE__ */ a.jsx(
|
|
1546
|
+
/* @__PURE__ */ a.jsx(ot, { className: "ml-auto h-4 w-4" })
|
|
1547
1547
|
]
|
|
1548
1548
|
}
|
|
1549
1549
|
));
|
|
@@ -1615,7 +1615,7 @@ const zn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1615
1615
|
),
|
|
1616
1616
|
...s,
|
|
1617
1617
|
children: [
|
|
1618
|
-
/* @__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(
|
|
1618
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(C.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1619
1619
|
t
|
|
1620
1620
|
]
|
|
1621
1621
|
}
|
|
@@ -1659,7 +1659,7 @@ const gi = z.Root, bi = z.Group, xi = z.Value, Wn = m.forwardRef(({ className: e
|
|
|
1659
1659
|
...s,
|
|
1660
1660
|
children: [
|
|
1661
1661
|
t,
|
|
1662
|
-
/* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1662
|
+
/* @__PURE__ */ a.jsx(z.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
|
|
1663
1663
|
]
|
|
1664
1664
|
}
|
|
1665
1665
|
));
|
|
@@ -1708,9 +1708,9 @@ const qn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1708
1708
|
qn.displayName = z.Item.displayName;
|
|
1709
1709
|
const Kn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(z.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1710
1710
|
Kn.displayName = z.Separator.displayName;
|
|
1711
|
-
const hi = _.Root, vi = _.Trigger, yi = _.Close,
|
|
1712
|
-
|
|
1713
|
-
const
|
|
1711
|
+
const hi = _.Root, vi = _.Trigger, yi = _.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(_.Portal, { className: d(e), ...t });
|
|
1712
|
+
ps.displayName = _.Portal.displayName;
|
|
1713
|
+
const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1714
1714
|
_.Overlay,
|
|
1715
1715
|
{
|
|
1716
1716
|
className: d(
|
|
@@ -1721,7 +1721,7 @@ const bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1721
1721
|
ref: s
|
|
1722
1722
|
}
|
|
1723
1723
|
));
|
|
1724
|
-
|
|
1724
|
+
gs.displayName = _.Overlay.displayName;
|
|
1725
1725
|
const Jn = ge(
|
|
1726
1726
|
"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
1727
|
{
|
|
@@ -1738,12 +1738,12 @@ const Jn = ge(
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
), Yn = m.forwardRef(
|
|
1741
|
-
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1742
|
-
/* @__PURE__ */ a.jsx(
|
|
1741
|
+
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(ps, { children: [
|
|
1742
|
+
/* @__PURE__ */ a.jsx(gs, {}),
|
|
1743
1743
|
/* @__PURE__ */ a.jsxs(_.Content, { ref: n, className: d(Jn({ side: e }), t), ...o, children: [
|
|
1744
1744
|
s,
|
|
1745
1745
|
/* @__PURE__ */ a.jsxs(_.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
1746
|
-
/* @__PURE__ */ a.jsx(
|
|
1746
|
+
/* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
|
|
1747
1747
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1748
1748
|
] })
|
|
1749
1749
|
] })
|
|
@@ -1770,7 +1770,7 @@ const wi = T.Root, Ni = T.Trigger, ki = T.Group, ji = T.Portal, Si = T.Sub, Ai =
|
|
|
1770
1770
|
...o,
|
|
1771
1771
|
children: [
|
|
1772
1772
|
s,
|
|
1773
|
-
/* @__PURE__ */ a.jsx(
|
|
1773
|
+
/* @__PURE__ */ a.jsx(ot, { className: "ml-auto h-4 w-4" })
|
|
1774
1774
|
]
|
|
1775
1775
|
}
|
|
1776
1776
|
));
|
|
@@ -1841,7 +1841,7 @@ const ra = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1841
1841
|
),
|
|
1842
1842
|
...s,
|
|
1843
1843
|
children: [
|
|
1844
|
-
/* @__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(
|
|
1844
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1845
1845
|
t
|
|
1846
1846
|
]
|
|
1847
1847
|
}
|
|
@@ -1949,7 +1949,7 @@ function ga({ ...e }) {
|
|
|
1949
1949
|
update: s
|
|
1950
1950
|
};
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function bs() {
|
|
1953
1953
|
const [e, t] = m.useState(De);
|
|
1954
1954
|
return m.useEffect(() => (Me.push(t), () => {
|
|
1955
1955
|
const s = Me.indexOf(t);
|
|
@@ -1960,7 +1960,7 @@ function xs() {
|
|
|
1960
1960
|
dismiss: (s) => je({ type: "DISMISS_TOAST", toastId: s })
|
|
1961
1961
|
};
|
|
1962
1962
|
}
|
|
1963
|
-
const ba = Y.Provider,
|
|
1963
|
+
const ba = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1964
1964
|
Y.Viewport,
|
|
1965
1965
|
{
|
|
1966
1966
|
ref: s,
|
|
@@ -1971,7 +1971,7 @@ const ba = Y.Provider, hs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
1971
1971
|
...t
|
|
1972
1972
|
}
|
|
1973
1973
|
));
|
|
1974
|
-
|
|
1974
|
+
xs.displayName = Y.Viewport.displayName;
|
|
1975
1975
|
const xa = ge(
|
|
1976
1976
|
"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
1977
|
{
|
|
@@ -1985,8 +1985,8 @@ const xa = ge(
|
|
|
1985
1985
|
variant: "default"
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
),
|
|
1989
|
-
|
|
1988
|
+
), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(Y.Root, { ref: o, className: d(xa({ variant: t }), e), ...s }));
|
|
1989
|
+
hs.displayName = Y.Root.displayName;
|
|
1990
1990
|
const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1991
1991
|
Y.Action,
|
|
1992
1992
|
{
|
|
@@ -1999,7 +1999,7 @@ const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1999
1999
|
}
|
|
2000
2000
|
));
|
|
2001
2001
|
ha.displayName = Y.Action.displayName;
|
|
2002
|
-
const
|
|
2002
|
+
const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2003
2003
|
Y.Close,
|
|
2004
2004
|
{
|
|
2005
2005
|
ref: s,
|
|
@@ -2009,29 +2009,29 @@ const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2009
2009
|
),
|
|
2010
2010
|
"toast-close": "",
|
|
2011
2011
|
...t,
|
|
2012
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2012
|
+
children: /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" })
|
|
2013
2013
|
}
|
|
2014
2014
|
));
|
|
2015
|
-
|
|
2016
|
-
const
|
|
2017
|
-
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2015
|
+
vs.displayName = Y.Close.displayName;
|
|
2016
|
+
const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
2017
|
+
ys.displayName = Y.Title.displayName;
|
|
2018
|
+
const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Y.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
|
|
2019
|
+
ws.displayName = Y.Description.displayName;
|
|
2020
2020
|
function Ci() {
|
|
2021
|
-
const { toasts: e } =
|
|
2021
|
+
const { toasts: e } = bs();
|
|
2022
2022
|
return /* @__PURE__ */ a.jsxs(ba, { children: [
|
|
2023
|
-
e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(
|
|
2023
|
+
e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(hs, { ...i, children: [
|
|
2024
2024
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
|
|
2025
|
-
s && /* @__PURE__ */ a.jsx(
|
|
2026
|
-
o && /* @__PURE__ */ a.jsx(
|
|
2025
|
+
s && /* @__PURE__ */ a.jsx(ys, { children: s }),
|
|
2026
|
+
o && /* @__PURE__ */ a.jsx(ws, { children: o })
|
|
2027
2027
|
] }),
|
|
2028
2028
|
n,
|
|
2029
|
-
/* @__PURE__ */ a.jsx(
|
|
2029
|
+
/* @__PURE__ */ a.jsx(vs, {})
|
|
2030
2030
|
] }, t)),
|
|
2031
|
-
/* @__PURE__ */ a.jsx(
|
|
2031
|
+
/* @__PURE__ */ a.jsx(xs, {})
|
|
2032
2032
|
] });
|
|
2033
2033
|
}
|
|
2034
|
-
const Bi = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }),
|
|
2034
|
+
const Bi = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2035
2035
|
K,
|
|
2036
2036
|
{
|
|
2037
2037
|
ref: s,
|
|
@@ -2042,9 +2042,9 @@ const Bi = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2042
2042
|
...t
|
|
2043
2043
|
}
|
|
2044
2044
|
));
|
|
2045
|
-
|
|
2046
|
-
const _i = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(
|
|
2047
|
-
/* @__PURE__ */ a.jsx(
|
|
2045
|
+
Ns.displayName = K.displayName;
|
|
2046
|
+
const _i = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ns, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2047
|
+
/* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2048
2048
|
/* @__PURE__ */ a.jsx(
|
|
2049
2049
|
K.Input,
|
|
2050
2050
|
{
|
|
@@ -2109,7 +2109,7 @@ const Ri = P.Root, Ti = P.Trigger, Pi = P.Group, Ii = P.Portal, Mi = P.Sub, Di =
|
|
|
2109
2109
|
...o,
|
|
2110
2110
|
children: [
|
|
2111
2111
|
s,
|
|
2112
|
-
/* @__PURE__ */ a.jsx(
|
|
2112
|
+
/* @__PURE__ */ a.jsx(ot, { className: "ml-auto h-4 w-4" })
|
|
2113
2113
|
]
|
|
2114
2114
|
}
|
|
2115
2115
|
));
|
|
@@ -2178,7 +2178,7 @@ const Ta = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2178
2178
|
),
|
|
2179
2179
|
...s,
|
|
2180
2180
|
children: [
|
|
2181
|
-
/* @__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(
|
|
2181
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2182
2182
|
t
|
|
2183
2183
|
]
|
|
2184
2184
|
}
|
|
@@ -2200,7 +2200,7 @@ Ma.displayName = "ContextMenuShortcut";
|
|
|
2200
2200
|
const Da = (e) => {
|
|
2201
2201
|
try {
|
|
2202
2202
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2203
|
-
|
|
2203
|
+
Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
2204
2204
|
let o = s.innerHTML;
|
|
2205
2205
|
setTimeout(() => t.removeChild(s), 100);
|
|
2206
2206
|
const i = new DOMParser().parseFromString(o, "image/svg+xml"), r = i.querySelector("svg");
|
|
@@ -2226,7 +2226,7 @@ const Da = (e) => {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
),
|
|
2228
2228
|
/* @__PURE__ */ a.jsx(
|
|
2229
|
-
|
|
2229
|
+
Ks,
|
|
2230
2230
|
{
|
|
2231
2231
|
value: e ? "BiSolidGrid" : null,
|
|
2232
2232
|
onChange: s,
|
|
@@ -2262,7 +2262,7 @@ const Da = (e) => {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
)
|
|
2264
2264
|
] });
|
|
2265
|
-
}, Ea =
|
|
2265
|
+
}, Ea = tt.lazy(() => import("./UnsplashImages-ppQXZ28F.js")), Oa = tt.lazy(() => import("./UploadImages-IKR4oX2k.js")), ks = ({
|
|
2266
2266
|
isModalView: e = !1,
|
|
2267
2267
|
onSelect: t = () => {
|
|
2268
2268
|
}
|
|
@@ -2271,23 +2271,23 @@ const Da = (e) => {
|
|
|
2271
2271
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
2272
2272
|
/* @__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
2273
|
/* @__PURE__ */ a.jsxs(_n, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
|
|
2274
|
-
/* @__PURE__ */ a.jsxs(
|
|
2275
|
-
/* @__PURE__ */ a.jsx(
|
|
2276
|
-
/* @__PURE__ */ a.jsx(
|
|
2274
|
+
/* @__PURE__ */ a.jsxs(fs, { className: "w-full", children: [
|
|
2275
|
+
/* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "w-1/2", children: "Upload" }),
|
|
2276
|
+
/* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
|
|
2277
2277
|
] }),
|
|
2278
|
-
s === "unsplash" ? /* @__PURE__ */ a.jsx(
|
|
2278
|
+
s === "unsplash" ? /* @__PURE__ */ a.jsx(et, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ea, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(et, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Oa, { isModalView: e, onSelect: t }) }) })
|
|
2279
2279
|
] })
|
|
2280
2280
|
] });
|
|
2281
2281
|
}, Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2282
2282
|
__proto__: null,
|
|
2283
|
-
default:
|
|
2283
|
+
default: ks
|
|
2284
2284
|
}, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
|
|
2285
2285
|
const [s, o] = Be(!1), n = (...i) => {
|
|
2286
2286
|
t.call(void 0, ...i), o(!1);
|
|
2287
2287
|
};
|
|
2288
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2288
|
+
return /* @__PURE__ */ a.jsxs(cs, { open: s, onOpenChange: (i) => o(i), children: [
|
|
2289
2289
|
/* @__PURE__ */ a.jsx(fn, { asChild: !0, children: e }),
|
|
2290
|
-
/* @__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(ks, { isModalView: !0, onSelect: n }) }) })
|
|
2291
2291
|
] });
|
|
2292
2292
|
}, Li = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
2293
2293
|
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" }) }),
|
|
@@ -2330,7 +2330,7 @@ const Da = (e) => {
|
|
|
2330
2330
|
"image"
|
|
2331
2331
|
];
|
|
2332
2332
|
return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
|
|
2333
|
-
|
|
2333
|
+
Qs,
|
|
2334
2334
|
{
|
|
2335
2335
|
id: e,
|
|
2336
2336
|
value: s,
|
|
@@ -2396,7 +2396,7 @@ const Da = (e) => {
|
|
|
2396
2396
|
] })
|
|
2397
2397
|
] });
|
|
2398
2398
|
}, $i = () => {
|
|
2399
|
-
const [e] = we(), [, t] = $e(), { addBlocks: s } = xe(), { toast: o } =
|
|
2399
|
+
const [e] = we(), [, t] = $e(), { addBlocks: s } = xe(), { toast: o } = bs(), n = L(
|
|
2400
2400
|
(r, c, p) => {
|
|
2401
2401
|
var k;
|
|
2402
2402
|
for (let I = 0; I < r.length; I++) {
|
|
@@ -2408,7 +2408,7 @@ const Da = (e) => {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
const l = Q(r);
|
|
2410
2410
|
let f, x;
|
|
2411
|
-
return c && (f = te(e, { _id: c }), r[0]._parent = c, x = c), !(f ?
|
|
2411
|
+
return c && (f = te(e, { _id: c }), r[0]._parent = c, x = c), !(f ? Qe(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
2412
|
},
|
|
2413
2413
|
[e, t]
|
|
2414
2414
|
);
|
|
@@ -2418,7 +2418,7 @@ const Da = (e) => {
|
|
|
2418
2418
|
const G = r.blocks;
|
|
2419
2419
|
return n(G, c, p);
|
|
2420
2420
|
}
|
|
2421
|
-
const l = ce(), f =
|
|
2421
|
+
const l = ce(), f = es(r.props), x = [];
|
|
2422
2422
|
Lt(f, (G, H) => {
|
|
2423
2423
|
if (zt(G, Ke)) {
|
|
2424
2424
|
const $ = G.replace(Ke, "");
|
|
@@ -2438,7 +2438,7 @@ const Da = (e) => {
|
|
|
2438
2438
|
...f
|
|
2439
2439
|
};
|
|
2440
2440
|
let k, I;
|
|
2441
|
-
if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !
|
|
2441
|
+
if (c && (k = te(e, { _id: c }), N._parent = c, I = c), !wo(k == null ? void 0 : k._type, r.type)) {
|
|
2442
2442
|
o({
|
|
2443
2443
|
variant: "destructive",
|
|
2444
2444
|
title: "Error",
|
|
@@ -2446,7 +2446,7 @@ const Da = (e) => {
|
|
|
2446
2446
|
}), t([]);
|
|
2447
2447
|
return;
|
|
2448
2448
|
}
|
|
2449
|
-
!(k ?
|
|
2449
|
+
!(k ? Qe(k._type, r.type) : !0) && k && (N._parent = k._parent, I = k._parent);
|
|
2450
2450
|
const W = [N, ...x];
|
|
2451
2451
|
return s(W, I, p), t([N._id]), N;
|
|
2452
2452
|
},
|
|
@@ -2493,12 +2493,12 @@ function za(e = "", t = "", s = []) {
|
|
|
2493
2493
|
);
|
|
2494
2494
|
const i = [], r = [];
|
|
2495
2495
|
ue(s, (l) => {
|
|
2496
|
-
const f = Ie(l), x = te(o,
|
|
2496
|
+
const f = Ie(l), x = te(o, yt(f, ["dark", "mq", "mod", "property"]));
|
|
2497
2497
|
if (x && (o = M(
|
|
2498
2498
|
o,
|
|
2499
2499
|
(N) => N.fullCls !== (x == null ? void 0 : x.fullCls)
|
|
2500
2500
|
)), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = M(n, (N) => N.property !== f.property)), La(o, f) === "baseClasses" && !q(Mt, f.property)) {
|
|
2501
|
-
const N = te(n,
|
|
2501
|
+
const N = te(n, yt(f, ["property"]));
|
|
2502
2502
|
x && (n = M(
|
|
2503
2503
|
n,
|
|
2504
2504
|
(k) => k.fullCls !== (N == null ? void 0 : N.fullCls)
|
|
@@ -2510,11 +2510,11 @@ function za(e = "", t = "", s = []) {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
});
|
|
2512
2512
|
const c = R(
|
|
2513
|
-
|
|
2513
|
+
wt([...o, ...i], (l) => Pt[l.mq]),
|
|
2514
2514
|
"fullCls"
|
|
2515
2515
|
).join(" ");
|
|
2516
2516
|
return `${R(
|
|
2517
|
-
|
|
2517
|
+
wt([...n, ...r], (l) => Pt[l.mq]),
|
|
2518
2518
|
"fullCls"
|
|
2519
2519
|
).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
|
|
2520
2520
|
}
|
|
@@ -2525,7 +2525,7 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2525
2525
|
return { baseClasses: t[0], classes: t[1] };
|
|
2526
2526
|
}, Fa = w(null, (e, t, { blockIds: s, newClasses: o }) => {
|
|
2527
2527
|
const n = M(
|
|
2528
|
-
e(
|
|
2528
|
+
e(rt),
|
|
2529
2529
|
(r) => (
|
|
2530
2530
|
// @ts-ignore
|
|
2531
2531
|
s.includes(e(r)._id)
|
|
@@ -2551,32 +2551,32 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2551
2551
|
},
|
|
2552
2552
|
[e]
|
|
2553
2553
|
);
|
|
2554
|
-
}, Ua = () => D(
|
|
2555
|
-
const t = e(
|
|
2556
|
-
return
|
|
2554
|
+
}, Ua = () => D(Zt), js = Re("canvasWidth", 800), Ss = w((e) => {
|
|
2555
|
+
const t = e(js);
|
|
2556
|
+
return $s(t).toLowerCase();
|
|
2557
2557
|
}), Ui = () => {
|
|
2558
|
-
const [e, t] = D(
|
|
2558
|
+
const [e, t] = D(js), s = X(Ss), [o, n] = Ua();
|
|
2559
2559
|
return Ce(() => {
|
|
2560
2560
|
o !== "xs" && n(s);
|
|
2561
2561
|
}, [s, o, n]), [e, s, t];
|
|
2562
|
-
}, Wa = Re("canvasZoom", 100), Wi = () => D(Wa),
|
|
2563
|
-
const [e, t] = D(
|
|
2562
|
+
}, Wa = Re("canvasZoom", 100), Wi = () => D(Wa), As = w([]), Ga = () => {
|
|
2563
|
+
const [e, t] = D(As), s = _e(ht), o = L(
|
|
2564
2564
|
(n) => {
|
|
2565
2565
|
t(n), s([]);
|
|
2566
2566
|
},
|
|
2567
2567
|
[t, s]
|
|
2568
2568
|
);
|
|
2569
2569
|
return [e, o];
|
|
2570
|
-
},
|
|
2571
|
-
const [e, t] = D(
|
|
2570
|
+
}, ht = w([]), Gi = () => {
|
|
2571
|
+
const [e, t] = D(ht), s = _e(As), o = L(
|
|
2572
2572
|
(n) => {
|
|
2573
2573
|
t(n), s([]);
|
|
2574
2574
|
},
|
|
2575
2575
|
[t, s]
|
|
2576
2576
|
);
|
|
2577
2577
|
return [e, o];
|
|
2578
|
-
},
|
|
2579
|
-
const [e, t] = D(
|
|
2578
|
+
}, Cs = Re("darkMode", !1), Hi = () => {
|
|
2579
|
+
const [e, t] = D(Cs);
|
|
2580
2580
|
return [e, t];
|
|
2581
2581
|
}, Ha = () => {
|
|
2582
2582
|
const [e] = we(), [, t] = $e(), { addBlocks: s } = xe();
|
|
@@ -2614,9 +2614,9 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2614
2614
|
);
|
|
2615
2615
|
}, Ki = () => {
|
|
2616
2616
|
console.warn("usePasteBlocks is not implemented");
|
|
2617
|
-
const e = X(
|
|
2617
|
+
const e = X(ht), [t, s] = Ga(), o = Ha(), n = Ya();
|
|
2618
2618
|
return {
|
|
2619
|
-
canPaste:
|
|
2619
|
+
canPaste: Os(
|
|
2620
2620
|
() => t.length > 0 || e.length > 0,
|
|
2621
2621
|
[e, t]
|
|
2622
2622
|
),
|
|
@@ -2632,7 +2632,7 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2632
2632
|
return [e, t];
|
|
2633
2633
|
}, Xa = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
|
|
2634
2634
|
const n = Q(e(Te)), i = M(
|
|
2635
|
-
e(
|
|
2635
|
+
e(rt),
|
|
2636
2636
|
(r) => (
|
|
2637
2637
|
// @ts-ignore
|
|
2638
2638
|
s.includes(e(r)._id)
|
|
@@ -2640,7 +2640,7 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2640
2640
|
);
|
|
2641
2641
|
return R(i, (r) => {
|
|
2642
2642
|
const c = e(r), p = o;
|
|
2643
|
-
let { classes: l, baseClasses: f } =
|
|
2643
|
+
let { classes: l, baseClasses: f } = yo(F(c, n.prop, "styles:,"));
|
|
2644
2644
|
return ue(p, (x) => {
|
|
2645
2645
|
const N = new RegExp(`(^| )${x.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
2646
2646
|
l = l.replace(N, " ").replace(/ +/g, " ").trim();
|
|
@@ -2665,15 +2665,15 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2665
2665
|
},
|
|
2666
2666
|
[t]
|
|
2667
2667
|
);
|
|
2668
|
-
},
|
|
2669
|
-
const t = Q(e(Te)), s = e(
|
|
2668
|
+
}, Bs = w((e) => {
|
|
2669
|
+
const t = Q(e(Te)), s = e(ct);
|
|
2670
2670
|
if (!t || t.blockId !== F(s, "_id", null))
|
|
2671
2671
|
return [];
|
|
2672
2672
|
const n = F(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
|
|
2673
2673
|
return M(R(n.trim().split(" "), Ie), (i) => !qe(i));
|
|
2674
|
-
}), Qi = () => X(
|
|
2675
|
-
const t = e(
|
|
2676
|
-
let i = M(e(
|
|
2674
|
+
}), Qi = () => X(Bs), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Za = w((e) => {
|
|
2675
|
+
const t = e(Ss), s = e(dt), o = e(Cs), n = er(t);
|
|
2676
|
+
let i = M(e(Bs), { mod: s });
|
|
2677
2677
|
return zt(s, "_") || (i = M(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = M(i, { dark: !1 })), i;
|
|
2678
2678
|
}), er = (e) => {
|
|
2679
2679
|
let t = [];
|
|
@@ -2701,7 +2701,7 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2701
2701
|
break;
|
|
2702
2702
|
}
|
|
2703
2703
|
return t;
|
|
2704
|
-
}, Xi = () => X(Za), Zi = () => D(
|
|
2704
|
+
}, Xi = () => X(Za), Zi = () => D(dt), el = () => {
|
|
2705
2705
|
const { updateBlocks: e } = xe();
|
|
2706
2706
|
return L(
|
|
2707
2707
|
(t, s, o) => {
|
|
@@ -2717,12 +2717,12 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2717
2717
|
},
|
|
2718
2718
|
[e]
|
|
2719
2719
|
);
|
|
2720
|
-
},
|
|
2720
|
+
}, _s = {
|
|
2721
2721
|
name: "",
|
|
2722
2722
|
props: {},
|
|
2723
2723
|
modalProps: {},
|
|
2724
2724
|
backdropClose: !0
|
|
2725
|
-
}, tr = w(
|
|
2725
|
+
}, tr = w(_s), sl = () => {
|
|
2726
2726
|
const [e, t] = D(tr), s = L(
|
|
2727
2727
|
(n, i = {}, r = {}) => {
|
|
2728
2728
|
t({ name: n, props: i, modalProps: r });
|
|
@@ -2731,7 +2731,7 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2731
2731
|
), o = L(
|
|
2732
2732
|
(...n) => {
|
|
2733
2733
|
F(e, "props.onClose", () => {
|
|
2734
|
-
})(...n), t(
|
|
2734
|
+
})(...n), t(_s);
|
|
2735
2735
|
},
|
|
2736
2736
|
[t, e]
|
|
2737
2737
|
);
|
|
@@ -2740,8 +2740,8 @@ const Va = () => D(Te), $a = (e) => {
|
|
|
2740
2740
|
openModal: s,
|
|
2741
2741
|
closeModal: o
|
|
2742
2742
|
};
|
|
2743
|
-
}, ol = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(ie)),
|
|
2744
|
-
|
|
2743
|
+
}, ol = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), X(ie)), Rs = w(!1);
|
|
2744
|
+
Rs.debugLabel = "readOnlyModeAtom";
|
|
2745
2745
|
const sr = w(!1);
|
|
2746
2746
|
sr.debugLabel = "advanceStylingOpenAtom";
|
|
2747
2747
|
const or = w("online");
|
|
@@ -2760,19 +2760,19 @@ const cr = w("layers");
|
|
|
2760
2760
|
cr.debugLabel = "activePanelAtom";
|
|
2761
2761
|
const dr = w("");
|
|
2762
2762
|
dr.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
2763
|
-
const
|
|
2764
|
-
|
|
2763
|
+
const Ts = w({ undoCount: 0, redoCount: 0 });
|
|
2764
|
+
Ts.debugLabel = "historyStatesAtom";
|
|
2765
2765
|
const ur = w("");
|
|
2766
2766
|
ur.debugLabel = "inlineEditingActiveAtom";
|
|
2767
2767
|
const mr = w(!1);
|
|
2768
2768
|
mr.debugLabel = "draggingFlagAtom";
|
|
2769
2769
|
const fr = w("");
|
|
2770
2770
|
fr.debugLabel = "draggedBlockIdAtom";
|
|
2771
|
-
const nl = () => X(
|
|
2771
|
+
const nl = () => X(Rs), pr = w(""), gr = w(null), al = () => D(pr), rl = () => D(gr), br = Re("selectedBreakpoints", ["XS", "MD", "XL"]), il = () => {
|
|
2772
2772
|
const [e, t] = D(br);
|
|
2773
2773
|
return [e, t];
|
|
2774
2774
|
}, ll = () => {
|
|
2775
|
-
const e = _e(
|
|
2775
|
+
const e = _e(Ts), { clear: t } = rs(), [, s] = $e(), [, o] = Ja(), [, n] = Va();
|
|
2776
2776
|
return () => {
|
|
2777
2777
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
2778
2778
|
};
|
|
@@ -2856,7 +2856,7 @@ export {
|
|
|
2856
2856
|
ri as aT,
|
|
2857
2857
|
ii as aU,
|
|
2858
2858
|
Tn as aV,
|
|
2859
|
-
|
|
2859
|
+
Ns as aW,
|
|
2860
2860
|
va as aX,
|
|
2861
2861
|
ya as aY,
|
|
2862
2862
|
wa as aZ,
|
|
@@ -2864,8 +2864,8 @@ export {
|
|
|
2864
2864
|
rl as aa,
|
|
2865
2865
|
il as ab,
|
|
2866
2866
|
Va as ac,
|
|
2867
|
-
|
|
2868
|
-
|
|
2867
|
+
cs as ad,
|
|
2868
|
+
xt as ae,
|
|
2869
2869
|
pn as af,
|
|
2870
2870
|
bn as ag,
|
|
2871
2871
|
xn as ah,
|
|
@@ -2877,9 +2877,9 @@ export {
|
|
|
2877
2877
|
qn as an,
|
|
2878
2878
|
cr as ao,
|
|
2879
2879
|
_n as ap,
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2880
|
+
fs as aq,
|
|
2881
|
+
Ze as ar,
|
|
2882
|
+
et as as,
|
|
2883
2883
|
bi as at,
|
|
2884
2884
|
Hn as au,
|
|
2885
2885
|
ni as av,
|
|
@@ -2901,7 +2901,7 @@ export {
|
|
|
2901
2901
|
Qo as b9,
|
|
2902
2902
|
nn as bA,
|
|
2903
2903
|
yn as bB,
|
|
2904
|
-
|
|
2904
|
+
ms as bC,
|
|
2905
2905
|
Pn as bD,
|
|
2906
2906
|
li as bE,
|
|
2907
2907
|
In as bF,
|
|
@@ -2949,10 +2949,10 @@ export {
|
|
|
2949
2949
|
Gr as bu,
|
|
2950
2950
|
Ko as bv,
|
|
2951
2951
|
qo as bw,
|
|
2952
|
-
|
|
2952
|
+
bt as bx,
|
|
2953
2953
|
on as by,
|
|
2954
2954
|
Zr as bz,
|
|
2955
|
-
|
|
2955
|
+
so as c,
|
|
2956
2956
|
na as c0,
|
|
2957
2957
|
ra as c1,
|
|
2958
2958
|
ca as c2,
|
|
@@ -2963,7 +2963,7 @@ export {
|
|
|
2963
2963
|
ta as c7,
|
|
2964
2964
|
Ai as c8,
|
|
2965
2965
|
pa as c9,
|
|
2966
|
-
|
|
2966
|
+
bs as ca,
|
|
2967
2967
|
ga as cb,
|
|
2968
2968
|
_i as cc,
|
|
2969
2969
|
Sa as cd,
|
|
@@ -2980,8 +2980,8 @@ export {
|
|
|
2980
2980
|
Aa as co,
|
|
2981
2981
|
Di as cp,
|
|
2982
2982
|
Oi as cq,
|
|
2983
|
-
|
|
2984
|
-
|
|
2983
|
+
co as d,
|
|
2984
|
+
lo as e,
|
|
2985
2985
|
Re as f,
|
|
2986
2986
|
$r as g,
|
|
2987
2987
|
Ji as h,
|
|
@@ -2989,18 +2989,18 @@ export {
|
|
|
2989
2989
|
$e as j,
|
|
2990
2990
|
Qr as k,
|
|
2991
2991
|
Ha as l,
|
|
2992
|
-
|
|
2993
|
-
|
|
2992
|
+
rs as m,
|
|
2993
|
+
vo as n,
|
|
2994
2994
|
Wo as o,
|
|
2995
2995
|
ie as p,
|
|
2996
|
-
|
|
2996
|
+
pt as q,
|
|
2997
2997
|
Fr as r,
|
|
2998
2998
|
we as s,
|
|
2999
2999
|
Oo as t,
|
|
3000
3000
|
Gt as u,
|
|
3001
3001
|
ll as v,
|
|
3002
3002
|
qt as w,
|
|
3003
|
-
|
|
3003
|
+
as as x,
|
|
3004
3004
|
Ci as y,
|
|
3005
3005
|
ti as z
|
|
3006
3006
|
};
|