@chaibuilder/sdk 1.2.27 → 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-ksZjjn0k.js → AddBlocks-0sW6gkCO.js} +8 -7
- package/dist/AddBlocks-YJPdSqcY.cjs +1 -0
- package/dist/{BrandingOptions-T_kbQFQv.js → BrandingOptions--vgnQvD1.js} +11 -10
- package/dist/BrandingOptions-RDn_Nhcq.cjs +1 -0
- package/dist/CanvasArea-41QoxuLf.cjs +55 -0
- package/dist/CanvasArea-aii0PyU-.js +1179 -0
- package/dist/{Class-3k8xjeiM.js → Class-6Hz2KzYb.js} +1 -1
- package/dist/{Class-MmCxz2Ay.cjs → Class-Zc8hpE7f.cjs} +1 -1
- package/dist/{CurrentPage-0eeU1V_c.js → CurrentPage-06Iacwyp.js} +9 -8
- package/dist/CurrentPage-2W1pdAOG.cjs +1 -0
- 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-WQdaNvb8.js → MODIFIERS-cBT31iqE.js} +7 -19
- package/dist/PagesPanel-PBFzPSNY.cjs +1 -0
- package/dist/{PagesPanel-rYN28QpN.js → PagesPanel-_1CDTUdE.js} +9 -8
- package/dist/ProjectPanel-755bbzEQ.cjs +1 -0
- package/dist/{ProjectPanel-ivFOhdcz.js → ProjectPanel-pUMeIiUW.js} +14 -13
- package/dist/STRINGS--j49GZJP.js +7 -0
- package/dist/STRINGS-gPz7CUOk.cjs +1 -0
- package/dist/Settings-G9Xtqr7n.cjs +1 -0
- package/dist/{Settings-XWmKzRl9.js → Settings-dnO-s6x0.js} +596 -559
- package/dist/SidePanels-Gq2LdVuY.cjs +1 -0
- package/dist/{SidePanels-ODktnGbC.js → SidePanels-VxSXXkt_.js} +62 -61
- package/dist/{Topbar-Yunooh00.js → Topbar-5zbOSGF6.js} +6 -5
- package/dist/Topbar-J2tb4SA1.cjs +1 -0
- package/dist/{UnsplashImages-QMl0bxix.js → UnsplashImages-4WAWgA4s.js} +20 -19
- package/dist/UnsplashImages-XwjKheek.cjs +1 -0
- package/dist/{UploadImages-Si-A26bc.js → UploadImages-PONIHtn6.js} +11 -10
- package/dist/UploadImages-y7LAQVrT.cjs +1 -0
- package/dist/{add-page-modal-U7AUUrI1.js → add-page-modal-4VrFvgEm.js} +25 -24
- package/dist/add-page-modal-jWcp0w-S.cjs +1 -0
- package/dist/confirm-alert-4OQlXZTJ.cjs +1 -0
- package/dist/{confirm-alert-kV5-c70T.js → confirm-alert-j7b88hsW.js} +6 -5
- package/dist/core.cjs +1 -1
- package/dist/core.js +47 -46
- package/dist/defaultTheme-7VqqhOcp.cjs +1 -0
- package/dist/{defaultTheme-gunU_Fe5.js → defaultTheme-D8B4-wHO.js} +1 -1
- package/dist/{delete-page-modal-UCBpdjLe.js → delete-page-modal--xHHdRAq.js} +9 -8
- package/dist/delete-page-modal-p6b0upz4.cjs +1 -0
- package/dist/email.cjs +1 -1
- package/dist/email.js +7 -6
- package/dist/{form-zmlTjM9j.js → form-_GJb9YcB.js} +1 -1
- package/dist/{form-Ap63cNec.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-lOJfSheQ.js → index-0QJwevON.js} +2 -2
- package/dist/index-12HbDLon.cjs +1 -0
- package/dist/{index-f0AbmoYY.js → index-Eb5zyh2F.js} +4 -4
- package/dist/{index-Qk028f-N.cjs → index-KArv7pNz.cjs} +1 -1
- package/dist/{index-CFUoB97-.js → index-UHaqEdws.js} +993 -956
- package/dist/{index-l19JVVXI.cjs → index-mlMvwv2b.cjs} +2 -2
- package/dist/lib.cjs +3 -3
- package/dist/lib.js +17 -16
- package/dist/{page-viewer-jOwy--9A.js → page-viewer-00Xx4u8e.js} +10 -9
- package/dist/page-viewer-SZNm7b1n.cjs +1 -0
- package/dist/project-general-setting-C_pHNuZE.cjs +1 -0
- package/dist/{project-general-setting-3N8HZ2fe.js → project-general-setting-asDxlmhZ.js} +10 -9
- package/dist/{project-seo-setting-bSiNgO_1.js → project-seo-setting-DuAaDfDR.js} +7 -6
- package/dist/project-seo-setting-q2953ybQ.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +14 -13
- package/dist/{single-page-detail--AZlZ-pC.js → single-page-detail-UNxXvhl4.js} +17 -16
- package/dist/single-page-detail-oqj6zsLU.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +8 -7
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +134 -133
- package/dist/useCanvasSettings-MR0Glu1b.cjs +1 -0
- package/dist/useCanvasSettings-R6br4J9i.js +6 -0
- package/dist/web-blocks.cjs +33 -1
- package/dist/web-blocks.js +603 -429
- package/package.json +1 -1
- package/dist/AddBlocks-S-4jzdWv.cjs +0 -1
- package/dist/BrandingOptions-EMCT0Wa3.cjs +0 -1
- package/dist/CanvasArea-SDzbubar.cjs +0 -55
- package/dist/CanvasArea-rhOeubmu.js +0 -950
- package/dist/CurrentPage-aTjWjc3o.cjs +0 -1
- package/dist/ListTree-Muu4rAtp.js +0 -308
- package/dist/ListTree-SWsqdfcG.cjs +0 -1
- package/dist/MODIFIERS-9EwxLM8V.cjs +0 -1
- package/dist/PagesPanel-n3x-0ozR.cjs +0 -1
- package/dist/ProjectPanel-pBePMOta.cjs +0 -1
- package/dist/Settings-JRyJayf5.cjs +0 -1
- package/dist/SidePanels-BtUeo6M9.cjs +0 -1
- package/dist/Topbar-QMeD3hvq.cjs +0 -1
- package/dist/UnsplashImages-05JR8oIu.cjs +0 -1
- package/dist/UploadImages-OgSN1HVt.cjs +0 -1
- package/dist/add-page-modal-9pTKItY-.cjs +0 -1
- package/dist/confirm-alert-DhRc-Zcd.cjs +0 -1
- package/dist/defaultTheme-7Lk2zq60.cjs +0 -1
- package/dist/delete-page-modal-4s-6AIy4.cjs +0 -1
- package/dist/html-to-json-C_Eobs_d.cjs +0 -1
- package/dist/html-to-json-p__Fgqdg.js +0 -210
- package/dist/index-F4AQQ6qq.cjs +0 -1
- package/dist/page-viewer-YFrIG3L7.cjs +0 -1
- package/dist/project-general-setting-hK7I7FuN.cjs +0 -1
- package/dist/project-seo-setting-x-FK0pez.cjs +0 -1
- package/dist/single-page-detail-9abF2g2R.cjs +0 -1
|
@@ -1,43 +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 {
|
|
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";
|
|
11
12
|
import "react-i18next";
|
|
12
13
|
import { j as a } from "./jsx-runtime-WbnYoNE9.js";
|
|
13
|
-
import * as
|
|
14
|
+
import * as Gt from "@radix-ui/react-toggle";
|
|
14
15
|
import { cva as ge } from "class-variance-authority";
|
|
15
|
-
import * as
|
|
16
|
-
import { Slot as
|
|
16
|
+
import * as Xe from "@radix-ui/react-switch";
|
|
17
|
+
import { Slot as Ks } from "@radix-ui/react-slot";
|
|
17
18
|
import * as me from "@radix-ui/react-accordion";
|
|
18
|
-
import { ChevronDownIcon as
|
|
19
|
-
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";
|
|
20
21
|
import * as P from "@radix-ui/react-dialog";
|
|
21
|
-
import * as
|
|
22
|
+
import * as Ht from "@radix-ui/react-label";
|
|
22
23
|
import * as ue from "@radix-ui/react-scroll-area";
|
|
23
24
|
import * as be from "@radix-ui/react-tabs";
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
25
|
+
import * as Ne from "@radix-ui/react-tooltip";
|
|
26
|
+
import * as Ce from "@radix-ui/react-popover";
|
|
26
27
|
import * as _ from "@radix-ui/react-menubar";
|
|
27
28
|
import * as Ve from "@radix-ui/react-hover-card";
|
|
28
29
|
import * as U from "@radix-ui/react-select";
|
|
29
30
|
import * as M from "@radix-ui/react-dropdown-menu";
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
31
|
+
import * as qt from "@radix-ui/react-separator";
|
|
32
|
+
import * as ee from "@radix-ui/react-toast";
|
|
32
33
|
import { Command as Q } from "cmdk";
|
|
33
34
|
import * as D from "@radix-ui/react-context-menu";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
35
|
+
import Xs, { IconPickerItem as Zs } from "react-icons-picker";
|
|
36
|
+
import eo from "react-dom";
|
|
37
|
+
import to from "react-quill";
|
|
37
38
|
var W = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
38
|
-
let
|
|
39
|
-
function
|
|
40
|
-
const s = `atom${++
|
|
39
|
+
let so = 0;
|
|
40
|
+
function re(e, t) {
|
|
41
|
+
const s = `atom${++so}`, o = {
|
|
41
42
|
toString: () => s
|
|
42
43
|
};
|
|
43
44
|
return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, i, r) => i(
|
|
@@ -45,21 +46,21 @@ function ae(e, t) {
|
|
|
45
46
|
typeof r == "function" ? r(n(o)) : r
|
|
46
47
|
)), t && (o.write = t), o;
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
}).finally(() =>
|
|
51
|
-
}, kt = (e, t) => {
|
|
52
|
-
const s = Ee.get(e);
|
|
53
|
-
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));
|
|
54
52
|
}, St = (e, t) => {
|
|
55
|
-
|
|
53
|
+
const s = Oe.get(e);
|
|
54
|
+
s && (Oe.delete(e), s(t));
|
|
56
55
|
}, jt = (e, t) => {
|
|
56
|
+
e.status = "fulfilled", e.value = t;
|
|
57
|
+
}, At = (e, t) => {
|
|
57
58
|
e.status = "rejected", e.reason = t;
|
|
58
|
-
},
|
|
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) => {
|
|
59
60
|
if ("e" in e)
|
|
60
61
|
throw e.e;
|
|
61
62
|
return e.v;
|
|
62
|
-
},
|
|
63
|
+
}, ro = () => {
|
|
63
64
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
|
|
64
65
|
let o, n, i;
|
|
65
66
|
(W ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
|
|
@@ -68,30 +69,30 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
68
69
|
const x = e.get(u);
|
|
69
70
|
if (e.set(u, g), s.has(u) || s.set(u, x), x && xe(x)) {
|
|
70
71
|
const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
|
|
71
|
-
|
|
72
|
+
St(x.v, b);
|
|
72
73
|
}
|
|
73
74
|
}, p = (u, g, x) => {
|
|
74
75
|
const b = /* @__PURE__ */ new Map();
|
|
75
|
-
let
|
|
76
|
+
let w = !1;
|
|
76
77
|
x.forEach((h, k) => {
|
|
77
|
-
!h && k === u && (h = g), h ? (b.set(k, h), g.d.get(k) !== h && (
|
|
78
|
-
}), (
|
|
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);
|
|
79
80
|
}, l = (u, g, x) => {
|
|
80
|
-
const b = r(u),
|
|
81
|
+
const b = r(u), w = {
|
|
81
82
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
82
83
|
v: g
|
|
83
84
|
};
|
|
84
|
-
if (x && p(u,
|
|
85
|
+
if (x && p(u, w, x), b && Se(b, w) && b.d === w.d)
|
|
85
86
|
return b;
|
|
86
|
-
if (b && xe(b) && xe(
|
|
87
|
-
if (b.d ===
|
|
87
|
+
if (b && xe(b) && xe(w) && ao(b, w)) {
|
|
88
|
+
if (b.d === w.d)
|
|
88
89
|
return b;
|
|
89
|
-
|
|
90
|
+
w.v = b.v;
|
|
90
91
|
}
|
|
91
|
-
return c(u,
|
|
92
|
+
return c(u, w), w;
|
|
92
93
|
}, m = (u, g, x, b) => {
|
|
93
|
-
if (
|
|
94
|
-
let
|
|
94
|
+
if (no(g)) {
|
|
95
|
+
let w;
|
|
95
96
|
const h = new Promise((k, z) => {
|
|
96
97
|
let A = !1;
|
|
97
98
|
g.then(
|
|
@@ -103,7 +104,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
103
104
|
h,
|
|
104
105
|
x
|
|
105
106
|
);
|
|
106
|
-
|
|
107
|
+
jt(h, R), k(R), (C == null ? void 0 : C.d) !== se.d && K(u, se, C == null ? void 0 : C.d);
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
(R) => {
|
|
@@ -114,27 +115,27 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
114
115
|
h,
|
|
115
116
|
x
|
|
116
117
|
);
|
|
117
|
-
|
|
118
|
+
At(h, R), z(R), (C == null ? void 0 : C.d) !== se.d && K(u, se, C == null ? void 0 : C.d);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
|
-
),
|
|
121
|
+
), w = (R) => {
|
|
121
122
|
A || (A = !0, R.then(
|
|
122
|
-
(C) =>
|
|
123
|
-
(C) =>
|
|
123
|
+
(C) => jt(h, C),
|
|
124
|
+
(C) => At(h, C)
|
|
124
125
|
), k(R));
|
|
125
126
|
};
|
|
126
127
|
});
|
|
127
|
-
return h.orig = g, h.status = "pending",
|
|
128
|
-
k &&
|
|
128
|
+
return h.orig = g, h.status = "pending", oo(h, (k) => {
|
|
129
|
+
k && w(k), b == null || b();
|
|
129
130
|
}), l(u, h, x);
|
|
130
131
|
}
|
|
131
132
|
return l(u, g, x);
|
|
132
133
|
}, N = (u, g, x) => {
|
|
133
|
-
const b = r(u),
|
|
134
|
+
const b = r(u), w = {
|
|
134
135
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
135
136
|
e: g
|
|
136
137
|
};
|
|
137
|
-
return x && p(u,
|
|
138
|
+
return x && p(u, w, x), b && Ct(b, w) && b.d === w.d ? b : (c(u, w), w);
|
|
138
139
|
}, S = (u) => {
|
|
139
140
|
const g = r(u);
|
|
140
141
|
if (g && (g.d.forEach((A, R) => {
|
|
@@ -142,22 +143,22 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
142
143
|
}), Array.from(g.d).every(([A, R]) => {
|
|
143
144
|
const C = r(A);
|
|
144
145
|
return A === u || C === R || // TODO This is a hack, we should find a better solution.
|
|
145
|
-
C && !xe(C) &&
|
|
146
|
+
C && !xe(C) && Se(C, R);
|
|
146
147
|
})))
|
|
147
148
|
return g;
|
|
148
149
|
const x = /* @__PURE__ */ new Map();
|
|
149
150
|
let b = !0;
|
|
150
|
-
const
|
|
151
|
+
const w = (A) => {
|
|
151
152
|
if (A === u) {
|
|
152
153
|
const C = r(A);
|
|
153
154
|
if (C)
|
|
154
|
-
return x.set(A, C),
|
|
155
|
-
if (
|
|
155
|
+
return x.set(A, C), Ie(C);
|
|
156
|
+
if (Ue(A))
|
|
156
157
|
return x.set(A, void 0), A.init;
|
|
157
158
|
throw new Error("no atom init");
|
|
158
159
|
}
|
|
159
160
|
const R = S(A);
|
|
160
|
-
return x.set(A, R),
|
|
161
|
+
return x.set(A, R), Ie(R);
|
|
161
162
|
};
|
|
162
163
|
let h, k;
|
|
163
164
|
const z = {
|
|
@@ -165,14 +166,14 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
165
166
|
return h || (h = new AbortController()), h.signal;
|
|
166
167
|
},
|
|
167
168
|
get setSelf() {
|
|
168
|
-
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) => {
|
|
169
170
|
if ((W ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
|
|
170
171
|
return G(u, ...A);
|
|
171
172
|
}), k;
|
|
172
173
|
}
|
|
173
174
|
};
|
|
174
175
|
try {
|
|
175
|
-
const A = u.read(
|
|
176
|
+
const A = u.read(w, z);
|
|
176
177
|
return m(
|
|
177
178
|
u,
|
|
178
179
|
A,
|
|
@@ -184,7 +185,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
184
185
|
} finally {
|
|
185
186
|
b = !1;
|
|
186
187
|
}
|
|
187
|
-
}, v = (u) =>
|
|
188
|
+
}, v = (u) => Ie(S(u)), j = (u) => {
|
|
188
189
|
let g = t.get(u);
|
|
189
190
|
return g || (g = V(u)), g;
|
|
190
191
|
}, L = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), F = (u) => {
|
|
@@ -201,7 +202,7 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
201
202
|
});
|
|
202
203
|
};
|
|
203
204
|
b(u);
|
|
204
|
-
const
|
|
205
|
+
const w = (h) => {
|
|
205
206
|
const k = t.get(h);
|
|
206
207
|
k == null || k.t.forEach((z) => {
|
|
207
208
|
var A;
|
|
@@ -210,51 +211,51 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
210
211
|
if (R && x.set(z, --R), !R) {
|
|
211
212
|
let C = !!((A = g.get(z)) != null && A.size);
|
|
212
213
|
if (C) {
|
|
213
|
-
const se = r(z),
|
|
214
|
-
C = !se || !
|
|
214
|
+
const se = r(z), Os = S(z);
|
|
215
|
+
C = !se || !Se(se, Os);
|
|
215
216
|
}
|
|
216
217
|
C || g.forEach((se) => se.delete(z));
|
|
217
218
|
}
|
|
218
|
-
|
|
219
|
+
w(z);
|
|
219
220
|
}
|
|
220
221
|
});
|
|
221
222
|
};
|
|
222
|
-
|
|
223
|
+
w(u);
|
|
223
224
|
}, T = (u, ...g) => {
|
|
224
225
|
let x = !0;
|
|
225
|
-
const b = (k) =>
|
|
226
|
+
const b = (k) => Ie(S(k)), w = (k, ...z) => {
|
|
226
227
|
let A;
|
|
227
228
|
if (k === u) {
|
|
228
|
-
if (!
|
|
229
|
+
if (!Ue(k))
|
|
229
230
|
throw new Error("atom not writable");
|
|
230
231
|
const R = r(k), C = m(k, z[0]);
|
|
231
|
-
(!R || !
|
|
232
|
+
(!R || !Se(R, C)) && B(k);
|
|
232
233
|
} else
|
|
233
234
|
A = T(k, ...z);
|
|
234
235
|
if (!x) {
|
|
235
|
-
const R =
|
|
236
|
+
const R = J();
|
|
236
237
|
(W ? "production" : void 0) !== "production" && n.forEach(
|
|
237
238
|
(C) => C({ type: "async-write", flushed: R })
|
|
238
239
|
);
|
|
239
240
|
}
|
|
240
241
|
return A;
|
|
241
|
-
}, h = u.write(b,
|
|
242
|
+
}, h = u.write(b, w, ...g);
|
|
242
243
|
return x = !1, h;
|
|
243
244
|
}, G = (u, ...g) => {
|
|
244
|
-
const x = T(u, ...g), b =
|
|
245
|
+
const x = T(u, ...g), b = J();
|
|
245
246
|
return (W ? "production" : void 0) !== "production" && n.forEach(
|
|
246
|
-
(
|
|
247
|
+
(w) => w({ type: "write", flushed: b })
|
|
247
248
|
), x;
|
|
248
249
|
}, V = (u, g) => {
|
|
249
250
|
const x = {
|
|
250
251
|
t: new Set(g && [g]),
|
|
251
252
|
l: /* @__PURE__ */ new Set()
|
|
252
253
|
};
|
|
253
|
-
if (t.set(u, x), (W ? "production" : void 0) !== "production" && i.add(u), S(u).d.forEach((b,
|
|
254
|
-
const h = t.get(
|
|
255
|
-
h ? h.t.add(u) :
|
|
256
|
-
}), S(u),
|
|
257
|
-
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));
|
|
258
259
|
b && (x.u = b);
|
|
259
260
|
}
|
|
260
261
|
return x;
|
|
@@ -263,37 +264,37 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
263
264
|
const x = (g = t.get(u)) == null ? void 0 : g.u;
|
|
264
265
|
x && x(), t.delete(u), (W ? "production" : void 0) !== "production" && i.delete(u);
|
|
265
266
|
const b = r(u);
|
|
266
|
-
b ? (xe(b) &&
|
|
267
|
+
b ? (xe(b) && St(b.v), b.d.forEach((w, h) => {
|
|
267
268
|
if (h !== u) {
|
|
268
269
|
const k = t.get(h);
|
|
269
270
|
k && (k.t.delete(u), L(h, k) && X(h));
|
|
270
271
|
}
|
|
271
272
|
})) : (W ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
|
|
272
|
-
},
|
|
273
|
+
}, K = (u, g, x) => {
|
|
273
274
|
const b = new Set(g.d.keys());
|
|
274
|
-
x == null || x.forEach((
|
|
275
|
+
x == null || x.forEach((w, h) => {
|
|
275
276
|
if (b.has(h)) {
|
|
276
277
|
b.delete(h);
|
|
277
278
|
return;
|
|
278
279
|
}
|
|
279
280
|
const k = t.get(h);
|
|
280
281
|
k && (k.t.delete(u), L(h, k) && X(h));
|
|
281
|
-
}), b.forEach((
|
|
282
|
-
const h = t.get(
|
|
283
|
-
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);
|
|
284
285
|
});
|
|
285
|
-
},
|
|
286
|
+
}, J = () => {
|
|
286
287
|
let u;
|
|
287
288
|
for ((W ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
|
|
288
289
|
const g = Array.from(s);
|
|
289
290
|
s.clear(), g.forEach(([x, b]) => {
|
|
290
|
-
const
|
|
291
|
-
if (
|
|
292
|
-
|
|
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);
|
|
293
294
|
const h = t.get(x);
|
|
294
295
|
h && !// TODO This seems pretty hacky. Hope to fix it.
|
|
295
296
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
296
|
-
(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));
|
|
297
298
|
} else
|
|
298
299
|
(W ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
299
300
|
});
|
|
@@ -301,11 +302,11 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
301
302
|
if ((W ? "production" : void 0) !== "production")
|
|
302
303
|
return o.forEach((g) => g("state")), u;
|
|
303
304
|
}, le = (u, g) => {
|
|
304
|
-
const x = j(u), b =
|
|
305
|
-
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(
|
|
306
307
|
(h) => h({ type: "sub", flushed: b })
|
|
307
308
|
)), () => {
|
|
308
|
-
|
|
309
|
+
w.delete(g), F(u), (W ? "production" : void 0) !== "production" && (o.forEach((h) => h("unsub")), n.forEach((h) => h({ type: "unsub" })));
|
|
309
310
|
};
|
|
310
311
|
};
|
|
311
312
|
return (W ? "production" : void 0) !== "production" ? {
|
|
@@ -325,8 +326,8 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
325
326
|
dev_get_mounted: (u) => t.get(u),
|
|
326
327
|
dev_restore_atoms: (u) => {
|
|
327
328
|
for (const [x, b] of u)
|
|
328
|
-
|
|
329
|
-
const g =
|
|
329
|
+
Ue(x) && (m(x, b), B(x));
|
|
330
|
+
const g = J();
|
|
330
331
|
n.forEach(
|
|
331
332
|
(x) => x({ type: "restore", flushed: g })
|
|
332
333
|
);
|
|
@@ -337,14 +338,14 @@ const Fe = (e) => "init" in e, Ue = (e) => !!e.write, Ee = /* @__PURE__ */ new W
|
|
|
337
338
|
sub: le
|
|
338
339
|
};
|
|
339
340
|
};
|
|
340
|
-
let
|
|
341
|
-
const
|
|
342
|
-
var
|
|
343
|
-
const
|
|
344
|
-
const t =
|
|
345
|
-
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();
|
|
346
347
|
};
|
|
347
|
-
const
|
|
348
|
+
const uo = (e) => typeof (e == null ? void 0 : e.then) == "function", fo = st.use || ((e) => {
|
|
348
349
|
if (e.status === "pending")
|
|
349
350
|
throw e;
|
|
350
351
|
if (e.status === "fulfilled")
|
|
@@ -358,8 +359,8 @@ const lo = (e) => typeof (e == null ? void 0 : e.then) == "function", co = tt.us
|
|
|
358
359
|
}
|
|
359
360
|
), e);
|
|
360
361
|
});
|
|
361
|
-
function
|
|
362
|
-
const s =
|
|
362
|
+
function mo(e, t) {
|
|
363
|
+
const s = Kt(t), [[o, n, i], r] = Vs(
|
|
363
364
|
(l) => {
|
|
364
365
|
const m = s.get(e);
|
|
365
366
|
return Object.is(l[0], m) && l[1] === s && l[2] === e ? l : [m, s, e];
|
|
@@ -370,7 +371,7 @@ function uo(e, t) {
|
|
|
370
371
|
let c = o;
|
|
371
372
|
(n !== s || i !== e) && (r(), c = s.get(e));
|
|
372
373
|
const p = t == null ? void 0 : t.delay;
|
|
373
|
-
return
|
|
374
|
+
return Be(() => {
|
|
374
375
|
const l = s.sub(e, () => {
|
|
375
376
|
if (typeof p == "number") {
|
|
376
377
|
setTimeout(r, p);
|
|
@@ -379,34 +380,34 @@ function uo(e, t) {
|
|
|
379
380
|
r();
|
|
380
381
|
});
|
|
381
382
|
return r(), l;
|
|
382
|
-
}, [s, e, p]),
|
|
383
|
+
}, [s, e, p]), $s(c), uo(c) ? fo(c) : c;
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
-
const s =
|
|
385
|
+
function po(e, t) {
|
|
386
|
+
const s = Kt(t);
|
|
386
387
|
return $(
|
|
387
388
|
(...n) => {
|
|
388
|
-
if ((
|
|
389
|
+
if ((lo ? "production" : void 0) !== "production" && !("write" in e))
|
|
389
390
|
throw new Error("not writable atom");
|
|
390
391
|
return s.set(e, ...n);
|
|
391
392
|
},
|
|
392
393
|
[s, e]
|
|
393
394
|
);
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
+
function Ur(e, t) {
|
|
396
397
|
return [
|
|
397
|
-
|
|
398
|
+
mo(e, t),
|
|
398
399
|
// We do wrong type assertion here, which results in throwing an error.
|
|
399
|
-
|
|
400
|
+
po(e, t)
|
|
400
401
|
];
|
|
401
402
|
}
|
|
402
|
-
var
|
|
403
|
-
const
|
|
404
|
-
const
|
|
405
|
-
const o =
|
|
406
|
-
return
|
|
407
|
-
},
|
|
408
|
-
function
|
|
409
|
-
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(
|
|
410
411
|
() => {
|
|
411
412
|
const s = /* @__PURE__ */ new WeakMap(), o = (r, c) => {
|
|
412
413
|
let p = s.get(r);
|
|
@@ -422,33 +423,33 @@ function ho(e, t) {
|
|
|
422
423
|
return;
|
|
423
424
|
}
|
|
424
425
|
const F = (T) => {
|
|
425
|
-
const G = T(n), V = T(e),
|
|
426
|
-
if (
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
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;
|
|
430
431
|
throw new Error("splitAtom: index out of bounds for read");
|
|
431
432
|
}
|
|
432
|
-
return V[
|
|
433
|
+
return V[K];
|
|
433
434
|
}, B = (T, G, V) => {
|
|
434
|
-
const X = T(n),
|
|
435
|
-
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)
|
|
436
437
|
throw new Error("splitAtom: index out of bounds for write");
|
|
437
|
-
const u =
|
|
438
|
+
const u = xo(V) ? V(K[le]) : V;
|
|
438
439
|
G(e, [
|
|
439
|
-
...
|
|
440
|
+
...K.slice(0, le),
|
|
440
441
|
u,
|
|
441
|
-
...
|
|
442
|
+
...K.slice(le + 1)
|
|
442
443
|
]);
|
|
443
444
|
};
|
|
444
|
-
m[v] =
|
|
445
|
+
m[v] = _t(e) ? re(F, B) : re(F);
|
|
445
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;
|
|
446
|
-
}, n =
|
|
447
|
+
}, n = re((r) => {
|
|
447
448
|
const c = r(n), p = r(e);
|
|
448
449
|
return o(p, c == null ? void 0 : c.arr);
|
|
449
450
|
});
|
|
450
|
-
(
|
|
451
|
-
const i =
|
|
451
|
+
(lt ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
|
|
452
|
+
const i = _t(e) ? re(
|
|
452
453
|
(r) => r(n).atomList,
|
|
453
454
|
(r, c, p) => {
|
|
454
455
|
switch (p.type) {
|
|
@@ -495,23 +496,23 @@ function ho(e, t) {
|
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
}
|
|
498
|
-
) :
|
|
499
|
+
) : re((r) => r(n).atomList);
|
|
499
500
|
return i;
|
|
500
501
|
},
|
|
501
502
|
e,
|
|
502
|
-
t ||
|
|
503
|
+
t || ho
|
|
503
504
|
);
|
|
504
505
|
}
|
|
505
|
-
function
|
|
506
|
-
const t = Symbol(), s =
|
|
507
|
-
(
|
|
508
|
-
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(
|
|
509
510
|
(n, i) => {
|
|
510
511
|
const r = n(s);
|
|
511
512
|
return r !== t ? r : e(n, i);
|
|
512
513
|
},
|
|
513
514
|
(n, i, r) => {
|
|
514
|
-
if (r ===
|
|
515
|
+
if (r === Jt)
|
|
515
516
|
i(s, t);
|
|
516
517
|
else if (typeof r == "function") {
|
|
517
518
|
const c = n(o);
|
|
@@ -522,8 +523,8 @@ function zr(e) {
|
|
|
522
523
|
);
|
|
523
524
|
return o;
|
|
524
525
|
}
|
|
525
|
-
const
|
|
526
|
-
function
|
|
526
|
+
const yo = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
527
|
+
function wo(e) {
|
|
527
528
|
let t, s;
|
|
528
529
|
const o = {
|
|
529
530
|
getItem: (n, i) => {
|
|
@@ -539,7 +540,7 @@ function vo(e) {
|
|
|
539
540
|
}
|
|
540
541
|
return s;
|
|
541
542
|
}, l = (c = (r = e()) == null ? void 0 : r.getItem(n)) != null ? c : null;
|
|
542
|
-
return
|
|
543
|
+
return yo(l) ? l.then(p) : p(l);
|
|
543
544
|
},
|
|
544
545
|
setItem: (n, i) => {
|
|
545
546
|
var r;
|
|
@@ -570,56 +571,56 @@ function vo(e) {
|
|
|
570
571
|
};
|
|
571
572
|
}), o;
|
|
572
573
|
}
|
|
573
|
-
const
|
|
574
|
+
const No = wo(
|
|
574
575
|
() => typeof window < "u" ? window.localStorage : void 0
|
|
575
576
|
);
|
|
576
|
-
function
|
|
577
|
-
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(
|
|
578
579
|
n ? s.getItem(e, t) : t
|
|
579
580
|
);
|
|
580
|
-
return (
|
|
581
|
+
return (lt ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
|
|
581
582
|
n || c(s.getItem(e, t));
|
|
582
583
|
let p;
|
|
583
584
|
return s.subscribe && (p = s.subscribe(e, c, t)), p;
|
|
584
|
-
},
|
|
585
|
+
}, re(
|
|
585
586
|
(c) => c(i),
|
|
586
587
|
(c, p, l) => {
|
|
587
588
|
const m = typeof l == "function" ? l(c(i)) : l;
|
|
588
|
-
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));
|
|
589
590
|
}
|
|
590
591
|
);
|
|
591
592
|
}
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
const
|
|
595
|
-
|
|
596
|
-
const
|
|
593
|
+
const Yt = y(null);
|
|
594
|
+
Yt.debugLabel = "chaiBuilderPropsAtom";
|
|
595
|
+
const ko = y({});
|
|
596
|
+
ko.debugLabel = "chaiExternalDataAtom";
|
|
597
|
+
const Gr = () => !1, So = (e) => {
|
|
597
598
|
const t = e.replace(fe, "").split(",");
|
|
598
599
|
return { baseClasses: t[0], classes: t[1] };
|
|
599
|
-
},
|
|
600
|
+
}, Rt = Le((e, t) => {
|
|
600
601
|
if (!e)
|
|
601
602
|
return !0;
|
|
602
|
-
const s =
|
|
603
|
+
const s = we(e);
|
|
603
604
|
return s && pe(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
|
|
604
|
-
}),
|
|
605
|
-
const s =
|
|
605
|
+
}), jo = Le((e, t) => {
|
|
606
|
+
const s = we(t);
|
|
606
607
|
return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
|
|
607
|
-
}),
|
|
608
|
-
const t =
|
|
608
|
+
}), Hr = Le((e) => {
|
|
609
|
+
const t = we(e);
|
|
609
610
|
return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
|
|
610
|
-
}),
|
|
611
|
-
const t =
|
|
611
|
+
}), qr = Le((e) => {
|
|
612
|
+
const t = we(e);
|
|
612
613
|
return t && pe(t, "canDelete") ? t.canDelete() : !0;
|
|
613
614
|
});
|
|
614
|
-
function
|
|
615
|
+
function Qt(e, t, s) {
|
|
615
616
|
const o = E(e, (i) => i._parent === t), n = [];
|
|
616
617
|
for (let i = 0; i < o.length; i++) {
|
|
617
|
-
const r =
|
|
618
|
+
const r = Zt(o[i]);
|
|
618
619
|
if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
|
|
619
620
|
o[i][c] = `slot:${de()}`;
|
|
620
621
|
}), E(e, { _parent: o[i]._id }).length > 0) {
|
|
621
622
|
const c = de();
|
|
622
|
-
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)));
|
|
623
624
|
} else
|
|
624
625
|
n.push({
|
|
625
626
|
...o[i],
|
|
@@ -628,9 +629,9 @@ function Yt(e, t, s) {
|
|
|
628
629
|
_parent: s
|
|
629
630
|
});
|
|
630
631
|
}
|
|
631
|
-
return
|
|
632
|
+
return ie(n);
|
|
632
633
|
}
|
|
633
|
-
function
|
|
634
|
+
function Xt(e) {
|
|
634
635
|
const t = {};
|
|
635
636
|
e.forEach((o) => {
|
|
636
637
|
t[o._id] = { ...o, children: [] };
|
|
@@ -644,90 +645,118 @@ function Qt(e) {
|
|
|
644
645
|
s.push(t[o._id]);
|
|
645
646
|
}), s;
|
|
646
647
|
}
|
|
647
|
-
const
|
|
648
|
+
const Zt = (e) => {
|
|
648
649
|
const t = {};
|
|
649
650
|
return Object.keys(e).forEach((s) => {
|
|
650
|
-
|
|
651
|
+
Vt(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
|
|
651
652
|
}), t;
|
|
652
|
-
},
|
|
653
|
+
}, Ao = (e, t, s = null) => {
|
|
653
654
|
let o = oe(e, { _id: t });
|
|
654
655
|
o = { ...o, oldId: o._id, _id: de() }, s && (o = { ...o, _parent: s });
|
|
655
656
|
const n = [o];
|
|
656
|
-
E(e, { _parent: t }).length > 0 && n.push(
|
|
657
|
-
const i =
|
|
657
|
+
E(e, { _parent: t }).length > 0 && n.push(ie(Qt(e, t, o._id)));
|
|
658
|
+
const i = ie(n);
|
|
658
659
|
return I(i, (r) => {
|
|
659
|
-
const c = r, p =
|
|
660
|
+
const c = r, p = Zt(c);
|
|
660
661
|
return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
|
|
661
662
|
const m = oe(i, { oldId: p[l].replace("slot:", "") });
|
|
662
663
|
c[l] = `slot:${m._id}`;
|
|
663
|
-
}),
|
|
664
|
+
}), nt(c, ["global", "oldId"]);
|
|
664
665
|
});
|
|
665
666
|
};
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
const t = e(
|
|
670
|
-
return
|
|
667
|
+
const ne = y([]);
|
|
668
|
+
ne.debugLabel = "presentBlocksAtom";
|
|
669
|
+
const Co = y((e) => {
|
|
670
|
+
const t = e(ne);
|
|
671
|
+
return Xt([...t]);
|
|
671
672
|
});
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
|
|
682
|
-
const
|
|
683
|
-
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);
|
|
684
685
|
return E(t, (s) => pe(s, "blockId"));
|
|
685
686
|
});
|
|
686
|
-
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
const
|
|
690
|
-
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);
|
|
691
692
|
return I(
|
|
692
693
|
E(t, ({ _id: o }) => Y(s, o)),
|
|
693
694
|
(o) => ({ ...o })
|
|
694
695
|
);
|
|
695
696
|
});
|
|
696
|
-
|
|
697
|
-
const
|
|
698
|
-
const t = e(
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
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];
|
|
703
704
|
});
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
const t = e(
|
|
707
|
-
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));
|
|
708
709
|
});
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
const
|
|
719
|
-
flexChild:
|
|
720
|
-
gridChild:
|
|
721
|
-
}),
|
|
722
|
-
const $e = ()
|
|
723
|
-
|
|
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 = $(
|
|
724
753
|
(o) => {
|
|
725
|
-
t((n) => Y(n, o) ?
|
|
754
|
+
t((n) => Y(n, o) ? $t(n, o) : [...n, o]);
|
|
726
755
|
},
|
|
727
756
|
[t]
|
|
728
757
|
);
|
|
729
758
|
return [e, t, s];
|
|
730
|
-
},
|
|
759
|
+
}, Pt = (e) => {
|
|
731
760
|
switch (e.type) {
|
|
732
761
|
case "singular":
|
|
733
762
|
return e.uiSchema;
|
|
@@ -738,7 +767,7 @@ const $e = () => {
|
|
|
738
767
|
if (Y(["slot", "styles"], r.type))
|
|
739
768
|
return;
|
|
740
769
|
const c = i;
|
|
741
|
-
s[c] =
|
|
770
|
+
s[c] = Pt(r);
|
|
742
771
|
}), s;
|
|
743
772
|
case "list":
|
|
744
773
|
const { itemProperties: o } = e, n = {
|
|
@@ -749,12 +778,12 @@ const $e = () => {
|
|
|
749
778
|
if (Y(["slot", "styles"], r.type))
|
|
750
779
|
return;
|
|
751
780
|
const c = i;
|
|
752
|
-
n.items[c] =
|
|
781
|
+
n.items[c] = Pt(r);
|
|
753
782
|
}), n;
|
|
754
783
|
default:
|
|
755
784
|
return {};
|
|
756
785
|
}
|
|
757
|
-
},
|
|
786
|
+
}, Tt = (e) => {
|
|
758
787
|
switch (e.type) {
|
|
759
788
|
case "singular":
|
|
760
789
|
return e.schema;
|
|
@@ -769,7 +798,7 @@ const $e = () => {
|
|
|
769
798
|
if (Y(["slot", "styles"], p.type))
|
|
770
799
|
return;
|
|
771
800
|
const l = c;
|
|
772
|
-
o.properties[l] =
|
|
801
|
+
o.properties[l] = Tt(p);
|
|
773
802
|
}), o;
|
|
774
803
|
case "list":
|
|
775
804
|
const { itemProperties: n, title: i } = e, r = {
|
|
@@ -785,46 +814,46 @@ const $e = () => {
|
|
|
785
814
|
if (Y(["slot", "styles"], p.type))
|
|
786
815
|
return;
|
|
787
816
|
const l = c;
|
|
788
|
-
r.items.properties[l] =
|
|
817
|
+
r.items.properties[l] = Tt(p), Ae(r.items, "title", H(p, "itemTitle", `${i} item`));
|
|
789
818
|
}), r;
|
|
790
819
|
default:
|
|
791
820
|
return {};
|
|
792
821
|
}
|
|
793
|
-
},
|
|
822
|
+
}, as = (e) => {
|
|
794
823
|
if (!e)
|
|
795
824
|
return {};
|
|
796
825
|
const t = {};
|
|
797
826
|
return Object.keys(e).forEach((s) => {
|
|
798
|
-
t[s] =
|
|
827
|
+
t[s] = Do(e[s]);
|
|
799
828
|
}), t;
|
|
800
|
-
},
|
|
801
|
-
if (
|
|
829
|
+
}, Mo = (e) => {
|
|
830
|
+
if (ye(e.default))
|
|
802
831
|
return [];
|
|
803
832
|
const { itemProperties: t } = e;
|
|
804
833
|
return I(e.default, (s) => {
|
|
805
834
|
const o = { ...s };
|
|
806
|
-
return
|
|
807
|
-
pe(t, i) &&
|
|
835
|
+
return Ft(s, (n, i) => {
|
|
836
|
+
pe(t, i) && H(t[i], "i18n", !1) && (o[i] = Wt);
|
|
808
837
|
}), o;
|
|
809
838
|
});
|
|
810
|
-
},
|
|
839
|
+
}, Do = (e) => {
|
|
811
840
|
switch (e.type) {
|
|
812
841
|
case "styles":
|
|
813
842
|
return e.default;
|
|
814
843
|
case "slot":
|
|
815
|
-
return `${
|
|
844
|
+
return `${Ye}${de()}`;
|
|
816
845
|
case "singular":
|
|
817
846
|
const { i18n: t, schema: s } = e;
|
|
818
|
-
return t ?
|
|
847
|
+
return t ? Wt : H(s, "default", "");
|
|
819
848
|
case "model":
|
|
820
|
-
return
|
|
849
|
+
return as(e.properties);
|
|
821
850
|
case "list":
|
|
822
|
-
return
|
|
851
|
+
return Mo(e);
|
|
823
852
|
default:
|
|
824
853
|
return "";
|
|
825
854
|
}
|
|
826
855
|
};
|
|
827
|
-
var
|
|
856
|
+
var mt = { exports: {} }, Xr = mt.exports;
|
|
828
857
|
(function(e) {
|
|
829
858
|
(function() {
|
|
830
859
|
"use strict";
|
|
@@ -928,93 +957,93 @@ var ft = { exports: {} }, Gr = ft.exports;
|
|
|
928
957
|
};
|
|
929
958
|
e.exports ? e.exports = s : window.UndoManager = s;
|
|
930
959
|
})();
|
|
931
|
-
})(
|
|
932
|
-
var
|
|
933
|
-
const
|
|
934
|
-
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);
|
|
935
964
|
return [
|
|
936
|
-
|
|
965
|
+
Us(e) ? { ...Qe, ...e } : Qe,
|
|
937
966
|
t
|
|
938
967
|
];
|
|
939
|
-
},
|
|
940
|
-
function
|
|
941
|
-
return
|
|
968
|
+
}, Zr = () => O(zo), Vo = y(null), $o = () => ({ currentPage: Z(Vo) });
|
|
969
|
+
function Fo(e) {
|
|
970
|
+
return Xt(e);
|
|
942
971
|
}
|
|
943
|
-
const
|
|
972
|
+
const pt = (e, t) => ie(
|
|
944
973
|
e.map((s) => {
|
|
945
974
|
if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
|
|
946
975
|
const o = [...s.children];
|
|
947
|
-
return delete s.children,
|
|
976
|
+
return delete s.children, ie([s, ...pt(o, s._id)]);
|
|
948
977
|
}
|
|
949
978
|
return s;
|
|
950
979
|
})
|
|
951
980
|
);
|
|
952
|
-
function
|
|
981
|
+
function gt(e, t = !1) {
|
|
953
982
|
for (let s = 0; s < e.length; s++) {
|
|
954
983
|
const o = e[s];
|
|
955
984
|
o.global && !t ? e[s] = {
|
|
956
985
|
type: "GlobalBlock",
|
|
957
986
|
blockId: o.blockId,
|
|
958
|
-
_parent:
|
|
987
|
+
_parent: H(o, "parent", null),
|
|
959
988
|
_id: o._id
|
|
960
|
-
} : o.children && o.children.length &&
|
|
989
|
+
} : o.children && o.children.length && gt(o.children);
|
|
961
990
|
}
|
|
962
991
|
}
|
|
963
|
-
function
|
|
992
|
+
function is(e) {
|
|
964
993
|
let t = [], s = E(e, { type: "GlobalBlock" });
|
|
965
|
-
return s.length > 0 && (s = I(s,
|
|
966
|
-
t = [...t, ...
|
|
994
|
+
return s.length > 0 && (s = I(s, ls), ce(s, (o) => {
|
|
995
|
+
t = [...t, ...Uo(o)];
|
|
967
996
|
})), t;
|
|
968
997
|
}
|
|
969
|
-
function
|
|
998
|
+
function Uo(e) {
|
|
970
999
|
let t = [];
|
|
971
|
-
const s =
|
|
972
|
-
|
|
973
|
-
const o = [flatToNestedInstance.convert(
|
|
974
|
-
|
|
975
|
-
let n =
|
|
976
|
-
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;
|
|
977
1006
|
}
|
|
978
|
-
function
|
|
979
|
-
const t = oe(
|
|
1007
|
+
function ls(e) {
|
|
1008
|
+
const t = oe(Ze, { _id: e._id });
|
|
980
1009
|
if (!t)
|
|
981
1010
|
return [];
|
|
982
|
-
const s = [t], o = E(
|
|
983
|
-
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);
|
|
984
1013
|
}
|
|
985
|
-
const
|
|
986
|
-
let
|
|
987
|
-
function
|
|
988
|
-
|
|
989
|
-
const t =
|
|
990
|
-
|
|
991
|
-
const s =
|
|
992
|
-
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];
|
|
993
1022
|
}
|
|
994
|
-
const
|
|
995
|
-
const [e] =
|
|
1023
|
+
const Go = () => {
|
|
1024
|
+
const [e] = rs(), { currentPage: t } = $o(), [s] = ke();
|
|
996
1025
|
return $(() => {
|
|
997
1026
|
const o = I(
|
|
998
1027
|
s,
|
|
999
|
-
(i) =>
|
|
1000
|
-
), [n = []] =
|
|
1028
|
+
(i) => nt(i, ["expanded", "order", "title", "siblings", "tempClasses"])
|
|
1029
|
+
), [n = []] = Wo(o);
|
|
1001
1030
|
return {
|
|
1002
1031
|
currentPage: t,
|
|
1003
1032
|
blocks: n
|
|
1004
1033
|
};
|
|
1005
1034
|
}, [e, t, s]);
|
|
1006
1035
|
}, ve = (e, t = void 0) => {
|
|
1007
|
-
const s =
|
|
1008
|
-
return
|
|
1009
|
-
},
|
|
1010
|
-
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
const
|
|
1014
|
-
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) => {
|
|
1015
1044
|
}), o = ve("onSave", async (l) => {
|
|
1016
|
-
}), n = ve("onSaveStateChange",
|
|
1017
|
-
return { savePage:
|
|
1045
|
+
}), n = ve("onSaveStateChange", Ke), i = Go(), [r] = Ho(), [c] = rs();
|
|
1046
|
+
return { savePage: qs(
|
|
1018
1047
|
async () => {
|
|
1019
1048
|
t("SAVING"), n("SAVING");
|
|
1020
1049
|
const l = i();
|
|
@@ -1026,37 +1055,37 @@ const qr = () => {
|
|
|
1026
1055
|
3e3
|
|
1027
1056
|
// save only every 5 seconds
|
|
1028
1057
|
), saveState: e, setSaveState: t };
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1031
|
-
const
|
|
1032
|
-
const [, e] = O(
|
|
1033
|
-
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(() => {
|
|
1034
1063
|
e("UNSAVED"), t("UNSAVED");
|
|
1035
1064
|
}), () => {
|
|
1036
|
-
|
|
1065
|
+
ae.setCallback(Ke);
|
|
1037
1066
|
}), []), {
|
|
1038
|
-
add:
|
|
1039
|
-
undo:
|
|
1040
|
-
redo:
|
|
1041
|
-
hasRedo:
|
|
1042
|
-
hasUndo:
|
|
1043
|
-
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
|
|
1044
1073
|
};
|
|
1045
|
-
},
|
|
1074
|
+
}, ht = (e, t) => {
|
|
1046
1075
|
const s = [], o = E(e, (n) => Y(t, n._id) || Y(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1047
|
-
return
|
|
1048
|
-
},
|
|
1049
|
-
const [e] =
|
|
1076
|
+
return ye(s) ? o : ht(o, s);
|
|
1077
|
+
}, ti = () => {
|
|
1078
|
+
const [e] = ke(), [t, s] = Fe(), { setNewBlocks: o } = he();
|
|
1050
1079
|
return $(
|
|
1051
1080
|
(n) => {
|
|
1052
1081
|
var r;
|
|
1053
1082
|
const i = ((r = oe(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
|
|
1054
|
-
o(
|
|
1083
|
+
o(ht(e, n)), setTimeout(() => s(i ? [i] : []), 200);
|
|
1055
1084
|
},
|
|
1056
1085
|
[e, s, t]
|
|
1057
1086
|
);
|
|
1058
1087
|
};
|
|
1059
|
-
function
|
|
1088
|
+
function qo(e, t, s, o) {
|
|
1060
1089
|
let n = e.filter((c) => !c._parent);
|
|
1061
1090
|
s && (n = e.filter((c) => c._parent === s));
|
|
1062
1091
|
const i = o !== void 0 ? o : n.length;
|
|
@@ -1071,7 +1100,7 @@ function Wo(e, t, s, o) {
|
|
|
1071
1100
|
}
|
|
1072
1101
|
return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
|
|
1073
1102
|
}
|
|
1074
|
-
function
|
|
1103
|
+
function It(e) {
|
|
1075
1104
|
const t = [], s = /* @__PURE__ */ new Map();
|
|
1076
1105
|
e.forEach((n) => {
|
|
1077
1106
|
s.set(n._id, n);
|
|
@@ -1086,9 +1115,9 @@ function Tt(e) {
|
|
|
1086
1115
|
n._parent || o(n._id);
|
|
1087
1116
|
}), t;
|
|
1088
1117
|
}
|
|
1089
|
-
const
|
|
1090
|
-
if (
|
|
1091
|
-
return
|
|
1118
|
+
const Ko = (e, t, s, o) => {
|
|
1119
|
+
if (ye(t))
|
|
1120
|
+
return It(e);
|
|
1092
1121
|
function n(c, p) {
|
|
1093
1122
|
const l = c.filter((N) => N._parent === p);
|
|
1094
1123
|
let m = [...l];
|
|
@@ -1121,21 +1150,21 @@ const Go = (e, t, s, o) => {
|
|
|
1121
1150
|
e[r]._parent === s && p++, r++;
|
|
1122
1151
|
}
|
|
1123
1152
|
}
|
|
1124
|
-
return e.splice(r, 0, ...i),
|
|
1125
|
-
},
|
|
1126
|
-
const [, e] =
|
|
1153
|
+
return e.splice(r, 0, ...i), It(e);
|
|
1154
|
+
}, Jo = () => {
|
|
1155
|
+
const [, e] = ke();
|
|
1127
1156
|
return {
|
|
1128
1157
|
setNewBlocks: (t) => {
|
|
1129
1158
|
e(t);
|
|
1130
1159
|
},
|
|
1131
1160
|
addBlocks: (t, s, o) => {
|
|
1132
|
-
e((n) =>
|
|
1161
|
+
e((n) => qo(n, t, s, o));
|
|
1133
1162
|
},
|
|
1134
1163
|
removeBlocks: (t) => {
|
|
1135
|
-
e((s) =>
|
|
1164
|
+
e((s) => ht(s, t));
|
|
1136
1165
|
},
|
|
1137
1166
|
moveBlocks: (t, s, o) => {
|
|
1138
|
-
e((n) =>
|
|
1167
|
+
e((n) => Ko(n, t, s, o));
|
|
1139
1168
|
},
|
|
1140
1169
|
updateBlocksProps: (t) => {
|
|
1141
1170
|
e((s) => {
|
|
@@ -1143,26 +1172,26 @@ const Go = (e, t, s, o) => {
|
|
|
1143
1172
|
return s.map((n) => {
|
|
1144
1173
|
if (o.includes(n._id)) {
|
|
1145
1174
|
const i = oe(t, { _id: n._id });
|
|
1146
|
-
return { ...n, ...
|
|
1175
|
+
return { ...n, ...nt(i, "_id") };
|
|
1147
1176
|
}
|
|
1148
1177
|
return n;
|
|
1149
1178
|
});
|
|
1150
1179
|
});
|
|
1151
1180
|
}
|
|
1152
1181
|
};
|
|
1153
|
-
},
|
|
1154
|
-
const { add: e } =
|
|
1182
|
+
}, ke = () => O(ne), he = () => {
|
|
1183
|
+
const { add: e } = us(), [t] = ke(), {
|
|
1155
1184
|
setNewBlocks: s,
|
|
1156
1185
|
addBlocks: o,
|
|
1157
1186
|
removeBlocks: n,
|
|
1158
1187
|
moveBlocks: i,
|
|
1159
1188
|
updateBlocksProps: r
|
|
1160
|
-
} =
|
|
1189
|
+
} = Jo();
|
|
1161
1190
|
return {
|
|
1162
1191
|
moveBlocks: (v, j, L) => {
|
|
1163
1192
|
const F = I(v, (T) => {
|
|
1164
|
-
const V = t.find((
|
|
1165
|
-
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 };
|
|
1166
1195
|
}), B = F.find(({ _id: T }) => T === v[0]);
|
|
1167
1196
|
B && B.oldParent === j && B.oldPosition === L || (i(v, j, L), e({
|
|
1168
1197
|
undo: () => ce(F, ({ _id: T, oldParent: G, oldPosition: V }) => {
|
|
@@ -1179,7 +1208,7 @@ const Go = (e, t, s, o) => {
|
|
|
1179
1208
|
},
|
|
1180
1209
|
removeBlocks: (v) => {
|
|
1181
1210
|
var B;
|
|
1182
|
-
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));
|
|
1183
1212
|
n(I(v, "_id")), e({
|
|
1184
1213
|
undo: () => o(v, j, F),
|
|
1185
1214
|
redo: () => n(I(v, "_id"))
|
|
@@ -1190,7 +1219,7 @@ const Go = (e, t, s, o) => {
|
|
|
1190
1219
|
if (L)
|
|
1191
1220
|
F = I(v, (B) => ({ _id: B, ...L }));
|
|
1192
1221
|
else {
|
|
1193
|
-
const B =
|
|
1222
|
+
const B = Ws(j);
|
|
1194
1223
|
F = I(v, (T) => {
|
|
1195
1224
|
const G = t.find((X) => X._id === T), V = { _id: T };
|
|
1196
1225
|
return ce(B, (X) => V[X] = G[X]), V;
|
|
@@ -1211,7 +1240,7 @@ const Go = (e, t, s, o) => {
|
|
|
1211
1240
|
});
|
|
1212
1241
|
}
|
|
1213
1242
|
};
|
|
1214
|
-
},
|
|
1243
|
+
}, Yo = ge(
|
|
1215
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",
|
|
1216
1245
|
{
|
|
1217
1246
|
variants: {
|
|
@@ -1230,10 +1259,10 @@ const Go = (e, t, s, o) => {
|
|
|
1230
1259
|
size: "default"
|
|
1231
1260
|
}
|
|
1232
1261
|
}
|
|
1233
|
-
),
|
|
1234
|
-
|
|
1235
|
-
const
|
|
1236
|
-
|
|
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,
|
|
1237
1266
|
{
|
|
1238
1267
|
className: d(
|
|
1239
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",
|
|
@@ -1242,7 +1271,7 @@ const Jo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1242
1271
|
...t,
|
|
1243
1272
|
ref: s,
|
|
1244
1273
|
children: /* @__PURE__ */ a.jsx(
|
|
1245
|
-
|
|
1274
|
+
Xe.Thumb,
|
|
1246
1275
|
{
|
|
1247
1276
|
className: d(
|
|
1248
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"
|
|
@@ -1251,8 +1280,8 @@ const Jo = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1251
1280
|
)
|
|
1252
1281
|
}
|
|
1253
1282
|
));
|
|
1254
|
-
|
|
1255
|
-
const
|
|
1283
|
+
Xo.displayName = Xe.Root.displayName;
|
|
1284
|
+
const xt = ge(
|
|
1256
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",
|
|
1257
1286
|
{
|
|
1258
1287
|
variants: {
|
|
@@ -1276,16 +1305,16 @@ const ht = ge(
|
|
|
1276
1305
|
size: "default"
|
|
1277
1306
|
}
|
|
1278
1307
|
}
|
|
1279
|
-
),
|
|
1308
|
+
), Zo = f.forwardRef(
|
|
1280
1309
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
|
|
1281
|
-
const r = o ?
|
|
1282
|
-
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 });
|
|
1283
1312
|
}
|
|
1284
1313
|
);
|
|
1285
|
-
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1288
|
-
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(
|
|
1289
1318
|
me.Trigger,
|
|
1290
1319
|
{
|
|
1291
1320
|
ref: o,
|
|
@@ -1296,12 +1325,12 @@ const Xo = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1296
1325
|
...s,
|
|
1297
1326
|
children: [
|
|
1298
1327
|
t,
|
|
1299
|
-
/* @__PURE__ */ a.jsx(
|
|
1328
|
+
/* @__PURE__ */ a.jsx(Js, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
1300
1329
|
]
|
|
1301
1330
|
}
|
|
1302
1331
|
) }));
|
|
1303
|
-
|
|
1304
|
-
const
|
|
1332
|
+
tn.displayName = me.Trigger.displayName;
|
|
1333
|
+
const sn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1305
1334
|
me.Content,
|
|
1306
1335
|
{
|
|
1307
1336
|
ref: o,
|
|
@@ -1313,8 +1342,8 @@ const Zo = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1313
1342
|
children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
|
|
1314
1343
|
}
|
|
1315
1344
|
));
|
|
1316
|
-
|
|
1317
|
-
const
|
|
1345
|
+
sn.displayName = me.Content.displayName;
|
|
1346
|
+
const on = ge(
|
|
1318
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",
|
|
1319
1348
|
{
|
|
1320
1349
|
variants: {
|
|
@@ -1327,17 +1356,17 @@ const en = ge(
|
|
|
1327
1356
|
variant: "default"
|
|
1328
1357
|
}
|
|
1329
1358
|
}
|
|
1330
|
-
),
|
|
1331
|
-
|
|
1332
|
-
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(
|
|
1333
1362
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
|
|
1334
1363
|
);
|
|
1335
|
-
|
|
1336
|
-
const
|
|
1364
|
+
an.displayName = "AlertTitle";
|
|
1365
|
+
const rn = f.forwardRef(
|
|
1337
1366
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
|
|
1338
1367
|
);
|
|
1339
|
-
|
|
1340
|
-
const
|
|
1368
|
+
rn.displayName = "AlertDescription";
|
|
1369
|
+
const ln = ge(
|
|
1341
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",
|
|
1342
1371
|
{
|
|
1343
1372
|
variants: {
|
|
@@ -1352,10 +1381,10 @@ const nn = ge(
|
|
|
1352
1381
|
variant: "default"
|
|
1353
1382
|
}
|
|
1354
1383
|
}
|
|
1355
|
-
),
|
|
1356
|
-
|
|
1357
|
-
const
|
|
1358
|
-
|
|
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,
|
|
1359
1388
|
{
|
|
1360
1389
|
className: d(
|
|
1361
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",
|
|
@@ -1365,11 +1394,11 @@ const us = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1365
1394
|
ref: s
|
|
1366
1395
|
}
|
|
1367
1396
|
));
|
|
1368
|
-
|
|
1369
|
-
const
|
|
1370
|
-
/* @__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, {}),
|
|
1371
1400
|
/* @__PURE__ */ a.jsx(
|
|
1372
|
-
|
|
1401
|
+
q.Content,
|
|
1373
1402
|
{
|
|
1374
1403
|
ref: s,
|
|
1375
1404
|
className: d(
|
|
@@ -1380,29 +1409,29 @@ const an = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ds
|
|
|
1380
1409
|
}
|
|
1381
1410
|
)
|
|
1382
1411
|
] }));
|
|
1383
|
-
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
const
|
|
1387
|
-
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1394
|
-
const
|
|
1395
|
-
|
|
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,
|
|
1396
1425
|
{
|
|
1397
1426
|
ref: s,
|
|
1398
|
-
className: d(
|
|
1427
|
+
className: d(xt({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
1399
1428
|
...t
|
|
1400
1429
|
}
|
|
1401
1430
|
));
|
|
1402
|
-
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1405
|
-
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(
|
|
1406
1435
|
P.Overlay,
|
|
1407
1436
|
{
|
|
1408
1437
|
ref: s,
|
|
@@ -1413,9 +1442,9 @@ const ps = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1413
1442
|
...t
|
|
1414
1443
|
}
|
|
1415
1444
|
));
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1418
|
-
/* @__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, {}),
|
|
1419
1448
|
/* @__PURE__ */ a.jsxs(
|
|
1420
1449
|
P.Content,
|
|
1421
1450
|
{
|
|
@@ -1428,19 +1457,19 @@ const xt = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1428
1457
|
children: [
|
|
1429
1458
|
t,
|
|
1430
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: [
|
|
1431
|
-
/* @__PURE__ */ a.jsx(
|
|
1460
|
+
/* @__PURE__ */ a.jsx(at, { className: "h-4 w-4" }),
|
|
1432
1461
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1433
1462
|
] })
|
|
1434
1463
|
]
|
|
1435
1464
|
}
|
|
1436
1465
|
)
|
|
1437
1466
|
] }));
|
|
1438
|
-
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1441
|
-
const
|
|
1442
|
-
|
|
1443
|
-
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(
|
|
1444
1473
|
P.Title,
|
|
1445
1474
|
{
|
|
1446
1475
|
ref: s,
|
|
@@ -1448,32 +1477,32 @@ const bn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1448
1477
|
...t
|
|
1449
1478
|
}
|
|
1450
1479
|
));
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1456
|
-
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(
|
|
1457
1486
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
1458
1487
|
);
|
|
1459
|
-
|
|
1460
|
-
const
|
|
1488
|
+
Nn.displayName = "CardHeader";
|
|
1489
|
+
const kn = f.forwardRef(
|
|
1461
1490
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
|
|
1462
1491
|
);
|
|
1463
|
-
|
|
1464
|
-
const
|
|
1492
|
+
kn.displayName = "CardTitle";
|
|
1493
|
+
const Sn = f.forwardRef(
|
|
1465
1494
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
|
|
1466
1495
|
);
|
|
1467
|
-
|
|
1468
|
-
const
|
|
1496
|
+
Sn.displayName = "CardDescription";
|
|
1497
|
+
const jn = f.forwardRef(
|
|
1469
1498
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
|
|
1470
1499
|
);
|
|
1471
|
-
|
|
1472
|
-
const
|
|
1500
|
+
jn.displayName = "CardContent";
|
|
1501
|
+
const An = f.forwardRef(
|
|
1473
1502
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
|
|
1474
1503
|
);
|
|
1475
|
-
|
|
1476
|
-
const
|
|
1504
|
+
An.displayName = "CardFooter";
|
|
1505
|
+
const Cn = f.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1477
1506
|
"input",
|
|
1478
1507
|
{
|
|
1479
1508
|
type: t,
|
|
@@ -1485,10 +1514,10 @@ const Sn = f.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
|
|
|
1485
1514
|
...s
|
|
1486
1515
|
}
|
|
1487
1516
|
));
|
|
1488
|
-
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
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(
|
|
1492
1521
|
"textarea",
|
|
1493
1522
|
{
|
|
1494
1523
|
className: d(
|
|
@@ -1499,14 +1528,14 @@ const Cn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1499
1528
|
...t
|
|
1500
1529
|
}
|
|
1501
1530
|
));
|
|
1502
|
-
|
|
1503
|
-
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: [
|
|
1504
1533
|
/* @__PURE__ */ a.jsx(ue.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
1505
|
-
/* @__PURE__ */ a.jsx(
|
|
1534
|
+
/* @__PURE__ */ a.jsx(hs, {}),
|
|
1506
1535
|
/* @__PURE__ */ a.jsx(ue.Corner, {})
|
|
1507
1536
|
] }));
|
|
1508
|
-
|
|
1509
|
-
const
|
|
1537
|
+
Pn.displayName = ue.Root.displayName;
|
|
1538
|
+
const hs = f.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1510
1539
|
ue.ScrollAreaScrollbar,
|
|
1511
1540
|
{
|
|
1512
1541
|
ref: o,
|
|
@@ -1521,8 +1550,8 @@ const gs = f.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1521
1550
|
children: /* @__PURE__ */ a.jsx(ue.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1522
1551
|
}
|
|
1523
1552
|
));
|
|
1524
|
-
|
|
1525
|
-
const
|
|
1553
|
+
hs.displayName = ue.ScrollAreaScrollbar.displayName;
|
|
1554
|
+
const Tn = be.Root, xs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1526
1555
|
be.List,
|
|
1527
1556
|
{
|
|
1528
1557
|
ref: s,
|
|
@@ -1533,8 +1562,8 @@ const _n = be.Root, bs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
|
|
|
1533
1562
|
...t
|
|
1534
1563
|
}
|
|
1535
1564
|
));
|
|
1536
|
-
|
|
1537
|
-
const
|
|
1565
|
+
xs.displayName = be.List.displayName;
|
|
1566
|
+
const et = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1538
1567
|
be.Trigger,
|
|
1539
1568
|
{
|
|
1540
1569
|
ref: s,
|
|
@@ -1545,8 +1574,8 @@ const Ze = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1545
1574
|
...t
|
|
1546
1575
|
}
|
|
1547
1576
|
));
|
|
1548
|
-
|
|
1549
|
-
const
|
|
1577
|
+
et.displayName = be.Trigger.displayName;
|
|
1578
|
+
const tt = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1550
1579
|
be.Content,
|
|
1551
1580
|
{
|
|
1552
1581
|
ref: s,
|
|
@@ -1557,9 +1586,9 @@ const et = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1557
1586
|
...t
|
|
1558
1587
|
}
|
|
1559
1588
|
));
|
|
1560
|
-
|
|
1561
|
-
const
|
|
1562
|
-
|
|
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,
|
|
1563
1592
|
{
|
|
1564
1593
|
ref: o,
|
|
1565
1594
|
sideOffset: t,
|
|
@@ -1570,9 +1599,9 @@ const Zr = ye.Portal, ei = ye.Provider, ti = ye.Root, si = ye.Trigger, Rn = f.fo
|
|
|
1570
1599
|
...s
|
|
1571
1600
|
}
|
|
1572
1601
|
));
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1575
|
-
|
|
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,
|
|
1576
1605
|
{
|
|
1577
1606
|
ref: n,
|
|
1578
1607
|
align: t,
|
|
@@ -1584,8 +1613,8 @@ const oi = je.Root, ni = je.Trigger, Pn = f.forwardRef(({ className: e, align: t
|
|
|
1584
1613
|
...o
|
|
1585
1614
|
}
|
|
1586
1615
|
) }));
|
|
1587
|
-
|
|
1588
|
-
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(
|
|
1589
1618
|
_.Root,
|
|
1590
1619
|
{
|
|
1591
1620
|
ref: s,
|
|
@@ -1593,8 +1622,8 @@ const ai = _.Menu, ri = _.Group, ii = _.Portal, li = _.Sub, ci = _.RadioGroup, T
|
|
|
1593
1622
|
...t
|
|
1594
1623
|
}
|
|
1595
1624
|
));
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1625
|
+
Dn.displayName = _.Root.displayName;
|
|
1626
|
+
const En = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1598
1627
|
_.Trigger,
|
|
1599
1628
|
{
|
|
1600
1629
|
ref: s,
|
|
@@ -1605,8 +1634,8 @@ const In = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1605
1634
|
...t
|
|
1606
1635
|
}
|
|
1607
1636
|
));
|
|
1608
|
-
|
|
1609
|
-
const
|
|
1637
|
+
En.displayName = _.Trigger.displayName;
|
|
1638
|
+
const On = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1610
1639
|
_.SubTrigger,
|
|
1611
1640
|
{
|
|
1612
1641
|
ref: n,
|
|
@@ -1618,12 +1647,12 @@ const Mn = f.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
|
|
|
1618
1647
|
...o,
|
|
1619
1648
|
children: [
|
|
1620
1649
|
s,
|
|
1621
|
-
/* @__PURE__ */ a.jsx(
|
|
1650
|
+
/* @__PURE__ */ a.jsx(rt, { className: "ml-auto h-4 w-4" })
|
|
1622
1651
|
]
|
|
1623
1652
|
}
|
|
1624
1653
|
));
|
|
1625
|
-
|
|
1626
|
-
const
|
|
1654
|
+
On.displayName = _.SubTrigger.displayName;
|
|
1655
|
+
const Ln = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1627
1656
|
_.SubContent,
|
|
1628
1657
|
{
|
|
1629
1658
|
ref: s,
|
|
@@ -1634,8 +1663,8 @@ const Dn = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1634
1663
|
...t
|
|
1635
1664
|
}
|
|
1636
1665
|
));
|
|
1637
|
-
|
|
1638
|
-
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(
|
|
1639
1668
|
_.Content,
|
|
1640
1669
|
{
|
|
1641
1670
|
ref: i,
|
|
@@ -1649,8 +1678,8 @@ const En = f.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
|
|
|
1649
1678
|
...n
|
|
1650
1679
|
}
|
|
1651
1680
|
) }));
|
|
1652
|
-
|
|
1653
|
-
const
|
|
1681
|
+
zn.displayName = _.Content.displayName;
|
|
1682
|
+
const Vn = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1654
1683
|
_.Item,
|
|
1655
1684
|
{
|
|
1656
1685
|
ref: o,
|
|
@@ -1662,8 +1691,8 @@ const On = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1662
1691
|
...s
|
|
1663
1692
|
}
|
|
1664
1693
|
));
|
|
1665
|
-
|
|
1666
|
-
const
|
|
1694
|
+
Vn.displayName = _.Item.displayName;
|
|
1695
|
+
const $n = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1667
1696
|
_.CheckboxItem,
|
|
1668
1697
|
{
|
|
1669
1698
|
ref: n,
|
|
@@ -1679,8 +1708,8 @@ const Ln = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1679
1708
|
]
|
|
1680
1709
|
}
|
|
1681
1710
|
));
|
|
1682
|
-
|
|
1683
|
-
const
|
|
1711
|
+
$n.displayName = _.CheckboxItem.displayName;
|
|
1712
|
+
const Fn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1684
1713
|
_.RadioItem,
|
|
1685
1714
|
{
|
|
1686
1715
|
ref: o,
|
|
@@ -1690,13 +1719,13 @@ const zn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1690
1719
|
),
|
|
1691
1720
|
...s,
|
|
1692
1721
|
children: [
|
|
1693
|
-
/* @__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" }) }) }),
|
|
1694
1723
|
t
|
|
1695
1724
|
]
|
|
1696
1725
|
}
|
|
1697
1726
|
));
|
|
1698
|
-
|
|
1699
|
-
const
|
|
1727
|
+
Fn.displayName = _.RadioItem.displayName;
|
|
1728
|
+
const Un = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1700
1729
|
_.Label,
|
|
1701
1730
|
{
|
|
1702
1731
|
ref: o,
|
|
@@ -1704,12 +1733,12 @@ const Vn = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1704
1733
|
...s
|
|
1705
1734
|
}
|
|
1706
1735
|
));
|
|
1707
|
-
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1710
|
-
const
|
|
1711
|
-
|
|
1712
|
-
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(
|
|
1713
1742
|
Ve.Content,
|
|
1714
1743
|
{
|
|
1715
1744
|
ref: n,
|
|
@@ -1722,8 +1751,8 @@ const di = Ve.Root, ui = Ve.Trigger, Un = f.forwardRef(({ className: e, align: t
|
|
|
1722
1751
|
...o
|
|
1723
1752
|
}
|
|
1724
1753
|
));
|
|
1725
|
-
|
|
1726
|
-
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(
|
|
1727
1756
|
U.Trigger,
|
|
1728
1757
|
{
|
|
1729
1758
|
ref: o,
|
|
@@ -1734,12 +1763,12 @@ const fi = U.Root, mi = U.Group, pi = U.Value, Wn = f.forwardRef(({ className: e
|
|
|
1734
1763
|
...s,
|
|
1735
1764
|
children: [
|
|
1736
1765
|
t,
|
|
1737
|
-
/* @__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" }) })
|
|
1738
1767
|
]
|
|
1739
1768
|
}
|
|
1740
1769
|
));
|
|
1741
|
-
|
|
1742
|
-
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(
|
|
1743
1772
|
U.Content,
|
|
1744
1773
|
{
|
|
1745
1774
|
ref: n,
|
|
@@ -1762,10 +1791,10 @@ const Gn = f.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
1762
1791
|
)
|
|
1763
1792
|
}
|
|
1764
1793
|
) }));
|
|
1765
|
-
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1768
|
-
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(
|
|
1769
1798
|
U.Item,
|
|
1770
1799
|
{
|
|
1771
1800
|
ref: o,
|
|
@@ -1780,12 +1809,12 @@ const qn = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1780
1809
|
]
|
|
1781
1810
|
}
|
|
1782
1811
|
));
|
|
1783
|
-
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1788
|
-
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(
|
|
1789
1818
|
P.Overlay,
|
|
1790
1819
|
{
|
|
1791
1820
|
className: d(
|
|
@@ -1796,8 +1825,8 @@ const xs = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1796
1825
|
ref: s
|
|
1797
1826
|
}
|
|
1798
1827
|
));
|
|
1799
|
-
|
|
1800
|
-
const
|
|
1828
|
+
ys.displayName = P.Overlay.displayName;
|
|
1829
|
+
const Xn = ge(
|
|
1801
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",
|
|
1802
1831
|
{
|
|
1803
1832
|
variants: {
|
|
@@ -1812,28 +1841,28 @@ const Jn = ge(
|
|
|
1812
1841
|
side: "right"
|
|
1813
1842
|
}
|
|
1814
1843
|
}
|
|
1815
|
-
),
|
|
1816
|
-
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1817
|
-
/* @__PURE__ */ a.jsx(
|
|
1818
|
-
/* @__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: [
|
|
1819
1848
|
s,
|
|
1820
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: [
|
|
1821
|
-
/* @__PURE__ */ a.jsx(
|
|
1850
|
+
/* @__PURE__ */ a.jsx(at, { className: "h-4 w-4" }),
|
|
1822
1851
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1823
1852
|
] })
|
|
1824
1853
|
] })
|
|
1825
1854
|
] })
|
|
1826
1855
|
);
|
|
1827
|
-
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1836
|
-
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(
|
|
1837
1866
|
M.SubTrigger,
|
|
1838
1867
|
{
|
|
1839
1868
|
ref: n,
|
|
@@ -1845,12 +1874,12 @@ const xi = M.Root, vi = M.Trigger, yi = M.Group, wi = M.Portal, Ni = M.Sub, ki =
|
|
|
1845
1874
|
...o,
|
|
1846
1875
|
children: [
|
|
1847
1876
|
s,
|
|
1848
|
-
/* @__PURE__ */ a.jsx(
|
|
1877
|
+
/* @__PURE__ */ a.jsx(rt, { className: "ml-auto h-4 w-4" })
|
|
1849
1878
|
]
|
|
1850
1879
|
}
|
|
1851
1880
|
));
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1881
|
+
na.displayName = M.SubTrigger.displayName;
|
|
1882
|
+
const aa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1854
1883
|
M.SubContent,
|
|
1855
1884
|
{
|
|
1856
1885
|
ref: s,
|
|
@@ -1861,8 +1890,8 @@ const sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1861
1890
|
...t
|
|
1862
1891
|
}
|
|
1863
1892
|
));
|
|
1864
|
-
|
|
1865
|
-
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(
|
|
1866
1895
|
M.Content,
|
|
1867
1896
|
{
|
|
1868
1897
|
ref: o,
|
|
@@ -1875,8 +1904,8 @@ const oa = f.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
|
|
|
1875
1904
|
...s
|
|
1876
1905
|
}
|
|
1877
1906
|
) }));
|
|
1878
|
-
|
|
1879
|
-
const
|
|
1907
|
+
ra.displayName = M.Content.displayName;
|
|
1908
|
+
const ia = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1880
1909
|
M.Item,
|
|
1881
1910
|
{
|
|
1882
1911
|
ref: o,
|
|
@@ -1888,8 +1917,8 @@ const na = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1888
1917
|
...s
|
|
1889
1918
|
}
|
|
1890
1919
|
));
|
|
1891
|
-
|
|
1892
|
-
const
|
|
1920
|
+
ia.displayName = M.Item.displayName;
|
|
1921
|
+
const la = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1893
1922
|
M.CheckboxItem,
|
|
1894
1923
|
{
|
|
1895
1924
|
ref: n,
|
|
@@ -1905,8 +1934,8 @@ const aa = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1905
1934
|
]
|
|
1906
1935
|
}
|
|
1907
1936
|
));
|
|
1908
|
-
|
|
1909
|
-
const
|
|
1937
|
+
la.displayName = M.CheckboxItem.displayName;
|
|
1938
|
+
const ca = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1910
1939
|
M.RadioItem,
|
|
1911
1940
|
{
|
|
1912
1941
|
ref: o,
|
|
@@ -1916,13 +1945,13 @@ const ra = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1916
1945
|
),
|
|
1917
1946
|
...s,
|
|
1918
1947
|
children: [
|
|
1919
|
-
/* @__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" }) }) }),
|
|
1920
1949
|
t
|
|
1921
1950
|
]
|
|
1922
1951
|
}
|
|
1923
1952
|
));
|
|
1924
|
-
|
|
1925
|
-
const
|
|
1953
|
+
ca.displayName = M.RadioItem.displayName;
|
|
1954
|
+
const da = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1926
1955
|
M.Label,
|
|
1927
1956
|
{
|
|
1928
1957
|
ref: o,
|
|
@@ -1930,13 +1959,13 @@ const ia = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1930
1959
|
...s
|
|
1931
1960
|
}
|
|
1932
1961
|
));
|
|
1933
|
-
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1938
|
-
const
|
|
1939
|
-
|
|
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,
|
|
1940
1969
|
{
|
|
1941
1970
|
ref: n,
|
|
1942
1971
|
decorative: s,
|
|
@@ -1945,28 +1974,28 @@ const da = f.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
1945
1974
|
...o
|
|
1946
1975
|
}
|
|
1947
1976
|
));
|
|
1948
|
-
|
|
1949
|
-
const
|
|
1950
|
-
let
|
|
1951
|
-
function
|
|
1952
|
-
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();
|
|
1953
1982
|
}
|
|
1954
|
-
const
|
|
1955
|
-
if (
|
|
1983
|
+
const qe = /* @__PURE__ */ new Map(), Mt = (e) => {
|
|
1984
|
+
if (qe.has(e))
|
|
1956
1985
|
return;
|
|
1957
1986
|
const t = setTimeout(() => {
|
|
1958
|
-
|
|
1987
|
+
qe.delete(e), je({
|
|
1959
1988
|
type: "REMOVE_TOAST",
|
|
1960
1989
|
toastId: e
|
|
1961
1990
|
});
|
|
1962
|
-
},
|
|
1963
|
-
|
|
1964
|
-
},
|
|
1991
|
+
}, ga);
|
|
1992
|
+
qe.set(e, t);
|
|
1993
|
+
}, ha = (e, t) => {
|
|
1965
1994
|
switch (t.type) {
|
|
1966
1995
|
case "ADD_TOAST":
|
|
1967
1996
|
return {
|
|
1968
1997
|
...e,
|
|
1969
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
1998
|
+
toasts: [t.toast, ...e.toasts].slice(0, pa)
|
|
1970
1999
|
};
|
|
1971
2000
|
case "UPDATE_TOAST":
|
|
1972
2001
|
return {
|
|
@@ -1975,8 +2004,8 @@ const He = /* @__PURE__ */ new Map(), It = (e) => {
|
|
|
1975
2004
|
};
|
|
1976
2005
|
case "DISMISS_TOAST": {
|
|
1977
2006
|
const { toastId: s } = t;
|
|
1978
|
-
return s ?
|
|
1979
|
-
|
|
2007
|
+
return s ? Mt(s) : e.toasts.forEach((o) => {
|
|
2008
|
+
Mt(o.id);
|
|
1980
2009
|
}), {
|
|
1981
2010
|
...e,
|
|
1982
2011
|
toasts: e.toasts.map(
|
|
@@ -1996,19 +2025,19 @@ const He = /* @__PURE__ */ new Map(), It = (e) => {
|
|
|
1996
2025
|
toasts: e.toasts.filter((s) => s.id !== t.toastId)
|
|
1997
2026
|
};
|
|
1998
2027
|
}
|
|
1999
|
-
},
|
|
2000
|
-
let
|
|
2001
|
-
function
|
|
2002
|
-
|
|
2003
|
-
t(
|
|
2028
|
+
}, De = [];
|
|
2029
|
+
let Ee = { toasts: [] };
|
|
2030
|
+
function je(e) {
|
|
2031
|
+
Ee = ha(Ee, e), De.forEach((t) => {
|
|
2032
|
+
t(Ee);
|
|
2004
2033
|
});
|
|
2005
2034
|
}
|
|
2006
|
-
function
|
|
2007
|
-
const t =
|
|
2035
|
+
function xa({ ...e }) {
|
|
2036
|
+
const t = ba(), s = (n) => je({
|
|
2008
2037
|
type: "UPDATE_TOAST",
|
|
2009
2038
|
toast: { ...n, id: t }
|
|
2010
|
-
}), o = () =>
|
|
2011
|
-
return
|
|
2039
|
+
}), o = () => je({ type: "DISMISS_TOAST", toastId: t });
|
|
2040
|
+
return je({
|
|
2012
2041
|
type: "ADD_TOAST",
|
|
2013
2042
|
toast: {
|
|
2014
2043
|
...e,
|
|
@@ -2024,19 +2053,19 @@ function ga({ ...e }) {
|
|
|
2024
2053
|
update: s
|
|
2025
2054
|
};
|
|
2026
2055
|
}
|
|
2027
|
-
function
|
|
2028
|
-
const [e, t] = f.useState(
|
|
2029
|
-
return f.useEffect(() => (
|
|
2030
|
-
const s =
|
|
2031
|
-
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);
|
|
2032
2061
|
}), [e]), {
|
|
2033
2062
|
...e,
|
|
2034
|
-
toast:
|
|
2035
|
-
dismiss: (s) =>
|
|
2063
|
+
toast: xa,
|
|
2064
|
+
dismiss: (s) => je({ type: "DISMISS_TOAST", toastId: s })
|
|
2036
2065
|
};
|
|
2037
2066
|
}
|
|
2038
|
-
const
|
|
2039
|
-
|
|
2067
|
+
const va = ee.Provider, Ns = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2068
|
+
ee.Viewport,
|
|
2040
2069
|
{
|
|
2041
2070
|
ref: s,
|
|
2042
2071
|
className: d(
|
|
@@ -2046,8 +2075,8 @@ const ba = Z.Provider, ys = f.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
2046
2075
|
...t
|
|
2047
2076
|
}
|
|
2048
2077
|
));
|
|
2049
|
-
|
|
2050
|
-
const
|
|
2078
|
+
Ns.displayName = ee.Viewport.displayName;
|
|
2079
|
+
const ya = ge(
|
|
2051
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",
|
|
2052
2081
|
{
|
|
2053
2082
|
variants: {
|
|
@@ -2060,10 +2089,10 @@ const ha = ge(
|
|
|
2060
2089
|
variant: "default"
|
|
2061
2090
|
}
|
|
2062
2091
|
}
|
|
2063
|
-
),
|
|
2064
|
-
|
|
2065
|
-
const
|
|
2066
|
-
|
|
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,
|
|
2067
2096
|
{
|
|
2068
2097
|
ref: s,
|
|
2069
2098
|
className: d(
|
|
@@ -2073,9 +2102,9 @@ const xa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2073
2102
|
...t
|
|
2074
2103
|
}
|
|
2075
2104
|
));
|
|
2076
|
-
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2105
|
+
wa.displayName = ee.Action.displayName;
|
|
2106
|
+
const Ss = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2107
|
+
ee.Close,
|
|
2079
2108
|
{
|
|
2080
2109
|
ref: s,
|
|
2081
2110
|
className: d(
|
|
@@ -2084,29 +2113,29 @@ const Ns = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2084
2113
|
),
|
|
2085
2114
|
"toast-close": "",
|
|
2086
2115
|
...t,
|
|
2087
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2116
|
+
children: /* @__PURE__ */ a.jsx(at, { className: "h-4 w-4" })
|
|
2088
2117
|
}
|
|
2089
2118
|
));
|
|
2090
|
-
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2093
|
-
const
|
|
2094
|
-
|
|
2095
|
-
function
|
|
2096
|
-
const { toasts: e } =
|
|
2097
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2098
|
-
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: [
|
|
2099
2128
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
|
|
2100
|
-
s && /* @__PURE__ */ a.jsx(
|
|
2101
|
-
o && /* @__PURE__ */ a.jsx(
|
|
2129
|
+
s && /* @__PURE__ */ a.jsx(js, { children: s }),
|
|
2130
|
+
o && /* @__PURE__ */ a.jsx(As, { children: o })
|
|
2102
2131
|
] }),
|
|
2103
2132
|
n,
|
|
2104
|
-
/* @__PURE__ */ a.jsx(
|
|
2133
|
+
/* @__PURE__ */ a.jsx(Ss, {})
|
|
2105
2134
|
] }, t)),
|
|
2106
|
-
/* @__PURE__ */ a.jsx(
|
|
2135
|
+
/* @__PURE__ */ a.jsx(Ns, {})
|
|
2107
2136
|
] });
|
|
2108
2137
|
}
|
|
2109
|
-
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(
|
|
2110
2139
|
Q,
|
|
2111
2140
|
{
|
|
2112
2141
|
ref: s,
|
|
@@ -2117,9 +2146,9 @@ const ji = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2117
2146
|
...t
|
|
2118
2147
|
}
|
|
2119
2148
|
));
|
|
2120
|
-
|
|
2121
|
-
const
|
|
2122
|
-
/* @__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" }),
|
|
2123
2152
|
/* @__PURE__ */ a.jsx(
|
|
2124
2153
|
Q.Input,
|
|
2125
2154
|
{
|
|
@@ -2132,8 +2161,8 @@ const Ai = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(fs, { ...t, children
|
|
|
2132
2161
|
}
|
|
2133
2162
|
)
|
|
2134
2163
|
] }));
|
|
2135
|
-
|
|
2136
|
-
const
|
|
2164
|
+
Na.displayName = Q.Input.displayName;
|
|
2165
|
+
const ka = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2137
2166
|
Q.List,
|
|
2138
2167
|
{
|
|
2139
2168
|
ref: s,
|
|
@@ -2141,10 +2170,10 @@ const ya = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2141
2170
|
...t
|
|
2142
2171
|
}
|
|
2143
2172
|
));
|
|
2144
|
-
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2147
|
-
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(
|
|
2148
2177
|
Q.Group,
|
|
2149
2178
|
{
|
|
2150
2179
|
ref: s,
|
|
@@ -2155,10 +2184,10 @@ const Na = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2155
2184
|
...t
|
|
2156
2185
|
}
|
|
2157
2186
|
));
|
|
2158
|
-
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2161
|
-
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(
|
|
2162
2191
|
Q.Item,
|
|
2163
2192
|
{
|
|
2164
2193
|
ref: s,
|
|
@@ -2169,10 +2198,10 @@ const Sa = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2169
2198
|
...t
|
|
2170
2199
|
}
|
|
2171
2200
|
));
|
|
2172
|
-
|
|
2173
|
-
const
|
|
2174
|
-
|
|
2175
|
-
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(
|
|
2176
2205
|
D.SubTrigger,
|
|
2177
2206
|
{
|
|
2178
2207
|
ref: n,
|
|
@@ -2184,12 +2213,12 @@ const Ci = D.Root, Bi = D.Trigger, _i = D.Group, Ri = D.Portal, Pi = D.Sub, Ti =
|
|
|
2184
2213
|
...o,
|
|
2185
2214
|
children: [
|
|
2186
2215
|
s,
|
|
2187
|
-
/* @__PURE__ */ a.jsx(
|
|
2216
|
+
/* @__PURE__ */ a.jsx(rt, { className: "ml-auto h-4 w-4" })
|
|
2188
2217
|
]
|
|
2189
2218
|
}
|
|
2190
2219
|
));
|
|
2191
|
-
|
|
2192
|
-
const
|
|
2220
|
+
_a.displayName = D.SubTrigger.displayName;
|
|
2221
|
+
const Ra = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2193
2222
|
D.SubContent,
|
|
2194
2223
|
{
|
|
2195
2224
|
ref: s,
|
|
@@ -2200,8 +2229,8 @@ const Ca = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2200
2229
|
...t
|
|
2201
2230
|
}
|
|
2202
2231
|
));
|
|
2203
|
-
|
|
2204
|
-
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(
|
|
2205
2234
|
D.Content,
|
|
2206
2235
|
{
|
|
2207
2236
|
ref: s,
|
|
@@ -2212,8 +2241,8 @@ const Ba = f.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(D.P
|
|
|
2212
2241
|
...t
|
|
2213
2242
|
}
|
|
2214
2243
|
) }));
|
|
2215
|
-
|
|
2216
|
-
const
|
|
2244
|
+
Pa.displayName = D.Content.displayName;
|
|
2245
|
+
const Ta = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2217
2246
|
D.Item,
|
|
2218
2247
|
{
|
|
2219
2248
|
ref: o,
|
|
@@ -2225,8 +2254,8 @@ const _a = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2225
2254
|
...s
|
|
2226
2255
|
}
|
|
2227
2256
|
));
|
|
2228
|
-
|
|
2229
|
-
const
|
|
2257
|
+
Ta.displayName = D.Item.displayName;
|
|
2258
|
+
const Ia = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2230
2259
|
D.CheckboxItem,
|
|
2231
2260
|
{
|
|
2232
2261
|
ref: n,
|
|
@@ -2242,8 +2271,8 @@ const Ra = f.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2242
2271
|
]
|
|
2243
2272
|
}
|
|
2244
2273
|
));
|
|
2245
|
-
|
|
2246
|
-
const
|
|
2274
|
+
Ia.displayName = D.CheckboxItem.displayName;
|
|
2275
|
+
const Ma = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2247
2276
|
D.RadioItem,
|
|
2248
2277
|
{
|
|
2249
2278
|
ref: o,
|
|
@@ -2253,13 +2282,13 @@ const Pa = f.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2253
2282
|
),
|
|
2254
2283
|
...s,
|
|
2255
2284
|
children: [
|
|
2256
|
-
/* @__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" }) }) }),
|
|
2257
2286
|
t
|
|
2258
2287
|
]
|
|
2259
2288
|
}
|
|
2260
2289
|
));
|
|
2261
|
-
|
|
2262
|
-
const
|
|
2290
|
+
Ma.displayName = D.RadioItem.displayName;
|
|
2291
|
+
const Da = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2263
2292
|
D.Label,
|
|
2264
2293
|
{
|
|
2265
2294
|
ref: o,
|
|
@@ -2267,15 +2296,15 @@ const Ta = f.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2267
2296
|
...s
|
|
2268
2297
|
}
|
|
2269
2298
|
));
|
|
2270
|
-
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2273
|
-
const
|
|
2274
|
-
|
|
2275
|
-
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) => {
|
|
2276
2305
|
try {
|
|
2277
2306
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2278
|
-
|
|
2307
|
+
eo.render(/* @__PURE__ */ a.jsx(Zs, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
2279
2308
|
let o = s.innerHTML;
|
|
2280
2309
|
setTimeout(() => t.removeChild(s), 100);
|
|
2281
2310
|
const i = new DOMParser().parseFromString(o, "image/svg+xml"), r = i.querySelector("svg");
|
|
@@ -2283,10 +2312,10 @@ const Da = (e) => {
|
|
|
2283
2312
|
} catch (t) {
|
|
2284
2313
|
return console.error(t), "";
|
|
2285
2314
|
}
|
|
2286
|
-
},
|
|
2315
|
+
}, Vi = ({ value: e, onChange: t }) => {
|
|
2287
2316
|
const s = (o) => {
|
|
2288
2317
|
t("<svg />");
|
|
2289
|
-
const n =
|
|
2318
|
+
const n = La(o);
|
|
2290
2319
|
t(n);
|
|
2291
2320
|
};
|
|
2292
2321
|
return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
|
|
@@ -2301,7 +2330,7 @@ const Da = (e) => {
|
|
|
2301
2330
|
}
|
|
2302
2331
|
),
|
|
2303
2332
|
/* @__PURE__ */ a.jsx(
|
|
2304
|
-
|
|
2333
|
+
Xs,
|
|
2305
2334
|
{
|
|
2306
2335
|
value: e ? "BiSolidGrid" : null,
|
|
2307
2336
|
onChange: s,
|
|
@@ -2337,37 +2366,37 @@ const Da = (e) => {
|
|
|
2337
2366
|
}
|
|
2338
2367
|
)
|
|
2339
2368
|
] });
|
|
2340
|
-
},
|
|
2369
|
+
}, za = st.lazy(() => import("./UnsplashImages-4WAWgA4s.js")), Va = st.lazy(() => import("./UploadImages-PONIHtn6.js")), Bs = ({
|
|
2341
2370
|
isModalView: e = !1,
|
|
2342
2371
|
onSelect: t = () => {
|
|
2343
2372
|
}
|
|
2344
2373
|
}) => {
|
|
2345
|
-
const [s, o] =
|
|
2374
|
+
const [s, o] = _e("upload");
|
|
2346
2375
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
2347
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" }) }),
|
|
2348
|
-
/* @__PURE__ */ a.jsxs(
|
|
2349
|
-
/* @__PURE__ */ a.jsxs(
|
|
2350
|
-
/* @__PURE__ */ a.jsx(
|
|
2351
|
-
/* @__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" })
|
|
2352
2381
|
] }),
|
|
2353
|
-
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 }) }) })
|
|
2354
2383
|
] })
|
|
2355
2384
|
] });
|
|
2356
|
-
},
|
|
2385
|
+
}, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2357
2386
|
__proto__: null,
|
|
2358
|
-
default:
|
|
2359
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2360
|
-
const [s, o] =
|
|
2387
|
+
default: Bs
|
|
2388
|
+
}, Symbol.toStringTag, { value: "Module" })), Dt = ({ children: e, onSelect: t }) => {
|
|
2389
|
+
const [s, o] = _e(!1), n = (...i) => {
|
|
2361
2390
|
t.call(void 0, ...i), o(!1);
|
|
2362
2391
|
};
|
|
2363
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2364
|
-
/* @__PURE__ */ a.jsx(
|
|
2365
|
-
/* @__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 }) }) })
|
|
2366
2395
|
] });
|
|
2367
|
-
},
|
|
2368
|
-
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" }) }),
|
|
2369
2398
|
/* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
|
|
2370
|
-
/* @__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" }) }),
|
|
2371
2400
|
/* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
|
|
2372
2401
|
/* @__PURE__ */ a.jsx(
|
|
2373
2402
|
"input",
|
|
@@ -2381,7 +2410,7 @@ const Da = (e) => {
|
|
|
2381
2410
|
}
|
|
2382
2411
|
)
|
|
2383
2412
|
] })
|
|
2384
|
-
] }),
|
|
2413
|
+
] }), Ui = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
|
|
2385
2414
|
const i = {
|
|
2386
2415
|
toolbar: [
|
|
2387
2416
|
["bold", "italic", "underline", "strike", "blockquote"],
|
|
@@ -2405,7 +2434,7 @@ const Da = (e) => {
|
|
|
2405
2434
|
"image"
|
|
2406
2435
|
];
|
|
2407
2436
|
return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
|
|
2408
|
-
|
|
2437
|
+
to,
|
|
2409
2438
|
{
|
|
2410
2439
|
id: e,
|
|
2411
2440
|
value: s,
|
|
@@ -2417,9 +2446,9 @@ const Da = (e) => {
|
|
|
2417
2446
|
className: "mt-1 rounded-md"
|
|
2418
2447
|
}
|
|
2419
2448
|
);
|
|
2420
|
-
},
|
|
2421
|
-
const [o, n] =
|
|
2422
|
-
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(() => {
|
|
2423
2452
|
(async () => {
|
|
2424
2453
|
const l = await i();
|
|
2425
2454
|
n(l || []);
|
|
@@ -2470,8 +2499,8 @@ const Da = (e) => {
|
|
|
2470
2499
|
] })
|
|
2471
2500
|
] })
|
|
2472
2501
|
] });
|
|
2473
|
-
},
|
|
2474
|
-
const [e] =
|
|
2502
|
+
}, Gi = () => {
|
|
2503
|
+
const [e] = ke(), [, t] = Fe(), { addBlocks: s } = he(), { toast: o } = ws(), n = $(
|
|
2475
2504
|
(r, c, p) => {
|
|
2476
2505
|
var v;
|
|
2477
2506
|
for (let j = 0; j < r.length; j++) {
|
|
@@ -2481,9 +2510,9 @@ const Da = (e) => {
|
|
|
2481
2510
|
for (let B = 0; B < F.length; B++)
|
|
2482
2511
|
F[B]._parent = r[j]._id;
|
|
2483
2512
|
}
|
|
2484
|
-
const l =
|
|
2513
|
+
const l = te(r);
|
|
2485
2514
|
let m, N;
|
|
2486
|
-
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);
|
|
2487
2516
|
},
|
|
2488
2517
|
[e, t]
|
|
2489
2518
|
);
|
|
@@ -2493,10 +2522,10 @@ const Da = (e) => {
|
|
|
2493
2522
|
const B = r.blocks;
|
|
2494
2523
|
return n(B, c, p);
|
|
2495
2524
|
}
|
|
2496
|
-
const l = de(), m =
|
|
2497
|
-
|
|
2498
|
-
if (
|
|
2499
|
-
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, "");
|
|
2500
2529
|
N.push({
|
|
2501
2530
|
_id: G,
|
|
2502
2531
|
_type: "Slot",
|
|
@@ -2513,7 +2542,7 @@ const Da = (e) => {
|
|
|
2513
2542
|
...m
|
|
2514
2543
|
};
|
|
2515
2544
|
let v, j;
|
|
2516
|
-
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)) {
|
|
2517
2546
|
o({
|
|
2518
2547
|
variant: "destructive",
|
|
2519
2548
|
title: "Error",
|
|
@@ -2521,29 +2550,29 @@ const Da = (e) => {
|
|
|
2521
2550
|
}), t([]);
|
|
2522
2551
|
return;
|
|
2523
2552
|
}
|
|
2524
|
-
!(v ?
|
|
2553
|
+
!(v ? Rt(v._type, r.type) : !0) && v && (S._parent = v._parent, j = v._parent);
|
|
2525
2554
|
const F = [S, ...N];
|
|
2526
2555
|
return s(F, j, p), t([S._id]), S;
|
|
2527
2556
|
},
|
|
2528
2557
|
[n, e, t]
|
|
2529
2558
|
), addPredefinedBlock: n };
|
|
2530
|
-
},
|
|
2559
|
+
}, Et = {
|
|
2531
2560
|
xs: 420,
|
|
2532
2561
|
sm: 620,
|
|
2533
2562
|
md: 768,
|
|
2534
2563
|
lg: 1024,
|
|
2535
2564
|
xl: 1280,
|
|
2536
2565
|
"2xl": 1536
|
|
2537
|
-
},
|
|
2538
|
-
function
|
|
2566
|
+
}, Ot = ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
2567
|
+
function $a(e, t) {
|
|
2539
2568
|
if (t === null)
|
|
2540
2569
|
return "baseClasses";
|
|
2541
2570
|
const s = t.mq;
|
|
2542
2571
|
if (s === "xs" || t.dark || t.mod !== "")
|
|
2543
2572
|
return "classes";
|
|
2544
|
-
let o = "baseClasses", n =
|
|
2573
|
+
let o = "baseClasses", n = Ot.indexOf(s);
|
|
2545
2574
|
for (; n > 0; ) {
|
|
2546
|
-
const i =
|
|
2575
|
+
const i = Ot[n - 1];
|
|
2547
2576
|
if (oe(e, {
|
|
2548
2577
|
mq: i,
|
|
2549
2578
|
property: t.property
|
|
@@ -2555,25 +2584,25 @@ function La(e, t) {
|
|
|
2555
2584
|
}
|
|
2556
2585
|
return o;
|
|
2557
2586
|
}
|
|
2558
|
-
const
|
|
2559
|
-
function
|
|
2587
|
+
const Lt = [];
|
|
2588
|
+
function Fa(e = "", t = "", s = []) {
|
|
2560
2589
|
e = e.trim().replace(/ +/g, "");
|
|
2561
2590
|
let o = E(
|
|
2562
|
-
I(e.split(" "),
|
|
2563
|
-
(l) => !
|
|
2564
|
-
), n = E(I(t.split(" "),
|
|
2591
|
+
I(e.split(" "), Me),
|
|
2592
|
+
(l) => !Je(l)
|
|
2593
|
+
), n = E(I(t.split(" "), Me), (l) => !Je(l));
|
|
2565
2594
|
n = E(
|
|
2566
2595
|
n,
|
|
2567
|
-
(l) => !Y(
|
|
2596
|
+
(l) => !Y(Lt, l.property)
|
|
2568
2597
|
);
|
|
2569
2598
|
const i = [], r = [];
|
|
2570
2599
|
ce(s, (l) => {
|
|
2571
|
-
const m =
|
|
2600
|
+
const m = Me(l), N = oe(o, Nt(m, ["dark", "mq", "mod", "property"]));
|
|
2572
2601
|
if (N && (o = E(
|
|
2573
2602
|
o,
|
|
2574
2603
|
(S) => S.fullCls !== (N == null ? void 0 : N.fullCls)
|
|
2575
|
-
)), i.push(m), m.mq === "xs" && !m.dark && m.mod === "" && (n = E(n, (S) => S.property !== m.property)),
|
|
2576
|
-
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"]));
|
|
2577
2606
|
N && (n = E(
|
|
2578
2607
|
n,
|
|
2579
2608
|
(v) => v.fullCls !== (S == null ? void 0 : S.fullCls)
|
|
@@ -2585,36 +2614,36 @@ function za(e = "", t = "", s = []) {
|
|
|
2585
2614
|
}
|
|
2586
2615
|
});
|
|
2587
2616
|
const c = I(
|
|
2588
|
-
|
|
2617
|
+
kt([...o, ...i], (l) => Et[l.mq]),
|
|
2589
2618
|
"fullCls"
|
|
2590
2619
|
).join(" ");
|
|
2591
2620
|
return `${I(
|
|
2592
|
-
|
|
2621
|
+
kt([...n, ...r], (l) => Et[l.mq]),
|
|
2593
2622
|
"fullCls"
|
|
2594
2623
|
).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
|
|
2595
2624
|
}
|
|
2596
|
-
const
|
|
2597
|
-
|
|
2598
|
-
const
|
|
2625
|
+
const Te = y([]);
|
|
2626
|
+
Te.debugLabel = "selectedStylingBlocksAtom";
|
|
2627
|
+
const Ua = () => O(Te), Wa = (e) => {
|
|
2599
2628
|
const t = e.replace(fe, "").split(",");
|
|
2600
2629
|
return { baseClasses: t[0], classes: t[1] };
|
|
2601
|
-
},
|
|
2630
|
+
}, Ga = y(null, (e, t, { blockIds: s, newClasses: o }) => {
|
|
2602
2631
|
const n = E(
|
|
2603
|
-
e(
|
|
2632
|
+
e(ct),
|
|
2604
2633
|
(r) => (
|
|
2605
2634
|
// @ts-ignore
|
|
2606
2635
|
s.includes(e(r)._id)
|
|
2607
2636
|
)
|
|
2608
|
-
), i =
|
|
2637
|
+
), i = te(e(Te));
|
|
2609
2638
|
return I(n, (r) => {
|
|
2610
|
-
const c = e(r), p =
|
|
2639
|
+
const c = e(r), p = H(c, i.prop, `${fe},`), { baseClasses: l, classes: m } = Wa(p);
|
|
2611
2640
|
return {
|
|
2612
2641
|
ids: [c._id],
|
|
2613
|
-
props: { [i.prop]: `${fe}${
|
|
2642
|
+
props: { [i.prop]: `${fe}${Fa(m, l, o)}` }
|
|
2614
2643
|
};
|
|
2615
2644
|
});
|
|
2616
|
-
}),
|
|
2617
|
-
const e =
|
|
2645
|
+
}), Hi = () => {
|
|
2646
|
+
const e = Re(Ga), { updateBlocks: t, updateBlocksRuntime: s } = he();
|
|
2618
2647
|
return $(
|
|
2619
2648
|
(o, n, i = !1) => {
|
|
2620
2649
|
const r = e({ blockIds: o, newClasses: n });
|
|
@@ -2626,35 +2655,35 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2626
2655
|
},
|
|
2627
2656
|
[e]
|
|
2628
2657
|
);
|
|
2629
|
-
},
|
|
2630
|
-
const t = e(
|
|
2631
|
-
return
|
|
2632
|
-
}),
|
|
2633
|
-
const [e, t] = O(
|
|
2634
|
-
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(() => {
|
|
2635
2664
|
o !== "xs" && n(s);
|
|
2636
2665
|
}, [s, o, n]), [e, s, t];
|
|
2637
|
-
},
|
|
2638
|
-
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 = $(
|
|
2639
2668
|
(n) => {
|
|
2640
2669
|
t(n), s([]);
|
|
2641
2670
|
},
|
|
2642
2671
|
[t, s]
|
|
2643
2672
|
);
|
|
2644
2673
|
return [e, o];
|
|
2645
|
-
},
|
|
2646
|
-
const [e, t] = O(
|
|
2674
|
+
}, yt = y([]), Ji = () => {
|
|
2675
|
+
const [e, t] = O(yt), s = Re(Ps), o = $(
|
|
2647
2676
|
(n) => {
|
|
2648
2677
|
t(n), s([]);
|
|
2649
2678
|
},
|
|
2650
2679
|
[t, s]
|
|
2651
2680
|
);
|
|
2652
2681
|
return [e, o];
|
|
2653
|
-
},
|
|
2654
|
-
const [e, t] = O(
|
|
2682
|
+
}, Ts = Pe("darkMode", !1), Yi = () => {
|
|
2683
|
+
const [e, t] = O(Ts);
|
|
2655
2684
|
return [e, t];
|
|
2656
|
-
},
|
|
2657
|
-
const [e] =
|
|
2685
|
+
}, Ja = () => {
|
|
2686
|
+
const [e] = ke(), [, t] = Fe(), { addBlocks: s } = he();
|
|
2658
2687
|
return $(
|
|
2659
2688
|
(o, n = null) => {
|
|
2660
2689
|
const i = [];
|
|
@@ -2663,51 +2692,51 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2663
2692
|
n || (n = c._parent);
|
|
2664
2693
|
const m = E(
|
|
2665
2694
|
e,
|
|
2666
|
-
(S) =>
|
|
2667
|
-
).indexOf(c) + 1, N =
|
|
2668
|
-
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", ""));
|
|
2669
2698
|
}), t(i);
|
|
2670
2699
|
},
|
|
2671
2700
|
[e, t]
|
|
2672
2701
|
);
|
|
2673
|
-
},
|
|
2674
|
-
const [e, t] = O(
|
|
2702
|
+
}, Ya = y([]), Qi = () => {
|
|
2703
|
+
const [e, t] = O(Ya), s = $(
|
|
2675
2704
|
(o) => {
|
|
2676
|
-
t((n) => Y(n, o) ?
|
|
2705
|
+
t((n) => Y(n, o) ? $t(n, o) : [...n, o]);
|
|
2677
2706
|
},
|
|
2678
2707
|
[t]
|
|
2679
2708
|
);
|
|
2680
2709
|
return [e, t, s];
|
|
2681
|
-
},
|
|
2682
|
-
const e =
|
|
2710
|
+
}, Qa = y(""), Xa = () => O(Qa), Za = () => {
|
|
2711
|
+
const e = Z(ne);
|
|
2683
2712
|
return $(
|
|
2684
2713
|
(t, s) => {
|
|
2685
|
-
const o = I(e, (n) => (Y(t,
|
|
2714
|
+
const o = I(e, (n) => (Y(t, H(n, "_id")) && Ae(n, "_parent", s), n));
|
|
2686
2715
|
console.log("newBlocks", o);
|
|
2687
2716
|
},
|
|
2688
2717
|
[e]
|
|
2689
2718
|
);
|
|
2690
|
-
},
|
|
2719
|
+
}, Xi = () => {
|
|
2691
2720
|
console.warn("usePasteBlocks is not implemented");
|
|
2692
|
-
const e =
|
|
2721
|
+
const e = Z(yt), [t, s] = Ka(), o = Ja(), n = Za();
|
|
2693
2722
|
return {
|
|
2694
|
-
canPaste:
|
|
2723
|
+
canPaste: ot(
|
|
2695
2724
|
() => t.length > 0 || e.length > 0,
|
|
2696
2725
|
[e, t]
|
|
2697
2726
|
),
|
|
2698
2727
|
pasteBlocks: $(
|
|
2699
2728
|
(r) => {
|
|
2700
|
-
|
|
2729
|
+
ye(e) ? n(t, r) : o(e, r), s(() => []);
|
|
2701
2730
|
},
|
|
2702
2731
|
[t, e, o, n, s]
|
|
2703
2732
|
)
|
|
2704
2733
|
};
|
|
2705
|
-
},
|
|
2706
|
-
const [e, t] = O(
|
|
2734
|
+
}, er = y(!1), Zi = () => {
|
|
2735
|
+
const [e, t] = O(er);
|
|
2707
2736
|
return [e, t];
|
|
2708
|
-
},
|
|
2709
|
-
const n =
|
|
2710
|
-
e(
|
|
2737
|
+
}, tr = y(null, (e, t, { blockIds: s, fullClasses: o }) => {
|
|
2738
|
+
const n = te(e(Te)), i = E(
|
|
2739
|
+
e(ct),
|
|
2711
2740
|
(r) => (
|
|
2712
2741
|
// @ts-ignore
|
|
2713
2742
|
s.includes(e(r)._id)
|
|
@@ -2715,11 +2744,11 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2715
2744
|
);
|
|
2716
2745
|
return I(i, (r) => {
|
|
2717
2746
|
const c = e(r), p = o;
|
|
2718
|
-
let { classes: l, baseClasses: m } =
|
|
2747
|
+
let { classes: l, baseClasses: m } = So(H(c, n.prop, "styles:,"));
|
|
2719
2748
|
return ce(p, (N) => {
|
|
2720
2749
|
const S = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
2721
2750
|
l = l.replace(S, " ").replace(/ +/g, " ").trim();
|
|
2722
|
-
const v =
|
|
2751
|
+
const v = te(N.split(":"));
|
|
2723
2752
|
Y(["2xl", "xl", "lg", "md", "sm"], v) && p.push(N.split(":").pop().trim());
|
|
2724
2753
|
}), ce(p, (N) => {
|
|
2725
2754
|
const S = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
@@ -2731,8 +2760,8 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2731
2760
|
}
|
|
2732
2761
|
};
|
|
2733
2762
|
});
|
|
2734
|
-
}),
|
|
2735
|
-
const { updateBlocks: e } = he(), t =
|
|
2763
|
+
}), el = () => {
|
|
2764
|
+
const { updateBlocks: e } = he(), t = Re(tr);
|
|
2736
2765
|
return $(
|
|
2737
2766
|
(s, o) => {
|
|
2738
2767
|
const n = t({ blockIds: s, fullClasses: o });
|
|
@@ -2740,17 +2769,17 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2740
2769
|
},
|
|
2741
2770
|
[t]
|
|
2742
2771
|
);
|
|
2743
|
-
},
|
|
2744
|
-
const t =
|
|
2745
|
-
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))
|
|
2746
2775
|
return [];
|
|
2747
|
-
const n =
|
|
2748
|
-
return E(I(n.trim().split(" "),
|
|
2749
|
-
}),
|
|
2750
|
-
const t = e(
|
|
2751
|
-
let i = E(e(
|
|
2752
|
-
return
|
|
2753
|
-
}),
|
|
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) => {
|
|
2754
2783
|
let t = [];
|
|
2755
2784
|
switch (e) {
|
|
2756
2785
|
case "xs":
|
|
@@ -2776,7 +2805,7 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2776
2805
|
break;
|
|
2777
2806
|
}
|
|
2778
2807
|
return t;
|
|
2779
|
-
},
|
|
2808
|
+
}, sl = () => Z(sr), ol = () => O(ft), nl = () => {
|
|
2780
2809
|
const { updateBlocks: e } = he();
|
|
2781
2810
|
return $(
|
|
2782
2811
|
(t, s, o) => {
|
|
@@ -2784,7 +2813,7 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2784
2813
|
},
|
|
2785
2814
|
[e]
|
|
2786
2815
|
);
|
|
2787
|
-
},
|
|
2816
|
+
}, al = () => {
|
|
2788
2817
|
const { updateBlocksRuntime: e } = he();
|
|
2789
2818
|
return $(
|
|
2790
2819
|
(t, s) => {
|
|
@@ -2792,21 +2821,21 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2792
2821
|
},
|
|
2793
2822
|
[e]
|
|
2794
2823
|
);
|
|
2795
|
-
},
|
|
2824
|
+
}, Ms = {
|
|
2796
2825
|
name: "",
|
|
2797
2826
|
props: {},
|
|
2798
2827
|
modalProps: {},
|
|
2799
2828
|
backdropClose: !0
|
|
2800
|
-
},
|
|
2801
|
-
const [e, t] = O(
|
|
2829
|
+
}, nr = y(Ms), rl = () => {
|
|
2830
|
+
const [e, t] = O(nr), s = $(
|
|
2802
2831
|
(n, i = {}, r = {}) => {
|
|
2803
2832
|
t({ name: n, props: i, modalProps: r });
|
|
2804
2833
|
},
|
|
2805
2834
|
[t]
|
|
2806
2835
|
), o = $(
|
|
2807
2836
|
(...n) => {
|
|
2808
|
-
|
|
2809
|
-
})(...n), t(
|
|
2837
|
+
H(e, "props.onClose", () => {
|
|
2838
|
+
})(...n), t(Ms);
|
|
2810
2839
|
},
|
|
2811
2840
|
[t, e]
|
|
2812
2841
|
);
|
|
@@ -2815,47 +2844,51 @@ const Va = () => O(Pe), $a = (e) => {
|
|
|
2815
2844
|
openModal: s,
|
|
2816
2845
|
closeModal: o
|
|
2817
2846
|
};
|
|
2818
|
-
},
|
|
2819
|
-
|
|
2820
|
-
const
|
|
2821
|
-
|
|
2822
|
-
const
|
|
2823
|
-
|
|
2824
|
-
const
|
|
2825
|
-
|
|
2826
|
-
const
|
|
2827
|
-
|
|
2828
|
-
const
|
|
2829
|
-
|
|
2830
|
-
const
|
|
2831
|
-
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2834
|
-
const
|
|
2835
|
-
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2838
|
-
const
|
|
2839
|
-
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2844
|
-
const
|
|
2845
|
-
|
|
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);
|
|
2846
2879
|
return [e, t];
|
|
2847
|
-
},
|
|
2848
|
-
const e =
|
|
2880
|
+
}, fl = () => {
|
|
2881
|
+
const e = Re(Es), { clear: t } = us(), [, s] = Fe(), [, o] = Xa(), [, n] = Ua();
|
|
2849
2882
|
return () => {
|
|
2850
2883
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
2851
2884
|
};
|
|
2852
|
-
},
|
|
2853
|
-
const [e, t] =
|
|
2854
|
-
return
|
|
2885
|
+
}, wr = y([]), ml = () => {
|
|
2886
|
+
const [e, t] = _e(!1), [s, o] = O(wr), n = ve("getUILibraryBlocks", () => []);
|
|
2887
|
+
return Be(() => {
|
|
2855
2888
|
(async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
|
|
2856
2889
|
}, []), { data: s, isLoading: e };
|
|
2857
|
-
},
|
|
2858
|
-
const [e, t] =
|
|
2890
|
+
}, pl = () => {
|
|
2891
|
+
const [e, t] = _e(null), s = $(async (o) => {
|
|
2859
2892
|
if (!(navigator != null && navigator.clipboard))
|
|
2860
2893
|
return console.warn("Clipboard not supported"), !1;
|
|
2861
2894
|
try {
|
|
@@ -2867,213 +2900,217 @@ const tl = () => te(Is), mr = w(""), pr = w(null), sl = () => O(mr), ol = () =>
|
|
|
2867
2900
|
return [e, s];
|
|
2868
2901
|
};
|
|
2869
2902
|
export {
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
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
|
-
|
|
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,
|
|
2922
2955
|
he as aM,
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
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,
|
|
2964
2997
|
Qn as b$,
|
|
2965
|
-
|
|
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
|
-
|
|
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,
|
|
3035
3068
|
sa as c6,
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
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,
|
|
3060
3097
|
ve as h,
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
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
|
|
3079
3116
|
};
|