@chaibuilder/sdk 1.0.23 → 1.1.0
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-P3qHuE5J.cjs +1 -0
- package/dist/AddBlocks-imyQSCbI.js +230 -0
- package/dist/{BrandingOptions-Fyo8qs4o.cjs → BrandingOptions-_2XBEPab.cjs} +1 -1
- package/dist/{BrandingOptions-orZyDGiL.js → BrandingOptions-tSNtQ1Kv.js} +1 -1
- package/dist/CanvasArea-TzIgm_vh.cjs +58 -0
- package/dist/CanvasArea-dS2B20gv.js +1421 -0
- package/dist/{CurrentPage-lIithDJy.cjs → CurrentPage-_Em0U2gh.cjs} +1 -1
- package/dist/{CurrentPage-70sBzc2_.js → CurrentPage-pSsaLyEf.js} +2 -2
- package/dist/Layers-RyVRzaUa.cjs +1 -0
- package/dist/{Layers-W0N2zfnf.js → Layers-wp2Uc2Y5.js} +119 -137
- package/dist/{MarkAsGlobalBlock-FPCQmRIh.js → MarkAsGlobalBlock-aqik3ouc.js} +1 -1
- package/dist/{MarkAsGlobalBlock-EOsABFjY.cjs → MarkAsGlobalBlock-p_wvHkQZ.cjs} +1 -1
- package/dist/{PagesPanel-RbHN6lvQ.js → PagesPanel-L2VS8RyZ.js} +3 -3
- package/dist/{PagesPanel-i-MQEmm_.cjs → PagesPanel-ZuXc2610.cjs} +1 -1
- package/dist/{ProjectPanel-0BGx-hP-.cjs → ProjectPanel-SErKorHi.cjs} +1 -1
- package/dist/{ProjectPanel-CzwuyR0N.js → ProjectPanel-T3AXGe7O.js} +3 -3
- package/dist/Settings-GJHtwQaa.cjs +1 -0
- package/dist/{Settings-lxTrbI-C.js → Settings-xkL3U3Y-.js} +301 -308
- package/dist/{SidePanels-pUOJTYfr.cjs → SidePanels-5FNROZe7.cjs} +1 -1
- package/dist/{SidePanels-g4M6oTs-.js → SidePanels-pd7HYv8I.js} +33 -32
- package/dist/{Topbar-KqZt4TEY.js → Topbar-Jc74a6oE.js} +1 -1
- package/dist/{Topbar-kHffytzr.cjs → Topbar-ZjAs5fDc.cjs} +1 -1
- package/dist/{UnsplashImages-Ua7ksJ8c.js → UnsplashImages-_PxEYx5c.js} +1 -1
- package/dist/{UnsplashImages-y7I_7_W7.cjs → UnsplashImages-nXceZLmd.cjs} +1 -1
- package/dist/{UploadImages-RzEm0Stb.cjs → UploadImages-tcQb5NZu.cjs} +1 -1
- package/dist/{UploadImages-YP_J6erG.js → UploadImages-zzSgKmP9.js} +10 -10
- package/dist/{add-page-modal-btGWaXyq.js → add-page-modal-Njd5M7E2.js} +3 -3
- package/dist/{add-page-modal-ekFis5D8.cjs → add-page-modal-U8EH-GIa.cjs} +1 -1
- package/dist/{confirm-alert-Py2WqZhJ.js → confirm-alert-2JxcNf3T.js} +1 -1
- package/dist/{confirm-alert-mAhT8vln.cjs → confirm-alert-mzlwOW9w.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -3
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-QzleoJG2.cjs → delete-page-modal-0LQiM0fX.cjs} +1 -1
- package/dist/{delete-page-modal-Rq4ThQpu.js → delete-page-modal-NT7df4pk.js} +2 -2
- package/dist/{form-Lm3bupAq.js → form-TQ7vwDYO.js} +1 -1
- package/dist/{form-kAjrBaV-.cjs → form-bSW-Pkw9.cjs} +1 -1
- package/dist/{index-WPlT_Q87.js → index-N3mTbV2j.js} +6 -4
- package/dist/{index-Vx4ctSV6.js → index-ORFlyrBx.js} +569 -556
- package/dist/{index-fvoD_laH.cjs → index-pYZXf7hY.cjs} +2 -2
- package/dist/index-zkc4SQCu.cjs +1 -0
- package/dist/{page-viewer-AlOCzh1b.cjs → page-viewer-UxwOwHCO.cjs} +1 -1
- package/dist/{page-viewer-_wGsV2_o.js → page-viewer-e3lOBAH3.js} +3 -3
- package/dist/{project-general-setting-XnNyOpXO.cjs → project-general-setting-DrLwWE-6.cjs} +1 -1
- package/dist/{project-general-setting-B8uuHccU.js → project-general-setting-el86II8N.js} +3 -3
- package/dist/{project-seo-setting-QJBATF59.cjs → project-seo-setting-cERASO9j.cjs} +1 -1
- package/dist/{project-seo-setting-Zg2Z-Frr.js → project-seo-setting-k0HlefUD.js} +2 -2
- package/dist/{single-page-detail-HXpxgQnU.js → single-page-detail-UFEXRI81.js} +4 -4
- package/dist/{single-page-detail-MWh30E_-.cjs → single-page-detail-fUh22jZE.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +57 -57
- package/dist/useAddBlockByDrop-DPV32UHP.cjs +1 -0
- package/dist/useAddBlockByDrop-UA_Iw_4l.js +20 -0
- package/package.json +3 -3
- package/dist/AddBlocks-Izn_rxXD.js +0 -270
- package/dist/AddBlocks-RHuwwfe5.cjs +0 -3
- package/dist/CanvasArea-C30uJLef.js +0 -1298
- package/dist/CanvasArea-IM2K8bud.cjs +0 -46
- package/dist/Layers-YMtavzUG.cjs +0 -1
- package/dist/Settings-mTWkKG82.cjs +0 -1
- package/dist/index-W5drgyWI.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import et, { createContext as
|
|
3
|
+
import et, { createContext as Os, useContext as zs, useRef as Tr, createElement as Ir, useReducer as $s, useEffect as Ae, useDebugValue as Vs, useCallback as j, useMemo as Fs, useState as De, Suspense as vt } from "react";
|
|
4
4
|
import * as zt from "@radix-ui/react-toggle";
|
|
5
5
|
import { cva as be } from "class-variance-authority";
|
|
6
6
|
import { g as le, a as Pe, b as Gs, c } from "./utils-PPBbw5bk.js";
|
|
@@ -16,8 +16,8 @@ import * as xe from "@radix-ui/react-tabs";
|
|
|
16
16
|
import * as we from "@radix-ui/react-tooltip";
|
|
17
17
|
import * as Se from "@radix-ui/react-popover";
|
|
18
18
|
import * as _ from "@radix-ui/react-menubar";
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
19
|
+
import * as Le from "@radix-ui/react-hover-card";
|
|
20
|
+
import * as O from "@radix-ui/react-select";
|
|
21
21
|
import * as T from "@radix-ui/react-dropdown-menu";
|
|
22
22
|
import * as Vt from "@radix-ui/react-separator";
|
|
23
23
|
import * as H from "@radix-ui/react-toast";
|
|
@@ -25,9 +25,9 @@ import { Command as W } from "cmdk";
|
|
|
25
25
|
import * as I from "@radix-ui/react-context-menu";
|
|
26
26
|
import Ks, { IconPickerItem as Js } from "react-icons-picker";
|
|
27
27
|
import Ys from "react-dom";
|
|
28
|
-
import { flatten as Y, filter as M, omit as at, isEmpty as oe, isString as Qs, find as te, map as $, each as ce, get as P, set as fe, has as nt, includes as G, isUndefined as
|
|
28
|
+
import { flatten as Y, filter as M, omit as at, isEmpty as oe, isString as Qs, find as te, map as $, each as ce, get as P, set as fe, has as nt, includes as G, isUndefined as Fr, without as Ft, forIn as Gt, findIndex as Be, last as Xs, first as se, startsWith as Wt, isNull as qe, pick as wt, sortBy as Nt, isObject as Zs } from "lodash";
|
|
29
29
|
import eo from "react-quill";
|
|
30
|
-
import { atom as y, useAtom as C, useAtomValue as
|
|
30
|
+
import { atom as y, useAtom as C, useAtomValue as L, useSetAtom as de } from "jotai";
|
|
31
31
|
import Ut from "flat-to-nested";
|
|
32
32
|
import to, { excludeAction as so, ActionCreators as $e } from "redux-undo";
|
|
33
33
|
import { a as ge, I as Ht, S as Ke, B as Je } from "./MODIFIERS-MLfpKQY1.js";
|
|
@@ -53,9 +53,9 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
53
53
|
s && (Me.delete(e), s(t));
|
|
54
54
|
}, St = (e, t) => {
|
|
55
55
|
e.status = "fulfilled", e.value = t;
|
|
56
|
-
},
|
|
56
|
+
}, At = (e, t) => {
|
|
57
57
|
e.status = "rejected", e.reason = t;
|
|
58
|
-
}, io = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v),
|
|
58
|
+
}, io = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), jt = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), ye = (e) => "v" in e && e.v instanceof Promise, lo = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Re = (e) => {
|
|
59
59
|
if ("e" in e)
|
|
60
60
|
throw e.e;
|
|
61
61
|
return e.v;
|
|
@@ -98,29 +98,29 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
98
98
|
(B) => {
|
|
99
99
|
if (!S) {
|
|
100
100
|
S = !0;
|
|
101
|
-
const
|
|
101
|
+
const A = i(d), X = l(
|
|
102
102
|
d,
|
|
103
103
|
x,
|
|
104
104
|
h
|
|
105
105
|
);
|
|
106
|
-
St(x, B), N(B), (
|
|
106
|
+
St(x, B), N(B), (A == null ? void 0 : A.d) !== X.d && U(d, X, A == null ? void 0 : A.d);
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
(B) => {
|
|
110
110
|
if (!S) {
|
|
111
111
|
S = !0;
|
|
112
|
-
const
|
|
112
|
+
const A = i(d), X = l(
|
|
113
113
|
d,
|
|
114
114
|
x,
|
|
115
115
|
h
|
|
116
116
|
);
|
|
117
|
-
|
|
117
|
+
At(x, B), D(B), (A == null ? void 0 : A.d) !== X.d && U(d, X, A == null ? void 0 : A.d);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
), v = (B) => {
|
|
121
121
|
S || (S = !0, B.then(
|
|
122
|
-
(
|
|
123
|
-
(
|
|
122
|
+
(A) => St(x, A),
|
|
123
|
+
(A) => At(x, A)
|
|
124
124
|
), N(B));
|
|
125
125
|
};
|
|
126
126
|
});
|
|
@@ -134,24 +134,24 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
134
134
|
d: (b == null ? void 0 : b.d) || /* @__PURE__ */ new Map(),
|
|
135
135
|
e: g
|
|
136
136
|
};
|
|
137
|
-
return h && m(d, v, h), b &&
|
|
137
|
+
return h && m(d, v, h), b && jt(b, v) && b.d === v.d ? b : (u(d, v), v);
|
|
138
138
|
}, k = (d) => {
|
|
139
139
|
const g = i(d);
|
|
140
140
|
if (g && (g.d.forEach((S, B) => {
|
|
141
141
|
B !== d && !t.has(B) && k(B);
|
|
142
142
|
}), Array.from(g.d).every(([S, B]) => {
|
|
143
|
-
const
|
|
144
|
-
return S === d ||
|
|
145
|
-
|
|
143
|
+
const A = i(S);
|
|
144
|
+
return S === d || A === B || // TODO This is a hack, we should find a better solution.
|
|
145
|
+
A && !ye(A) && Ne(A, B);
|
|
146
146
|
})))
|
|
147
147
|
return g;
|
|
148
148
|
const h = /* @__PURE__ */ new Map();
|
|
149
149
|
let b = !0;
|
|
150
150
|
const v = (S) => {
|
|
151
151
|
if (S === d) {
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
154
|
-
return h.set(S,
|
|
152
|
+
const A = i(S);
|
|
153
|
+
if (A)
|
|
154
|
+
return h.set(S, A), Re(A);
|
|
155
155
|
if (Ve(S))
|
|
156
156
|
return h.set(S, void 0), S.init;
|
|
157
157
|
throw new Error("no atom init");
|
|
@@ -208,12 +208,12 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
208
208
|
if (D !== x) {
|
|
209
209
|
let B = h.get(D);
|
|
210
210
|
if (B && h.set(D, --B), !B) {
|
|
211
|
-
let
|
|
212
|
-
if (
|
|
213
|
-
const X = i(D),
|
|
214
|
-
|
|
211
|
+
let A = !!((S = g.get(D)) != null && S.size);
|
|
212
|
+
if (A) {
|
|
213
|
+
const X = i(D), Ls = k(D);
|
|
214
|
+
A = !X || !Ne(X, Ls);
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
A || g.forEach((X) => X.delete(D));
|
|
217
217
|
}
|
|
218
218
|
v(D);
|
|
219
219
|
}
|
|
@@ -227,14 +227,14 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
227
227
|
if (N === d) {
|
|
228
228
|
if (!Ve(N))
|
|
229
229
|
throw new Error("atom not writable");
|
|
230
|
-
const B = i(N),
|
|
231
|
-
(!B || !Ne(B,
|
|
230
|
+
const B = i(N), A = f(N, D[0]);
|
|
231
|
+
(!B || !Ne(B, A)) && he(N);
|
|
232
232
|
} else
|
|
233
233
|
S = ne(N, ...D);
|
|
234
234
|
if (!h) {
|
|
235
235
|
const B = re();
|
|
236
236
|
(z ? "production" : void 0) !== "production" && n.forEach(
|
|
237
|
-
(
|
|
237
|
+
(A) => A({ type: "async-write", flushed: B })
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
return S;
|
|
@@ -293,7 +293,7 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
293
293
|
const x = t.get(h);
|
|
294
294
|
x && !// TODO This seems pretty hacky. Hope to fix it.
|
|
295
295
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
296
|
-
(b && !ye(b) && (Ne(b, v) ||
|
|
296
|
+
(b && !ye(b) && (Ne(b, v) || jt(b, v))) && (x.l.forEach((N) => N()), (z ? "production" : void 0) !== "production" && d.add(h));
|
|
297
297
|
} else
|
|
298
298
|
(z ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
299
299
|
});
|
|
@@ -340,7 +340,7 @@ const Ve = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
340
340
|
let Ge;
|
|
341
341
|
const uo = () => (Ge || (Ge = co()), Ge);
|
|
342
342
|
var mo = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
343
|
-
const po =
|
|
343
|
+
const po = Os(void 0), qt = (e) => {
|
|
344
344
|
const t = zs(po);
|
|
345
345
|
return (e == null ? void 0 : e.store) || t || uo();
|
|
346
346
|
};
|
|
@@ -370,7 +370,7 @@ function bo(e, t) {
|
|
|
370
370
|
let u = o;
|
|
371
371
|
(n !== s || r !== e) && (i(), u = s.get(e));
|
|
372
372
|
const m = t == null ? void 0 : t.delay;
|
|
373
|
-
return
|
|
373
|
+
return Ae(() => {
|
|
374
374
|
const l = s.sub(e, () => {
|
|
375
375
|
if (typeof m == "number") {
|
|
376
376
|
setTimeout(i, m);
|
|
@@ -383,7 +383,7 @@ function bo(e, t) {
|
|
|
383
383
|
}
|
|
384
384
|
function xo(e, t) {
|
|
385
385
|
const s = qt(t);
|
|
386
|
-
return
|
|
386
|
+
return j(
|
|
387
387
|
(...n) => {
|
|
388
388
|
if ((mo ? "production" : void 0) !== "production" && !("write" in e))
|
|
389
389
|
throw new Error("not writable atom");
|
|
@@ -392,7 +392,7 @@ function xo(e, t) {
|
|
|
392
392
|
[s, e]
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Qr(e, t) {
|
|
396
396
|
return [
|
|
397
397
|
bo(e, t),
|
|
398
398
|
// We do wrong type assertion here, which results in throwing an error.
|
|
@@ -509,7 +509,7 @@ function ko(e, t) {
|
|
|
509
509
|
t || wo
|
|
510
510
|
);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Xr(e) {
|
|
513
513
|
const t = Symbol(), s = Z(t);
|
|
514
514
|
(rt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
|
|
515
515
|
const o = Z(
|
|
@@ -530,7 +530,7 @@ function Qr(e) {
|
|
|
530
530
|
return o;
|
|
531
531
|
}
|
|
532
532
|
const So = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
533
|
-
function
|
|
533
|
+
function Ao(e) {
|
|
534
534
|
let t, s;
|
|
535
535
|
const o = {
|
|
536
536
|
getItem: (n, r) => {
|
|
@@ -577,10 +577,10 @@ function jo(e) {
|
|
|
577
577
|
};
|
|
578
578
|
}), o;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const jo = Ao(
|
|
581
581
|
() => typeof window < "u" ? window.localStorage : void 0
|
|
582
582
|
);
|
|
583
|
-
function
|
|
583
|
+
function je(e, t, s = jo, o) {
|
|
584
584
|
const n = o == null ? void 0 : o.unstable_getOnInit, r = Z(
|
|
585
585
|
n ? s.getItem(e, t) : t
|
|
586
586
|
);
|
|
@@ -600,7 +600,7 @@ const it = y(null);
|
|
|
600
600
|
it.debugLabel = "chaiBuilderPropsAtom";
|
|
601
601
|
const Co = y({});
|
|
602
602
|
Co.debugLabel = "chaiExternalDataAtom";
|
|
603
|
-
const
|
|
603
|
+
const Zr = () => !1, _o = (e) => {
|
|
604
604
|
const t = e.replace(ge, "").split(",");
|
|
605
605
|
return { baseClasses: t[0], classes: t[1] };
|
|
606
606
|
};
|
|
@@ -683,7 +683,7 @@ const To = to(
|
|
|
683
683
|
limit: 30,
|
|
684
684
|
filter: so(["update_props_realtime", "add_duplicate_blocks", "set_page_blocks"])
|
|
685
685
|
}
|
|
686
|
-
),
|
|
686
|
+
), Oe = ho(
|
|
687
687
|
{
|
|
688
688
|
past: [],
|
|
689
689
|
present: [],
|
|
@@ -691,10 +691,10 @@ const To = to(
|
|
|
691
691
|
},
|
|
692
692
|
To
|
|
693
693
|
);
|
|
694
|
-
|
|
694
|
+
Oe.debugLabel = "pageBlocksAtom";
|
|
695
695
|
const Q = y((e) => {
|
|
696
696
|
var t;
|
|
697
|
-
return (t = e(
|
|
697
|
+
return (t = e(Oe)) == null ? void 0 : t.present;
|
|
698
698
|
});
|
|
699
699
|
Q.debugLabel = "presentBlocksAtom";
|
|
700
700
|
const lt = ko(Q);
|
|
@@ -715,10 +715,10 @@ const es = y((e) => {
|
|
|
715
715
|
});
|
|
716
716
|
es.debugLabel = "globalBlocksAtom";
|
|
717
717
|
const q = () => {
|
|
718
|
-
const [, e] = C(
|
|
718
|
+
const [, e] = C(Oe);
|
|
719
719
|
return e;
|
|
720
|
-
},
|
|
721
|
-
const e = q(), t =
|
|
720
|
+
}, ei = () => {
|
|
721
|
+
const e = q(), t = L(Xt), s = j(
|
|
722
722
|
(o) => {
|
|
723
723
|
const n = Jt(o);
|
|
724
724
|
e({ type: "set_page_blocks", payload: n });
|
|
@@ -726,21 +726,32 @@ const q = () => {
|
|
|
726
726
|
[e]
|
|
727
727
|
);
|
|
728
728
|
return [t, s];
|
|
729
|
-
},
|
|
729
|
+
}, ti = () => {
|
|
730
730
|
const e = q();
|
|
731
|
-
return [
|
|
731
|
+
return [j(
|
|
732
732
|
(s) => {
|
|
733
733
|
e({ type: "set_page_blocks", payload: s });
|
|
734
734
|
},
|
|
735
735
|
[e]
|
|
736
736
|
)];
|
|
737
|
-
}, Ye = (e) => [
|
|
738
|
-
|
|
739
|
-
|
|
737
|
+
}, Ye = (e) => [
|
|
738
|
+
"Box",
|
|
739
|
+
"Slot",
|
|
740
|
+
"Form",
|
|
741
|
+
"DataProvider",
|
|
742
|
+
"Link",
|
|
743
|
+
"List",
|
|
744
|
+
"ListItem",
|
|
745
|
+
"Row",
|
|
746
|
+
"Column",
|
|
747
|
+
"Table",
|
|
748
|
+
"Row",
|
|
749
|
+
"TableCell"
|
|
750
|
+
].includes(e), si = (e) => !["Slot"].includes(e), oi = (e) => !["Slot"].includes(e);
|
|
740
751
|
function Eo(e, t) {
|
|
741
752
|
return e === "Slot" || t === "List" && e !== "ListItem" || t === "Row" && e !== "Column" ? !1 : Ye(t);
|
|
742
753
|
}
|
|
743
|
-
const
|
|
754
|
+
const ai = (e, { dragSource: t, dropTarget: s }) => {
|
|
744
755
|
const o = P(t, "data._type", ""), n = P(s, "data._type", "");
|
|
745
756
|
return o === "Slot" || P(t, "id") && P(t, "id") === P(s, "id") ? !1 : oe(n) ? !0 : Eo(o, n);
|
|
746
757
|
}, ct = y([]);
|
|
@@ -761,25 +772,25 @@ const ut = y((e) => {
|
|
|
761
772
|
};
|
|
762
773
|
});
|
|
763
774
|
ut.debugLabel = "selectedBlockAtom";
|
|
764
|
-
const
|
|
765
|
-
const t = e(dt), s = $(t,
|
|
775
|
+
const Lo = (e) => P(e, "parent", null), Oo = y((e) => {
|
|
776
|
+
const t = e(dt), s = $(t, Lo);
|
|
766
777
|
return M(e(Q), (o) => G(s, o._id));
|
|
767
778
|
});
|
|
768
|
-
|
|
779
|
+
Oo.debugLabel = "selectedBlocksParentsAtom";
|
|
769
780
|
const ts = y(() => !1);
|
|
770
781
|
ts.debugLabel = "selectedBlockFlexChildAtom";
|
|
771
782
|
const ss = y(() => !1);
|
|
772
783
|
ss.debugLabel = "selectedBlockGridChildAtom";
|
|
773
784
|
const mt = y("");
|
|
774
785
|
mt.debugLabel = "styleStateAtom";
|
|
775
|
-
const os =
|
|
786
|
+
const os = je("styleBreakpoint", "xs");
|
|
776
787
|
os.debugLabel = "styleBreakpointAtom";
|
|
777
|
-
const
|
|
778
|
-
flexChild:
|
|
779
|
-
gridChild:
|
|
780
|
-
}),
|
|
788
|
+
const ni = () => ({
|
|
789
|
+
flexChild: L(ts),
|
|
790
|
+
gridChild: L(ss)
|
|
791
|
+
}), ri = () => L(ut);
|
|
781
792
|
const Ce = () => {
|
|
782
|
-
const [e, t] = C(ct), s =
|
|
793
|
+
const [e, t] = C(ct), s = j(
|
|
783
794
|
(o) => {
|
|
784
795
|
t((n) => G(n, o) ? Ft(n, o) : [...n, o]);
|
|
785
796
|
},
|
|
@@ -881,10 +892,8 @@ const Ce = () => {
|
|
|
881
892
|
return "";
|
|
882
893
|
}
|
|
883
894
|
};
|
|
884
|
-
const Vo = () =>
|
|
895
|
+
const Vo = () => L(Q);
|
|
885
896
|
function Pt(e, t, s, o, n) {
|
|
886
|
-
if (t === null)
|
|
887
|
-
return [...e, ...o];
|
|
888
897
|
if (s !== null) {
|
|
889
898
|
const m = Be(e, { _parent: t }), l = (m === -1 ? 0 : m) + s;
|
|
890
899
|
return e.splice(l, 0, ...o), e;
|
|
@@ -899,8 +908,8 @@ function Pt(e, t, s, o, n) {
|
|
|
899
908
|
const u = r + 1;
|
|
900
909
|
return e.splice(u, 0, ...o), e;
|
|
901
910
|
}
|
|
902
|
-
const
|
|
903
|
-
const e = q(), t = Vo(), [, s] = Ce(), o =
|
|
911
|
+
const ii = () => {
|
|
912
|
+
const e = q(), t = Vo(), [, s] = Ce(), o = j(
|
|
904
913
|
(r, i, u) => {
|
|
905
914
|
var f;
|
|
906
915
|
for (let w = 0; w < r.length; w++) {
|
|
@@ -920,7 +929,7 @@ const ri = () => {
|
|
|
920
929
|
},
|
|
921
930
|
[t, e, s]
|
|
922
931
|
);
|
|
923
|
-
return { addCoreBlock:
|
|
932
|
+
return { addCoreBlock: j(
|
|
924
933
|
(r, i, u) => {
|
|
925
934
|
if (nt(r, "blocks")) {
|
|
926
935
|
const K = r.blocks;
|
|
@@ -1046,9 +1055,9 @@ const ns = () => C(_e), Wo = (e) => {
|
|
|
1046
1055
|
}
|
|
1047
1056
|
});
|
|
1048
1057
|
});
|
|
1049
|
-
}),
|
|
1058
|
+
}), li = () => {
|
|
1050
1059
|
const e = q(), t = de(Uo);
|
|
1051
|
-
return
|
|
1060
|
+
return j(
|
|
1052
1061
|
(s, o, n) => {
|
|
1053
1062
|
t({ blockIds: s, newClasses: o, dispatch: e }), n && setTimeout(() => e({ type: "create_snapshot" }), 500);
|
|
1054
1063
|
},
|
|
@@ -1056,9 +1065,9 @@ const ns = () => C(_e), Wo = (e) => {
|
|
|
1056
1065
|
);
|
|
1057
1066
|
}, Dt = () => {
|
|
1058
1067
|
}, Ho = () => {
|
|
1059
|
-
const e = oo(), t =
|
|
1068
|
+
const e = oo(), t = L(es), s = () => {
|
|
1060
1069
|
Dt();
|
|
1061
|
-
}, o =
|
|
1070
|
+
}, o = j(() => Dt(), []);
|
|
1062
1071
|
return [e, t, s, o];
|
|
1063
1072
|
}, qo = y(!1), Ko = () => {
|
|
1064
1073
|
const [e, t] = C(qo);
|
|
@@ -1069,7 +1078,7 @@ const ns = () => C(_e), Wo = (e) => {
|
|
|
1069
1078
|
Zs(e) ? { ...Je, ...e } : Je,
|
|
1070
1079
|
t
|
|
1071
1080
|
];
|
|
1072
|
-
}, Qo = y(null), Xo = () => ({ currentPage:
|
|
1081
|
+
}, Qo = y(null), Xo = () => ({ currentPage: L(Qo) }), rs = new Ut({});
|
|
1073
1082
|
function Zo(e) {
|
|
1074
1083
|
let t = rs.convert(e);
|
|
1075
1084
|
return t = !t.type && t.children && t.children.length ? t.children : oe(t) ? [] : [t], t;
|
|
@@ -1126,8 +1135,8 @@ function ta(e) {
|
|
|
1126
1135
|
return ce(o, (r) => fe(n, se(r).blockId, r)), [s, n];
|
|
1127
1136
|
}
|
|
1128
1137
|
const ds = () => {
|
|
1129
|
-
const [e] = Yo(), { currentPage: t } = Xo(), s =
|
|
1130
|
-
return
|
|
1138
|
+
const [e] = Yo(), { currentPage: t } = Xo(), s = L(Q);
|
|
1139
|
+
return j(() => {
|
|
1131
1140
|
const o = $(
|
|
1132
1141
|
s,
|
|
1133
1142
|
(i) => at(i, ["expanded", "order", "title", "siblings", "tempClasses"])
|
|
@@ -1139,43 +1148,45 @@ const ds = () => {
|
|
|
1139
1148
|
};
|
|
1140
1149
|
}, [e, t, s]);
|
|
1141
1150
|
}, ve = (e, t = void 0) => {
|
|
1142
|
-
const s =
|
|
1151
|
+
const s = L(it);
|
|
1143
1152
|
return P(s, e, t);
|
|
1144
1153
|
}, us = y(!1);
|
|
1145
1154
|
us.debugLabel = "readOnlyModeAtom";
|
|
1146
1155
|
const sa = y(!1);
|
|
1147
|
-
sa.debugLabel = "
|
|
1148
|
-
const oa = y(
|
|
1149
|
-
oa.debugLabel = "
|
|
1150
|
-
const aa = y(
|
|
1151
|
-
aa.debugLabel = "
|
|
1156
|
+
sa.debugLabel = "advanceStylingOpenAtom";
|
|
1157
|
+
const oa = y("online");
|
|
1158
|
+
oa.debugLabel = "networkModeAtom";
|
|
1159
|
+
const aa = y(!1);
|
|
1160
|
+
aa.debugLabel = "codeEditorOpenAtom";
|
|
1152
1161
|
const na = y(!1);
|
|
1153
|
-
na.debugLabel = "
|
|
1154
|
-
const ra = y(
|
|
1155
|
-
ra.debugLabel = "
|
|
1162
|
+
na.debugLabel = "editLayerNameAtom";
|
|
1163
|
+
const ra = y("");
|
|
1164
|
+
ra.debugLabel = "activeLanguageAtom";
|
|
1156
1165
|
const ia = y("");
|
|
1157
|
-
ia.debugLabel = "
|
|
1158
|
-
const la = y(
|
|
1159
|
-
la.debugLabel = "
|
|
1160
|
-
const ca = y(
|
|
1161
|
-
ca.debugLabel = "
|
|
1162
|
-
const da = y(
|
|
1163
|
-
da.debugLabel = "
|
|
1164
|
-
const ua = y(
|
|
1165
|
-
ua.debugLabel = "
|
|
1166
|
-
const ma = y("");
|
|
1167
|
-
ma.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
1166
|
+
ia.debugLabel = "primaryLanguageAtom";
|
|
1167
|
+
const la = y(null);
|
|
1168
|
+
la.debugLabel = "canvasIframeAtom";
|
|
1169
|
+
const ca = y("layers");
|
|
1170
|
+
ca.debugLabel = "activePanelAtom";
|
|
1171
|
+
const da = y(!1);
|
|
1172
|
+
da.debugLabel = "addBlockOffCanvasAtom";
|
|
1173
|
+
const ua = y("");
|
|
1174
|
+
ua.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
1168
1175
|
const ze = y({ undoCount: 0, redoCount: 0 });
|
|
1169
1176
|
ze.debugLabel = "historyStatesAtom";
|
|
1177
|
+
const ma = y("");
|
|
1178
|
+
ma.debugLabel = "inlineEditingActiveAtom";
|
|
1179
|
+
const pa = y(!1);
|
|
1180
|
+
pa.debugLabel = "isDraggingAtom";
|
|
1170
1181
|
const ms = y([]);
|
|
1171
1182
|
ms.debugLabel = "dataProvidersAtom";
|
|
1172
|
-
const
|
|
1183
|
+
const fa = () => C(ms), gt = y("SAVED");
|
|
1173
1184
|
gt.debugLabel = "pageSyncStateAtom";
|
|
1174
|
-
const
|
|
1185
|
+
const ci = () => {
|
|
1175
1186
|
const [e, t] = C(gt), s = ve("onSaveBlocks", async () => {
|
|
1176
1187
|
}), o = ve("onSavePage", async () => {
|
|
1177
1188
|
}), n = ve("onSyncStatusChange", () => {
|
|
1178
|
-
}), r = ds(), i = de(ze), { undoCount: u, redoCount: m } = bt(), [l] =
|
|
1189
|
+
}), r = ds(), i = de(ze), { undoCount: u, redoCount: m } = bt(), [l] = fa();
|
|
1179
1190
|
return { savePage: ao(
|
|
1180
1191
|
async () => {
|
|
1181
1192
|
t("SAVING"), n("SAVING");
|
|
@@ -1189,21 +1200,21 @@ const li = () => {
|
|
|
1189
1200
|
// save only every 5 seconds
|
|
1190
1201
|
), syncState: e, setSyncState: t };
|
|
1191
1202
|
}, bt = () => {
|
|
1192
|
-
const e =
|
|
1193
|
-
}), f =
|
|
1203
|
+
const e = L(Oe), [{ undoCount: t, redoCount: s }] = C(ze), o = q(), [n] = Ko(), [, r] = Ce(), [, i] = ns(), [u, m] = C(gt), l = ve("onSyncStatusChange", () => {
|
|
1204
|
+
}), f = j(() => {
|
|
1194
1205
|
o({ type: "create_snapshot" });
|
|
1195
1206
|
}, [o]);
|
|
1196
|
-
return
|
|
1207
|
+
return Ae(() => {
|
|
1197
1208
|
(u === "SAVED" && t !== (e == null ? void 0 : e.past.length) || s !== (e == null ? void 0 : e.future.length)) && (m("UNSAVED"), l("UNSAVED"));
|
|
1198
1209
|
}, [e == null ? void 0 : e.past.length, e == null ? void 0 : e.future.length, t, s, l, m, u]), {
|
|
1199
1210
|
undoCount: e == null ? void 0 : e.past.length,
|
|
1200
1211
|
redoCount: e == null ? void 0 : e.future.length,
|
|
1201
|
-
undo:
|
|
1212
|
+
undo: j(() => {
|
|
1202
1213
|
n || (o($e.undo()), setTimeout(() => {
|
|
1203
1214
|
i([]), r([]);
|
|
1204
1215
|
}, 200));
|
|
1205
1216
|
}, [o, n, r, i]),
|
|
1206
|
-
redo:
|
|
1217
|
+
redo: j(() => {
|
|
1207
1218
|
n || (o($e.redo()), setTimeout(() => {
|
|
1208
1219
|
i([]), r([]);
|
|
1209
1220
|
}, 200));
|
|
@@ -1213,39 +1224,39 @@ const li = () => {
|
|
|
1213
1224
|
},
|
|
1214
1225
|
createSnapshot: f
|
|
1215
1226
|
};
|
|
1216
|
-
},
|
|
1227
|
+
}, ga = () => C(os), ps = je("canvasWidth", 800), fs = y((e) => {
|
|
1217
1228
|
const t = e(ps);
|
|
1218
1229
|
return Gs(t).toLowerCase();
|
|
1219
|
-
}),
|
|
1220
|
-
const [e, t] = C(ps), s =
|
|
1221
|
-
return
|
|
1230
|
+
}), di = () => {
|
|
1231
|
+
const [e, t] = C(ps), s = L(fs), [o, n] = ga();
|
|
1232
|
+
return Ae(() => {
|
|
1222
1233
|
o !== "xs" && n(s);
|
|
1223
1234
|
}, [s, o, n]), [e, s, t];
|
|
1224
|
-
},
|
|
1225
|
-
const [e, t] = C(gs), s = de(xt), o =
|
|
1235
|
+
}, ba = je("canvasZoom", 100), ui = () => C(ba), gs = y([]), xa = () => {
|
|
1236
|
+
const [e, t] = C(gs), s = de(xt), o = j(
|
|
1226
1237
|
(n) => {
|
|
1227
1238
|
t(n), s([]);
|
|
1228
1239
|
},
|
|
1229
1240
|
[t, s]
|
|
1230
1241
|
);
|
|
1231
1242
|
return [e, o];
|
|
1232
|
-
}, xt = y([]),
|
|
1233
|
-
const [e, t] = C(xt), s = de(gs), o =
|
|
1243
|
+
}, xt = y([]), mi = () => {
|
|
1244
|
+
const [e, t] = C(xt), s = de(gs), o = j(
|
|
1234
1245
|
(n) => {
|
|
1235
1246
|
t(n), s([]);
|
|
1236
1247
|
},
|
|
1237
1248
|
[t, s]
|
|
1238
1249
|
);
|
|
1239
1250
|
return [e, o];
|
|
1240
|
-
}, bs =
|
|
1251
|
+
}, bs = je("darkMode", !1), pi = () => {
|
|
1241
1252
|
const [e, t] = C(bs);
|
|
1242
1253
|
return [e, t];
|
|
1243
|
-
},
|
|
1244
|
-
const [e, t] = C(
|
|
1254
|
+
}, ha = y(!1), fi = () => {
|
|
1255
|
+
const [e, t] = C(ha);
|
|
1245
1256
|
return [e, t];
|
|
1246
|
-
},
|
|
1247
|
-
const e = q(), t =
|
|
1248
|
-
return
|
|
1257
|
+
}, ya = () => {
|
|
1258
|
+
const e = q(), t = L(Q), [, s] = Ce();
|
|
1259
|
+
return j(
|
|
1249
1260
|
(o, n = null) => {
|
|
1250
1261
|
const r = [];
|
|
1251
1262
|
ce(o, (i) => {
|
|
@@ -1255,58 +1266,58 @@ const li = () => {
|
|
|
1255
1266
|
},
|
|
1256
1267
|
[t, s, e]
|
|
1257
1268
|
);
|
|
1258
|
-
},
|
|
1259
|
-
const [e, t] = C(
|
|
1269
|
+
}, va = y([]), gi = () => {
|
|
1270
|
+
const [e, t] = C(va), s = j(
|
|
1260
1271
|
(o) => {
|
|
1261
1272
|
t((n) => G(n, o) ? Ft(n, o) : [...n, o]);
|
|
1262
1273
|
},
|
|
1263
1274
|
[t]
|
|
1264
1275
|
);
|
|
1265
1276
|
return [e, t, s];
|
|
1266
|
-
},
|
|
1267
|
-
const e =
|
|
1268
|
-
return
|
|
1277
|
+
}, wa = y(""), Na = () => C(wa), bi = () => {
|
|
1278
|
+
const e = L(Q), t = q(), s = ds(), [, , o] = Ho();
|
|
1279
|
+
return j(
|
|
1269
1280
|
async (n, r) => {
|
|
1270
1281
|
const i = le(16), u = $(e, (m) => (m._id === n && (m._globalBlockId = i, m._name = r), m));
|
|
1271
1282
|
t({ type: "set_page_blocks", payload: u }), o();
|
|
1272
1283
|
},
|
|
1273
1284
|
[e, t, s, o]
|
|
1274
1285
|
);
|
|
1275
|
-
},
|
|
1276
|
-
const e =
|
|
1277
|
-
return
|
|
1286
|
+
}, xi = () => ({}), ka = () => {
|
|
1287
|
+
const e = L(Q), t = q();
|
|
1288
|
+
return j(
|
|
1278
1289
|
(s, o) => {
|
|
1279
1290
|
const n = $(e, (r) => (G(s, P(r, "_id")) && fe(r, "_parent", o), r));
|
|
1280
1291
|
t({ type: "set_blocks", payload: n });
|
|
1281
1292
|
},
|
|
1282
1293
|
[e, t]
|
|
1283
1294
|
);
|
|
1284
|
-
},
|
|
1285
|
-
const e =
|
|
1295
|
+
}, hi = () => {
|
|
1296
|
+
const e = L(xt), [t, s] = xa(), o = ya(), n = ka();
|
|
1286
1297
|
return {
|
|
1287
1298
|
canPaste: Fs(
|
|
1288
1299
|
() => t.length > 0 || e.length > 0,
|
|
1289
1300
|
[e, t]
|
|
1290
1301
|
),
|
|
1291
|
-
pasteBlocks:
|
|
1302
|
+
pasteBlocks: j(
|
|
1292
1303
|
(i) => {
|
|
1293
1304
|
oe(e) ? n(t, i) : o(e, i), s(() => []);
|
|
1294
1305
|
},
|
|
1295
1306
|
[t, e, o, n, s]
|
|
1296
1307
|
)
|
|
1297
1308
|
};
|
|
1298
|
-
},
|
|
1299
|
-
const e =
|
|
1300
|
-
}, []), s =
|
|
1301
|
-
}, []), o =
|
|
1309
|
+
}, Sa = y(""), yi = () => {
|
|
1310
|
+
const e = L(Sa), t = j(() => {
|
|
1311
|
+
}, []), s = j(() => {
|
|
1312
|
+
}, []), o = j(() => {
|
|
1302
1313
|
}, []);
|
|
1303
1314
|
return { currentProject: e, createProject: o, deleteProject: t, updateProject: s };
|
|
1304
1315
|
}, xs = (e, t) => {
|
|
1305
1316
|
const s = [], o = M(e, (n) => G(t, n._id) || G(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1306
1317
|
return oe(s) ? o : xs(o, s);
|
|
1307
|
-
},
|
|
1308
|
-
const e = q(), t =
|
|
1309
|
-
return
|
|
1318
|
+
}, vi = () => {
|
|
1319
|
+
const e = q(), t = L(Q), [s, o] = Ce();
|
|
1320
|
+
return j(
|
|
1310
1321
|
(n) => {
|
|
1311
1322
|
var u;
|
|
1312
1323
|
const r = ((u = te(t, { _id: n[0] })) == null ? void 0 : u._parent) || null, i = xs(t, n);
|
|
@@ -1314,7 +1325,7 @@ const li = () => {
|
|
|
1314
1325
|
},
|
|
1315
1326
|
[t, o, e, s]
|
|
1316
1327
|
);
|
|
1317
|
-
},
|
|
1328
|
+
}, Aa = y(null, (e, t, { blockIds: s, fullClasses: o, dispatch: n }) => {
|
|
1318
1329
|
const r = se(e(_e)), i = M(
|
|
1319
1330
|
e(lt),
|
|
1320
1331
|
(u) => (
|
|
@@ -1343,9 +1354,9 @@ const li = () => {
|
|
|
1343
1354
|
}
|
|
1344
1355
|
});
|
|
1345
1356
|
});
|
|
1346
|
-
}),
|
|
1347
|
-
const e = q(), t = de(
|
|
1348
|
-
return
|
|
1357
|
+
}), wi = () => {
|
|
1358
|
+
const e = q(), t = de(Aa);
|
|
1359
|
+
return j(
|
|
1349
1360
|
(s, o) => {
|
|
1350
1361
|
t({ blockIds: s, fullClasses: o, dispatch: e }), setTimeout(() => e({ type: "create_snapshot" }));
|
|
1351
1362
|
},
|
|
@@ -1357,11 +1368,11 @@ const li = () => {
|
|
|
1357
1368
|
return [];
|
|
1358
1369
|
const n = P(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
|
|
1359
1370
|
return M($(n.trim().split(" "), Pe), (r) => !qe(r));
|
|
1360
|
-
}),
|
|
1361
|
-
const t = e(fs), s = e(mt), o = e(bs), n =
|
|
1371
|
+
}), Ni = () => L(hs), Et = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, ja = y((e) => {
|
|
1372
|
+
const t = e(fs), s = e(mt), o = e(bs), n = Ca(t);
|
|
1362
1373
|
let r = M(e(hs), { mod: s });
|
|
1363
1374
|
return Wt(s, "_") || (r = M(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Et[i.mq] - Et[u.mq]), o || (r = M(r, { dark: !1 })), r;
|
|
1364
|
-
}),
|
|
1375
|
+
}), Ca = (e) => {
|
|
1365
1376
|
let t = [];
|
|
1366
1377
|
switch (e) {
|
|
1367
1378
|
case "xs":
|
|
@@ -1387,14 +1398,14 @@ const li = () => {
|
|
|
1387
1398
|
break;
|
|
1388
1399
|
}
|
|
1389
1400
|
return t;
|
|
1390
|
-
},
|
|
1401
|
+
}, ki = () => L(ja), Si = () => C(mt), ys = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
|
|
1391
1402
|
n({
|
|
1392
1403
|
type: "update_props_realtime",
|
|
1393
1404
|
payload: { ids: s, props: o }
|
|
1394
1405
|
});
|
|
1395
|
-
}),
|
|
1406
|
+
}), Ai = () => {
|
|
1396
1407
|
const { createSnapshot: e } = bt(), t = q(), s = de(ys);
|
|
1397
|
-
return
|
|
1408
|
+
return j(
|
|
1398
1409
|
(o, n) => {
|
|
1399
1410
|
s({ blockIds: o, props: n, dispatch: t }), e();
|
|
1400
1411
|
},
|
|
@@ -1402,7 +1413,7 @@ const li = () => {
|
|
|
1402
1413
|
);
|
|
1403
1414
|
}, ji = () => {
|
|
1404
1415
|
const e = q(), t = de(ys);
|
|
1405
|
-
return
|
|
1416
|
+
return j(
|
|
1406
1417
|
(s, o) => {
|
|
1407
1418
|
t({ blockIds: s, props: o, dispatch: e });
|
|
1408
1419
|
},
|
|
@@ -1413,13 +1424,13 @@ const li = () => {
|
|
|
1413
1424
|
props: {},
|
|
1414
1425
|
modalProps: {},
|
|
1415
1426
|
backdropClose: !0
|
|
1416
|
-
},
|
|
1417
|
-
const [e, t] = C(
|
|
1427
|
+
}, _a = y(vs), Ci = () => {
|
|
1428
|
+
const [e, t] = C(_a), s = j(
|
|
1418
1429
|
(n, r = {}, i = {}) => {
|
|
1419
1430
|
t({ name: n, props: r, modalProps: i });
|
|
1420
1431
|
},
|
|
1421
1432
|
[t]
|
|
1422
|
-
), o =
|
|
1433
|
+
), o = j(
|
|
1423
1434
|
(...n) => {
|
|
1424
1435
|
P(e, "props.onClose", () => {
|
|
1425
1436
|
})(...n), t(vs);
|
|
@@ -1431,32 +1442,32 @@ const li = () => {
|
|
|
1431
1442
|
openModal: s,
|
|
1432
1443
|
closeModal: o
|
|
1433
1444
|
};
|
|
1434
|
-
},
|
|
1435
|
-
const [e, t] = C(
|
|
1445
|
+
}, _i = () => L(us), Ba = y(""), Ra = y(null), Bi = () => C(Ba), Ri = () => C(Ra), Pa = je("selectedBreakpoints", ["XS", "MD", "XL"]), Pi = () => {
|
|
1446
|
+
const [e, t] = C(Pa);
|
|
1436
1447
|
return [e, t];
|
|
1437
|
-
},
|
|
1438
|
-
const e = de(ze), { clear: t } = bt(), [, s] = Ce(), [, o] =
|
|
1448
|
+
}, Ti = () => {
|
|
1449
|
+
const e = de(ze), { clear: t } = bt(), [, s] = Ce(), [, o] = Na(), [, n] = ns();
|
|
1439
1450
|
return () => {
|
|
1440
1451
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
1441
1452
|
};
|
|
1442
|
-
},
|
|
1443
|
-
const [e, t] = C(
|
|
1453
|
+
}, Ta = y({ en: {} }), Ii = () => {
|
|
1454
|
+
const [e, t] = C(Ta), s = j(
|
|
1444
1455
|
(o, n, r) => {
|
|
1445
1456
|
fe(e, `${o}.${n}`, r), t(e);
|
|
1446
1457
|
},
|
|
1447
1458
|
[e, t]
|
|
1448
1459
|
);
|
|
1449
1460
|
return [e, s];
|
|
1450
|
-
},
|
|
1461
|
+
}, Mi = (e, t) => {
|
|
1451
1462
|
const [s] = C(it);
|
|
1452
1463
|
return P(s, e, t);
|
|
1453
|
-
},
|
|
1454
|
-
const [e, t] = De(!1), [s, o] = C(
|
|
1455
|
-
return
|
|
1464
|
+
}, Ia = y([]), Di = () => {
|
|
1465
|
+
const [e, t] = De(!1), [s, o] = C(Ia), n = ve("getUILibraryBlocks", () => []);
|
|
1466
|
+
return Ae(() => {
|
|
1456
1467
|
(async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
|
|
1457
1468
|
}, []), { data: s, isLoading: e };
|
|
1458
|
-
},
|
|
1459
|
-
const [s] =
|
|
1469
|
+
}, Ma = y("en"), Da = y("en"), Ea = y(["en"]), La = () => C(Ma), Ei = () => C(Da), Li = () => C(Ea), Oi = (e, t) => {
|
|
1470
|
+
const [s] = La(), o = `${e}${s ? `-${s}` : ""}`;
|
|
1460
1471
|
return { content: P(t, o, P(t, e, "")), propKey: e };
|
|
1461
1472
|
}, Oa = be(
|
|
1462
1473
|
"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",
|
|
@@ -1477,9 +1488,9 @@ const li = () => {
|
|
|
1477
1488
|
size: "default"
|
|
1478
1489
|
}
|
|
1479
1490
|
}
|
|
1480
|
-
),
|
|
1481
|
-
|
|
1482
|
-
const
|
|
1491
|
+
), za = p.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx(zt.Root, { ref: n, className: c(Oa({ variant: t, size: s, className: e })), ...o }));
|
|
1492
|
+
za.displayName = zt.Root.displayName;
|
|
1493
|
+
const $a = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1483
1494
|
He.Root,
|
|
1484
1495
|
{
|
|
1485
1496
|
className: c(
|
|
@@ -1498,7 +1509,7 @@ const za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1498
1509
|
)
|
|
1499
1510
|
}
|
|
1500
1511
|
));
|
|
1501
|
-
|
|
1512
|
+
$a.displayName = He.Root.displayName;
|
|
1502
1513
|
const ht = be(
|
|
1503
1514
|
"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",
|
|
1504
1515
|
{
|
|
@@ -1523,16 +1534,16 @@ const ht = be(
|
|
|
1523
1534
|
size: "default"
|
|
1524
1535
|
}
|
|
1525
1536
|
}
|
|
1526
|
-
),
|
|
1537
|
+
), Va = p.forwardRef(
|
|
1527
1538
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, r) => {
|
|
1528
1539
|
const i = o ? Ws : "button";
|
|
1529
1540
|
return /* @__PURE__ */ a.jsx(i, { className: c(ht({ variant: t, size: s, className: e })), ref: r, ...n });
|
|
1530
1541
|
}
|
|
1531
1542
|
);
|
|
1532
|
-
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1543
|
+
Va.displayName = "Button";
|
|
1544
|
+
const zi = pe.Root, Fa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(pe.Item, { ref: s, className: c("border-b", e), ...t }));
|
|
1545
|
+
Fa.displayName = "AccordionItem";
|
|
1546
|
+
const Ga = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(pe.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
1536
1547
|
pe.Trigger,
|
|
1537
1548
|
{
|
|
1538
1549
|
ref: o,
|
|
@@ -1547,8 +1558,8 @@ const Fa = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1547
1558
|
]
|
|
1548
1559
|
}
|
|
1549
1560
|
) }));
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1561
|
+
Ga.displayName = pe.Trigger.displayName;
|
|
1562
|
+
const Wa = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1552
1563
|
pe.Content,
|
|
1553
1564
|
{
|
|
1554
1565
|
ref: o,
|
|
@@ -1560,8 +1571,8 @@ const Ga = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1560
1571
|
children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
|
|
1561
1572
|
}
|
|
1562
1573
|
));
|
|
1563
|
-
|
|
1564
|
-
const
|
|
1574
|
+
Wa.displayName = pe.Content.displayName;
|
|
1575
|
+
const Ua = be(
|
|
1565
1576
|
"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",
|
|
1566
1577
|
{
|
|
1567
1578
|
variants: {
|
|
@@ -1574,17 +1585,17 @@ const Wa = be(
|
|
|
1574
1585
|
variant: "default"
|
|
1575
1586
|
}
|
|
1576
1587
|
}
|
|
1577
|
-
),
|
|
1578
|
-
|
|
1579
|
-
const
|
|
1588
|
+
), Ha = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Ua({ variant: t }), e), ...s }));
|
|
1589
|
+
Ha.displayName = "Alert";
|
|
1590
|
+
const qa = p.forwardRef(
|
|
1580
1591
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: c("mb-1 font-medium leading-none tracking-tight", e), ...t })
|
|
1581
1592
|
);
|
|
1582
|
-
|
|
1583
|
-
const
|
|
1593
|
+
qa.displayName = "AlertTitle";
|
|
1594
|
+
const Ka = p.forwardRef(
|
|
1584
1595
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("text-sm [&_p]:leading-relaxed", e), ...t })
|
|
1585
1596
|
);
|
|
1586
|
-
|
|
1587
|
-
const
|
|
1597
|
+
Ka.displayName = "AlertDescription";
|
|
1598
|
+
const Ja = be(
|
|
1588
1599
|
"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",
|
|
1589
1600
|
{
|
|
1590
1601
|
variants: {
|
|
@@ -1599,7 +1610,7 @@ const Ka = be(
|
|
|
1599
1610
|
variant: "default"
|
|
1600
1611
|
}
|
|
1601
1612
|
}
|
|
1602
|
-
),
|
|
1613
|
+
), $i = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ja({ variant: t }), e), ...s }), Vi = V.Root, Fi = V.Trigger, ws = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(V.Portal, { className: c(e), ...t });
|
|
1603
1614
|
ws.displayName = V.Portal.displayName;
|
|
1604
1615
|
const Ns = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1605
1616
|
V.Overlay,
|
|
@@ -1613,7 +1624,7 @@ const Ns = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1613
1624
|
}
|
|
1614
1625
|
));
|
|
1615
1626
|
Ns.displayName = V.Overlay.displayName;
|
|
1616
|
-
const
|
|
1627
|
+
const Ya = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws, { children: [
|
|
1617
1628
|
/* @__PURE__ */ a.jsx(Ns, {}),
|
|
1618
1629
|
/* @__PURE__ */ a.jsx(
|
|
1619
1630
|
V.Content,
|
|
@@ -1627,18 +1638,18 @@ const Ja = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws
|
|
|
1627
1638
|
}
|
|
1628
1639
|
)
|
|
1629
1640
|
] }));
|
|
1630
|
-
|
|
1631
|
-
const
|
|
1632
|
-
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1638
|
-
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
const
|
|
1641
|
+
Ya.displayName = V.Content.displayName;
|
|
1642
|
+
const Qa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
1643
|
+
Qa.displayName = "AlertDialogHeader";
|
|
1644
|
+
const Xa = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
1645
|
+
Xa.displayName = "AlertDialogFooter";
|
|
1646
|
+
const Za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(V.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
|
|
1647
|
+
Za.displayName = V.Title.displayName;
|
|
1648
|
+
const en = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(V.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
1649
|
+
en.displayName = V.Description.displayName;
|
|
1650
|
+
const tn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(V.Action, { ref: s, className: c(ht(), e), ...t }));
|
|
1651
|
+
tn.displayName = V.Action.displayName;
|
|
1652
|
+
const sn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1642
1653
|
V.Cancel,
|
|
1643
1654
|
{
|
|
1644
1655
|
ref: s,
|
|
@@ -1646,10 +1657,10 @@ const tn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1646
1657
|
...t
|
|
1647
1658
|
}
|
|
1648
1659
|
));
|
|
1649
|
-
|
|
1650
|
-
const ks = R.Root,
|
|
1660
|
+
sn.displayName = V.Cancel.displayName;
|
|
1661
|
+
const ks = R.Root, on = R.Trigger, Ss = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(R.Portal, { className: c(e), ...t });
|
|
1651
1662
|
Ss.displayName = R.Portal.displayName;
|
|
1652
|
-
const
|
|
1663
|
+
const As = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1653
1664
|
R.Overlay,
|
|
1654
1665
|
{
|
|
1655
1666
|
ref: s,
|
|
@@ -1660,9 +1671,9 @@ const js = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1660
1671
|
...t
|
|
1661
1672
|
}
|
|
1662
1673
|
));
|
|
1663
|
-
|
|
1674
|
+
As.displayName = R.Overlay.displayName;
|
|
1664
1675
|
const yt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(Ss, { children: [
|
|
1665
|
-
/* @__PURE__ */ a.jsx(
|
|
1676
|
+
/* @__PURE__ */ a.jsx(As, {}),
|
|
1666
1677
|
/* @__PURE__ */ a.jsxs(
|
|
1667
1678
|
R.Content,
|
|
1668
1679
|
{
|
|
@@ -1683,11 +1694,11 @@ const yt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1683
1694
|
)
|
|
1684
1695
|
] }));
|
|
1685
1696
|
yt.displayName = R.Content.displayName;
|
|
1686
|
-
const
|
|
1687
|
-
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1690
|
-
const
|
|
1697
|
+
const an = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
1698
|
+
an.displayName = "DialogHeader";
|
|
1699
|
+
const nn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
1700
|
+
nn.displayName = "DialogFooter";
|
|
1701
|
+
const rn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1691
1702
|
R.Title,
|
|
1692
1703
|
{
|
|
1693
1704
|
ref: s,
|
|
@@ -1695,32 +1706,32 @@ const nn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1695
1706
|
...t
|
|
1696
1707
|
}
|
|
1697
1708
|
));
|
|
1698
|
-
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
const
|
|
1709
|
+
rn.displayName = R.Title.displayName;
|
|
1710
|
+
const ln = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
1711
|
+
ln.displayName = R.Description.displayName;
|
|
1712
|
+
const cn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
|
|
1713
|
+
cn.displayName = "Card";
|
|
1714
|
+
const dn = p.forwardRef(
|
|
1704
1715
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
1705
1716
|
);
|
|
1706
|
-
|
|
1707
|
-
const
|
|
1717
|
+
dn.displayName = "CardHeader";
|
|
1718
|
+
const un = p.forwardRef(
|
|
1708
1719
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: c("font-semibold leading-none tracking-tight", e), ...t })
|
|
1709
1720
|
);
|
|
1710
|
-
|
|
1711
|
-
const
|
|
1721
|
+
un.displayName = "CardTitle";
|
|
1722
|
+
const mn = p.forwardRef(
|
|
1712
1723
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: c("text-sm text-muted-foreground", e), ...t })
|
|
1713
1724
|
);
|
|
1714
|
-
|
|
1715
|
-
const
|
|
1725
|
+
mn.displayName = "CardDescription";
|
|
1726
|
+
const pn = p.forwardRef(
|
|
1716
1727
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("p-6 pt-0", e), ...t })
|
|
1717
1728
|
);
|
|
1718
|
-
|
|
1719
|
-
const
|
|
1729
|
+
pn.displayName = "CardContent";
|
|
1730
|
+
const fn = p.forwardRef(
|
|
1720
1731
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c(" flex items-center p-6 pt-0", e), ...t })
|
|
1721
1732
|
);
|
|
1722
|
-
|
|
1723
|
-
const
|
|
1733
|
+
fn.displayName = "CardFooter";
|
|
1734
|
+
const gn = p.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1724
1735
|
"input",
|
|
1725
1736
|
{
|
|
1726
1737
|
type: t,
|
|
@@ -1732,10 +1743,10 @@ const fn = p.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
|
|
|
1732
1743
|
...s
|
|
1733
1744
|
}
|
|
1734
1745
|
));
|
|
1735
|
-
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1738
|
-
const
|
|
1746
|
+
gn.displayName = "Input";
|
|
1747
|
+
const bn = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), xn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($t.Root, { ref: s, className: c(bn(), e), ...t }));
|
|
1748
|
+
xn.displayName = $t.Root.displayName;
|
|
1749
|
+
const hn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1739
1750
|
"textarea",
|
|
1740
1751
|
{
|
|
1741
1752
|
className: c(
|
|
@@ -1746,14 +1757,14 @@ const xn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1746
1757
|
...t
|
|
1747
1758
|
}
|
|
1748
1759
|
));
|
|
1749
|
-
|
|
1750
|
-
const
|
|
1760
|
+
hn.displayName = "Textarea";
|
|
1761
|
+
const yn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(me.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
|
|
1751
1762
|
/* @__PURE__ */ a.jsx(me.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
1752
|
-
/* @__PURE__ */ a.jsx(
|
|
1763
|
+
/* @__PURE__ */ a.jsx(js, {}),
|
|
1753
1764
|
/* @__PURE__ */ a.jsx(me.Corner, {})
|
|
1754
1765
|
] }));
|
|
1755
|
-
|
|
1756
|
-
const
|
|
1766
|
+
yn.displayName = me.Root.displayName;
|
|
1767
|
+
const js = p.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1757
1768
|
me.ScrollAreaScrollbar,
|
|
1758
1769
|
{
|
|
1759
1770
|
ref: o,
|
|
@@ -1768,8 +1779,8 @@ const As = p.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1768
1779
|
children: /* @__PURE__ */ a.jsx(me.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1769
1780
|
}
|
|
1770
1781
|
));
|
|
1771
|
-
|
|
1772
|
-
const
|
|
1782
|
+
js.displayName = me.ScrollAreaScrollbar.displayName;
|
|
1783
|
+
const vn = xe.Root, Cs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1773
1784
|
xe.List,
|
|
1774
1785
|
{
|
|
1775
1786
|
ref: s,
|
|
@@ -1805,7 +1816,7 @@ const Ze = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1805
1816
|
}
|
|
1806
1817
|
));
|
|
1807
1818
|
Ze.displayName = xe.Content.displayName;
|
|
1808
|
-
const
|
|
1819
|
+
const Gi = we.Portal, Wi = we.Provider, Ui = we.Root, Hi = we.Trigger, wn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1809
1820
|
we.Content,
|
|
1810
1821
|
{
|
|
1811
1822
|
ref: o,
|
|
@@ -1817,8 +1828,8 @@ const Fi = we.Portal, Gi = we.Provider, Wi = we.Root, Ui = we.Trigger, vn = p.fo
|
|
|
1817
1828
|
...s
|
|
1818
1829
|
}
|
|
1819
1830
|
));
|
|
1820
|
-
|
|
1821
|
-
const
|
|
1831
|
+
wn.displayName = we.Content.displayName;
|
|
1832
|
+
const qi = Se.Root, Ki = Se.Trigger, Nn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1822
1833
|
Se.Content,
|
|
1823
1834
|
{
|
|
1824
1835
|
ref: n,
|
|
@@ -1831,8 +1842,8 @@ const Hi = Se.Root, qi = Se.Trigger, wn = p.forwardRef(({ className: e, align: t
|
|
|
1831
1842
|
...o
|
|
1832
1843
|
}
|
|
1833
1844
|
) }));
|
|
1834
|
-
|
|
1835
|
-
const
|
|
1845
|
+
Nn.displayName = Se.Content.displayName;
|
|
1846
|
+
const Ji = _.Menu, Yi = _.Group, Qi = _.Portal, Xi = _.Sub, Zi = _.RadioGroup, kn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1836
1847
|
_.Root,
|
|
1837
1848
|
{
|
|
1838
1849
|
ref: s,
|
|
@@ -1840,8 +1851,8 @@ const Ki = _.Menu, Ji = _.Group, Yi = _.Portal, Qi = _.Sub, Xi = _.RadioGroup, N
|
|
|
1840
1851
|
...t
|
|
1841
1852
|
}
|
|
1842
1853
|
));
|
|
1843
|
-
|
|
1844
|
-
const
|
|
1854
|
+
kn.displayName = _.Root.displayName;
|
|
1855
|
+
const Sn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1845
1856
|
_.Trigger,
|
|
1846
1857
|
{
|
|
1847
1858
|
ref: s,
|
|
@@ -1852,8 +1863,8 @@ const kn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1852
1863
|
...t
|
|
1853
1864
|
}
|
|
1854
1865
|
));
|
|
1855
|
-
|
|
1856
|
-
const
|
|
1866
|
+
Sn.displayName = _.Trigger.displayName;
|
|
1867
|
+
const An = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1857
1868
|
_.SubTrigger,
|
|
1858
1869
|
{
|
|
1859
1870
|
ref: n,
|
|
@@ -1869,7 +1880,7 @@ const Sn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
|
|
|
1869
1880
|
]
|
|
1870
1881
|
}
|
|
1871
1882
|
));
|
|
1872
|
-
|
|
1883
|
+
An.displayName = _.SubTrigger.displayName;
|
|
1873
1884
|
const jn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1874
1885
|
_.SubContent,
|
|
1875
1886
|
{
|
|
@@ -1882,7 +1893,7 @@ const jn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1882
1893
|
}
|
|
1883
1894
|
));
|
|
1884
1895
|
jn.displayName = _.SubContent.displayName;
|
|
1885
|
-
const
|
|
1896
|
+
const Cn = p.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(_.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1886
1897
|
_.Content,
|
|
1887
1898
|
{
|
|
1888
1899
|
ref: r,
|
|
@@ -1896,8 +1907,8 @@ const An = p.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
|
|
|
1896
1907
|
...n
|
|
1897
1908
|
}
|
|
1898
1909
|
) }));
|
|
1899
|
-
|
|
1900
|
-
const
|
|
1910
|
+
Cn.displayName = _.Content.displayName;
|
|
1911
|
+
const _n = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1901
1912
|
_.Item,
|
|
1902
1913
|
{
|
|
1903
1914
|
ref: o,
|
|
@@ -1909,8 +1920,8 @@ const Cn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1909
1920
|
...s
|
|
1910
1921
|
}
|
|
1911
1922
|
));
|
|
1912
|
-
|
|
1913
|
-
const
|
|
1923
|
+
_n.displayName = _.Item.displayName;
|
|
1924
|
+
const Bn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1914
1925
|
_.CheckboxItem,
|
|
1915
1926
|
{
|
|
1916
1927
|
ref: n,
|
|
@@ -1926,8 +1937,8 @@ const _n = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1926
1937
|
]
|
|
1927
1938
|
}
|
|
1928
1939
|
));
|
|
1929
|
-
|
|
1930
|
-
const
|
|
1940
|
+
Bn.displayName = _.CheckboxItem.displayName;
|
|
1941
|
+
const Rn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1931
1942
|
_.RadioItem,
|
|
1932
1943
|
{
|
|
1933
1944
|
ref: o,
|
|
@@ -1942,8 +1953,8 @@ const Bn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1942
1953
|
]
|
|
1943
1954
|
}
|
|
1944
1955
|
));
|
|
1945
|
-
|
|
1946
|
-
const
|
|
1956
|
+
Rn.displayName = _.RadioItem.displayName;
|
|
1957
|
+
const Pn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1947
1958
|
_.Label,
|
|
1948
1959
|
{
|
|
1949
1960
|
ref: o,
|
|
@@ -1951,13 +1962,13 @@ const Rn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1951
1962
|
...s
|
|
1952
1963
|
}
|
|
1953
1964
|
));
|
|
1954
|
-
|
|
1955
|
-
const
|
|
1956
|
-
|
|
1957
|
-
const
|
|
1958
|
-
|
|
1959
|
-
const
|
|
1960
|
-
|
|
1965
|
+
Pn.displayName = _.Label.displayName;
|
|
1966
|
+
const Tn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(_.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1967
|
+
Tn.displayName = _.Separator.displayName;
|
|
1968
|
+
const In = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
1969
|
+
In.displayname = "MenubarShortcut";
|
|
1970
|
+
const el = Le.Root, tl = Le.Trigger, Mn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1971
|
+
Le.Content,
|
|
1961
1972
|
{
|
|
1962
1973
|
ref: n,
|
|
1963
1974
|
align: t,
|
|
@@ -1969,9 +1980,9 @@ const Zi = Oe.Root, el = Oe.Trigger, In = p.forwardRef(({ className: e, align: t
|
|
|
1969
1980
|
...o
|
|
1970
1981
|
}
|
|
1971
1982
|
));
|
|
1972
|
-
|
|
1973
|
-
const
|
|
1974
|
-
|
|
1983
|
+
Mn.displayName = Le.Content.displayName;
|
|
1984
|
+
const sl = O.Root, ol = O.Group, al = O.Value, Dn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1985
|
+
O.Trigger,
|
|
1975
1986
|
{
|
|
1976
1987
|
ref: o,
|
|
1977
1988
|
className: c(
|
|
@@ -1981,13 +1992,13 @@ const tl = L.Root, sl = L.Group, ol = L.Value, Mn = p.forwardRef(({ className: e
|
|
|
1981
1992
|
...s,
|
|
1982
1993
|
children: [
|
|
1983
1994
|
t,
|
|
1984
|
-
/* @__PURE__ */ a.jsx(
|
|
1995
|
+
/* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 opacity-50" }) })
|
|
1985
1996
|
]
|
|
1986
1997
|
}
|
|
1987
1998
|
));
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1990
|
-
|
|
1999
|
+
Dn.displayName = O.Trigger.displayName;
|
|
2000
|
+
const En = p.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2001
|
+
O.Content,
|
|
1991
2002
|
{
|
|
1992
2003
|
ref: n,
|
|
1993
2004
|
className: c(
|
|
@@ -1998,7 +2009,7 @@ const Dn = p.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
1998
2009
|
position: s,
|
|
1999
2010
|
...o,
|
|
2000
2011
|
children: /* @__PURE__ */ a.jsx(
|
|
2001
|
-
|
|
2012
|
+
O.Viewport,
|
|
2002
2013
|
{
|
|
2003
2014
|
className: c(
|
|
2004
2015
|
"p-1",
|
|
@@ -2009,11 +2020,11 @@ const Dn = p.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
2009
2020
|
)
|
|
2010
2021
|
}
|
|
2011
2022
|
) }));
|
|
2012
|
-
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2023
|
+
En.displayName = O.Content.displayName;
|
|
2024
|
+
const Ln = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Label, { ref: s, className: c("px-2 py-1.5 text-sm font-semibold", e), ...t }));
|
|
2025
|
+
Ln.displayName = O.Label.displayName;
|
|
2015
2026
|
const On = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2016
|
-
|
|
2027
|
+
O.Item,
|
|
2017
2028
|
{
|
|
2018
2029
|
ref: o,
|
|
2019
2030
|
className: c(
|
|
@@ -2022,15 +2033,15 @@ const On = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2022
2033
|
),
|
|
2023
2034
|
...s,
|
|
2024
2035
|
children: [
|
|
2025
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2026
|
-
/* @__PURE__ */ a.jsx(
|
|
2036
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(O.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
|
|
2037
|
+
/* @__PURE__ */ a.jsx(O.ItemText, { children: t })
|
|
2027
2038
|
]
|
|
2028
2039
|
}
|
|
2029
2040
|
));
|
|
2030
|
-
On.displayName =
|
|
2031
|
-
const
|
|
2032
|
-
|
|
2033
|
-
const
|
|
2041
|
+
On.displayName = O.Item.displayName;
|
|
2042
|
+
const zn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
2043
|
+
zn.displayName = O.Separator.displayName;
|
|
2044
|
+
const nl = R.Root, rl = R.Trigger, il = R.Close, _s = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(R.Portal, { className: c(e), ...t });
|
|
2034
2045
|
_s.displayName = R.Portal.displayName;
|
|
2035
2046
|
const Bs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2036
2047
|
R.Overlay,
|
|
@@ -2044,7 +2055,7 @@ const Bs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2044
2055
|
}
|
|
2045
2056
|
));
|
|
2046
2057
|
Bs.displayName = R.Overlay.displayName;
|
|
2047
|
-
const
|
|
2058
|
+
const $n = be(
|
|
2048
2059
|
"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",
|
|
2049
2060
|
{
|
|
2050
2061
|
variants: {
|
|
@@ -2059,10 +2070,10 @@ const zn = be(
|
|
|
2059
2070
|
side: "right"
|
|
2060
2071
|
}
|
|
2061
2072
|
}
|
|
2062
|
-
),
|
|
2073
|
+
), Vn = p.forwardRef(
|
|
2063
2074
|
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(_s, { children: [
|
|
2064
2075
|
/* @__PURE__ */ a.jsx(Bs, {}),
|
|
2065
|
-
/* @__PURE__ */ a.jsxs(R.Content, { ref: n, className: c(
|
|
2076
|
+
/* @__PURE__ */ a.jsxs(R.Content, { ref: n, className: c($n({ side: e }), t), ...o, children: [
|
|
2066
2077
|
s,
|
|
2067
2078
|
/* @__PURE__ */ a.jsxs(R.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: [
|
|
2068
2079
|
/* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
|
|
@@ -2071,16 +2082,16 @@ const zn = be(
|
|
|
2071
2082
|
] })
|
|
2072
2083
|
] })
|
|
2073
2084
|
);
|
|
2074
|
-
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2079
|
-
const
|
|
2080
|
-
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2083
|
-
const
|
|
2085
|
+
Vn.displayName = R.Content.displayName;
|
|
2086
|
+
const Fn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
2087
|
+
Fn.displayName = "SheetHeader";
|
|
2088
|
+
const Gn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
2089
|
+
Gn.displayName = "SheetFooter";
|
|
2090
|
+
const Wn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
|
|
2091
|
+
Wn.displayName = R.Title.displayName;
|
|
2092
|
+
const Un = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
2093
|
+
Un.displayName = R.Description.displayName;
|
|
2094
|
+
const ll = T.Root, cl = T.Trigger, dl = T.Group, ul = T.Portal, ml = T.Sub, pl = T.RadioGroup, Hn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2084
2095
|
T.SubTrigger,
|
|
2085
2096
|
{
|
|
2086
2097
|
ref: n,
|
|
@@ -2096,8 +2107,8 @@ const il = T.Root, ll = T.Trigger, cl = T.Group, dl = T.Portal, ul = T.Sub, ml =
|
|
|
2096
2107
|
]
|
|
2097
2108
|
}
|
|
2098
2109
|
));
|
|
2099
|
-
|
|
2100
|
-
const
|
|
2110
|
+
Hn.displayName = T.SubTrigger.displayName;
|
|
2111
|
+
const qn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2101
2112
|
T.SubContent,
|
|
2102
2113
|
{
|
|
2103
2114
|
ref: s,
|
|
@@ -2108,8 +2119,8 @@ const Hn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2108
2119
|
...t
|
|
2109
2120
|
}
|
|
2110
2121
|
));
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2122
|
+
qn.displayName = T.SubContent.displayName;
|
|
2123
|
+
const Kn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(T.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2113
2124
|
T.Content,
|
|
2114
2125
|
{
|
|
2115
2126
|
ref: o,
|
|
@@ -2122,8 +2133,8 @@ const qn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
|
|
|
2122
2133
|
...s
|
|
2123
2134
|
}
|
|
2124
2135
|
) }));
|
|
2125
|
-
|
|
2126
|
-
const
|
|
2136
|
+
Kn.displayName = T.Content.displayName;
|
|
2137
|
+
const Jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2127
2138
|
T.Item,
|
|
2128
2139
|
{
|
|
2129
2140
|
ref: o,
|
|
@@ -2135,8 +2146,8 @@ const Kn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2135
2146
|
...s
|
|
2136
2147
|
}
|
|
2137
2148
|
));
|
|
2138
|
-
|
|
2139
|
-
const
|
|
2149
|
+
Jn.displayName = T.Item.displayName;
|
|
2150
|
+
const Yn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2140
2151
|
T.CheckboxItem,
|
|
2141
2152
|
{
|
|
2142
2153
|
ref: n,
|
|
@@ -2152,8 +2163,8 @@ const Jn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2152
2163
|
]
|
|
2153
2164
|
}
|
|
2154
2165
|
));
|
|
2155
|
-
|
|
2156
|
-
const
|
|
2166
|
+
Yn.displayName = T.CheckboxItem.displayName;
|
|
2167
|
+
const Qn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2157
2168
|
T.RadioItem,
|
|
2158
2169
|
{
|
|
2159
2170
|
ref: o,
|
|
@@ -2168,8 +2179,8 @@ const Yn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2168
2179
|
]
|
|
2169
2180
|
}
|
|
2170
2181
|
));
|
|
2171
|
-
|
|
2172
|
-
const
|
|
2182
|
+
Qn.displayName = T.RadioItem.displayName;
|
|
2183
|
+
const Xn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2173
2184
|
T.Label,
|
|
2174
2185
|
{
|
|
2175
2186
|
ref: o,
|
|
@@ -2177,12 +2188,12 @@ const Qn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2177
2188
|
...s
|
|
2178
2189
|
}
|
|
2179
2190
|
));
|
|
2180
|
-
|
|
2181
|
-
const
|
|
2182
|
-
|
|
2183
|
-
const
|
|
2184
|
-
|
|
2185
|
-
const
|
|
2191
|
+
Xn.displayName = T.Label.displayName;
|
|
2192
|
+
const Zn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
2193
|
+
Zn.displayName = T.Separator.displayName;
|
|
2194
|
+
const er = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
2195
|
+
er.displayName = "DropdownMenuShortcut";
|
|
2196
|
+
const tr = p.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
2186
2197
|
Vt.Root,
|
|
2187
2198
|
{
|
|
2188
2199
|
ref: n,
|
|
@@ -2192,13 +2203,13 @@ const er = p.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
2192
2203
|
...o
|
|
2193
2204
|
}
|
|
2194
2205
|
));
|
|
2195
|
-
|
|
2196
|
-
const
|
|
2206
|
+
tr.displayName = Vt.Root.displayName;
|
|
2207
|
+
const sr = 1, or = 1e6;
|
|
2197
2208
|
let We = 0;
|
|
2198
|
-
function
|
|
2209
|
+
function ar() {
|
|
2199
2210
|
return We = (We + 1) % Number.MAX_VALUE, We.toString();
|
|
2200
2211
|
}
|
|
2201
|
-
const Ue = /* @__PURE__ */ new Map(),
|
|
2212
|
+
const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
|
|
2202
2213
|
if (Ue.has(e))
|
|
2203
2214
|
return;
|
|
2204
2215
|
const t = setTimeout(() => {
|
|
@@ -2206,14 +2217,14 @@ const Ue = /* @__PURE__ */ new Map(), Ot = (e) => {
|
|
|
2206
2217
|
type: "REMOVE_TOAST",
|
|
2207
2218
|
toastId: e
|
|
2208
2219
|
});
|
|
2209
|
-
},
|
|
2220
|
+
}, or);
|
|
2210
2221
|
Ue.set(e, t);
|
|
2211
|
-
},
|
|
2222
|
+
}, nr = (e, t) => {
|
|
2212
2223
|
switch (t.type) {
|
|
2213
2224
|
case "ADD_TOAST":
|
|
2214
2225
|
return {
|
|
2215
2226
|
...e,
|
|
2216
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
2227
|
+
toasts: [t.toast, ...e.toasts].slice(0, sr)
|
|
2217
2228
|
};
|
|
2218
2229
|
case "UPDATE_TOAST":
|
|
2219
2230
|
return {
|
|
@@ -2222,8 +2233,8 @@ const Ue = /* @__PURE__ */ new Map(), Ot = (e) => {
|
|
|
2222
2233
|
};
|
|
2223
2234
|
case "DISMISS_TOAST": {
|
|
2224
2235
|
const { toastId: s } = t;
|
|
2225
|
-
return s ?
|
|
2226
|
-
|
|
2236
|
+
return s ? Lt(s) : e.toasts.forEach((o) => {
|
|
2237
|
+
Lt(o.id);
|
|
2227
2238
|
}), {
|
|
2228
2239
|
...e,
|
|
2229
2240
|
toasts: e.toasts.map(
|
|
@@ -2246,12 +2257,12 @@ const Ue = /* @__PURE__ */ new Map(), Ot = (e) => {
|
|
|
2246
2257
|
}, Te = [];
|
|
2247
2258
|
let Ie = { toasts: [] };
|
|
2248
2259
|
function ke(e) {
|
|
2249
|
-
Ie =
|
|
2260
|
+
Ie = nr(Ie, e), Te.forEach((t) => {
|
|
2250
2261
|
t(Ie);
|
|
2251
2262
|
});
|
|
2252
2263
|
}
|
|
2253
|
-
function
|
|
2254
|
-
const t =
|
|
2264
|
+
function rr({ ...e }) {
|
|
2265
|
+
const t = ar(), s = (n) => ke({
|
|
2255
2266
|
type: "UPDATE_TOAST",
|
|
2256
2267
|
toast: { ...n, id: t }
|
|
2257
2268
|
}), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -2271,18 +2282,18 @@ function nr({ ...e }) {
|
|
|
2271
2282
|
update: s
|
|
2272
2283
|
};
|
|
2273
2284
|
}
|
|
2274
|
-
function
|
|
2285
|
+
function ir() {
|
|
2275
2286
|
const [e, t] = p.useState(Ie);
|
|
2276
2287
|
return p.useEffect(() => (Te.push(t), () => {
|
|
2277
2288
|
const s = Te.indexOf(t);
|
|
2278
2289
|
s > -1 && Te.splice(s, 1);
|
|
2279
2290
|
}), [e]), {
|
|
2280
2291
|
...e,
|
|
2281
|
-
toast:
|
|
2292
|
+
toast: rr,
|
|
2282
2293
|
dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
|
|
2283
2294
|
};
|
|
2284
2295
|
}
|
|
2285
|
-
const
|
|
2296
|
+
const lr = H.Provider, Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2286
2297
|
H.Viewport,
|
|
2287
2298
|
{
|
|
2288
2299
|
ref: s,
|
|
@@ -2294,7 +2305,7 @@ const ir = H.Provider, Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
2294
2305
|
}
|
|
2295
2306
|
));
|
|
2296
2307
|
Rs.displayName = H.Viewport.displayName;
|
|
2297
|
-
const
|
|
2308
|
+
const cr = be(
|
|
2298
2309
|
"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",
|
|
2299
2310
|
{
|
|
2300
2311
|
variants: {
|
|
@@ -2307,9 +2318,9 @@ const lr = be(
|
|
|
2307
2318
|
variant: "default"
|
|
2308
2319
|
}
|
|
2309
2320
|
}
|
|
2310
|
-
), Ps = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(H.Root, { ref: o, className: c(
|
|
2321
|
+
), Ps = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(H.Root, { ref: o, className: c(cr({ variant: t }), e), ...s }));
|
|
2311
2322
|
Ps.displayName = H.Root.displayName;
|
|
2312
|
-
const
|
|
2323
|
+
const dr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2313
2324
|
H.Action,
|
|
2314
2325
|
{
|
|
2315
2326
|
ref: s,
|
|
@@ -2320,7 +2331,7 @@ const cr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2320
2331
|
...t
|
|
2321
2332
|
}
|
|
2322
2333
|
));
|
|
2323
|
-
|
|
2334
|
+
dr.displayName = H.Action.displayName;
|
|
2324
2335
|
const Ts = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2325
2336
|
H.Close,
|
|
2326
2337
|
{
|
|
@@ -2339,9 +2350,9 @@ const Is = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.T
|
|
|
2339
2350
|
Is.displayName = H.Title.displayName;
|
|
2340
2351
|
const Ms = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(H.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
|
|
2341
2352
|
Ms.displayName = H.Description.displayName;
|
|
2342
|
-
function
|
|
2343
|
-
const { toasts: e } =
|
|
2344
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2353
|
+
function fl() {
|
|
2354
|
+
const { toasts: e } = ir();
|
|
2355
|
+
return /* @__PURE__ */ a.jsxs(lr, { children: [
|
|
2345
2356
|
e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(Ps, { ...r, children: [
|
|
2346
2357
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
|
|
2347
2358
|
s && /* @__PURE__ */ a.jsx(Is, { children: s }),
|
|
@@ -2353,7 +2364,7 @@ function pl() {
|
|
|
2353
2364
|
/* @__PURE__ */ a.jsx(Rs, {})
|
|
2354
2365
|
] });
|
|
2355
2366
|
}
|
|
2356
|
-
const
|
|
2367
|
+
const gl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Ds = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2357
2368
|
W,
|
|
2358
2369
|
{
|
|
2359
2370
|
ref: s,
|
|
@@ -2365,7 +2376,7 @@ const fl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2365
2376
|
}
|
|
2366
2377
|
));
|
|
2367
2378
|
Ds.displayName = W.displayName;
|
|
2368
|
-
const
|
|
2379
|
+
const bl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children: /* @__PURE__ */ a.jsx(yt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Ds, { 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 }) }) }), ur = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2369
2380
|
/* @__PURE__ */ a.jsx(qs, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2370
2381
|
/* @__PURE__ */ a.jsx(
|
|
2371
2382
|
W.Input,
|
|
@@ -2379,8 +2390,8 @@ const gl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children
|
|
|
2379
2390
|
}
|
|
2380
2391
|
)
|
|
2381
2392
|
] }));
|
|
2382
|
-
|
|
2383
|
-
const
|
|
2393
|
+
ur.displayName = W.Input.displayName;
|
|
2394
|
+
const mr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2384
2395
|
W.List,
|
|
2385
2396
|
{
|
|
2386
2397
|
ref: s,
|
|
@@ -2388,10 +2399,10 @@ const ur = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2388
2399
|
...t
|
|
2389
2400
|
}
|
|
2390
2401
|
));
|
|
2391
|
-
|
|
2392
|
-
const
|
|
2393
|
-
|
|
2394
|
-
const
|
|
2402
|
+
mr.displayName = W.List.displayName;
|
|
2403
|
+
const pr = p.forwardRef((e, t) => /* @__PURE__ */ a.jsx(W.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
2404
|
+
pr.displayName = W.Empty.displayName;
|
|
2405
|
+
const fr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2395
2406
|
W.Group,
|
|
2396
2407
|
{
|
|
2397
2408
|
ref: s,
|
|
@@ -2402,10 +2413,10 @@ const pr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2402
2413
|
...t
|
|
2403
2414
|
}
|
|
2404
2415
|
));
|
|
2405
|
-
|
|
2406
|
-
const
|
|
2407
|
-
|
|
2408
|
-
const
|
|
2416
|
+
fr.displayName = W.Group.displayName;
|
|
2417
|
+
const gr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(W.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
|
|
2418
|
+
gr.displayName = W.Separator.displayName;
|
|
2419
|
+
const br = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2409
2420
|
W.Item,
|
|
2410
2421
|
{
|
|
2411
2422
|
ref: s,
|
|
@@ -2416,10 +2427,10 @@ const gr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2416
2427
|
...t
|
|
2417
2428
|
}
|
|
2418
2429
|
));
|
|
2419
|
-
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
const
|
|
2430
|
+
br.displayName = W.Item.displayName;
|
|
2431
|
+
const xr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2432
|
+
xr.displayName = "CommandShortcut";
|
|
2433
|
+
const xl = I.Root, hl = I.Trigger, yl = I.Group, vl = I.Portal, wl = I.Sub, Nl = I.RadioGroup, hr = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2423
2434
|
I.SubTrigger,
|
|
2424
2435
|
{
|
|
2425
2436
|
ref: n,
|
|
@@ -2435,8 +2446,8 @@ const bl = I.Root, xl = I.Trigger, hl = I.Group, yl = I.Portal, vl = I.Sub, wl =
|
|
|
2435
2446
|
]
|
|
2436
2447
|
}
|
|
2437
2448
|
));
|
|
2438
|
-
|
|
2439
|
-
const
|
|
2449
|
+
hr.displayName = I.SubTrigger.displayName;
|
|
2450
|
+
const yr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2440
2451
|
I.SubContent,
|
|
2441
2452
|
{
|
|
2442
2453
|
ref: s,
|
|
@@ -2447,8 +2458,8 @@ const hr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2447
2458
|
...t
|
|
2448
2459
|
}
|
|
2449
2460
|
));
|
|
2450
|
-
|
|
2451
|
-
const
|
|
2461
|
+
yr.displayName = I.SubContent.displayName;
|
|
2462
|
+
const vr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2452
2463
|
I.Content,
|
|
2453
2464
|
{
|
|
2454
2465
|
ref: s,
|
|
@@ -2459,8 +2470,8 @@ const yr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.P
|
|
|
2459
2470
|
...t
|
|
2460
2471
|
}
|
|
2461
2472
|
) }));
|
|
2462
|
-
|
|
2463
|
-
const
|
|
2473
|
+
vr.displayName = I.Content.displayName;
|
|
2474
|
+
const wr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2464
2475
|
I.Item,
|
|
2465
2476
|
{
|
|
2466
2477
|
ref: o,
|
|
@@ -2472,8 +2483,8 @@ const vr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2472
2483
|
...s
|
|
2473
2484
|
}
|
|
2474
2485
|
));
|
|
2475
|
-
|
|
2476
|
-
const
|
|
2486
|
+
wr.displayName = I.Item.displayName;
|
|
2487
|
+
const Nr = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2477
2488
|
I.CheckboxItem,
|
|
2478
2489
|
{
|
|
2479
2490
|
ref: n,
|
|
@@ -2489,8 +2500,8 @@ const wr = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2489
2500
|
]
|
|
2490
2501
|
}
|
|
2491
2502
|
));
|
|
2492
|
-
|
|
2493
|
-
const
|
|
2503
|
+
Nr.displayName = I.CheckboxItem.displayName;
|
|
2504
|
+
const kr = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2494
2505
|
I.RadioItem,
|
|
2495
2506
|
{
|
|
2496
2507
|
ref: o,
|
|
@@ -2505,8 +2516,8 @@ const Nr = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2505
2516
|
]
|
|
2506
2517
|
}
|
|
2507
2518
|
));
|
|
2508
|
-
|
|
2509
|
-
const
|
|
2519
|
+
kr.displayName = I.RadioItem.displayName;
|
|
2520
|
+
const Sr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2510
2521
|
I.Label,
|
|
2511
2522
|
{
|
|
2512
2523
|
ref: o,
|
|
@@ -2514,12 +2525,12 @@ const kr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2514
2525
|
...s
|
|
2515
2526
|
}
|
|
2516
2527
|
));
|
|
2517
|
-
|
|
2518
|
-
const
|
|
2519
|
-
|
|
2528
|
+
Sr.displayName = I.Label.displayName;
|
|
2529
|
+
const Ar = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(I.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
2530
|
+
Ar.displayName = I.Separator.displayName;
|
|
2520
2531
|
const jr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2521
2532
|
jr.displayName = "ContextMenuShortcut";
|
|
2522
|
-
const
|
|
2533
|
+
const Cr = (e) => {
|
|
2523
2534
|
try {
|
|
2524
2535
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2525
2536
|
Ys.render(/* @__PURE__ */ a.jsx(Js, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
@@ -2530,10 +2541,10 @@ const Ar = (e) => {
|
|
|
2530
2541
|
} catch {
|
|
2531
2542
|
return "";
|
|
2532
2543
|
}
|
|
2533
|
-
},
|
|
2544
|
+
}, kl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
|
|
2534
2545
|
const n = (r) => {
|
|
2535
2546
|
t("<svg />");
|
|
2536
|
-
const i =
|
|
2547
|
+
const i = Cr(r);
|
|
2537
2548
|
t(i), s(o, i);
|
|
2538
2549
|
};
|
|
2539
2550
|
return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
|
|
@@ -2582,7 +2593,7 @@ const Ar = (e) => {
|
|
|
2582
2593
|
}
|
|
2583
2594
|
)
|
|
2584
2595
|
] });
|
|
2585
|
-
},
|
|
2596
|
+
}, _r = et.lazy(() => import("./UnsplashImages-_PxEYx5c.js")), Br = et.lazy(() => import("./UploadImages-zzSgKmP9.js")), Es = ({
|
|
2586
2597
|
isModalView: e = !1,
|
|
2587
2598
|
onSelect: t = () => {
|
|
2588
2599
|
}
|
|
@@ -2590,29 +2601,29 @@ const Ar = (e) => {
|
|
|
2590
2601
|
const [s, o] = De("upload");
|
|
2591
2602
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
2592
2603
|
/* @__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" }) }),
|
|
2593
|
-
/* @__PURE__ */ a.jsxs(
|
|
2604
|
+
/* @__PURE__ */ a.jsxs(vn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
|
|
2594
2605
|
/* @__PURE__ */ a.jsxs(Cs, { className: "w-full", children: [
|
|
2595
2606
|
/* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
|
|
2596
2607
|
/* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
|
|
2597
2608
|
] }),
|
|
2598
|
-
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(
|
|
2609
|
+
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(_r, { 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(Br, { isModalView: e, onSelect: t }) }) })
|
|
2599
2610
|
] })
|
|
2600
2611
|
] });
|
|
2601
|
-
},
|
|
2612
|
+
}, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2602
2613
|
__proto__: null,
|
|
2603
2614
|
default: Es
|
|
2604
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2615
|
+
}, Symbol.toStringTag, { value: "Module" })), Ot = ({ children: e, onSelect: t }) => {
|
|
2605
2616
|
const [s, o] = De(!1), n = (...r) => {
|
|
2606
2617
|
t.call(void 0, ...r), o(!1);
|
|
2607
2618
|
};
|
|
2608
2619
|
return /* @__PURE__ */ a.jsxs(ks, { open: s, onOpenChange: (r) => o(r), children: [
|
|
2609
|
-
/* @__PURE__ */ a.jsx(
|
|
2620
|
+
/* @__PURE__ */ a.jsx(on, { asChild: !0, children: e }),
|
|
2610
2621
|
/* @__PURE__ */ a.jsx(yt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Es, { isModalView: !0, onSelect: n }) }) })
|
|
2611
2622
|
] });
|
|
2612
|
-
},
|
|
2613
|
-
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(
|
|
2623
|
+
}, Al = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
2624
|
+
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Ot, { 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" }) }),
|
|
2614
2625
|
/* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
|
|
2615
|
-
/* @__PURE__ */ a.jsx(
|
|
2626
|
+
/* @__PURE__ */ a.jsx(Ot, { 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 || !oe(e) ? "Replace Image" : "Choose Image" }) }),
|
|
2616
2627
|
/* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
|
|
2617
2628
|
/* @__PURE__ */ a.jsx(
|
|
2618
2629
|
"input",
|
|
@@ -2662,9 +2673,9 @@ const Ar = (e) => {
|
|
|
2662
2673
|
className: "mt-1 rounded-md"
|
|
2663
2674
|
}
|
|
2664
2675
|
);
|
|
2665
|
-
},
|
|
2676
|
+
}, Cl = ({ schema: e, formData: t, onChange: s }) => {
|
|
2666
2677
|
const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: m = "self" } = t;
|
|
2667
|
-
return
|
|
2678
|
+
return Ae(() => {
|
|
2668
2679
|
(async () => {
|
|
2669
2680
|
const l = await r();
|
|
2670
2681
|
n(l || []);
|
|
@@ -2717,222 +2728,224 @@ const Ar = (e) => {
|
|
|
2717
2728
|
] });
|
|
2718
2729
|
};
|
|
2719
2730
|
export {
|
|
2720
|
-
|
|
2731
|
+
bi as $,
|
|
2721
2732
|
ms as A,
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2733
|
+
Va as B,
|
|
2734
|
+
fl as C,
|
|
2735
|
+
Vi as D,
|
|
2736
|
+
Fi as E,
|
|
2737
|
+
Ya as F,
|
|
2738
|
+
Qa as G,
|
|
2739
|
+
Za as H,
|
|
2740
|
+
en as I,
|
|
2741
|
+
Xa as J,
|
|
2742
|
+
sn as K,
|
|
2743
|
+
Mi as L,
|
|
2744
|
+
_i as M,
|
|
2745
|
+
Ci as N,
|
|
2746
|
+
ii as O,
|
|
2747
|
+
li as P,
|
|
2737
2748
|
Ho as Q,
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2749
|
+
di as R,
|
|
2750
|
+
gl as S,
|
|
2751
|
+
Wi as T,
|
|
2752
|
+
ui as U,
|
|
2742
2753
|
Xo as V,
|
|
2743
|
-
|
|
2744
|
-
|
|
2754
|
+
pi as W,
|
|
2755
|
+
fi as X,
|
|
2745
2756
|
ds as Y,
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2757
|
+
gi as Z,
|
|
2758
|
+
Na as _,
|
|
2759
|
+
Qr as a,
|
|
2760
|
+
oi as a$,
|
|
2761
|
+
xi as a0,
|
|
2762
|
+
yi as a1,
|
|
2763
|
+
Ii as a2,
|
|
2764
|
+
wi as a3,
|
|
2765
|
+
ki as a4,
|
|
2766
|
+
Ni as a5,
|
|
2767
|
+
ri as a6,
|
|
2768
|
+
ga as a7,
|
|
2769
|
+
Di as a8,
|
|
2770
|
+
Si as a9,
|
|
2760
2771
|
Do as aA,
|
|
2761
|
-
|
|
2772
|
+
vn as aB,
|
|
2762
2773
|
Cs as aC,
|
|
2763
2774
|
Xe as aD,
|
|
2764
2775
|
Ze as aE,
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2776
|
+
ol as aF,
|
|
2777
|
+
Ln as aG,
|
|
2778
|
+
Ui as aH,
|
|
2779
|
+
Hi as aI,
|
|
2780
|
+
za as aJ,
|
|
2781
|
+
wn as aK,
|
|
2782
|
+
tr as aL,
|
|
2783
|
+
xn as aM,
|
|
2784
|
+
$a as aN,
|
|
2785
|
+
el as aO,
|
|
2786
|
+
tl as aP,
|
|
2787
|
+
Mn as aQ,
|
|
2788
|
+
ll as aR,
|
|
2789
|
+
cl as aS,
|
|
2790
|
+
Kn as aT,
|
|
2791
|
+
Xn as aU,
|
|
2792
|
+
Zn as aV,
|
|
2793
|
+
Yn as aW,
|
|
2794
|
+
pa as aX,
|
|
2795
|
+
ma as aY,
|
|
2796
|
+
na as aZ,
|
|
2786
2797
|
si as a_,
|
|
2787
|
-
|
|
2788
|
-
|
|
2798
|
+
ei as aa,
|
|
2799
|
+
Ai as ab,
|
|
2789
2800
|
ji as ac,
|
|
2790
|
-
|
|
2801
|
+
ni as ad,
|
|
2791
2802
|
Vo as ae,
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2803
|
+
Bi as af,
|
|
2804
|
+
ci as ag,
|
|
2805
|
+
Ri as ah,
|
|
2806
|
+
Pi as ai,
|
|
2796
2807
|
ns as aj,
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2808
|
+
La as ak,
|
|
2809
|
+
Ei as al,
|
|
2810
|
+
Li as am,
|
|
2800
2811
|
Oi as an,
|
|
2801
2812
|
ks as ao,
|
|
2802
2813
|
yt as ap,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2814
|
+
an as aq,
|
|
2815
|
+
rn as ar,
|
|
2816
|
+
ln as as,
|
|
2817
|
+
tn as at,
|
|
2818
|
+
sl as au,
|
|
2819
|
+
Dn as av,
|
|
2820
|
+
al as aw,
|
|
2821
|
+
En as ax,
|
|
2811
2822
|
On as ay,
|
|
2812
|
-
|
|
2823
|
+
ca as az,
|
|
2813
2824
|
Z as b,
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2825
|
+
Yi as b$,
|
|
2826
|
+
Ye as b0,
|
|
2827
|
+
oa as b1,
|
|
2828
|
+
la as b2,
|
|
2829
|
+
qi as b3,
|
|
2830
|
+
Ki as b4,
|
|
2831
|
+
Nn as b5,
|
|
2832
|
+
Ds as b6,
|
|
2833
|
+
ur as b7,
|
|
2834
|
+
mr as b8,
|
|
2835
|
+
pr as b9,
|
|
2836
|
+
qa as bA,
|
|
2837
|
+
ua as bB,
|
|
2838
|
+
wr as bC,
|
|
2839
|
+
vr as bD,
|
|
2840
|
+
xl as bE,
|
|
2841
|
+
hl as bF,
|
|
2842
|
+
ai as bG,
|
|
2843
|
+
Oa as bH,
|
|
2844
|
+
ht as bI,
|
|
2845
|
+
Ka as bJ,
|
|
2846
|
+
$i as bK,
|
|
2847
|
+
Ja as bL,
|
|
2848
|
+
un as bM,
|
|
2849
|
+
js as bN,
|
|
2839
2850
|
kn as bO,
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2851
|
+
Ji as bP,
|
|
2852
|
+
Sn as bQ,
|
|
2853
|
+
Cn as bR,
|
|
2854
|
+
_n as bS,
|
|
2855
|
+
Tn as bT,
|
|
2856
|
+
Pn as bU,
|
|
2846
2857
|
Bn as bV,
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2858
|
+
Zi as bW,
|
|
2859
|
+
Rn as bX,
|
|
2860
|
+
Qi as bY,
|
|
2861
|
+
jn as bZ,
|
|
2862
|
+
An as b_,
|
|
2863
|
+
fr as ba,
|
|
2864
|
+
br as bb,
|
|
2865
|
+
nn as bc,
|
|
2866
|
+
on as bd,
|
|
2867
|
+
Rt as be,
|
|
2868
|
+
Bt as bf,
|
|
2869
|
+
jl as bg,
|
|
2870
|
+
kl as bh,
|
|
2871
|
+
Al as bi,
|
|
2872
|
+
Cl as bj,
|
|
2873
|
+
zi as bk,
|
|
2874
|
+
Fa as bl,
|
|
2875
|
+
Ga as bm,
|
|
2876
|
+
Wa as bn,
|
|
2877
|
+
gn as bo,
|
|
2878
|
+
Gi as bp,
|
|
2879
|
+
sa as bq,
|
|
2880
|
+
yn as br,
|
|
2881
|
+
da as bs,
|
|
2882
|
+
cn as bt,
|
|
2883
|
+
dn as bu,
|
|
2884
|
+
mn as bv,
|
|
2885
|
+
pn as bw,
|
|
2886
|
+
hn as bx,
|
|
2887
|
+
fn as by,
|
|
2888
|
+
Ha as bz,
|
|
2878
2889
|
co as c,
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2890
|
+
Xi as c0,
|
|
2891
|
+
In as c1,
|
|
2892
|
+
zn as c2,
|
|
2893
|
+
nl as c3,
|
|
2894
|
+
rl as c4,
|
|
2895
|
+
il as c5,
|
|
2896
|
+
Vn as c6,
|
|
2897
|
+
Fn as c7,
|
|
2898
|
+
Gn as c8,
|
|
2899
|
+
Wn as c9,
|
|
2900
|
+
Nl as cA,
|
|
2901
|
+
Sl as cB,
|
|
2902
|
+
Un as ca,
|
|
2903
|
+
Jn as cb,
|
|
2904
|
+
Qn as cc,
|
|
2905
|
+
er as cd,
|
|
2906
|
+
dl as ce,
|
|
2907
|
+
ul as cf,
|
|
2908
|
+
ml as cg,
|
|
2909
|
+
qn as ch,
|
|
2910
|
+
Hn as ci,
|
|
2911
|
+
pl as cj,
|
|
2899
2912
|
nr as ck,
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2913
|
+
ir as cl,
|
|
2914
|
+
rr as cm,
|
|
2915
|
+
bl as cn,
|
|
2916
|
+
xr as co,
|
|
2917
|
+
gr as cp,
|
|
2918
|
+
Nr as cq,
|
|
2919
|
+
kr as cr,
|
|
2920
|
+
Sr as cs,
|
|
2921
|
+
Ar as ct,
|
|
2922
|
+
jr as cu,
|
|
2923
|
+
yl as cv,
|
|
2924
|
+
vl as cw,
|
|
2925
|
+
wl as cx,
|
|
2926
|
+
yr as cy,
|
|
2927
|
+
hr as cz,
|
|
2915
2928
|
xo as d,
|
|
2916
2929
|
bo as e,
|
|
2917
|
-
|
|
2918
|
-
|
|
2930
|
+
je as f,
|
|
2931
|
+
Xr as g,
|
|
2919
2932
|
Ko as h,
|
|
2920
2933
|
ve as i,
|
|
2921
2934
|
Ce as j,
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2935
|
+
mi as k,
|
|
2936
|
+
vi as l,
|
|
2937
|
+
ya as m,
|
|
2938
|
+
xa as n,
|
|
2939
|
+
hi as o,
|
|
2927
2940
|
bt as p,
|
|
2928
2941
|
Q as q,
|
|
2929
2942
|
Co as r,
|
|
2930
|
-
|
|
2943
|
+
fa as s,
|
|
2931
2944
|
gt as t,
|
|
2932
2945
|
qt as u,
|
|
2933
|
-
|
|
2934
|
-
|
|
2946
|
+
Zr as v,
|
|
2947
|
+
ti as w,
|
|
2935
2948
|
Yo as x,
|
|
2936
|
-
|
|
2949
|
+
Ti as y,
|
|
2937
2950
|
it as z
|
|
2938
2951
|
};
|