@chaibuilder/sdk 2.5.2 → 2.5.4
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/core.cjs +1 -1
- package/dist/core.js +12 -9
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +112 -112
- package/package.json +1 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { registerChaiBlockSchema as d, StylesProp as u, registerChaiBlock as p, stylesProp as _, closestBlockProp as D } from "@chaibuilder/runtime";
|
|
2
|
-
import { jsx as a, jsxs as
|
|
3
|
-
import { c as P, g as
|
|
2
|
+
import { jsx as a, jsxs as f, Fragment as A } from "react/jsx-runtime";
|
|
3
|
+
import { c as P, g as I } from "./common-functions-BGzDsf1z.js";
|
|
4
4
|
import * as y from "react";
|
|
5
5
|
import { createElement as w } from "react";
|
|
6
|
-
import { ButtonIcon as M, CopyIcon as V, CodeIcon as j, DividerHorizontalIcon as
|
|
6
|
+
import { ButtonIcon as M, CopyIcon as V, CodeIcon as j, DividerHorizontalIcon as F, CheckboxIcon as U, InputIcon as E, LetterCaseToggleIcon as q, RadiobuttonIcon as G, DropdownMenuIcon as Z, HeadingIcon as O, TableIcon as Y, BorderTopIcon as W, BorderAllIcon as Q, ViewHorizontalIcon as J, DragHandleHorizontalIcon as X, SketchLogoIcon as K, ImageIcon as ee, Link1Icon as te, RowsIcon as oe, ColumnsIcon as le, TextIcon as re, CursorTextIcon as ne, SpaceBetweenVerticallyIcon as ie, VideoIcon as ae, LoopIcon as H } from "@radix-ui/react-icons";
|
|
7
7
|
import { isEmpty as C, get as h, map as T, isNull as se, omit as ce, pick as pe } from "lodash-es";
|
|
8
|
-
import { FileCode as de, GroupIcon as ue, GlobeIcon as
|
|
8
|
+
import { FileCode as de, GroupIcon as ue, GlobeIcon as $, Columns as me, Rows as ye } from "lucide-react";
|
|
9
9
|
const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div", { className: P("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ a("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ a("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ge = (e) => {
|
|
10
10
|
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: i } = e;
|
|
11
11
|
let s = r;
|
|
12
12
|
r || (s = /* @__PURE__ */ a(v, { inBuilder: t }));
|
|
13
13
|
let c = {};
|
|
14
14
|
return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...i, style: c }, s);
|
|
15
|
-
},
|
|
15
|
+
}, be = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
description: "Similar to a div or section elements in HTML",
|
|
18
18
|
label: "Box",
|
|
@@ -54,8 +54,8 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
54
54
|
}
|
|
55
55
|
}),
|
|
56
56
|
canAcceptBlock: () => !0
|
|
57
|
-
},
|
|
58
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: i, iconPos: s, link: c, inBuilder: m } = e, k = l, g = i || /* @__PURE__ */
|
|
57
|
+
}, fe = (e) => {
|
|
58
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: i, iconPos: s, link: c, inBuilder: m } = e, k = l, g = i || /* @__PURE__ */ f(A, { children: [
|
|
59
59
|
r && /* @__PURE__ */ a("span", { "data-ai-key": "content", children: r }),
|
|
60
60
|
k && /* @__PURE__ */ a(
|
|
61
61
|
"div",
|
|
@@ -134,7 +134,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
134
134
|
i18nProps: ["content"],
|
|
135
135
|
aiProps: ["content"]
|
|
136
136
|
}, ke = (e) => {
|
|
137
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n } = e, i = l, s = /* @__PURE__ */
|
|
137
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n } = e, i = l, s = /* @__PURE__ */ f(A, { children: [
|
|
138
138
|
/* @__PURE__ */ a("span", { "data-ai-key": "content", children: r }),
|
|
139
139
|
i && /* @__PURE__ */ a("div", { style: { width: t + "px" }, dangerouslySetInnerHTML: { __html: i } })
|
|
140
140
|
] });
|
|
@@ -180,7 +180,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
180
180
|
aiProps: ["content"]
|
|
181
181
|
}, we = (e) => {
|
|
182
182
|
const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
|
|
183
|
-
return r ? /* @__PURE__ */
|
|
183
|
+
return r ? /* @__PURE__ */ f("div", { className: "relative", children: [
|
|
184
184
|
r ? /* @__PURE__ */ a("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
185
185
|
y.createElement("div", {
|
|
186
186
|
...t,
|
|
@@ -212,7 +212,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
212
212
|
}, ve = (e) => {
|
|
213
213
|
const { scripts: o, inBuilder: t, blockProps: l } = e;
|
|
214
214
|
return t ? /* @__PURE__ */ a("div", { ...l, children: /* @__PURE__ */ a("div", { className: P("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ a("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ a("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ a("div", { dangerouslySetInnerHTML: { __html: o } });
|
|
215
|
-
},
|
|
215
|
+
}, Ie = {
|
|
216
216
|
type: "CustomScript",
|
|
217
217
|
description: "similar to a script element in HTML",
|
|
218
218
|
label: "Custom Script",
|
|
@@ -230,7 +230,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
})
|
|
233
|
-
},
|
|
233
|
+
}, Le = (e) => {
|
|
234
234
|
const { blockProps: o, styles: t } = e;
|
|
235
235
|
return w("hr", { ...t, ...o });
|
|
236
236
|
}, Pe = {
|
|
@@ -238,14 +238,14 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
238
238
|
description: "A horizontal line component",
|
|
239
239
|
label: "Divider",
|
|
240
240
|
category: "core",
|
|
241
|
-
icon:
|
|
241
|
+
icon: F,
|
|
242
242
|
group: "basic",
|
|
243
243
|
...d({
|
|
244
244
|
properties: {
|
|
245
245
|
styles: u("bg-gray-900 h-0.5 py-2 my-1")
|
|
246
246
|
}
|
|
247
247
|
})
|
|
248
|
-
},
|
|
248
|
+
}, Be = (e) => {
|
|
249
249
|
const { blockProps: o, styles: t, backgroundImage: l } = e;
|
|
250
250
|
let r = {};
|
|
251
251
|
return l && (r = { backgroundImage: `url(${l})` }), y.createElement("div", { ...o, ...t, style: r });
|
|
@@ -268,7 +268,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
268
268
|
})
|
|
269
269
|
}, _e = (e) => {
|
|
270
270
|
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
|
|
271
|
-
return c ? /* @__PURE__ */
|
|
271
|
+
return c ? /* @__PURE__ */ f("div", { ...r, ...o, children: [
|
|
272
272
|
/* @__PURE__ */ a("input", { ...n, name: t, type: "checkbox", required: i, defaultChecked: s }),
|
|
273
273
|
l && /* @__PURE__ */ a("label", { htmlFor: t, children: l })
|
|
274
274
|
] }) : /* @__PURE__ */ a(
|
|
@@ -287,7 +287,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
287
287
|
type: "Checkbox",
|
|
288
288
|
label: "web_blocks.checkbox",
|
|
289
289
|
category: "core",
|
|
290
|
-
icon:
|
|
290
|
+
icon: U,
|
|
291
291
|
group: "form",
|
|
292
292
|
...d({
|
|
293
293
|
properties: {
|
|
@@ -325,7 +325,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
325
325
|
}, Ne = (e) => {
|
|
326
326
|
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: s } = e;
|
|
327
327
|
let c = o;
|
|
328
|
-
return o || (c = /* @__PURE__ */ a(v, { inBuilder: s })), /* @__PURE__ */
|
|
328
|
+
return o || (c = /* @__PURE__ */ a(v, { inBuilder: s })), /* @__PURE__ */ f(
|
|
329
329
|
"form",
|
|
330
330
|
{
|
|
331
331
|
...{
|
|
@@ -390,7 +390,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
390
390
|
canAcceptBlock: () => !0
|
|
391
391
|
}, Ae = (e) => {
|
|
392
392
|
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: i, iconPos: s } = e;
|
|
393
|
-
return /* @__PURE__ */
|
|
393
|
+
return /* @__PURE__ */ f("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
|
|
394
394
|
l,
|
|
395
395
|
n && /* @__PURE__ */ a(
|
|
396
396
|
"div",
|
|
@@ -506,7 +506,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
506
506
|
organization: { type: "text", autocomplete: "organization" },
|
|
507
507
|
language: { type: "text", autocomplete: "language" }
|
|
508
508
|
}[e] || o : o;
|
|
509
|
-
},
|
|
509
|
+
}, He = (e) => {
|
|
510
510
|
const {
|
|
511
511
|
blockProps: o,
|
|
512
512
|
fieldName: t,
|
|
@@ -519,7 +519,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
519
519
|
inputType: m,
|
|
520
520
|
defaultValue: k
|
|
521
521
|
} = e, { type: g, autocomplete: x } = Ee(m);
|
|
522
|
-
return s ? /* @__PURE__ */
|
|
522
|
+
return s ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
|
|
523
523
|
s && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
|
|
524
524
|
/* @__PURE__ */ a(
|
|
525
525
|
"input",
|
|
@@ -547,7 +547,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
547
547
|
defaultValue: k
|
|
548
548
|
}
|
|
549
549
|
);
|
|
550
|
-
},
|
|
550
|
+
}, $e = {
|
|
551
551
|
type: "Input",
|
|
552
552
|
label: "web_blocks.input",
|
|
553
553
|
category: "core",
|
|
@@ -670,7 +670,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
670
670
|
type: "Label",
|
|
671
671
|
label: "Label",
|
|
672
672
|
category: "core",
|
|
673
|
-
icon:
|
|
673
|
+
icon: q,
|
|
674
674
|
group: "form",
|
|
675
675
|
...d({
|
|
676
676
|
properties: {
|
|
@@ -686,7 +686,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
686
686
|
i18nProps: ["content"]
|
|
687
687
|
}, Ve = (e) => {
|
|
688
688
|
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
|
|
689
|
-
return c ? /* @__PURE__ */
|
|
689
|
+
return c ? /* @__PURE__ */ f("div", { ...r, ...o, children: [
|
|
690
690
|
/* @__PURE__ */ a("input", { ...n, name: t, type: "radio", required: i, defaultChecked: s }),
|
|
691
691
|
l && /* @__PURE__ */ a("label", { htmlFor: t, children: l })
|
|
692
692
|
] }) : /* @__PURE__ */ a(
|
|
@@ -705,7 +705,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
705
705
|
type: "Radio",
|
|
706
706
|
label: "web_blocks.radio",
|
|
707
707
|
category: "core",
|
|
708
|
-
icon:
|
|
708
|
+
icon: G,
|
|
709
709
|
group: "form",
|
|
710
710
|
...d({
|
|
711
711
|
properties: {
|
|
@@ -740,7 +740,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
740
740
|
}),
|
|
741
741
|
aiProps: ["label"],
|
|
742
742
|
i18nProps: ["label"]
|
|
743
|
-
},
|
|
743
|
+
}, Fe = (e) => {
|
|
744
744
|
const {
|
|
745
745
|
blockProps: o,
|
|
746
746
|
fieldName: t,
|
|
@@ -753,10 +753,10 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
753
753
|
_multiple: m,
|
|
754
754
|
options: k,
|
|
755
755
|
defaultValue: g
|
|
756
|
-
} = e, x = m && g ? g.split(",").map((
|
|
757
|
-
return c ? /* @__PURE__ */
|
|
756
|
+
} = e, x = m && g ? g.split(",").map((b) => b.trim()) : g || "";
|
|
757
|
+
return c ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
|
|
758
758
|
c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
|
|
759
|
-
/* @__PURE__ */
|
|
759
|
+
/* @__PURE__ */ f(
|
|
760
760
|
"select",
|
|
761
761
|
{
|
|
762
762
|
...i,
|
|
@@ -766,11 +766,11 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
766
766
|
defaultValue: x,
|
|
767
767
|
children: [
|
|
768
768
|
/* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
769
|
-
T(k, (
|
|
769
|
+
T(k, (b) => /* @__PURE__ */ a("option", { value: b == null ? void 0 : b.value, children: b == null ? void 0 : b.label }, b == null ? void 0 : b.value))
|
|
770
770
|
]
|
|
771
771
|
}
|
|
772
772
|
)
|
|
773
|
-
] }) : /* @__PURE__ */
|
|
773
|
+
] }) : /* @__PURE__ */ f(
|
|
774
774
|
"select",
|
|
775
775
|
{
|
|
776
776
|
...n,
|
|
@@ -781,15 +781,15 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
781
781
|
defaultValue: x,
|
|
782
782
|
children: [
|
|
783
783
|
/* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
784
|
-
T(k, (
|
|
784
|
+
T(k, (b) => /* @__PURE__ */ a("option", { value: b == null ? void 0 : b.value, children: b == null ? void 0 : b.label }, b == null ? void 0 : b.value))
|
|
785
785
|
]
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
|
-
},
|
|
788
|
+
}, Ue = {
|
|
789
789
|
type: "Select",
|
|
790
790
|
label: "web_blocks.select",
|
|
791
791
|
category: "core",
|
|
792
|
-
icon:
|
|
792
|
+
icon: Z,
|
|
793
793
|
group: "form",
|
|
794
794
|
...d({
|
|
795
795
|
properties: {
|
|
@@ -854,9 +854,9 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
854
854
|
}),
|
|
855
855
|
aiProps: ["label", "placeholder"],
|
|
856
856
|
i18nProps: ["label", "placeholder"]
|
|
857
|
-
},
|
|
857
|
+
}, qe = (e) => {
|
|
858
858
|
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: i, rows: s, showLabel: c, required: m, defaultValue: k } = e;
|
|
859
|
-
return c ? /* @__PURE__ */
|
|
859
|
+
return c ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
|
|
860
860
|
c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
|
|
861
861
|
/* @__PURE__ */ a(
|
|
862
862
|
"textarea",
|
|
@@ -882,7 +882,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
882
882
|
defaultValue: k
|
|
883
883
|
}
|
|
884
884
|
);
|
|
885
|
-
},
|
|
885
|
+
}, Ge = {
|
|
886
886
|
type: "TextArea",
|
|
887
887
|
label: "web_blocks.textarea",
|
|
888
888
|
category: "core",
|
|
@@ -933,15 +933,15 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
933
933
|
}),
|
|
934
934
|
aiProps: ["label", "placeholder"],
|
|
935
935
|
i18nProps: ["label", "placeholder"]
|
|
936
|
-
},
|
|
936
|
+
}, Ze = (e) => {
|
|
937
937
|
const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
|
|
938
|
-
return t && !r ? /* @__PURE__ */
|
|
938
|
+
return t && !r ? /* @__PURE__ */ f(
|
|
939
939
|
"div",
|
|
940
940
|
{
|
|
941
941
|
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
942
942
|
...o,
|
|
943
943
|
children: [
|
|
944
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ f("h1", { children: [
|
|
945
945
|
"Global Block - ",
|
|
946
946
|
r
|
|
947
947
|
] }),
|
|
@@ -949,11 +949,11 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
949
949
|
]
|
|
950
950
|
}
|
|
951
951
|
) : y.createElement("span", { ...o }, l);
|
|
952
|
-
},
|
|
952
|
+
}, Oe = {
|
|
953
953
|
type: "GlobalBlock",
|
|
954
954
|
description: "A global block component",
|
|
955
955
|
label: "Global Block",
|
|
956
|
-
icon:
|
|
956
|
+
icon: $,
|
|
957
957
|
category: "core",
|
|
958
958
|
group: "basic",
|
|
959
959
|
hidden: !0,
|
|
@@ -967,19 +967,19 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
})
|
|
970
|
-
},
|
|
970
|
+
}, Ye = (e) => {
|
|
971
971
|
const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
|
|
972
972
|
return n ? y.createElement(r, { ...t, ...o }, n) : y.createElement(r, {
|
|
973
973
|
...t,
|
|
974
974
|
...o,
|
|
975
975
|
dangerouslySetInnerHTML: { __html: l }
|
|
976
976
|
});
|
|
977
|
-
},
|
|
977
|
+
}, We = {
|
|
978
978
|
type: "Heading",
|
|
979
979
|
description: "A heading component similar to h1, h2, h3, h4, h5, h6 elements in HTML",
|
|
980
980
|
label: "Heading",
|
|
981
981
|
category: "core",
|
|
982
|
-
icon:
|
|
982
|
+
icon: O,
|
|
983
983
|
group: "typography",
|
|
984
984
|
...d({
|
|
985
985
|
properties: {
|
|
@@ -1001,10 +1001,10 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1001
1001
|
aiProps: ["content"],
|
|
1002
1002
|
i18nProps: ["content"],
|
|
1003
1003
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
1004
|
-
},
|
|
1004
|
+
}, Qe = (e) => {
|
|
1005
1005
|
const { blockProps: o, styles: t } = e;
|
|
1006
1006
|
return w("br", { ...o, ...t });
|
|
1007
|
-
},
|
|
1007
|
+
}, Je = {
|
|
1008
1008
|
type: "LineBreak",
|
|
1009
1009
|
label: "Line Break",
|
|
1010
1010
|
category: "core",
|
|
@@ -1019,7 +1019,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1019
1019
|
canDelete: () => !1,
|
|
1020
1020
|
canMove: () => !1,
|
|
1021
1021
|
canDuplicate: () => !1
|
|
1022
|
-
},
|
|
1022
|
+
}, Xe = (e) => {
|
|
1023
1023
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1024
1024
|
return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ a(v, {});
|
|
1025
1025
|
}, Ke = (e) => {
|
|
@@ -1039,19 +1039,19 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1039
1039
|
dangerouslySetInnerHTML: { __html: l }
|
|
1040
1040
|
});
|
|
1041
1041
|
};
|
|
1042
|
-
p(
|
|
1042
|
+
p(Xe, {
|
|
1043
1043
|
type: "Table",
|
|
1044
1044
|
label: "Table",
|
|
1045
1045
|
category: "core",
|
|
1046
1046
|
group: "table",
|
|
1047
1047
|
hidden: !0,
|
|
1048
|
-
icon:
|
|
1048
|
+
icon: Y,
|
|
1049
1049
|
...d({
|
|
1050
1050
|
properties: {
|
|
1051
1051
|
styles: u("")
|
|
1052
1052
|
}
|
|
1053
1053
|
}),
|
|
1054
|
-
blocks:
|
|
1054
|
+
blocks: L("Table")
|
|
1055
1055
|
});
|
|
1056
1056
|
p(Ke, {
|
|
1057
1057
|
type: "TableHead",
|
|
@@ -1059,13 +1059,13 @@ p(Ke, {
|
|
|
1059
1059
|
category: "core",
|
|
1060
1060
|
group: "table",
|
|
1061
1061
|
hidden: !0,
|
|
1062
|
-
icon:
|
|
1062
|
+
icon: W,
|
|
1063
1063
|
...d({
|
|
1064
1064
|
properties: {
|
|
1065
1065
|
styles: u("")
|
|
1066
1066
|
}
|
|
1067
1067
|
}),
|
|
1068
|
-
blocks:
|
|
1068
|
+
blocks: L("TableHead")
|
|
1069
1069
|
});
|
|
1070
1070
|
p(et, {
|
|
1071
1071
|
type: "TableBody",
|
|
@@ -1073,13 +1073,13 @@ p(et, {
|
|
|
1073
1073
|
category: "core",
|
|
1074
1074
|
group: "table",
|
|
1075
1075
|
hidden: !0,
|
|
1076
|
-
icon:
|
|
1076
|
+
icon: Q,
|
|
1077
1077
|
...d({
|
|
1078
1078
|
properties: {
|
|
1079
1079
|
styles: u("")
|
|
1080
1080
|
}
|
|
1081
1081
|
}),
|
|
1082
|
-
blocks:
|
|
1082
|
+
blocks: L("TableBody")
|
|
1083
1083
|
});
|
|
1084
1084
|
p(tt, {
|
|
1085
1085
|
type: "TableRow",
|
|
@@ -1087,13 +1087,13 @@ p(tt, {
|
|
|
1087
1087
|
category: "core",
|
|
1088
1088
|
group: "table",
|
|
1089
1089
|
hidden: !0,
|
|
1090
|
-
icon:
|
|
1090
|
+
icon: J,
|
|
1091
1091
|
...d({
|
|
1092
1092
|
properties: {
|
|
1093
1093
|
styles: u("")
|
|
1094
1094
|
}
|
|
1095
1095
|
}),
|
|
1096
|
-
blocks:
|
|
1096
|
+
blocks: L("TableRow")
|
|
1097
1097
|
});
|
|
1098
1098
|
p(ot, {
|
|
1099
1099
|
type: "TableCell",
|
|
@@ -1101,7 +1101,7 @@ p(ot, {
|
|
|
1101
1101
|
category: "core",
|
|
1102
1102
|
group: "table",
|
|
1103
1103
|
hidden: !0,
|
|
1104
|
-
icon:
|
|
1104
|
+
icon: X,
|
|
1105
1105
|
...d({
|
|
1106
1106
|
properties: {
|
|
1107
1107
|
styles: u(""),
|
|
@@ -1113,33 +1113,33 @@ p(ot, {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
}),
|
|
1116
|
-
blocks:
|
|
1116
|
+
blocks: L("TableCell"),
|
|
1117
1117
|
i18nProps: ["content"],
|
|
1118
1118
|
aiProps: ["content"]
|
|
1119
1119
|
});
|
|
1120
|
-
function
|
|
1120
|
+
function L(e) {
|
|
1121
1121
|
const o = (n, i) => ({
|
|
1122
|
-
_id:
|
|
1122
|
+
_id: I(),
|
|
1123
1123
|
_parent: n,
|
|
1124
1124
|
_type: "TableCell",
|
|
1125
1125
|
styles: "#styles:,",
|
|
1126
1126
|
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
|
|
1127
1127
|
}), t = (n) => {
|
|
1128
|
-
const i =
|
|
1128
|
+
const i = I(), s = {
|
|
1129
1129
|
_type: "TableRow",
|
|
1130
1130
|
_id: i,
|
|
1131
1131
|
styles: "#styles:,border-b"
|
|
1132
1132
|
};
|
|
1133
1133
|
return n && (s._parent = n), [s, o(i, "1"), o(i, "2"), o(i, "3")];
|
|
1134
1134
|
}, l = (n) => {
|
|
1135
|
-
const i =
|
|
1135
|
+
const i = I(), s = {
|
|
1136
1136
|
_id: i,
|
|
1137
1137
|
_type: "TableHead",
|
|
1138
1138
|
styles: "#styles:,font-medium"
|
|
1139
1139
|
};
|
|
1140
1140
|
return n && (s._parent = n), [s, ...t(i)];
|
|
1141
1141
|
}, r = (n) => {
|
|
1142
|
-
const i =
|
|
1142
|
+
const i = I(), s = {
|
|
1143
1143
|
_id: i,
|
|
1144
1144
|
_type: "TableBody",
|
|
1145
1145
|
styles: "#styles:,"
|
|
@@ -1147,7 +1147,7 @@ function B(e) {
|
|
|
1147
1147
|
return n && (s._parent = n), [s, ...t(i), ...t(i)];
|
|
1148
1148
|
};
|
|
1149
1149
|
if (e === "Table") {
|
|
1150
|
-
const n =
|
|
1150
|
+
const n = I();
|
|
1151
1151
|
return [
|
|
1152
1152
|
{
|
|
1153
1153
|
_id: n,
|
|
@@ -1204,9 +1204,9 @@ const z = (e, ...o) => ({
|
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
})
|
|
1207
|
-
}, nt = (e) => {
|
|
1207
|
+
}, nt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", it = (e) => {
|
|
1208
1208
|
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: i, width: s, lazyLoading: c } = e;
|
|
1209
|
-
return C(t) ? /* @__PURE__ */ a(v, { className: "h-36" }) : /* @__PURE__ */
|
|
1209
|
+
return C(t) ? /* @__PURE__ */ a(v, { className: "h-36" }) : /* @__PURE__ */ f("picture", { children: [
|
|
1210
1210
|
l && /* @__PURE__ */ a("source", { srcSet: l, media: "(max-width: 480px)" }),
|
|
1211
1211
|
/* @__PURE__ */ a(
|
|
1212
1212
|
"img",
|
|
@@ -1221,7 +1221,7 @@ const z = (e, ...o) => ({
|
|
|
1221
1221
|
}
|
|
1222
1222
|
)
|
|
1223
1223
|
] });
|
|
1224
|
-
},
|
|
1224
|
+
}, at = {
|
|
1225
1225
|
type: "Image",
|
|
1226
1226
|
description: "A image component",
|
|
1227
1227
|
label: "Image",
|
|
@@ -1234,7 +1234,7 @@ const z = (e, ...o) => ({
|
|
|
1234
1234
|
image: {
|
|
1235
1235
|
type: "string",
|
|
1236
1236
|
title: "Image",
|
|
1237
|
-
default:
|
|
1237
|
+
default: nt,
|
|
1238
1238
|
ui: { "ui:widget": "image" }
|
|
1239
1239
|
},
|
|
1240
1240
|
alt: {
|
|
@@ -1269,8 +1269,8 @@ const z = (e, ...o) => ({
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}),
|
|
1271
1271
|
aiProps: ["alt"],
|
|
1272
|
-
i18nProps: ["alt", "image", "
|
|
1273
|
-
},
|
|
1272
|
+
i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
|
|
1273
|
+
}, st = (e) => {
|
|
1274
1274
|
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: i } = e;
|
|
1275
1275
|
let s = {};
|
|
1276
1276
|
return !l && C(i) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ a("span", { role: "link", ...o, style: s, ...r, children: l }) : w(
|
|
@@ -1293,7 +1293,7 @@ const z = (e, ...o) => ({
|
|
|
1293
1293
|
},
|
|
1294
1294
|
i
|
|
1295
1295
|
);
|
|
1296
|
-
},
|
|
1296
|
+
}, ct = {
|
|
1297
1297
|
type: "Link",
|
|
1298
1298
|
description: "A link component",
|
|
1299
1299
|
label: "Link",
|
|
@@ -1334,14 +1334,14 @@ const z = (e, ...o) => ({
|
|
|
1334
1334
|
aiProps: ["content"],
|
|
1335
1335
|
i18nProps: ["content"],
|
|
1336
1336
|
canAcceptBlock: (e) => e !== "Link"
|
|
1337
|
-
},
|
|
1337
|
+
}, pt = (e) => {
|
|
1338
1338
|
const { blockProps: o, children: t, listType: l, styles: r, tag: n, inBuilder: i } = e, s = P(h(r, "className", ""), l);
|
|
1339
1339
|
return !t && C(r == null ? void 0 : r.className) ? /* @__PURE__ */ a(v, { inBuilder: i }) : y.createElement(
|
|
1340
1340
|
n || (l === "list-decimal" ? "ol" : "ul"),
|
|
1341
1341
|
{ ...o, ...r, className: s },
|
|
1342
1342
|
t
|
|
1343
1343
|
);
|
|
1344
|
-
},
|
|
1344
|
+
}, dt = {
|
|
1345
1345
|
type: "List",
|
|
1346
1346
|
description: "A list component",
|
|
1347
1347
|
label: "List",
|
|
@@ -1388,14 +1388,14 @@ const z = (e, ...o) => ({
|
|
|
1388
1388
|
content: "Item 3"
|
|
1389
1389
|
}
|
|
1390
1390
|
]
|
|
1391
|
-
},
|
|
1391
|
+
}, ut = (e) => {
|
|
1392
1392
|
const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
|
|
1393
1393
|
return r ? y.createElement(n || "li", { ...l, ...o }, r) : y.createElement(n || "li", {
|
|
1394
1394
|
...l,
|
|
1395
1395
|
...o,
|
|
1396
1396
|
dangerouslySetInnerHTML: { __html: t }
|
|
1397
1397
|
});
|
|
1398
|
-
},
|
|
1398
|
+
}, mt = {
|
|
1399
1399
|
type: "ListItem",
|
|
1400
1400
|
description: "A list item component",
|
|
1401
1401
|
label: "List Item",
|
|
@@ -1419,14 +1419,14 @@ const z = (e, ...o) => ({
|
|
|
1419
1419
|
aiProps: ["content"],
|
|
1420
1420
|
canAcceptBlock: (e) => e !== "ListItem",
|
|
1421
1421
|
canBeNested: (e) => e === "List" || e === "Repeater"
|
|
1422
|
-
},
|
|
1422
|
+
}, yt = (e) => {
|
|
1423
1423
|
const { blockProps: o, styles: t, content: l } = e;
|
|
1424
1424
|
return se(e.children) ? y.createElement("p", {
|
|
1425
1425
|
...t,
|
|
1426
1426
|
...o,
|
|
1427
1427
|
dangerouslySetInnerHTML: { __html: l }
|
|
1428
1428
|
}) : y.createElement("p", { ...t, ...o }, e.children);
|
|
1429
|
-
},
|
|
1429
|
+
}, gt = {
|
|
1430
1430
|
type: "Paragraph",
|
|
1431
1431
|
description: "A paragraph component",
|
|
1432
1432
|
label: "Paragraph",
|
|
@@ -1447,15 +1447,15 @@ const z = (e, ...o) => ({
|
|
|
1447
1447
|
i18nProps: ["content"],
|
|
1448
1448
|
aiProps: ["content"],
|
|
1449
1449
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
1450
|
-
},
|
|
1450
|
+
}, bt = (e) => {
|
|
1451
1451
|
const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
|
|
1452
|
-
return t && !r ? /* @__PURE__ */
|
|
1452
|
+
return t && !r ? /* @__PURE__ */ f(
|
|
1453
1453
|
"div",
|
|
1454
1454
|
{
|
|
1455
1455
|
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
1456
1456
|
...o,
|
|
1457
1457
|
children: [
|
|
1458
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ f("h1", { children: [
|
|
1459
1459
|
"Partial Block - ",
|
|
1460
1460
|
r
|
|
1461
1461
|
] }),
|
|
@@ -1467,7 +1467,7 @@ const z = (e, ...o) => ({
|
|
|
1467
1467
|
type: "PartialBlock",
|
|
1468
1468
|
description: "A partial block component",
|
|
1469
1469
|
label: "Partial Block",
|
|
1470
|
-
icon:
|
|
1470
|
+
icon: $,
|
|
1471
1471
|
category: "core",
|
|
1472
1472
|
group: "basic",
|
|
1473
1473
|
hidden: !0,
|
|
@@ -1481,7 +1481,7 @@ const z = (e, ...o) => ({
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
})
|
|
1484
|
-
},
|
|
1484
|
+
}, B = {
|
|
1485
1485
|
SMALL: {
|
|
1486
1486
|
1: "col-span-1",
|
|
1487
1487
|
2: "col-span-2",
|
|
@@ -1524,15 +1524,15 @@ const z = (e, ...o) => ({
|
|
|
1524
1524
|
11: "lg:col-span-11",
|
|
1525
1525
|
12: "lg:col-span-12"
|
|
1526
1526
|
}
|
|
1527
|
-
},
|
|
1527
|
+
}, ht = (e) => {
|
|
1528
1528
|
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
|
|
1529
1529
|
h(l, "className", ""),
|
|
1530
|
-
h(
|
|
1531
|
-
n ? h(
|
|
1532
|
-
i ? h(
|
|
1530
|
+
h(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
|
|
1531
|
+
n ? h(B, ["MEDIUM", n || r], "") : "",
|
|
1532
|
+
i ? h(B, ["LARGE", n || r], "") : ""
|
|
1533
1533
|
].join(" ") };
|
|
1534
1534
|
return /* @__PURE__ */ a("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ a("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
1535
|
-
},
|
|
1535
|
+
}, kt = {
|
|
1536
1536
|
type: "Column",
|
|
1537
1537
|
description: "A column component",
|
|
1538
1538
|
label: "Column",
|
|
@@ -1568,10 +1568,10 @@ const z = (e, ...o) => ({
|
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
})
|
|
1571
|
-
},
|
|
1571
|
+
}, xt = (e) => {
|
|
1572
1572
|
const { blockProps: o, children: t, styles: l, gutter: r } = e, i = { className: [h(l, "className", ""), " grid grid-cols-12"].join() };
|
|
1573
1573
|
return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : i.style = { gap: `${r}px` }, /* @__PURE__ */ a("div", { ...o, ...l, ...i, children: t });
|
|
1574
|
-
},
|
|
1574
|
+
}, wt = {
|
|
1575
1575
|
type: "Row",
|
|
1576
1576
|
description: "A row component",
|
|
1577
1577
|
label: "Row",
|
|
@@ -1602,14 +1602,14 @@ const z = (e, ...o) => ({
|
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
1604
|
})
|
|
1605
|
-
},
|
|
1605
|
+
}, Ct = (e) => {
|
|
1606
1606
|
const { blockProps: o, content: t, styles: l } = e, r = z(
|
|
1607
1607
|
l,
|
|
1608
1608
|
"prose dark:prose-invert prose-p:m-0 prose-p:min-h-[1rem] prose-blockquote:m-2 prose-blockquote:ml-4 prose-ul:m-0 prose-ol:m-0 prose-li:m-0",
|
|
1609
1609
|
"max-w-full"
|
|
1610
1610
|
);
|
|
1611
1611
|
return /* @__PURE__ */ a("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
|
|
1612
|
-
},
|
|
1612
|
+
}, vt = {
|
|
1613
1613
|
type: "RichText",
|
|
1614
1614
|
description: "A rich text block",
|
|
1615
1615
|
label: "Rich Text",
|
|
@@ -1629,7 +1629,7 @@ const z = (e, ...o) => ({
|
|
|
1629
1629
|
}),
|
|
1630
1630
|
aiProps: ["content"],
|
|
1631
1631
|
i18nProps: ["content"]
|
|
1632
|
-
},
|
|
1632
|
+
}, It = (e) => {
|
|
1633
1633
|
const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
|
|
1634
1634
|
return r ? y.createElement("span", { ...t, ...o }, r) : y.createElement(n || "span", {
|
|
1635
1635
|
...t,
|
|
@@ -1656,7 +1656,7 @@ const z = (e, ...o) => ({
|
|
|
1656
1656
|
aiProps: ["content"],
|
|
1657
1657
|
i18nProps: ["content"],
|
|
1658
1658
|
canAcceptBlock: () => !0
|
|
1659
|
-
},
|
|
1659
|
+
}, Pt = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Bt = {
|
|
1660
1660
|
type: "Text",
|
|
1661
1661
|
description: "A text component with no styling",
|
|
1662
1662
|
label: "Text",
|
|
@@ -1707,7 +1707,7 @@ const z = (e, ...o) => ({
|
|
|
1707
1707
|
default: !1
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
|
-
}, N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, R = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/,
|
|
1710
|
+
}, N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, R = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, St = (e, o) => {
|
|
1711
1711
|
const t = h(o, "autoplay", !1), l = h(o, "controls", !1), r = h(o, "loop", !1), n = t || h(o, "muted", !0);
|
|
1712
1712
|
if (N.test(e)) {
|
|
1713
1713
|
const i = e.match(N);
|
|
@@ -1726,13 +1726,13 @@ const z = (e, ...o) => ({
|
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
return null;
|
|
1729
|
-
},
|
|
1730
|
-
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s =
|
|
1731
|
-
return /* @__PURE__ */
|
|
1729
|
+
}, _t = (e) => {
|
|
1730
|
+
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s = St(o, r);
|
|
1731
|
+
return /* @__PURE__ */ f("div", { ...ce(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
1732
1732
|
!s && i ? /* @__PURE__ */ a("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: C(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ a("iframe", { width: "100%", src: s, ...pe(l, "className") }),
|
|
1733
1733
|
i && /* @__PURE__ */ a("div", { ...t, className: "absolute top-0 h-full w-full" })
|
|
1734
1734
|
] });
|
|
1735
|
-
},
|
|
1735
|
+
}, Tt = (e) => {
|
|
1736
1736
|
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: i } = e;
|
|
1737
1737
|
let s = n;
|
|
1738
1738
|
const c = [...h(r, "srcsets", []) || []];
|
|
@@ -1759,13 +1759,13 @@ const z = (e, ...o) => ({
|
|
|
1759
1759
|
}),
|
|
1760
1760
|
"Your browser does not support the video tag."
|
|
1761
1761
|
) });
|
|
1762
|
-
},
|
|
1762
|
+
}, Nt = (e) => {
|
|
1763
1763
|
const { videoSource: o } = e;
|
|
1764
|
-
return o === "Custom" ? /* @__PURE__ */ a(
|
|
1764
|
+
return o === "Custom" ? /* @__PURE__ */ a(Tt, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ a(_t, { ...e }) : /* @__PURE__ */ f("div", { children: [
|
|
1765
1765
|
"Invalid video source : ",
|
|
1766
1766
|
o
|
|
1767
1767
|
] });
|
|
1768
|
-
},
|
|
1768
|
+
}, Rt = {
|
|
1769
1769
|
type: "Video",
|
|
1770
1770
|
label: "Video",
|
|
1771
1771
|
category: "core",
|
|
@@ -1850,24 +1850,24 @@ const z = (e, ...o) => ({
|
|
|
1850
1850
|
}
|
|
1851
1851
|
}),
|
|
1852
1852
|
i18nProps: ["url"]
|
|
1853
|
-
},
|
|
1853
|
+
}, At = (e) => {
|
|
1854
1854
|
const { children: o, tag: t, styles: l, blockProps: r, inBuilder: n, $loading: i } = e;
|
|
1855
1855
|
let s = o;
|
|
1856
|
-
return C(s) && n && (s = /* @__PURE__ */ a("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */
|
|
1856
|
+
return C(s) && n && (s = /* @__PURE__ */ a("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ f("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1857
1857
|
/* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1858
1858
|
/* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1859
1859
|
] }, m)) : s : y.createElement(
|
|
1860
1860
|
t,
|
|
1861
1861
|
{ ...r, ...l },
|
|
1862
|
-
i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */
|
|
1862
|
+
i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ f("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1863
1863
|
/* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1864
1864
|
/* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1865
1865
|
] }, m)) : s
|
|
1866
1866
|
);
|
|
1867
|
-
},
|
|
1867
|
+
}, Mt = {
|
|
1868
1868
|
type: "Repeater",
|
|
1869
1869
|
label: "Repeater",
|
|
1870
|
-
icon:
|
|
1870
|
+
icon: H,
|
|
1871
1871
|
group: "basic",
|
|
1872
1872
|
dataProviderMode: "live",
|
|
1873
1873
|
dataProviderDependencies: ["filter", "sort", "limit", "repeaterItems"],
|
|
@@ -1922,7 +1922,7 @@ const z = (e, ...o) => ({
|
|
|
1922
1922
|
}
|
|
1923
1923
|
}
|
|
1924
1924
|
})
|
|
1925
|
-
},
|
|
1925
|
+
}, Et = ({
|
|
1926
1926
|
children: e,
|
|
1927
1927
|
blockProps: o,
|
|
1928
1928
|
styles: t,
|
|
@@ -1945,10 +1945,10 @@ const z = (e, ...o) => ({
|
|
|
1945
1945
|
{ ...o, ...t },
|
|
1946
1946
|
/* @__PURE__ */ a("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Add children to repeater item" })
|
|
1947
1947
|
) : y.createElement(n, { ...o, ...t }, e);
|
|
1948
|
-
},
|
|
1948
|
+
}, Ht = {
|
|
1949
1949
|
type: "RepeaterItem",
|
|
1950
1950
|
label: "Repeater Item",
|
|
1951
|
-
icon:
|
|
1951
|
+
icon: H,
|
|
1952
1952
|
hidden: !0,
|
|
1953
1953
|
group: "basic",
|
|
1954
1954
|
...d({
|
|
@@ -1965,7 +1965,7 @@ const z = (e, ...o) => ({
|
|
|
1965
1965
|
children: e,
|
|
1966
1966
|
blockProps: o,
|
|
1967
1967
|
styles: t
|
|
1968
|
-
}) => y.createElement("div", { ...o, ...t }, e),
|
|
1968
|
+
}) => y.createElement("div", { ...o, ...t }, e), zt = {
|
|
1969
1969
|
type: "RepeaterEmptyState",
|
|
1970
1970
|
label: "Empty State",
|
|
1971
1971
|
hidden: !0,
|
|
@@ -1977,9 +1977,9 @@ const z = (e, ...o) => ({
|
|
|
1977
1977
|
canDelete: () => !1,
|
|
1978
1978
|
canMove: () => !1,
|
|
1979
1979
|
canDuplicate: () => !1
|
|
1980
|
-
},
|
|
1981
|
-
p(ge,
|
|
1980
|
+
}, Zt = () => {
|
|
1981
|
+
p(ge, be), p(Be, Se), p(fe, he), p(Ye, We), p(yt, gt), p(It, Lt), p(Ct, vt), p(st, ct), p(pt, dt), p(ut, mt), p(lt, rt), p(it, at), p(Nt, Rt), p(we, Ce), p(ve, Ie), p(Pt, Bt), p(Ne, Re), p(Ae, Me), p(He, $e), p(_e, Te), p(Ve, je), p(Fe, Ue), p(qe, Ge), p(ze, De), p(Qe, Je), p(Le, Pe), p(Ze, Oe), p(bt, ft), p(xt, wt), p(ht, kt), p(ke, xe), p(At, Mt), p(Et, Ht), p($t, zt);
|
|
1982
1982
|
};
|
|
1983
1983
|
export {
|
|
1984
|
-
|
|
1984
|
+
Zt as loadWebBlocks
|
|
1985
1985
|
};
|