@chaibuilder/sdk 2.5.8 → 2.6.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/{code-editor-0HrsuGAE.js → code-editor-CAnkmeVK.js} +1 -1
- package/dist/{code-editor-67qfXwGU.cjs → code-editor-D5TOcelm.cjs} +1 -1
- package/dist/core.cjs +4 -4
- package/dist/core.d.ts +0 -2
- package/dist/core.js +743 -722
- package/dist/{css-import-modal-CcUf6F6T.js → css-import-modal-Ds-qmte_.js} +99 -90
- package/dist/{css-import-modal-CdOK43Be.cjs → css-import-modal-w1WZrKpm.cjs} +2 -2
- package/dist/{toggle-BgZfmuec.cjs → toggle-CCqv4Cah.cjs} +1 -1
- package/dist/{toggle-CyXEVUOu.js → toggle-DXTcRcvD.js} +60 -60
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +123 -119
- package/package.json +2 -2
package/dist/web-blocks.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { registerChaiBlockSchema as d, StylesProp as u, registerChaiBlock as p, stylesProp as _, closestBlockProp as D } from "@chaibuilder/runtime";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as i, jsxs as f, Fragment as A } from "react/jsx-runtime";
|
|
3
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 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
|
|
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 ae, VideoIcon as ie, 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
8
|
import { FileCode as de, GroupIcon as ue, GlobeIcon as $, Columns as me, Rows as ye } from "lucide-react";
|
|
9
|
-
const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */
|
|
10
|
-
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles:
|
|
9
|
+
const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: P("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("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
|
+
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
|
|
11
11
|
let s = r;
|
|
12
|
-
r || (s = /* @__PURE__ */
|
|
12
|
+
r || (s = /* @__PURE__ */ i(v, { inBuilder: t }));
|
|
13
13
|
let c = {};
|
|
14
|
-
return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...
|
|
14
|
+
return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...a, style: c }, s);
|
|
15
15
|
}, be = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
description: "Similar to a div or section elements in HTML",
|
|
@@ -55,9 +55,9 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
55
55
|
}),
|
|
56
56
|
canAcceptBlock: () => !0
|
|
57
57
|
}, fe = (e) => {
|
|
58
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children:
|
|
59
|
-
r && /* @__PURE__ */
|
|
60
|
-
k && /* @__PURE__ */
|
|
58
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: m } = e, k = l, g = a || /* @__PURE__ */ f(A, { children: [
|
|
59
|
+
r && /* @__PURE__ */ i("span", { "data-ai-key": "content", children: r }),
|
|
60
|
+
k && /* @__PURE__ */ i(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
style: { width: t + "px" },
|
|
@@ -75,7 +75,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
75
75
|
},
|
|
76
76
|
g
|
|
77
77
|
);
|
|
78
|
-
return C(h(c, "href")) ? x : m ? /* @__PURE__ */
|
|
78
|
+
return C(h(c, "href")) ? x : m ? /* @__PURE__ */ i("span", { children: x }) : /* @__PURE__ */ i("a", { "aria-label": r, href: h(c, "href") || "/", target: h(c, "target", "_self"), children: x });
|
|
79
79
|
}, he = {
|
|
80
80
|
type: "Button",
|
|
81
81
|
description: "similar to a button element in HTML",
|
|
@@ -134,9 +134,9 @@ 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,
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
137
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n } = e, a = l, s = /* @__PURE__ */ f(A, { children: [
|
|
138
|
+
/* @__PURE__ */ i("span", { "data-ai-key": "content", children: r }),
|
|
139
|
+
a && /* @__PURE__ */ i("div", { style: { width: t + "px" }, dangerouslySetInnerHTML: { __html: a } })
|
|
140
140
|
] });
|
|
141
141
|
return w(
|
|
142
142
|
"button",
|
|
@@ -181,7 +181,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
181
181
|
}, we = (e) => {
|
|
182
182
|
const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
|
|
183
183
|
return r ? /* @__PURE__ */ f("div", { className: "relative", children: [
|
|
184
|
-
r ? /* @__PURE__ */
|
|
184
|
+
r ? /* @__PURE__ */ i("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
185
185
|
y.createElement("div", {
|
|
186
186
|
...t,
|
|
187
187
|
dangerouslySetInnerHTML: { __html: l.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
@@ -211,7 +211,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
211
211
|
i18nProps: ["htmlCode"]
|
|
212
212
|
}, ve = (e) => {
|
|
213
213
|
const { scripts: o, inBuilder: t, blockProps: l } = e;
|
|
214
|
-
return t ? /* @__PURE__ */
|
|
214
|
+
return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: P("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("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__ */ i("div", { dangerouslySetInnerHTML: { __html: o } });
|
|
215
215
|
}, Ie = {
|
|
216
216
|
type: "CustomScript",
|
|
217
217
|
description: "similar to a script element in HTML",
|
|
@@ -267,11 +267,11 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
267
267
|
}
|
|
268
268
|
})
|
|
269
269
|
}, _e = (e) => {
|
|
270
|
-
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required:
|
|
270
|
+
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
271
271
|
return c ? /* @__PURE__ */ f("div", { ...r, ...o, children: [
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
l && /* @__PURE__ */
|
|
274
|
-
] }) : /* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
|
|
273
|
+
l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
|
|
274
|
+
] }) : /* @__PURE__ */ i(
|
|
275
275
|
"input",
|
|
276
276
|
{
|
|
277
277
|
name: t,
|
|
@@ -279,7 +279,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
279
279
|
...n,
|
|
280
280
|
...r,
|
|
281
281
|
type: "checkbox",
|
|
282
|
-
required:
|
|
282
|
+
required: a,
|
|
283
283
|
defaultChecked: s
|
|
284
284
|
}
|
|
285
285
|
);
|
|
@@ -323,9 +323,9 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
323
323
|
aiProps: ["label"],
|
|
324
324
|
i18nProps: ["label"]
|
|
325
325
|
}, Ne = (e) => {
|
|
326
|
-
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles:
|
|
326
|
+
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
|
|
327
327
|
let c = o;
|
|
328
|
-
return o || (c = /* @__PURE__ */
|
|
328
|
+
return o || (c = /* @__PURE__ */ i(v, { inBuilder: s })), /* @__PURE__ */ f(
|
|
329
329
|
"form",
|
|
330
330
|
{
|
|
331
331
|
...{
|
|
@@ -337,9 +337,9 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
337
337
|
method: "post",
|
|
338
338
|
action: n,
|
|
339
339
|
...t,
|
|
340
|
-
...
|
|
340
|
+
...a,
|
|
341
341
|
children: [
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ i("div", { ...{
|
|
343
343
|
"x-html": "",
|
|
344
344
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
345
345
|
} }),
|
|
@@ -389,13 +389,13 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
389
389
|
aiProps: ["errorMessage", "successMessage"],
|
|
390
390
|
canAcceptBlock: () => !0
|
|
391
391
|
}, Ae = (e) => {
|
|
392
|
-
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize:
|
|
392
|
+
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
|
|
393
393
|
return /* @__PURE__ */ f("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
|
|
394
394
|
l,
|
|
395
|
-
n && /* @__PURE__ */
|
|
395
|
+
n && /* @__PURE__ */ i(
|
|
396
396
|
"div",
|
|
397
397
|
{
|
|
398
|
-
style: { width:
|
|
398
|
+
style: { width: a + "px" },
|
|
399
399
|
className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
|
|
400
400
|
dangerouslySetInnerHTML: { __html: n }
|
|
401
401
|
}
|
|
@@ -454,6 +454,8 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
454
454
|
"family-name": { type: "text", autocomplete: "family-name" },
|
|
455
455
|
"honorific-suffix": { type: "text", autocomplete: "honorific-suffix" },
|
|
456
456
|
nickname: { type: "text", autocomplete: "nickname" },
|
|
457
|
+
firstName: { type: "text", autocomplete: "given-name" },
|
|
458
|
+
lastName: { type: "text", autocomplete: "family-name" },
|
|
457
459
|
// Contact related
|
|
458
460
|
email: { type: "email", autocomplete: "email" },
|
|
459
461
|
tel: { type: "tel", autocomplete: "tel" },
|
|
@@ -513,32 +515,32 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
513
515
|
label: l,
|
|
514
516
|
placeholder: r,
|
|
515
517
|
styles: n,
|
|
516
|
-
inputStyles:
|
|
518
|
+
inputStyles: a,
|
|
517
519
|
showLabel: s,
|
|
518
520
|
required: c,
|
|
519
521
|
inputType: m,
|
|
520
522
|
defaultValue: k
|
|
521
523
|
} = e, { type: g, autocomplete: x } = Ee(m);
|
|
522
524
|
return s ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
|
|
523
|
-
s && /* @__PURE__ */
|
|
524
|
-
/* @__PURE__ */
|
|
525
|
+
s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
526
|
+
/* @__PURE__ */ i(
|
|
525
527
|
"input",
|
|
526
528
|
{
|
|
527
529
|
name: t,
|
|
528
530
|
defaultValue: k,
|
|
529
|
-
...
|
|
531
|
+
...a,
|
|
530
532
|
type: g,
|
|
531
533
|
placeholder: r,
|
|
532
534
|
required: c,
|
|
533
535
|
autoComplete: x
|
|
534
536
|
}
|
|
535
537
|
)
|
|
536
|
-
] }) : /* @__PURE__ */
|
|
538
|
+
] }) : /* @__PURE__ */ i(
|
|
537
539
|
"input",
|
|
538
540
|
{
|
|
539
541
|
name: t,
|
|
540
542
|
...o,
|
|
541
|
-
...
|
|
543
|
+
...a,
|
|
542
544
|
...n,
|
|
543
545
|
type: g,
|
|
544
546
|
placeholder: r,
|
|
@@ -581,6 +583,8 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
581
583
|
{ const: "url", title: "URL" },
|
|
582
584
|
// Name related
|
|
583
585
|
{ const: "name", title: "Name" },
|
|
586
|
+
{ const: "firstName", title: "First Name" },
|
|
587
|
+
{ const: "lastName", title: "Last Name" },
|
|
584
588
|
// Contact related
|
|
585
589
|
{ const: "tel-country-code", title: "Telephone Country Code" },
|
|
586
590
|
{ const: "tel-national", title: "Telephone National" },
|
|
@@ -685,11 +689,11 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
685
689
|
aiProps: ["content"],
|
|
686
690
|
i18nProps: ["content"]
|
|
687
691
|
}, Ve = (e) => {
|
|
688
|
-
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required:
|
|
692
|
+
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
689
693
|
return c ? /* @__PURE__ */ f("div", { ...r, ...o, children: [
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
l && /* @__PURE__ */
|
|
692
|
-
] }) : /* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
|
|
695
|
+
l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
|
|
696
|
+
] }) : /* @__PURE__ */ i(
|
|
693
697
|
"input",
|
|
694
698
|
{
|
|
695
699
|
name: t,
|
|
@@ -697,7 +701,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
697
701
|
...n,
|
|
698
702
|
...r,
|
|
699
703
|
type: "radio",
|
|
700
|
-
required:
|
|
704
|
+
required: a,
|
|
701
705
|
checked: s
|
|
702
706
|
}
|
|
703
707
|
);
|
|
@@ -747,7 +751,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
747
751
|
label: l,
|
|
748
752
|
placeholder: r,
|
|
749
753
|
styles: n,
|
|
750
|
-
inputStyles:
|
|
754
|
+
inputStyles: a,
|
|
751
755
|
required: s,
|
|
752
756
|
showLabel: c,
|
|
753
757
|
_multiple: m,
|
|
@@ -755,18 +759,18 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
755
759
|
defaultValue: g
|
|
756
760
|
} = e, x = m && g ? g.split(",").map((b) => b.trim()) : g || "";
|
|
757
761
|
return c ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
|
|
758
|
-
c && /* @__PURE__ */
|
|
762
|
+
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
759
763
|
/* @__PURE__ */ f(
|
|
760
764
|
"select",
|
|
761
765
|
{
|
|
762
|
-
...
|
|
766
|
+
...a,
|
|
763
767
|
required: s,
|
|
764
768
|
multiple: m,
|
|
765
769
|
name: t,
|
|
766
770
|
defaultValue: x,
|
|
767
771
|
children: [
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
-
T(k, (b) => /* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
773
|
+
T(k, (b) => /* @__PURE__ */ i("option", { value: b == null ? void 0 : b.value, children: b == null ? void 0 : b.label }, b == null ? void 0 : b.value))
|
|
770
774
|
]
|
|
771
775
|
}
|
|
772
776
|
)
|
|
@@ -780,8 +784,8 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
780
784
|
name: t,
|
|
781
785
|
defaultValue: x,
|
|
782
786
|
children: [
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
T(k, (b) => /* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
788
|
+
T(k, (b) => /* @__PURE__ */ i("option", { value: b == null ? void 0 : b.value, children: b == null ? void 0 : b.label }, b == null ? void 0 : b.value))
|
|
785
789
|
]
|
|
786
790
|
}
|
|
787
791
|
);
|
|
@@ -855,26 +859,26 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
855
859
|
aiProps: ["label", "placeholder"],
|
|
856
860
|
i18nProps: ["label", "placeholder"]
|
|
857
861
|
}, qe = (e) => {
|
|
858
|
-
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles:
|
|
862
|
+
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: m, defaultValue: k } = e;
|
|
859
863
|
return c ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
|
|
860
|
-
c && /* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
864
|
+
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
865
|
+
/* @__PURE__ */ i(
|
|
862
866
|
"textarea",
|
|
863
867
|
{
|
|
864
868
|
name: t,
|
|
865
|
-
...
|
|
869
|
+
...a,
|
|
866
870
|
placeholder: r,
|
|
867
871
|
rows: s,
|
|
868
872
|
required: m,
|
|
869
873
|
defaultValue: k
|
|
870
874
|
}
|
|
871
875
|
)
|
|
872
|
-
] }) : /* @__PURE__ */
|
|
876
|
+
] }) : /* @__PURE__ */ i(
|
|
873
877
|
"textarea",
|
|
874
878
|
{
|
|
875
879
|
name: t,
|
|
876
880
|
...o,
|
|
877
|
-
...
|
|
881
|
+
...a,
|
|
878
882
|
...n,
|
|
879
883
|
placeholder: r,
|
|
880
884
|
rows: s,
|
|
@@ -945,7 +949,7 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
945
949
|
"Global Block - ",
|
|
946
950
|
r
|
|
947
951
|
] }),
|
|
948
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
949
953
|
]
|
|
950
954
|
}
|
|
951
955
|
) : y.createElement("span", { ...o }, l);
|
|
@@ -1021,19 +1025,19 @@ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1021
1025
|
canDuplicate: () => !1
|
|
1022
1026
|
}, Xe = (e) => {
|
|
1023
1027
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1024
|
-
return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */
|
|
1028
|
+
return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1025
1029
|
}, Ke = (e) => {
|
|
1026
1030
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1027
|
-
return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */
|
|
1031
|
+
return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1028
1032
|
}, et = (e) => {
|
|
1029
1033
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1030
|
-
return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */
|
|
1034
|
+
return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1031
1035
|
}, tt = (e) => {
|
|
1032
1036
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1033
|
-
return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */
|
|
1037
|
+
return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(v, {});
|
|
1034
1038
|
}, ot = (e) => {
|
|
1035
1039
|
const { blockProps: o, children: t, content: l, styles: r } = e;
|
|
1036
|
-
return !t && C(l) ? /* @__PURE__ */
|
|
1040
|
+
return !t && C(l) ? /* @__PURE__ */ i(v, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
|
|
1037
1041
|
...o,
|
|
1038
1042
|
...r,
|
|
1039
1043
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -1118,33 +1122,33 @@ p(ot, {
|
|
|
1118
1122
|
aiProps: ["content"]
|
|
1119
1123
|
});
|
|
1120
1124
|
function L(e) {
|
|
1121
|
-
const o = (n,
|
|
1125
|
+
const o = (n, a) => ({
|
|
1122
1126
|
_id: I(),
|
|
1123
1127
|
_parent: n,
|
|
1124
1128
|
_type: "TableCell",
|
|
1125
1129
|
styles: "#styles:,",
|
|
1126
|
-
content: `${e === "TableHead" ? "Table Head" : "Table Cell " +
|
|
1130
|
+
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + a}`
|
|
1127
1131
|
}), t = (n) => {
|
|
1128
|
-
const
|
|
1132
|
+
const a = I(), s = {
|
|
1129
1133
|
_type: "TableRow",
|
|
1130
|
-
_id:
|
|
1134
|
+
_id: a,
|
|
1131
1135
|
styles: "#styles:,border-b"
|
|
1132
1136
|
};
|
|
1133
|
-
return n && (s._parent = n), [s, o(
|
|
1137
|
+
return n && (s._parent = n), [s, o(a, "1"), o(a, "2"), o(a, "3")];
|
|
1134
1138
|
}, l = (n) => {
|
|
1135
|
-
const
|
|
1136
|
-
_id:
|
|
1139
|
+
const a = I(), s = {
|
|
1140
|
+
_id: a,
|
|
1137
1141
|
_type: "TableHead",
|
|
1138
1142
|
styles: "#styles:,font-medium"
|
|
1139
1143
|
};
|
|
1140
|
-
return n && (s._parent = n), [s, ...t(
|
|
1144
|
+
return n && (s._parent = n), [s, ...t(a)];
|
|
1141
1145
|
}, r = (n) => {
|
|
1142
|
-
const
|
|
1143
|
-
_id:
|
|
1146
|
+
const a = I(), s = {
|
|
1147
|
+
_id: a,
|
|
1144
1148
|
_type: "TableBody",
|
|
1145
1149
|
styles: "#styles:,"
|
|
1146
1150
|
};
|
|
1147
|
-
return n && (s._parent = n), [s, ...t(
|
|
1151
|
+
return n && (s._parent = n), [s, ...t(a), ...t(a)];
|
|
1148
1152
|
};
|
|
1149
1153
|
if (e === "Table") {
|
|
1150
1154
|
const n = I();
|
|
@@ -1164,16 +1168,16 @@ const z = (e, ...o) => ({
|
|
|
1164
1168
|
...e,
|
|
1165
1169
|
className: P(e.className, ...o)
|
|
1166
1170
|
}), lt = (e) => {
|
|
1167
|
-
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height:
|
|
1171
|
+
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = z(l, "");
|
|
1168
1172
|
if (C(t))
|
|
1169
|
-
return /* @__PURE__ */
|
|
1173
|
+
return /* @__PURE__ */ i(v, { inBuilder: n, className: "h-8 w-14" });
|
|
1170
1174
|
const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
1171
1175
|
return y.createElement("span", {
|
|
1172
1176
|
...o,
|
|
1173
1177
|
...s,
|
|
1174
1178
|
style: {
|
|
1175
1179
|
width: r ? `${r}px` : "auto",
|
|
1176
|
-
height:
|
|
1180
|
+
height: a ? `${a}px` : "auto"
|
|
1177
1181
|
},
|
|
1178
1182
|
dangerouslySetInnerHTML: { __html: c }
|
|
1179
1183
|
});
|
|
@@ -1204,11 +1208,11 @@ const z = (e, ...o) => ({
|
|
|
1204
1208
|
}
|
|
1205
1209
|
}
|
|
1206
1210
|
})
|
|
1207
|
-
}, nt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==",
|
|
1208
|
-
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height:
|
|
1209
|
-
return C(t) ? /* @__PURE__ */
|
|
1210
|
-
l && /* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1211
|
+
}, nt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", at = (e) => {
|
|
1212
|
+
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c } = e;
|
|
1213
|
+
return C(t) ? /* @__PURE__ */ i(v, { className: "h-36" }) : /* @__PURE__ */ f("picture", { children: [
|
|
1214
|
+
l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)" }),
|
|
1215
|
+
/* @__PURE__ */ i(
|
|
1212
1216
|
"img",
|
|
1213
1217
|
{
|
|
1214
1218
|
...o,
|
|
@@ -1217,11 +1221,11 @@ const z = (e, ...o) => ({
|
|
|
1217
1221
|
alt: n,
|
|
1218
1222
|
loading: c ? "lazy" : "eager",
|
|
1219
1223
|
width: s,
|
|
1220
|
-
height:
|
|
1224
|
+
height: a
|
|
1221
1225
|
}
|
|
1222
1226
|
)
|
|
1223
1227
|
] });
|
|
1224
|
-
},
|
|
1228
|
+
}, it = {
|
|
1225
1229
|
type: "Image",
|
|
1226
1230
|
description: "A image component",
|
|
1227
1231
|
label: "Image",
|
|
@@ -1271,9 +1275,9 @@ const z = (e, ...o) => ({
|
|
|
1271
1275
|
aiProps: ["alt"],
|
|
1272
1276
|
i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
|
|
1273
1277
|
}, st = (e) => {
|
|
1274
|
-
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content:
|
|
1278
|
+
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
|
|
1275
1279
|
let s = {};
|
|
1276
|
-
return !l && C(
|
|
1280
|
+
return !l && C(a) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ i("span", { role: "link", ...o, style: s, ...r, children: l }) : w(
|
|
1277
1281
|
"span",
|
|
1278
1282
|
{
|
|
1279
1283
|
...o,
|
|
@@ -1281,17 +1285,17 @@ const z = (e, ...o) => ({
|
|
|
1281
1285
|
style: s,
|
|
1282
1286
|
role: "link"
|
|
1283
1287
|
},
|
|
1284
|
-
|
|
1285
|
-
) : l ? /* @__PURE__ */
|
|
1288
|
+
a
|
|
1289
|
+
) : l ? /* @__PURE__ */ i("a", { "aria-label": a, href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...o, ...r, children: l }) : w(
|
|
1286
1290
|
"a",
|
|
1287
1291
|
{
|
|
1288
1292
|
...o,
|
|
1289
1293
|
...r,
|
|
1290
1294
|
href: (t == null ? void 0 : t.href) || "#",
|
|
1291
1295
|
target: (t == null ? void 0 : t.target) || "_self",
|
|
1292
|
-
"aria-label":
|
|
1296
|
+
"aria-label": a
|
|
1293
1297
|
},
|
|
1294
|
-
|
|
1298
|
+
a
|
|
1295
1299
|
);
|
|
1296
1300
|
}, ct = {
|
|
1297
1301
|
type: "Link",
|
|
@@ -1335,8 +1339,8 @@ const z = (e, ...o) => ({
|
|
|
1335
1339
|
i18nProps: ["content"],
|
|
1336
1340
|
canAcceptBlock: (e) => e !== "Link"
|
|
1337
1341
|
}, pt = (e) => {
|
|
1338
|
-
const { blockProps: o, children: t, listType: l, styles: r, tag: n, inBuilder:
|
|
1339
|
-
return !t && C(r == null ? void 0 : r.className) ? /* @__PURE__ */
|
|
1342
|
+
const { blockProps: o, children: t, listType: l, styles: r, tag: n, inBuilder: a } = e, s = P(h(r, "className", ""), l);
|
|
1343
|
+
return !t && C(r == null ? void 0 : r.className) ? /* @__PURE__ */ i(v, { inBuilder: a }) : y.createElement(
|
|
1340
1344
|
n || (l === "list-decimal" ? "ol" : "ul"),
|
|
1341
1345
|
{ ...o, ...r, className: s },
|
|
1342
1346
|
t
|
|
@@ -1459,7 +1463,7 @@ const z = (e, ...o) => ({
|
|
|
1459
1463
|
"Partial Block - ",
|
|
1460
1464
|
r
|
|
1461
1465
|
] }),
|
|
1462
|
-
/* @__PURE__ */
|
|
1466
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
1463
1467
|
]
|
|
1464
1468
|
}
|
|
1465
1469
|
) : y.createElement("span", { ...o }, l);
|
|
@@ -1525,13 +1529,13 @@ const z = (e, ...o) => ({
|
|
|
1525
1529
|
12: "lg:col-span-12"
|
|
1526
1530
|
}
|
|
1527
1531
|
}, ht = (e) => {
|
|
1528
|
-
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan:
|
|
1532
|
+
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
|
|
1529
1533
|
h(l, "className", ""),
|
|
1530
1534
|
h(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
|
|
1531
1535
|
n ? h(B, ["MEDIUM", n || r], "") : "",
|
|
1532
|
-
|
|
1536
|
+
a ? h(B, ["LARGE", n || r], "") : ""
|
|
1533
1537
|
].join(" ") };
|
|
1534
|
-
return /* @__PURE__ */
|
|
1538
|
+
return /* @__PURE__ */ i("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
1535
1539
|
}, kt = {
|
|
1536
1540
|
type: "Column",
|
|
1537
1541
|
description: "A column component",
|
|
@@ -1569,8 +1573,8 @@ const z = (e, ...o) => ({
|
|
|
1569
1573
|
}
|
|
1570
1574
|
})
|
|
1571
1575
|
}, xt = (e) => {
|
|
1572
|
-
const { blockProps: o, children: t, styles: l, gutter: r } = e,
|
|
1573
|
-
return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` :
|
|
1576
|
+
const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [h(l, "className", ""), " grid grid-cols-12"].join() };
|
|
1577
|
+
return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : a.style = { gap: `${r}px` }, /* @__PURE__ */ i("div", { ...o, ...l, ...a, children: t });
|
|
1574
1578
|
}, wt = {
|
|
1575
1579
|
type: "Row",
|
|
1576
1580
|
description: "A row component",
|
|
@@ -1608,7 +1612,7 @@ const z = (e, ...o) => ({
|
|
|
1608
1612
|
"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
1613
|
"max-w-full"
|
|
1610
1614
|
);
|
|
1611
|
-
return /* @__PURE__ */
|
|
1615
|
+
return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
|
|
1612
1616
|
}, vt = {
|
|
1613
1617
|
type: "RichText",
|
|
1614
1618
|
description: "A rich text block",
|
|
@@ -1656,14 +1660,14 @@ const z = (e, ...o) => ({
|
|
|
1656
1660
|
aiProps: ["content"],
|
|
1657
1661
|
i18nProps: ["content"],
|
|
1658
1662
|
canAcceptBlock: () => !0
|
|
1659
|
-
}, Pt = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */
|
|
1663
|
+
}, Pt = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Bt = {
|
|
1660
1664
|
type: "Text",
|
|
1661
1665
|
description: "A text component with no styling",
|
|
1662
1666
|
label: "Text",
|
|
1663
1667
|
hidden: !0,
|
|
1664
1668
|
category: "core",
|
|
1665
1669
|
group: "typography",
|
|
1666
|
-
icon:
|
|
1670
|
+
icon: ae,
|
|
1667
1671
|
...d({
|
|
1668
1672
|
properties: {
|
|
1669
1673
|
styles: u("text-black"),
|
|
@@ -1710,41 +1714,41 @@ const z = (e, ...o) => ({
|
|
|
1710
1714
|
}, 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
1715
|
const t = h(o, "autoplay", !1), l = h(o, "controls", !1), r = h(o, "loop", !1), n = t || h(o, "muted", !0);
|
|
1712
1716
|
if (N.test(e)) {
|
|
1713
|
-
const
|
|
1714
|
-
if (
|
|
1715
|
-
const s =
|
|
1717
|
+
const a = e.match(N);
|
|
1718
|
+
if (a) {
|
|
1719
|
+
const s = a[4];
|
|
1716
1720
|
let c = `https://www.youtube.com/embed/${s}`, m = t ? "autoplay=1" : "";
|
|
1717
1721
|
return m += r ? `&loop=1&playlist=${s}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
|
|
1718
1722
|
}
|
|
1719
1723
|
}
|
|
1720
1724
|
if (R.test(e)) {
|
|
1721
|
-
const
|
|
1722
|
-
if (
|
|
1723
|
-
const s =
|
|
1725
|
+
const a = e.match(R);
|
|
1726
|
+
if (a) {
|
|
1727
|
+
const s = a[1];
|
|
1724
1728
|
let c = "";
|
|
1725
1729
|
return c += t ? "autoplay=1" : "", c += l ? "&controls=1" : "&controls=0", c += n ? "&muted=1" : "", c += r ? "&loop=1" : "", `https://player.vimeo.com/video/${s}?${c}`;
|
|
1726
1730
|
}
|
|
1727
1731
|
}
|
|
1728
1732
|
return null;
|
|
1729
1733
|
}, _t = (e) => {
|
|
1730
|
-
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder:
|
|
1734
|
+
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a } = e, s = St(o, r);
|
|
1731
1735
|
return /* @__PURE__ */ f("div", { ...ce(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
1732
|
-
!s &&
|
|
1733
|
-
|
|
1736
|
+
!s && a ? /* @__PURE__ */ i("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__ */ i("iframe", { width: "100%", src: s, ...pe(l, "className") }),
|
|
1737
|
+
a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
|
|
1734
1738
|
] });
|
|
1735
1739
|
}, Tt = (e) => {
|
|
1736
|
-
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps:
|
|
1740
|
+
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a } = e;
|
|
1737
1741
|
let s = n;
|
|
1738
1742
|
const c = [...h(r, "srcsets", []) || []];
|
|
1739
1743
|
o && typeof o == "string" && c.push({ url: o, width: "9999" });
|
|
1740
1744
|
const m = c.sort((g, x) => parseInt(g.width) - parseInt(x.width)).filter((g) => !C(g.url) && !C(g.width));
|
|
1741
1745
|
m.length === 0 && !s && (s = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
|
|
1742
1746
|
const k = h(l, "autoplay", !1) || h(l, "muted", !0);
|
|
1743
|
-
return (s || !C(m)) && /* @__PURE__ */
|
|
1747
|
+
return (s || !C(m)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
|
|
1744
1748
|
"video",
|
|
1745
1749
|
{
|
|
1746
1750
|
...t,
|
|
1747
|
-
...
|
|
1751
|
+
...a,
|
|
1748
1752
|
key: JSON.stringify(m),
|
|
1749
1753
|
controls: h(l, "controls", !1),
|
|
1750
1754
|
autoPlay: h(l, "autoplay", !1),
|
|
@@ -1755,13 +1759,13 @@ const z = (e, ...o) => ({
|
|
|
1755
1759
|
m.map((g) => {
|
|
1756
1760
|
if (!g.url || g.url.length < 4 || isNaN(g.width)) return null;
|
|
1757
1761
|
const x = `(max-width: ${g.width}px)`;
|
|
1758
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ i("source", { src: g.url, media: x, type: g.type }, g.url);
|
|
1759
1763
|
}),
|
|
1760
1764
|
"Your browser does not support the video tag."
|
|
1761
1765
|
) });
|
|
1762
1766
|
}, Nt = (e) => {
|
|
1763
1767
|
const { videoSource: o } = e;
|
|
1764
|
-
return o === "Custom" ? /* @__PURE__ */
|
|
1768
|
+
return o === "Custom" ? /* @__PURE__ */ i(Tt, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(_t, { ...e }) : /* @__PURE__ */ f("div", { children: [
|
|
1765
1769
|
"Invalid video source : ",
|
|
1766
1770
|
o
|
|
1767
1771
|
] });
|
|
@@ -1769,7 +1773,7 @@ const z = (e, ...o) => ({
|
|
|
1769
1773
|
type: "Video",
|
|
1770
1774
|
label: "Video",
|
|
1771
1775
|
category: "core",
|
|
1772
|
-
icon:
|
|
1776
|
+
icon: ie,
|
|
1773
1777
|
group: "media",
|
|
1774
1778
|
...d({
|
|
1775
1779
|
properties: {
|
|
@@ -1851,17 +1855,17 @@ const z = (e, ...o) => ({
|
|
|
1851
1855
|
}),
|
|
1852
1856
|
i18nProps: ["url"]
|
|
1853
1857
|
}, At = (e) => {
|
|
1854
|
-
const { children: o, tag: t, styles: l, blockProps: r, inBuilder: n, $loading:
|
|
1858
|
+
const { children: o, tag: t, styles: l, blockProps: r, inBuilder: n, $loading: a } = e;
|
|
1855
1859
|
let s = o;
|
|
1856
|
-
return C(s) && n && (s = /* @__PURE__ */
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
/* @__PURE__ */
|
|
1860
|
+
return C(s) && n && (s = /* @__PURE__ */ i("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" ? a && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ f("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1861
|
+
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1862
|
+
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1859
1863
|
] }, m)) : s : y.createElement(
|
|
1860
1864
|
t,
|
|
1861
1865
|
{ ...r, ...l },
|
|
1862
|
-
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1866
|
+
a && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ f("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1867
|
+
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1868
|
+
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1865
1869
|
] }, m)) : s
|
|
1866
1870
|
);
|
|
1867
1871
|
}, Mt = {
|
|
@@ -1943,7 +1947,7 @@ const z = (e, ...o) => ({
|
|
|
1943
1947
|
return !e && r ? y.createElement(
|
|
1944
1948
|
n,
|
|
1945
1949
|
{ ...o, ...t },
|
|
1946
|
-
/* @__PURE__ */
|
|
1950
|
+
/* @__PURE__ */ i("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
1951
|
) : y.createElement(n, { ...o, ...t }, e);
|
|
1948
1952
|
}, Ht = {
|
|
1949
1953
|
type: "RepeaterItem",
|
|
@@ -1978,7 +1982,7 @@ const z = (e, ...o) => ({
|
|
|
1978
1982
|
canMove: () => !1,
|
|
1979
1983
|
canDuplicate: () => !1
|
|
1980
1984
|
}, 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(
|
|
1985
|
+
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(at, it), 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
1986
|
};
|
|
1983
1987
|
export {
|
|
1984
1988
|
Zt as loadWebBlocks
|