@chaibuilder/sdk 1.2.26 → 1.2.28
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-l1JENNvq.js → AddBlocks-0sW6gkCO.js} +5 -5
- package/dist/AddBlocks-YJPdSqcY.cjs +1 -0
- package/dist/{BrandingOptions-udtH5yJs.js → BrandingOptions--vgnQvD1.js} +8 -8
- package/dist/{BrandingOptions-DkpqGARR.cjs → BrandingOptions-RDn_Nhcq.cjs} +1 -1
- package/dist/CanvasArea-41QoxuLf.cjs +55 -0
- package/dist/CanvasArea-aii0PyU-.js +1179 -0
- package/dist/{Class-lGzsNBOK.js → Class-6Hz2KzYb.js} +1 -1
- package/dist/{Class-PoYusiA5.cjs → Class-Zc8hpE7f.cjs} +1 -1
- package/dist/{CurrentPage-tJUjXWdb.js → CurrentPage-06Iacwyp.js} +6 -6
- package/dist/{CurrentPage-Hl52iub_.cjs → CurrentPage-2W1pdAOG.cjs} +1 -1
- package/dist/ListTree-DnA8gj-7.js +314 -0
- package/dist/ListTree-pdQ14QJC.cjs +1 -0
- package/dist/MODIFIERS-YPHRtwrM.cjs +1 -0
- package/dist/{MODIFIERS-dytZ-osO.js → MODIFIERS-cBT31iqE.js} +3 -11
- package/dist/{PagesPanel-WzCocl6u.cjs → PagesPanel-PBFzPSNY.cjs} +1 -1
- package/dist/{PagesPanel-6rrLXEO-.js → PagesPanel-_1CDTUdE.js} +7 -7
- package/dist/{ProjectPanel-o7gdcwPn.cjs → ProjectPanel-755bbzEQ.cjs} +1 -1
- package/dist/{ProjectPanel-tz3bjdXy.js → ProjectPanel-pUMeIiUW.js} +7 -7
- package/dist/Settings-G9Xtqr7n.cjs +1 -0
- package/dist/{Settings-4s2LUVmC.js → Settings-dnO-s6x0.js} +596 -560
- package/dist/{SidePanels-3o6Okmvu.cjs → SidePanels-Gq2LdVuY.cjs} +1 -1
- package/dist/{SidePanels-bugFfInz.js → SidePanels-VxSXXkt_.js} +56 -56
- package/dist/{Topbar-pWzBEOed.js → Topbar-5zbOSGF6.js} +3 -3
- package/dist/{Topbar-CqW7G360.cjs → Topbar-J2tb4SA1.cjs} +1 -1
- package/dist/{UnsplashImages-qvwFbV-E.js → UnsplashImages-4WAWgA4s.js} +9 -9
- package/dist/{UnsplashImages-NGskB93R.cjs → UnsplashImages-XwjKheek.cjs} +1 -1
- package/dist/{UploadImages-9NapgXBq.js → UploadImages-PONIHtn6.js} +3 -3
- package/dist/{UploadImages-Oh7Glr9A.cjs → UploadImages-y7LAQVrT.cjs} +1 -1
- package/dist/{add-page-modal-k2Kb92HS.js → add-page-modal-4VrFvgEm.js} +7 -7
- package/dist/{add-page-modal--6TTBRYa.cjs → add-page-modal-jWcp0w-S.cjs} +1 -1
- package/dist/{confirm-alert-C4M9eF-o.cjs → confirm-alert-4OQlXZTJ.cjs} +1 -1
- package/dist/{confirm-alert-GUhZ_G8w.js → confirm-alert-j7b88hsW.js} +3 -3
- package/dist/core.cjs +1 -1
- package/dist/core.js +4 -4
- package/dist/{delete-page-modal-zONvdebd.js → delete-page-modal--xHHdRAq.js} +6 -6
- package/dist/{delete-page-modal-cFoL-wdo.cjs → delete-page-modal-p6b0upz4.cjs} +1 -1
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +1 -1
- package/dist/email.cjs +1 -1
- package/dist/email.js +4 -4
- package/dist/{form-STUz-6nE.js → form-_GJb9YcB.js} +1 -1
- package/dist/{form-lBQ_76Uw.cjs → form-jQj7E-hS.cjs} +1 -1
- package/dist/html-to-json-LJyJsnmZ.js +228 -0
- package/dist/html-to-json-vP1ESB_e.cjs +1 -0
- package/dist/{index-SkyM3d6Q.js → index-0QJwevON.js} +2 -2
- package/dist/index-12HbDLon.cjs +1 -0
- package/dist/{index-llTXLDGE.js → index-Eb5zyh2F.js} +4 -4
- package/dist/{index-mbyqq81O.cjs → index-KArv7pNz.cjs} +1 -1
- package/dist/{index-Gk6sASBd.js → index-UHaqEdws.js} +993 -957
- package/dist/{index-OB199Izc.cjs → index-mlMvwv2b.cjs} +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +4 -4
- package/dist/{page-viewer-Pdg9F5Hv.js → page-viewer-00Xx4u8e.js} +7 -7
- package/dist/{page-viewer-2kwnKM6v.cjs → page-viewer-SZNm7b1n.cjs} +1 -1
- package/dist/{project-general-setting-CnNL98NM.cjs → project-general-setting-C_pHNuZE.cjs} +1 -1
- package/dist/{project-general-setting-f8Ebsn6K.js → project-general-setting-asDxlmhZ.js} +7 -7
- package/dist/{project-seo-setting-pX34Qsym.js → project-seo-setting-DuAaDfDR.js} +4 -4
- package/dist/{project-seo-setting-mlxL_e2_.cjs → project-seo-setting-q2953ybQ.cjs} +1 -1
- package/dist/render.cjs +1 -1
- package/dist/render.js +1 -1
- package/dist/{single-page-detail-dpe5LT0M.js → single-page-detail-UNxXvhl4.js} +14 -14
- package/dist/{single-page-detail-XfzrGlzA.cjs → single-page-detail-oqj6zsLU.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +6 -6
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +9 -9
- package/dist/useCanvasSettings-MR0Glu1b.cjs +1 -0
- package/dist/useCanvasSettings-R6br4J9i.js +6 -0
- package/dist/web-blocks.cjs +33 -6
- package/dist/web-blocks.js +461 -388
- package/package.json +1 -1
- package/dist/AddBlocks-zPPKkeKs.cjs +0 -1
- package/dist/CanvasArea-h0W-Tyha.js +0 -951
- package/dist/CanvasArea-zme1r3Zi.cjs +0 -55
- package/dist/ListTree-WvTjY5rr.cjs +0 -1
- package/dist/ListTree-cZ-Ihlt3.js +0 -309
- package/dist/MODIFIERS-0g14w5RS.cjs +0 -1
- package/dist/Settings-AqoKwR92.cjs +0 -1
- package/dist/html-to-json-efmv1pCj.cjs +0 -1
- package/dist/html-to-json-ngX9ef2u.js +0 -185
- package/dist/index-h-hd6EvN.cjs +0 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import
|
|
3
|
-
import { memoize as
|
|
4
|
-
import { g as de, a as
|
|
5
|
-
import { getBlockComponent as
|
|
6
|
-
import { atom as
|
|
7
|
-
import { a as fe, I as
|
|
8
|
-
import { g as
|
|
9
|
-
import { useThrottledCallback as
|
|
10
|
-
import { B as
|
|
11
|
-
import { a as d, c as
|
|
2
|
+
import st, { createContext as Ls, useContext as zs, useRef as kr, createElement as Sr, useReducer as Vs, useEffect as Be, useDebugValue as $s, useCallback as $, useMemo as ot, useState as _e, Suspense as wt } from "react";
|
|
3
|
+
import { memoize as Le, has as pe, get as H, flatten as ie, filter as E, isString as Vt, find as oe, map as I, omit as nt, each as ce, set as Ae, includes as Y, cloneDeep as Fs, isEmpty as ye, without as $t, forIn as Ft, isObject as Us, first as te, noop as Ke, keys as Ws, startsWith as Ut, isNull as Je, pick as Nt, sortBy as kt } from "lodash-es";
|
|
4
|
+
import { g as de, a as Gs } from "./Functions-7jnEwJyw.js";
|
|
5
|
+
import { getBlockComponent as we } from "@chaibuilder/runtime";
|
|
6
|
+
import { atom as y, useAtomValue as Z, useAtom as O, useSetAtom as Re } from "jotai";
|
|
7
|
+
import { a as fe, I as Wt, S as Ye } from "./STRINGS--j49GZJP.js";
|
|
8
|
+
import { g as Hs } from "./_commonjsHelpers-UyOWmZb0.js";
|
|
9
|
+
import { useThrottledCallback as qs } from "@react-hookz/web";
|
|
10
|
+
import { B as Qe } from "./MODIFIERS-cBT31iqE.js";
|
|
11
|
+
import { a as d, c as Me } from "./Class-6Hz2KzYb.js";
|
|
12
12
|
import "react-i18next";
|
|
13
13
|
import { j as a } from "./jsx-runtime-WbnYoNE9.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as Gt from "@radix-ui/react-toggle";
|
|
15
15
|
import { cva as ge } from "class-variance-authority";
|
|
16
|
-
import * as
|
|
17
|
-
import { Slot as
|
|
16
|
+
import * as Xe from "@radix-ui/react-switch";
|
|
17
|
+
import { Slot as Ks } from "@radix-ui/react-slot";
|
|
18
18
|
import * as me from "@radix-ui/react-accordion";
|
|
19
|
-
import { ChevronDownIcon as
|
|
20
|
-
import * as
|
|
19
|
+
import { ChevronDownIcon as Js, Cross2Icon as at, ChevronRightIcon as rt, CheckIcon as ze, DotFilledIcon as it, CaretSortIcon as Ys, MagnifyingGlassIcon as Qs } from "@radix-ui/react-icons";
|
|
20
|
+
import * as q from "@radix-ui/react-alert-dialog";
|
|
21
21
|
import * as P from "@radix-ui/react-dialog";
|
|
22
|
-
import * as
|
|
22
|
+
import * as Ht from "@radix-ui/react-label";
|
|
23
23
|
import * as ue from "@radix-ui/react-scroll-area";
|
|
24
24
|
import * as be from "@radix-ui/react-tabs";
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
25
|
+
import * as Ne from "@radix-ui/react-tooltip";
|
|
26
|
+
import * as Ce from "@radix-ui/react-popover";
|
|
27
27
|
import * as _ from "@radix-ui/react-menubar";
|
|
28
28
|
import * as Ve from "@radix-ui/react-hover-card";
|
|
29
29
|
import * as U from "@radix-ui/react-select";
|
|
30
30
|
import * as M from "@radix-ui/react-dropdown-menu";
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
31
|
+
import * as qt from "@radix-ui/react-separator";
|
|
32
|
+
import * as ee from "@radix-ui/react-toast";
|
|
33
33
|
import { Command as Q } from "cmdk";
|
|
34
34
|
import * as D from "@radix-ui/react-context-menu";
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
35
|
+
import Xs, { IconPickerItem as Zs } from "react-icons-picker";
|
|
36
|
+
import eo from "react-dom";
|
|
37
|
+
import to from "react-quill";
|
|
38
38
|
var W = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
39
|
-
let
|
|
40
|
-
function
|
|
41
|
-
const s = `atom${++
|
|
39
|
+
let so = 0;
|
|
40
|
+
function re(e, t) {
|
|
41
|
+
const s = `atom${++so}`, 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 ae(e, t) {
|
|
|
46
46
|
typeof r == "function" ? r(n(o)) : r
|
|
47
47
|
)), t && (o.write = t), o;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}).finally(() =>
|
|
52
|
-
}, kt = (e, t) => {
|
|
53
|
-
const s = Ee.get(e);
|
|
54
|
-
s && (Ee.delete(e), s(t));
|
|
49
|
+
const Ue = (e) => "init" in e, We = (e) => !!e.write, Oe = /* @__PURE__ */ new WeakMap(), oo = (e, t) => {
|
|
50
|
+
Oe.set(e, t), e.catch(() => {
|
|
51
|
+
}).finally(() => Oe.delete(e));
|
|
55
52
|
}, St = (e, t) => {
|
|
56
|
-
|
|
53
|
+
const s = Oe.get(e);
|
|
54
|
+
s && (Oe.delete(e), s(t));
|
|
57
55
|
}, jt = (e, t) => {
|
|
56
|
+
e.status = "fulfilled", e.value = t;
|
|
57
|
+
}, At = (e, t) => {
|
|
58
58
|
e.status = "rejected", e.reason = t;
|
|
59
|
-
},
|
|
59
|
+
}, no = (e) => typeof (e == null ? void 0 : e.then) == "function", Se = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), Ct = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), xe = (e) => "v" in e && e.v instanceof Promise, ao = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Ie = (e) => {
|
|
60
60
|
if ("e" in e)
|
|
61
61
|
throw e.e;
|
|
62
62
|
return e.v;
|
|
63
|
-
},
|
|
63
|
+
}, ro = () => {
|
|
64
64
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
|
|
65
65
|
let o, n, i;
|
|
66
66
|
(W ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
|
|
@@ -69,30 +69,30 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
69
69
|
const x = e.get(u);
|
|
70
70
|
if (e.set(u, g), s.has(u) || s.set(u, x), x && xe(x)) {
|
|
71
71
|
const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
|
|
72
|
-
|
|
72
|
+
St(x.v, b);
|
|
73
73
|
}
|
|
74
74
|
}, p = (u, g, x) => {
|
|
75
75
|
const b = /* @__PURE__ */ new Map();
|
|
76
|
-
let
|
|
76
|
+
let w = !1;
|
|
77
77
|
x.forEach((h, k) => {
|
|
78
|
-
!h && k === u && (h = g), h ? (b.set(k, h), g.d.get(k) !== h && (
|
|
79
|
-
}), (
|
|
78
|
+
!h && k === u && (h = g), h ? (b.set(k, h), g.d.get(k) !== h && (w = !0)) : (W ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
|
|
79
|
+
}), (w || g.d.size !== b.size) && (g.d = b);
|
|
80
80
|
}, l = (u, g, x) => {
|
|
81
|
-
const b = r(u),
|
|
81
|
+
const b = r(u), w = {
|
|
82
82
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
83
83
|
v: g
|
|
84
84
|
};
|
|
85
|
-
if (x && p(u,
|
|
85
|
+
if (x && p(u, w, x), b && Se(b, w) && b.d === w.d)
|
|
86
86
|
return b;
|
|
87
|
-
if (b && xe(b) && xe(
|
|
88
|
-
if (b.d ===
|
|
87
|
+
if (b && xe(b) && xe(w) && ao(b, w)) {
|
|
88
|
+
if (b.d === w.d)
|
|
89
89
|
return b;
|
|
90
|
-
|
|
90
|
+
w.v = b.v;
|
|
91
91
|
}
|
|
92
|
-
return c(u,
|
|
92
|
+
return c(u, w), w;
|
|
93
93
|
}, m = (u, g, x, b) => {
|
|
94
|
-
if (
|
|
95
|
-
let
|
|
94
|
+
if (no(g)) {
|
|
95
|
+
let w;
|
|
96
96
|
const h = new Promise((k, z) => {
|
|
97
97
|
let A = !1;
|
|
98
98
|
g.then(
|
|
@@ -104,7 +104,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
104
104
|
h,
|
|
105
105
|
x
|
|
106
106
|
);
|
|
107
|
-
|
|
107
|
+
jt(h, R), k(R), (C == null ? void 0 : C.d) !== se.d && K(u, se, C == null ? void 0 : C.d);
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
(R) => {
|
|
@@ -115,27 +115,27 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
115
115
|
h,
|
|
116
116
|
x
|
|
117
117
|
);
|
|
118
|
-
|
|
118
|
+
At(h, R), z(R), (C == null ? void 0 : C.d) !== se.d && K(u, se, C == null ? void 0 : C.d);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
),
|
|
121
|
+
), w = (R) => {
|
|
122
122
|
A || (A = !0, R.then(
|
|
123
|
-
(C) =>
|
|
124
|
-
(C) =>
|
|
123
|
+
(C) => jt(h, C),
|
|
124
|
+
(C) => At(h, C)
|
|
125
125
|
), k(R));
|
|
126
126
|
};
|
|
127
127
|
});
|
|
128
|
-
return h.orig = g, h.status = "pending",
|
|
129
|
-
k &&
|
|
128
|
+
return h.orig = g, h.status = "pending", oo(h, (k) => {
|
|
129
|
+
k && w(k), b == null || b();
|
|
130
130
|
}), l(u, h, x);
|
|
131
131
|
}
|
|
132
132
|
return l(u, g, x);
|
|
133
133
|
}, N = (u, g, x) => {
|
|
134
|
-
const b = r(u),
|
|
134
|
+
const b = r(u), w = {
|
|
135
135
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
136
136
|
e: g
|
|
137
137
|
};
|
|
138
|
-
return x && p(u,
|
|
138
|
+
return x && p(u, w, x), b && Ct(b, w) && b.d === w.d ? b : (c(u, w), w);
|
|
139
139
|
}, S = (u) => {
|
|
140
140
|
const g = r(u);
|
|
141
141
|
if (g && (g.d.forEach((A, R) => {
|
|
@@ -143,22 +143,22 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
143
143
|
}), Array.from(g.d).every(([A, R]) => {
|
|
144
144
|
const C = r(A);
|
|
145
145
|
return A === u || C === R || // TODO This is a hack, we should find a better solution.
|
|
146
|
-
C && !xe(C) &&
|
|
146
|
+
C && !xe(C) && Se(C, R);
|
|
147
147
|
})))
|
|
148
148
|
return g;
|
|
149
149
|
const x = /* @__PURE__ */ new Map();
|
|
150
150
|
let b = !0;
|
|
151
|
-
const
|
|
151
|
+
const w = (A) => {
|
|
152
152
|
if (A === u) {
|
|
153
153
|
const C = r(A);
|
|
154
154
|
if (C)
|
|
155
|
-
return x.set(A, C),
|
|
156
|
-
if (
|
|
155
|
+
return x.set(A, C), Ie(C);
|
|
156
|
+
if (Ue(A))
|
|
157
157
|
return x.set(A, void 0), A.init;
|
|
158
158
|
throw new Error("no atom init");
|
|
159
159
|
}
|
|
160
160
|
const R = S(A);
|
|
161
|
-
return x.set(A, R),
|
|
161
|
+
return x.set(A, R), Ie(R);
|
|
162
162
|
};
|
|
163
163
|
let h, k;
|
|
164
164
|
const z = {
|
|
@@ -166,14 +166,14 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
166
166
|
return h || (h = new AbortController()), h.signal;
|
|
167
167
|
},
|
|
168
168
|
get setSelf() {
|
|
169
|
-
return (W ? "production" : void 0) !== "production" && !
|
|
169
|
+
return (W ? "production" : void 0) !== "production" && !We(u) && console.warn("setSelf function cannot be used with read-only atom"), !k && We(u) && (k = (...A) => {
|
|
170
170
|
if ((W ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
|
|
171
171
|
return G(u, ...A);
|
|
172
172
|
}), k;
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
try {
|
|
176
|
-
const A = u.read(
|
|
176
|
+
const A = u.read(w, z);
|
|
177
177
|
return m(
|
|
178
178
|
u,
|
|
179
179
|
A,
|
|
@@ -185,7 +185,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
185
185
|
} finally {
|
|
186
186
|
b = !1;
|
|
187
187
|
}
|
|
188
|
-
}, v = (u) =>
|
|
188
|
+
}, v = (u) => Ie(S(u)), j = (u) => {
|
|
189
189
|
let g = t.get(u);
|
|
190
190
|
return g || (g = V(u)), g;
|
|
191
191
|
}, L = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), F = (u) => {
|
|
@@ -202,7 +202,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
204
|
b(u);
|
|
205
|
-
const
|
|
205
|
+
const w = (h) => {
|
|
206
206
|
const k = t.get(h);
|
|
207
207
|
k == null || k.t.forEach((z) => {
|
|
208
208
|
var A;
|
|
@@ -211,51 +211,51 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
211
211
|
if (R && x.set(z, --R), !R) {
|
|
212
212
|
let C = !!((A = g.get(z)) != null && A.size);
|
|
213
213
|
if (C) {
|
|
214
|
-
const se = r(z),
|
|
215
|
-
C = !se || !
|
|
214
|
+
const se = r(z), Os = S(z);
|
|
215
|
+
C = !se || !Se(se, Os);
|
|
216
216
|
}
|
|
217
217
|
C || g.forEach((se) => se.delete(z));
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
w(z);
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
|
-
|
|
223
|
+
w(u);
|
|
224
224
|
}, T = (u, ...g) => {
|
|
225
225
|
let x = !0;
|
|
226
|
-
const b = (k) =>
|
|
226
|
+
const b = (k) => Ie(S(k)), w = (k, ...z) => {
|
|
227
227
|
let A;
|
|
228
228
|
if (k === u) {
|
|
229
|
-
if (!
|
|
229
|
+
if (!Ue(k))
|
|
230
230
|
throw new Error("atom not writable");
|
|
231
231
|
const R = r(k), C = m(k, z[0]);
|
|
232
|
-
(!R || !
|
|
232
|
+
(!R || !Se(R, C)) && B(k);
|
|
233
233
|
} else
|
|
234
234
|
A = T(k, ...z);
|
|
235
235
|
if (!x) {
|
|
236
|
-
const R =
|
|
236
|
+
const R = J();
|
|
237
237
|
(W ? "production" : void 0) !== "production" && n.forEach(
|
|
238
238
|
(C) => C({ type: "async-write", flushed: R })
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
241
|
return A;
|
|
242
|
-
}, h = u.write(b,
|
|
242
|
+
}, h = u.write(b, w, ...g);
|
|
243
243
|
return x = !1, h;
|
|
244
244
|
}, G = (u, ...g) => {
|
|
245
|
-
const x = T(u, ...g), b =
|
|
245
|
+
const x = T(u, ...g), b = J();
|
|
246
246
|
return (W ? "production" : void 0) !== "production" && n.forEach(
|
|
247
|
-
(
|
|
247
|
+
(w) => w({ type: "write", flushed: b })
|
|
248
248
|
), x;
|
|
249
249
|
}, V = (u, g) => {
|
|
250
250
|
const x = {
|
|
251
251
|
t: new Set(g && [g]),
|
|
252
252
|
l: /* @__PURE__ */ new Set()
|
|
253
253
|
};
|
|
254
|
-
if (t.set(u, x), (W ? "production" : void 0) !== "production" && i.add(u), S(u).d.forEach((b,
|
|
255
|
-
const h = t.get(
|
|
256
|
-
h ? h.t.add(u) :
|
|
257
|
-
}), S(u),
|
|
258
|
-
const b = u.onMount((...
|
|
254
|
+
if (t.set(u, x), (W ? "production" : void 0) !== "production" && i.add(u), S(u).d.forEach((b, w) => {
|
|
255
|
+
const h = t.get(w);
|
|
256
|
+
h ? h.t.add(u) : w !== u && V(w, u);
|
|
257
|
+
}), S(u), We(u) && u.onMount) {
|
|
258
|
+
const b = u.onMount((...w) => G(u, ...w));
|
|
259
259
|
b && (x.u = b);
|
|
260
260
|
}
|
|
261
261
|
return x;
|
|
@@ -264,37 +264,37 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
264
264
|
const x = (g = t.get(u)) == null ? void 0 : g.u;
|
|
265
265
|
x && x(), t.delete(u), (W ? "production" : void 0) !== "production" && i.delete(u);
|
|
266
266
|
const b = r(u);
|
|
267
|
-
b ? (xe(b) &&
|
|
267
|
+
b ? (xe(b) && St(b.v), b.d.forEach((w, h) => {
|
|
268
268
|
if (h !== u) {
|
|
269
269
|
const k = t.get(h);
|
|
270
270
|
k && (k.t.delete(u), L(h, k) && X(h));
|
|
271
271
|
}
|
|
272
272
|
})) : (W ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
|
|
273
|
-
},
|
|
273
|
+
}, K = (u, g, x) => {
|
|
274
274
|
const b = new Set(g.d.keys());
|
|
275
|
-
x == null || x.forEach((
|
|
275
|
+
x == null || x.forEach((w, h) => {
|
|
276
276
|
if (b.has(h)) {
|
|
277
277
|
b.delete(h);
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
const k = t.get(h);
|
|
281
281
|
k && (k.t.delete(u), L(h, k) && X(h));
|
|
282
|
-
}), b.forEach((
|
|
283
|
-
const h = t.get(
|
|
284
|
-
h ? h.t.add(u) : t.has(u) && V(
|
|
282
|
+
}), b.forEach((w) => {
|
|
283
|
+
const h = t.get(w);
|
|
284
|
+
h ? h.t.add(u) : t.has(u) && V(w, u);
|
|
285
285
|
});
|
|
286
|
-
},
|
|
286
|
+
}, J = () => {
|
|
287
287
|
let u;
|
|
288
288
|
for ((W ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
|
|
289
289
|
const g = Array.from(s);
|
|
290
290
|
s.clear(), g.forEach(([x, b]) => {
|
|
291
|
-
const
|
|
292
|
-
if (
|
|
293
|
-
|
|
291
|
+
const w = r(x);
|
|
292
|
+
if (w) {
|
|
293
|
+
w.d !== (b == null ? void 0 : b.d) && K(x, w, b == null ? void 0 : b.d);
|
|
294
294
|
const h = t.get(x);
|
|
295
295
|
h && !// TODO This seems pretty hacky. Hope to fix it.
|
|
296
296
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
297
|
-
(b && !xe(b) && (
|
|
297
|
+
(b && !xe(b) && (Se(b, w) || Ct(b, w))) && (h.l.forEach((k) => k()), (W ? "production" : void 0) !== "production" && u.add(x));
|
|
298
298
|
} else
|
|
299
299
|
(W ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
300
300
|
});
|
|
@@ -302,11 +302,11 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
302
302
|
if ((W ? "production" : void 0) !== "production")
|
|
303
303
|
return o.forEach((g) => g("state")), u;
|
|
304
304
|
}, le = (u, g) => {
|
|
305
|
-
const x = j(u), b =
|
|
306
|
-
return
|
|
305
|
+
const x = j(u), b = J(), w = x.l;
|
|
306
|
+
return w.add(g), (W ? "production" : void 0) !== "production" && (o.forEach((h) => h("sub")), n.forEach(
|
|
307
307
|
(h) => h({ type: "sub", flushed: b })
|
|
308
308
|
)), () => {
|
|
309
|
-
|
|
309
|
+
w.delete(g), F(u), (W ? "production" : void 0) !== "production" && (o.forEach((h) => h("unsub")), n.forEach((h) => h({ type: "unsub" })));
|
|
310
310
|
};
|
|
311
311
|
};
|
|
312
312
|
return (W ? "production" : void 0) !== "production" ? {
|
|
@@ -326,8 +326,8 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
326
326
|
dev_get_mounted: (u) => t.get(u),
|
|
327
327
|
dev_restore_atoms: (u) => {
|
|
328
328
|
for (const [x, b] of u)
|
|
329
|
-
|
|
330
|
-
const g =
|
|
329
|
+
Ue(x) && (m(x, b), B(x));
|
|
330
|
+
const g = J();
|
|
331
331
|
n.forEach(
|
|
332
332
|
(x) => x({ type: "restore", flushed: g })
|
|
333
333
|
);
|
|
@@ -338,14 +338,14 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
338
338
|
sub: le
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
|
-
let
|
|
342
|
-
const
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
const t =
|
|
346
|
-
return (e == null ? void 0 : e.store) || t ||
|
|
341
|
+
let Ge;
|
|
342
|
+
const io = () => (Ge || (Ge = ro()), Ge);
|
|
343
|
+
var lo = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
344
|
+
const co = Ls(void 0), Kt = (e) => {
|
|
345
|
+
const t = zs(co);
|
|
346
|
+
return (e == null ? void 0 : e.store) || t || io();
|
|
347
347
|
};
|
|
348
|
-
const
|
|
348
|
+
const uo = (e) => typeof (e == null ? void 0 : e.then) == "function", fo = st.use || ((e) => {
|
|
349
349
|
if (e.status === "pending")
|
|
350
350
|
throw e;
|
|
351
351
|
if (e.status === "fulfilled")
|
|
@@ -359,8 +359,8 @@ const lo = (e) => typeof (e == null ? void 0 : e.then) == "function", co = tt.us
|
|
|
359
359
|
}
|
|
360
360
|
), e);
|
|
361
361
|
});
|
|
362
|
-
function
|
|
363
|
-
const s =
|
|
362
|
+
function mo(e, t) {
|
|
363
|
+
const s = Kt(t), [[o, n, i], r] = Vs(
|
|
364
364
|
(l) => {
|
|
365
365
|
const m = s.get(e);
|
|
366
366
|
return Object.is(l[0], m) && l[1] === s && l[2] === e ? l : [m, s, e];
|
|
@@ -371,7 +371,7 @@ function uo(e, t) {
|
|
|
371
371
|
let c = o;
|
|
372
372
|
(n !== s || i !== e) && (r(), c = s.get(e));
|
|
373
373
|
const p = t == null ? void 0 : t.delay;
|
|
374
|
-
return
|
|
374
|
+
return Be(() => {
|
|
375
375
|
const l = s.sub(e, () => {
|
|
376
376
|
if (typeof p == "number") {
|
|
377
377
|
setTimeout(r, p);
|
|
@@ -380,34 +380,34 @@ function uo(e, t) {
|
|
|
380
380
|
r();
|
|
381
381
|
});
|
|
382
382
|
return r(), l;
|
|
383
|
-
}, [s, e, p]),
|
|
383
|
+
}, [s, e, p]), $s(c), uo(c) ? fo(c) : c;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
const s =
|
|
385
|
+
function po(e, t) {
|
|
386
|
+
const s = Kt(t);
|
|
387
387
|
return $(
|
|
388
388
|
(...n) => {
|
|
389
|
-
if ((
|
|
389
|
+
if ((lo ? "production" : void 0) !== "production" && !("write" in e))
|
|
390
390
|
throw new Error("not writable atom");
|
|
391
391
|
return s.set(e, ...n);
|
|
392
392
|
},
|
|
393
393
|
[s, e]
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Ur(e, t) {
|
|
397
397
|
return [
|
|
398
|
-
|
|
398
|
+
mo(e, t),
|
|
399
399
|
// We do wrong type assertion here, which results in throwing an error.
|
|
400
|
-
|
|
400
|
+
po(e, t)
|
|
401
401
|
];
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
const
|
|
405
|
-
const
|
|
406
|
-
const o =
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
function
|
|
410
|
-
return
|
|
403
|
+
var lt = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
404
|
+
const Jt = Symbol();
|
|
405
|
+
const Bt = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), go = /* @__PURE__ */ new WeakMap(), bo = (e, t, s) => {
|
|
406
|
+
const o = Bt(() => /* @__PURE__ */ new WeakMap(), go, t);
|
|
407
|
+
return Bt(e, o, s);
|
|
408
|
+
}, ho = {}, _t = (e) => !!e.write, xo = (e) => typeof e == "function";
|
|
409
|
+
function vo(e, t) {
|
|
410
|
+
return bo(
|
|
411
411
|
() => {
|
|
412
412
|
const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
|
|
413
413
|
let p = s.get(r);
|
|
@@ -423,33 +423,33 @@ function ho(e, t) {
|
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
const F = (T) => {
|
|
426
|
-
const G = T(n), V = T(e),
|
|
427
|
-
if (
|
|
428
|
-
const
|
|
429
|
-
if (
|
|
430
|
-
return
|
|
426
|
+
const G = T(n), V = T(e), K = o(V, G == null ? void 0 : G.arr).keyList.indexOf(j);
|
|
427
|
+
if (K < 0 || K >= V.length) {
|
|
428
|
+
const J = r[o(r).keyList.indexOf(j)];
|
|
429
|
+
if (J)
|
|
430
|
+
return J;
|
|
431
431
|
throw new Error("splitAtom: index out of bounds for read");
|
|
432
432
|
}
|
|
433
|
-
return V[
|
|
433
|
+
return V[K];
|
|
434
434
|
}, B = (T, G, V) => {
|
|
435
|
-
const X = T(n),
|
|
436
|
-
if (le < 0 || le >=
|
|
435
|
+
const X = T(n), K = T(e), le = o(K, X == null ? void 0 : X.arr).keyList.indexOf(j);
|
|
436
|
+
if (le < 0 || le >= K.length)
|
|
437
437
|
throw new Error("splitAtom: index out of bounds for write");
|
|
438
|
-
const u =
|
|
438
|
+
const u = xo(V) ? V(K[le]) : V;
|
|
439
439
|
G(e, [
|
|
440
|
-
...
|
|
440
|
+
...K.slice(0, le),
|
|
441
441
|
u,
|
|
442
|
-
...
|
|
442
|
+
...K.slice(le + 1)
|
|
443
443
|
]);
|
|
444
444
|
};
|
|
445
|
-
m[v] =
|
|
445
|
+
m[v] = _t(e) ? re(F, B) : re(F);
|
|
446
446
|
}), l && l.keyList.length === N.length && l.keyList.every((S, v) => S === N[v]) ? p = l : p = { arr: r, atomList: m, keyList: N }, s.set(r, p), p;
|
|
447
|
-
}, n =
|
|
447
|
+
}, n = re((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
|
+
(lt ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
|
|
452
|
+
const i = _t(e) ? re(
|
|
453
453
|
(r) => r(n).atomList,
|
|
454
454
|
(r, c, p) => {
|
|
455
455
|
switch (p.type) {
|
|
@@ -496,23 +496,23 @@ function ho(e, t) {
|
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
) :
|
|
499
|
+
) : re((r) => r(n).atomList);
|
|
500
500
|
return i;
|
|
501
501
|
},
|
|
502
502
|
e,
|
|
503
|
-
t ||
|
|
503
|
+
t || ho
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
const t = Symbol(), s =
|
|
508
|
-
(
|
|
509
|
-
const o =
|
|
506
|
+
function Wr(e) {
|
|
507
|
+
const t = Symbol(), s = re(t);
|
|
508
|
+
(lt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
|
|
509
|
+
const o = re(
|
|
510
510
|
(n, i) => {
|
|
511
511
|
const r = n(s);
|
|
512
512
|
return r !== t ? r : e(n, i);
|
|
513
513
|
},
|
|
514
514
|
(n, i, r) => {
|
|
515
|
-
if (r ===
|
|
515
|
+
if (r === Jt)
|
|
516
516
|
i(s, t);
|
|
517
517
|
else if (typeof r == "function") {
|
|
518
518
|
const c = n(o);
|
|
@@ -523,8 +523,8 @@ function Vr(e) {
|
|
|
523
523
|
);
|
|
524
524
|
return o;
|
|
525
525
|
}
|
|
526
|
-
const
|
|
527
|
-
function
|
|
526
|
+
const yo = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
527
|
+
function wo(e) {
|
|
528
528
|
let t, s;
|
|
529
529
|
const o = {
|
|
530
530
|
getItem: (n, i) => {
|
|
@@ -540,7 +540,7 @@ function vo(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 yo(l) ? l.then(p) : p(l);
|
|
544
544
|
},
|
|
545
545
|
setItem: (n, i) => {
|
|
546
546
|
var r;
|
|
@@ -571,56 +571,56 @@ function vo(e) {
|
|
|
571
571
|
};
|
|
572
572
|
}), o;
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const No = wo(
|
|
575
575
|
() => typeof window < "u" ? window.localStorage : void 0
|
|
576
576
|
);
|
|
577
|
-
function
|
|
578
|
-
const n = o == null ? void 0 : o.unstable_getOnInit, i =
|
|
577
|
+
function Pe(e, t, s = No, o) {
|
|
578
|
+
const n = o == null ? void 0 : o.unstable_getOnInit, i = re(
|
|
579
579
|
n ? s.getItem(e, t) : t
|
|
580
580
|
);
|
|
581
|
-
return (
|
|
581
|
+
return (lt ? "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;
|
|
585
|
-
},
|
|
585
|
+
}, re(
|
|
586
586
|
(c) => c(i),
|
|
587
587
|
(c, p, l) => {
|
|
588
588
|
const m = typeof l == "function" ? l(c(i)) : l;
|
|
589
|
-
return m ===
|
|
589
|
+
return m === Jt ? (p(i, t), s.removeItem(e)) : m instanceof Promise ? m.then((N) => (p(i, N), s.setItem(e, N))) : (p(i, m), s.setItem(e, m));
|
|
590
590
|
}
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
const
|
|
593
|
+
const Yt = y(null);
|
|
594
|
+
Yt.debugLabel = "chaiBuilderPropsAtom";
|
|
595
|
+
const ko = y({});
|
|
596
|
+
ko.debugLabel = "chaiExternalDataAtom";
|
|
597
|
+
const Gr = () => !1, So = (e) => {
|
|
598
598
|
const t = e.replace(fe, "").split(",");
|
|
599
599
|
return { baseClasses: t[0], classes: t[1] };
|
|
600
|
-
},
|
|
600
|
+
}, Rt = Le((e, t) => {
|
|
601
601
|
if (!e)
|
|
602
602
|
return !0;
|
|
603
|
-
const s =
|
|
603
|
+
const s = we(e);
|
|
604
604
|
return s && pe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
|
|
605
|
-
}),
|
|
606
|
-
const s =
|
|
605
|
+
}), jo = Le((e, t) => {
|
|
606
|
+
const s = we(t);
|
|
607
607
|
return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
|
|
608
|
-
}),
|
|
609
|
-
const t =
|
|
608
|
+
}), Hr = Le((e) => {
|
|
609
|
+
const t = we(e);
|
|
610
610
|
return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
|
|
611
|
-
}),
|
|
612
|
-
const t =
|
|
611
|
+
}), qr = Le((e) => {
|
|
612
|
+
const t = we(e);
|
|
613
613
|
return t && pe(t, "canDelete") ? t.canDelete() : !0;
|
|
614
614
|
});
|
|
615
|
-
function
|
|
615
|
+
function Qt(e, t, s) {
|
|
616
616
|
const o = E(e, (i) => i._parent === t), n = [];
|
|
617
617
|
for (let i = 0; i < o.length; i++) {
|
|
618
|
-
const r =
|
|
618
|
+
const r = Zt(o[i]);
|
|
619
619
|
if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
|
|
620
620
|
o[i][c] = `slot:${de()}`;
|
|
621
621
|
}), E(e, { _parent: o[i]._id }).length > 0) {
|
|
622
622
|
const c = de();
|
|
623
|
-
n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(
|
|
623
|
+
n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ie(Qt(e, o[i]._id, c)));
|
|
624
624
|
} else
|
|
625
625
|
n.push({
|
|
626
626
|
...o[i],
|
|
@@ -629,9 +629,9 @@ function Yt(e, t, s) {
|
|
|
629
629
|
_parent: s
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
return
|
|
632
|
+
return ie(n);
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Xt(e) {
|
|
635
635
|
const t = {};
|
|
636
636
|
e.forEach((o) => {
|
|
637
637
|
t[o._id] = { ...o, children: [] };
|
|
@@ -645,90 +645,118 @@ function Qt(e) {
|
|
|
645
645
|
s.push(t[o._id]);
|
|
646
646
|
}), s;
|
|
647
647
|
}
|
|
648
|
-
const
|
|
648
|
+
const Zt = (e) => {
|
|
649
649
|
const t = {};
|
|
650
650
|
return Object.keys(e).forEach((s) => {
|
|
651
|
-
|
|
651
|
+
Vt(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
|
|
652
652
|
}), t;
|
|
653
|
-
},
|
|
653
|
+
}, Ao = (e, t, s = null) => {
|
|
654
654
|
let o = oe(e, { _id: t });
|
|
655
655
|
o = { ...o, oldId: o._id, _id: de() }, s && (o = { ...o, _parent: s });
|
|
656
656
|
const n = [o];
|
|
657
|
-
E(e, { _parent: t }).length > 0 && n.push(
|
|
658
|
-
const i =
|
|
657
|
+
E(e, { _parent: t }).length > 0 && n.push(ie(Qt(e, t, o._id)));
|
|
658
|
+
const i = ie(n);
|
|
659
659
|
return I(i, (r) => {
|
|
660
|
-
const c = r, p =
|
|
660
|
+
const c = r, p = Zt(c);
|
|
661
661
|
return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
|
|
662
662
|
const m = oe(i, { oldId: p[l].replace("slot:", "") });
|
|
663
663
|
c[l] = `slot:${m._id}`;
|
|
664
|
-
}),
|
|
664
|
+
}), nt(c, ["global", "oldId"]);
|
|
665
665
|
});
|
|
666
666
|
};
|
|
667
|
-
const
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
const t = e(
|
|
671
|
-
return
|
|
667
|
+
const ne = y([]);
|
|
668
|
+
ne.debugLabel = "presentBlocksAtom";
|
|
669
|
+
const Co = y((e) => {
|
|
670
|
+
const t = e(ne);
|
|
671
|
+
return Xt([...t]);
|
|
672
672
|
});
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
const
|
|
684
|
-
const t = e(
|
|
673
|
+
Co.debugLabel = "treeDSBlocks";
|
|
674
|
+
ne.debugLabel = "presentBlocksAtom";
|
|
675
|
+
const ct = vo(ne);
|
|
676
|
+
ct.debugLabel = "pageBlocksAtomsAtom";
|
|
677
|
+
const Bo = y("");
|
|
678
|
+
Bo.debugLabel = "builderActivePageAtom";
|
|
679
|
+
const _o = y(-1);
|
|
680
|
+
_o.debugLabel = "destinationDropIndexAtom";
|
|
681
|
+
const es = y([]);
|
|
682
|
+
es.debugLabel = "buildingBlocksAtom";
|
|
683
|
+
const Ro = y((e) => {
|
|
684
|
+
const t = e(es);
|
|
685
685
|
return E(t, (s) => pe(s, "blockId"));
|
|
686
686
|
});
|
|
687
|
-
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
const t = e(
|
|
687
|
+
Ro.debugLabel = "globalBlocksAtom";
|
|
688
|
+
const dt = y([]);
|
|
689
|
+
dt.debugLabel = "selectedBlockIdsAtom";
|
|
690
|
+
const ut = y((e) => {
|
|
691
|
+
const t = e(ne), s = e(dt);
|
|
692
692
|
return I(
|
|
693
693
|
E(t, ({ _id: o }) => Y(s, o)),
|
|
694
694
|
(o) => ({ ...o })
|
|
695
695
|
);
|
|
696
696
|
});
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
const t = e(
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
697
|
+
ut.debugLabel = "selectedBlocksAtom";
|
|
698
|
+
const $e = y((e) => {
|
|
699
|
+
const t = e(ut);
|
|
700
|
+
if (t.length === 0)
|
|
701
|
+
return null;
|
|
702
|
+
if (t.length === 1)
|
|
703
|
+
return t[0];
|
|
704
704
|
});
|
|
705
|
-
|
|
706
|
-
const
|
|
707
|
-
const t = e(
|
|
708
|
-
return E(e(
|
|
705
|
+
$e.debugLabel = "selectedBlockAtom";
|
|
706
|
+
const Po = (e) => H(e, "parent", null), To = y((e) => {
|
|
707
|
+
const t = e(ut), s = I(t, Po);
|
|
708
|
+
return E(e(ne), (o) => Y(s, o._id));
|
|
709
709
|
});
|
|
710
|
-
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
const
|
|
716
|
-
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
flexChild:
|
|
721
|
-
gridChild:
|
|
722
|
-
}),
|
|
723
|
-
const $e = ()
|
|
724
|
-
|
|
710
|
+
To.debugLabel = "selectedBlocksParentsAtom";
|
|
711
|
+
const ts = y(() => !1);
|
|
712
|
+
ts.debugLabel = "selectedBlockFlexChildAtom";
|
|
713
|
+
const ss = y(() => !1);
|
|
714
|
+
ss.debugLabel = "selectedBlockGridChildAtom";
|
|
715
|
+
const ft = y("");
|
|
716
|
+
ft.debugLabel = "styleStateAtom";
|
|
717
|
+
const os = Pe("styleBreakpoint", "xs");
|
|
718
|
+
os.debugLabel = "styleBreakpointAtom";
|
|
719
|
+
const Kr = () => ({
|
|
720
|
+
flexChild: Z(ts),
|
|
721
|
+
gridChild: Z(ss)
|
|
722
|
+
}), Jr = () => Z($e), Io = y((e) => {
|
|
723
|
+
const t = e($e), s = e(ne);
|
|
724
|
+
let o = t;
|
|
725
|
+
const n = [t];
|
|
726
|
+
do {
|
|
727
|
+
const i = s.find(({ _id: r }) => r === (o == null ? void 0 : o._parent));
|
|
728
|
+
o = i, i && n.push(i);
|
|
729
|
+
} while (o != null && o._parent);
|
|
730
|
+
return n;
|
|
731
|
+
}), ns = () => Z(Io), Yr = () => {
|
|
732
|
+
const e = ns();
|
|
733
|
+
return ot(() => {
|
|
734
|
+
for (let t = 0; t < e.length; t++) {
|
|
735
|
+
const s = we(e[t]._type), o = Fs(H(s, "blockState", {}));
|
|
736
|
+
if (!ye(o))
|
|
737
|
+
return { settings: o, block: e[t] };
|
|
738
|
+
}
|
|
739
|
+
return {};
|
|
740
|
+
}, [e]);
|
|
741
|
+
}, Qr = () => {
|
|
742
|
+
const e = ns();
|
|
743
|
+
return ot(() => {
|
|
744
|
+
let t = {};
|
|
745
|
+
for (let s = 0; s < e.length; s++) {
|
|
746
|
+
const o = we(e[s]._type), n = H(o, "customStylingStates", {});
|
|
747
|
+
t = { ...t, ...n };
|
|
748
|
+
}
|
|
749
|
+
return t;
|
|
750
|
+
}, [e]);
|
|
751
|
+
}, Fe = () => {
|
|
752
|
+
const [e, t] = O(dt), s = $(
|
|
725
753
|
(o) => {
|
|
726
|
-
t((n) => Y(n, o) ?
|
|
754
|
+
t((n) => Y(n, o) ? $t(n, o) : [...n, o]);
|
|
727
755
|
},
|
|
728
756
|
[t]
|
|
729
757
|
);
|
|
730
758
|
return [e, t, s];
|
|
731
|
-
},
|
|
759
|
+
}, Pt = (e) => {
|
|
732
760
|
switch (e.type) {
|
|
733
761
|
case "singular":
|
|
734
762
|
return e.uiSchema;
|
|
@@ -739,7 +767,7 @@ const $e = () => {
|
|
|
739
767
|
if (Y(["slot", "styles"], r.type))
|
|
740
768
|
return;
|
|
741
769
|
const c = i;
|
|
742
|
-
s[c] =
|
|
770
|
+
s[c] = Pt(r);
|
|
743
771
|
}), s;
|
|
744
772
|
case "list":
|
|
745
773
|
const { itemProperties: o } = e, n = {
|
|
@@ -750,12 +778,12 @@ const $e = () => {
|
|
|
750
778
|
if (Y(["slot", "styles"], r.type))
|
|
751
779
|
return;
|
|
752
780
|
const c = i;
|
|
753
|
-
n.items[c] =
|
|
781
|
+
n.items[c] = Pt(r);
|
|
754
782
|
}), n;
|
|
755
783
|
default:
|
|
756
784
|
return {};
|
|
757
785
|
}
|
|
758
|
-
},
|
|
786
|
+
}, Tt = (e) => {
|
|
759
787
|
switch (e.type) {
|
|
760
788
|
case "singular":
|
|
761
789
|
return e.schema;
|
|
@@ -770,7 +798,7 @@ const $e = () => {
|
|
|
770
798
|
if (Y(["slot", "styles"], p.type))
|
|
771
799
|
return;
|
|
772
800
|
const l = c;
|
|
773
|
-
o.properties[l] =
|
|
801
|
+
o.properties[l] = Tt(p);
|
|
774
802
|
}), o;
|
|
775
803
|
case "list":
|
|
776
804
|
const { itemProperties: n, title: i } = e, r = {
|
|
@@ -786,46 +814,46 @@ const $e = () => {
|
|
|
786
814
|
if (Y(["slot", "styles"], p.type))
|
|
787
815
|
return;
|
|
788
816
|
const l = c;
|
|
789
|
-
r.items.properties[l] =
|
|
817
|
+
r.items.properties[l] = Tt(p), Ae(r.items, "title", H(p, "itemTitle", `${i} item`));
|
|
790
818
|
}), r;
|
|
791
819
|
default:
|
|
792
820
|
return {};
|
|
793
821
|
}
|
|
794
|
-
},
|
|
822
|
+
}, as = (e) => {
|
|
795
823
|
if (!e)
|
|
796
824
|
return {};
|
|
797
825
|
const t = {};
|
|
798
826
|
return Object.keys(e).forEach((s) => {
|
|
799
|
-
t[s] =
|
|
827
|
+
t[s] = Do(e[s]);
|
|
800
828
|
}), t;
|
|
801
|
-
},
|
|
802
|
-
if (
|
|
829
|
+
}, Mo = (e) => {
|
|
830
|
+
if (ye(e.default))
|
|
803
831
|
return [];
|
|
804
832
|
const { itemProperties: t } = e;
|
|
805
833
|
return I(e.default, (s) => {
|
|
806
834
|
const o = { ...s };
|
|
807
|
-
return
|
|
808
|
-
pe(t, i) &&
|
|
835
|
+
return Ft(s, (n, i) => {
|
|
836
|
+
pe(t, i) && H(t[i], "i18n", !1) && (o[i] = Wt);
|
|
809
837
|
}), o;
|
|
810
838
|
});
|
|
811
|
-
},
|
|
839
|
+
}, Do = (e) => {
|
|
812
840
|
switch (e.type) {
|
|
813
841
|
case "styles":
|
|
814
842
|
return e.default;
|
|
815
843
|
case "slot":
|
|
816
|
-
return `${
|
|
844
|
+
return `${Ye}${de()}`;
|
|
817
845
|
case "singular":
|
|
818
846
|
const { i18n: t, schema: s } = e;
|
|
819
|
-
return t ?
|
|
847
|
+
return t ? Wt : H(s, "default", "");
|
|
820
848
|
case "model":
|
|
821
|
-
return
|
|
849
|
+
return as(e.properties);
|
|
822
850
|
case "list":
|
|
823
|
-
return
|
|
851
|
+
return Mo(e);
|
|
824
852
|
default:
|
|
825
853
|
return "";
|
|
826
854
|
}
|
|
827
855
|
};
|
|
828
|
-
var
|
|
856
|
+
var mt = { exports: {} }, Xr = mt.exports;
|
|
829
857
|
(function(e) {
|
|
830
858
|
(function() {
|
|
831
859
|
"use strict";
|
|
@@ -929,93 +957,93 @@ var ft = { exports: {} }, Hr = ft.exports;
|
|
|
929
957
|
};
|
|
930
958
|
e.exports ? e.exports = s : window.UndoManager = s;
|
|
931
959
|
})();
|
|
932
|
-
})(
|
|
933
|
-
var
|
|
934
|
-
const
|
|
935
|
-
const [e, t] = O(
|
|
960
|
+
})(mt);
|
|
961
|
+
var Eo = mt.exports;
|
|
962
|
+
const Oo = /* @__PURE__ */ Hs(Eo), Lo = y(Qe), zo = y(null), rs = () => {
|
|
963
|
+
const [e, t] = O(Lo);
|
|
936
964
|
return [
|
|
937
|
-
|
|
965
|
+
Us(e) ? { ...Qe, ...e } : Qe,
|
|
938
966
|
t
|
|
939
967
|
];
|
|
940
|
-
},
|
|
941
|
-
function
|
|
942
|
-
return
|
|
968
|
+
}, Zr = () => O(zo), Vo = y(null), $o = () => ({ currentPage: Z(Vo) });
|
|
969
|
+
function Fo(e) {
|
|
970
|
+
return Xt(e);
|
|
943
971
|
}
|
|
944
|
-
const
|
|
972
|
+
const pt = (e, t) => ie(
|
|
945
973
|
e.map((s) => {
|
|
946
974
|
if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
|
|
947
975
|
const o = [...s.children];
|
|
948
|
-
return delete s.children,
|
|
976
|
+
return delete s.children, ie([s, ...pt(o, s._id)]);
|
|
949
977
|
}
|
|
950
978
|
return s;
|
|
951
979
|
})
|
|
952
980
|
);
|
|
953
|
-
function
|
|
981
|
+
function gt(e, t = !1) {
|
|
954
982
|
for (let s = 0; s < e.length; s++) {
|
|
955
983
|
const o = e[s];
|
|
956
984
|
o.global && !t ? e[s] = {
|
|
957
985
|
type: "GlobalBlock",
|
|
958
986
|
blockId: o.blockId,
|
|
959
|
-
_parent:
|
|
987
|
+
_parent: H(o, "parent", null),
|
|
960
988
|
_id: o._id
|
|
961
|
-
} : o.children && o.children.length &&
|
|
989
|
+
} : o.children && o.children.length && gt(o.children);
|
|
962
990
|
}
|
|
963
991
|
}
|
|
964
|
-
function
|
|
992
|
+
function is(e) {
|
|
965
993
|
let t = [], s = E(e, { type: "GlobalBlock" });
|
|
966
|
-
return s.length > 0 && (s = I(s,
|
|
967
|
-
t = [...t, ...
|
|
994
|
+
return s.length > 0 && (s = I(s, ls), ce(s, (o) => {
|
|
995
|
+
t = [...t, ...Uo(o)];
|
|
968
996
|
})), t;
|
|
969
997
|
}
|
|
970
|
-
function
|
|
998
|
+
function Uo(e) {
|
|
971
999
|
let t = [];
|
|
972
|
-
const s =
|
|
973
|
-
|
|
974
|
-
const o = [flatToNestedInstance.convert(
|
|
975
|
-
|
|
976
|
-
let n =
|
|
977
|
-
return n =
|
|
1000
|
+
const s = H(te(e), "parent", null);
|
|
1001
|
+
Ae(te(e), "parent", null);
|
|
1002
|
+
const o = [flatToNestedInstance.convert(cs(e))];
|
|
1003
|
+
gt(o, !0);
|
|
1004
|
+
let n = pt(o, e[0]._id);
|
|
1005
|
+
return n = Ae(n, "0.parent", s), t = [...t, n, ...is(n)], t;
|
|
978
1006
|
}
|
|
979
|
-
function
|
|
980
|
-
const t = oe(
|
|
1007
|
+
function ls(e) {
|
|
1008
|
+
const t = oe(Ze, { _id: e._id });
|
|
981
1009
|
if (!t)
|
|
982
1010
|
return [];
|
|
983
|
-
const s = [t], o = E(
|
|
984
|
-
return o.length ?
|
|
1011
|
+
const s = [t], o = E(Ze, { _parent: e._id });
|
|
1012
|
+
return o.length ? ie([...s, ...ie(I(o, ls))]) : ie(s);
|
|
985
1013
|
}
|
|
986
|
-
const
|
|
987
|
-
let
|
|
988
|
-
function
|
|
989
|
-
|
|
990
|
-
const t =
|
|
991
|
-
|
|
992
|
-
const s =
|
|
993
|
-
return ce(o, (i) =>
|
|
1014
|
+
const cs = (e) => JSON.parse(JSON.stringify(e));
|
|
1015
|
+
let Ze = [];
|
|
1016
|
+
function Wo(e) {
|
|
1017
|
+
Ze = e;
|
|
1018
|
+
const t = Fo(cs(e));
|
|
1019
|
+
gt(t);
|
|
1020
|
+
const s = pt(t, null), o = is(s), n = {};
|
|
1021
|
+
return ce(o, (i) => Ae(n, te(i).blockId, i)), [s, n];
|
|
994
1022
|
}
|
|
995
|
-
const
|
|
996
|
-
const [e] =
|
|
1023
|
+
const Go = () => {
|
|
1024
|
+
const [e] = rs(), { currentPage: t } = $o(), [s] = ke();
|
|
997
1025
|
return $(() => {
|
|
998
1026
|
const o = I(
|
|
999
1027
|
s,
|
|
1000
|
-
(i) =>
|
|
1001
|
-
), [n = []] =
|
|
1028
|
+
(i) => nt(i, ["expanded", "order", "title", "siblings", "tempClasses"])
|
|
1029
|
+
), [n = []] = Wo(o);
|
|
1002
1030
|
return {
|
|
1003
1031
|
currentPage: t,
|
|
1004
1032
|
blocks: n
|
|
1005
1033
|
};
|
|
1006
1034
|
}, [e, t, s]);
|
|
1007
1035
|
}, ve = (e, t = void 0) => {
|
|
1008
|
-
const s =
|
|
1009
|
-
return
|
|
1010
|
-
},
|
|
1011
|
-
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1015
|
-
const [e, t] = O(
|
|
1036
|
+
const s = Z(Yt);
|
|
1037
|
+
return H(s, e, t);
|
|
1038
|
+
}, ds = y([]);
|
|
1039
|
+
ds.debugLabel = "dataProvidersAtom";
|
|
1040
|
+
const Ho = () => O(ds), bt = y("SAVED");
|
|
1041
|
+
bt.debugLabel = "builderSaveStateAtom";
|
|
1042
|
+
const ei = () => {
|
|
1043
|
+
const [e, t] = O(bt), s = ve("onSavePage", async (l) => {
|
|
1016
1044
|
}), o = ve("onSave", async (l) => {
|
|
1017
|
-
}), n = ve("onSaveStateChange",
|
|
1018
|
-
return { savePage:
|
|
1045
|
+
}), n = ve("onSaveStateChange", Ke), i = Go(), [r] = Ho(), [c] = rs();
|
|
1046
|
+
return { savePage: qs(
|
|
1019
1047
|
async () => {
|
|
1020
1048
|
t("SAVING"), n("SAVING");
|
|
1021
1049
|
const l = i();
|
|
@@ -1027,37 +1055,37 @@ const Kr = () => {
|
|
|
1027
1055
|
3e3
|
|
1028
1056
|
// save only every 5 seconds
|
|
1029
1057
|
), saveState: e, setSaveState: t };
|
|
1030
|
-
},
|
|
1031
|
-
|
|
1032
|
-
const
|
|
1033
|
-
const [, e] = O(
|
|
1034
|
-
return
|
|
1058
|
+
}, ae = new Oo();
|
|
1059
|
+
ae.setLimit(50);
|
|
1060
|
+
const us = () => {
|
|
1061
|
+
const [, e] = O(bt), t = ve("onSaveStateChange", Ke);
|
|
1062
|
+
return Be(() => (ae.setCallback(() => {
|
|
1035
1063
|
e("UNSAVED"), t("UNSAVED");
|
|
1036
1064
|
}), () => {
|
|
1037
|
-
|
|
1065
|
+
ae.setCallback(Ke);
|
|
1038
1066
|
}), []), {
|
|
1039
|
-
add:
|
|
1040
|
-
undo:
|
|
1041
|
-
redo:
|
|
1042
|
-
hasRedo:
|
|
1043
|
-
hasUndo:
|
|
1044
|
-
clear:
|
|
1067
|
+
add: ae.add,
|
|
1068
|
+
undo: ae.undo,
|
|
1069
|
+
redo: ae.redo,
|
|
1070
|
+
hasRedo: ae.hasRedo,
|
|
1071
|
+
hasUndo: ae.hasUndo,
|
|
1072
|
+
clear: ae.clear
|
|
1045
1073
|
};
|
|
1046
|
-
},
|
|
1074
|
+
}, ht = (e, t) => {
|
|
1047
1075
|
const s = [], o = E(e, (n) => Y(t, n._id) || Y(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1048
|
-
return
|
|
1049
|
-
},
|
|
1050
|
-
const [e] =
|
|
1076
|
+
return ye(s) ? o : ht(o, s);
|
|
1077
|
+
}, ti = () => {
|
|
1078
|
+
const [e] = ke(), [t, s] = Fe(), { setNewBlocks: o } = he();
|
|
1051
1079
|
return $(
|
|
1052
1080
|
(n) => {
|
|
1053
1081
|
var r;
|
|
1054
1082
|
const i = ((r = oe(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
|
|
1055
|
-
o(
|
|
1083
|
+
o(ht(e, n)), setTimeout(() => s(i ? [i] : []), 200);
|
|
1056
1084
|
},
|
|
1057
1085
|
[e, s, t]
|
|
1058
1086
|
);
|
|
1059
1087
|
};
|
|
1060
|
-
function
|
|
1088
|
+
function qo(e, t, s, o) {
|
|
1061
1089
|
let n = e.filter((c) => !c._parent);
|
|
1062
1090
|
s && (n = e.filter((c) => c._parent === s));
|
|
1063
1091
|
const i = o !== void 0 ? o : n.length;
|
|
@@ -1072,7 +1100,7 @@ function Wo(e, t, s, o) {
|
|
|
1072
1100
|
}
|
|
1073
1101
|
return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
|
|
1074
1102
|
}
|
|
1075
|
-
function
|
|
1103
|
+
function It(e) {
|
|
1076
1104
|
const t = [], s = /* @__PURE__ */ new Map();
|
|
1077
1105
|
e.forEach((n) => {
|
|
1078
1106
|
s.set(n._id, n);
|
|
@@ -1087,9 +1115,9 @@ function Tt(e) {
|
|
|
1087
1115
|
n._parent || o(n._id);
|
|
1088
1116
|
}), t;
|
|
1089
1117
|
}
|
|
1090
|
-
const
|
|
1091
|
-
if (
|
|
1092
|
-
return
|
|
1118
|
+
const Ko = (e, t, s, o) => {
|
|
1119
|
+
if (ye(t))
|
|
1120
|
+
return It(e);
|
|
1093
1121
|
function n(c, p) {
|
|
1094
1122
|
const l = c.filter((N) => N._parent === p);
|
|
1095
1123
|
let m = [...l];
|
|
@@ -1122,21 +1150,21 @@ const Go = (e, t, s, o) => {
|
|
|
1122
1150
|
e[r]._parent === s && p++, r++;
|
|
1123
1151
|
}
|
|
1124
1152
|
}
|
|
1125
|
-
return e.splice(r, 0, ...i),
|
|
1126
|
-
},
|
|
1127
|
-
const [, e] =
|
|
1153
|
+
return e.splice(r, 0, ...i), It(e);
|
|
1154
|
+
}, Jo = () => {
|
|
1155
|
+
const [, e] = ke();
|
|
1128
1156
|
return {
|
|
1129
1157
|
setNewBlocks: (t) => {
|
|
1130
1158
|
e(t);
|
|
1131
1159
|
},
|
|
1132
1160
|
addBlocks: (t, s, o) => {
|
|
1133
|
-
e((n) =>
|
|
1161
|
+
e((n) => qo(n, t, s, o));
|
|
1134
1162
|
},
|
|
1135
1163
|
removeBlocks: (t) => {
|
|
1136
|
-
e((s) =>
|
|
1164
|
+
e((s) => ht(s, t));
|
|
1137
1165
|
},
|
|
1138
1166
|
moveBlocks: (t, s, o) => {
|
|
1139
|
-
e((n) =>
|
|
1167
|
+
e((n) => Ko(n, t, s, o));
|
|
1140
1168
|
},
|
|
1141
1169
|
updateBlocksProps: (t) => {
|
|
1142
1170
|
e((s) => {
|
|
@@ -1144,26 +1172,26 @@ const Go = (e, t, s, o) => {
|
|
|
1144
1172
|
return s.map((n) => {
|
|
1145
1173
|
if (o.includes(n._id)) {
|
|
1146
1174
|
const i = oe(t, { _id: n._id });
|
|
1147
|
-
return { ...n, ...
|
|
1175
|
+
return { ...n, ...nt(i, "_id") };
|
|
1148
1176
|
}
|
|
1149
1177
|
return n;
|
|
1150
1178
|
});
|
|
1151
1179
|
});
|
|
1152
1180
|
}
|
|
1153
1181
|
};
|
|
1154
|
-
},
|
|
1155
|
-
const { add: e } =
|
|
1182
|
+
}, ke = () => O(ne), he = () => {
|
|
1183
|
+
const { add: e } = us(), [t] = ke(), {
|
|
1156
1184
|
setNewBlocks: s,
|
|
1157
1185
|
addBlocks: o,
|
|
1158
1186
|
removeBlocks: n,
|
|
1159
1187
|
moveBlocks: i,
|
|
1160
1188
|
updateBlocksProps: r
|
|
1161
|
-
} =
|
|
1189
|
+
} = Jo();
|
|
1162
1190
|
return {
|
|
1163
1191
|
moveBlocks: (v, j, L) => {
|
|
1164
1192
|
const F = I(v, (T) => {
|
|
1165
|
-
const V = t.find((
|
|
1166
|
-
return { _id: T, oldParent: V, oldPosition:
|
|
1193
|
+
const V = t.find((J) => J._id === T)._parent || null, K = t.filter((J) => V ? J._parent === V : !J._parent).map((J) => J._id).indexOf(T);
|
|
1194
|
+
return { _id: T, oldParent: V, oldPosition: K };
|
|
1167
1195
|
}), B = F.find(({ _id: T }) => T === v[0]);
|
|
1168
1196
|
B && B.oldParent === j && B.oldPosition === L || (i(v, j, L), e({
|
|
1169
1197
|
undo: () => ce(F, ({ _id: T, oldParent: G, oldPosition: V }) => {
|
|
@@ -1180,7 +1208,7 @@ const Go = (e, t, s, o) => {
|
|
|
1180
1208
|
},
|
|
1181
1209
|
removeBlocks: (v) => {
|
|
1182
1210
|
var B;
|
|
1183
|
-
const j = (B =
|
|
1211
|
+
const j = (B = te(v)) == null ? void 0 : B._parent, F = t.filter((T) => j ? T._parent === j : !T._parent).indexOf(te(v));
|
|
1184
1212
|
n(I(v, "_id")), e({
|
|
1185
1213
|
undo: () => o(v, j, F),
|
|
1186
1214
|
redo: () => n(I(v, "_id"))
|
|
@@ -1191,7 +1219,7 @@ const Go = (e, t, s, o) => {
|
|
|
1191
1219
|
if (L)
|
|
1192
1220
|
F = I(v, (B) => ({ _id: B, ...L }));
|
|
1193
1221
|
else {
|
|
1194
|
-
const B =
|
|
1222
|
+
const B = Ws(j);
|
|
1195
1223
|
F = I(v, (T) => {
|
|
1196
1224
|
const G = t.find((X) => X._id === T), V = { _id: T };
|
|
1197
1225
|
return ce(B, (X) => V[X] = G[X]), V;
|
|
@@ -1212,7 +1240,7 @@ const Go = (e, t, s, o) => {
|
|
|
1212
1240
|
});
|
|
1213
1241
|
}
|
|
1214
1242
|
};
|
|
1215
|
-
},
|
|
1243
|
+
}, Yo = ge(
|
|
1216
1244
|
"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",
|
|
1217
1245
|
{
|
|
1218
1246
|
variants: {
|
|
@@ -1231,10 +1259,10 @@ const Go = (e, t, s, o) => {
|
|
|
1231
1259
|
size: "default"
|
|
1232
1260
|
}
|
|
1233
1261
|
}
|
|
1234
|
-
),
|
|
1235
|
-
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1262
|
+
), Qo = f.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(Gt.Root, { ref: n, className: d(Yo({ variant: t, size: s, className: e })), ...o }));
|
|
1263
|
+
Qo.displayName = Gt.Root.displayName;
|
|
1264
|
+
const Xo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1265
|
+
Xe.Root,
|
|
1238
1266
|
{
|
|
1239
1267
|
className: d(
|
|
1240
1268
|
"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",
|
|
@@ -1243,7 +1271,7 @@ const Jo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1243
1271
|
...t,
|
|
1244
1272
|
ref: s,
|
|
1245
1273
|
children: /* @__PURE__ */ a.jsx(
|
|
1246
|
-
|
|
1274
|
+
Xe.Thumb,
|
|
1247
1275
|
{
|
|
1248
1276
|
className: d(
|
|
1249
1277
|
"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"
|
|
@@ -1252,8 +1280,8 @@ const Jo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1252
1280
|
)
|
|
1253
1281
|
}
|
|
1254
1282
|
));
|
|
1255
|
-
|
|
1256
|
-
const
|
|
1283
|
+
Xo.displayName = Xe.Root.displayName;
|
|
1284
|
+
const xt = ge(
|
|
1257
1285
|
"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",
|
|
1258
1286
|
{
|
|
1259
1287
|
variants: {
|
|
@@ -1277,16 +1305,16 @@ const ht = ge(
|
|
|
1277
1305
|
size: "default"
|
|
1278
1306
|
}
|
|
1279
1307
|
}
|
|
1280
|
-
),
|
|
1308
|
+
), Zo = f.forwardRef(
|
|
1281
1309
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
|
|
1282
|
-
const r = o ?
|
|
1283
|
-
return /* @__PURE__ */ a.jsx(r, { className: d(
|
|
1310
|
+
const r = o ? Ks : "button";
|
|
1311
|
+
return /* @__PURE__ */ a.jsx(r, { className: d(xt({ variant: t, size: s, className: e })), ref: i, ...n });
|
|
1284
1312
|
}
|
|
1285
1313
|
);
|
|
1286
|
-
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1289
|
-
const
|
|
1314
|
+
Zo.displayName = "Button";
|
|
1315
|
+
const si = me.Root, en = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: d("border-b", e), ...t }));
|
|
1316
|
+
en.displayName = "AccordionItem";
|
|
1317
|
+
const tn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
1290
1318
|
me.Trigger,
|
|
1291
1319
|
{
|
|
1292
1320
|
ref: o,
|
|
@@ -1297,12 +1325,12 @@ const Xo = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1297
1325
|
...s,
|
|
1298
1326
|
children: [
|
|
1299
1327
|
t,
|
|
1300
|
-
/* @__PURE__ */ a.jsx(
|
|
1328
|
+
/* @__PURE__ */ a.jsx(Js, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
1301
1329
|
]
|
|
1302
1330
|
}
|
|
1303
1331
|
) }));
|
|
1304
|
-
|
|
1305
|
-
const
|
|
1332
|
+
tn.displayName = me.Trigger.displayName;
|
|
1333
|
+
const sn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1306
1334
|
me.Content,
|
|
1307
1335
|
{
|
|
1308
1336
|
ref: o,
|
|
@@ -1314,8 +1342,8 @@ const Zo = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1314
1342
|
children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
|
|
1315
1343
|
}
|
|
1316
1344
|
));
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1345
|
+
sn.displayName = me.Content.displayName;
|
|
1346
|
+
const on = ge(
|
|
1319
1347
|
"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",
|
|
1320
1348
|
{
|
|
1321
1349
|
variants: {
|
|
@@ -1328,17 +1356,17 @@ const en = ge(
|
|
|
1328
1356
|
variant: "default"
|
|
1329
1357
|
}
|
|
1330
1358
|
}
|
|
1331
|
-
),
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1359
|
+
), nn = f.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(on({ variant: t }), e), ...s }));
|
|
1360
|
+
nn.displayName = "Alert";
|
|
1361
|
+
const an = f.forwardRef(
|
|
1334
1362
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
|
|
1335
1363
|
);
|
|
1336
|
-
|
|
1337
|
-
const
|
|
1364
|
+
an.displayName = "AlertTitle";
|
|
1365
|
+
const rn = f.forwardRef(
|
|
1338
1366
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
|
|
1339
1367
|
);
|
|
1340
|
-
|
|
1341
|
-
const
|
|
1368
|
+
rn.displayName = "AlertDescription";
|
|
1369
|
+
const ln = ge(
|
|
1342
1370
|
"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",
|
|
1343
1371
|
{
|
|
1344
1372
|
variants: {
|
|
@@ -1353,10 +1381,10 @@ const nn = ge(
|
|
|
1353
1381
|
variant: "default"
|
|
1354
1382
|
}
|
|
1355
1383
|
}
|
|
1356
|
-
),
|
|
1357
|
-
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1384
|
+
), oi = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(ln({ variant: t }), e), ...s }), ni = q.Root, ai = q.Trigger, fs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(q.Portal, { className: d(e), ...t });
|
|
1385
|
+
fs.displayName = q.Portal.displayName;
|
|
1386
|
+
const ms = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1387
|
+
q.Overlay,
|
|
1360
1388
|
{
|
|
1361
1389
|
className: d(
|
|
1362
1390
|
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -1366,11 +1394,11 @@ const us = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1366
1394
|
ref: s
|
|
1367
1395
|
}
|
|
1368
1396
|
));
|
|
1369
|
-
|
|
1370
|
-
const
|
|
1371
|
-
/* @__PURE__ */ a.jsx(
|
|
1397
|
+
ms.displayName = q.Overlay.displayName;
|
|
1398
|
+
const cn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(fs, { children: [
|
|
1399
|
+
/* @__PURE__ */ a.jsx(ms, {}),
|
|
1372
1400
|
/* @__PURE__ */ a.jsx(
|
|
1373
|
-
|
|
1401
|
+
q.Content,
|
|
1374
1402
|
{
|
|
1375
1403
|
ref: s,
|
|
1376
1404
|
className: d(
|
|
@@ -1381,29 +1409,29 @@ const an = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ds
|
|
|
1381
1409
|
}
|
|
1382
1410
|
)
|
|
1383
1411
|
] }));
|
|
1384
|
-
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
const
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1412
|
+
cn.displayName = q.Content.displayName;
|
|
1413
|
+
const dn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
1414
|
+
dn.displayName = "AlertDialogHeader";
|
|
1415
|
+
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 });
|
|
1416
|
+
un.displayName = "AlertDialogFooter";
|
|
1417
|
+
const fn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
|
|
1418
|
+
fn.displayName = q.Title.displayName;
|
|
1419
|
+
const mn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1420
|
+
mn.displayName = q.Description.displayName;
|
|
1421
|
+
const pn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Action, { ref: s, className: d(xt(), e), ...t }));
|
|
1422
|
+
pn.displayName = q.Action.displayName;
|
|
1423
|
+
const gn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1424
|
+
q.Cancel,
|
|
1397
1425
|
{
|
|
1398
1426
|
ref: s,
|
|
1399
|
-
className: d(
|
|
1427
|
+
className: d(xt({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
1400
1428
|
...t
|
|
1401
1429
|
}
|
|
1402
1430
|
));
|
|
1403
|
-
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1406
|
-
const
|
|
1431
|
+
gn.displayName = q.Cancel.displayName;
|
|
1432
|
+
const ps = P.Root, bn = P.Trigger, gs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(P.Portal, { className: d(e), ...t });
|
|
1433
|
+
gs.displayName = P.Portal.displayName;
|
|
1434
|
+
const bs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1407
1435
|
P.Overlay,
|
|
1408
1436
|
{
|
|
1409
1437
|
ref: s,
|
|
@@ -1414,9 +1442,9 @@ const ps = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1414
1442
|
...t
|
|
1415
1443
|
}
|
|
1416
1444
|
));
|
|
1417
|
-
|
|
1418
|
-
const
|
|
1419
|
-
/* @__PURE__ */ a.jsx(
|
|
1445
|
+
bs.displayName = P.Overlay.displayName;
|
|
1446
|
+
const vt = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(gs, { children: [
|
|
1447
|
+
/* @__PURE__ */ a.jsx(bs, {}),
|
|
1420
1448
|
/* @__PURE__ */ a.jsxs(
|
|
1421
1449
|
P.Content,
|
|
1422
1450
|
{
|
|
@@ -1429,19 +1457,19 @@ const xt = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1429
1457
|
children: [
|
|
1430
1458
|
t,
|
|
1431
1459
|
/* @__PURE__ */ a.jsxs(P.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: [
|
|
1432
|
-
/* @__PURE__ */ a.jsx(
|
|
1460
|
+
/* @__PURE__ */ a.jsx(at, { className: "h-4 w-4" }),
|
|
1433
1461
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1434
1462
|
] })
|
|
1435
1463
|
]
|
|
1436
1464
|
}
|
|
1437
1465
|
)
|
|
1438
1466
|
] }));
|
|
1439
|
-
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
const
|
|
1443
|
-
|
|
1444
|
-
const
|
|
1467
|
+
vt.displayName = P.Content.displayName;
|
|
1468
|
+
const hn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
1469
|
+
hn.displayName = "DialogHeader";
|
|
1470
|
+
const xn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
1471
|
+
xn.displayName = "DialogFooter";
|
|
1472
|
+
const vn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1445
1473
|
P.Title,
|
|
1446
1474
|
{
|
|
1447
1475
|
ref: s,
|
|
@@ -1449,32 +1477,32 @@ const bn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1449
1477
|
...t
|
|
1450
1478
|
}
|
|
1451
1479
|
));
|
|
1452
|
-
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
const
|
|
1480
|
+
vn.displayName = P.Title.displayName;
|
|
1481
|
+
const yn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1482
|
+
yn.displayName = P.Description.displayName;
|
|
1483
|
+
const wn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
|
|
1484
|
+
wn.displayName = "Card";
|
|
1485
|
+
const Nn = f.forwardRef(
|
|
1458
1486
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
1459
1487
|
);
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1488
|
+
Nn.displayName = "CardHeader";
|
|
1489
|
+
const kn = f.forwardRef(
|
|
1462
1490
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
|
|
1463
1491
|
);
|
|
1464
|
-
|
|
1465
|
-
const
|
|
1492
|
+
kn.displayName = "CardTitle";
|
|
1493
|
+
const Sn = f.forwardRef(
|
|
1466
1494
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
|
|
1467
1495
|
);
|
|
1468
|
-
|
|
1469
|
-
const
|
|
1496
|
+
Sn.displayName = "CardDescription";
|
|
1497
|
+
const jn = f.forwardRef(
|
|
1470
1498
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
|
|
1471
1499
|
);
|
|
1472
|
-
|
|
1473
|
-
const
|
|
1500
|
+
jn.displayName = "CardContent";
|
|
1501
|
+
const An = f.forwardRef(
|
|
1474
1502
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
|
|
1475
1503
|
);
|
|
1476
|
-
|
|
1477
|
-
const
|
|
1504
|
+
An.displayName = "CardFooter";
|
|
1505
|
+
const Cn = f.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1478
1506
|
"input",
|
|
1479
1507
|
{
|
|
1480
1508
|
type: t,
|
|
@@ -1486,10 +1514,10 @@ const Sn = f.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
|
|
|
1486
1514
|
...s
|
|
1487
1515
|
}
|
|
1488
1516
|
));
|
|
1489
|
-
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
-
const
|
|
1517
|
+
Cn.displayName = "Input";
|
|
1518
|
+
const Bn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), _n = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ht.Root, { ref: s, className: d(Bn(), e), ...t }));
|
|
1519
|
+
_n.displayName = Ht.Root.displayName;
|
|
1520
|
+
const Rn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1493
1521
|
"textarea",
|
|
1494
1522
|
{
|
|
1495
1523
|
className: d(
|
|
@@ -1500,14 +1528,14 @@ const Cn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1500
1528
|
...t
|
|
1501
1529
|
}
|
|
1502
1530
|
));
|
|
1503
|
-
|
|
1504
|
-
const
|
|
1531
|
+
Rn.displayName = "Textarea";
|
|
1532
|
+
const Pn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ue.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
|
|
1505
1533
|
/* @__PURE__ */ a.jsx(ue.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
1506
|
-
/* @__PURE__ */ a.jsx(
|
|
1534
|
+
/* @__PURE__ */ a.jsx(hs, {}),
|
|
1507
1535
|
/* @__PURE__ */ a.jsx(ue.Corner, {})
|
|
1508
1536
|
] }));
|
|
1509
|
-
|
|
1510
|
-
const
|
|
1537
|
+
Pn.displayName = ue.Root.displayName;
|
|
1538
|
+
const hs = f.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1511
1539
|
ue.ScrollAreaScrollbar,
|
|
1512
1540
|
{
|
|
1513
1541
|
ref: o,
|
|
@@ -1522,8 +1550,8 @@ const gs = f.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1522
1550
|
children: /* @__PURE__ */ a.jsx(ue.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1523
1551
|
}
|
|
1524
1552
|
));
|
|
1525
|
-
|
|
1526
|
-
const
|
|
1553
|
+
hs.displayName = ue.ScrollAreaScrollbar.displayName;
|
|
1554
|
+
const Tn = be.Root, xs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1527
1555
|
be.List,
|
|
1528
1556
|
{
|
|
1529
1557
|
ref: s,
|
|
@@ -1534,8 +1562,8 @@ const _n = be.Root, bs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
|
|
|
1534
1562
|
...t
|
|
1535
1563
|
}
|
|
1536
1564
|
));
|
|
1537
|
-
|
|
1538
|
-
const
|
|
1565
|
+
xs.displayName = be.List.displayName;
|
|
1566
|
+
const et = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1539
1567
|
be.Trigger,
|
|
1540
1568
|
{
|
|
1541
1569
|
ref: s,
|
|
@@ -1546,8 +1574,8 @@ const Ze = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1546
1574
|
...t
|
|
1547
1575
|
}
|
|
1548
1576
|
));
|
|
1549
|
-
|
|
1550
|
-
const
|
|
1577
|
+
et.displayName = be.Trigger.displayName;
|
|
1578
|
+
const tt = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1551
1579
|
be.Content,
|
|
1552
1580
|
{
|
|
1553
1581
|
ref: s,
|
|
@@ -1558,9 +1586,9 @@ const et = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1558
1586
|
...t
|
|
1559
1587
|
}
|
|
1560
1588
|
));
|
|
1561
|
-
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1589
|
+
tt.displayName = be.Content.displayName;
|
|
1590
|
+
const ri = Ne.Portal, ii = Ne.Provider, li = Ne.Root, ci = Ne.Trigger, In = f.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1591
|
+
Ne.Content,
|
|
1564
1592
|
{
|
|
1565
1593
|
ref: o,
|
|
1566
1594
|
sideOffset: t,
|
|
@@ -1571,9 +1599,9 @@ const ei = ye.Portal, ti = ye.Provider, si = ye.Root, oi = ye.Trigger, Rn = f.fo
|
|
|
1571
1599
|
...s
|
|
1572
1600
|
}
|
|
1573
1601
|
));
|
|
1574
|
-
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1602
|
+
In.displayName = Ne.Content.displayName;
|
|
1603
|
+
const di = Ce.Root, ui = Ce.Trigger, Mn = f.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Ce.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1604
|
+
Ce.Content,
|
|
1577
1605
|
{
|
|
1578
1606
|
ref: n,
|
|
1579
1607
|
align: t,
|
|
@@ -1585,8 +1613,8 @@ const ni = je.Root, ai = je.Trigger, Pn = f.forwardRef(({ className: e, align: t
|
|
|
1585
1613
|
...o
|
|
1586
1614
|
}
|
|
1587
1615
|
) }));
|
|
1588
|
-
|
|
1589
|
-
const
|
|
1616
|
+
Mn.displayName = Ce.Content.displayName;
|
|
1617
|
+
const fi = _.Menu, mi = _.Group, pi = _.Portal, gi = _.Sub, bi = _.RadioGroup, Dn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1590
1618
|
_.Root,
|
|
1591
1619
|
{
|
|
1592
1620
|
ref: s,
|
|
@@ -1594,8 +1622,8 @@ const ri = _.Menu, ii = _.Group, li = _.Portal, ci = _.Sub, di = _.RadioGroup, T
|
|
|
1594
1622
|
...t
|
|
1595
1623
|
}
|
|
1596
1624
|
));
|
|
1597
|
-
|
|
1598
|
-
const
|
|
1625
|
+
Dn.displayName = _.Root.displayName;
|
|
1626
|
+
const En = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1599
1627
|
_.Trigger,
|
|
1600
1628
|
{
|
|
1601
1629
|
ref: s,
|
|
@@ -1606,8 +1634,8 @@ const In = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1606
1634
|
...t
|
|
1607
1635
|
}
|
|
1608
1636
|
));
|
|
1609
|
-
|
|
1610
|
-
const
|
|
1637
|
+
En.displayName = _.Trigger.displayName;
|
|
1638
|
+
const On = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1611
1639
|
_.SubTrigger,
|
|
1612
1640
|
{
|
|
1613
1641
|
ref: n,
|
|
@@ -1619,12 +1647,12 @@ const Mn = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
|
|
|
1619
1647
|
...o,
|
|
1620
1648
|
children: [
|
|
1621
1649
|
s,
|
|
1622
|
-
/* @__PURE__ */ a.jsx(
|
|
1650
|
+
/* @__PURE__ */ a.jsx(rt, { className: "ml-auto h-4 w-4" })
|
|
1623
1651
|
]
|
|
1624
1652
|
}
|
|
1625
1653
|
));
|
|
1626
|
-
|
|
1627
|
-
const
|
|
1654
|
+
On.displayName = _.SubTrigger.displayName;
|
|
1655
|
+
const Ln = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1628
1656
|
_.SubContent,
|
|
1629
1657
|
{
|
|
1630
1658
|
ref: s,
|
|
@@ -1635,8 +1663,8 @@ const Dn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1635
1663
|
...t
|
|
1636
1664
|
}
|
|
1637
1665
|
));
|
|
1638
|
-
|
|
1639
|
-
const
|
|
1666
|
+
Ln.displayName = _.SubContent.displayName;
|
|
1667
|
+
const zn = f.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(_.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1640
1668
|
_.Content,
|
|
1641
1669
|
{
|
|
1642
1670
|
ref: i,
|
|
@@ -1650,8 +1678,8 @@ const En = f.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
|
|
|
1650
1678
|
...n
|
|
1651
1679
|
}
|
|
1652
1680
|
) }));
|
|
1653
|
-
|
|
1654
|
-
const
|
|
1681
|
+
zn.displayName = _.Content.displayName;
|
|
1682
|
+
const Vn = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1655
1683
|
_.Item,
|
|
1656
1684
|
{
|
|
1657
1685
|
ref: o,
|
|
@@ -1663,8 +1691,8 @@ const On = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1663
1691
|
...s
|
|
1664
1692
|
}
|
|
1665
1693
|
));
|
|
1666
|
-
|
|
1667
|
-
const
|
|
1694
|
+
Vn.displayName = _.Item.displayName;
|
|
1695
|
+
const $n = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1668
1696
|
_.CheckboxItem,
|
|
1669
1697
|
{
|
|
1670
1698
|
ref: n,
|
|
@@ -1680,8 +1708,8 @@ const Ln = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1680
1708
|
]
|
|
1681
1709
|
}
|
|
1682
1710
|
));
|
|
1683
|
-
|
|
1684
|
-
const
|
|
1711
|
+
$n.displayName = _.CheckboxItem.displayName;
|
|
1712
|
+
const Fn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1685
1713
|
_.RadioItem,
|
|
1686
1714
|
{
|
|
1687
1715
|
ref: o,
|
|
@@ -1691,13 +1719,13 @@ const zn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1691
1719
|
),
|
|
1692
1720
|
...s,
|
|
1693
1721
|
children: [
|
|
1694
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(_.ItemIndicator, { children: /* @__PURE__ */ a.jsx(
|
|
1722
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(_.ItemIndicator, { children: /* @__PURE__ */ a.jsx(it, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1695
1723
|
t
|
|
1696
1724
|
]
|
|
1697
1725
|
}
|
|
1698
1726
|
));
|
|
1699
|
-
|
|
1700
|
-
const
|
|
1727
|
+
Fn.displayName = _.RadioItem.displayName;
|
|
1728
|
+
const Un = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1701
1729
|
_.Label,
|
|
1702
1730
|
{
|
|
1703
1731
|
ref: o,
|
|
@@ -1705,12 +1733,12 @@ const Vn = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1705
1733
|
...s
|
|
1706
1734
|
}
|
|
1707
1735
|
));
|
|
1708
|
-
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1711
|
-
const
|
|
1712
|
-
|
|
1713
|
-
const
|
|
1736
|
+
Un.displayName = _.Label.displayName;
|
|
1737
|
+
const Wn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1738
|
+
Wn.displayName = _.Separator.displayName;
|
|
1739
|
+
const Gn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
1740
|
+
Gn.displayname = "MenubarShortcut";
|
|
1741
|
+
const hi = Ve.Root, xi = Ve.Trigger, Hn = f.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1714
1742
|
Ve.Content,
|
|
1715
1743
|
{
|
|
1716
1744
|
ref: n,
|
|
@@ -1723,8 +1751,8 @@ const ui = Ve.Root, fi = Ve.Trigger, Un = f.forwardRef(({ className: e, align: t
|
|
|
1723
1751
|
...o
|
|
1724
1752
|
}
|
|
1725
1753
|
));
|
|
1726
|
-
|
|
1727
|
-
const
|
|
1754
|
+
Hn.displayName = Ve.Content.displayName;
|
|
1755
|
+
const vi = U.Root, yi = U.Group, wi = U.Value, qn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1728
1756
|
U.Trigger,
|
|
1729
1757
|
{
|
|
1730
1758
|
ref: o,
|
|
@@ -1735,12 +1763,12 @@ const mi = U.Root, pi = U.Group, gi = U.Value, Wn = f.forwardRef(({ className: e
|
|
|
1735
1763
|
...s,
|
|
1736
1764
|
children: [
|
|
1737
1765
|
t,
|
|
1738
|
-
/* @__PURE__ */ a.jsx(U.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1766
|
+
/* @__PURE__ */ a.jsx(U.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Ys, { className: "h-4 w-4 opacity-50" }) })
|
|
1739
1767
|
]
|
|
1740
1768
|
}
|
|
1741
1769
|
));
|
|
1742
|
-
|
|
1743
|
-
const
|
|
1770
|
+
qn.displayName = U.Trigger.displayName;
|
|
1771
|
+
const Kn = f.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(U.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1744
1772
|
U.Content,
|
|
1745
1773
|
{
|
|
1746
1774
|
ref: n,
|
|
@@ -1763,10 +1791,10 @@ const Gn = f.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
1763
1791
|
)
|
|
1764
1792
|
}
|
|
1765
1793
|
) }));
|
|
1766
|
-
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
const
|
|
1794
|
+
Kn.displayName = U.Content.displayName;
|
|
1795
|
+
const Jn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", e), ...t }));
|
|
1796
|
+
Jn.displayName = U.Label.displayName;
|
|
1797
|
+
const Yn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1770
1798
|
U.Item,
|
|
1771
1799
|
{
|
|
1772
1800
|
ref: o,
|
|
@@ -1781,12 +1809,12 @@ const qn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1781
1809
|
]
|
|
1782
1810
|
}
|
|
1783
1811
|
));
|
|
1784
|
-
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1789
|
-
const
|
|
1812
|
+
Yn.displayName = U.Item.displayName;
|
|
1813
|
+
const Qn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1814
|
+
Qn.displayName = U.Separator.displayName;
|
|
1815
|
+
const Ni = P.Root, ki = P.Trigger, Si = P.Close, vs = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(P.Portal, { className: d(e), ...t });
|
|
1816
|
+
vs.displayName = P.Portal.displayName;
|
|
1817
|
+
const ys = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1790
1818
|
P.Overlay,
|
|
1791
1819
|
{
|
|
1792
1820
|
className: d(
|
|
@@ -1797,8 +1825,8 @@ const xs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1797
1825
|
ref: s
|
|
1798
1826
|
}
|
|
1799
1827
|
));
|
|
1800
|
-
|
|
1801
|
-
const
|
|
1828
|
+
ys.displayName = P.Overlay.displayName;
|
|
1829
|
+
const Xn = ge(
|
|
1802
1830
|
"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",
|
|
1803
1831
|
{
|
|
1804
1832
|
variants: {
|
|
@@ -1813,28 +1841,28 @@ const Jn = ge(
|
|
|
1813
1841
|
side: "right"
|
|
1814
1842
|
}
|
|
1815
1843
|
}
|
|
1816
|
-
),
|
|
1817
|
-
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1818
|
-
/* @__PURE__ */ a.jsx(
|
|
1819
|
-
/* @__PURE__ */ a.jsxs(P.Content, { ref: n, className: d(
|
|
1844
|
+
), Zn = f.forwardRef(
|
|
1845
|
+
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(vs, { children: [
|
|
1846
|
+
/* @__PURE__ */ a.jsx(ys, {}),
|
|
1847
|
+
/* @__PURE__ */ a.jsxs(P.Content, { ref: n, className: d(Xn({ side: e }), t), ...o, children: [
|
|
1820
1848
|
s,
|
|
1821
1849
|
/* @__PURE__ */ a.jsxs(P.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: [
|
|
1822
|
-
/* @__PURE__ */ a.jsx(
|
|
1850
|
+
/* @__PURE__ */ a.jsx(at, { className: "h-4 w-4" }),
|
|
1823
1851
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1824
1852
|
] })
|
|
1825
1853
|
] })
|
|
1826
1854
|
] })
|
|
1827
1855
|
);
|
|
1828
|
-
|
|
1829
|
-
const
|
|
1830
|
-
|
|
1831
|
-
const
|
|
1832
|
-
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1835
|
-
const
|
|
1836
|
-
|
|
1837
|
-
const
|
|
1856
|
+
Zn.displayName = P.Content.displayName;
|
|
1857
|
+
const ea = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
1858
|
+
ea.displayName = "SheetHeader";
|
|
1859
|
+
const ta = ({ 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 });
|
|
1860
|
+
ta.displayName = "SheetFooter";
|
|
1861
|
+
const sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
|
|
1862
|
+
sa.displayName = P.Title.displayName;
|
|
1863
|
+
const oa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1864
|
+
oa.displayName = P.Description.displayName;
|
|
1865
|
+
const ji = M.Root, Ai = M.Trigger, Ci = M.Group, Bi = M.Portal, _i = M.Sub, Ri = M.RadioGroup, na = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1838
1866
|
M.SubTrigger,
|
|
1839
1867
|
{
|
|
1840
1868
|
ref: n,
|
|
@@ -1846,12 +1874,12 @@ const vi = M.Root, yi = M.Trigger, wi = M.Group, Ni = M.Portal, ki = M.Sub, Si =
|
|
|
1846
1874
|
...o,
|
|
1847
1875
|
children: [
|
|
1848
1876
|
s,
|
|
1849
|
-
/* @__PURE__ */ a.jsx(
|
|
1877
|
+
/* @__PURE__ */ a.jsx(rt, { className: "ml-auto h-4 w-4" })
|
|
1850
1878
|
]
|
|
1851
1879
|
}
|
|
1852
1880
|
));
|
|
1853
|
-
|
|
1854
|
-
const
|
|
1881
|
+
na.displayName = M.SubTrigger.displayName;
|
|
1882
|
+
const aa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1855
1883
|
M.SubContent,
|
|
1856
1884
|
{
|
|
1857
1885
|
ref: s,
|
|
@@ -1862,8 +1890,8 @@ const sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1862
1890
|
...t
|
|
1863
1891
|
}
|
|
1864
1892
|
));
|
|
1865
|
-
|
|
1866
|
-
const
|
|
1893
|
+
aa.displayName = M.SubContent.displayName;
|
|
1894
|
+
const ra = f.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(M.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1867
1895
|
M.Content,
|
|
1868
1896
|
{
|
|
1869
1897
|
ref: o,
|
|
@@ -1876,8 +1904,8 @@ const oa = f.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
|
|
|
1876
1904
|
...s
|
|
1877
1905
|
}
|
|
1878
1906
|
) }));
|
|
1879
|
-
|
|
1880
|
-
const
|
|
1907
|
+
ra.displayName = M.Content.displayName;
|
|
1908
|
+
const ia = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1881
1909
|
M.Item,
|
|
1882
1910
|
{
|
|
1883
1911
|
ref: o,
|
|
@@ -1889,8 +1917,8 @@ const na = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1889
1917
|
...s
|
|
1890
1918
|
}
|
|
1891
1919
|
));
|
|
1892
|
-
|
|
1893
|
-
const
|
|
1920
|
+
ia.displayName = M.Item.displayName;
|
|
1921
|
+
const la = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1894
1922
|
M.CheckboxItem,
|
|
1895
1923
|
{
|
|
1896
1924
|
ref: n,
|
|
@@ -1906,8 +1934,8 @@ const aa = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1906
1934
|
]
|
|
1907
1935
|
}
|
|
1908
1936
|
));
|
|
1909
|
-
|
|
1910
|
-
const
|
|
1937
|
+
la.displayName = M.CheckboxItem.displayName;
|
|
1938
|
+
const ca = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1911
1939
|
M.RadioItem,
|
|
1912
1940
|
{
|
|
1913
1941
|
ref: o,
|
|
@@ -1917,13 +1945,13 @@ const ra = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1917
1945
|
),
|
|
1918
1946
|
...s,
|
|
1919
1947
|
children: [
|
|
1920
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(
|
|
1948
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(M.ItemIndicator, { children: /* @__PURE__ */ a.jsx(it, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1921
1949
|
t
|
|
1922
1950
|
]
|
|
1923
1951
|
}
|
|
1924
1952
|
));
|
|
1925
|
-
|
|
1926
|
-
const
|
|
1953
|
+
ca.displayName = M.RadioItem.displayName;
|
|
1954
|
+
const da = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1927
1955
|
M.Label,
|
|
1928
1956
|
{
|
|
1929
1957
|
ref: o,
|
|
@@ -1931,13 +1959,13 @@ const ia = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1931
1959
|
...s
|
|
1932
1960
|
}
|
|
1933
1961
|
));
|
|
1934
|
-
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1937
|
-
const
|
|
1938
|
-
|
|
1939
|
-
const
|
|
1940
|
-
|
|
1962
|
+
da.displayName = M.Label.displayName;
|
|
1963
|
+
const ua = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1964
|
+
ua.displayName = M.Separator.displayName;
|
|
1965
|
+
const fa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
1966
|
+
fa.displayName = "DropdownMenuShortcut";
|
|
1967
|
+
const ma = f.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1968
|
+
qt.Root,
|
|
1941
1969
|
{
|
|
1942
1970
|
ref: n,
|
|
1943
1971
|
decorative: s,
|
|
@@ -1946,28 +1974,28 @@ const da = f.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
1946
1974
|
...o
|
|
1947
1975
|
}
|
|
1948
1976
|
));
|
|
1949
|
-
|
|
1950
|
-
const
|
|
1951
|
-
let
|
|
1952
|
-
function
|
|
1953
|
-
return
|
|
1977
|
+
ma.displayName = qt.Root.displayName;
|
|
1978
|
+
const pa = 1, ga = 1e6;
|
|
1979
|
+
let He = 0;
|
|
1980
|
+
function ba() {
|
|
1981
|
+
return He = (He + 1) % Number.MAX_VALUE, He.toString();
|
|
1954
1982
|
}
|
|
1955
|
-
const
|
|
1956
|
-
if (
|
|
1983
|
+
const qe = /* @__PURE__ */ new Map(), Mt = (e) => {
|
|
1984
|
+
if (qe.has(e))
|
|
1957
1985
|
return;
|
|
1958
1986
|
const t = setTimeout(() => {
|
|
1959
|
-
|
|
1987
|
+
qe.delete(e), je({
|
|
1960
1988
|
type: "REMOVE_TOAST",
|
|
1961
1989
|
toastId: e
|
|
1962
1990
|
});
|
|
1963
|
-
},
|
|
1964
|
-
|
|
1965
|
-
},
|
|
1991
|
+
}, ga);
|
|
1992
|
+
qe.set(e, t);
|
|
1993
|
+
}, ha = (e, t) => {
|
|
1966
1994
|
switch (t.type) {
|
|
1967
1995
|
case "ADD_TOAST":
|
|
1968
1996
|
return {
|
|
1969
1997
|
...e,
|
|
1970
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
1998
|
+
toasts: [t.toast, ...e.toasts].slice(0, pa)
|
|
1971
1999
|
};
|
|
1972
2000
|
case "UPDATE_TOAST":
|
|
1973
2001
|
return {
|
|
@@ -1976,8 +2004,8 @@ const He = /* @__PURE__ */ new Map(), It = (e) => {
|
|
|
1976
2004
|
};
|
|
1977
2005
|
case "DISMISS_TOAST": {
|
|
1978
2006
|
const { toastId: s } = t;
|
|
1979
|
-
return s ?
|
|
1980
|
-
|
|
2007
|
+
return s ? Mt(s) : e.toasts.forEach((o) => {
|
|
2008
|
+
Mt(o.id);
|
|
1981
2009
|
}), {
|
|
1982
2010
|
...e,
|
|
1983
2011
|
toasts: e.toasts.map(
|
|
@@ -1997,19 +2025,19 @@ const He = /* @__PURE__ */ new Map(), It = (e) => {
|
|
|
1997
2025
|
toasts: e.toasts.filter((s) => s.id !== t.toastId)
|
|
1998
2026
|
};
|
|
1999
2027
|
}
|
|
2000
|
-
},
|
|
2001
|
-
let
|
|
2002
|
-
function
|
|
2003
|
-
|
|
2004
|
-
t(
|
|
2028
|
+
}, De = [];
|
|
2029
|
+
let Ee = { toasts: [] };
|
|
2030
|
+
function je(e) {
|
|
2031
|
+
Ee = ha(Ee, e), De.forEach((t) => {
|
|
2032
|
+
t(Ee);
|
|
2005
2033
|
});
|
|
2006
2034
|
}
|
|
2007
|
-
function
|
|
2008
|
-
const t =
|
|
2035
|
+
function xa({ ...e }) {
|
|
2036
|
+
const t = ba(), s = (n) => je({
|
|
2009
2037
|
type: "UPDATE_TOAST",
|
|
2010
2038
|
toast: { ...n, id: t }
|
|
2011
|
-
}), o = () =>
|
|
2012
|
-
return
|
|
2039
|
+
}), o = () => je({ type: "DISMISS_TOAST", toastId: t });
|
|
2040
|
+
return je({
|
|
2013
2041
|
type: "ADD_TOAST",
|
|
2014
2042
|
toast: {
|
|
2015
2043
|
...e,
|
|
@@ -2025,19 +2053,19 @@ function ga({ ...e }) {
|
|
|
2025
2053
|
update: s
|
|
2026
2054
|
};
|
|
2027
2055
|
}
|
|
2028
|
-
function
|
|
2029
|
-
const [e, t] = f.useState(
|
|
2030
|
-
return f.useEffect(() => (
|
|
2031
|
-
const s =
|
|
2032
|
-
s > -1 &&
|
|
2056
|
+
function ws() {
|
|
2057
|
+
const [e, t] = f.useState(Ee);
|
|
2058
|
+
return f.useEffect(() => (De.push(t), () => {
|
|
2059
|
+
const s = De.indexOf(t);
|
|
2060
|
+
s > -1 && De.splice(s, 1);
|
|
2033
2061
|
}), [e]), {
|
|
2034
2062
|
...e,
|
|
2035
|
-
toast:
|
|
2036
|
-
dismiss: (s) =>
|
|
2063
|
+
toast: xa,
|
|
2064
|
+
dismiss: (s) => je({ type: "DISMISS_TOAST", toastId: s })
|
|
2037
2065
|
};
|
|
2038
2066
|
}
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2067
|
+
const va = ee.Provider, Ns = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2068
|
+
ee.Viewport,
|
|
2041
2069
|
{
|
|
2042
2070
|
ref: s,
|
|
2043
2071
|
className: d(
|
|
@@ -2047,8 +2075,8 @@ const ba = Z.Provider, ys = f.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
2047
2075
|
...t
|
|
2048
2076
|
}
|
|
2049
2077
|
));
|
|
2050
|
-
|
|
2051
|
-
const
|
|
2078
|
+
Ns.displayName = ee.Viewport.displayName;
|
|
2079
|
+
const ya = ge(
|
|
2052
2080
|
"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",
|
|
2053
2081
|
{
|
|
2054
2082
|
variants: {
|
|
@@ -2061,10 +2089,10 @@ const ha = ge(
|
|
|
2061
2089
|
variant: "default"
|
|
2062
2090
|
}
|
|
2063
2091
|
}
|
|
2064
|
-
),
|
|
2065
|
-
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2092
|
+
), ks = f.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(ee.Root, { ref: o, className: d(ya({ variant: t }), e), ...s }));
|
|
2093
|
+
ks.displayName = ee.Root.displayName;
|
|
2094
|
+
const wa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2095
|
+
ee.Action,
|
|
2068
2096
|
{
|
|
2069
2097
|
ref: s,
|
|
2070
2098
|
className: d(
|
|
@@ -2074,9 +2102,9 @@ const xa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2074
2102
|
...t
|
|
2075
2103
|
}
|
|
2076
2104
|
));
|
|
2077
|
-
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2105
|
+
wa.displayName = ee.Action.displayName;
|
|
2106
|
+
const Ss = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2107
|
+
ee.Close,
|
|
2080
2108
|
{
|
|
2081
2109
|
ref: s,
|
|
2082
2110
|
className: d(
|
|
@@ -2085,29 +2113,29 @@ const Ns = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2085
2113
|
),
|
|
2086
2114
|
"toast-close": "",
|
|
2087
2115
|
...t,
|
|
2088
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2116
|
+
children: /* @__PURE__ */ a.jsx(at, { className: "h-4 w-4" })
|
|
2089
2117
|
}
|
|
2090
2118
|
));
|
|
2091
|
-
|
|
2092
|
-
const
|
|
2093
|
-
|
|
2094
|
-
const
|
|
2095
|
-
|
|
2096
|
-
function
|
|
2097
|
-
const { toasts: e } =
|
|
2098
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2099
|
-
e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(
|
|
2119
|
+
Ss.displayName = ee.Close.displayName;
|
|
2120
|
+
const js = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(ee.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
2121
|
+
js.displayName = ee.Title.displayName;
|
|
2122
|
+
const As = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(ee.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
|
|
2123
|
+
As.displayName = ee.Description.displayName;
|
|
2124
|
+
function Pi() {
|
|
2125
|
+
const { toasts: e } = ws();
|
|
2126
|
+
return /* @__PURE__ */ a.jsxs(va, { children: [
|
|
2127
|
+
e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(ks, { ...i, children: [
|
|
2100
2128
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
|
|
2101
|
-
s && /* @__PURE__ */ a.jsx(
|
|
2102
|
-
o && /* @__PURE__ */ a.jsx(
|
|
2129
|
+
s && /* @__PURE__ */ a.jsx(js, { children: s }),
|
|
2130
|
+
o && /* @__PURE__ */ a.jsx(As, { children: o })
|
|
2103
2131
|
] }),
|
|
2104
2132
|
n,
|
|
2105
|
-
/* @__PURE__ */ a.jsx(
|
|
2133
|
+
/* @__PURE__ */ a.jsx(Ss, {})
|
|
2106
2134
|
] }, t)),
|
|
2107
|
-
/* @__PURE__ */ a.jsx(
|
|
2135
|
+
/* @__PURE__ */ a.jsx(Ns, {})
|
|
2108
2136
|
] });
|
|
2109
2137
|
}
|
|
2110
|
-
const
|
|
2138
|
+
const Ti = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), Cs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2111
2139
|
Q,
|
|
2112
2140
|
{
|
|
2113
2141
|
ref: s,
|
|
@@ -2118,9 +2146,9 @@ const Ai = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2118
2146
|
...t
|
|
2119
2147
|
}
|
|
2120
2148
|
));
|
|
2121
|
-
|
|
2122
|
-
const
|
|
2123
|
-
/* @__PURE__ */ a.jsx(
|
|
2149
|
+
Cs.displayName = Q.displayName;
|
|
2150
|
+
const Ii = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ps, { ...t, children: /* @__PURE__ */ a.jsx(vt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Cs, { 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 }) }) }), Na = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2151
|
+
/* @__PURE__ */ a.jsx(Qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2124
2152
|
/* @__PURE__ */ a.jsx(
|
|
2125
2153
|
Q.Input,
|
|
2126
2154
|
{
|
|
@@ -2133,8 +2161,8 @@ const Ci = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(fs, { ...t, children
|
|
|
2133
2161
|
}
|
|
2134
2162
|
)
|
|
2135
2163
|
] }));
|
|
2136
|
-
|
|
2137
|
-
const
|
|
2164
|
+
Na.displayName = Q.Input.displayName;
|
|
2165
|
+
const ka = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2138
2166
|
Q.List,
|
|
2139
2167
|
{
|
|
2140
2168
|
ref: s,
|
|
@@ -2142,10 +2170,10 @@ const ya = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2142
2170
|
...t
|
|
2143
2171
|
}
|
|
2144
2172
|
));
|
|
2145
|
-
|
|
2146
|
-
const
|
|
2147
|
-
|
|
2148
|
-
const
|
|
2173
|
+
ka.displayName = Q.List.displayName;
|
|
2174
|
+
const Sa = f.forwardRef((e, t) => /* @__PURE__ */ a.jsx(Q.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
2175
|
+
Sa.displayName = Q.Empty.displayName;
|
|
2176
|
+
const ja = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2149
2177
|
Q.Group,
|
|
2150
2178
|
{
|
|
2151
2179
|
ref: s,
|
|
@@ -2156,10 +2184,10 @@ const Na = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2156
2184
|
...t
|
|
2157
2185
|
}
|
|
2158
2186
|
));
|
|
2159
|
-
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2162
|
-
const
|
|
2187
|
+
ja.displayName = Q.Group.displayName;
|
|
2188
|
+
const Aa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Q.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
|
|
2189
|
+
Aa.displayName = Q.Separator.displayName;
|
|
2190
|
+
const Ca = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2163
2191
|
Q.Item,
|
|
2164
2192
|
{
|
|
2165
2193
|
ref: s,
|
|
@@ -2170,10 +2198,10 @@ const Sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2170
2198
|
...t
|
|
2171
2199
|
}
|
|
2172
2200
|
));
|
|
2173
|
-
|
|
2174
|
-
const
|
|
2175
|
-
|
|
2176
|
-
const
|
|
2201
|
+
Ca.displayName = Q.Item.displayName;
|
|
2202
|
+
const Ba = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2203
|
+
Ba.displayName = "CommandShortcut";
|
|
2204
|
+
const Mi = D.Root, Di = D.Trigger, Ei = D.Group, Oi = D.Portal, Li = D.Sub, zi = D.RadioGroup, _a = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2177
2205
|
D.SubTrigger,
|
|
2178
2206
|
{
|
|
2179
2207
|
ref: n,
|
|
@@ -2185,12 +2213,12 @@ const Bi = D.Root, _i = D.Trigger, Ri = D.Group, Pi = D.Portal, Ti = D.Sub, Ii =
|
|
|
2185
2213
|
...o,
|
|
2186
2214
|
children: [
|
|
2187
2215
|
s,
|
|
2188
|
-
/* @__PURE__ */ a.jsx(
|
|
2216
|
+
/* @__PURE__ */ a.jsx(rt, { className: "ml-auto h-4 w-4" })
|
|
2189
2217
|
]
|
|
2190
2218
|
}
|
|
2191
2219
|
));
|
|
2192
|
-
|
|
2193
|
-
const
|
|
2220
|
+
_a.displayName = D.SubTrigger.displayName;
|
|
2221
|
+
const Ra = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2194
2222
|
D.SubContent,
|
|
2195
2223
|
{
|
|
2196
2224
|
ref: s,
|
|
@@ -2201,8 +2229,8 @@ const Ca = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2201
2229
|
...t
|
|
2202
2230
|
}
|
|
2203
2231
|
));
|
|
2204
|
-
|
|
2205
|
-
const
|
|
2232
|
+
Ra.displayName = D.SubContent.displayName;
|
|
2233
|
+
const Pa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(D.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2206
2234
|
D.Content,
|
|
2207
2235
|
{
|
|
2208
2236
|
ref: s,
|
|
@@ -2213,8 +2241,8 @@ const Ba = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(D.P
|
|
|
2213
2241
|
...t
|
|
2214
2242
|
}
|
|
2215
2243
|
) }));
|
|
2216
|
-
|
|
2217
|
-
const
|
|
2244
|
+
Pa.displayName = D.Content.displayName;
|
|
2245
|
+
const Ta = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2218
2246
|
D.Item,
|
|
2219
2247
|
{
|
|
2220
2248
|
ref: o,
|
|
@@ -2226,8 +2254,8 @@ const _a = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2226
2254
|
...s
|
|
2227
2255
|
}
|
|
2228
2256
|
));
|
|
2229
|
-
|
|
2230
|
-
const
|
|
2257
|
+
Ta.displayName = D.Item.displayName;
|
|
2258
|
+
const Ia = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2231
2259
|
D.CheckboxItem,
|
|
2232
2260
|
{
|
|
2233
2261
|
ref: n,
|
|
@@ -2243,8 +2271,8 @@ const Ra = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2243
2271
|
]
|
|
2244
2272
|
}
|
|
2245
2273
|
));
|
|
2246
|
-
|
|
2247
|
-
const
|
|
2274
|
+
Ia.displayName = D.CheckboxItem.displayName;
|
|
2275
|
+
const Ma = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2248
2276
|
D.RadioItem,
|
|
2249
2277
|
{
|
|
2250
2278
|
ref: o,
|
|
@@ -2254,13 +2282,13 @@ const Pa = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2254
2282
|
),
|
|
2255
2283
|
...s,
|
|
2256
2284
|
children: [
|
|
2257
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(D.ItemIndicator, { children: /* @__PURE__ */ a.jsx(
|
|
2285
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(D.ItemIndicator, { children: /* @__PURE__ */ a.jsx(it, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2258
2286
|
t
|
|
2259
2287
|
]
|
|
2260
2288
|
}
|
|
2261
2289
|
));
|
|
2262
|
-
|
|
2263
|
-
const
|
|
2290
|
+
Ma.displayName = D.RadioItem.displayName;
|
|
2291
|
+
const Da = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2264
2292
|
D.Label,
|
|
2265
2293
|
{
|
|
2266
2294
|
ref: o,
|
|
@@ -2268,15 +2296,15 @@ const Ta = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2268
2296
|
...s
|
|
2269
2297
|
}
|
|
2270
2298
|
));
|
|
2271
|
-
|
|
2272
|
-
const
|
|
2273
|
-
|
|
2274
|
-
const
|
|
2275
|
-
|
|
2276
|
-
const
|
|
2299
|
+
Da.displayName = D.Label.displayName;
|
|
2300
|
+
const Ea = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(D.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
2301
|
+
Ea.displayName = D.Separator.displayName;
|
|
2302
|
+
const Oa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2303
|
+
Oa.displayName = "ContextMenuShortcut";
|
|
2304
|
+
const La = (e) => {
|
|
2277
2305
|
try {
|
|
2278
2306
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2279
|
-
|
|
2307
|
+
eo.render(/* @__PURE__ */ a.jsx(Zs, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
2280
2308
|
let o = s.innerHTML;
|
|
2281
2309
|
setTimeout(() => t.removeChild(s), 100);
|
|
2282
2310
|
const i = new DOMParser().parseFromString(o, "image/svg+xml"), r = i.querySelector("svg");
|
|
@@ -2284,10 +2312,10 @@ const Da = (e) => {
|
|
|
2284
2312
|
} catch (t) {
|
|
2285
2313
|
return console.error(t), "";
|
|
2286
2314
|
}
|
|
2287
|
-
},
|
|
2315
|
+
}, Vi = ({ value: e, onChange: t }) => {
|
|
2288
2316
|
const s = (o) => {
|
|
2289
2317
|
t("<svg />");
|
|
2290
|
-
const n =
|
|
2318
|
+
const n = La(o);
|
|
2291
2319
|
t(n);
|
|
2292
2320
|
};
|
|
2293
2321
|
return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
|
|
@@ -2302,7 +2330,7 @@ const Da = (e) => {
|
|
|
2302
2330
|
}
|
|
2303
2331
|
),
|
|
2304
2332
|
/* @__PURE__ */ a.jsx(
|
|
2305
|
-
|
|
2333
|
+
Xs,
|
|
2306
2334
|
{
|
|
2307
2335
|
value: e ? "BiSolidGrid" : null,
|
|
2308
2336
|
onChange: s,
|
|
@@ -2338,37 +2366,37 @@ const Da = (e) => {
|
|
|
2338
2366
|
}
|
|
2339
2367
|
)
|
|
2340
2368
|
] });
|
|
2341
|
-
},
|
|
2369
|
+
}, za = st.lazy(() => import("./UnsplashImages-4WAWgA4s.js")), Va = st.lazy(() => import("./UploadImages-PONIHtn6.js")), Bs = ({
|
|
2342
2370
|
isModalView: e = !1,
|
|
2343
2371
|
onSelect: t = () => {
|
|
2344
2372
|
}
|
|
2345
2373
|
}) => {
|
|
2346
|
-
const [s, o] =
|
|
2374
|
+
const [s, o] = _e("upload");
|
|
2347
2375
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
2348
2376
|
/* @__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" }) }),
|
|
2349
|
-
/* @__PURE__ */ a.jsxs(
|
|
2350
|
-
/* @__PURE__ */ a.jsxs(
|
|
2351
|
-
/* @__PURE__ */ a.jsx(
|
|
2352
|
-
/* @__PURE__ */ a.jsx(
|
|
2377
|
+
/* @__PURE__ */ a.jsxs(Tn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
|
|
2378
|
+
/* @__PURE__ */ a.jsxs(xs, { className: "w-full", children: [
|
|
2379
|
+
/* @__PURE__ */ a.jsx(et, { value: "upload", className: "w-1/2", children: "Upload" }),
|
|
2380
|
+
/* @__PURE__ */ a.jsx(et, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
|
|
2353
2381
|
] }),
|
|
2354
|
-
s === "unsplash" ? /* @__PURE__ */ a.jsx(
|
|
2382
|
+
s === "unsplash" ? /* @__PURE__ */ a.jsx(tt, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(za, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(tt, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Va, { isModalView: e, onSelect: t }) }) })
|
|
2355
2383
|
] })
|
|
2356
2384
|
] });
|
|
2357
|
-
},
|
|
2385
|
+
}, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2358
2386
|
__proto__: null,
|
|
2359
|
-
default:
|
|
2360
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2361
|
-
const [s, o] =
|
|
2387
|
+
default: Bs
|
|
2388
|
+
}, Symbol.toStringTag, { value: "Module" })), Dt = ({ children: e, onSelect: t }) => {
|
|
2389
|
+
const [s, o] = _e(!1), n = (...i) => {
|
|
2362
2390
|
t.call(void 0, ...i), o(!1);
|
|
2363
2391
|
};
|
|
2364
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2365
|
-
/* @__PURE__ */ a.jsx(
|
|
2366
|
-
/* @__PURE__ */ a.jsx(
|
|
2392
|
+
return /* @__PURE__ */ a.jsxs(ps, { open: s, onOpenChange: (i) => o(i), children: [
|
|
2393
|
+
/* @__PURE__ */ a.jsx(bn, { asChild: !0, children: e }),
|
|
2394
|
+
/* @__PURE__ */ a.jsx(vt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Bs, { isModalView: !0, onSelect: n }) }) })
|
|
2367
2395
|
] });
|
|
2368
|
-
},
|
|
2369
|
-
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(
|
|
2396
|
+
}, Fi = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
2397
|
+
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Dt, { 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" }) }),
|
|
2370
2398
|
/* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
|
|
2371
|
-
/* @__PURE__ */ a.jsx(
|
|
2399
|
+
/* @__PURE__ */ a.jsx(Dt, { 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 || !ye(e) ? "Replace Image" : "Choose Image" }) }),
|
|
2372
2400
|
/* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
|
|
2373
2401
|
/* @__PURE__ */ a.jsx(
|
|
2374
2402
|
"input",
|
|
@@ -2382,7 +2410,7 @@ const Da = (e) => {
|
|
|
2382
2410
|
}
|
|
2383
2411
|
)
|
|
2384
2412
|
] })
|
|
2385
|
-
] }),
|
|
2413
|
+
] }), Ui = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
|
|
2386
2414
|
const i = {
|
|
2387
2415
|
toolbar: [
|
|
2388
2416
|
["bold", "italic", "underline", "strike", "blockquote"],
|
|
@@ -2406,7 +2434,7 @@ const Da = (e) => {
|
|
|
2406
2434
|
"image"
|
|
2407
2435
|
];
|
|
2408
2436
|
return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
|
|
2409
|
-
|
|
2437
|
+
to,
|
|
2410
2438
|
{
|
|
2411
2439
|
id: e,
|
|
2412
2440
|
value: s,
|
|
@@ -2418,9 +2446,9 @@ const Da = (e) => {
|
|
|
2418
2446
|
className: "mt-1 rounded-md"
|
|
2419
2447
|
}
|
|
2420
2448
|
);
|
|
2421
|
-
},
|
|
2422
|
-
const [o, n] =
|
|
2423
|
-
return
|
|
2449
|
+
}, Wi = ({ schema: e, formData: t, onChange: s }) => {
|
|
2450
|
+
const [o, n] = _e([]), i = ve("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
|
|
2451
|
+
return Be(() => {
|
|
2424
2452
|
(async () => {
|
|
2425
2453
|
const l = await i();
|
|
2426
2454
|
n(l || []);
|
|
@@ -2471,8 +2499,8 @@ const Da = (e) => {
|
|
|
2471
2499
|
] })
|
|
2472
2500
|
] })
|
|
2473
2501
|
] });
|
|
2474
|
-
},
|
|
2475
|
-
const [e] =
|
|
2502
|
+
}, Gi = () => {
|
|
2503
|
+
const [e] = ke(), [, t] = Fe(), { addBlocks: s } = he(), { toast: o } = ws(), n = $(
|
|
2476
2504
|
(r, c, p) => {
|
|
2477
2505
|
var v;
|
|
2478
2506
|
for (let j = 0; j < r.length; j++) {
|
|
@@ -2482,9 +2510,9 @@ const Da = (e) => {
|
|
|
2482
2510
|
for (let B = 0; B < F.length; B++)
|
|
2483
2511
|
F[B]._parent = r[j]._id;
|
|
2484
2512
|
}
|
|
2485
|
-
const l =
|
|
2513
|
+
const l = te(r);
|
|
2486
2514
|
let m, N;
|
|
2487
|
-
return c && (m = oe(e, { _id: c }), r[0]._parent = c, N = c), !(m ?
|
|
2515
|
+
return c && (m = oe(e, { _id: c }), r[0]._parent = c, N = c), !(m ? Rt(m._type, l._type) : !0) && m && (r[0]._parent = m._parent, N = m._parent), s(r, N, p), t([(v = te(r)) == null ? void 0 : v._id]), te(r);
|
|
2488
2516
|
},
|
|
2489
2517
|
[e, t]
|
|
2490
2518
|
);
|
|
@@ -2494,10 +2522,10 @@ const Da = (e) => {
|
|
|
2494
2522
|
const B = r.blocks;
|
|
2495
2523
|
return n(B, c, p);
|
|
2496
2524
|
}
|
|
2497
|
-
const l = de(), m =
|
|
2498
|
-
|
|
2499
|
-
if (
|
|
2500
|
-
const G = B.replace(
|
|
2525
|
+
const l = de(), m = as(r.props), N = [];
|
|
2526
|
+
Ft(m, (B, T) => {
|
|
2527
|
+
if (Ut(B, Ye)) {
|
|
2528
|
+
const G = B.replace(Ye, "");
|
|
2501
2529
|
N.push({
|
|
2502
2530
|
_id: G,
|
|
2503
2531
|
_type: "Slot",
|
|
@@ -2514,7 +2542,7 @@ const Da = (e) => {
|
|
|
2514
2542
|
...m
|
|
2515
2543
|
};
|
|
2516
2544
|
let v, j;
|
|
2517
|
-
if (c && (v = oe(e, { _id: c }), S._parent = c, j = c), !
|
|
2545
|
+
if (c && (v = oe(e, { _id: c }), S._parent = c, j = c), !jo(v == null ? void 0 : v._type, r.type)) {
|
|
2518
2546
|
o({
|
|
2519
2547
|
variant: "destructive",
|
|
2520
2548
|
title: "Error",
|
|
@@ -2522,29 +2550,29 @@ const Da = (e) => {
|
|
|
2522
2550
|
}), t([]);
|
|
2523
2551
|
return;
|
|
2524
2552
|
}
|
|
2525
|
-
!(v ?
|
|
2553
|
+
!(v ? Rt(v._type, r.type) : !0) && v && (S._parent = v._parent, j = v._parent);
|
|
2526
2554
|
const F = [S, ...N];
|
|
2527
2555
|
return s(F, j, p), t([S._id]), S;
|
|
2528
2556
|
},
|
|
2529
2557
|
[n, e, t]
|
|
2530
2558
|
), addPredefinedBlock: n };
|
|
2531
|
-
},
|
|
2559
|
+
}, Et = {
|
|
2532
2560
|
xs: 420,
|
|
2533
2561
|
sm: 620,
|
|
2534
2562
|
md: 768,
|
|
2535
2563
|
lg: 1024,
|
|
2536
2564
|
xl: 1280,
|
|
2537
2565
|
"2xl": 1536
|
|
2538
|
-
},
|
|
2539
|
-
function
|
|
2566
|
+
}, Ot = ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
2567
|
+
function $a(e, t) {
|
|
2540
2568
|
if (t === null)
|
|
2541
2569
|
return "baseClasses";
|
|
2542
2570
|
const s = t.mq;
|
|
2543
2571
|
if (s === "xs" || t.dark || t.mod !== "")
|
|
2544
2572
|
return "classes";
|
|
2545
|
-
let o = "baseClasses", n =
|
|
2573
|
+
let o = "baseClasses", n = Ot.indexOf(s);
|
|
2546
2574
|
for (; n > 0; ) {
|
|
2547
|
-
const i =
|
|
2575
|
+
const i = Ot[n - 1];
|
|
2548
2576
|
if (oe(e, {
|
|
2549
2577
|
mq: i,
|
|
2550
2578
|
property: t.property
|
|
@@ -2556,25 +2584,25 @@ function La(e, t) {
|
|
|
2556
2584
|
}
|
|
2557
2585
|
return o;
|
|
2558
2586
|
}
|
|
2559
|
-
const
|
|
2560
|
-
function
|
|
2587
|
+
const Lt = [];
|
|
2588
|
+
function Fa(e = "", t = "", s = []) {
|
|
2561
2589
|
e = e.trim().replace(/ +/g, "");
|
|
2562
2590
|
let o = E(
|
|
2563
|
-
I(e.split(" "),
|
|
2564
|
-
(l) => !
|
|
2565
|
-
), n = E(I(t.split(" "),
|
|
2591
|
+
I(e.split(" "), Me),
|
|
2592
|
+
(l) => !Je(l)
|
|
2593
|
+
), n = E(I(t.split(" "), Me), (l) => !Je(l));
|
|
2566
2594
|
n = E(
|
|
2567
2595
|
n,
|
|
2568
|
-
(l) => !Y(
|
|
2596
|
+
(l) => !Y(Lt, l.property)
|
|
2569
2597
|
);
|
|
2570
2598
|
const i = [], r = [];
|
|
2571
2599
|
ce(s, (l) => {
|
|
2572
|
-
const m =
|
|
2600
|
+
const m = Me(l), N = oe(o, Nt(m, ["dark", "mq", "mod", "property"]));
|
|
2573
2601
|
if (N && (o = E(
|
|
2574
2602
|
o,
|
|
2575
2603
|
(S) => S.fullCls !== (N == null ? void 0 : N.fullCls)
|
|
2576
|
-
)), i.push(m), m.mq === "xs" && !m.dark && m.mod === "" && (n = E(n, (S) => S.property !== m.property)),
|
|
2577
|
-
const S = oe(n,
|
|
2604
|
+
)), i.push(m), m.mq === "xs" && !m.dark && m.mod === "" && (n = E(n, (S) => S.property !== m.property)), $a(o, m) === "baseClasses" && !Y(Lt, m.property)) {
|
|
2605
|
+
const S = oe(n, Nt(m, ["property"]));
|
|
2578
2606
|
N && (n = E(
|
|
2579
2607
|
n,
|
|
2580
2608
|
(v) => v.fullCls !== (S == null ? void 0 : S.fullCls)
|
|
@@ -2586,36 +2614,36 @@ function za(e = "", t = "", s = []) {
|
|
|
2586
2614
|
}
|
|
2587
2615
|
});
|
|
2588
2616
|
const c = I(
|
|
2589
|
-
|
|
2617
|
+
kt([...o, ...i], (l) => Et[l.mq]),
|
|
2590
2618
|
"fullCls"
|
|
2591
2619
|
).join(" ");
|
|
2592
2620
|
return `${I(
|
|
2593
|
-
|
|
2621
|
+
kt([...n, ...r], (l) => Et[l.mq]),
|
|
2594
2622
|
"fullCls"
|
|
2595
2623
|
).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
|
|
2596
2624
|
}
|
|
2597
|
-
const
|
|
2598
|
-
|
|
2599
|
-
const
|
|
2625
|
+
const Te = y([]);
|
|
2626
|
+
Te.debugLabel = "selectedStylingBlocksAtom";
|
|
2627
|
+
const Ua = () => O(Te), Wa = (e) => {
|
|
2600
2628
|
const t = e.replace(fe, "").split(",");
|
|
2601
2629
|
return { baseClasses: t[0], classes: t[1] };
|
|
2602
|
-
},
|
|
2630
|
+
}, Ga = y(null, (e, t, { blockIds: s, newClasses: o }) => {
|
|
2603
2631
|
const n = E(
|
|
2604
|
-
e(
|
|
2632
|
+
e(ct),
|
|
2605
2633
|
(r) => (
|
|
2606
2634
|
// @ts-ignore
|
|
2607
2635
|
s.includes(e(r)._id)
|
|
2608
2636
|
)
|
|
2609
|
-
), i =
|
|
2637
|
+
), i = te(e(Te));
|
|
2610
2638
|
return I(n, (r) => {
|
|
2611
|
-
const c = e(r), p =
|
|
2639
|
+
const c = e(r), p = H(c, i.prop, `${fe},`), { baseClasses: l, classes: m } = Wa(p);
|
|
2612
2640
|
return {
|
|
2613
2641
|
ids: [c._id],
|
|
2614
|
-
props: { [i.prop]: `${fe}${
|
|
2642
|
+
props: { [i.prop]: `${fe}${Fa(m, l, o)}` }
|
|
2615
2643
|
};
|
|
2616
2644
|
});
|
|
2617
|
-
}),
|
|
2618
|
-
const e =
|
|
2645
|
+
}), Hi = () => {
|
|
2646
|
+
const e = Re(Ga), { updateBlocks: t, updateBlocksRuntime: s } = he();
|
|
2619
2647
|
return $(
|
|
2620
2648
|
(o, n, i = !1) => {
|
|
2621
2649
|
const r = e({ blockIds: o, newClasses: n });
|
|
@@ -2627,35 +2655,35 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2627
2655
|
},
|
|
2628
2656
|
[e]
|
|
2629
2657
|
);
|
|
2630
|
-
},
|
|
2631
|
-
const t = e(
|
|
2632
|
-
return
|
|
2633
|
-
}),
|
|
2634
|
-
const [e, t] = O(
|
|
2635
|
-
return
|
|
2658
|
+
}, Ha = () => O(os), _s = Pe("canvasWidth", 800), Rs = y((e) => {
|
|
2659
|
+
const t = e(_s);
|
|
2660
|
+
return Gs(t).toLowerCase();
|
|
2661
|
+
}), qi = () => {
|
|
2662
|
+
const [e, t] = O(_s), s = Z(Rs), [o, n] = Ha();
|
|
2663
|
+
return Be(() => {
|
|
2636
2664
|
o !== "xs" && n(s);
|
|
2637
2665
|
}, [s, o, n]), [e, s, t];
|
|
2638
|
-
},
|
|
2639
|
-
const [e, t] = O(
|
|
2666
|
+
}, qa = Pe("canvasZoom", 100), Ki = () => O(qa), Ps = y([]), Ka = () => {
|
|
2667
|
+
const [e, t] = O(Ps), s = Re(yt), o = $(
|
|
2640
2668
|
(n) => {
|
|
2641
2669
|
t(n), s([]);
|
|
2642
2670
|
},
|
|
2643
2671
|
[t, s]
|
|
2644
2672
|
);
|
|
2645
2673
|
return [e, o];
|
|
2646
|
-
},
|
|
2647
|
-
const [e, t] = O(
|
|
2674
|
+
}, yt = y([]), Ji = () => {
|
|
2675
|
+
const [e, t] = O(yt), s = Re(Ps), o = $(
|
|
2648
2676
|
(n) => {
|
|
2649
2677
|
t(n), s([]);
|
|
2650
2678
|
},
|
|
2651
2679
|
[t, s]
|
|
2652
2680
|
);
|
|
2653
2681
|
return [e, o];
|
|
2654
|
-
},
|
|
2655
|
-
const [e, t] = O(
|
|
2682
|
+
}, Ts = Pe("darkMode", !1), Yi = () => {
|
|
2683
|
+
const [e, t] = O(Ts);
|
|
2656
2684
|
return [e, t];
|
|
2657
|
-
},
|
|
2658
|
-
const [e] =
|
|
2685
|
+
}, Ja = () => {
|
|
2686
|
+
const [e] = ke(), [, t] = Fe(), { addBlocks: s } = he();
|
|
2659
2687
|
return $(
|
|
2660
2688
|
(o, n = null) => {
|
|
2661
2689
|
const i = [];
|
|
@@ -2664,51 +2692,51 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2664
2692
|
n || (n = c._parent);
|
|
2665
2693
|
const m = E(
|
|
2666
2694
|
e,
|
|
2667
|
-
(S) =>
|
|
2668
|
-
).indexOf(c) + 1, N =
|
|
2669
|
-
s(N, n, m), i.push(
|
|
2695
|
+
(S) => Vt(n) ? S._parent === n : !c._parent
|
|
2696
|
+
).indexOf(c) + 1, N = Ao(e, r, n);
|
|
2697
|
+
s(N, n, m), i.push(H(N, "0._id", ""));
|
|
2670
2698
|
}), t(i);
|
|
2671
2699
|
},
|
|
2672
2700
|
[e, t]
|
|
2673
2701
|
);
|
|
2674
|
-
},
|
|
2675
|
-
const [e, t] = O(
|
|
2702
|
+
}, Ya = y([]), Qi = () => {
|
|
2703
|
+
const [e, t] = O(Ya), s = $(
|
|
2676
2704
|
(o) => {
|
|
2677
|
-
t((n) => Y(n, o) ?
|
|
2705
|
+
t((n) => Y(n, o) ? $t(n, o) : [...n, o]);
|
|
2678
2706
|
},
|
|
2679
2707
|
[t]
|
|
2680
2708
|
);
|
|
2681
2709
|
return [e, t, s];
|
|
2682
|
-
},
|
|
2683
|
-
const e =
|
|
2710
|
+
}, Qa = y(""), Xa = () => O(Qa), Za = () => {
|
|
2711
|
+
const e = Z(ne);
|
|
2684
2712
|
return $(
|
|
2685
2713
|
(t, s) => {
|
|
2686
|
-
const o = I(e, (n) => (Y(t,
|
|
2714
|
+
const o = I(e, (n) => (Y(t, H(n, "_id")) && Ae(n, "_parent", s), n));
|
|
2687
2715
|
console.log("newBlocks", o);
|
|
2688
2716
|
},
|
|
2689
2717
|
[e]
|
|
2690
2718
|
);
|
|
2691
|
-
},
|
|
2719
|
+
}, Xi = () => {
|
|
2692
2720
|
console.warn("usePasteBlocks is not implemented");
|
|
2693
|
-
const e =
|
|
2721
|
+
const e = Z(yt), [t, s] = Ka(), o = Ja(), n = Za();
|
|
2694
2722
|
return {
|
|
2695
|
-
canPaste:
|
|
2723
|
+
canPaste: ot(
|
|
2696
2724
|
() => t.length > 0 || e.length > 0,
|
|
2697
2725
|
[e, t]
|
|
2698
2726
|
),
|
|
2699
2727
|
pasteBlocks: $(
|
|
2700
2728
|
(r) => {
|
|
2701
|
-
|
|
2729
|
+
ye(e) ? n(t, r) : o(e, r), s(() => []);
|
|
2702
2730
|
},
|
|
2703
2731
|
[t, e, o, n, s]
|
|
2704
2732
|
)
|
|
2705
2733
|
};
|
|
2706
|
-
},
|
|
2707
|
-
const [e, t] = O(
|
|
2734
|
+
}, er = y(!1), Zi = () => {
|
|
2735
|
+
const [e, t] = O(er);
|
|
2708
2736
|
return [e, t];
|
|
2709
|
-
},
|
|
2710
|
-
const n =
|
|
2711
|
-
e(
|
|
2737
|
+
}, tr = y(null, (e, t, { blockIds: s, fullClasses: o }) => {
|
|
2738
|
+
const n = te(e(Te)), i = E(
|
|
2739
|
+
e(ct),
|
|
2712
2740
|
(r) => (
|
|
2713
2741
|
// @ts-ignore
|
|
2714
2742
|
s.includes(e(r)._id)
|
|
@@ -2716,11 +2744,11 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2716
2744
|
);
|
|
2717
2745
|
return I(i, (r) => {
|
|
2718
2746
|
const c = e(r), p = o;
|
|
2719
|
-
let { classes: l, baseClasses: m } =
|
|
2747
|
+
let { classes: l, baseClasses: m } = So(H(c, n.prop, "styles:,"));
|
|
2720
2748
|
return ce(p, (N) => {
|
|
2721
2749
|
const S = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
2722
2750
|
l = l.replace(S, " ").replace(/ +/g, " ").trim();
|
|
2723
|
-
const v =
|
|
2751
|
+
const v = te(N.split(":"));
|
|
2724
2752
|
Y(["2xl", "xl", "lg", "md", "sm"], v) && p.push(N.split(":").pop().trim());
|
|
2725
2753
|
}), ce(p, (N) => {
|
|
2726
2754
|
const S = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
@@ -2732,8 +2760,8 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2732
2760
|
}
|
|
2733
2761
|
};
|
|
2734
2762
|
});
|
|
2735
|
-
}),
|
|
2736
|
-
const { updateBlocks: e } = he(), t =
|
|
2763
|
+
}), el = () => {
|
|
2764
|
+
const { updateBlocks: e } = he(), t = Re(tr);
|
|
2737
2765
|
return $(
|
|
2738
2766
|
(s, o) => {
|
|
2739
2767
|
const n = t({ blockIds: s, fullClasses: o });
|
|
@@ -2741,17 +2769,17 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2741
2769
|
},
|
|
2742
2770
|
[t]
|
|
2743
2771
|
);
|
|
2744
|
-
},
|
|
2745
|
-
const t =
|
|
2746
|
-
if (!t || t.blockId !==
|
|
2772
|
+
}, Is = y((e) => {
|
|
2773
|
+
const t = te(e(Te)), s = e($e);
|
|
2774
|
+
if (!t || t.blockId !== H(s, "_id", null))
|
|
2747
2775
|
return [];
|
|
2748
|
-
const n =
|
|
2749
|
-
return E(I(n.trim().split(" "),
|
|
2750
|
-
}),
|
|
2751
|
-
const t = e(
|
|
2752
|
-
let i = E(e(
|
|
2753
|
-
return
|
|
2754
|
-
}),
|
|
2776
|
+
const n = H(s, t.prop, `${fe},`).replace(fe, "").split(",").join(" ");
|
|
2777
|
+
return E(I(n.trim().split(" "), Me), (i) => !Je(i));
|
|
2778
|
+
}), tl = () => Z(Is), zt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, sr = y((e) => {
|
|
2779
|
+
const t = e(Rs), s = e(ft), o = e(Ts), n = or(t);
|
|
2780
|
+
let i = E(e(Is), { mod: s });
|
|
2781
|
+
return Ut(s, "_") || (i = E(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => zt[r.mq] - zt[c.mq]), o || (i = E(i, { dark: !1 })), i;
|
|
2782
|
+
}), or = (e) => {
|
|
2755
2783
|
let t = [];
|
|
2756
2784
|
switch (e) {
|
|
2757
2785
|
case "xs":
|
|
@@ -2777,7 +2805,7 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2777
2805
|
break;
|
|
2778
2806
|
}
|
|
2779
2807
|
return t;
|
|
2780
|
-
},
|
|
2808
|
+
}, sl = () => Z(sr), ol = () => O(ft), nl = () => {
|
|
2781
2809
|
const { updateBlocks: e } = he();
|
|
2782
2810
|
return $(
|
|
2783
2811
|
(t, s, o) => {
|
|
@@ -2785,7 +2813,7 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2785
2813
|
},
|
|
2786
2814
|
[e]
|
|
2787
2815
|
);
|
|
2788
|
-
},
|
|
2816
|
+
}, al = () => {
|
|
2789
2817
|
const { updateBlocksRuntime: e } = he();
|
|
2790
2818
|
return $(
|
|
2791
2819
|
(t, s) => {
|
|
@@ -2793,21 +2821,21 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2793
2821
|
},
|
|
2794
2822
|
[e]
|
|
2795
2823
|
);
|
|
2796
|
-
},
|
|
2824
|
+
}, Ms = {
|
|
2797
2825
|
name: "",
|
|
2798
2826
|
props: {},
|
|
2799
2827
|
modalProps: {},
|
|
2800
2828
|
backdropClose: !0
|
|
2801
|
-
},
|
|
2802
|
-
const [e, t] = O(
|
|
2829
|
+
}, nr = y(Ms), rl = () => {
|
|
2830
|
+
const [e, t] = O(nr), s = $(
|
|
2803
2831
|
(n, i = {}, r = {}) => {
|
|
2804
2832
|
t({ name: n, props: i, modalProps: r });
|
|
2805
2833
|
},
|
|
2806
2834
|
[t]
|
|
2807
2835
|
), o = $(
|
|
2808
2836
|
(...n) => {
|
|
2809
|
-
|
|
2810
|
-
})(...n), t(
|
|
2837
|
+
H(e, "props.onClose", () => {
|
|
2838
|
+
})(...n), t(Ms);
|
|
2811
2839
|
},
|
|
2812
2840
|
[t, e]
|
|
2813
2841
|
);
|
|
@@ -2816,47 +2844,51 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2816
2844
|
openModal: s,
|
|
2817
2845
|
closeModal: o
|
|
2818
2846
|
};
|
|
2819
|
-
},
|
|
2820
|
-
|
|
2821
|
-
const
|
|
2822
|
-
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2825
|
-
const
|
|
2826
|
-
|
|
2827
|
-
const
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2831
|
-
const
|
|
2832
|
-
|
|
2833
|
-
const
|
|
2834
|
-
|
|
2835
|
-
const
|
|
2836
|
-
|
|
2837
|
-
const
|
|
2838
|
-
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2841
|
-
const
|
|
2842
|
-
|
|
2843
|
-
const
|
|
2844
|
-
|
|
2845
|
-
const
|
|
2846
|
-
|
|
2847
|
+
}, il = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), Z(ne)), Ds = y(!1);
|
|
2848
|
+
Ds.debugLabel = "readOnlyModeAtom";
|
|
2849
|
+
const ar = y("online");
|
|
2850
|
+
ar.debugLabel = "networkModeAtom";
|
|
2851
|
+
const rr = y(!1);
|
|
2852
|
+
rr.debugLabel = "codeEditorOpenAtom";
|
|
2853
|
+
const ir = y(!1);
|
|
2854
|
+
ir.debugLabel = "editLayerNameAtom";
|
|
2855
|
+
const lr = y("");
|
|
2856
|
+
lr.debugLabel = "activeLanguageAtom";
|
|
2857
|
+
const cr = y("");
|
|
2858
|
+
cr.debugLabel = "primaryLanguageAtom";
|
|
2859
|
+
const dr = y(null);
|
|
2860
|
+
dr.debugLabel = "canvasIframeAtom";
|
|
2861
|
+
const ur = y("outline");
|
|
2862
|
+
ur.debugLabel = "activePanelAtom";
|
|
2863
|
+
const fr = y("");
|
|
2864
|
+
fr.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
2865
|
+
const Es = y({ undoCount: 0, redoCount: 0 });
|
|
2866
|
+
Es.debugLabel = "historyStatesAtom";
|
|
2867
|
+
const mr = y("");
|
|
2868
|
+
mr.debugLabel = "inlineEditingActiveAtom";
|
|
2869
|
+
const pr = y(!1);
|
|
2870
|
+
pr.debugLabel = "draggingFlagAtom";
|
|
2871
|
+
const gr = y("");
|
|
2872
|
+
gr.debugLabel = "draggedBlockIdAtom";
|
|
2873
|
+
const br = y(null);
|
|
2874
|
+
br.debugLabel = "treeRefAtom";
|
|
2875
|
+
const hr = y({});
|
|
2876
|
+
hr.debugLabel = "canvasSettingsAtom";
|
|
2877
|
+
const ll = () => Z(Ds), xr = y(""), vr = y(null), cl = () => O(xr), dl = () => O(vr), yr = Pe("selectedBreakpoints", ["XS", "MD", "XL"]), ul = () => {
|
|
2878
|
+
const [e, t] = O(yr);
|
|
2847
2879
|
return [e, t];
|
|
2848
|
-
},
|
|
2849
|
-
const e =
|
|
2880
|
+
}, fl = () => {
|
|
2881
|
+
const e = Re(Es), { clear: t } = us(), [, s] = Fe(), [, o] = Xa(), [, n] = Ua();
|
|
2850
2882
|
return () => {
|
|
2851
2883
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
2852
2884
|
};
|
|
2853
|
-
},
|
|
2854
|
-
const [e, t] =
|
|
2855
|
-
return
|
|
2885
|
+
}, wr = y([]), ml = () => {
|
|
2886
|
+
const [e, t] = _e(!1), [s, o] = O(wr), n = ve("getUILibraryBlocks", () => []);
|
|
2887
|
+
return Be(() => {
|
|
2856
2888
|
(async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
|
|
2857
2889
|
}, []), { data: s, isLoading: e };
|
|
2858
|
-
},
|
|
2859
|
-
const [e, t] =
|
|
2890
|
+
}, pl = () => {
|
|
2891
|
+
const [e, t] = _e(null), s = $(async (o) => {
|
|
2860
2892
|
if (!(navigator != null && navigator.clipboard))
|
|
2861
2893
|
return console.warn("Clipboard not supported"), !1;
|
|
2862
2894
|
try {
|
|
@@ -2868,213 +2900,217 @@ const sl = () => te(Is), mr = w(""), pr = w(null), ol = () => O(mr), nl = () =>
|
|
|
2868
2900
|
return [e, s];
|
|
2869
2901
|
};
|
|
2870
2902
|
export {
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
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
|
-
|
|
2903
|
+
sl as $,
|
|
2904
|
+
ni as A,
|
|
2905
|
+
Zo as B,
|
|
2906
|
+
bt as C,
|
|
2907
|
+
Gr as D,
|
|
2908
|
+
ke as E,
|
|
2909
|
+
rs as F,
|
|
2910
|
+
Yt as G,
|
|
2911
|
+
ds as H,
|
|
2912
|
+
Pi as I,
|
|
2913
|
+
ll as J,
|
|
2914
|
+
rl as K,
|
|
2915
|
+
Gi as L,
|
|
2916
|
+
Hi as M,
|
|
2917
|
+
qi as N,
|
|
2918
|
+
Ki as O,
|
|
2919
|
+
Ji as P,
|
|
2920
|
+
pl as Q,
|
|
2921
|
+
$o as R,
|
|
2922
|
+
Ti as S,
|
|
2923
|
+
ii as T,
|
|
2924
|
+
Ka as U,
|
|
2925
|
+
Yi as V,
|
|
2926
|
+
Go as W,
|
|
2927
|
+
Qi as X,
|
|
2928
|
+
Xa as Y,
|
|
2929
|
+
Xi as Z,
|
|
2930
|
+
el as _,
|
|
2931
|
+
ai as a,
|
|
2932
|
+
ka as a$,
|
|
2933
|
+
tl as a0,
|
|
2934
|
+
Jr as a1,
|
|
2935
|
+
Ha as a2,
|
|
2936
|
+
ml as a3,
|
|
2937
|
+
ol as a4,
|
|
2938
|
+
nl as a5,
|
|
2939
|
+
al as a6,
|
|
2940
|
+
Kr as a7,
|
|
2941
|
+
il as a8,
|
|
2942
|
+
cl as a9,
|
|
2943
|
+
ma as aA,
|
|
2944
|
+
_n as aB,
|
|
2945
|
+
Xo as aC,
|
|
2946
|
+
hi as aD,
|
|
2947
|
+
xi as aE,
|
|
2948
|
+
Hn as aF,
|
|
2949
|
+
ji as aG,
|
|
2950
|
+
Ai as aH,
|
|
2951
|
+
ra as aI,
|
|
2952
|
+
da as aJ,
|
|
2953
|
+
ua as aK,
|
|
2954
|
+
la as aL,
|
|
2923
2955
|
he as aM,
|
|
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
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2956
|
+
pr as aN,
|
|
2957
|
+
mr as aO,
|
|
2958
|
+
br as aP,
|
|
2959
|
+
ir as aQ,
|
|
2960
|
+
gr as aR,
|
|
2961
|
+
Hr as aS,
|
|
2962
|
+
qr as aT,
|
|
2963
|
+
ar as aU,
|
|
2964
|
+
dr as aV,
|
|
2965
|
+
di as aW,
|
|
2966
|
+
ui as aX,
|
|
2967
|
+
Mn as aY,
|
|
2968
|
+
Cs as aZ,
|
|
2969
|
+
Na as a_,
|
|
2970
|
+
dl as aa,
|
|
2971
|
+
ul as ab,
|
|
2972
|
+
Ua as ac,
|
|
2973
|
+
ps as ad,
|
|
2974
|
+
vt as ae,
|
|
2975
|
+
hn as af,
|
|
2976
|
+
vn as ag,
|
|
2977
|
+
yn as ah,
|
|
2978
|
+
pn as ai,
|
|
2979
|
+
vi as aj,
|
|
2980
|
+
qn as ak,
|
|
2981
|
+
wi as al,
|
|
2982
|
+
Kn as am,
|
|
2983
|
+
Yn as an,
|
|
2984
|
+
bn as ao,
|
|
2985
|
+
li as ap,
|
|
2986
|
+
ci as aq,
|
|
2987
|
+
In as ar,
|
|
2988
|
+
oi as as,
|
|
2989
|
+
ur as at,
|
|
2990
|
+
Tn as au,
|
|
2991
|
+
xs as av,
|
|
2992
|
+
et as aw,
|
|
2993
|
+
tt as ax,
|
|
2994
|
+
yi as ay,
|
|
2995
|
+
Jn as az,
|
|
2996
|
+
cn as b,
|
|
2965
2997
|
Qn as b$,
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
2998
|
+
Sa as b0,
|
|
2999
|
+
ja as b1,
|
|
3000
|
+
Ca as b2,
|
|
3001
|
+
xn as b3,
|
|
3002
|
+
Tt as b4,
|
|
3003
|
+
Pt as b5,
|
|
3004
|
+
Ui as b6,
|
|
3005
|
+
Vi as b7,
|
|
3006
|
+
Fi as b8,
|
|
3007
|
+
Wi as b9,
|
|
3008
|
+
Di as bA,
|
|
3009
|
+
Rt as bB,
|
|
3010
|
+
Co as bC,
|
|
3011
|
+
Zr as bD,
|
|
3012
|
+
Qo as bE,
|
|
3013
|
+
Yo as bF,
|
|
3014
|
+
xt as bG,
|
|
3015
|
+
rn as bH,
|
|
3016
|
+
ln as bI,
|
|
3017
|
+
kn as bJ,
|
|
3018
|
+
hs as bK,
|
|
3019
|
+
Dn as bL,
|
|
3020
|
+
fi as bM,
|
|
3021
|
+
En as bN,
|
|
3022
|
+
zn as bO,
|
|
3023
|
+
Vn as bP,
|
|
3024
|
+
Wn as bQ,
|
|
3025
|
+
Un as bR,
|
|
3026
|
+
$n as bS,
|
|
3027
|
+
bi as bT,
|
|
3028
|
+
Fn as bU,
|
|
3029
|
+
pi as bV,
|
|
3030
|
+
Ln as bW,
|
|
3031
|
+
On as bX,
|
|
3032
|
+
mi as bY,
|
|
3033
|
+
gi as bZ,
|
|
3034
|
+
Gn as b_,
|
|
3035
|
+
Yr as ba,
|
|
3036
|
+
si as bb,
|
|
3037
|
+
en as bc,
|
|
3038
|
+
tn as bd,
|
|
3039
|
+
sn as be,
|
|
3040
|
+
Cn as bf,
|
|
3041
|
+
ri as bg,
|
|
3042
|
+
Pn as bh,
|
|
3043
|
+
Ci as bi,
|
|
3044
|
+
ia as bj,
|
|
3045
|
+
fa as bk,
|
|
3046
|
+
Qr as bl,
|
|
3047
|
+
ws as bm,
|
|
3048
|
+
hr as bn,
|
|
3049
|
+
wn as bo,
|
|
3050
|
+
Nn as bp,
|
|
3051
|
+
Sn as bq,
|
|
3052
|
+
jn as br,
|
|
3053
|
+
Rn as bs,
|
|
3054
|
+
An as bt,
|
|
3055
|
+
nn as bu,
|
|
3056
|
+
an as bv,
|
|
3057
|
+
fr as bw,
|
|
3058
|
+
Ta as bx,
|
|
3059
|
+
Pa as by,
|
|
3060
|
+
Mi as bz,
|
|
3061
|
+
dn as c,
|
|
3062
|
+
Ni as c0,
|
|
3063
|
+
ki as c1,
|
|
3064
|
+
Si as c2,
|
|
3065
|
+
Zn as c3,
|
|
3066
|
+
ea as c4,
|
|
3067
|
+
ta as c5,
|
|
3036
3068
|
sa as c6,
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3069
|
+
oa as c7,
|
|
3070
|
+
ca as c8,
|
|
3071
|
+
Bi as c9,
|
|
3072
|
+
_i as ca,
|
|
3073
|
+
aa as cb,
|
|
3074
|
+
na as cc,
|
|
3075
|
+
Ri as cd,
|
|
3076
|
+
ha as ce,
|
|
3077
|
+
xa as cf,
|
|
3078
|
+
Ii as cg,
|
|
3079
|
+
Ba as ch,
|
|
3080
|
+
Aa as ci,
|
|
3081
|
+
Ia as cj,
|
|
3082
|
+
Ma as ck,
|
|
3083
|
+
Da as cl,
|
|
3084
|
+
Ea as cm,
|
|
3085
|
+
Oa as cn,
|
|
3086
|
+
Ei as co,
|
|
3087
|
+
Oi as cp,
|
|
3088
|
+
Li as cq,
|
|
3089
|
+
Ra as cr,
|
|
3090
|
+
_a as cs,
|
|
3091
|
+
zi as ct,
|
|
3092
|
+
$i as cu,
|
|
3093
|
+
fn as d,
|
|
3094
|
+
mn as e,
|
|
3095
|
+
un as f,
|
|
3096
|
+
gn as g,
|
|
3061
3097
|
ve as h,
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3098
|
+
Kt as i,
|
|
3099
|
+
Ur as j,
|
|
3100
|
+
ro as k,
|
|
3101
|
+
re as l,
|
|
3102
|
+
po as m,
|
|
3103
|
+
mo as n,
|
|
3104
|
+
Pe as o,
|
|
3105
|
+
Wr as p,
|
|
3106
|
+
Zi as q,
|
|
3107
|
+
Fe as r,
|
|
3108
|
+
ti as s,
|
|
3109
|
+
Ja as t,
|
|
3110
|
+
fl as u,
|
|
3111
|
+
us as v,
|
|
3112
|
+
ne as w,
|
|
3113
|
+
ko as x,
|
|
3114
|
+
Ho as y,
|
|
3115
|
+
ei as z
|
|
3080
3116
|
};
|