@chaibuilder/sdk 1.2.7 → 1.2.8
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-pjLrzkvz.js → AddBlocks-tMxKPoen.js} +7 -6
- package/dist/AddBlocks-x2LkOHSj.cjs +1 -0
- package/dist/BrandingOptions-EzT9UYd6.cjs +1 -0
- package/dist/{BrandingOptions-PXCI0z-H.js → BrandingOptions-QJJ1y5ez.js} +7 -6
- package/dist/{CanvasArea-Fhg-6_nZ.js → CanvasArea-EfZgx-gN.js} +11 -9
- package/dist/{CanvasArea-C2ak1ui1.cjs → CanvasArea-rIDwPHl5.cjs} +1 -1
- package/dist/CurrentPage-QNFPD078.cjs +1 -0
- package/dist/{CurrentPage-Zz9LEdez.js → CurrentPage-ulHTz4MD.js} +14 -12
- package/dist/Functions-7jnEwJyw.js +15 -0
- package/dist/Functions-N3yhPYKY.cjs +1 -0
- package/dist/{Layers-cgmxKAP9.js → Layers-rehZkz78.js} +12 -10
- package/dist/Layers-v-7k3W2I.cjs +1 -0
- package/dist/{MarkAsGlobalBlock-htrpRVJM.js → MarkAsGlobalBlock-BjP-Rqlf.js} +6 -5
- package/dist/MarkAsGlobalBlock-X5dNmZcb.cjs +1 -0
- package/dist/{PagesPanel-TYBKN2Am.js → PagesPanel-acGVGJf-.js} +9 -7
- package/dist/PagesPanel-x5ms_LOD.cjs +1 -0
- package/dist/ProjectPanel-5BHQ5ANP.cjs +1 -0
- package/dist/{ProjectPanel-PJ1iPaLY.js → ProjectPanel-aLFJq49M.js} +16 -14
- package/dist/Settings-iOjfw5NQ.cjs +1 -0
- package/dist/{Settings-Na0NVS-E.js → Settings-v-txwlII.js} +10 -9
- package/dist/{SidePanels-bHll6xCt.js → SidePanels-Vdc-J5wK.js} +12 -10
- package/dist/SidePanels-t0g9ZQFT.cjs +1 -0
- package/dist/Topbar-V8xCetWF.cjs +1 -0
- package/dist/{Topbar-JKdXHH8P.js → Topbar-j4t4AgCq.js} +6 -5
- package/dist/{UnsplashImages-jiOES16m.js → UnsplashImages-41Y3q5_Q.js} +6 -5
- package/dist/UnsplashImages-DbHky6cj.cjs +1 -0
- package/dist/UploadImages-DnQ95_NW.cjs +1 -0
- package/dist/{UploadImages-imersU7l.js → UploadImages-xBg-kbKv.js} +15 -14
- package/dist/add-page-modal-0YAI9dXr.cjs +1 -0
- package/dist/{add-page-modal-EQWWxbry.js → add-page-modal-6DlGzdA4.js} +10 -9
- package/dist/confirm-alert-U7-NcG7G.cjs +1 -0
- package/dist/{confirm-alert-HOs52FKE.js → confirm-alert-i4pM3mOt.js} +6 -5
- package/dist/{controls-hpe3HxsR.cjs → controls-Dy1qa8Dc.cjs} +1 -1
- package/dist/{controls-QGClapUl.js → controls-XPXGHKht.js} +45 -9
- package/dist/core.cjs +1 -1
- package/dist/core.js +57 -55
- package/dist/{delete-page-modal-DU388lPm.js → delete-page-modal-T_rlQfNd.js} +22 -20
- package/dist/delete-page-modal-qXpi_2xR.cjs +1 -0
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +1 -1
- package/dist/{form-7E1GY3U7.js → form-OVmsLOrc.js} +1 -1
- package/dist/{form-lF5eSfMe.cjs → form-VbouZlAW.cjs} +1 -1
- package/dist/html-to-json-2PeOCVey.cjs +1 -0
- package/dist/{html-to-json-lNLC8Y7D.js → html-to-json-57841sEK.js} +1 -1
- package/dist/{index-7vwIQQ-T.js → index-EGUphg4R.js} +5 -5
- package/dist/index-H6vIwGfD.cjs +1 -0
- package/dist/{index-Hf23Fq9m.cjs → index-jw8RxsTv.cjs} +2 -2
- package/dist/{index-WKIG_VPl.js → index-niHREMmR.js} +173 -172
- package/dist/lib.cjs +2 -2
- package/dist/lib.js +7 -6
- package/dist/{page-viewer-fohh_Dwv.js → page-viewer-EoYYnA56.js} +10 -8
- package/dist/page-viewer-Ou8vDXGV.cjs +1 -0
- package/dist/project-general-setting-92q4oEYv.cjs +1 -0
- package/dist/{project-general-setting-Ryf5OhPd.js → project-general-setting-DC_nADG-.js} +10 -9
- package/dist/project-seo-setting-Snn2nZgS.cjs +1 -0
- package/dist/{project-seo-setting-KKOCl416.js → project-seo-setting-wxAGEkd_.js} +11 -10
- package/dist/single-page-detail-QmmhR_h2.cjs +1 -0
- package/dist/{single-page-detail-mJBo7VRe.js → single-page-detail-xtNZ9YxX.js} +11 -10
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +8 -6
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +141 -140
- package/dist/{useAddBlockByDrop-CmSt8dRr.js → useAddBlockByDrop-_nwI4W3q.js} +1 -1
- package/dist/{useAddBlockByDrop-pVcDjcgp.cjs → useAddBlockByDrop-inkD7Lck.cjs} +1 -1
- package/dist/{utils-Jw11nj1S.js → utils-AvyFzbPC.js} +26 -35
- package/dist/utils-PTxFk6qT.cjs +1 -0
- package/dist/web-blocks.cjs +9 -1
- package/dist/web-blocks.js +1048 -3
- package/package.json +1 -1
- package/dist/AddBlocks-MKhgtI8x.cjs +0 -1
- package/dist/BrandingOptions-tZaUILYP.cjs +0 -1
- package/dist/CurrentPage-4O-iqW3w.cjs +0 -1
- package/dist/Layers-uo4KpGCs.cjs +0 -1
- package/dist/MarkAsGlobalBlock-1kOwPbPm.cjs +0 -1
- package/dist/PagesPanel-z5qHpU24.cjs +0 -1
- package/dist/ProjectPanel-mEVh8sLb.cjs +0 -1
- package/dist/Settings-YNxmjfAl.cjs +0 -1
- package/dist/SidePanels-jsHvSEtM.cjs +0 -1
- package/dist/Topbar-jWRuTvxv.cjs +0 -1
- package/dist/UnsplashImages-dBdqJNux.cjs +0 -1
- package/dist/UploadImages-OD3RPS7j.cjs +0 -1
- package/dist/add-page-modal-nFQ8TUBM.cjs +0 -1
- package/dist/confirm-alert-j6hcFSlG.cjs +0 -1
- package/dist/delete-page-modal-bkSWhTxz.cjs +0 -1
- package/dist/html-to-json-JS8zQjYB.cjs +0 -1
- package/dist/index-98CxilGX.cjs +0 -1
- package/dist/page-viewer-6a4GFMUg.cjs +0 -1
- package/dist/project-general-setting-j4lKlLUE.cjs +0 -1
- package/dist/project-seo-setting-CATo4bEL.cjs +0 -1
- package/dist/single-page-detail-zms-5Fa_.cjs +0 -1
- package/dist/utils-j7Kg63NR.cjs +0 -1
|
@@ -3,11 +3,11 @@ import * as p from "react";
|
|
|
3
3
|
import et, { createContext as Vs, useContext as $s, useRef as Br, createElement as Tr, useReducer as Fs, useEffect as je, useDebugValue as Gs, useCallback as A, useMemo as Ws, useState as De, Suspense as Nt } from "react";
|
|
4
4
|
import * as $t from "@radix-ui/react-toggle";
|
|
5
5
|
import { cva as be } from "class-variance-authority";
|
|
6
|
-
import {
|
|
6
|
+
import { c as Re, a as c } from "./utils-AvyFzbPC.js";
|
|
7
7
|
import * as He from "@radix-ui/react-switch";
|
|
8
|
-
import { Slot as
|
|
8
|
+
import { Slot as Us } from "@radix-ui/react-slot";
|
|
9
9
|
import * as me from "@radix-ui/react-accordion";
|
|
10
|
-
import { ChevronDownIcon as
|
|
10
|
+
import { ChevronDownIcon as Hs, Cross2Icon as tt, ChevronRightIcon as st, CheckIcon as Ee, DotFilledIcon as ot, CaretSortIcon as qs, MagnifyingGlassIcon as Ks } from "@radix-ui/react-icons";
|
|
11
11
|
import * as $ from "@radix-ui/react-alert-dialog";
|
|
12
12
|
import * as B from "@radix-ui/react-dialog";
|
|
13
13
|
import * as Ft from "@radix-ui/react-label";
|
|
@@ -23,12 +23,13 @@ import * as Gt from "@radix-ui/react-separator";
|
|
|
23
23
|
import * as q from "@radix-ui/react-toast";
|
|
24
24
|
import { Command as U } from "cmdk";
|
|
25
25
|
import * as P from "@radix-ui/react-context-menu";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { flatten as Y, filter as I, omit as at, isEmpty as ce, isString as
|
|
29
|
-
import
|
|
26
|
+
import Js, { IconPickerItem as Ys } from "react-icons-picker";
|
|
27
|
+
import Qs from "react-dom";
|
|
28
|
+
import { flatten as Y, filter as I, omit as at, isEmpty as ce, isString as Xs, find as se, map as V, each as ie, get as z, set as fe, has as nt, includes as W, isUndefined as zr, without as Wt, forIn as Ut, findIndex as Be, last as Zs, first as ee, startsWith as Ht, isNull as qe, pick as kt, sortBy as St, isObject as eo } from "lodash-es";
|
|
29
|
+
import to from "react-quill";
|
|
30
30
|
import { atom as y, useAtom as T, useAtomValue as E, useSetAtom as de } from "jotai";
|
|
31
31
|
import qt from "flat-to-nested";
|
|
32
|
+
import { g as le, a as so } from "./Functions-7jnEwJyw.js";
|
|
32
33
|
import oo, { excludeAction as ao, ActionCreators as Ve } from "redux-undo";
|
|
33
34
|
import { getBlockComponent as rt, useChaiBlocks as no } from "@chaibuilder/runtime";
|
|
34
35
|
import { has as it } from "lodash";
|
|
@@ -393,7 +394,7 @@ function yo(e, t) {
|
|
|
393
394
|
[s, e]
|
|
394
395
|
);
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function Yr(e, t) {
|
|
397
398
|
return [
|
|
398
399
|
xo(e, t),
|
|
399
400
|
// We do wrong type assertion here, which results in throwing an error.
|
|
@@ -510,7 +511,7 @@ function jo(e, t) {
|
|
|
510
511
|
t || ko
|
|
511
512
|
);
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
+
function Qr(e) {
|
|
514
515
|
const t = Symbol(), s = Z(t);
|
|
515
516
|
(lt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
|
|
516
517
|
const o = Z(
|
|
@@ -601,7 +602,7 @@ const ct = y(null);
|
|
|
601
602
|
ct.debugLabel = "chaiBuilderPropsAtom";
|
|
602
603
|
const Bo = y({});
|
|
603
604
|
Bo.debugLabel = "chaiExternalDataAtom";
|
|
604
|
-
const
|
|
605
|
+
const Xr = () => !1, To = (e) => {
|
|
605
606
|
const t = e.replace(ge, "").split(",");
|
|
606
607
|
return { baseClasses: t[0], classes: t[1] };
|
|
607
608
|
};
|
|
@@ -619,15 +620,15 @@ function Xt(e, t, s) {
|
|
|
619
620
|
for (let r = 0; r < o.length; r++) {
|
|
620
621
|
const i = Zt(o[r]);
|
|
621
622
|
if (Object.keys(i).length > 0 && Object.keys(i).forEach((u) => {
|
|
622
|
-
o[r][u] = `slot:${
|
|
623
|
+
o[r][u] = `slot:${le()}`;
|
|
623
624
|
}), I(e, { _parent: o[r]._id }).length > 0) {
|
|
624
|
-
const u =
|
|
625
|
+
const u = le();
|
|
625
626
|
n.push({ ...o[r], oldId: o[r]._id, _id: u, _parent: s }), n.push(Y(Xt(e, o[r]._id, u)));
|
|
626
627
|
} else
|
|
627
628
|
n.push({
|
|
628
629
|
...o[r],
|
|
629
630
|
oldId: o[r]._id,
|
|
630
|
-
_id:
|
|
631
|
+
_id: le(),
|
|
631
632
|
_parent: s
|
|
632
633
|
});
|
|
633
634
|
}
|
|
@@ -640,11 +641,11 @@ function Po(e) {
|
|
|
640
641
|
const Zt = (e) => {
|
|
641
642
|
const t = {};
|
|
642
643
|
return Object.keys(e).forEach((s) => {
|
|
643
|
-
|
|
644
|
+
Xs(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
|
|
644
645
|
}), t;
|
|
645
646
|
}, Io = (e, t, s = null) => {
|
|
646
647
|
let o = se(e, { _id: t });
|
|
647
|
-
o = { ...o, oldId: o._id, _id:
|
|
648
|
+
o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
|
|
648
649
|
const n = [o];
|
|
649
650
|
I(e, { _parent: t }).length > 0 && n.push(Y(Xt(e, t, o._id)));
|
|
650
651
|
const r = Y(n);
|
|
@@ -716,7 +717,7 @@ ss.debugLabel = "globalBlocksAtom";
|
|
|
716
717
|
const K = () => {
|
|
717
718
|
const [, e] = T(Le);
|
|
718
719
|
return e;
|
|
719
|
-
},
|
|
720
|
+
}, Zr = () => {
|
|
720
721
|
const e = K(), t = E(es), s = A(
|
|
721
722
|
(o) => {
|
|
722
723
|
const n = Qt(o);
|
|
@@ -725,7 +726,7 @@ const K = () => {
|
|
|
725
726
|
[e]
|
|
726
727
|
);
|
|
727
728
|
return [t, s];
|
|
728
|
-
},
|
|
729
|
+
}, ei = () => {
|
|
729
730
|
const e = K();
|
|
730
731
|
return [A(
|
|
731
732
|
(s) => {
|
|
@@ -738,13 +739,13 @@ const K = () => {
|
|
|
738
739
|
return !0;
|
|
739
740
|
const s = rt(e);
|
|
740
741
|
return s && it(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
|
|
741
|
-
},
|
|
742
|
+
}, ti = (e) => {
|
|
742
743
|
const t = rt(e);
|
|
743
744
|
return t && it(t, "canDuplicate") ? t.canDuplicate() : !0;
|
|
744
|
-
},
|
|
745
|
+
}, si = (e) => {
|
|
745
746
|
const t = rt(e);
|
|
746
747
|
return t && it(t, "canDelete") ? t.canDelete() : !0;
|
|
747
|
-
},
|
|
748
|
+
}, oi = (e, { dragSource: t, dropTarget: s }) => {
|
|
748
749
|
const o = z(t, "data._type", ""), n = z(s, "data._type", "");
|
|
749
750
|
return Ye(n, o);
|
|
750
751
|
}, ut = y([]);
|
|
@@ -778,10 +779,10 @@ const ft = y("");
|
|
|
778
779
|
ft.debugLabel = "styleStateAtom";
|
|
779
780
|
const ns = Ae("styleBreakpoint", "xs");
|
|
780
781
|
ns.debugLabel = "styleBreakpointAtom";
|
|
781
|
-
const
|
|
782
|
+
const ai = () => ({
|
|
782
783
|
flexChild: E(os),
|
|
783
784
|
gridChild: E(as)
|
|
784
|
-
}),
|
|
785
|
+
}), ni = () => E(mt);
|
|
785
786
|
const Ce = () => {
|
|
786
787
|
const [e, t] = T(ut), s = A(
|
|
787
788
|
(o) => {
|
|
@@ -873,7 +874,7 @@ const Ce = () => {
|
|
|
873
874
|
case "styles":
|
|
874
875
|
return e.default;
|
|
875
876
|
case "slot":
|
|
876
|
-
return `${Ke}${
|
|
877
|
+
return `${Ke}${le()}`;
|
|
877
878
|
case "singular":
|
|
878
879
|
const { i18n: t, schema: s } = e;
|
|
879
880
|
return t ? Kt : z(s, "default", "");
|
|
@@ -897,17 +898,17 @@ function It(e, t, s, o, n) {
|
|
|
897
898
|
}
|
|
898
899
|
let r = Be(e, { _id: t });
|
|
899
900
|
const i = I(e, { _parent: t });
|
|
900
|
-
ce(i) || (r = Be(e, { _id:
|
|
901
|
+
ce(i) || (r = Be(e, { _id: Zs(i)._id }));
|
|
901
902
|
const u = r + 1;
|
|
902
903
|
return e.splice(u, 0, ...o), e;
|
|
903
904
|
}
|
|
904
|
-
const
|
|
905
|
+
const ri = () => {
|
|
905
906
|
const e = K(), t = $o(), [, s] = Ce(), o = A(
|
|
906
907
|
(r, i, u) => {
|
|
907
908
|
var w;
|
|
908
909
|
for (let k = 0; k < r.length; k++) {
|
|
909
910
|
const { _id: D } = r[k];
|
|
910
|
-
r[k]._id =
|
|
911
|
+
r[k]._id = le();
|
|
911
912
|
const G = I(r, { _parent: D });
|
|
912
913
|
for (let F = 0; F < G.length; F++)
|
|
913
914
|
G[F]._parent = r[k]._id;
|
|
@@ -929,7 +930,7 @@ const ni = () => {
|
|
|
929
930
|
const F = r.blocks;
|
|
930
931
|
return o(F, i, u);
|
|
931
932
|
}
|
|
932
|
-
const m =
|
|
933
|
+
const m = le(), l = rs(r.props), b = [];
|
|
933
934
|
Ut(l, (F, oe) => {
|
|
934
935
|
if (Ht(F, Ke)) {
|
|
935
936
|
const xe = F.replace(Ke, "");
|
|
@@ -1000,7 +1001,7 @@ function Go(e = "", t = "", s = []) {
|
|
|
1000
1001
|
(l) => !W(Et, l.property)
|
|
1001
1002
|
);
|
|
1002
1003
|
const r = [], i = [];
|
|
1003
|
-
|
|
1004
|
+
ie(s, (l) => {
|
|
1004
1005
|
const b = Re(l), w = se(o, kt(b, ["dark", "mq", "mod", "property"]));
|
|
1005
1006
|
if (w && (o = I(
|
|
1006
1007
|
o,
|
|
@@ -1039,7 +1040,7 @@ const is = () => T(_e), Wo = (e) => {
|
|
|
1039
1040
|
s.includes(e(u)._id)
|
|
1040
1041
|
)
|
|
1041
1042
|
), i = ee(e(_e));
|
|
1042
|
-
|
|
1043
|
+
ie(r, (u) => {
|
|
1043
1044
|
const m = e(u), l = z(m, i.prop, `${ge},`), { baseClasses: b, classes: w } = Wo(l);
|
|
1044
1045
|
n({
|
|
1045
1046
|
type: "update_props_realtime",
|
|
@@ -1049,7 +1050,7 @@ const is = () => T(_e), Wo = (e) => {
|
|
|
1049
1050
|
}
|
|
1050
1051
|
});
|
|
1051
1052
|
});
|
|
1052
|
-
}),
|
|
1053
|
+
}), ii = () => {
|
|
1053
1054
|
const e = K(), t = de(Uo);
|
|
1054
1055
|
return A(
|
|
1055
1056
|
(s, o, n) => {
|
|
@@ -1069,10 +1070,10 @@ const is = () => T(_e), Wo = (e) => {
|
|
|
1069
1070
|
}, Jo = y(Je), Yo = y(null), Qo = () => {
|
|
1070
1071
|
const [e, t] = T(Jo);
|
|
1071
1072
|
return [
|
|
1072
|
-
|
|
1073
|
+
eo(e) ? { ...Je, ...e } : Je,
|
|
1073
1074
|
t
|
|
1074
1075
|
];
|
|
1075
|
-
},
|
|
1076
|
+
}, li = () => T(Yo), Xo = y(null), Zo = () => ({ currentPage: E(Xo) }), ls = new qt({});
|
|
1076
1077
|
function ea(e) {
|
|
1077
1078
|
let t = ls.convert(e);
|
|
1078
1079
|
return t = !t.type && t.children && t.children.length ? t.children : ce(t) ? [] : [t], t;
|
|
@@ -1099,7 +1100,7 @@ function bt(e, t = !1) {
|
|
|
1099
1100
|
}
|
|
1100
1101
|
function cs(e) {
|
|
1101
1102
|
let t = [], s = I(e, { type: "GlobalBlock" });
|
|
1102
|
-
return s.length > 0 && (s = V(s, ds),
|
|
1103
|
+
return s.length > 0 && (s = V(s, ds), ie(s, (o) => {
|
|
1103
1104
|
t = [...t, ...ta(o)];
|
|
1104
1105
|
})), t;
|
|
1105
1106
|
}
|
|
@@ -1126,7 +1127,7 @@ function sa(e) {
|
|
|
1126
1127
|
const t = ea(us(e));
|
|
1127
1128
|
bt(t);
|
|
1128
1129
|
const s = gt(t, null), o = cs(s), n = {};
|
|
1129
|
-
return
|
|
1130
|
+
return ie(o, (r) => fe(n, ee(r).blockId, r)), [s, n];
|
|
1130
1131
|
}
|
|
1131
1132
|
const ps = () => {
|
|
1132
1133
|
const [e] = Qo(), { currentPage: t } = Zo(), s = E(Q);
|
|
@@ -1176,7 +1177,7 @@ const fs = y([]);
|
|
|
1176
1177
|
fs.debugLabel = "dataProvidersAtom";
|
|
1177
1178
|
const ga = () => T(fs), ht = y("SAVED");
|
|
1178
1179
|
ht.debugLabel = "pageSyncStateAtom";
|
|
1179
|
-
const
|
|
1180
|
+
const ci = () => {
|
|
1180
1181
|
const [e, t] = T(ht), s = ve("onSaveBlocks", async () => {
|
|
1181
1182
|
}), o = ve("onSavePage", async () => {
|
|
1182
1183
|
}), n = ve("onSyncStatusChange", () => {
|
|
@@ -1220,13 +1221,13 @@ const li = () => {
|
|
|
1220
1221
|
};
|
|
1221
1222
|
}, ba = () => T(ns), gs = Ae("canvasWidth", 800), bs = y((e) => {
|
|
1222
1223
|
const t = e(gs);
|
|
1223
|
-
return
|
|
1224
|
-
}),
|
|
1224
|
+
return so(t).toLowerCase();
|
|
1225
|
+
}), di = () => {
|
|
1225
1226
|
const [e, t] = T(gs), s = E(bs), [o, n] = ba();
|
|
1226
1227
|
return je(() => {
|
|
1227
1228
|
o !== "xs" && n(s);
|
|
1228
1229
|
}, [s, o, n]), [e, s, t];
|
|
1229
|
-
}, ha = Ae("canvasZoom", 100),
|
|
1230
|
+
}, ha = Ae("canvasZoom", 100), ui = () => T(ha), hs = y([]), xa = () => {
|
|
1230
1231
|
const [e, t] = T(hs), s = de(yt), o = A(
|
|
1231
1232
|
(n) => {
|
|
1232
1233
|
t(n), s([]);
|
|
@@ -1234,7 +1235,7 @@ const li = () => {
|
|
|
1234
1235
|
[t, s]
|
|
1235
1236
|
);
|
|
1236
1237
|
return [e, o];
|
|
1237
|
-
}, yt = y([]),
|
|
1238
|
+
}, yt = y([]), pi = () => {
|
|
1238
1239
|
const [e, t] = T(yt), s = de(hs), o = A(
|
|
1239
1240
|
(n) => {
|
|
1240
1241
|
t(n), s([]);
|
|
@@ -1242,10 +1243,10 @@ const li = () => {
|
|
|
1242
1243
|
[t, s]
|
|
1243
1244
|
);
|
|
1244
1245
|
return [e, o];
|
|
1245
|
-
}, xs = Ae("darkMode", !1),
|
|
1246
|
+
}, xs = Ae("darkMode", !1), mi = () => {
|
|
1246
1247
|
const [e, t] = T(xs);
|
|
1247
1248
|
return [e, t];
|
|
1248
|
-
}, ya = y(!1),
|
|
1249
|
+
}, ya = y(!1), fi = () => {
|
|
1249
1250
|
const [e, t] = T(ya);
|
|
1250
1251
|
return [e, t];
|
|
1251
1252
|
}, va = () => {
|
|
@@ -1253,14 +1254,14 @@ const li = () => {
|
|
|
1253
1254
|
return A(
|
|
1254
1255
|
(o, n = null) => {
|
|
1255
1256
|
const r = [];
|
|
1256
|
-
|
|
1257
|
+
ie(o, (i) => {
|
|
1257
1258
|
const m = Io(t, i, n === i ? null : n);
|
|
1258
1259
|
r.push(z(m, "0._id", "")), e({ type: "add_duplicate_blocks", payload: m });
|
|
1259
1260
|
}), s(r), e({ type: "create_snapshot" });
|
|
1260
1261
|
},
|
|
1261
1262
|
[t, s, e]
|
|
1262
1263
|
);
|
|
1263
|
-
}, wa = y([]),
|
|
1264
|
+
}, wa = y([]), gi = () => {
|
|
1264
1265
|
const [e, t] = T(wa), s = A(
|
|
1265
1266
|
(o) => {
|
|
1266
1267
|
t((n) => W(n, o) ? Wt(n, o) : [...n, o]);
|
|
@@ -1268,16 +1269,16 @@ const li = () => {
|
|
|
1268
1269
|
[t]
|
|
1269
1270
|
);
|
|
1270
1271
|
return [e, t, s];
|
|
1271
|
-
}, Na = y(""), ka = () => T(Na),
|
|
1272
|
+
}, Na = y(""), ka = () => T(Na), bi = () => {
|
|
1272
1273
|
const e = E(Q), t = K(), s = ps(), [, , o] = Ho();
|
|
1273
1274
|
return A(
|
|
1274
1275
|
async (n, r) => {
|
|
1275
|
-
const i =
|
|
1276
|
+
const i = le(16), u = V(e, (m) => (m._id === n && (m._globalBlockId = i, m._name = r), m));
|
|
1276
1277
|
t({ type: "set_page_blocks", payload: u }), o();
|
|
1277
1278
|
},
|
|
1278
1279
|
[e, t, s, o]
|
|
1279
1280
|
);
|
|
1280
|
-
},
|
|
1281
|
+
}, hi = () => ({}), Sa = () => {
|
|
1281
1282
|
const e = E(Q), t = K();
|
|
1282
1283
|
return A(
|
|
1283
1284
|
(s, o) => {
|
|
@@ -1286,7 +1287,7 @@ const li = () => {
|
|
|
1286
1287
|
},
|
|
1287
1288
|
[e, t]
|
|
1288
1289
|
);
|
|
1289
|
-
},
|
|
1290
|
+
}, xi = () => {
|
|
1290
1291
|
const e = E(yt), [t, s] = xa(), o = va(), n = Sa();
|
|
1291
1292
|
return {
|
|
1292
1293
|
canPaste: Ws(
|
|
@@ -1300,7 +1301,7 @@ const li = () => {
|
|
|
1300
1301
|
[t, e, o, n, s]
|
|
1301
1302
|
)
|
|
1302
1303
|
};
|
|
1303
|
-
}, ja = y(""),
|
|
1304
|
+
}, ja = y(""), yi = () => {
|
|
1304
1305
|
const e = E(ja), t = A(() => {
|
|
1305
1306
|
}, []), s = A(() => {
|
|
1306
1307
|
}, []), o = A(() => {
|
|
@@ -1309,7 +1310,7 @@ const li = () => {
|
|
|
1309
1310
|
}, ys = (e, t) => {
|
|
1310
1311
|
const s = [], o = I(e, (n) => W(t, n._id) || W(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1311
1312
|
return ce(s) ? o : ys(o, s);
|
|
1312
|
-
},
|
|
1313
|
+
}, vi = () => {
|
|
1313
1314
|
const e = K(), t = E(Q), [s, o] = Ce();
|
|
1314
1315
|
return A(
|
|
1315
1316
|
(n) => {
|
|
@@ -1327,15 +1328,15 @@ const li = () => {
|
|
|
1327
1328
|
s.includes(e(u)._id)
|
|
1328
1329
|
)
|
|
1329
1330
|
);
|
|
1330
|
-
|
|
1331
|
+
ie(i, (u) => {
|
|
1331
1332
|
const m = e(u), l = o;
|
|
1332
1333
|
let { classes: b, baseClasses: w } = To(z(m, r.prop, "styles:,"));
|
|
1333
|
-
|
|
1334
|
+
ie(l, (k) => {
|
|
1334
1335
|
const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
1335
1336
|
b = b.replace(D, " ").replace(/ +/g, " ").trim();
|
|
1336
1337
|
const G = ee(k.split(":"));
|
|
1337
1338
|
W(["2xl", "xl", "lg", "md", "sm"], G) && l.push(k.split(":").pop().trim());
|
|
1338
|
-
}),
|
|
1339
|
+
}), ie(l, (k) => {
|
|
1339
1340
|
const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
1340
1341
|
w = w.replace(D, " ").replace(/ +/g, " ").trim();
|
|
1341
1342
|
}), n({
|
|
@@ -1348,7 +1349,7 @@ const li = () => {
|
|
|
1348
1349
|
}
|
|
1349
1350
|
});
|
|
1350
1351
|
});
|
|
1351
|
-
}),
|
|
1352
|
+
}), wi = () => {
|
|
1352
1353
|
const e = K(), t = de(Aa);
|
|
1353
1354
|
return A(
|
|
1354
1355
|
(s, o) => {
|
|
@@ -1362,7 +1363,7 @@ const li = () => {
|
|
|
1362
1363
|
return [];
|
|
1363
1364
|
const n = z(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
|
|
1364
1365
|
return I(V(n.trim().split(" "), Re), (r) => !qe(r));
|
|
1365
|
-
}),
|
|
1366
|
+
}), Ni = () => E(vs), Lt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ca = y((e) => {
|
|
1366
1367
|
const t = e(bs), s = e(ft), o = e(xs), n = _a(t);
|
|
1367
1368
|
let r = I(e(vs), { mod: s });
|
|
1368
1369
|
return Ht(s, "_") || (r = I(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Lt[i.mq] - Lt[u.mq]), o || (r = I(r, { dark: !1 })), r;
|
|
@@ -1392,12 +1393,12 @@ const li = () => {
|
|
|
1392
1393
|
break;
|
|
1393
1394
|
}
|
|
1394
1395
|
return t;
|
|
1395
|
-
},
|
|
1396
|
+
}, ki = () => E(Ca), Si = () => T(ft), ws = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
|
|
1396
1397
|
n({
|
|
1397
1398
|
type: "update_props_realtime",
|
|
1398
1399
|
payload: { ids: s, props: o }
|
|
1399
1400
|
});
|
|
1400
|
-
}),
|
|
1401
|
+
}), ji = () => {
|
|
1401
1402
|
const { createSnapshot: e } = xt(), t = K(), s = de(ws);
|
|
1402
1403
|
return A(
|
|
1403
1404
|
(o, n) => {
|
|
@@ -1405,7 +1406,7 @@ const li = () => {
|
|
|
1405
1406
|
},
|
|
1406
1407
|
[e, t, s]
|
|
1407
1408
|
);
|
|
1408
|
-
},
|
|
1409
|
+
}, Ai = () => {
|
|
1409
1410
|
const e = K(), t = de(ws);
|
|
1410
1411
|
return A(
|
|
1411
1412
|
(s, o) => {
|
|
@@ -1418,7 +1419,7 @@ const li = () => {
|
|
|
1418
1419
|
props: {},
|
|
1419
1420
|
modalProps: {},
|
|
1420
1421
|
backdropClose: !0
|
|
1421
|
-
}, Ba = y(Ns),
|
|
1422
|
+
}, Ba = y(Ns), Ci = () => {
|
|
1422
1423
|
const [e, t] = T(Ba), s = A(
|
|
1423
1424
|
(n, r = {}, i = {}) => {
|
|
1424
1425
|
t({ name: n, props: r, modalProps: i });
|
|
@@ -1436,15 +1437,15 @@ const li = () => {
|
|
|
1436
1437
|
openModal: s,
|
|
1437
1438
|
closeModal: o
|
|
1438
1439
|
};
|
|
1439
|
-
},
|
|
1440
|
+
}, _i = () => E(ms), Ta = y(""), Ra = y(null), Bi = () => T(Ta), Ti = () => T(Ra), Pa = Ae("selectedBreakpoints", ["XS", "MD", "XL"]), Ri = () => {
|
|
1440
1441
|
const [e, t] = T(Pa);
|
|
1441
1442
|
return [e, t];
|
|
1442
|
-
},
|
|
1443
|
+
}, Pi = () => {
|
|
1443
1444
|
const e = de(ze), { clear: t } = xt(), [, s] = Ce(), [, o] = ka(), [, n] = is();
|
|
1444
1445
|
return () => {
|
|
1445
1446
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
1446
1447
|
};
|
|
1447
|
-
}, Ia = y({ en: {} }),
|
|
1448
|
+
}, Ia = y({ en: {} }), Ii = () => {
|
|
1448
1449
|
const [e, t] = T(Ia), s = A(
|
|
1449
1450
|
(o, n, r) => {
|
|
1450
1451
|
fe(e, `${o}.${n}`, r), t(e);
|
|
@@ -1452,10 +1453,10 @@ const li = () => {
|
|
|
1452
1453
|
[e, t]
|
|
1453
1454
|
);
|
|
1454
1455
|
return [e, s];
|
|
1455
|
-
},
|
|
1456
|
+
}, Mi = (e, t) => {
|
|
1456
1457
|
const [s] = T(ct);
|
|
1457
1458
|
return z(s, e, t);
|
|
1458
|
-
}, Ma = y([]),
|
|
1459
|
+
}, Ma = y([]), Di = () => {
|
|
1459
1460
|
const [e, t] = De(!1), [s, o] = T(Ma), n = ve("getUILibraryBlocks", () => []);
|
|
1460
1461
|
return je(() => {
|
|
1461
1462
|
(async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
|
|
@@ -1527,12 +1528,12 @@ const vt = be(
|
|
|
1527
1528
|
}
|
|
1528
1529
|
), La = p.forwardRef(
|
|
1529
1530
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, r) => {
|
|
1530
|
-
const i = o ?
|
|
1531
|
+
const i = o ? Us : "button";
|
|
1531
1532
|
return /* @__PURE__ */ a.jsx(i, { className: c(vt({ variant: t, size: s, className: e })), ref: r, ...n });
|
|
1532
1533
|
}
|
|
1533
1534
|
);
|
|
1534
1535
|
La.displayName = "Button";
|
|
1535
|
-
const
|
|
1536
|
+
const Ei = me.Root, za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: c("border-b", e), ...t }));
|
|
1536
1537
|
za.displayName = "AccordionItem";
|
|
1537
1538
|
const Va = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
1538
1539
|
me.Trigger,
|
|
@@ -1545,7 +1546,7 @@ const Va = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1545
1546
|
...s,
|
|
1546
1547
|
children: [
|
|
1547
1548
|
t,
|
|
1548
|
-
/* @__PURE__ */ a.jsx(
|
|
1549
|
+
/* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
1549
1550
|
]
|
|
1550
1551
|
}
|
|
1551
1552
|
) }));
|
|
@@ -1601,7 +1602,7 @@ const Ha = be(
|
|
|
1601
1602
|
variant: "default"
|
|
1602
1603
|
}
|
|
1603
1604
|
}
|
|
1604
|
-
),
|
|
1605
|
+
), Oi = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ha({ variant: t }), e), ...s }), Li = $.Root, zi = $.Trigger, ks = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx($.Portal, { className: c(e), ...t });
|
|
1605
1606
|
ks.displayName = $.Portal.displayName;
|
|
1606
1607
|
const Ss = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1607
1608
|
$.Overlay,
|
|
@@ -1807,7 +1808,7 @@ const Ze = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1807
1808
|
}
|
|
1808
1809
|
));
|
|
1809
1810
|
Ze.displayName = he.Content.displayName;
|
|
1810
|
-
const
|
|
1811
|
+
const Vi = we.Portal, $i = we.Provider, Fi = we.Root, Gi = we.Trigger, xn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1811
1812
|
we.Content,
|
|
1812
1813
|
{
|
|
1813
1814
|
ref: o,
|
|
@@ -1820,7 +1821,7 @@ const zi = we.Portal, Vi = we.Provider, $i = we.Root, Fi = we.Trigger, xn = p.fo
|
|
|
1820
1821
|
}
|
|
1821
1822
|
));
|
|
1822
1823
|
xn.displayName = we.Content.displayName;
|
|
1823
|
-
const
|
|
1824
|
+
const Wi = Se.Root, Ui = Se.Trigger, yn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1824
1825
|
Se.Content,
|
|
1825
1826
|
{
|
|
1826
1827
|
ref: n,
|
|
@@ -1834,7 +1835,7 @@ const Gi = Se.Root, Wi = Se.Trigger, yn = p.forwardRef(({ className: e, align: t
|
|
|
1834
1835
|
}
|
|
1835
1836
|
) }));
|
|
1836
1837
|
yn.displayName = Se.Content.displayName;
|
|
1837
|
-
const
|
|
1838
|
+
const Hi = C.Menu, qi = C.Group, Ki = C.Portal, Ji = C.Sub, Yi = C.RadioGroup, vn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1838
1839
|
C.Root,
|
|
1839
1840
|
{
|
|
1840
1841
|
ref: s,
|
|
@@ -1958,7 +1959,7 @@ const Bn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.S
|
|
|
1958
1959
|
Bn.displayName = C.Separator.displayName;
|
|
1959
1960
|
const Tn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
1960
1961
|
Tn.displayname = "MenubarShortcut";
|
|
1961
|
-
const
|
|
1962
|
+
const Qi = Oe.Root, Xi = Oe.Trigger, Rn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1962
1963
|
Oe.Content,
|
|
1963
1964
|
{
|
|
1964
1965
|
ref: n,
|
|
@@ -1972,7 +1973,7 @@ const Yi = Oe.Root, Qi = Oe.Trigger, Rn = p.forwardRef(({ className: e, align: t
|
|
|
1972
1973
|
}
|
|
1973
1974
|
));
|
|
1974
1975
|
Rn.displayName = Oe.Content.displayName;
|
|
1975
|
-
const
|
|
1976
|
+
const Zi = O.Root, el = O.Group, tl = O.Value, Pn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1976
1977
|
O.Trigger,
|
|
1977
1978
|
{
|
|
1978
1979
|
ref: o,
|
|
@@ -1983,7 +1984,7 @@ const Xi = O.Root, Zi = O.Group, el = O.Value, Pn = p.forwardRef(({ className: e
|
|
|
1983
1984
|
...s,
|
|
1984
1985
|
children: [
|
|
1985
1986
|
t,
|
|
1986
|
-
/* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1987
|
+
/* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(qs, { className: "h-4 w-4 opacity-50" }) })
|
|
1987
1988
|
]
|
|
1988
1989
|
}
|
|
1989
1990
|
));
|
|
@@ -2032,7 +2033,7 @@ const Dn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2032
2033
|
Dn.displayName = O.Item.displayName;
|
|
2033
2034
|
const En = 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 }));
|
|
2034
2035
|
En.displayName = O.Separator.displayName;
|
|
2035
|
-
const
|
|
2036
|
+
const sl = B.Root, ol = B.Trigger, al = B.Close, Ts = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
|
|
2036
2037
|
Ts.displayName = B.Portal.displayName;
|
|
2037
2038
|
const Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2038
2039
|
B.Overlay,
|
|
@@ -2082,7 +2083,7 @@ const $n = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.T
|
|
|
2082
2083
|
$n.displayName = B.Title.displayName;
|
|
2083
2084
|
const Fn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
2084
2085
|
Fn.displayName = B.Description.displayName;
|
|
2085
|
-
const
|
|
2086
|
+
const nl = R.Root, rl = R.Trigger, il = R.Group, ll = R.Portal, cl = R.Sub, dl = R.RadioGroup, Gn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2086
2087
|
R.SubTrigger,
|
|
2087
2088
|
{
|
|
2088
2089
|
ref: n,
|
|
@@ -2341,7 +2342,7 @@ const Ds = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.T
|
|
|
2341
2342
|
Ds.displayName = q.Title.displayName;
|
|
2342
2343
|
const Es = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
|
|
2343
2344
|
Es.displayName = q.Description.displayName;
|
|
2344
|
-
function
|
|
2345
|
+
function ul() {
|
|
2345
2346
|
const { toasts: e } = ar();
|
|
2346
2347
|
return /* @__PURE__ */ a.jsxs(nr, { children: [
|
|
2347
2348
|
e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(Is, { ...r, children: [
|
|
@@ -2355,7 +2356,7 @@ function dl() {
|
|
|
2355
2356
|
/* @__PURE__ */ a.jsx(Ps, {})
|
|
2356
2357
|
] });
|
|
2357
2358
|
}
|
|
2358
|
-
const
|
|
2359
|
+
const pl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Os = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2359
2360
|
U,
|
|
2360
2361
|
{
|
|
2361
2362
|
ref: s,
|
|
@@ -2367,8 +2368,8 @@ const ul = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2367
2368
|
}
|
|
2368
2369
|
));
|
|
2369
2370
|
Os.displayName = U.displayName;
|
|
2370
|
-
const
|
|
2371
|
-
/* @__PURE__ */ a.jsx(
|
|
2371
|
+
const ml = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(js, { ...t, children: /* @__PURE__ */ a.jsx(wt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Os, { 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 }) }) }), lr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2372
|
+
/* @__PURE__ */ a.jsx(Ks, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2372
2373
|
/* @__PURE__ */ a.jsx(
|
|
2373
2374
|
U.Input,
|
|
2374
2375
|
{
|
|
@@ -2421,7 +2422,7 @@ const mr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2421
2422
|
mr.displayName = U.Item.displayName;
|
|
2422
2423
|
const fr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2423
2424
|
fr.displayName = "CommandShortcut";
|
|
2424
|
-
const
|
|
2425
|
+
const fl = P.Root, gl = P.Trigger, bl = P.Group, hl = P.Portal, xl = P.Sub, yl = P.RadioGroup, gr = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2425
2426
|
P.SubTrigger,
|
|
2426
2427
|
{
|
|
2427
2428
|
ref: n,
|
|
@@ -2524,7 +2525,7 @@ kr.displayName = "ContextMenuShortcut";
|
|
|
2524
2525
|
const Sr = (e) => {
|
|
2525
2526
|
try {
|
|
2526
2527
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2527
|
-
|
|
2528
|
+
Qs.render(/* @__PURE__ */ a.jsx(Ys, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
2528
2529
|
let o = s.innerHTML;
|
|
2529
2530
|
setTimeout(() => t.removeChild(s), 1e3);
|
|
2530
2531
|
const r = new DOMParser().parseFromString(o, "image/svg+xml"), i = r.querySelector("svg");
|
|
@@ -2532,7 +2533,7 @@ const Sr = (e) => {
|
|
|
2532
2533
|
} catch {
|
|
2533
2534
|
return "";
|
|
2534
2535
|
}
|
|
2535
|
-
},
|
|
2536
|
+
}, vl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
|
|
2536
2537
|
const n = (r) => {
|
|
2537
2538
|
t("<svg />");
|
|
2538
2539
|
const i = Sr(r);
|
|
@@ -2548,7 +2549,7 @@ const Sr = (e) => {
|
|
|
2548
2549
|
}
|
|
2549
2550
|
),
|
|
2550
2551
|
/* @__PURE__ */ a.jsx(
|
|
2551
|
-
|
|
2552
|
+
Js,
|
|
2552
2553
|
{
|
|
2553
2554
|
value: e ? "BiSolidGrid" : null,
|
|
2554
2555
|
onChange: n,
|
|
@@ -2584,7 +2585,7 @@ const Sr = (e) => {
|
|
|
2584
2585
|
}
|
|
2585
2586
|
)
|
|
2586
2587
|
] });
|
|
2587
|
-
}, jr = et.lazy(() => import("./UnsplashImages-
|
|
2588
|
+
}, jr = et.lazy(() => import("./UnsplashImages-41Y3q5_Q.js")), Ar = et.lazy(() => import("./UploadImages-xBg-kbKv.js")), Ls = ({
|
|
2588
2589
|
isModalView: e = !1,
|
|
2589
2590
|
onSelect: t = () => {
|
|
2590
2591
|
}
|
|
@@ -2600,7 +2601,7 @@ const Sr = (e) => {
|
|
|
2600
2601
|
s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(Nt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(jr, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(Nt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ar, { isModalView: e, onSelect: t }) }) })
|
|
2601
2602
|
] })
|
|
2602
2603
|
] });
|
|
2603
|
-
},
|
|
2604
|
+
}, wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2604
2605
|
__proto__: null,
|
|
2605
2606
|
default: Ls
|
|
2606
2607
|
}, Symbol.toStringTag, { value: "Module" })), Vt = ({ children: e, onSelect: t }) => {
|
|
@@ -2611,7 +2612,7 @@ const Sr = (e) => {
|
|
|
2611
2612
|
/* @__PURE__ */ a.jsx(en, { asChild: !0, children: e }),
|
|
2612
2613
|
/* @__PURE__ */ a.jsx(wt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Ls, { isModalView: !0, onSelect: n }) }) })
|
|
2613
2614
|
] });
|
|
2614
|
-
},
|
|
2615
|
+
}, Nl = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
2615
2616
|
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Vt, { 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" }) }),
|
|
2616
2617
|
/* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
|
|
2617
2618
|
/* @__PURE__ */ a.jsx(Vt, { 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 || !ce(e) ? "Replace Image" : "Choose Image" }) }),
|
|
@@ -2628,7 +2629,7 @@ const Sr = (e) => {
|
|
|
2628
2629
|
}
|
|
2629
2630
|
)
|
|
2630
2631
|
] })
|
|
2631
|
-
] }),
|
|
2632
|
+
] }), kl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
|
|
2632
2633
|
const r = {
|
|
2633
2634
|
toolbar: [
|
|
2634
2635
|
["bold", "italic", "underline", "strike", "blockquote"],
|
|
@@ -2652,7 +2653,7 @@ const Sr = (e) => {
|
|
|
2652
2653
|
"image"
|
|
2653
2654
|
];
|
|
2654
2655
|
return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
|
|
2655
|
-
|
|
2656
|
+
to,
|
|
2656
2657
|
{
|
|
2657
2658
|
id: e,
|
|
2658
2659
|
value: s,
|
|
@@ -2664,7 +2665,7 @@ const Sr = (e) => {
|
|
|
2664
2665
|
className: "mt-1 rounded-md"
|
|
2665
2666
|
}
|
|
2666
2667
|
);
|
|
2667
|
-
},
|
|
2668
|
+
}, Sl = ({ schema: e, formData: t, onChange: s }) => {
|
|
2668
2669
|
const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: m = "self" } = t;
|
|
2669
2670
|
return je(() => {
|
|
2670
2671
|
(async () => {
|
|
@@ -2723,57 +2724,57 @@ export {
|
|
|
2723
2724
|
ct as A,
|
|
2724
2725
|
La as B,
|
|
2725
2726
|
fs as C,
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2727
|
+
ul as D,
|
|
2728
|
+
Li as E,
|
|
2729
|
+
zi as F,
|
|
2729
2730
|
qa as G,
|
|
2730
2731
|
Ka as H,
|
|
2731
2732
|
Ya as I,
|
|
2732
2733
|
Qa as J,
|
|
2733
2734
|
Ja as K,
|
|
2734
2735
|
Za as L,
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2736
|
+
Mi as M,
|
|
2737
|
+
_i as N,
|
|
2738
|
+
Ci as O,
|
|
2739
|
+
ri as P,
|
|
2740
|
+
ii as Q,
|
|
2740
2741
|
Ho as R,
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2742
|
+
pl as S,
|
|
2743
|
+
$i as T,
|
|
2744
|
+
di as U,
|
|
2745
|
+
ui as V,
|
|
2745
2746
|
Zo as W,
|
|
2746
|
-
|
|
2747
|
-
|
|
2747
|
+
mi as X,
|
|
2748
|
+
fi as Y,
|
|
2748
2749
|
ps as Z,
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2750
|
+
gi as _,
|
|
2751
|
+
Yr as a,
|
|
2752
|
+
Wi as a$,
|
|
2753
|
+
bi as a0,
|
|
2754
|
+
hi as a1,
|
|
2755
|
+
yi as a2,
|
|
2756
|
+
Ii as a3,
|
|
2757
|
+
wi as a4,
|
|
2758
|
+
ki as a5,
|
|
2759
|
+
Ni as a6,
|
|
2760
|
+
ni as a7,
|
|
2760
2761
|
ba as a8,
|
|
2761
|
-
|
|
2762
|
+
Di as a9,
|
|
2762
2763
|
Ze as aA,
|
|
2763
|
-
|
|
2764
|
+
el as aB,
|
|
2764
2765
|
Mn as aC,
|
|
2765
|
-
|
|
2766
|
-
|
|
2766
|
+
Fi as aD,
|
|
2767
|
+
Gi as aE,
|
|
2767
2768
|
Ea as aF,
|
|
2768
2769
|
xn as aG,
|
|
2769
2770
|
Xn as aH,
|
|
2770
2771
|
fn as aI,
|
|
2771
2772
|
Oa as aJ,
|
|
2772
|
-
|
|
2773
|
-
|
|
2773
|
+
Qi as aK,
|
|
2774
|
+
Xi as aL,
|
|
2774
2775
|
Rn as aM,
|
|
2775
|
-
|
|
2776
|
-
|
|
2776
|
+
nl as aN,
|
|
2777
|
+
rl as aO,
|
|
2777
2778
|
Un as aP,
|
|
2778
2779
|
Jn as aQ,
|
|
2779
2780
|
Yn as aR,
|
|
@@ -2782,20 +2783,20 @@ export {
|
|
|
2782
2783
|
pa as aU,
|
|
2783
2784
|
ra as aV,
|
|
2784
2785
|
fa as aW,
|
|
2785
|
-
|
|
2786
|
-
|
|
2786
|
+
ti as aX,
|
|
2787
|
+
si as aY,
|
|
2787
2788
|
aa as aZ,
|
|
2788
2789
|
ca as a_,
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2790
|
+
Si as aa,
|
|
2791
|
+
Zr as ab,
|
|
2792
|
+
ji as ac,
|
|
2793
|
+
Ai as ad,
|
|
2794
|
+
ai as ae,
|
|
2794
2795
|
$o as af,
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2796
|
+
Bi as ag,
|
|
2797
|
+
ci as ah,
|
|
2798
|
+
Ti as ai,
|
|
2799
|
+
Ri as aj,
|
|
2799
2800
|
is as ak,
|
|
2800
2801
|
js as al,
|
|
2801
2802
|
wt as am,
|
|
@@ -2803,9 +2804,9 @@ export {
|
|
|
2803
2804
|
on as ao,
|
|
2804
2805
|
an as ap,
|
|
2805
2806
|
Xa as aq,
|
|
2806
|
-
|
|
2807
|
+
Zi as ar,
|
|
2807
2808
|
Pn as as,
|
|
2808
|
-
|
|
2809
|
+
tl as at,
|
|
2809
2810
|
In as au,
|
|
2810
2811
|
Dn as av,
|
|
2811
2812
|
da as aw,
|
|
@@ -2813,8 +2814,8 @@ export {
|
|
|
2813
2814
|
Bs as ay,
|
|
2814
2815
|
Xe as az,
|
|
2815
2816
|
Z as b,
|
|
2816
|
-
|
|
2817
|
-
|
|
2817
|
+
ol as b$,
|
|
2818
|
+
Ui as b0,
|
|
2818
2819
|
yn as b1,
|
|
2819
2820
|
Os as b2,
|
|
2820
2821
|
lr as b3,
|
|
@@ -2824,45 +2825,45 @@ export {
|
|
|
2824
2825
|
mr as b7,
|
|
2825
2826
|
sn as b8,
|
|
2826
2827
|
en as b9,
|
|
2827
|
-
|
|
2828
|
-
|
|
2828
|
+
gl as bA,
|
|
2829
|
+
oi as bB,
|
|
2829
2830
|
Da as bC,
|
|
2830
2831
|
vt as bD,
|
|
2831
2832
|
Ua as bE,
|
|
2832
|
-
|
|
2833
|
+
Oi as bF,
|
|
2833
2834
|
Ha as bG,
|
|
2834
2835
|
ln as bH,
|
|
2835
2836
|
_s as bI,
|
|
2836
2837
|
vn as bJ,
|
|
2837
|
-
|
|
2838
|
+
Hi as bK,
|
|
2838
2839
|
wn as bL,
|
|
2839
2840
|
Sn as bM,
|
|
2840
2841
|
jn as bN,
|
|
2841
2842
|
Bn as bO,
|
|
2842
2843
|
_n as bP,
|
|
2843
2844
|
An as bQ,
|
|
2844
|
-
|
|
2845
|
+
Yi as bR,
|
|
2845
2846
|
Cn as bS,
|
|
2846
|
-
|
|
2847
|
+
Ki as bT,
|
|
2847
2848
|
kn as bU,
|
|
2848
2849
|
Nn as bV,
|
|
2849
|
-
|
|
2850
|
-
|
|
2850
|
+
qi as bW,
|
|
2851
|
+
Ji as bX,
|
|
2851
2852
|
Tn as bY,
|
|
2852
2853
|
En as bZ,
|
|
2853
|
-
|
|
2854
|
+
sl as b_,
|
|
2854
2855
|
Pt as ba,
|
|
2855
2856
|
Rt as bb,
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2857
|
+
kl as bc,
|
|
2858
|
+
vl as bd,
|
|
2859
|
+
Nl as be,
|
|
2860
|
+
Sl as bf,
|
|
2861
|
+
Ei as bg,
|
|
2861
2862
|
za as bh,
|
|
2862
2863
|
Va as bi,
|
|
2863
2864
|
$a as bj,
|
|
2864
2865
|
pn as bk,
|
|
2865
|
-
|
|
2866
|
+
Vi as bl,
|
|
2866
2867
|
oa as bm,
|
|
2867
2868
|
bn,
|
|
2868
2869
|
nn as bo,
|
|
@@ -2876,9 +2877,9 @@ export {
|
|
|
2876
2877
|
ua as bw,
|
|
2877
2878
|
xr as bx,
|
|
2878
2879
|
hr as by,
|
|
2879
|
-
|
|
2880
|
+
fl as bz,
|
|
2880
2881
|
po as c,
|
|
2881
|
-
|
|
2882
|
+
al as c0,
|
|
2882
2883
|
Ln as c1,
|
|
2883
2884
|
zn as c2,
|
|
2884
2885
|
Vn as c3,
|
|
@@ -2887,16 +2888,16 @@ export {
|
|
|
2887
2888
|
Hn as c6,
|
|
2888
2889
|
Kn as c7,
|
|
2889
2890
|
Qn as c8,
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2891
|
+
il as c9,
|
|
2892
|
+
ll as ca,
|
|
2893
|
+
cl as cb,
|
|
2893
2894
|
Wn as cc,
|
|
2894
2895
|
Gn as cd,
|
|
2895
|
-
|
|
2896
|
+
dl as ce,
|
|
2896
2897
|
sr as cf,
|
|
2897
2898
|
ar as cg,
|
|
2898
2899
|
or as ch,
|
|
2899
|
-
|
|
2900
|
+
ml as ci,
|
|
2900
2901
|
fr as cj,
|
|
2901
2902
|
pr as ck,
|
|
2902
2903
|
yr as cl,
|
|
@@ -2904,34 +2905,34 @@ export {
|
|
|
2904
2905
|
wr as cn,
|
|
2905
2906
|
Nr as co,
|
|
2906
2907
|
kr as cp,
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2908
|
+
bl as cq,
|
|
2909
|
+
hl as cr,
|
|
2910
|
+
xl as cs,
|
|
2910
2911
|
br as ct,
|
|
2911
2912
|
gr as cu,
|
|
2912
|
-
|
|
2913
|
-
|
|
2913
|
+
yl as cv,
|
|
2914
|
+
wl as cw,
|
|
2914
2915
|
yo as d,
|
|
2915
2916
|
xo as e,
|
|
2916
2917
|
Ae as f,
|
|
2917
|
-
|
|
2918
|
+
Qr as g,
|
|
2918
2919
|
Ko as h,
|
|
2919
2920
|
ve as i,
|
|
2920
2921
|
Ce as j,
|
|
2921
|
-
|
|
2922
|
-
|
|
2922
|
+
pi as k,
|
|
2923
|
+
vi as l,
|
|
2923
2924
|
va as m,
|
|
2924
2925
|
xa as n,
|
|
2925
|
-
|
|
2926
|
+
xi as o,
|
|
2926
2927
|
xt as p,
|
|
2927
2928
|
Q as q,
|
|
2928
2929
|
Bo as r,
|
|
2929
2930
|
ga as s,
|
|
2930
2931
|
ht as t,
|
|
2931
2932
|
Jt as u,
|
|
2932
|
-
|
|
2933
|
-
|
|
2933
|
+
Xr as v,
|
|
2934
|
+
ei as w,
|
|
2934
2935
|
Qo as x,
|
|
2935
|
-
|
|
2936
|
-
|
|
2936
|
+
li as y,
|
|
2937
|
+
Pi as z
|
|
2937
2938
|
};
|