@chaibuilder/sdk 1.2.20 → 1.2.22
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-X9eh8OWJ.cjs → AddBlocks-157fSrJX.cjs} +1 -1
- package/dist/{AddBlocks-VIWJkaHJ.js → AddBlocks-WgpssWmQ.js} +2 -2
- package/dist/{BrandingOptions-5ss0k1nb.js → BrandingOptions-4961TxX2.js} +2 -2
- package/dist/{BrandingOptions-PzPdafIT.cjs → BrandingOptions-nwXR9TMl.cjs} +1 -1
- package/dist/{CanvasArea-TTGqlBKO.js → CanvasArea-MajWGr9z.js} +3 -3
- package/dist/{CanvasArea-hoyr4dfb.cjs → CanvasArea-MmTlc5Vb.cjs} +1 -1
- package/dist/{CurrentPage-EddxgHU-.cjs → CurrentPage-LpLr0lDI.cjs} +1 -1
- package/dist/{CurrentPage-a3T2uy8Q.js → CurrentPage-oPZN6Gwj.js} +3 -3
- package/dist/ListTree-dvxHTXs4.js +167 -0
- package/dist/ListTree-gTmusfso.cjs +1 -0
- package/dist/{Outline-rNFJGkap.js → Outline-2OxsXs1-.js} +3 -3
- package/dist/{Outline-3IHYlOzF.cjs → Outline-7CCnnzmK.cjs} +1 -1
- package/dist/{PagesPanel-B33hWN11.cjs → PagesPanel-8536oBWB.cjs} +1 -1
- package/dist/{PagesPanel-0bL28ofN.js → PagesPanel-pRKHw-AZ.js} +4 -4
- package/dist/{ProjectPanel-sBRkUXnY.js → ProjectPanel-iU6DY-Yp.js} +4 -4
- package/dist/{ProjectPanel-qtRTXNOP.cjs → ProjectPanel-oILsUWOH.cjs} +1 -1
- package/dist/{Settings-HgGe1ANj.js → Settings-BhSrj-cE.js} +552 -532
- package/dist/Settings-jHiYmt0y.cjs +1 -0
- package/dist/{SidePanels-R_g9rSjP.js → SidePanels-OLOUpKn4.js} +45 -45
- package/dist/{SidePanels-aAm-2A3s.cjs → SidePanels-bcJJocSq.cjs} +1 -1
- package/dist/{Topbar-cXtxVswU.cjs → Topbar-NMvzqQHW.cjs} +1 -1
- package/dist/{Topbar-AUTKpVHO.js → Topbar-Ny9T-7Zb.js} +1 -1
- package/dist/{UnsplashImages-p34UJJWJ.cjs → UnsplashImages-6tZv1q2_.cjs} +1 -1
- package/dist/{UnsplashImages-1RFHZIte.js → UnsplashImages-Y8RGFVSh.js} +1 -1
- package/dist/{UploadImages-CLfyNo1i.cjs → UploadImages-VLlVg9Ur.cjs} +1 -1
- package/dist/{UploadImages-G2orrhmZ.js → UploadImages-dd8LfyFr.js} +1 -1
- package/dist/{add-page-modal-KCy_Khfe.cjs → add-page-modal-IsqDdK7X.cjs} +1 -1
- package/dist/{add-page-modal-DUthvJNJ.js → add-page-modal-Jni6CY1x.js} +4 -4
- package/dist/{confirm-alert-T8vimDRx.cjs → confirm-alert-f26zJ7Js.cjs} +1 -1
- package/dist/{confirm-alert-nk2WQHud.js → confirm-alert-sc8RaWvD.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-WvWRQUgU.js → delete-page-modal-0WiMZFxr.js} +3 -3
- package/dist/{delete-page-modal-_pFjWLJn.cjs → delete-page-modal-c3b-GCap.cjs} +1 -1
- package/dist/email.cjs +1 -1
- package/dist/email.js +2 -2
- package/dist/{form-kXQX4L2W.js → form-Nj6Kdn3g.js} +1 -1
- package/dist/{form-YnnWtUGk.cjs → form-n1Q6u16z.cjs} +1 -1
- package/dist/{index-e5cgISUO.cjs → index-0bwkNnA0.cjs} +2 -2
- package/dist/index-9PHdn80L.cjs +1 -0
- package/dist/{index-la4rqGKN.js → index-IPJAbzzO.js} +965 -928
- package/dist/{index-QIbDWoML.js → index-UP_4awU9.js} +2 -2
- package/dist/{index--Pt4B5bv.js → index-_VPpjzJu.js} +3 -3
- package/dist/{index-JqRQZLN5.cjs → index-nwAgi0aD.cjs} +1 -1
- package/dist/{page-viewer-s_lHBVfx.js → page-viewer-L1Dmgj-c.js} +4 -4
- package/dist/{page-viewer-6phtctz6.cjs → page-viewer-TnxHhq7S.cjs} +1 -1
- package/dist/{project-general-setting-SaNOMXEl.cjs → project-general-setting-1Ot1RU43.cjs} +1 -1
- package/dist/{project-general-setting-gj4A0X5W.js → project-general-setting-sUP7JqWK.js} +4 -4
- package/dist/{project-seo-setting-bMDdgKRZ.cjs → project-seo-setting-3-vBkx2v.cjs} +1 -1
- package/dist/{project-seo-setting-aCPg-IIc.js → project-seo-setting-NNvAGt4T.js} +2 -2
- package/dist/{single-page-detail-TP-cxVIT.js → single-page-detail-FXg_NebW.js} +5 -5
- package/dist/{single-page-detail-er8i2FIF.cjs → single-page-detail-btEKYXjE.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +3 -3
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/{useAddBlockByDrop-_vczk5o_.js → useAddBlockByDrop-V8xo-PNQ.js} +1 -1
- package/dist/{useAddBlockByDrop-LSV8adwE.cjs → useAddBlockByDrop-qRHgy8_0.cjs} +1 -1
- package/package.json +24 -25
- package/dist/ListTree-kergCZrw.js +0 -126
- package/dist/ListTree-tADrgsqZ.cjs +0 -1
- package/dist/Settings-rXxS3RGM.cjs +0 -1
- package/dist/index-DeHH1q_1.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import et, { createContext as Is, useContext as Ms, useRef as
|
|
3
|
-
import { has as pe, get as
|
|
4
|
-
import { g as
|
|
2
|
+
import et, { createContext as Is, useContext as Ms, useRef as br, createElement as xr, useReducer as Ds, useEffect as Ae, useDebugValue as Es, useCallback as F, useMemo as Os, useState as Ce, Suspense as vt } from "react";
|
|
3
|
+
import { has as pe, get as H, flatten as ae, filter as D, isString as Et, find as se, map as P, omit as tt, each as ce, set as je, includes as Y, isUndefined as vr, without as Ot, isEmpty as Ee, forIn as Lt, isObject as Ls, first as Z, noop as zs, keys as Vs, startsWith as zt, isNull as He, pick as yt, sortBy as wt } from "lodash-es";
|
|
4
|
+
import { g as de, a as $s } from "./Functions-7jnEwJyw.js";
|
|
5
5
|
import { getBlockComponent as Oe } from "@chaibuilder/runtime";
|
|
6
|
-
import { atom as w, useAtomValue as
|
|
6
|
+
import { atom as w, useAtomValue as ee, useAtom as E, useSetAtom as _e } from "jotai";
|
|
7
7
|
import { a as me, I as Vt, S as qe, B as Ke } from "./MODIFIERS-WQdaNvb8.js";
|
|
8
8
|
import { g as Fs } from "./_commonjsHelpers-UyOWmZb0.js";
|
|
9
9
|
import { useThrottledCallback as Us } from "@react-hookz/web";
|
|
@@ -15,28 +15,28 @@ import * as Je from "@radix-ui/react-switch";
|
|
|
15
15
|
import { Slot as Ws } from "@radix-ui/react-slot";
|
|
16
16
|
import * as fe from "@radix-ui/react-accordion";
|
|
17
17
|
import { ChevronDownIcon as Gs, Cross2Icon as st, ChevronRightIcon as ot, CheckIcon as Le, DotFilledIcon as nt, CaretSortIcon as Hs, MagnifyingGlassIcon as qs } from "@radix-ui/react-icons";
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
18
|
+
import * as q from "@radix-ui/react-alert-dialog";
|
|
19
|
+
import * as T from "@radix-ui/react-dialog";
|
|
20
20
|
import * as Ft from "@radix-ui/react-label";
|
|
21
|
-
import * as
|
|
21
|
+
import * as ue from "@radix-ui/react-scroll-area";
|
|
22
22
|
import * as be from "@radix-ui/react-tabs";
|
|
23
23
|
import * as ve from "@radix-ui/react-tooltip";
|
|
24
24
|
import * as Se from "@radix-ui/react-popover";
|
|
25
|
-
import * as
|
|
25
|
+
import * as B from "@radix-ui/react-menubar";
|
|
26
26
|
import * as ze from "@radix-ui/react-hover-card";
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
27
|
+
import * as U from "@radix-ui/react-select";
|
|
28
|
+
import * as I from "@radix-ui/react-dropdown-menu";
|
|
29
29
|
import * as Ut from "@radix-ui/react-separator";
|
|
30
|
-
import * as
|
|
31
|
-
import { Command as
|
|
32
|
-
import * as
|
|
30
|
+
import * as X from "@radix-ui/react-toast";
|
|
31
|
+
import { Command as Q } from "cmdk";
|
|
32
|
+
import * as M from "@radix-ui/react-context-menu";
|
|
33
33
|
import Ks, { IconPickerItem as Js } from "react-icons-picker";
|
|
34
34
|
import Ys from "react-dom";
|
|
35
35
|
import Qs from "react-quill";
|
|
36
36
|
import "react-i18next";
|
|
37
|
-
var
|
|
37
|
+
var G = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
38
38
|
let Xs = 0;
|
|
39
|
-
function
|
|
39
|
+
function ne(e, t) {
|
|
40
40
|
const s = `atom${++Xs}`, o = {
|
|
41
41
|
toString: () => s
|
|
42
42
|
};
|
|
@@ -62,26 +62,26 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
|
|
|
62
62
|
}, so = () => {
|
|
63
63
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
|
|
64
64
|
let o, n, i;
|
|
65
|
-
(
|
|
65
|
+
(G ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set());
|
|
66
66
|
const r = (u) => e.get(u), c = (u, g) => {
|
|
67
|
-
(
|
|
68
|
-
const
|
|
69
|
-
if (e.set(u, g), s.has(u) || s.set(u,
|
|
67
|
+
(G ? "production" : void 0) !== "production" && Object.freeze(g);
|
|
68
|
+
const h = e.get(u);
|
|
69
|
+
if (e.set(u, g), s.has(u) || s.set(u, h), h && he(h)) {
|
|
70
70
|
const b = "v" in g ? g.v instanceof Promise ? g.v : Promise.resolve(g.v) : Promise.reject(g.e);
|
|
71
|
-
Nt(
|
|
71
|
+
Nt(h.v, b);
|
|
72
72
|
}
|
|
73
|
-
}, p = (u, g,
|
|
73
|
+
}, p = (u, g, h) => {
|
|
74
74
|
const b = /* @__PURE__ */ new Map();
|
|
75
75
|
let y = !1;
|
|
76
|
-
|
|
77
|
-
!
|
|
76
|
+
h.forEach((x, k) => {
|
|
77
|
+
!x && k === u && (x = g), x ? (b.set(k, x), g.d.get(k) !== x && (y = !0)) : (G ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
|
|
78
78
|
}), (y || g.d.size !== b.size) && (g.d = b);
|
|
79
|
-
}, l = (u, g,
|
|
79
|
+
}, l = (u, g, h) => {
|
|
80
80
|
const b = r(u), y = {
|
|
81
81
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
82
82
|
v: g
|
|
83
83
|
};
|
|
84
|
-
if (
|
|
84
|
+
if (h && p(u, y, h), b && we(b, y) && b.d === y.d)
|
|
85
85
|
return b;
|
|
86
86
|
if (b && he(b) && he(y) && to(b, y)) {
|
|
87
87
|
if (b.d === y.d)
|
|
@@ -89,229 +89,229 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
|
|
|
89
89
|
y.v = b.v;
|
|
90
90
|
}
|
|
91
91
|
return c(u, y), y;
|
|
92
|
-
}, f = (u, g,
|
|
92
|
+
}, f = (u, g, h, b) => {
|
|
93
93
|
if (eo(g)) {
|
|
94
94
|
let y;
|
|
95
|
-
const
|
|
96
|
-
let
|
|
95
|
+
const x = new Promise((k, O) => {
|
|
96
|
+
let A = !1;
|
|
97
97
|
g.then(
|
|
98
|
-
(
|
|
99
|
-
if (!
|
|
100
|
-
|
|
101
|
-
const
|
|
98
|
+
(R) => {
|
|
99
|
+
if (!A) {
|
|
100
|
+
A = !0;
|
|
101
|
+
const _ = r(u), te = l(
|
|
102
102
|
u,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
x,
|
|
104
|
+
h
|
|
105
105
|
);
|
|
106
|
-
kt(
|
|
106
|
+
kt(x, R), k(R), (_ == null ? void 0 : _.d) !== te.d && V(u, te, _ == null ? void 0 : _.d);
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
(
|
|
110
|
-
if (!
|
|
111
|
-
|
|
112
|
-
const
|
|
109
|
+
(R) => {
|
|
110
|
+
if (!A) {
|
|
111
|
+
A = !0;
|
|
112
|
+
const _ = r(u), te = l(
|
|
113
113
|
u,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
x,
|
|
115
|
+
h
|
|
116
116
|
);
|
|
117
|
-
jt(
|
|
117
|
+
jt(x, R), O(R), (_ == null ? void 0 : _.d) !== te.d && V(u, te, _ == null ? void 0 : _.d);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
), y = (
|
|
121
|
-
|
|
122
|
-
(
|
|
123
|
-
(
|
|
124
|
-
),
|
|
120
|
+
), y = (R) => {
|
|
121
|
+
A || (A = !0, R.then(
|
|
122
|
+
(_) => kt(x, _),
|
|
123
|
+
(_) => jt(x, _)
|
|
124
|
+
), k(R));
|
|
125
125
|
};
|
|
126
126
|
});
|
|
127
|
-
return
|
|
128
|
-
|
|
129
|
-
}), l(u,
|
|
127
|
+
return x.orig = g, x.status = "pending", Zs(x, (k) => {
|
|
128
|
+
k && y(k), b == null || b();
|
|
129
|
+
}), l(u, x, h);
|
|
130
130
|
}
|
|
131
|
-
return l(u, g,
|
|
132
|
-
},
|
|
131
|
+
return l(u, g, h);
|
|
132
|
+
}, N = (u, g, h) => {
|
|
133
133
|
const b = r(u), y = {
|
|
134
134
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
135
135
|
e: g
|
|
136
136
|
};
|
|
137
|
-
return
|
|
138
|
-
},
|
|
137
|
+
return h && p(u, y, h), b && St(b, y) && b.d === y.d ? b : (c(u, y), y);
|
|
138
|
+
}, j = (u) => {
|
|
139
139
|
const g = r(u);
|
|
140
|
-
if (g && (g.d.forEach((
|
|
141
|
-
|
|
142
|
-
}), Array.from(g.d).every(([
|
|
143
|
-
const
|
|
144
|
-
return
|
|
145
|
-
|
|
140
|
+
if (g && (g.d.forEach((A, R) => {
|
|
141
|
+
R !== u && !t.has(R) && j(R);
|
|
142
|
+
}), Array.from(g.d).every(([A, R]) => {
|
|
143
|
+
const _ = r(A);
|
|
144
|
+
return A === u || _ === R || // TODO This is a hack, we should find a better solution.
|
|
145
|
+
_ && !he(_) && we(_, R);
|
|
146
146
|
})))
|
|
147
147
|
return g;
|
|
148
|
-
const
|
|
148
|
+
const h = /* @__PURE__ */ new Map();
|
|
149
149
|
let b = !0;
|
|
150
|
-
const y = (
|
|
151
|
-
if (
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
154
|
-
return
|
|
155
|
-
if ($e(
|
|
156
|
-
return
|
|
150
|
+
const y = (A) => {
|
|
151
|
+
if (A === u) {
|
|
152
|
+
const _ = r(A);
|
|
153
|
+
if (_)
|
|
154
|
+
return h.set(A, _), Te(_);
|
|
155
|
+
if ($e(A))
|
|
156
|
+
return h.set(A, void 0), A.init;
|
|
157
157
|
throw new Error("no atom init");
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
return
|
|
159
|
+
const R = j(A);
|
|
160
|
+
return h.set(A, R), Te(R);
|
|
161
161
|
};
|
|
162
|
-
let
|
|
163
|
-
const
|
|
162
|
+
let x, k;
|
|
163
|
+
const O = {
|
|
164
164
|
get signal() {
|
|
165
|
-
return
|
|
165
|
+
return x || (x = new AbortController()), x.signal;
|
|
166
166
|
},
|
|
167
167
|
get setSelf() {
|
|
168
|
-
return (
|
|
169
|
-
if ((
|
|
170
|
-
return $(u, ...
|
|
171
|
-
}),
|
|
168
|
+
return (G ? "production" : void 0) !== "production" && !Fe(u) && console.warn("setSelf function cannot be used with read-only atom"), !k && Fe(u) && (k = (...A) => {
|
|
169
|
+
if ((G ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
|
|
170
|
+
return $(u, ...A);
|
|
171
|
+
}), k;
|
|
172
172
|
}
|
|
173
173
|
};
|
|
174
174
|
try {
|
|
175
|
-
const
|
|
175
|
+
const A = u.read(y, O);
|
|
176
176
|
return f(
|
|
177
177
|
u,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
() =>
|
|
178
|
+
A,
|
|
179
|
+
h,
|
|
180
|
+
() => x == null ? void 0 : x.abort()
|
|
181
181
|
);
|
|
182
|
-
} catch (
|
|
183
|
-
return
|
|
182
|
+
} catch (A) {
|
|
183
|
+
return N(u, A, h);
|
|
184
184
|
} finally {
|
|
185
185
|
b = !1;
|
|
186
186
|
}
|
|
187
|
-
},
|
|
187
|
+
}, v = (u) => Te(j(u)), S = (u) => {
|
|
188
188
|
let g = t.get(u);
|
|
189
|
-
return g || (g =
|
|
190
|
-
},
|
|
189
|
+
return g || (g = K(u)), g;
|
|
190
|
+
}, L = (u, g) => !g.l.size && (!g.t.size || g.t.size === 1 && g.t.has(u)), W = (u) => {
|
|
191
191
|
const g = t.get(u);
|
|
192
|
-
g &&
|
|
193
|
-
},
|
|
194
|
-
const g = /* @__PURE__ */ new Map(),
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
(g.get(
|
|
200
|
-
),
|
|
192
|
+
g && L(u, g) && J(u);
|
|
193
|
+
}, C = (u) => {
|
|
194
|
+
const g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), b = (x) => {
|
|
195
|
+
const k = t.get(x);
|
|
196
|
+
k == null || k.t.forEach((O) => {
|
|
197
|
+
O !== x && (g.set(
|
|
198
|
+
O,
|
|
199
|
+
(g.get(O) || /* @__PURE__ */ new Set()).add(x)
|
|
200
|
+
), h.set(O, (h.get(O) || 0) + 1), b(O));
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
203
|
b(u);
|
|
204
|
-
const y = (
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
if (
|
|
209
|
-
let
|
|
210
|
-
if (
|
|
211
|
-
let
|
|
212
|
-
if (
|
|
213
|
-
const
|
|
214
|
-
|
|
204
|
+
const y = (x) => {
|
|
205
|
+
const k = t.get(x);
|
|
206
|
+
k == null || k.t.forEach((O) => {
|
|
207
|
+
var A;
|
|
208
|
+
if (O !== x) {
|
|
209
|
+
let R = h.get(O);
|
|
210
|
+
if (R && h.set(O, --R), !R) {
|
|
211
|
+
let _ = !!((A = g.get(O)) != null && A.size);
|
|
212
|
+
if (_) {
|
|
213
|
+
const te = r(O), Ps = j(O);
|
|
214
|
+
_ = !te || !we(te, Ps);
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
_ || g.forEach((te) => te.delete(O));
|
|
217
217
|
}
|
|
218
|
-
y(
|
|
218
|
+
y(O);
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
};
|
|
222
222
|
y(u);
|
|
223
|
-
},
|
|
224
|
-
let
|
|
225
|
-
const b = (
|
|
226
|
-
let
|
|
227
|
-
if (
|
|
228
|
-
if (!$e(
|
|
223
|
+
}, z = (u, ...g) => {
|
|
224
|
+
let h = !0;
|
|
225
|
+
const b = (k) => Te(j(k)), y = (k, ...O) => {
|
|
226
|
+
let A;
|
|
227
|
+
if (k === u) {
|
|
228
|
+
if (!$e(k))
|
|
229
229
|
throw new Error("atom not writable");
|
|
230
|
-
const
|
|
231
|
-
(!
|
|
230
|
+
const R = r(k), _ = f(k, O[0]);
|
|
231
|
+
(!R || !we(R, _)) && C(k);
|
|
232
232
|
} else
|
|
233
|
-
|
|
234
|
-
if (!
|
|
235
|
-
const
|
|
236
|
-
(
|
|
237
|
-
(
|
|
233
|
+
A = z(k, ...O);
|
|
234
|
+
if (!h) {
|
|
235
|
+
const R = ie();
|
|
236
|
+
(G ? "production" : void 0) !== "production" && n.forEach(
|
|
237
|
+
(_) => _({ type: "async-write", flushed: R })
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
return
|
|
241
|
-
},
|
|
242
|
-
return
|
|
240
|
+
return A;
|
|
241
|
+
}, x = u.write(b, y, ...g);
|
|
242
|
+
return h = !1, x;
|
|
243
243
|
}, $ = (u, ...g) => {
|
|
244
|
-
const
|
|
245
|
-
return (
|
|
244
|
+
const h = z(u, ...g), b = ie();
|
|
245
|
+
return (G ? "production" : void 0) !== "production" && n.forEach(
|
|
246
246
|
(y) => y({ type: "write", flushed: b })
|
|
247
|
-
),
|
|
248
|
-
},
|
|
249
|
-
const
|
|
247
|
+
), h;
|
|
248
|
+
}, K = (u, g) => {
|
|
249
|
+
const h = {
|
|
250
250
|
t: new Set(g && [g]),
|
|
251
251
|
l: /* @__PURE__ */ new Set()
|
|
252
252
|
};
|
|
253
|
-
if (t.set(u,
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
}),
|
|
253
|
+
if (t.set(u, h), (G ? "production" : void 0) !== "production" && i.add(u), j(u).d.forEach((b, y) => {
|
|
254
|
+
const x = t.get(y);
|
|
255
|
+
x ? x.t.add(u) : y !== u && K(y, u);
|
|
256
|
+
}), j(u), Fe(u) && u.onMount) {
|
|
257
257
|
const b = u.onMount((...y) => $(u, ...y));
|
|
258
|
-
b && (
|
|
258
|
+
b && (h.u = b);
|
|
259
259
|
}
|
|
260
|
-
return
|
|
261
|
-
},
|
|
260
|
+
return h;
|
|
261
|
+
}, J = (u) => {
|
|
262
262
|
var g;
|
|
263
|
-
const
|
|
264
|
-
|
|
263
|
+
const h = (g = t.get(u)) == null ? void 0 : g.u;
|
|
264
|
+
h && h(), t.delete(u), (G ? "production" : void 0) !== "production" && i.delete(u);
|
|
265
265
|
const b = r(u);
|
|
266
|
-
b ? (he(b) && Nt(b.v), b.d.forEach((y,
|
|
267
|
-
if (
|
|
268
|
-
const
|
|
269
|
-
|
|
266
|
+
b ? (he(b) && Nt(b.v), b.d.forEach((y, x) => {
|
|
267
|
+
if (x !== u) {
|
|
268
|
+
const k = t.get(x);
|
|
269
|
+
k && (k.t.delete(u), L(x, k) && J(x));
|
|
270
270
|
}
|
|
271
|
-
})) : (
|
|
272
|
-
},
|
|
271
|
+
})) : (G ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", u);
|
|
272
|
+
}, V = (u, g, h) => {
|
|
273
273
|
const b = new Set(g.d.keys());
|
|
274
|
-
|
|
275
|
-
if (b.has(
|
|
276
|
-
b.delete(
|
|
274
|
+
h == null || h.forEach((y, x) => {
|
|
275
|
+
if (b.has(x)) {
|
|
276
|
+
b.delete(x);
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
const
|
|
280
|
-
|
|
279
|
+
const k = t.get(x);
|
|
280
|
+
k && (k.t.delete(u), L(x, k) && J(x));
|
|
281
281
|
}), b.forEach((y) => {
|
|
282
|
-
const
|
|
283
|
-
|
|
282
|
+
const x = t.get(y);
|
|
283
|
+
x ? x.t.add(u) : t.has(u) && K(y, u);
|
|
284
284
|
});
|
|
285
|
-
},
|
|
285
|
+
}, ie = () => {
|
|
286
286
|
let u;
|
|
287
|
-
for ((
|
|
287
|
+
for ((G ? "production" : void 0) !== "production" && (u = /* @__PURE__ */ new Set()); s.size; ) {
|
|
288
288
|
const g = Array.from(s);
|
|
289
|
-
s.clear(), g.forEach(([
|
|
290
|
-
const y = r(
|
|
289
|
+
s.clear(), g.forEach(([h, b]) => {
|
|
290
|
+
const y = r(h);
|
|
291
291
|
if (y) {
|
|
292
|
-
y.d !== (b == null ? void 0 : b.d) &&
|
|
293
|
-
const
|
|
294
|
-
|
|
292
|
+
y.d !== (b == null ? void 0 : b.d) && V(h, y, b == null ? void 0 : b.d);
|
|
293
|
+
const x = t.get(h);
|
|
294
|
+
x && !// TODO This seems pretty hacky. Hope to fix it.
|
|
295
295
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
296
|
-
(b && !he(b) && (we(b, y) || St(b, y))) && (
|
|
296
|
+
(b && !he(b) && (we(b, y) || St(b, y))) && (x.l.forEach((k) => k()), (G ? "production" : void 0) !== "production" && u.add(h));
|
|
297
297
|
} else
|
|
298
|
-
(
|
|
298
|
+
(G ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
|
-
if ((
|
|
301
|
+
if ((G ? "production" : void 0) !== "production")
|
|
302
302
|
return o.forEach((g) => g("state")), u;
|
|
303
|
-
},
|
|
304
|
-
const
|
|
305
|
-
return y.add(g), (
|
|
306
|
-
(
|
|
303
|
+
}, le = (u, g) => {
|
|
304
|
+
const h = S(u), b = ie(), y = h.l;
|
|
305
|
+
return y.add(g), (G ? "production" : void 0) !== "production" && (o.forEach((x) => x("sub")), n.forEach(
|
|
306
|
+
(x) => x({ type: "sub", flushed: b })
|
|
307
307
|
)), () => {
|
|
308
|
-
y.delete(g), W(u), (
|
|
308
|
+
y.delete(g), W(u), (G ? "production" : void 0) !== "production" && (o.forEach((x) => x("unsub")), n.forEach((x) => x({ type: "unsub" })));
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
|
-
return (
|
|
312
|
-
get:
|
|
311
|
+
return (G ? "production" : void 0) !== "production" ? {
|
|
312
|
+
get: v,
|
|
313
313
|
set: $,
|
|
314
|
-
sub:
|
|
314
|
+
sub: le,
|
|
315
315
|
// store dev methods (these are tentative and subject to change without notice)
|
|
316
316
|
dev_subscribe_store: (u, g) => g !== 2 ? (console.warn(
|
|
317
317
|
"The current StoreListener revision is 2. The older ones are deprecated."
|
|
@@ -324,17 +324,17 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, De = /* @__PURE__ */ new W
|
|
|
324
324
|
dev_get_atom_state: (u) => e.get(u),
|
|
325
325
|
dev_get_mounted: (u) => t.get(u),
|
|
326
326
|
dev_restore_atoms: (u) => {
|
|
327
|
-
for (const [
|
|
328
|
-
$e(
|
|
329
|
-
const g =
|
|
327
|
+
for (const [h, b] of u)
|
|
328
|
+
$e(h) && (f(h, b), C(h));
|
|
329
|
+
const g = ie();
|
|
330
330
|
n.forEach(
|
|
331
|
-
(
|
|
331
|
+
(h) => h({ type: "restore", flushed: g })
|
|
332
332
|
);
|
|
333
333
|
}
|
|
334
334
|
} : {
|
|
335
|
-
get:
|
|
335
|
+
get: v,
|
|
336
336
|
set: $,
|
|
337
|
-
sub:
|
|
337
|
+
sub: le
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
let Ue;
|
|
@@ -383,7 +383,7 @@ function lo(e, t) {
|
|
|
383
383
|
}
|
|
384
384
|
function co(e, t) {
|
|
385
385
|
const s = Wt(t);
|
|
386
|
-
return
|
|
386
|
+
return F(
|
|
387
387
|
(...n) => {
|
|
388
388
|
if ((no ? "production" : void 0) !== "production" && !("write" in e))
|
|
389
389
|
throw new Error("not writable atom");
|
|
@@ -392,7 +392,7 @@ function co(e, t) {
|
|
|
392
392
|
[s, e]
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Er(e, t) {
|
|
396
396
|
return [
|
|
397
397
|
lo(e, t),
|
|
398
398
|
// We do wrong type assertion here, which results in throwing an error.
|
|
@@ -412,43 +412,43 @@ function go(e, t) {
|
|
|
412
412
|
let p = s.get(r);
|
|
413
413
|
if (p)
|
|
414
414
|
return p;
|
|
415
|
-
const l = c && s.get(c), f = [],
|
|
416
|
-
return r.forEach((
|
|
417
|
-
const
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
if (
|
|
421
|
-
f[
|
|
415
|
+
const l = c && s.get(c), f = [], N = [];
|
|
416
|
+
return r.forEach((j, v) => {
|
|
417
|
+
const S = t ? t(j) : v;
|
|
418
|
+
N[v] = S;
|
|
419
|
+
const L = l && l.atomList[l.keyList.indexOf(S)];
|
|
420
|
+
if (L) {
|
|
421
|
+
f[v] = L;
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
|
-
const W = (
|
|
425
|
-
const $ =
|
|
426
|
-
if (
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
424
|
+
const W = (z) => {
|
|
425
|
+
const $ = z(n), K = z(e), V = o(K, $ == null ? void 0 : $.arr).keyList.indexOf(S);
|
|
426
|
+
if (V < 0 || V >= K.length) {
|
|
427
|
+
const ie = r[o(r).keyList.indexOf(S)];
|
|
428
|
+
if (ie)
|
|
429
|
+
return ie;
|
|
430
430
|
throw new Error("splitAtom: index out of bounds for read");
|
|
431
431
|
}
|
|
432
|
-
return
|
|
433
|
-
},
|
|
434
|
-
const
|
|
435
|
-
if (
|
|
432
|
+
return K[V];
|
|
433
|
+
}, C = (z, $, K) => {
|
|
434
|
+
const J = z(n), V = z(e), le = o(V, J == null ? void 0 : J.arr).keyList.indexOf(S);
|
|
435
|
+
if (le < 0 || le >= V.length)
|
|
436
436
|
throw new Error("splitAtom: index out of bounds for write");
|
|
437
|
-
const u = po(
|
|
437
|
+
const u = po(K) ? K(V[le]) : K;
|
|
438
438
|
$(e, [
|
|
439
|
-
...
|
|
439
|
+
...V.slice(0, le),
|
|
440
440
|
u,
|
|
441
|
-
...
|
|
441
|
+
...V.slice(le + 1)
|
|
442
442
|
]);
|
|
443
443
|
};
|
|
444
|
-
f[
|
|
445
|
-
}), l && l.keyList.length ===
|
|
446
|
-
}, n =
|
|
444
|
+
f[v] = Ct(e) ? ne(W, C) : ne(W);
|
|
445
|
+
}), l && l.keyList.length === N.length && l.keyList.every((j, v) => j === N[v]) ? p = l : p = { arr: r, atomList: f, keyList: N }, s.set(r, p), p;
|
|
446
|
+
}, n = ne((r) => {
|
|
447
447
|
const c = r(n), p = r(e);
|
|
448
448
|
return o(p, c == null ? void 0 : c.arr);
|
|
449
449
|
});
|
|
450
450
|
(at ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
|
|
451
|
-
const i = Ct(e) ?
|
|
451
|
+
const i = Ct(e) ? ne(
|
|
452
452
|
(r) => r(n).atomList,
|
|
453
453
|
(r, c, p) => {
|
|
454
454
|
switch (p.type) {
|
|
@@ -478,34 +478,34 @@ function go(e, t) {
|
|
|
478
478
|
case "move": {
|
|
479
479
|
const l = r(i).indexOf(p.atom), f = p.before ? r(i).indexOf(p.before) : r(i).length;
|
|
480
480
|
if (l >= 0 && f >= 0) {
|
|
481
|
-
const
|
|
481
|
+
const N = r(e);
|
|
482
482
|
l < f ? c(e, [
|
|
483
|
-
...
|
|
484
|
-
...
|
|
485
|
-
|
|
486
|
-
...
|
|
483
|
+
...N.slice(0, l),
|
|
484
|
+
...N.slice(l + 1, f),
|
|
485
|
+
N[l],
|
|
486
|
+
...N.slice(f)
|
|
487
487
|
]) : c(e, [
|
|
488
|
-
...
|
|
489
|
-
|
|
490
|
-
...
|
|
491
|
-
...
|
|
488
|
+
...N.slice(0, f),
|
|
489
|
+
N[l],
|
|
490
|
+
...N.slice(f, l),
|
|
491
|
+
...N.slice(l + 1)
|
|
492
492
|
]);
|
|
493
493
|
}
|
|
494
494
|
break;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
) :
|
|
498
|
+
) : ne((r) => r(n).atomList);
|
|
499
499
|
return i;
|
|
500
500
|
},
|
|
501
501
|
e,
|
|
502
502
|
t || fo
|
|
503
503
|
);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
const t = Symbol(), s =
|
|
505
|
+
function Or(e) {
|
|
506
|
+
const t = Symbol(), s = ne(t);
|
|
507
507
|
(at ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
|
|
508
|
-
const o =
|
|
508
|
+
const o = ne(
|
|
509
509
|
(n, i) => {
|
|
510
510
|
const r = n(s);
|
|
511
511
|
return r !== t ? r : e(n, i);
|
|
@@ -574,18 +574,18 @@ const ho = xo(
|
|
|
574
574
|
() => typeof window < "u" ? window.localStorage : void 0
|
|
575
575
|
);
|
|
576
576
|
function Be(e, t, s = ho, o) {
|
|
577
|
-
const n = o == null ? void 0 : o.unstable_getOnInit, i =
|
|
577
|
+
const n = o == null ? void 0 : o.unstable_getOnInit, i = ne(
|
|
578
578
|
n ? s.getItem(e, t) : t
|
|
579
579
|
);
|
|
580
580
|
return (at ? "production" : void 0) !== "production" && (i.debugPrivate = !0), i.onMount = (c) => {
|
|
581
581
|
n || c(s.getItem(e, t));
|
|
582
582
|
let p;
|
|
583
583
|
return s.subscribe && (p = s.subscribe(e, c, t)), p;
|
|
584
|
-
},
|
|
584
|
+
}, ne(
|
|
585
585
|
(c) => c(i),
|
|
586
586
|
(c, p, l) => {
|
|
587
587
|
const f = typeof l == "function" ? l(c(i)) : l;
|
|
588
|
-
return f === Gt ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((
|
|
588
|
+
return f === Gt ? (p(i, t), s.removeItem(e)) : f instanceof Promise ? f.then((N) => (p(i, N), s.setItem(e, N))) : (p(i, f), s.setItem(e, f));
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
}
|
|
@@ -593,7 +593,7 @@ const Ht = w(null);
|
|
|
593
593
|
Ht.debugLabel = "chaiBuilderPropsAtom";
|
|
594
594
|
const vo = w({});
|
|
595
595
|
vo.debugLabel = "chaiExternalDataAtom";
|
|
596
|
-
const
|
|
596
|
+
const Lr = () => !1, yo = (e) => {
|
|
597
597
|
const t = e.replace(me, "").split(",");
|
|
598
598
|
return { baseClasses: t[0], classes: t[1] };
|
|
599
599
|
}, Ye = (e, t) => {
|
|
@@ -604,34 +604,34 @@ const Or = () => !1, yo = (e) => {
|
|
|
604
604
|
}, wo = (e, t) => {
|
|
605
605
|
const s = Oe(t);
|
|
606
606
|
return s && pe(s, "canBeNested") ? s.canBeNested(e) : !0;
|
|
607
|
-
},
|
|
607
|
+
}, zr = (e) => {
|
|
608
608
|
const t = Oe(e);
|
|
609
609
|
return t && pe(t, "canDuplicate") ? t.canDuplicate() : !0;
|
|
610
|
-
},
|
|
610
|
+
}, Vr = (e) => {
|
|
611
611
|
const t = Oe(e);
|
|
612
612
|
return t && pe(t, "canDelete") ? t.canDelete() : !0;
|
|
613
|
-
},
|
|
614
|
-
const o =
|
|
613
|
+
}, $r = (e, { dragSource: t, dropTarget: s }) => {
|
|
614
|
+
const o = H(t, "data._type", ""), n = H(s, "data._type", "");
|
|
615
615
|
return Ye(n, o);
|
|
616
616
|
};
|
|
617
617
|
function qt(e, t, s) {
|
|
618
|
-
const o =
|
|
618
|
+
const o = D(e, (i) => i._parent === t), n = [];
|
|
619
619
|
for (let i = 0; i < o.length; i++) {
|
|
620
620
|
const r = Jt(o[i]);
|
|
621
621
|
if (Object.keys(r).length > 0 && Object.keys(r).forEach((c) => {
|
|
622
|
-
o[i][c] = `slot:${
|
|
623
|
-
}),
|
|
624
|
-
const c =
|
|
625
|
-
n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(
|
|
622
|
+
o[i][c] = `slot:${de()}`;
|
|
623
|
+
}), D(e, { _parent: o[i]._id }).length > 0) {
|
|
624
|
+
const c = de();
|
|
625
|
+
n.push({ ...o[i], oldId: o[i]._id, _id: c, _parent: s }), n.push(ae(qt(e, o[i]._id, c)));
|
|
626
626
|
} else
|
|
627
627
|
n.push({
|
|
628
628
|
...o[i],
|
|
629
629
|
oldId: o[i]._id,
|
|
630
|
-
_id:
|
|
630
|
+
_id: de(),
|
|
631
631
|
_parent: s
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
return
|
|
634
|
+
return ae(n);
|
|
635
635
|
}
|
|
636
636
|
function Kt(e) {
|
|
637
637
|
const t = {};
|
|
@@ -653,28 +653,28 @@ const Jt = (e) => {
|
|
|
653
653
|
Et(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
|
|
654
654
|
}), t;
|
|
655
655
|
}, No = (e, t, s = null) => {
|
|
656
|
-
let o =
|
|
657
|
-
o = { ...o, oldId: o._id, _id:
|
|
656
|
+
let o = se(e, { _id: t });
|
|
657
|
+
o = { ...o, oldId: o._id, _id: de() }, s && (o = { ...o, _parent: s });
|
|
658
658
|
const n = [o];
|
|
659
|
-
|
|
660
|
-
const i =
|
|
661
|
-
return
|
|
659
|
+
D(e, { _parent: t }).length > 0 && n.push(ae(qt(e, t, o._id)));
|
|
660
|
+
const i = ae(n);
|
|
661
|
+
return P(i, (r) => {
|
|
662
662
|
const c = r, p = Jt(c);
|
|
663
663
|
return Object.keys(p).length > 0 && Object.keys(p).forEach((l) => {
|
|
664
|
-
const f =
|
|
664
|
+
const f = se(i, { oldId: p[l].replace("slot:", "") });
|
|
665
665
|
c[l] = `slot:${f._id}`;
|
|
666
666
|
}), tt(c, ["global", "oldId"]);
|
|
667
667
|
});
|
|
668
668
|
};
|
|
669
|
-
const
|
|
670
|
-
|
|
669
|
+
const re = w([]);
|
|
670
|
+
re.debugLabel = "presentBlocksAtom";
|
|
671
671
|
const ko = w((e) => {
|
|
672
|
-
const t = e(
|
|
672
|
+
const t = e(re);
|
|
673
673
|
return Kt([...t]);
|
|
674
674
|
});
|
|
675
675
|
ko.debugLabel = "treeDSBlocks";
|
|
676
|
-
|
|
677
|
-
const rt = go(
|
|
676
|
+
re.debugLabel = "presentBlocksAtom";
|
|
677
|
+
const rt = go(re);
|
|
678
678
|
rt.debugLabel = "pageBlocksAtomsAtom";
|
|
679
679
|
const jo = w("");
|
|
680
680
|
jo.debugLabel = "builderActivePageAtom";
|
|
@@ -684,15 +684,15 @@ const Yt = w([]);
|
|
|
684
684
|
Yt.debugLabel = "buildingBlocksAtom";
|
|
685
685
|
const Ao = w((e) => {
|
|
686
686
|
const t = e(Yt);
|
|
687
|
-
return
|
|
687
|
+
return D(t, (s) => pe(s, "blockId"));
|
|
688
688
|
});
|
|
689
689
|
Ao.debugLabel = "globalBlocksAtom";
|
|
690
690
|
const it = w([]);
|
|
691
691
|
it.debugLabel = "selectedBlockIdsAtom";
|
|
692
692
|
const lt = w((e) => {
|
|
693
|
-
const t = e(
|
|
694
|
-
return
|
|
695
|
-
|
|
693
|
+
const t = e(re), s = e(it);
|
|
694
|
+
return P(
|
|
695
|
+
D(t, ({ _id: o }) => Y(s, o)),
|
|
696
696
|
(o) => ({ ...o })
|
|
697
697
|
);
|
|
698
698
|
});
|
|
@@ -701,13 +701,13 @@ const ct = w((e) => {
|
|
|
701
701
|
const t = e(lt);
|
|
702
702
|
return t.length === 0 ? null : t.length === 1 ? t[0] : {
|
|
703
703
|
type: "Multiple",
|
|
704
|
-
id:
|
|
704
|
+
id: P(t, "id")
|
|
705
705
|
};
|
|
706
706
|
});
|
|
707
707
|
ct.debugLabel = "selectedBlockAtom";
|
|
708
|
-
const Co = (e) =>
|
|
709
|
-
const t = e(lt), s =
|
|
710
|
-
return
|
|
708
|
+
const Co = (e) => H(e, "parent", null), _o = w((e) => {
|
|
709
|
+
const t = e(lt), s = P(t, Co);
|
|
710
|
+
return D(e(re), (o) => Y(s, o._id));
|
|
711
711
|
});
|
|
712
712
|
_o.debugLabel = "selectedBlocksParentsAtom";
|
|
713
713
|
const Qt = w(() => !1);
|
|
@@ -718,14 +718,14 @@ const dt = w("");
|
|
|
718
718
|
dt.debugLabel = "styleStateAtom";
|
|
719
719
|
const Zt = Be("styleBreakpoint", "xs");
|
|
720
720
|
Zt.debugLabel = "styleBreakpointAtom";
|
|
721
|
-
const
|
|
722
|
-
flexChild:
|
|
723
|
-
gridChild:
|
|
724
|
-
}),
|
|
721
|
+
const Fr = () => ({
|
|
722
|
+
flexChild: ee(Qt),
|
|
723
|
+
gridChild: ee(Xt)
|
|
724
|
+
}), Ur = () => ee(ct);
|
|
725
725
|
const Ve = () => {
|
|
726
|
-
const [e, t] =
|
|
726
|
+
const [e, t] = E(it), s = F(
|
|
727
727
|
(o) => {
|
|
728
|
-
t((n) =>
|
|
728
|
+
t((n) => Y(n, o) ? Ot(n, o) : [...n, o]);
|
|
729
729
|
},
|
|
730
730
|
[t]
|
|
731
731
|
);
|
|
@@ -738,7 +738,7 @@ const Ve = () => {
|
|
|
738
738
|
const { properties: t } = e, s = {};
|
|
739
739
|
return Object.keys(t).forEach((i) => {
|
|
740
740
|
const r = t[i];
|
|
741
|
-
if (
|
|
741
|
+
if (Y(["slot", "styles"], r.type))
|
|
742
742
|
return;
|
|
743
743
|
const c = i;
|
|
744
744
|
s[c] = _t(r);
|
|
@@ -749,7 +749,7 @@ const Ve = () => {
|
|
|
749
749
|
};
|
|
750
750
|
return Object.keys(o).forEach((i) => {
|
|
751
751
|
const r = o[i];
|
|
752
|
-
if (
|
|
752
|
+
if (Y(["slot", "styles"], r.type))
|
|
753
753
|
return;
|
|
754
754
|
const c = i;
|
|
755
755
|
n.items[c] = _t(r);
|
|
@@ -769,7 +769,7 @@ const Ve = () => {
|
|
|
769
769
|
};
|
|
770
770
|
return Object.keys(t).forEach((c) => {
|
|
771
771
|
const p = t[c];
|
|
772
|
-
if (
|
|
772
|
+
if (Y(["slot", "styles"], p.type))
|
|
773
773
|
return;
|
|
774
774
|
const l = c;
|
|
775
775
|
o.properties[l] = Bt(p);
|
|
@@ -785,10 +785,10 @@ const Ve = () => {
|
|
|
785
785
|
};
|
|
786
786
|
return Object.keys(n).forEach((c) => {
|
|
787
787
|
const p = n[c];
|
|
788
|
-
if (
|
|
788
|
+
if (Y(["slot", "styles"], p.type))
|
|
789
789
|
return;
|
|
790
790
|
const l = c;
|
|
791
|
-
r.items.properties[l] = Bt(p), je(r.items, "title",
|
|
791
|
+
r.items.properties[l] = Bt(p), je(r.items, "title", H(p, "itemTitle", `${i} item`));
|
|
792
792
|
}), r;
|
|
793
793
|
default:
|
|
794
794
|
return {};
|
|
@@ -804,10 +804,10 @@ const Ve = () => {
|
|
|
804
804
|
if (Ee(e.default))
|
|
805
805
|
return [];
|
|
806
806
|
const { itemProperties: t } = e;
|
|
807
|
-
return
|
|
807
|
+
return P(e.default, (s) => {
|
|
808
808
|
const o = { ...s };
|
|
809
809
|
return Lt(s, (n, i) => {
|
|
810
|
-
pe(t, i) &&
|
|
810
|
+
pe(t, i) && H(t[i], "i18n", !1) && (o[i] = Vt);
|
|
811
811
|
}), o;
|
|
812
812
|
});
|
|
813
813
|
}, Ro = (e) => {
|
|
@@ -815,10 +815,10 @@ const Ve = () => {
|
|
|
815
815
|
case "styles":
|
|
816
816
|
return e.default;
|
|
817
817
|
case "slot":
|
|
818
|
-
return `${qe}${
|
|
818
|
+
return `${qe}${de()}`;
|
|
819
819
|
case "singular":
|
|
820
820
|
const { i18n: t, schema: s } = e;
|
|
821
|
-
return t ? Vt :
|
|
821
|
+
return t ? Vt : H(s, "default", "");
|
|
822
822
|
case "model":
|
|
823
823
|
return es(e.properties);
|
|
824
824
|
case "list":
|
|
@@ -827,7 +827,7 @@ const Ve = () => {
|
|
|
827
827
|
return "";
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
|
-
var ut = { exports: {} },
|
|
830
|
+
var ut = { exports: {} }, Wr = ut.exports;
|
|
831
831
|
(function(e) {
|
|
832
832
|
(function() {
|
|
833
833
|
"use strict";
|
|
@@ -934,20 +934,20 @@ var ut = { exports: {} }, Ur = ut.exports;
|
|
|
934
934
|
})(ut);
|
|
935
935
|
var To = ut.exports;
|
|
936
936
|
const Po = /* @__PURE__ */ Fs(To), Io = w(Ke), Mo = w(null), ts = () => {
|
|
937
|
-
const [e, t] =
|
|
937
|
+
const [e, t] = E(Io);
|
|
938
938
|
return [
|
|
939
939
|
Ls(e) ? { ...Ke, ...e } : Ke,
|
|
940
940
|
t
|
|
941
941
|
];
|
|
942
|
-
},
|
|
942
|
+
}, Gr = () => E(Mo), Do = w(null), Eo = () => ({ currentPage: ee(Do) });
|
|
943
943
|
function Oo(e) {
|
|
944
944
|
return Kt(e);
|
|
945
945
|
}
|
|
946
|
-
const mt = (e, t) =>
|
|
946
|
+
const mt = (e, t) => ae(
|
|
947
947
|
e.map((s) => {
|
|
948
948
|
if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
|
|
949
949
|
const o = [...s.children];
|
|
950
|
-
return delete s.children,
|
|
950
|
+
return delete s.children, ae([s, ...mt(o, s._id)]);
|
|
951
951
|
}
|
|
952
952
|
return s;
|
|
953
953
|
})
|
|
@@ -958,32 +958,32 @@ function ft(e, t = !1) {
|
|
|
958
958
|
o.global && !t ? e[s] = {
|
|
959
959
|
type: "GlobalBlock",
|
|
960
960
|
blockId: o.blockId,
|
|
961
|
-
_parent:
|
|
961
|
+
_parent: H(o, "parent", null),
|
|
962
962
|
_id: o._id
|
|
963
963
|
} : o.children && o.children.length && ft(o.children);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
function ss(e) {
|
|
967
|
-
let t = [], s =
|
|
968
|
-
return s.length > 0 && (s =
|
|
967
|
+
let t = [], s = D(e, { type: "GlobalBlock" });
|
|
968
|
+
return s.length > 0 && (s = P(s, os), ce(s, (o) => {
|
|
969
969
|
t = [...t, ...Lo(o)];
|
|
970
970
|
})), t;
|
|
971
971
|
}
|
|
972
972
|
function Lo(e) {
|
|
973
973
|
let t = [];
|
|
974
|
-
const s =
|
|
975
|
-
je(
|
|
974
|
+
const s = H(Z(e), "parent", null);
|
|
975
|
+
je(Z(e), "parent", null);
|
|
976
976
|
const o = [flatToNestedInstance.convert(ns(e))];
|
|
977
977
|
ft(o, !0);
|
|
978
978
|
let n = mt(o, e[0]._id);
|
|
979
979
|
return n = je(n, "0.parent", s), t = [...t, n, ...ss(n)], t;
|
|
980
980
|
}
|
|
981
981
|
function os(e) {
|
|
982
|
-
const t =
|
|
982
|
+
const t = se(Qe, { _id: e._id });
|
|
983
983
|
if (!t)
|
|
984
984
|
return [];
|
|
985
|
-
const s = [t], o =
|
|
986
|
-
return o.length ?
|
|
985
|
+
const s = [t], o = D(Qe, { _parent: e._id });
|
|
986
|
+
return o.length ? ae([...s, ...ae(P(o, os))]) : ae(s);
|
|
987
987
|
}
|
|
988
988
|
const ns = (e) => JSON.parse(JSON.stringify(e));
|
|
989
989
|
let Qe = [];
|
|
@@ -992,12 +992,12 @@ function zo(e) {
|
|
|
992
992
|
const t = Oo(ns(e));
|
|
993
993
|
ft(t);
|
|
994
994
|
const s = mt(t, null), o = ss(s), n = {};
|
|
995
|
-
return
|
|
995
|
+
return ce(o, (i) => je(n, Z(i).blockId, i)), [s, n];
|
|
996
996
|
}
|
|
997
997
|
const Vo = () => {
|
|
998
998
|
const [e] = ts(), { currentPage: t } = Eo(), [s] = ye();
|
|
999
|
-
return
|
|
1000
|
-
const o =
|
|
999
|
+
return F(() => {
|
|
1000
|
+
const o = P(
|
|
1001
1001
|
s,
|
|
1002
1002
|
(i) => tt(i, ["expanded", "order", "title", "siblings", "tempClasses"])
|
|
1003
1003
|
), [n = []] = zo(o);
|
|
@@ -1007,14 +1007,14 @@ const Vo = () => {
|
|
|
1007
1007
|
};
|
|
1008
1008
|
}, [e, t, s]);
|
|
1009
1009
|
}, Ne = (e, t = void 0) => {
|
|
1010
|
-
const s =
|
|
1011
|
-
return
|
|
1010
|
+
const s = ee(Ht);
|
|
1011
|
+
return H(s, e, t);
|
|
1012
1012
|
}, as = w([]);
|
|
1013
1013
|
as.debugLabel = "dataProvidersAtom";
|
|
1014
|
-
const $o = () =>
|
|
1014
|
+
const $o = () => E(as), pt = w("SAVED");
|
|
1015
1015
|
pt.debugLabel = "pageSyncStateAtom";
|
|
1016
|
-
const
|
|
1017
|
-
const [e, t] =
|
|
1016
|
+
const Hr = () => {
|
|
1017
|
+
const [e, t] = E(pt), s = Ne("onSavePage", async (l) => {
|
|
1018
1018
|
}), o = Ne("onSave", async (l) => {
|
|
1019
1019
|
}), n = Ne("onSyncStatusChange", (l) => {
|
|
1020
1020
|
}), i = Vo(), [r] = $o(), [c] = ts();
|
|
@@ -1030,29 +1030,29 @@ const Gr = () => {
|
|
|
1030
1030
|
5e3
|
|
1031
1031
|
// save only every 5 seconds
|
|
1032
1032
|
), syncState: e, setSyncState: t };
|
|
1033
|
-
},
|
|
1034
|
-
|
|
1033
|
+
}, oe = new Po();
|
|
1034
|
+
oe.setLimit(50);
|
|
1035
1035
|
const rs = () => {
|
|
1036
|
-
const [, e] =
|
|
1037
|
-
return Ae(() => (
|
|
1038
|
-
|
|
1036
|
+
const [, e] = E(pt);
|
|
1037
|
+
return Ae(() => (oe.setCallback(() => e("UNSAVED")), () => {
|
|
1038
|
+
oe.setCallback(zs);
|
|
1039
1039
|
}), []), {
|
|
1040
|
-
add:
|
|
1041
|
-
undo:
|
|
1042
|
-
redo:
|
|
1043
|
-
hasRedo:
|
|
1044
|
-
hasUndo:
|
|
1045
|
-
clear:
|
|
1040
|
+
add: oe.add,
|
|
1041
|
+
undo: oe.undo,
|
|
1042
|
+
redo: oe.redo,
|
|
1043
|
+
hasRedo: oe.hasRedo,
|
|
1044
|
+
hasUndo: oe.hasUndo,
|
|
1045
|
+
clear: oe.clear
|
|
1046
1046
|
};
|
|
1047
1047
|
}, gt = (e, t) => {
|
|
1048
|
-
const s = [], o =
|
|
1048
|
+
const s = [], o = D(e, (n) => Y(t, n._id) || Y(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1049
1049
|
return Ee(s) ? o : gt(o, s);
|
|
1050
|
-
},
|
|
1050
|
+
}, qr = () => {
|
|
1051
1051
|
const [e] = ye(), [t, s] = Ve(), { setNewBlocks: o } = xe();
|
|
1052
|
-
return
|
|
1052
|
+
return F(
|
|
1053
1053
|
(n) => {
|
|
1054
1054
|
var r;
|
|
1055
|
-
const i = ((r =
|
|
1055
|
+
const i = ((r = se(e, { _id: n[0] })) == null ? void 0 : r._parent) || null;
|
|
1056
1056
|
o(gt(e, n)), setTimeout(() => s(i ? [i] : []), 200);
|
|
1057
1057
|
},
|
|
1058
1058
|
[e, s, t]
|
|
@@ -1073,7 +1073,28 @@ function Fo(e, t, s, o) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
return !s && o !== void 0 && o >= n.length && (r = e.length), [...e.slice(0, r), ...t, ...e.slice(r)];
|
|
1075
1075
|
}
|
|
1076
|
-
const Uo = () => {
|
|
1076
|
+
const Uo = (e, t, s, o) => {
|
|
1077
|
+
function n(c, p) {
|
|
1078
|
+
const l = c.filter((N) => N._parent === p);
|
|
1079
|
+
let f = [...l];
|
|
1080
|
+
return l.forEach((N) => {
|
|
1081
|
+
f = f.concat(n(c, N._id));
|
|
1082
|
+
}), f;
|
|
1083
|
+
}
|
|
1084
|
+
const i = t.reduce((c, p) => {
|
|
1085
|
+
const l = e.find((f) => f._id === p);
|
|
1086
|
+
if (l) {
|
|
1087
|
+
const f = n(e, p);
|
|
1088
|
+
c.push(l, ...f);
|
|
1089
|
+
}
|
|
1090
|
+
return c;
|
|
1091
|
+
}, []);
|
|
1092
|
+
e = e.filter((c) => !i.includes(c)), i.forEach((c) => {
|
|
1093
|
+
t.includes(c._id) && (c._parent = s);
|
|
1094
|
+
});
|
|
1095
|
+
let r;
|
|
1096
|
+
return s === void 0 ? r = o : r = e.findIndex((p) => p._id === s) + 1 + o, e.splice(r, 0, ...i), e;
|
|
1097
|
+
}, Wo = () => {
|
|
1077
1098
|
const [, e] = ye();
|
|
1078
1099
|
return {
|
|
1079
1100
|
setNewBlocks: (t) => {
|
|
@@ -1085,12 +1106,15 @@ const Uo = () => {
|
|
|
1085
1106
|
removeBlocks: (t) => {
|
|
1086
1107
|
e((s) => gt(s, t));
|
|
1087
1108
|
},
|
|
1109
|
+
moveBlocks: (t, s, o) => {
|
|
1110
|
+
e((n) => Uo(n, t, s, o));
|
|
1111
|
+
},
|
|
1088
1112
|
updateBlocksProps: (t) => {
|
|
1089
1113
|
e((s) => {
|
|
1090
1114
|
const o = t.map((n) => n._id);
|
|
1091
1115
|
return s.map((n) => {
|
|
1092
1116
|
if (o.includes(n._id)) {
|
|
1093
|
-
const i =
|
|
1117
|
+
const i = se(t, { _id: n._id });
|
|
1094
1118
|
return { ...n, ...tt(i, "_id") };
|
|
1095
1119
|
}
|
|
1096
1120
|
return n;
|
|
@@ -1098,55 +1122,68 @@ const Uo = () => {
|
|
|
1098
1122
|
});
|
|
1099
1123
|
}
|
|
1100
1124
|
};
|
|
1101
|
-
}, ye = () =>
|
|
1125
|
+
}, ye = () => E(re), xe = () => {
|
|
1102
1126
|
const { add: e } = rs(), [t] = ye(), {
|
|
1103
1127
|
setNewBlocks: s,
|
|
1104
1128
|
addBlocks: o,
|
|
1105
1129
|
removeBlocks: n,
|
|
1106
|
-
|
|
1107
|
-
|
|
1130
|
+
moveBlocks: i,
|
|
1131
|
+
updateBlocksProps: r
|
|
1132
|
+
} = Wo();
|
|
1108
1133
|
return {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1134
|
+
moveBlocks: (v, S, L) => {
|
|
1135
|
+
const W = P(v, (C) => {
|
|
1136
|
+
const $ = t.find((V) => V._id === C)._parent || void 0, J = t.filter((V) => $ ? V._parent === $ : !V._parent).map((V) => V._id).indexOf(C);
|
|
1137
|
+
return { _id: C, oldParent: $, oldPosition: J };
|
|
1138
|
+
});
|
|
1139
|
+
i(v, S, L), e({
|
|
1140
|
+
undo: () => ce(W, ({ _id: C, oldParent: z, oldPosition: $ }) => {
|
|
1141
|
+
i([C], z, $);
|
|
1142
|
+
}),
|
|
1143
|
+
redo: () => i(v, S, L)
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
addBlocks: (v, S, L) => {
|
|
1147
|
+
o(v, S, L), e({
|
|
1148
|
+
undo: () => n(P(v, "_id")),
|
|
1149
|
+
redo: () => o(v, S, L)
|
|
1113
1150
|
});
|
|
1114
1151
|
},
|
|
1115
|
-
removeBlocks: (
|
|
1116
|
-
var
|
|
1117
|
-
const
|
|
1118
|
-
n(
|
|
1119
|
-
undo: () => o(
|
|
1120
|
-
redo: () => n(
|
|
1152
|
+
removeBlocks: (v) => {
|
|
1153
|
+
var C;
|
|
1154
|
+
const S = (C = Z(v)) == null ? void 0 : C._parent, W = t.filter((z) => S ? z._parent === S : !z._parent).indexOf(Z(v));
|
|
1155
|
+
n(P(v, "_id")), e({
|
|
1156
|
+
undo: () => o(v, S, W),
|
|
1157
|
+
redo: () => n(P(v, "_id"))
|
|
1121
1158
|
});
|
|
1122
1159
|
},
|
|
1123
|
-
updateBlocks: (
|
|
1124
|
-
let
|
|
1125
|
-
if (
|
|
1126
|
-
|
|
1160
|
+
updateBlocks: (v, S, L) => {
|
|
1161
|
+
let W = [];
|
|
1162
|
+
if (L)
|
|
1163
|
+
W = P(v, (C) => ({ _id: C, ...L }));
|
|
1127
1164
|
else {
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1130
|
-
const
|
|
1131
|
-
return
|
|
1165
|
+
const C = Vs(S);
|
|
1166
|
+
W = P(v, (z) => {
|
|
1167
|
+
const $ = t.find((J) => J._id === z), K = { _id: z };
|
|
1168
|
+
return ce(C, (J) => K[J] = $[J]), K;
|
|
1132
1169
|
});
|
|
1133
1170
|
}
|
|
1134
|
-
|
|
1135
|
-
undo: () =>
|
|
1136
|
-
redo: () =>
|
|
1171
|
+
r(P(v, (C) => ({ _id: C, ...S }))), e({
|
|
1172
|
+
undo: () => r(W),
|
|
1173
|
+
redo: () => r(P(v, (C) => ({ _id: C, ...S })))
|
|
1137
1174
|
});
|
|
1138
1175
|
},
|
|
1139
|
-
updateBlocksRuntime: (
|
|
1140
|
-
|
|
1176
|
+
updateBlocksRuntime: (v, S) => {
|
|
1177
|
+
r(P(v, (L) => ({ _id: L, ...S })));
|
|
1141
1178
|
},
|
|
1142
|
-
setNewBlocks: (
|
|
1143
|
-
s(
|
|
1179
|
+
setNewBlocks: (v) => {
|
|
1180
|
+
s(v), e({
|
|
1144
1181
|
undo: () => s(t),
|
|
1145
|
-
redo: () => s(
|
|
1182
|
+
redo: () => s(v)
|
|
1146
1183
|
});
|
|
1147
1184
|
}
|
|
1148
1185
|
};
|
|
1149
|
-
},
|
|
1186
|
+
}, Go = ge(
|
|
1150
1187
|
"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",
|
|
1151
1188
|
{
|
|
1152
1189
|
variants: {
|
|
@@ -1165,9 +1202,9 @@ const Uo = () => {
|
|
|
1165
1202
|
size: "default"
|
|
1166
1203
|
}
|
|
1167
1204
|
}
|
|
1168
|
-
),
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1205
|
+
), Ho = m.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: d(Go({ variant: t, size: s, className: e })), ...o }));
|
|
1206
|
+
Ho.displayName = $t.Root.displayName;
|
|
1207
|
+
const qo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1171
1208
|
Je.Root,
|
|
1172
1209
|
{
|
|
1173
1210
|
className: d(
|
|
@@ -1186,7 +1223,7 @@ const Ho = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1186
1223
|
)
|
|
1187
1224
|
}
|
|
1188
1225
|
));
|
|
1189
|
-
|
|
1226
|
+
qo.displayName = Je.Root.displayName;
|
|
1190
1227
|
const bt = ge(
|
|
1191
1228
|
"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",
|
|
1192
1229
|
{
|
|
@@ -1211,16 +1248,16 @@ const bt = ge(
|
|
|
1211
1248
|
size: "default"
|
|
1212
1249
|
}
|
|
1213
1250
|
}
|
|
1214
|
-
),
|
|
1251
|
+
), Ko = m.forwardRef(
|
|
1215
1252
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, i) => {
|
|
1216
1253
|
const r = o ? Ws : "button";
|
|
1217
1254
|
return /* @__PURE__ */ a.jsx(r, { className: d(bt({ variant: t, size: s, className: e })), ref: i, ...n });
|
|
1218
1255
|
}
|
|
1219
1256
|
);
|
|
1220
|
-
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1257
|
+
Ko.displayName = "Button";
|
|
1258
|
+
const Kr = fe.Root, Jo = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(fe.Item, { ref: s, className: d("border-b", e), ...t }));
|
|
1259
|
+
Jo.displayName = "AccordionItem";
|
|
1260
|
+
const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(fe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
1224
1261
|
fe.Trigger,
|
|
1225
1262
|
{
|
|
1226
1263
|
ref: o,
|
|
@@ -1235,8 +1272,8 @@ const Jo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1235
1272
|
]
|
|
1236
1273
|
}
|
|
1237
1274
|
) }));
|
|
1238
|
-
|
|
1239
|
-
const
|
|
1275
|
+
Yo.displayName = fe.Trigger.displayName;
|
|
1276
|
+
const Qo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1240
1277
|
fe.Content,
|
|
1241
1278
|
{
|
|
1242
1279
|
ref: o,
|
|
@@ -1248,8 +1285,8 @@ const Yo = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1248
1285
|
children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
|
|
1249
1286
|
}
|
|
1250
1287
|
));
|
|
1251
|
-
|
|
1252
|
-
const
|
|
1288
|
+
Qo.displayName = fe.Content.displayName;
|
|
1289
|
+
const Xo = ge(
|
|
1253
1290
|
"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",
|
|
1254
1291
|
{
|
|
1255
1292
|
variants: {
|
|
@@ -1262,17 +1299,17 @@ const Qo = ge(
|
|
|
1262
1299
|
variant: "default"
|
|
1263
1300
|
}
|
|
1264
1301
|
}
|
|
1265
|
-
),
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1302
|
+
), Zo = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: d(Xo({ variant: t }), e), ...s }));
|
|
1303
|
+
Zo.displayName = "Alert";
|
|
1304
|
+
const en = m.forwardRef(
|
|
1268
1305
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: d("mb-1 font-medium leading-none tracking-tight", e), ...t })
|
|
1269
1306
|
);
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1307
|
+
en.displayName = "AlertTitle";
|
|
1308
|
+
const tn = m.forwardRef(
|
|
1272
1309
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("text-sm [&_p]:leading-relaxed", e), ...t })
|
|
1273
1310
|
);
|
|
1274
|
-
|
|
1275
|
-
const
|
|
1311
|
+
tn.displayName = "AlertDescription";
|
|
1312
|
+
const sn = ge(
|
|
1276
1313
|
"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",
|
|
1277
1314
|
{
|
|
1278
1315
|
variants: {
|
|
@@ -1287,10 +1324,10 @@ const tn = ge(
|
|
|
1287
1324
|
variant: "default"
|
|
1288
1325
|
}
|
|
1289
1326
|
}
|
|
1290
|
-
),
|
|
1291
|
-
is.displayName =
|
|
1327
|
+
), Jr = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: d(sn({ variant: t }), e), ...s }), Yr = q.Root, Qr = q.Trigger, is = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(q.Portal, { className: d(e), ...t });
|
|
1328
|
+
is.displayName = q.Portal.displayName;
|
|
1292
1329
|
const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1293
|
-
|
|
1330
|
+
q.Overlay,
|
|
1294
1331
|
{
|
|
1295
1332
|
className: d(
|
|
1296
1333
|
"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",
|
|
@@ -1300,11 +1337,11 @@ const ls = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1300
1337
|
ref: s
|
|
1301
1338
|
}
|
|
1302
1339
|
));
|
|
1303
|
-
ls.displayName =
|
|
1304
|
-
const
|
|
1340
|
+
ls.displayName = q.Overlay.displayName;
|
|
1341
|
+
const on = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is, { children: [
|
|
1305
1342
|
/* @__PURE__ */ a.jsx(ls, {}),
|
|
1306
1343
|
/* @__PURE__ */ a.jsx(
|
|
1307
|
-
|
|
1344
|
+
q.Content,
|
|
1308
1345
|
{
|
|
1309
1346
|
ref: s,
|
|
1310
1347
|
className: d(
|
|
@@ -1315,30 +1352,30 @@ const sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(is
|
|
|
1315
1352
|
}
|
|
1316
1353
|
)
|
|
1317
1354
|
] }));
|
|
1318
|
-
|
|
1319
|
-
const
|
|
1320
|
-
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
const
|
|
1326
|
-
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1355
|
+
on.displayName = q.Content.displayName;
|
|
1356
|
+
const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
1357
|
+
nn.displayName = "AlertDialogHeader";
|
|
1358
|
+
const an = ({ 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 });
|
|
1359
|
+
an.displayName = "AlertDialogFooter";
|
|
1360
|
+
const rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Title, { ref: s, className: d("text-lg font-semibold", e), ...t }));
|
|
1361
|
+
rn.displayName = q.Title.displayName;
|
|
1362
|
+
const ln = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1363
|
+
ln.displayName = q.Description.displayName;
|
|
1364
|
+
const cn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Action, { ref: s, className: d(bt(), e), ...t }));
|
|
1365
|
+
cn.displayName = q.Action.displayName;
|
|
1366
|
+
const dn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1367
|
+
q.Cancel,
|
|
1331
1368
|
{
|
|
1332
1369
|
ref: s,
|
|
1333
1370
|
className: d(bt({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
1334
1371
|
...t
|
|
1335
1372
|
}
|
|
1336
1373
|
));
|
|
1337
|
-
|
|
1338
|
-
const cs =
|
|
1339
|
-
ds.displayName =
|
|
1374
|
+
dn.displayName = q.Cancel.displayName;
|
|
1375
|
+
const cs = T.Root, un = T.Trigger, ds = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(T.Portal, { className: d(e), ...t });
|
|
1376
|
+
ds.displayName = T.Portal.displayName;
|
|
1340
1377
|
const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1341
|
-
|
|
1378
|
+
T.Overlay,
|
|
1342
1379
|
{
|
|
1343
1380
|
ref: s,
|
|
1344
1381
|
className: d(
|
|
@@ -1348,11 +1385,11 @@ const us = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1348
1385
|
...t
|
|
1349
1386
|
}
|
|
1350
1387
|
));
|
|
1351
|
-
us.displayName =
|
|
1388
|
+
us.displayName = T.Overlay.displayName;
|
|
1352
1389
|
const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ds, { children: [
|
|
1353
1390
|
/* @__PURE__ */ a.jsx(us, {}),
|
|
1354
1391
|
/* @__PURE__ */ a.jsxs(
|
|
1355
|
-
|
|
1392
|
+
T.Content,
|
|
1356
1393
|
{
|
|
1357
1394
|
ref: o,
|
|
1358
1395
|
className: d(
|
|
@@ -1362,7 +1399,7 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1362
1399
|
...s,
|
|
1363
1400
|
children: [
|
|
1364
1401
|
t,
|
|
1365
|
-
/* @__PURE__ */ a.jsxs(
|
|
1402
|
+
/* @__PURE__ */ a.jsxs(T.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: [
|
|
1366
1403
|
/* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
|
|
1367
1404
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1368
1405
|
] })
|
|
@@ -1370,45 +1407,45 @@ const xt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1370
1407
|
}
|
|
1371
1408
|
)
|
|
1372
1409
|
] }));
|
|
1373
|
-
xt.displayName =
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1378
|
-
const
|
|
1379
|
-
|
|
1410
|
+
xt.displayName = T.Content.displayName;
|
|
1411
|
+
const mn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
1412
|
+
mn.displayName = "DialogHeader";
|
|
1413
|
+
const fn = ({ 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 });
|
|
1414
|
+
fn.displayName = "DialogFooter";
|
|
1415
|
+
const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1416
|
+
T.Title,
|
|
1380
1417
|
{
|
|
1381
1418
|
ref: s,
|
|
1382
1419
|
className: d("text-lg font-semibold leading-none tracking-tight", e),
|
|
1383
1420
|
...t
|
|
1384
1421
|
}
|
|
1385
1422
|
));
|
|
1386
|
-
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
const
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1423
|
+
pn.displayName = T.Title.displayName;
|
|
1424
|
+
const gn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1425
|
+
gn.displayName = T.Description.displayName;
|
|
1426
|
+
const bn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
|
|
1427
|
+
bn.displayName = "Card";
|
|
1428
|
+
const xn = m.forwardRef(
|
|
1392
1429
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
1393
1430
|
);
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1431
|
+
xn.displayName = "CardHeader";
|
|
1432
|
+
const hn = m.forwardRef(
|
|
1396
1433
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: d("font-semibold leading-none tracking-tight", e), ...t })
|
|
1397
1434
|
);
|
|
1398
|
-
|
|
1399
|
-
const
|
|
1435
|
+
hn.displayName = "CardTitle";
|
|
1436
|
+
const vn = m.forwardRef(
|
|
1400
1437
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: d("text-sm text-muted-foreground", e), ...t })
|
|
1401
1438
|
);
|
|
1402
|
-
|
|
1403
|
-
const
|
|
1439
|
+
vn.displayName = "CardDescription";
|
|
1440
|
+
const yn = m.forwardRef(
|
|
1404
1441
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d("p-6 pt-0", e), ...t })
|
|
1405
1442
|
);
|
|
1406
|
-
|
|
1407
|
-
const
|
|
1443
|
+
yn.displayName = "CardContent";
|
|
1444
|
+
const wn = m.forwardRef(
|
|
1408
1445
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: d(" flex items-center p-6 pt-0", e), ...t })
|
|
1409
1446
|
);
|
|
1410
|
-
|
|
1411
|
-
const
|
|
1447
|
+
wn.displayName = "CardFooter";
|
|
1448
|
+
const Nn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1412
1449
|
"input",
|
|
1413
1450
|
{
|
|
1414
1451
|
type: t,
|
|
@@ -1420,10 +1457,10 @@ const wn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
|
|
|
1420
1457
|
...s
|
|
1421
1458
|
}
|
|
1422
1459
|
));
|
|
1423
|
-
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
const
|
|
1460
|
+
Nn.displayName = "Input";
|
|
1461
|
+
const kn = ge("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: d(kn(), e), ...t }));
|
|
1462
|
+
jn.displayName = Ft.Root.displayName;
|
|
1463
|
+
const Sn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1427
1464
|
"textarea",
|
|
1428
1465
|
{
|
|
1429
1466
|
className: d(
|
|
@@ -1434,15 +1471,15 @@ const jn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1434
1471
|
...t
|
|
1435
1472
|
}
|
|
1436
1473
|
));
|
|
1437
|
-
|
|
1438
|
-
const
|
|
1439
|
-
/* @__PURE__ */ a.jsx(
|
|
1474
|
+
Sn.displayName = "Textarea";
|
|
1475
|
+
const An = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(ue.Root, { ref: o, className: d("relative overflow-hidden", e), ...s, children: [
|
|
1476
|
+
/* @__PURE__ */ a.jsx(ue.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
1440
1477
|
/* @__PURE__ */ a.jsx(ms, {}),
|
|
1441
|
-
/* @__PURE__ */ a.jsx(
|
|
1478
|
+
/* @__PURE__ */ a.jsx(ue.Corner, {})
|
|
1442
1479
|
] }));
|
|
1443
|
-
|
|
1480
|
+
An.displayName = ue.Root.displayName;
|
|
1444
1481
|
const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1445
|
-
|
|
1482
|
+
ue.ScrollAreaScrollbar,
|
|
1446
1483
|
{
|
|
1447
1484
|
ref: o,
|
|
1448
1485
|
orientation: t,
|
|
@@ -1453,11 +1490,11 @@ const ms = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1453
1490
|
e
|
|
1454
1491
|
),
|
|
1455
1492
|
...s,
|
|
1456
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1493
|
+
children: /* @__PURE__ */ a.jsx(ue.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1457
1494
|
}
|
|
1458
1495
|
));
|
|
1459
|
-
ms.displayName =
|
|
1460
|
-
const
|
|
1496
|
+
ms.displayName = ue.ScrollAreaScrollbar.displayName;
|
|
1497
|
+
const Cn = be.Root, fs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1461
1498
|
be.List,
|
|
1462
1499
|
{
|
|
1463
1500
|
ref: s,
|
|
@@ -1493,7 +1530,7 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1493
1530
|
}
|
|
1494
1531
|
));
|
|
1495
1532
|
Ze.displayName = be.Content.displayName;
|
|
1496
|
-
const
|
|
1533
|
+
const Xr = ve.Portal, Zr = ve.Provider, ei = ve.Root, ti = ve.Trigger, _n = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1497
1534
|
ve.Content,
|
|
1498
1535
|
{
|
|
1499
1536
|
ref: o,
|
|
@@ -1505,8 +1542,8 @@ const Qr = ve.Portal, Xr = ve.Provider, Zr = ve.Root, ei = ve.Trigger, Cn = m.fo
|
|
|
1505
1542
|
...s
|
|
1506
1543
|
}
|
|
1507
1544
|
));
|
|
1508
|
-
|
|
1509
|
-
const
|
|
1545
|
+
_n.displayName = ve.Content.displayName;
|
|
1546
|
+
const si = Se.Root, oi = Se.Trigger, Bn = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1510
1547
|
Se.Content,
|
|
1511
1548
|
{
|
|
1512
1549
|
ref: n,
|
|
@@ -1519,18 +1556,18 @@ const ti = Se.Root, si = Se.Trigger, _n = m.forwardRef(({ className: e, align: t
|
|
|
1519
1556
|
...o
|
|
1520
1557
|
}
|
|
1521
1558
|
) }));
|
|
1522
|
-
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1559
|
+
Bn.displayName = Se.Content.displayName;
|
|
1560
|
+
const ni = B.Menu, ai = B.Group, ri = B.Portal, ii = B.Sub, li = B.RadioGroup, Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1561
|
+
B.Root,
|
|
1525
1562
|
{
|
|
1526
1563
|
ref: s,
|
|
1527
1564
|
className: d("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
|
|
1528
1565
|
...t
|
|
1529
1566
|
}
|
|
1530
1567
|
));
|
|
1531
|
-
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1568
|
+
Rn.displayName = B.Root.displayName;
|
|
1569
|
+
const Tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1570
|
+
B.Trigger,
|
|
1534
1571
|
{
|
|
1535
1572
|
ref: s,
|
|
1536
1573
|
className: d(
|
|
@@ -1540,9 +1577,9 @@ const Rn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1540
1577
|
...t
|
|
1541
1578
|
}
|
|
1542
1579
|
));
|
|
1543
|
-
|
|
1544
|
-
const
|
|
1545
|
-
|
|
1580
|
+
Tn.displayName = B.Trigger.displayName;
|
|
1581
|
+
const Pn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1582
|
+
B.SubTrigger,
|
|
1546
1583
|
{
|
|
1547
1584
|
ref: n,
|
|
1548
1585
|
className: d(
|
|
@@ -1557,9 +1594,9 @@ const Tn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
|
|
|
1557
1594
|
]
|
|
1558
1595
|
}
|
|
1559
1596
|
));
|
|
1560
|
-
|
|
1561
|
-
const
|
|
1562
|
-
|
|
1597
|
+
Pn.displayName = B.SubTrigger.displayName;
|
|
1598
|
+
const In = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1599
|
+
B.SubContent,
|
|
1563
1600
|
{
|
|
1564
1601
|
ref: s,
|
|
1565
1602
|
className: d(
|
|
@@ -1569,9 +1606,9 @@ const Pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1569
1606
|
...t
|
|
1570
1607
|
}
|
|
1571
1608
|
));
|
|
1572
|
-
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1609
|
+
In.displayName = B.SubContent.displayName;
|
|
1610
|
+
const Mn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, i) => /* @__PURE__ */ a.jsx(B.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1611
|
+
B.Content,
|
|
1575
1612
|
{
|
|
1576
1613
|
ref: i,
|
|
1577
1614
|
align: t,
|
|
@@ -1584,9 +1621,9 @@ const In = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
|
|
|
1584
1621
|
...n
|
|
1585
1622
|
}
|
|
1586
1623
|
) }));
|
|
1587
|
-
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1624
|
+
Mn.displayName = B.Content.displayName;
|
|
1625
|
+
const Dn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1626
|
+
B.Item,
|
|
1590
1627
|
{
|
|
1591
1628
|
ref: o,
|
|
1592
1629
|
className: d(
|
|
@@ -1597,9 +1634,9 @@ const Mn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1597
1634
|
...s
|
|
1598
1635
|
}
|
|
1599
1636
|
));
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1637
|
+
Dn.displayName = B.Item.displayName;
|
|
1638
|
+
const En = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1639
|
+
B.CheckboxItem,
|
|
1603
1640
|
{
|
|
1604
1641
|
ref: n,
|
|
1605
1642
|
className: d(
|
|
@@ -1609,14 +1646,14 @@ const Dn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1609
1646
|
checked: s,
|
|
1610
1647
|
...o,
|
|
1611
1648
|
children: [
|
|
1612
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1649
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(B.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
|
|
1613
1650
|
t
|
|
1614
1651
|
]
|
|
1615
1652
|
}
|
|
1616
1653
|
));
|
|
1617
|
-
|
|
1618
|
-
const
|
|
1619
|
-
|
|
1654
|
+
En.displayName = B.CheckboxItem.displayName;
|
|
1655
|
+
const On = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1656
|
+
B.RadioItem,
|
|
1620
1657
|
{
|
|
1621
1658
|
ref: o,
|
|
1622
1659
|
className: d(
|
|
@@ -1625,26 +1662,26 @@ const En = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1625
1662
|
),
|
|
1626
1663
|
...s,
|
|
1627
1664
|
children: [
|
|
1628
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1665
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(B.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1629
1666
|
t
|
|
1630
1667
|
]
|
|
1631
1668
|
}
|
|
1632
1669
|
));
|
|
1633
|
-
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1670
|
+
On.displayName = B.RadioItem.displayName;
|
|
1671
|
+
const Ln = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1672
|
+
B.Label,
|
|
1636
1673
|
{
|
|
1637
1674
|
ref: o,
|
|
1638
1675
|
className: d("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
1639
1676
|
...s
|
|
1640
1677
|
}
|
|
1641
1678
|
));
|
|
1642
|
-
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1679
|
+
Ln.displayName = B.Label.displayName;
|
|
1680
|
+
const zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1681
|
+
zn.displayName = B.Separator.displayName;
|
|
1682
|
+
const Vn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
1683
|
+
Vn.displayname = "MenubarShortcut";
|
|
1684
|
+
const ci = ze.Root, di = ze.Trigger, $n = m.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1648
1685
|
ze.Content,
|
|
1649
1686
|
{
|
|
1650
1687
|
ref: n,
|
|
@@ -1657,9 +1694,9 @@ const li = ze.Root, ci = ze.Trigger, Vn = m.forwardRef(({ className: e, align: t
|
|
|
1657
1694
|
...o
|
|
1658
1695
|
}
|
|
1659
1696
|
));
|
|
1660
|
-
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1697
|
+
$n.displayName = ze.Content.displayName;
|
|
1698
|
+
const ui = U.Root, mi = U.Group, fi = U.Value, Fn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1699
|
+
U.Trigger,
|
|
1663
1700
|
{
|
|
1664
1701
|
ref: o,
|
|
1665
1702
|
className: d(
|
|
@@ -1669,13 +1706,13 @@ const di = z.Root, ui = z.Group, mi = z.Value, $n = m.forwardRef(({ className: e
|
|
|
1669
1706
|
...s,
|
|
1670
1707
|
children: [
|
|
1671
1708
|
t,
|
|
1672
|
-
/* @__PURE__ */ a.jsx(
|
|
1709
|
+
/* @__PURE__ */ a.jsx(U.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
|
|
1673
1710
|
]
|
|
1674
1711
|
}
|
|
1675
1712
|
));
|
|
1676
|
-
|
|
1677
|
-
const
|
|
1678
|
-
|
|
1713
|
+
Fn.displayName = U.Trigger.displayName;
|
|
1714
|
+
const Un = m.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(U.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1715
|
+
U.Content,
|
|
1679
1716
|
{
|
|
1680
1717
|
ref: n,
|
|
1681
1718
|
className: d(
|
|
@@ -1686,7 +1723,7 @@ const Fn = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
1686
1723
|
position: s,
|
|
1687
1724
|
...o,
|
|
1688
1725
|
children: /* @__PURE__ */ a.jsx(
|
|
1689
|
-
|
|
1726
|
+
U.Viewport,
|
|
1690
1727
|
{
|
|
1691
1728
|
className: d(
|
|
1692
1729
|
"p-1",
|
|
@@ -1697,11 +1734,11 @@ const Fn = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
1697
1734
|
)
|
|
1698
1735
|
}
|
|
1699
1736
|
) }));
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1737
|
+
Un.displayName = U.Content.displayName;
|
|
1738
|
+
const Wn = m.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 }));
|
|
1739
|
+
Wn.displayName = U.Label.displayName;
|
|
1740
|
+
const Gn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1741
|
+
U.Item,
|
|
1705
1742
|
{
|
|
1706
1743
|
ref: o,
|
|
1707
1744
|
className: d(
|
|
@@ -1710,18 +1747,18 @@ const Wn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1710
1747
|
),
|
|
1711
1748
|
...s,
|
|
1712
1749
|
children: [
|
|
1713
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1714
|
-
/* @__PURE__ */ a.jsx(
|
|
1750
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(U.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
|
|
1751
|
+
/* @__PURE__ */ a.jsx(U.ItemText, { children: t })
|
|
1715
1752
|
]
|
|
1716
1753
|
}
|
|
1717
1754
|
));
|
|
1718
|
-
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1721
|
-
const
|
|
1722
|
-
ps.displayName =
|
|
1755
|
+
Gn.displayName = U.Item.displayName;
|
|
1756
|
+
const Hn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1757
|
+
Hn.displayName = U.Separator.displayName;
|
|
1758
|
+
const pi = T.Root, gi = T.Trigger, bi = T.Close, ps = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(T.Portal, { className: d(e), ...t });
|
|
1759
|
+
ps.displayName = T.Portal.displayName;
|
|
1723
1760
|
const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1724
|
-
|
|
1761
|
+
T.Overlay,
|
|
1725
1762
|
{
|
|
1726
1763
|
className: d(
|
|
1727
1764
|
"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",
|
|
@@ -1731,8 +1768,8 @@ const gs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1731
1768
|
ref: s
|
|
1732
1769
|
}
|
|
1733
1770
|
));
|
|
1734
|
-
gs.displayName =
|
|
1735
|
-
const
|
|
1771
|
+
gs.displayName = T.Overlay.displayName;
|
|
1772
|
+
const qn = ge(
|
|
1736
1773
|
"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",
|
|
1737
1774
|
{
|
|
1738
1775
|
variants: {
|
|
@@ -1747,29 +1784,29 @@ const Hn = ge(
|
|
|
1747
1784
|
side: "right"
|
|
1748
1785
|
}
|
|
1749
1786
|
}
|
|
1750
|
-
),
|
|
1787
|
+
), Kn = m.forwardRef(
|
|
1751
1788
|
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(ps, { children: [
|
|
1752
1789
|
/* @__PURE__ */ a.jsx(gs, {}),
|
|
1753
|
-
/* @__PURE__ */ a.jsxs(
|
|
1790
|
+
/* @__PURE__ */ a.jsxs(T.Content, { ref: n, className: d(qn({ side: e }), t), ...o, children: [
|
|
1754
1791
|
s,
|
|
1755
|
-
/* @__PURE__ */ a.jsxs(
|
|
1792
|
+
/* @__PURE__ */ a.jsxs(T.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: [
|
|
1756
1793
|
/* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" }),
|
|
1757
1794
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
1758
1795
|
] })
|
|
1759
1796
|
] })
|
|
1760
1797
|
] })
|
|
1761
1798
|
);
|
|
1762
|
-
|
|
1763
|
-
const
|
|
1764
|
-
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1771
|
-
const
|
|
1772
|
-
|
|
1799
|
+
Kn.displayName = T.Content.displayName;
|
|
1800
|
+
const Jn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
1801
|
+
Jn.displayName = "SheetHeader";
|
|
1802
|
+
const Yn = ({ 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 });
|
|
1803
|
+
Yn.displayName = "SheetFooter";
|
|
1804
|
+
const Qn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Title, { ref: s, className: d("text-lg font-semibold text-foreground", e), ...t }));
|
|
1805
|
+
Qn.displayName = T.Title.displayName;
|
|
1806
|
+
const Xn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Description, { ref: s, className: d("text-sm text-muted-foreground", e), ...t }));
|
|
1807
|
+
Xn.displayName = T.Description.displayName;
|
|
1808
|
+
const xi = I.Root, hi = I.Trigger, vi = I.Group, yi = I.Portal, wi = I.Sub, Ni = I.RadioGroup, Zn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1809
|
+
I.SubTrigger,
|
|
1773
1810
|
{
|
|
1774
1811
|
ref: n,
|
|
1775
1812
|
className: d(
|
|
@@ -1784,9 +1821,9 @@ const bi = T.Root, xi = T.Trigger, hi = T.Group, vi = T.Portal, yi = T.Sub, wi =
|
|
|
1784
1821
|
]
|
|
1785
1822
|
}
|
|
1786
1823
|
));
|
|
1787
|
-
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1824
|
+
Zn.displayName = I.SubTrigger.displayName;
|
|
1825
|
+
const ea = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1826
|
+
I.SubContent,
|
|
1790
1827
|
{
|
|
1791
1828
|
ref: s,
|
|
1792
1829
|
className: d(
|
|
@@ -1796,9 +1833,9 @@ const Zn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1796
1833
|
...t
|
|
1797
1834
|
}
|
|
1798
1835
|
));
|
|
1799
|
-
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1836
|
+
ea.displayName = I.SubContent.displayName;
|
|
1837
|
+
const ta = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(I.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1838
|
+
I.Content,
|
|
1802
1839
|
{
|
|
1803
1840
|
ref: o,
|
|
1804
1841
|
sideOffset: t,
|
|
@@ -1810,9 +1847,9 @@ const ea = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
|
|
|
1810
1847
|
...s
|
|
1811
1848
|
}
|
|
1812
1849
|
) }));
|
|
1813
|
-
|
|
1814
|
-
const
|
|
1815
|
-
|
|
1850
|
+
ta.displayName = I.Content.displayName;
|
|
1851
|
+
const sa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1852
|
+
I.Item,
|
|
1816
1853
|
{
|
|
1817
1854
|
ref: o,
|
|
1818
1855
|
className: d(
|
|
@@ -1823,9 +1860,9 @@ const ta = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1823
1860
|
...s
|
|
1824
1861
|
}
|
|
1825
1862
|
));
|
|
1826
|
-
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1863
|
+
sa.displayName = I.Item.displayName;
|
|
1864
|
+
const oa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1865
|
+
I.CheckboxItem,
|
|
1829
1866
|
{
|
|
1830
1867
|
ref: n,
|
|
1831
1868
|
className: d(
|
|
@@ -1835,14 +1872,14 @@ const sa = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1835
1872
|
checked: s,
|
|
1836
1873
|
...o,
|
|
1837
1874
|
children: [
|
|
1838
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1875
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(I.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Le, { className: "h-4 w-4" }) }) }),
|
|
1839
1876
|
t
|
|
1840
1877
|
]
|
|
1841
1878
|
}
|
|
1842
1879
|
));
|
|
1843
|
-
|
|
1844
|
-
const
|
|
1845
|
-
|
|
1880
|
+
oa.displayName = I.CheckboxItem.displayName;
|
|
1881
|
+
const na = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1882
|
+
I.RadioItem,
|
|
1846
1883
|
{
|
|
1847
1884
|
ref: o,
|
|
1848
1885
|
className: d(
|
|
@@ -1851,26 +1888,26 @@ const oa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1851
1888
|
),
|
|
1852
1889
|
...s,
|
|
1853
1890
|
children: [
|
|
1854
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1891
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(I.ItemIndicator, { children: /* @__PURE__ */ a.jsx(nt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1855
1892
|
t
|
|
1856
1893
|
]
|
|
1857
1894
|
}
|
|
1858
1895
|
));
|
|
1859
|
-
|
|
1860
|
-
const
|
|
1861
|
-
|
|
1896
|
+
na.displayName = I.RadioItem.displayName;
|
|
1897
|
+
const aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1898
|
+
I.Label,
|
|
1862
1899
|
{
|
|
1863
1900
|
ref: o,
|
|
1864
1901
|
className: d("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
1865
1902
|
...s
|
|
1866
1903
|
}
|
|
1867
1904
|
));
|
|
1868
|
-
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1871
|
-
const
|
|
1872
|
-
|
|
1873
|
-
const
|
|
1905
|
+
aa.displayName = I.Label.displayName;
|
|
1906
|
+
const ra = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1907
|
+
ra.displayName = I.Separator.displayName;
|
|
1908
|
+
const ia = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
1909
|
+
ia.displayName = "DropdownMenuShortcut";
|
|
1910
|
+
const la = m.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1874
1911
|
Ut.Root,
|
|
1875
1912
|
{
|
|
1876
1913
|
ref: n,
|
|
@@ -1880,10 +1917,10 @@ const ia = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
1880
1917
|
...o
|
|
1881
1918
|
}
|
|
1882
1919
|
));
|
|
1883
|
-
|
|
1884
|
-
const
|
|
1920
|
+
la.displayName = Ut.Root.displayName;
|
|
1921
|
+
const ca = 1, da = 1e6;
|
|
1885
1922
|
let We = 0;
|
|
1886
|
-
function
|
|
1923
|
+
function ua() {
|
|
1887
1924
|
return We = (We + 1) % Number.MAX_VALUE, We.toString();
|
|
1888
1925
|
}
|
|
1889
1926
|
const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
|
|
@@ -1894,14 +1931,14 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
|
|
|
1894
1931
|
type: "REMOVE_TOAST",
|
|
1895
1932
|
toastId: e
|
|
1896
1933
|
});
|
|
1897
|
-
},
|
|
1934
|
+
}, da);
|
|
1898
1935
|
Ge.set(e, t);
|
|
1899
|
-
},
|
|
1936
|
+
}, ma = (e, t) => {
|
|
1900
1937
|
switch (t.type) {
|
|
1901
1938
|
case "ADD_TOAST":
|
|
1902
1939
|
return {
|
|
1903
1940
|
...e,
|
|
1904
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
1941
|
+
toasts: [t.toast, ...e.toasts].slice(0, ca)
|
|
1905
1942
|
};
|
|
1906
1943
|
case "UPDATE_TOAST":
|
|
1907
1944
|
return {
|
|
@@ -1934,12 +1971,12 @@ const Ge = /* @__PURE__ */ new Map(), Rt = (e) => {
|
|
|
1934
1971
|
}, Ie = [];
|
|
1935
1972
|
let Me = { toasts: [] };
|
|
1936
1973
|
function ke(e) {
|
|
1937
|
-
Me =
|
|
1974
|
+
Me = ma(Me, e), Ie.forEach((t) => {
|
|
1938
1975
|
t(Me);
|
|
1939
1976
|
});
|
|
1940
1977
|
}
|
|
1941
|
-
function
|
|
1942
|
-
const t =
|
|
1978
|
+
function fa({ ...e }) {
|
|
1979
|
+
const t = ua(), s = (n) => ke({
|
|
1943
1980
|
type: "UPDATE_TOAST",
|
|
1944
1981
|
toast: { ...n, id: t }
|
|
1945
1982
|
}), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -1966,12 +2003,12 @@ function bs() {
|
|
|
1966
2003
|
s > -1 && Ie.splice(s, 1);
|
|
1967
2004
|
}), [e]), {
|
|
1968
2005
|
...e,
|
|
1969
|
-
toast:
|
|
2006
|
+
toast: fa,
|
|
1970
2007
|
dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
|
|
1971
2008
|
};
|
|
1972
2009
|
}
|
|
1973
|
-
const
|
|
1974
|
-
|
|
2010
|
+
const pa = X.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2011
|
+
X.Viewport,
|
|
1975
2012
|
{
|
|
1976
2013
|
ref: s,
|
|
1977
2014
|
className: d(
|
|
@@ -1981,8 +2018,8 @@ const fa = Y.Provider, xs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
1981
2018
|
...t
|
|
1982
2019
|
}
|
|
1983
2020
|
));
|
|
1984
|
-
xs.displayName =
|
|
1985
|
-
const
|
|
2021
|
+
xs.displayName = X.Viewport.displayName;
|
|
2022
|
+
const ga = ge(
|
|
1986
2023
|
"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",
|
|
1987
2024
|
{
|
|
1988
2025
|
variants: {
|
|
@@ -1995,10 +2032,10 @@ const pa = ge(
|
|
|
1995
2032
|
variant: "default"
|
|
1996
2033
|
}
|
|
1997
2034
|
}
|
|
1998
|
-
), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1999
|
-
hs.displayName =
|
|
2000
|
-
const
|
|
2001
|
-
|
|
2035
|
+
), hs = m.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(X.Root, { ref: o, className: d(ga({ variant: t }), e), ...s }));
|
|
2036
|
+
hs.displayName = X.Root.displayName;
|
|
2037
|
+
const ba = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2038
|
+
X.Action,
|
|
2002
2039
|
{
|
|
2003
2040
|
ref: s,
|
|
2004
2041
|
className: d(
|
|
@@ -2008,9 +2045,9 @@ const ga = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2008
2045
|
...t
|
|
2009
2046
|
}
|
|
2010
2047
|
));
|
|
2011
|
-
|
|
2048
|
+
ba.displayName = X.Action.displayName;
|
|
2012
2049
|
const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2013
|
-
|
|
2050
|
+
X.Close,
|
|
2014
2051
|
{
|
|
2015
2052
|
ref: s,
|
|
2016
2053
|
className: d(
|
|
@@ -2022,14 +2059,14 @@ const vs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2022
2059
|
children: /* @__PURE__ */ a.jsx(st, { className: "h-4 w-4" })
|
|
2023
2060
|
}
|
|
2024
2061
|
));
|
|
2025
|
-
vs.displayName =
|
|
2026
|
-
const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2027
|
-
ys.displayName =
|
|
2028
|
-
const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2029
|
-
ws.displayName =
|
|
2030
|
-
function
|
|
2062
|
+
vs.displayName = X.Close.displayName;
|
|
2063
|
+
const ys = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(X.Title, { ref: s, className: d("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
2064
|
+
ys.displayName = X.Title.displayName;
|
|
2065
|
+
const ws = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(X.Description, { ref: s, className: d("text-sm opacity-90", e), ...t }));
|
|
2066
|
+
ws.displayName = X.Description.displayName;
|
|
2067
|
+
function ki() {
|
|
2031
2068
|
const { toasts: e } = bs();
|
|
2032
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2069
|
+
return /* @__PURE__ */ a.jsxs(pa, { children: [
|
|
2033
2070
|
e.map(({ id: t, title: s, description: o, action: n, ...i }) => /* @__PURE__ */ a.jsxs(hs, { ...i, children: [
|
|
2034
2071
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
|
|
2035
2072
|
s && /* @__PURE__ */ a.jsx(ys, { children: s }),
|
|
@@ -2041,8 +2078,8 @@ function Ni() {
|
|
|
2041
2078
|
/* @__PURE__ */ a.jsx(xs, {})
|
|
2042
2079
|
] });
|
|
2043
2080
|
}
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2081
|
+
const ji = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: d("animate-pulse rounded-md bg-primary/10", e), ...t }), Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2082
|
+
Q,
|
|
2046
2083
|
{
|
|
2047
2084
|
ref: s,
|
|
2048
2085
|
className: d(
|
|
@@ -2052,11 +2089,11 @@ const ki = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2052
2089
|
...t
|
|
2053
2090
|
}
|
|
2054
2091
|
));
|
|
2055
|
-
Ns.displayName =
|
|
2056
|
-
const
|
|
2092
|
+
Ns.displayName = Q.displayName;
|
|
2093
|
+
const Si = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children: /* @__PURE__ */ a.jsx(xt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ns, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), xa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2057
2094
|
/* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2058
2095
|
/* @__PURE__ */ a.jsx(
|
|
2059
|
-
|
|
2096
|
+
Q.Input,
|
|
2060
2097
|
{
|
|
2061
2098
|
ref: s,
|
|
2062
2099
|
className: d(
|
|
@@ -2067,20 +2104,20 @@ const ji = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(cs, { ...t, children
|
|
|
2067
2104
|
}
|
|
2068
2105
|
)
|
|
2069
2106
|
] }));
|
|
2070
|
-
|
|
2071
|
-
const
|
|
2072
|
-
|
|
2107
|
+
xa.displayName = Q.Input.displayName;
|
|
2108
|
+
const ha = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2109
|
+
Q.List,
|
|
2073
2110
|
{
|
|
2074
2111
|
ref: s,
|
|
2075
2112
|
className: d("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
2076
2113
|
...t
|
|
2077
2114
|
}
|
|
2078
2115
|
));
|
|
2079
|
-
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2082
|
-
const
|
|
2083
|
-
|
|
2116
|
+
ha.displayName = Q.List.displayName;
|
|
2117
|
+
const va = m.forwardRef((e, t) => /* @__PURE__ */ a.jsx(Q.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
2118
|
+
va.displayName = Q.Empty.displayName;
|
|
2119
|
+
const ya = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2120
|
+
Q.Group,
|
|
2084
2121
|
{
|
|
2085
2122
|
ref: s,
|
|
2086
2123
|
className: d(
|
|
@@ -2090,11 +2127,11 @@ const va = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2090
2127
|
...t
|
|
2091
2128
|
}
|
|
2092
2129
|
));
|
|
2093
|
-
|
|
2094
|
-
const
|
|
2095
|
-
|
|
2096
|
-
const
|
|
2097
|
-
|
|
2130
|
+
ya.displayName = Q.Group.displayName;
|
|
2131
|
+
const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Q.Separator, { ref: s, className: d("-mx-1 h-px bg-border", e), ...t }));
|
|
2132
|
+
wa.displayName = Q.Separator.displayName;
|
|
2133
|
+
const Na = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2134
|
+
Q.Item,
|
|
2098
2135
|
{
|
|
2099
2136
|
ref: s,
|
|
2100
2137
|
className: d(
|
|
@@ -2104,11 +2141,11 @@ const wa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2104
2141
|
...t
|
|
2105
2142
|
}
|
|
2106
2143
|
));
|
|
2107
|
-
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2144
|
+
Na.displayName = Q.Item.displayName;
|
|
2145
|
+
const ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2146
|
+
ka.displayName = "CommandShortcut";
|
|
2147
|
+
const Ai = M.Root, Ci = M.Trigger, _i = M.Group, Bi = M.Portal, Ri = M.Sub, Ti = M.RadioGroup, ja = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2148
|
+
M.SubTrigger,
|
|
2112
2149
|
{
|
|
2113
2150
|
ref: n,
|
|
2114
2151
|
className: d(
|
|
@@ -2123,9 +2160,9 @@ const Si = P.Root, Ai = P.Trigger, Ci = P.Group, _i = P.Portal, Bi = P.Sub, Ri =
|
|
|
2123
2160
|
]
|
|
2124
2161
|
}
|
|
2125
2162
|
));
|
|
2126
|
-
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2163
|
+
ja.displayName = M.SubTrigger.displayName;
|
|
2164
|
+
const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2165
|
+
M.SubContent,
|
|
2129
2166
|
{
|
|
2130
2167
|
ref: s,
|
|
2131
2168
|
className: d(
|
|
@@ -2135,9 +2172,9 @@ const ja = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2135
2172
|
...t
|
|
2136
2173
|
}
|
|
2137
2174
|
));
|
|
2138
|
-
|
|
2139
|
-
const
|
|
2140
|
-
|
|
2175
|
+
Sa.displayName = M.SubContent.displayName;
|
|
2176
|
+
const Aa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2177
|
+
M.Content,
|
|
2141
2178
|
{
|
|
2142
2179
|
ref: s,
|
|
2143
2180
|
className: d(
|
|
@@ -2147,9 +2184,9 @@ const Sa = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.P
|
|
|
2147
2184
|
...t
|
|
2148
2185
|
}
|
|
2149
2186
|
) }));
|
|
2150
|
-
|
|
2151
|
-
const
|
|
2152
|
-
|
|
2187
|
+
Aa.displayName = M.Content.displayName;
|
|
2188
|
+
const Ca = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2189
|
+
M.Item,
|
|
2153
2190
|
{
|
|
2154
2191
|
ref: o,
|
|
2155
2192
|
className: d(
|
|
@@ -2160,9 +2197,9 @@ const Aa = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2160
2197
|
...s
|
|
2161
2198
|
}
|
|
2162
2199
|
));
|
|
2163
|
-
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2200
|
+
Ca.displayName = M.Item.displayName;
|
|
2201
|
+
const _a = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2202
|
+
M.CheckboxItem,
|
|
2166
2203
|
{
|
|
2167
2204
|
ref: n,
|
|
2168
2205
|
className: d(
|
|
@@ -2172,14 +2209,14 @@ const Ca = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2172
2209
|
checked: s,
|
|
2173
2210
|
...o,
|
|
2174
2211
|
children: [
|
|
2175
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2212
|
+
/* @__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(Le, { className: "h-4 w-4" }) }) }),
|
|
2176
2213
|
t
|
|
2177
2214
|
]
|
|
2178
2215
|
}
|
|
2179
2216
|
));
|
|
2180
|
-
|
|
2181
|
-
const
|
|
2182
|
-
|
|
2217
|
+
_a.displayName = M.CheckboxItem.displayName;
|
|
2218
|
+
const Ba = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2219
|
+
M.RadioItem,
|
|
2183
2220
|
{
|
|
2184
2221
|
ref: o,
|
|
2185
2222
|
className: d(
|
|
@@ -2188,26 +2225,26 @@ const _a = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2188
2225
|
),
|
|
2189
2226
|
...s,
|
|
2190
2227
|
children: [
|
|
2191
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2228
|
+
/* @__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(nt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2192
2229
|
t
|
|
2193
2230
|
]
|
|
2194
2231
|
}
|
|
2195
2232
|
));
|
|
2196
|
-
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2233
|
+
Ba.displayName = M.RadioItem.displayName;
|
|
2234
|
+
const Ra = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2235
|
+
M.Label,
|
|
2199
2236
|
{
|
|
2200
2237
|
ref: o,
|
|
2201
2238
|
className: d("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
|
|
2202
2239
|
...s
|
|
2203
2240
|
}
|
|
2204
2241
|
));
|
|
2205
|
-
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2208
|
-
const
|
|
2209
|
-
|
|
2210
|
-
const
|
|
2242
|
+
Ra.displayName = M.Label.displayName;
|
|
2243
|
+
const Ta = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(M.Separator, { ref: s, className: d("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
2244
|
+
Ta.displayName = M.Separator.displayName;
|
|
2245
|
+
const Pa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2246
|
+
Pa.displayName = "ContextMenuShortcut";
|
|
2247
|
+
const Ia = (e) => {
|
|
2211
2248
|
try {
|
|
2212
2249
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2213
2250
|
Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
@@ -2218,10 +2255,10 @@ const Pa = (e) => {
|
|
|
2218
2255
|
} catch (t) {
|
|
2219
2256
|
return console.error(t), "";
|
|
2220
2257
|
}
|
|
2221
|
-
},
|
|
2258
|
+
}, Pi = ({ value: e, onChange: t }) => {
|
|
2222
2259
|
const s = (o) => {
|
|
2223
2260
|
t("<svg />");
|
|
2224
|
-
const n =
|
|
2261
|
+
const n = Ia(o);
|
|
2225
2262
|
t(n);
|
|
2226
2263
|
};
|
|
2227
2264
|
return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
|
|
@@ -2272,7 +2309,7 @@ const Pa = (e) => {
|
|
|
2272
2309
|
}
|
|
2273
2310
|
)
|
|
2274
2311
|
] });
|
|
2275
|
-
},
|
|
2312
|
+
}, Ma = et.lazy(() => import("./UnsplashImages-Y8RGFVSh.js")), Da = et.lazy(() => import("./UploadImages-dd8LfyFr.js")), ks = ({
|
|
2276
2313
|
isModalView: e = !1,
|
|
2277
2314
|
onSelect: t = () => {
|
|
2278
2315
|
}
|
|
@@ -2280,15 +2317,15 @@ const Pa = (e) => {
|
|
|
2280
2317
|
const [s, o] = Ce("upload");
|
|
2281
2318
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
2282
2319
|
/* @__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" }) }),
|
|
2283
|
-
/* @__PURE__ */ a.jsxs(
|
|
2320
|
+
/* @__PURE__ */ a.jsxs(Cn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
|
|
2284
2321
|
/* @__PURE__ */ a.jsxs(fs, { className: "w-full", children: [
|
|
2285
2322
|
/* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
|
|
2286
2323
|
/* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
|
|
2287
2324
|
] }),
|
|
2288
|
-
s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(
|
|
2325
|
+
s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ma, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(vt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Da, { isModalView: e, onSelect: t }) }) })
|
|
2289
2326
|
] })
|
|
2290
2327
|
] });
|
|
2291
|
-
},
|
|
2328
|
+
}, Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2292
2329
|
__proto__: null,
|
|
2293
2330
|
default: ks
|
|
2294
2331
|
}, Symbol.toStringTag, { value: "Module" })), Tt = ({ children: e, onSelect: t }) => {
|
|
@@ -2296,10 +2333,10 @@ const Pa = (e) => {
|
|
|
2296
2333
|
t.call(void 0, ...i), o(!1);
|
|
2297
2334
|
};
|
|
2298
2335
|
return /* @__PURE__ */ a.jsxs(cs, { open: s, onOpenChange: (i) => o(i), children: [
|
|
2299
|
-
/* @__PURE__ */ a.jsx(
|
|
2336
|
+
/* @__PURE__ */ a.jsx(un, { asChild: !0, children: e }),
|
|
2300
2337
|
/* @__PURE__ */ a.jsx(xt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(ks, { isModalView: !0, onSelect: n }) }) })
|
|
2301
2338
|
] });
|
|
2302
|
-
},
|
|
2339
|
+
}, Mi = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
2303
2340
|
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Tt, { onSelect: t, children: /* @__PURE__ */ a.jsx("div", { className: "h-20 w-20 cursor-pointer rounded-md border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px] hover:border-gray-400" }) }),
|
|
2304
2341
|
/* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
|
|
2305
2342
|
/* @__PURE__ */ a.jsx(Tt, { onSelect: t, children: /* @__PURE__ */ a.jsx("small", { className: "cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700", children: e || !Ee(e) ? "Replace Image" : "Choose Image" }) }),
|
|
@@ -2316,7 +2353,7 @@ const Pa = (e) => {
|
|
|
2316
2353
|
}
|
|
2317
2354
|
)
|
|
2318
2355
|
] })
|
|
2319
|
-
] }),
|
|
2356
|
+
] }), Di = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
|
|
2320
2357
|
const i = {
|
|
2321
2358
|
toolbar: [
|
|
2322
2359
|
["bold", "italic", "underline", "strike", "blockquote"],
|
|
@@ -2352,7 +2389,7 @@ const Pa = (e) => {
|
|
|
2352
2389
|
className: "mt-1 rounded-md"
|
|
2353
2390
|
}
|
|
2354
2391
|
);
|
|
2355
|
-
},
|
|
2392
|
+
}, Ei = ({ schema: e, formData: t, onChange: s }) => {
|
|
2356
2393
|
const [o, n] = Ce([]), i = Ne("getPages", () => []), { type: r = "page", href: c = "", target: p = "self" } = t;
|
|
2357
2394
|
return Ae(() => {
|
|
2358
2395
|
(async () => {
|
|
@@ -2378,7 +2415,7 @@ const Pa = (e) => {
|
|
|
2378
2415
|
onChange: (l) => s({ ...t, href: l.target.value }),
|
|
2379
2416
|
children: [
|
|
2380
2417
|
/* @__PURE__ */ a.jsx("option", { value: "", children: "Choose page" }),
|
|
2381
|
-
|
|
2418
|
+
P(o, (l) => /* @__PURE__ */ a.jsx("option", { value: l.slug, children: l.name }, l.uuid))
|
|
2382
2419
|
]
|
|
2383
2420
|
}
|
|
2384
2421
|
) : /* @__PURE__ */ a.jsx(
|
|
@@ -2405,60 +2442,60 @@ const Pa = (e) => {
|
|
|
2405
2442
|
] })
|
|
2406
2443
|
] })
|
|
2407
2444
|
] });
|
|
2408
|
-
},
|
|
2409
|
-
const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = bs(), n =
|
|
2445
|
+
}, Oi = () => {
|
|
2446
|
+
const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe(), { toast: o } = bs(), n = F(
|
|
2410
2447
|
(r, c, p) => {
|
|
2411
|
-
var
|
|
2412
|
-
for (let
|
|
2413
|
-
const { _id:
|
|
2414
|
-
r[
|
|
2415
|
-
const W =
|
|
2416
|
-
for (let
|
|
2417
|
-
W[
|
|
2448
|
+
var v;
|
|
2449
|
+
for (let S = 0; S < r.length; S++) {
|
|
2450
|
+
const { _id: L } = r[S];
|
|
2451
|
+
r[S]._id = de();
|
|
2452
|
+
const W = D(r, { _parent: L });
|
|
2453
|
+
for (let C = 0; C < W.length; C++)
|
|
2454
|
+
W[C]._parent = r[S]._id;
|
|
2418
2455
|
}
|
|
2419
|
-
const l =
|
|
2420
|
-
let f,
|
|
2421
|
-
return c && (f =
|
|
2456
|
+
const l = Z(r);
|
|
2457
|
+
let f, N;
|
|
2458
|
+
return c && (f = se(e, { _id: c }), r[0]._parent = c, N = c), !(f ? Ye(f._type, l._type) : !0) && f && (r[0]._parent = f._parent, N = f._parent), s(r, N, p), t([(v = Z(r)) == null ? void 0 : v._id]), Z(r);
|
|
2422
2459
|
},
|
|
2423
2460
|
[e, t]
|
|
2424
2461
|
);
|
|
2425
|
-
return { addCoreBlock:
|
|
2462
|
+
return { addCoreBlock: F(
|
|
2426
2463
|
(r, c, p) => {
|
|
2427
2464
|
if (pe(r, "blocks")) {
|
|
2428
|
-
const
|
|
2429
|
-
return n(
|
|
2465
|
+
const C = r.blocks;
|
|
2466
|
+
return n(C, c, p);
|
|
2430
2467
|
}
|
|
2431
|
-
const l =
|
|
2432
|
-
Lt(f, (
|
|
2433
|
-
if (zt(
|
|
2434
|
-
const $ =
|
|
2435
|
-
|
|
2468
|
+
const l = de(), f = es(r.props), N = [];
|
|
2469
|
+
Lt(f, (C, z) => {
|
|
2470
|
+
if (zt(C, qe)) {
|
|
2471
|
+
const $ = C.replace(qe, "");
|
|
2472
|
+
N.push({
|
|
2436
2473
|
_id: $,
|
|
2437
2474
|
_type: "Slot",
|
|
2438
2475
|
_parent: l,
|
|
2439
|
-
_name: r.props[
|
|
2440
|
-
_styles: r.props[
|
|
2441
|
-
_emptyStyles: r.props[
|
|
2476
|
+
_name: r.props[z].name,
|
|
2477
|
+
_styles: r.props[z].styles,
|
|
2478
|
+
_emptyStyles: r.props[z].emptyStyles
|
|
2442
2479
|
});
|
|
2443
2480
|
}
|
|
2444
2481
|
});
|
|
2445
|
-
const
|
|
2482
|
+
const j = {
|
|
2446
2483
|
_type: r.type,
|
|
2447
2484
|
_id: l,
|
|
2448
2485
|
...f
|
|
2449
2486
|
};
|
|
2450
|
-
let
|
|
2451
|
-
if (c && (
|
|
2487
|
+
let v, S;
|
|
2488
|
+
if (c && (v = se(e, { _id: c }), j._parent = c, S = c), !wo(v == null ? void 0 : v._type, r.type)) {
|
|
2452
2489
|
o({
|
|
2453
2490
|
variant: "destructive",
|
|
2454
2491
|
title: "Error",
|
|
2455
|
-
description: `"${r.type}" cannot be added under "${
|
|
2492
|
+
description: `"${r.type}" cannot be added under "${v ? v == null ? void 0 : v._type : "root"}"`
|
|
2456
2493
|
}), t([]);
|
|
2457
2494
|
return;
|
|
2458
2495
|
}
|
|
2459
|
-
!(
|
|
2460
|
-
const W = [
|
|
2461
|
-
return s(W,
|
|
2496
|
+
!(v ? Ye(v._type, r.type) : !0) && v && (j._parent = v._parent, S = v._parent);
|
|
2497
|
+
const W = [j, ...N];
|
|
2498
|
+
return s(W, S, p), t([j._id]), j;
|
|
2462
2499
|
},
|
|
2463
2500
|
[n, e, t]
|
|
2464
2501
|
), addPredefinedBlock: n };
|
|
@@ -2470,7 +2507,7 @@ const Pa = (e) => {
|
|
|
2470
2507
|
xl: 1280,
|
|
2471
2508
|
"2xl": 1536
|
|
2472
2509
|
}, It = ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
2473
|
-
function
|
|
2510
|
+
function Ea(e, t) {
|
|
2474
2511
|
if (t === null)
|
|
2475
2512
|
return "baseClasses";
|
|
2476
2513
|
const s = t.mq;
|
|
@@ -2479,7 +2516,7 @@ function Da(e, t) {
|
|
|
2479
2516
|
let o = "baseClasses", n = It.indexOf(s);
|
|
2480
2517
|
for (; n > 0; ) {
|
|
2481
2518
|
const i = It[n - 1];
|
|
2482
|
-
if (
|
|
2519
|
+
if (se(e, {
|
|
2483
2520
|
mq: i,
|
|
2484
2521
|
property: t.property
|
|
2485
2522
|
})) {
|
|
@@ -2491,27 +2528,27 @@ function Da(e, t) {
|
|
|
2491
2528
|
return o;
|
|
2492
2529
|
}
|
|
2493
2530
|
const Mt = [];
|
|
2494
|
-
function
|
|
2531
|
+
function Oa(e = "", t = "", s = []) {
|
|
2495
2532
|
e = e.trim().replace(/ +/g, "");
|
|
2496
|
-
let o =
|
|
2497
|
-
|
|
2533
|
+
let o = D(
|
|
2534
|
+
P(e.split(" "), Pe),
|
|
2498
2535
|
(l) => !He(l)
|
|
2499
|
-
), n =
|
|
2500
|
-
n =
|
|
2536
|
+
), n = D(P(t.split(" "), Pe), (l) => !He(l));
|
|
2537
|
+
n = D(
|
|
2501
2538
|
n,
|
|
2502
|
-
(l) => !
|
|
2539
|
+
(l) => !Y(Mt, l.property)
|
|
2503
2540
|
);
|
|
2504
2541
|
const i = [], r = [];
|
|
2505
|
-
|
|
2506
|
-
const f = Pe(l),
|
|
2507
|
-
if (
|
|
2542
|
+
ce(s, (l) => {
|
|
2543
|
+
const f = Pe(l), N = se(o, yt(f, ["dark", "mq", "mod", "property"]));
|
|
2544
|
+
if (N && (o = D(
|
|
2508
2545
|
o,
|
|
2509
|
-
(
|
|
2510
|
-
)), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n =
|
|
2511
|
-
const
|
|
2512
|
-
|
|
2546
|
+
(j) => j.fullCls !== (N == null ? void 0 : N.fullCls)
|
|
2547
|
+
)), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (n = D(n, (j) => j.property !== f.property)), Ea(o, f) === "baseClasses" && !Y(Mt, f.property)) {
|
|
2548
|
+
const j = se(n, yt(f, ["property"]));
|
|
2549
|
+
N && (n = D(
|
|
2513
2550
|
n,
|
|
2514
|
-
(
|
|
2551
|
+
(v) => v.fullCls !== (j == null ? void 0 : j.fullCls)
|
|
2515
2552
|
)), r.push({
|
|
2516
2553
|
...f,
|
|
2517
2554
|
fullCls: f.cls,
|
|
@@ -2519,38 +2556,38 @@ function Ea(e = "", t = "", s = []) {
|
|
|
2519
2556
|
});
|
|
2520
2557
|
}
|
|
2521
2558
|
});
|
|
2522
|
-
const c =
|
|
2559
|
+
const c = P(
|
|
2523
2560
|
wt([...o, ...i], (l) => Pt[l.mq]),
|
|
2524
2561
|
"fullCls"
|
|
2525
2562
|
).join(" ");
|
|
2526
|
-
return `${
|
|
2563
|
+
return `${P(
|
|
2527
2564
|
wt([...n, ...r], (l) => Pt[l.mq]),
|
|
2528
2565
|
"fullCls"
|
|
2529
2566
|
).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
|
|
2530
2567
|
}
|
|
2531
2568
|
const Re = w([]);
|
|
2532
2569
|
Re.debugLabel = "selectedStylingBlocksAtom";
|
|
2533
|
-
const
|
|
2570
|
+
const La = () => E(Re), za = (e) => {
|
|
2534
2571
|
const t = e.replace(me, "").split(",");
|
|
2535
2572
|
return { baseClasses: t[0], classes: t[1] };
|
|
2536
|
-
},
|
|
2537
|
-
const n =
|
|
2573
|
+
}, Va = w(null, (e, t, { blockIds: s, newClasses: o }) => {
|
|
2574
|
+
const n = D(
|
|
2538
2575
|
e(rt),
|
|
2539
2576
|
(r) => (
|
|
2540
2577
|
// @ts-ignore
|
|
2541
2578
|
s.includes(e(r)._id)
|
|
2542
2579
|
)
|
|
2543
|
-
), i =
|
|
2544
|
-
return
|
|
2545
|
-
const c = e(r), p =
|
|
2580
|
+
), i = Z(e(Re));
|
|
2581
|
+
return P(n, (r) => {
|
|
2582
|
+
const c = e(r), p = H(c, i.prop, `${me},`), { baseClasses: l, classes: f } = za(p);
|
|
2546
2583
|
return {
|
|
2547
2584
|
ids: [c._id],
|
|
2548
|
-
props: { [i.prop]: `${me}${
|
|
2585
|
+
props: { [i.prop]: `${me}${Oa(f, l, o)}` }
|
|
2549
2586
|
};
|
|
2550
2587
|
});
|
|
2551
|
-
}),
|
|
2552
|
-
const e = _e(
|
|
2553
|
-
return
|
|
2588
|
+
}), Li = () => {
|
|
2589
|
+
const e = _e(Va), { updateBlocks: t, updateBlocksRuntime: s } = xe();
|
|
2590
|
+
return F(
|
|
2554
2591
|
(o, n, i = !1) => {
|
|
2555
2592
|
const r = e({ blockIds: o, newClasses: n });
|
|
2556
2593
|
if (!i) {
|
|
@@ -2561,104 +2598,104 @@ const Oa = () => D(Re), La = (e) => {
|
|
|
2561
2598
|
},
|
|
2562
2599
|
[e]
|
|
2563
2600
|
);
|
|
2564
|
-
},
|
|
2601
|
+
}, $a = () => E(Zt), js = Be("canvasWidth", 800), Ss = w((e) => {
|
|
2565
2602
|
const t = e(js);
|
|
2566
2603
|
return $s(t).toLowerCase();
|
|
2567
|
-
}),
|
|
2568
|
-
const [e, t] =
|
|
2604
|
+
}), zi = () => {
|
|
2605
|
+
const [e, t] = E(js), s = ee(Ss), [o, n] = $a();
|
|
2569
2606
|
return Ae(() => {
|
|
2570
2607
|
o !== "xs" && n(s);
|
|
2571
2608
|
}, [s, o, n]), [e, s, t];
|
|
2572
|
-
},
|
|
2573
|
-
const [e, t] =
|
|
2609
|
+
}, Fa = Be("canvasZoom", 100), Vi = () => E(Fa), As = w([]), Ua = () => {
|
|
2610
|
+
const [e, t] = E(As), s = _e(ht), o = F(
|
|
2574
2611
|
(n) => {
|
|
2575
2612
|
t(n), s([]);
|
|
2576
2613
|
},
|
|
2577
2614
|
[t, s]
|
|
2578
2615
|
);
|
|
2579
2616
|
return [e, o];
|
|
2580
|
-
}, ht = w([]),
|
|
2581
|
-
const [e, t] =
|
|
2617
|
+
}, ht = w([]), $i = () => {
|
|
2618
|
+
const [e, t] = E(ht), s = _e(As), o = F(
|
|
2582
2619
|
(n) => {
|
|
2583
2620
|
t(n), s([]);
|
|
2584
2621
|
},
|
|
2585
2622
|
[t, s]
|
|
2586
2623
|
);
|
|
2587
2624
|
return [e, o];
|
|
2588
|
-
}, Cs = Be("darkMode", !1),
|
|
2589
|
-
const [e, t] =
|
|
2625
|
+
}, Cs = Be("darkMode", !1), Fi = () => {
|
|
2626
|
+
const [e, t] = E(Cs);
|
|
2590
2627
|
return [e, t];
|
|
2591
|
-
},
|
|
2628
|
+
}, Wa = () => {
|
|
2592
2629
|
const [e] = ye(), [, t] = Ve(), { addBlocks: s } = xe();
|
|
2593
|
-
return
|
|
2630
|
+
return F(
|
|
2594
2631
|
(o, n = null) => {
|
|
2595
2632
|
const i = [];
|
|
2596
|
-
|
|
2597
|
-
const c = e.find((
|
|
2633
|
+
ce(o, (r) => {
|
|
2634
|
+
const c = e.find((j) => j._id === r);
|
|
2598
2635
|
n || (n = c._parent);
|
|
2599
|
-
const f =
|
|
2636
|
+
const f = D(
|
|
2600
2637
|
e,
|
|
2601
|
-
(
|
|
2602
|
-
).indexOf(c) + 1,
|
|
2603
|
-
s(
|
|
2638
|
+
(j) => Et(n) ? j._parent === n : !c._parent
|
|
2639
|
+
).indexOf(c) + 1, N = No(e, r, n);
|
|
2640
|
+
s(N, n, f), i.push(H(N, "0._id", ""));
|
|
2604
2641
|
}), t(i);
|
|
2605
2642
|
},
|
|
2606
2643
|
[e, t]
|
|
2607
2644
|
);
|
|
2608
|
-
},
|
|
2609
|
-
const [e, t] =
|
|
2645
|
+
}, Ga = w([]), Ui = () => {
|
|
2646
|
+
const [e, t] = E(Ga), s = F(
|
|
2610
2647
|
(o) => {
|
|
2611
|
-
t((n) =>
|
|
2648
|
+
t((n) => Y(n, o) ? Ot(n, o) : [...n, o]);
|
|
2612
2649
|
},
|
|
2613
2650
|
[t]
|
|
2614
2651
|
);
|
|
2615
2652
|
return [e, t, s];
|
|
2616
|
-
},
|
|
2617
|
-
const e =
|
|
2618
|
-
return
|
|
2653
|
+
}, Ha = w(""), qa = () => E(Ha), Ka = () => {
|
|
2654
|
+
const e = ee(re);
|
|
2655
|
+
return F(
|
|
2619
2656
|
(t, s) => {
|
|
2620
|
-
const o =
|
|
2657
|
+
const o = P(e, (n) => (Y(t, H(n, "_id")) && je(n, "_parent", s), n));
|
|
2621
2658
|
console.log("newBlocks", o);
|
|
2622
2659
|
},
|
|
2623
2660
|
[e]
|
|
2624
2661
|
);
|
|
2625
|
-
},
|
|
2662
|
+
}, Wi = () => {
|
|
2626
2663
|
console.warn("usePasteBlocks is not implemented");
|
|
2627
|
-
const e =
|
|
2664
|
+
const e = ee(ht), [t, s] = Ua(), o = Wa(), n = Ka();
|
|
2628
2665
|
return {
|
|
2629
2666
|
canPaste: Os(
|
|
2630
2667
|
() => t.length > 0 || e.length > 0,
|
|
2631
2668
|
[e, t]
|
|
2632
2669
|
),
|
|
2633
|
-
pasteBlocks:
|
|
2670
|
+
pasteBlocks: F(
|
|
2634
2671
|
(r) => {
|
|
2635
2672
|
Ee(e) ? n(t, r) : o(e, r), s(() => []);
|
|
2636
2673
|
},
|
|
2637
2674
|
[t, e, o, n, s]
|
|
2638
2675
|
)
|
|
2639
2676
|
};
|
|
2640
|
-
},
|
|
2641
|
-
const [e, t] =
|
|
2677
|
+
}, Ja = w(!1), Gi = () => {
|
|
2678
|
+
const [e, t] = E(Ja);
|
|
2642
2679
|
return [e, t];
|
|
2643
|
-
},
|
|
2644
|
-
const n =
|
|
2680
|
+
}, Ya = w(null, (e, t, { blockIds: s, fullClasses: o }) => {
|
|
2681
|
+
const n = Z(e(Re)), i = D(
|
|
2645
2682
|
e(rt),
|
|
2646
2683
|
(r) => (
|
|
2647
2684
|
// @ts-ignore
|
|
2648
2685
|
s.includes(e(r)._id)
|
|
2649
2686
|
)
|
|
2650
2687
|
);
|
|
2651
|
-
return
|
|
2688
|
+
return P(i, (r) => {
|
|
2652
2689
|
const c = e(r), p = o;
|
|
2653
|
-
let { classes: l, baseClasses: f } = yo(
|
|
2654
|
-
return
|
|
2655
|
-
const
|
|
2656
|
-
l = l.replace(
|
|
2657
|
-
const
|
|
2658
|
-
|
|
2659
|
-
}),
|
|
2660
|
-
const
|
|
2661
|
-
f = f.replace(
|
|
2690
|
+
let { classes: l, baseClasses: f } = yo(H(c, n.prop, "styles:,"));
|
|
2691
|
+
return ce(p, (N) => {
|
|
2692
|
+
const j = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
2693
|
+
l = l.replace(j, " ").replace(/ +/g, " ").trim();
|
|
2694
|
+
const v = Z(N.split(":"));
|
|
2695
|
+
Y(["2xl", "xl", "lg", "md", "sm"], v) && p.push(N.split(":").pop().trim());
|
|
2696
|
+
}), ce(p, (N) => {
|
|
2697
|
+
const j = new RegExp(`(^| )${N.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
2698
|
+
f = f.replace(j, " ").replace(/ +/g, " ").trim();
|
|
2662
2699
|
}), {
|
|
2663
2700
|
ids: [c._id],
|
|
2664
2701
|
props: {
|
|
@@ -2666,9 +2703,9 @@ const Oa = () => D(Re), La = (e) => {
|
|
|
2666
2703
|
}
|
|
2667
2704
|
};
|
|
2668
2705
|
});
|
|
2669
|
-
}),
|
|
2670
|
-
const { updateBlocks: e } = xe(), t = _e(
|
|
2671
|
-
return
|
|
2706
|
+
}), Hi = () => {
|
|
2707
|
+
const { updateBlocks: e } = xe(), t = _e(Ya);
|
|
2708
|
+
return F(
|
|
2672
2709
|
(s, o) => {
|
|
2673
2710
|
const n = t({ blockIds: s, fullClasses: o });
|
|
2674
2711
|
e(s, n[0].props);
|
|
@@ -2676,16 +2713,16 @@ const Oa = () => D(Re), La = (e) => {
|
|
|
2676
2713
|
[t]
|
|
2677
2714
|
);
|
|
2678
2715
|
}, _s = w((e) => {
|
|
2679
|
-
const t =
|
|
2680
|
-
if (!t || t.blockId !==
|
|
2716
|
+
const t = Z(e(Re)), s = e(ct);
|
|
2717
|
+
if (!t || t.blockId !== H(s, "_id", null))
|
|
2681
2718
|
return [];
|
|
2682
|
-
const n =
|
|
2683
|
-
return
|
|
2684
|
-
}),
|
|
2685
|
-
const t = e(Ss), s = e(dt), o = e(Cs), n =
|
|
2686
|
-
let i =
|
|
2687
|
-
return zt(s, "_") || (i =
|
|
2688
|
-
}),
|
|
2719
|
+
const n = H(s, t.prop, `${me},`).replace(me, "").split(",").join(" ");
|
|
2720
|
+
return D(P(n.trim().split(" "), Pe), (i) => !He(i));
|
|
2721
|
+
}), qi = () => ee(_s), Dt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Qa = w((e) => {
|
|
2722
|
+
const t = e(Ss), s = e(dt), o = e(Cs), n = Xa(t);
|
|
2723
|
+
let i = D(e(_s), { mod: s });
|
|
2724
|
+
return zt(s, "_") || (i = D(i, (r) => n.includes(r.mq))), i = i.sort((r, c) => Dt[r.mq] - Dt[c.mq]), o || (i = D(i, { dark: !1 })), i;
|
|
2725
|
+
}), Xa = (e) => {
|
|
2689
2726
|
let t = [];
|
|
2690
2727
|
switch (e) {
|
|
2691
2728
|
case "xs":
|
|
@@ -2711,17 +2748,17 @@ const Oa = () => D(Re), La = (e) => {
|
|
|
2711
2748
|
break;
|
|
2712
2749
|
}
|
|
2713
2750
|
return t;
|
|
2714
|
-
},
|
|
2751
|
+
}, Ki = () => ee(Qa), Ji = () => E(dt), Yi = () => {
|
|
2715
2752
|
const { updateBlocks: e } = xe();
|
|
2716
|
-
return
|
|
2753
|
+
return F(
|
|
2717
2754
|
(t, s, o) => {
|
|
2718
2755
|
e(t, s, o);
|
|
2719
2756
|
},
|
|
2720
2757
|
[e]
|
|
2721
2758
|
);
|
|
2722
|
-
},
|
|
2759
|
+
}, Qi = () => {
|
|
2723
2760
|
const { updateBlocksRuntime: e } = xe();
|
|
2724
|
-
return
|
|
2761
|
+
return F(
|
|
2725
2762
|
(t, s) => {
|
|
2726
2763
|
e(t, s);
|
|
2727
2764
|
},
|
|
@@ -2732,15 +2769,15 @@ const Oa = () => D(Re), La = (e) => {
|
|
|
2732
2769
|
props: {},
|
|
2733
2770
|
modalProps: {},
|
|
2734
2771
|
backdropClose: !0
|
|
2735
|
-
},
|
|
2736
|
-
const [e, t] =
|
|
2772
|
+
}, Za = w(Bs), Xi = () => {
|
|
2773
|
+
const [e, t] = E(Za), s = F(
|
|
2737
2774
|
(n, i = {}, r = {}) => {
|
|
2738
2775
|
t({ name: n, props: i, modalProps: r });
|
|
2739
2776
|
},
|
|
2740
2777
|
[t]
|
|
2741
|
-
), o =
|
|
2778
|
+
), o = F(
|
|
2742
2779
|
(...n) => {
|
|
2743
|
-
|
|
2780
|
+
H(e, "props.onClose", () => {
|
|
2744
2781
|
})(...n), t(Bs);
|
|
2745
2782
|
},
|
|
2746
2783
|
[t, e]
|
|
@@ -2750,47 +2787,47 @@ const Oa = () => D(Re), La = (e) => {
|
|
|
2750
2787
|
openModal: s,
|
|
2751
2788
|
closeModal: o
|
|
2752
2789
|
};
|
|
2753
|
-
},
|
|
2790
|
+
}, Zi = () => (console.warn("useAllBlocks is deprecated, use useBlocksStore() instead"), ee(re)), Rs = w(!1);
|
|
2754
2791
|
Rs.debugLabel = "readOnlyModeAtom";
|
|
2755
|
-
const
|
|
2756
|
-
|
|
2757
|
-
const er = w(!1);
|
|
2758
|
-
er.debugLabel = "codeEditorOpenAtom";
|
|
2792
|
+
const er = w("online");
|
|
2793
|
+
er.debugLabel = "networkModeAtom";
|
|
2759
2794
|
const tr = w(!1);
|
|
2760
|
-
tr.debugLabel = "
|
|
2761
|
-
const sr = w(
|
|
2762
|
-
sr.debugLabel = "
|
|
2795
|
+
tr.debugLabel = "codeEditorOpenAtom";
|
|
2796
|
+
const sr = w(!1);
|
|
2797
|
+
sr.debugLabel = "editLayerNameAtom";
|
|
2763
2798
|
const or = w("");
|
|
2764
|
-
or.debugLabel = "
|
|
2765
|
-
const nr = w(
|
|
2766
|
-
nr.debugLabel = "
|
|
2767
|
-
const ar = w(
|
|
2768
|
-
ar.debugLabel = "
|
|
2769
|
-
const rr = w("");
|
|
2770
|
-
rr.debugLabel = "
|
|
2799
|
+
or.debugLabel = "activeLanguageAtom";
|
|
2800
|
+
const nr = w("");
|
|
2801
|
+
nr.debugLabel = "primaryLanguageAtom";
|
|
2802
|
+
const ar = w(null);
|
|
2803
|
+
ar.debugLabel = "canvasIframeAtom";
|
|
2804
|
+
const rr = w("outline");
|
|
2805
|
+
rr.debugLabel = "activePanelAtom";
|
|
2806
|
+
const ir = w("");
|
|
2807
|
+
ir.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
2771
2808
|
const Ts = w({ undoCount: 0, redoCount: 0 });
|
|
2772
2809
|
Ts.debugLabel = "historyStatesAtom";
|
|
2773
|
-
const
|
|
2774
|
-
|
|
2775
|
-
const
|
|
2776
|
-
|
|
2777
|
-
const
|
|
2778
|
-
|
|
2779
|
-
const
|
|
2780
|
-
const [e, t] =
|
|
2810
|
+
const lr = w("");
|
|
2811
|
+
lr.debugLabel = "inlineEditingActiveAtom";
|
|
2812
|
+
const cr = w(!1);
|
|
2813
|
+
cr.debugLabel = "draggingFlagAtom";
|
|
2814
|
+
const dr = w("");
|
|
2815
|
+
dr.debugLabel = "draggedBlockIdAtom";
|
|
2816
|
+
const el = () => ee(Rs), ur = w(""), mr = w(null), tl = () => E(ur), sl = () => E(mr), fr = Be("selectedBreakpoints", ["XS", "MD", "XL"]), ol = () => {
|
|
2817
|
+
const [e, t] = E(fr);
|
|
2781
2818
|
return [e, t];
|
|
2782
|
-
},
|
|
2783
|
-
const e = _e(Ts), { clear: t } = rs(), [, s] = Ve(), [, o] =
|
|
2819
|
+
}, nl = () => {
|
|
2820
|
+
const e = _e(Ts), { clear: t } = rs(), [, s] = Ve(), [, o] = qa(), [, n] = La();
|
|
2784
2821
|
return () => {
|
|
2785
2822
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
2786
2823
|
};
|
|
2787
|
-
},
|
|
2788
|
-
const [e, t] = Ce(!1), [s, o] =
|
|
2824
|
+
}, pr = w([]), al = () => {
|
|
2825
|
+
const [e, t] = Ce(!1), [s, o] = E(pr), n = Ne("getUILibraryBlocks", () => []);
|
|
2789
2826
|
return Ae(() => {
|
|
2790
2827
|
(async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
|
|
2791
2828
|
}, []), { data: s, isLoading: e };
|
|
2792
|
-
},
|
|
2793
|
-
const [e, t] = Ce(null), s =
|
|
2829
|
+
}, rl = () => {
|
|
2830
|
+
const [e, t] = Ce(null), s = F(async (o) => {
|
|
2794
2831
|
if (!(navigator != null && navigator.clipboard))
|
|
2795
2832
|
return console.warn("Clipboard not supported"), !1;
|
|
2796
2833
|
try {
|
|
@@ -2802,213 +2839,213 @@ const Zi = () => X(Rs), dr = w(""), ur = w(null), el = () => D(dr), tl = () => D
|
|
|
2802
2839
|
return [e, s];
|
|
2803
2840
|
};
|
|
2804
2841
|
export {
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2842
|
+
Ki as $,
|
|
2843
|
+
Yr as A,
|
|
2844
|
+
Ko as B,
|
|
2808
2845
|
pt as C,
|
|
2809
|
-
|
|
2846
|
+
Lr as D,
|
|
2810
2847
|
ye as E,
|
|
2811
2848
|
ts as F,
|
|
2812
2849
|
Ht as G,
|
|
2813
2850
|
as as H,
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2851
|
+
ki as I,
|
|
2852
|
+
el as J,
|
|
2853
|
+
Xi as K,
|
|
2854
|
+
Oi as L,
|
|
2855
|
+
Li as M,
|
|
2856
|
+
zi as N,
|
|
2857
|
+
Vi as O,
|
|
2858
|
+
$i as P,
|
|
2859
|
+
rl as Q,
|
|
2823
2860
|
Eo as R,
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2861
|
+
ji as S,
|
|
2862
|
+
Zr as T,
|
|
2863
|
+
Ua as U,
|
|
2864
|
+
Fi as V,
|
|
2828
2865
|
Vo as W,
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2866
|
+
Ui as X,
|
|
2867
|
+
qa as Y,
|
|
2868
|
+
Wi as Z,
|
|
2869
|
+
Hi as _,
|
|
2870
|
+
Qr as a,
|
|
2871
|
+
va as a$,
|
|
2872
|
+
qi as a0,
|
|
2873
|
+
Ur as a1,
|
|
2874
|
+
$a as a2,
|
|
2875
|
+
al as a3,
|
|
2876
|
+
Ji as a4,
|
|
2877
|
+
Yi as a5,
|
|
2878
|
+
Qi as a6,
|
|
2879
|
+
Fr as a7,
|
|
2880
|
+
Zi as a8,
|
|
2881
|
+
tl as a9,
|
|
2882
|
+
la as aA,
|
|
2883
|
+
jn as aB,
|
|
2884
|
+
qo as aC,
|
|
2885
|
+
ci as aD,
|
|
2886
|
+
di as aE,
|
|
2887
|
+
$n as aF,
|
|
2888
|
+
xi as aG,
|
|
2889
|
+
hi as aH,
|
|
2890
|
+
ta as aI,
|
|
2891
|
+
aa as aJ,
|
|
2892
|
+
ra as aK,
|
|
2893
|
+
oa as aL,
|
|
2857
2894
|
xe as aM,
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2895
|
+
cr as aN,
|
|
2896
|
+
lr as aO,
|
|
2897
|
+
sr as aP,
|
|
2898
|
+
dr as aQ,
|
|
2899
|
+
zr as aR,
|
|
2900
|
+
Vr as aS,
|
|
2901
|
+
er as aT,
|
|
2902
|
+
ar as aU,
|
|
2903
|
+
si as aV,
|
|
2904
|
+
oi as aW,
|
|
2905
|
+
Bn as aX,
|
|
2869
2906
|
Ns as aY,
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2907
|
+
xa as aZ,
|
|
2908
|
+
ha as a_,
|
|
2909
|
+
sl as aa,
|
|
2910
|
+
ol as ab,
|
|
2911
|
+
La as ac,
|
|
2875
2912
|
cs as ad,
|
|
2876
2913
|
xt as ae,
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2914
|
+
mn as af,
|
|
2915
|
+
pn as ag,
|
|
2916
|
+
gn as ah,
|
|
2917
|
+
cn as ai,
|
|
2918
|
+
ui as aj,
|
|
2919
|
+
Fn as ak,
|
|
2920
|
+
fi as al,
|
|
2921
|
+
Un as am,
|
|
2922
|
+
Gn as an,
|
|
2923
|
+
un as ao,
|
|
2924
|
+
ei as ap,
|
|
2925
|
+
ti as aq,
|
|
2926
|
+
_n as ar,
|
|
2927
|
+
Jr as as,
|
|
2928
|
+
rr as at,
|
|
2929
|
+
Cn as au,
|
|
2893
2930
|
fs as av,
|
|
2894
2931
|
Xe as aw,
|
|
2895
2932
|
Ze as ax,
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2933
|
+
mi as ay,
|
|
2934
|
+
Wn as az,
|
|
2935
|
+
on as b,
|
|
2936
|
+
Jn as b$,
|
|
2937
|
+
ya as b0,
|
|
2938
|
+
Na as b1,
|
|
2939
|
+
fn as b2,
|
|
2903
2940
|
Bt as b3,
|
|
2904
2941
|
_t as b4,
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2942
|
+
Di as b5,
|
|
2943
|
+
Pi as b6,
|
|
2944
|
+
Mi as b7,
|
|
2945
|
+
Ei as b8,
|
|
2946
|
+
Kr as b9,
|
|
2947
|
+
Go as bA,
|
|
2911
2948
|
bt as bB,
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2949
|
+
tn as bC,
|
|
2950
|
+
sn as bD,
|
|
2951
|
+
hn as bE,
|
|
2915
2952
|
ms as bF,
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2953
|
+
Rn as bG,
|
|
2954
|
+
ni as bH,
|
|
2955
|
+
Tn as bI,
|
|
2956
|
+
Mn as bJ,
|
|
2957
|
+
Dn as bK,
|
|
2958
|
+
zn as bL,
|
|
2959
|
+
Ln as bM,
|
|
2960
|
+
En as bN,
|
|
2961
|
+
li as bO,
|
|
2962
|
+
On as bP,
|
|
2963
|
+
ri as bQ,
|
|
2964
|
+
In as bR,
|
|
2965
|
+
Pn as bS,
|
|
2966
|
+
ai as bT,
|
|
2967
|
+
ii as bU,
|
|
2968
|
+
Vn as bV,
|
|
2969
|
+
Hn as bW,
|
|
2970
|
+
pi as bX,
|
|
2971
|
+
gi as bY,
|
|
2972
|
+
bi as bZ,
|
|
2973
|
+
Kn as b_,
|
|
2974
|
+
Jo as ba,
|
|
2975
|
+
Yo as bb,
|
|
2976
|
+
Qo as bc,
|
|
2977
|
+
Nn as bd,
|
|
2978
|
+
Xr as be,
|
|
2979
|
+
An as bf,
|
|
2980
|
+
vi as bg,
|
|
2981
|
+
sa as bh,
|
|
2982
|
+
ia as bi,
|
|
2983
|
+
bn as bj,
|
|
2984
|
+
xn as bk,
|
|
2985
|
+
vn as bl,
|
|
2986
|
+
yn as bm,
|
|
2987
|
+
Sn as bn,
|
|
2988
|
+
wn as bo,
|
|
2989
|
+
Zo as bp,
|
|
2990
|
+
en as bq,
|
|
2991
|
+
ir as br,
|
|
2992
|
+
Ca as bs,
|
|
2993
|
+
Aa as bt,
|
|
2994
|
+
Ai as bu,
|
|
2995
|
+
Ci as bv,
|
|
2996
|
+
Gr as bw,
|
|
2997
|
+
$r as bx,
|
|
2961
2998
|
ko as by,
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2999
|
+
Ho as bz,
|
|
3000
|
+
nn as c,
|
|
3001
|
+
Yn as c0,
|
|
3002
|
+
Qn as c1,
|
|
3003
|
+
Xn as c2,
|
|
3004
|
+
na as c3,
|
|
3005
|
+
yi as c4,
|
|
3006
|
+
wi as c5,
|
|
3007
|
+
ea as c6,
|
|
3008
|
+
Zn as c7,
|
|
3009
|
+
Ni as c8,
|
|
3010
|
+
ma as c9,
|
|
2974
3011
|
bs as ca,
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3012
|
+
fa as cb,
|
|
3013
|
+
Si as cc,
|
|
3014
|
+
ka as cd,
|
|
3015
|
+
wa as ce,
|
|
3016
|
+
_a as cf,
|
|
3017
|
+
Ba as cg,
|
|
3018
|
+
Ra as ch,
|
|
3019
|
+
Ta as ci,
|
|
3020
|
+
Pa as cj,
|
|
3021
|
+
_i as ck,
|
|
3022
|
+
Bi as cl,
|
|
3023
|
+
Ri as cm,
|
|
3024
|
+
Sa as cn,
|
|
3025
|
+
ja as co,
|
|
3026
|
+
Ti as cp,
|
|
3027
|
+
Ii as cq,
|
|
3028
|
+
rn as d,
|
|
3029
|
+
ln as e,
|
|
3030
|
+
an as f,
|
|
3031
|
+
dn as g,
|
|
2995
3032
|
Ne as h,
|
|
2996
3033
|
Wt as i,
|
|
2997
|
-
|
|
3034
|
+
Er as j,
|
|
2998
3035
|
so as k,
|
|
2999
|
-
|
|
3036
|
+
ne as l,
|
|
3000
3037
|
co as m,
|
|
3001
3038
|
lo as n,
|
|
3002
3039
|
Be as o,
|
|
3003
|
-
|
|
3004
|
-
|
|
3040
|
+
Or as p,
|
|
3041
|
+
Gi as q,
|
|
3005
3042
|
Ve as r,
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3043
|
+
qr as s,
|
|
3044
|
+
Wa as t,
|
|
3045
|
+
nl as u,
|
|
3009
3046
|
rs as v,
|
|
3010
|
-
|
|
3047
|
+
re as w,
|
|
3011
3048
|
vo as x,
|
|
3012
3049
|
$o as y,
|
|
3013
|
-
|
|
3050
|
+
Hr as z
|
|
3014
3051
|
};
|