@chaibuilder/sdk 3.1.22 → 3.1.24
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-BclzCCn7.cjs → code-editor-Wr7ezSY6.cjs} +1 -1
- package/dist/{code-editor-D64ahHN_.js → code-editor-azfhn0NL.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +15 -0
- package/dist/core.js +1 -1
- package/dist/{index-CBT9rRYh.js → index-CCfSMyxt.js} +2162 -1813
- package/dist/index-CgmYAq2I.cjs +154 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +1 -0
- package/dist/render.js +91 -88
- package/dist/{rte-widget-modal-Cd_8db9R.js → rte-widget-modal-BqcjColT.js} +1 -1
- package/dist/{rte-widget-modal-C4SrkoTQ.cjs → rte-widget-modal-CD5g4cJG.cjs} +1 -1
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +130 -130
- package/package.json +1 -1
- package/dist/index-BlHe-VXv.cjs +0 -154
package/dist/web-blocks.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { registerChaiBlockSchema as p, StylesProp as u, registerChaiBlock as d, getRegisteredChaiBlock as U, stylesProp as L, closestBlockProp as Z } from "@chaibuilder/runtime";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as i, jsxs as g, Fragment as N } from "react/jsx-runtime";
|
|
3
3
|
import { c as _, 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, CodeIcon as H, FrameIcon as $, SketchLogoIcon as q, LayoutIcon as G, RowsIcon as j, DividerHorizontalIcon as W, CheckboxIcon as O, FileTextIcon as Y, InputIcon as D, LetterCaseToggleIcon as Q, RadiobuttonIcon as J, DropdownMenuIcon as X, HeadingIcon as K, TableIcon as ee, BorderTopIcon as te, BorderAllIcon as oe, ViewHorizontalIcon as le, DragHandleHorizontalIcon as re, ImageIcon as ne, Link1Icon as
|
|
6
|
+
import { ButtonIcon as M, CodeIcon as H, FrameIcon as $, SketchLogoIcon as q, LayoutIcon as G, RowsIcon as j, DividerHorizontalIcon as W, CheckboxIcon as O, FileTextIcon as Y, InputIcon as D, LetterCaseToggleIcon as Q, RadiobuttonIcon as J, DropdownMenuIcon as X, HeadingIcon as K, TableIcon as ee, BorderTopIcon as te, BorderAllIcon as oe, ViewHorizontalIcon as le, DragHandleHorizontalIcon as re, ImageIcon as ne, Link1Icon as ie, ColumnsIcon as ae, TextIcon as se, CursorTextIcon as ce, SpaceBetweenVerticallyIcon as de, VideoIcon as pe, ChevronLeftIcon as ue, ChevronRightIcon as me, LoopIcon as z } from "@radix-ui/react-icons";
|
|
7
7
|
import { isEmpty as v, get as k, map as R, isNull as ye, omit as V, pick as F } from "lodash-es";
|
|
8
|
-
const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */
|
|
9
|
-
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles:
|
|
8
|
+
const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: _("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) => {
|
|
9
|
+
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
|
|
10
10
|
let s = r;
|
|
11
|
-
r || (s = /* @__PURE__ */
|
|
11
|
+
r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
|
|
12
12
|
let c = {};
|
|
13
|
-
return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...
|
|
13
|
+
return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...a, style: c }, s);
|
|
14
14
|
}, be = {
|
|
15
15
|
type: "Box",
|
|
16
16
|
description: "Similar to a div or section elements in HTML",
|
|
@@ -54,9 +54,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
54
54
|
}),
|
|
55
55
|
canAcceptBlock: () => !0
|
|
56
56
|
}, fe = (e) => {
|
|
57
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children:
|
|
58
|
-
r && /* @__PURE__ */
|
|
59
|
-
h && /* @__PURE__ */
|
|
57
|
+
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: m } = e, h = l, b = a || /* @__PURE__ */ g(N, { children: [
|
|
58
|
+
r && /* @__PURE__ */ i("span", { children: r }),
|
|
59
|
+
h && /* @__PURE__ */ i(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
style: { width: t + "px" },
|
|
@@ -74,7 +74,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
74
74
|
},
|
|
75
75
|
b
|
|
76
76
|
);
|
|
77
|
-
return v(k(c, "href")) ? x : m ? /* @__PURE__ */
|
|
77
|
+
return v(k(c, "href")) ? x : m ? /* @__PURE__ */ i("span", { children: x }) : /* @__PURE__ */ i("a", { "aria-label": r, href: k(c, "href") || "/", target: k(c, "target", "_self"), children: x });
|
|
78
78
|
}, he = {
|
|
79
79
|
type: "Button",
|
|
80
80
|
description: "similar to a button element in HTML",
|
|
@@ -134,7 +134,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
134
134
|
}, ke = (e) => {
|
|
135
135
|
const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
|
|
136
136
|
return r ? /* @__PURE__ */ g("div", { className: "relative", ...o, children: [
|
|
137
|
-
r ? /* @__PURE__ */
|
|
137
|
+
r ? /* @__PURE__ */ i("div", { ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
138
138
|
y.createElement("div", {
|
|
139
139
|
...t,
|
|
140
140
|
dangerouslySetInnerHTML: { __html: l.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
@@ -164,7 +164,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
164
164
|
i18nProps: ["htmlCode"]
|
|
165
165
|
}, we = (e) => {
|
|
166
166
|
const { scripts: o, inBuilder: t, blockProps: l } = e;
|
|
167
|
-
return t ? /* @__PURE__ */
|
|
167
|
+
return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: _("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 } });
|
|
168
168
|
}, ve = {
|
|
169
169
|
type: "CustomScript",
|
|
170
170
|
description: "similar to a script element in HTML",
|
|
@@ -196,7 +196,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
196
196
|
"Global Block - ",
|
|
197
197
|
r
|
|
198
198
|
] }),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
200
200
|
]
|
|
201
201
|
}
|
|
202
202
|
) : y.createElement("span", { ...o }, l);
|
|
@@ -222,16 +222,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
222
222
|
...e,
|
|
223
223
|
className: _(e.className, ...o)
|
|
224
224
|
}), Pe = (e) => {
|
|
225
|
-
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height:
|
|
225
|
+
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = T(l, "");
|
|
226
226
|
if (v(t))
|
|
227
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
|
|
228
228
|
const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
229
229
|
return y.createElement("span", {
|
|
230
230
|
...o,
|
|
231
231
|
...s,
|
|
232
232
|
style: {
|
|
233
233
|
width: r ? `${r}px` : "auto",
|
|
234
|
-
height:
|
|
234
|
+
height: a ? `${a}px` : "auto"
|
|
235
235
|
},
|
|
236
236
|
dangerouslySetInnerHTML: { __html: c }
|
|
237
237
|
});
|
|
@@ -275,7 +275,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
275
275
|
"Partial Block - ",
|
|
276
276
|
r
|
|
277
277
|
] }),
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
279
279
|
]
|
|
280
280
|
}
|
|
281
281
|
) : y.createElement("span", { ...o }, l);
|
|
@@ -341,13 +341,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
341
341
|
12: "lg:col-span-12"
|
|
342
342
|
}
|
|
343
343
|
}, Ne = (e) => {
|
|
344
|
-
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan:
|
|
344
|
+
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
|
|
345
345
|
k(l, "className", ""),
|
|
346
346
|
k(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
|
|
347
347
|
n ? k(B, ["MEDIUM", n || r], "") : "",
|
|
348
|
-
|
|
348
|
+
a ? k(B, ["LARGE", n || r], "") : ""
|
|
349
349
|
].join(" ") };
|
|
350
|
-
return /* @__PURE__ */
|
|
350
|
+
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" }) });
|
|
351
351
|
}, _e = {
|
|
352
352
|
type: "Column",
|
|
353
353
|
description: "A column component",
|
|
@@ -386,8 +386,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
386
386
|
}
|
|
387
387
|
})
|
|
388
388
|
}, Te = (e) => {
|
|
389
|
-
const { blockProps: o, children: t, styles: l, gutter: r } = e,
|
|
390
|
-
return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` :
|
|
389
|
+
const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [k(l, "className", ""), " grid grid-cols-12"].join() };
|
|
390
|
+
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 });
|
|
391
391
|
}, Re = {
|
|
392
392
|
type: "Row",
|
|
393
393
|
description: "A row component",
|
|
@@ -457,11 +457,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
457
457
|
}
|
|
458
458
|
})
|
|
459
459
|
}, $e = (e) => {
|
|
460
|
-
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required:
|
|
460
|
+
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
461
461
|
return c ? /* @__PURE__ */ g("div", { ...r, ...o, children: [
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
l && /* @__PURE__ */
|
|
464
|
-
] }) : /* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
|
|
463
|
+
l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
|
|
464
|
+
] }) : /* @__PURE__ */ i(
|
|
465
465
|
"input",
|
|
466
466
|
{
|
|
467
467
|
name: t,
|
|
@@ -469,7 +469,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
469
469
|
...n,
|
|
470
470
|
...r,
|
|
471
471
|
type: "checkbox",
|
|
472
|
-
required:
|
|
472
|
+
required: a,
|
|
473
473
|
defaultChecked: s
|
|
474
474
|
}
|
|
475
475
|
);
|
|
@@ -513,9 +513,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
513
513
|
aiProps: ["label"],
|
|
514
514
|
i18nProps: ["label"]
|
|
515
515
|
}, De = (e) => {
|
|
516
|
-
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles:
|
|
516
|
+
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
|
|
517
517
|
let c = o;
|
|
518
|
-
return o || (c = /* @__PURE__ */
|
|
518
|
+
return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ g(
|
|
519
519
|
"form",
|
|
520
520
|
{
|
|
521
521
|
...{
|
|
@@ -527,9 +527,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
527
527
|
method: "post",
|
|
528
528
|
action: n,
|
|
529
529
|
...t,
|
|
530
|
-
...
|
|
530
|
+
...a,
|
|
531
531
|
children: [
|
|
532
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ i("div", { ...{
|
|
533
533
|
"x-html": "",
|
|
534
534
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
535
535
|
} }),
|
|
@@ -579,13 +579,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
579
579
|
aiProps: ["errorMessage", "successMessage"],
|
|
580
580
|
canAcceptBlock: () => !0
|
|
581
581
|
}, Ve = (e) => {
|
|
582
|
-
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize:
|
|
582
|
+
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
|
|
583
583
|
return /* @__PURE__ */ g("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
|
|
584
584
|
l,
|
|
585
|
-
n && /* @__PURE__ */
|
|
585
|
+
n && /* @__PURE__ */ i(
|
|
586
586
|
"div",
|
|
587
587
|
{
|
|
588
|
-
style: { width:
|
|
588
|
+
style: { width: a + "px" },
|
|
589
589
|
className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
|
|
590
590
|
dangerouslySetInnerHTML: { __html: n }
|
|
591
591
|
}
|
|
@@ -705,32 +705,32 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
705
705
|
label: l,
|
|
706
706
|
placeholder: r,
|
|
707
707
|
styles: n,
|
|
708
|
-
inputStyles:
|
|
708
|
+
inputStyles: a,
|
|
709
709
|
showLabel: s,
|
|
710
710
|
required: c,
|
|
711
711
|
inputType: m,
|
|
712
712
|
defaultValue: h
|
|
713
713
|
} = e, { type: b, autocomplete: x } = Ue(m);
|
|
714
714
|
return s ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
|
|
715
|
-
s && /* @__PURE__ */
|
|
716
|
-
/* @__PURE__ */
|
|
715
|
+
s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
716
|
+
/* @__PURE__ */ i(
|
|
717
717
|
"input",
|
|
718
718
|
{
|
|
719
719
|
name: t,
|
|
720
720
|
defaultValue: h,
|
|
721
|
-
...
|
|
721
|
+
...a,
|
|
722
722
|
type: b,
|
|
723
723
|
placeholder: r,
|
|
724
724
|
required: c,
|
|
725
725
|
autoComplete: x
|
|
726
726
|
}
|
|
727
727
|
)
|
|
728
|
-
] }) : /* @__PURE__ */
|
|
728
|
+
] }) : /* @__PURE__ */ i(
|
|
729
729
|
"input",
|
|
730
730
|
{
|
|
731
731
|
name: t,
|
|
732
732
|
...o,
|
|
733
|
-
...
|
|
733
|
+
...a,
|
|
734
734
|
...n,
|
|
735
735
|
type: b,
|
|
736
736
|
placeholder: r,
|
|
@@ -879,11 +879,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
879
879
|
aiProps: ["content"],
|
|
880
880
|
i18nProps: ["content"]
|
|
881
881
|
}, Oe = (e) => {
|
|
882
|
-
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required:
|
|
882
|
+
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
883
883
|
return c ? /* @__PURE__ */ g("div", { ...r, ...o, children: [
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
-
l && /* @__PURE__ */
|
|
886
|
-
] }) : /* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
|
|
885
|
+
l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
|
|
886
|
+
] }) : /* @__PURE__ */ i(
|
|
887
887
|
"input",
|
|
888
888
|
{
|
|
889
889
|
name: t,
|
|
@@ -891,7 +891,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
891
891
|
...n,
|
|
892
892
|
...r,
|
|
893
893
|
type: "radio",
|
|
894
|
-
required:
|
|
894
|
+
required: a,
|
|
895
895
|
checked: s
|
|
896
896
|
}
|
|
897
897
|
);
|
|
@@ -941,7 +941,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
941
941
|
label: l,
|
|
942
942
|
placeholder: r,
|
|
943
943
|
styles: n,
|
|
944
|
-
inputStyles:
|
|
944
|
+
inputStyles: a,
|
|
945
945
|
required: s,
|
|
946
946
|
showLabel: c,
|
|
947
947
|
_multiple: m,
|
|
@@ -949,18 +949,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
949
949
|
defaultValue: b
|
|
950
950
|
} = e, x = m && b ? b.split(",").map((f) => f.trim()) : b || "";
|
|
951
951
|
return c ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
|
|
952
|
-
c && /* @__PURE__ */
|
|
952
|
+
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
953
953
|
/* @__PURE__ */ g(
|
|
954
954
|
"select",
|
|
955
955
|
{
|
|
956
|
-
...
|
|
956
|
+
...a,
|
|
957
957
|
required: s,
|
|
958
958
|
multiple: m,
|
|
959
959
|
name: t,
|
|
960
960
|
defaultValue: x,
|
|
961
961
|
children: [
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
R(h, (f) => /* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
963
|
+
R(h, (f) => /* @__PURE__ */ i("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
|
|
964
964
|
]
|
|
965
965
|
}
|
|
966
966
|
)
|
|
@@ -974,8 +974,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
974
974
|
name: t,
|
|
975
975
|
defaultValue: x,
|
|
976
976
|
children: [
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
R(h, (f) => /* @__PURE__ */
|
|
977
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
|
|
978
|
+
R(h, (f) => /* @__PURE__ */ i("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
|
|
979
979
|
]
|
|
980
980
|
}
|
|
981
981
|
);
|
|
@@ -1049,26 +1049,26 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1049
1049
|
aiProps: ["label", "placeholder"],
|
|
1050
1050
|
i18nProps: ["label", "placeholder"]
|
|
1051
1051
|
}, Xe = (e) => {
|
|
1052
|
-
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles:
|
|
1052
|
+
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: m, defaultValue: h } = e;
|
|
1053
1053
|
return c ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
|
|
1054
|
-
c && /* @__PURE__ */
|
|
1055
|
-
/* @__PURE__ */
|
|
1054
|
+
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
1055
|
+
/* @__PURE__ */ i(
|
|
1056
1056
|
"textarea",
|
|
1057
1057
|
{
|
|
1058
1058
|
name: t,
|
|
1059
|
-
...
|
|
1059
|
+
...a,
|
|
1060
1060
|
placeholder: r,
|
|
1061
1061
|
rows: s,
|
|
1062
1062
|
required: m,
|
|
1063
1063
|
defaultValue: h
|
|
1064
1064
|
}
|
|
1065
1065
|
)
|
|
1066
|
-
] }) : /* @__PURE__ */
|
|
1066
|
+
] }) : /* @__PURE__ */ i(
|
|
1067
1067
|
"textarea",
|
|
1068
1068
|
{
|
|
1069
1069
|
name: t,
|
|
1070
1070
|
...o,
|
|
1071
|
-
...
|
|
1071
|
+
...a,
|
|
1072
1072
|
...n,
|
|
1073
1073
|
placeholder: r,
|
|
1074
1074
|
rows: s,
|
|
@@ -1181,19 +1181,19 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1181
1181
|
canDuplicate: () => !1
|
|
1182
1182
|
}, rt = (e) => {
|
|
1183
1183
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1184
|
-
return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */
|
|
1184
|
+
return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1185
1185
|
}, nt = (e) => {
|
|
1186
1186
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1187
|
-
return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */
|
|
1188
|
-
}, at = (e) => {
|
|
1189
|
-
const { blockProps: o, children: t, styles: l } = e;
|
|
1190
|
-
return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
|
|
1187
|
+
return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1191
1188
|
}, it = (e) => {
|
|
1192
1189
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1193
|
-
return t ? w("
|
|
1190
|
+
return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1191
|
+
}, at = (e) => {
|
|
1192
|
+
const { blockProps: o, children: t, styles: l } = e;
|
|
1193
|
+
return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1194
1194
|
}, st = (e) => {
|
|
1195
1195
|
const { blockProps: o, children: t, content: l, styles: r } = e;
|
|
1196
|
-
return !t && v(l) ? /* @__PURE__ */
|
|
1196
|
+
return !t && v(l) ? /* @__PURE__ */ i(C, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
|
|
1197
1197
|
...o,
|
|
1198
1198
|
...r,
|
|
1199
1199
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -1227,7 +1227,7 @@ d(nt, {
|
|
|
1227
1227
|
}),
|
|
1228
1228
|
blocks: P("TableHead")
|
|
1229
1229
|
});
|
|
1230
|
-
d(
|
|
1230
|
+
d(it, {
|
|
1231
1231
|
type: "TableBody",
|
|
1232
1232
|
label: "Table Body",
|
|
1233
1233
|
category: "core",
|
|
@@ -1241,7 +1241,7 @@ d(at, {
|
|
|
1241
1241
|
}),
|
|
1242
1242
|
blocks: P("TableBody")
|
|
1243
1243
|
});
|
|
1244
|
-
d(
|
|
1244
|
+
d(at, {
|
|
1245
1245
|
type: "TableRow",
|
|
1246
1246
|
label: "Table Row",
|
|
1247
1247
|
category: "core",
|
|
@@ -1278,33 +1278,33 @@ d(st, {
|
|
|
1278
1278
|
aiProps: ["content"]
|
|
1279
1279
|
});
|
|
1280
1280
|
function P(e) {
|
|
1281
|
-
const o = (n,
|
|
1281
|
+
const o = (n, a) => ({
|
|
1282
1282
|
_id: I(),
|
|
1283
1283
|
_parent: n,
|
|
1284
1284
|
_type: "TableCell",
|
|
1285
1285
|
styles: "#styles:,",
|
|
1286
|
-
content: `${e === "TableHead" ? "Table Head" : "Table Cell " +
|
|
1286
|
+
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + a}`
|
|
1287
1287
|
}), t = (n) => {
|
|
1288
|
-
const
|
|
1288
|
+
const a = I(), s = {
|
|
1289
1289
|
_type: "TableRow",
|
|
1290
|
-
_id:
|
|
1290
|
+
_id: a,
|
|
1291
1291
|
styles: "#styles:,border-b"
|
|
1292
1292
|
};
|
|
1293
|
-
return n && (s._parent = n), [s, o(
|
|
1293
|
+
return n && (s._parent = n), [s, o(a, "1"), o(a, "2"), o(a, "3")];
|
|
1294
1294
|
}, l = (n) => {
|
|
1295
|
-
const
|
|
1296
|
-
_id:
|
|
1295
|
+
const a = I(), s = {
|
|
1296
|
+
_id: a,
|
|
1297
1297
|
_type: "TableHead",
|
|
1298
1298
|
styles: "#styles:,font-medium"
|
|
1299
1299
|
};
|
|
1300
|
-
return n && (s._parent = n), [s, ...t(
|
|
1300
|
+
return n && (s._parent = n), [s, ...t(a)];
|
|
1301
1301
|
}, r = (n) => {
|
|
1302
|
-
const
|
|
1303
|
-
_id:
|
|
1302
|
+
const a = I(), s = {
|
|
1303
|
+
_id: a,
|
|
1304
1304
|
_type: "TableBody",
|
|
1305
1305
|
styles: "#styles:,"
|
|
1306
1306
|
};
|
|
1307
|
-
return n && (s._parent = n), [s, ...t(
|
|
1307
|
+
return n && (s._parent = n), [s, ...t(a), ...t(a)];
|
|
1308
1308
|
};
|
|
1309
1309
|
if (e === "Table") {
|
|
1310
1310
|
const n = I();
|
|
@@ -1321,10 +1321,10 @@ function P(e) {
|
|
|
1321
1321
|
return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
|
|
1322
1322
|
}
|
|
1323
1323
|
const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", dt = (e) => {
|
|
1324
|
-
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height:
|
|
1325
|
-
return v(t) ? /* @__PURE__ */
|
|
1326
|
-
l && /* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1324
|
+
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: m, mobileHeight: h } = e;
|
|
1325
|
+
return v(t) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ g("picture", { children: [
|
|
1326
|
+
l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: m, height: h }),
|
|
1327
|
+
/* @__PURE__ */ i(
|
|
1328
1328
|
"img",
|
|
1329
1329
|
{
|
|
1330
1330
|
...o,
|
|
@@ -1333,7 +1333,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1333
1333
|
alt: n,
|
|
1334
1334
|
loading: c ? "lazy" : "eager",
|
|
1335
1335
|
width: s,
|
|
1336
|
-
height:
|
|
1336
|
+
height: a
|
|
1337
1337
|
}
|
|
1338
1338
|
)
|
|
1339
1339
|
] });
|
|
@@ -1399,9 +1399,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1399
1399
|
aiProps: ["alt"],
|
|
1400
1400
|
i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
|
|
1401
1401
|
}, ut = (e) => {
|
|
1402
|
-
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content:
|
|
1402
|
+
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
|
|
1403
1403
|
let s = {};
|
|
1404
|
-
return !l && v(
|
|
1404
|
+
return !l && v(a) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ i("span", { role: "link", ...o, style: s, ...r, children: l }) : w(
|
|
1405
1405
|
"span",
|
|
1406
1406
|
{
|
|
1407
1407
|
...o,
|
|
@@ -1409,31 +1409,31 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1409
1409
|
style: s,
|
|
1410
1410
|
role: "link"
|
|
1411
1411
|
},
|
|
1412
|
-
|
|
1413
|
-
) : l ? /* @__PURE__ */
|
|
1412
|
+
a
|
|
1413
|
+
) : 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(
|
|
1414
1414
|
"a",
|
|
1415
1415
|
{
|
|
1416
1416
|
...o,
|
|
1417
1417
|
...r,
|
|
1418
1418
|
href: (t == null ? void 0 : t.href) || "#",
|
|
1419
1419
|
target: (t == null ? void 0 : t.target) || "_self",
|
|
1420
|
-
"aria-label":
|
|
1420
|
+
"aria-label": a
|
|
1421
1421
|
},
|
|
1422
|
-
|
|
1422
|
+
a
|
|
1423
1423
|
);
|
|
1424
1424
|
}, mt = {
|
|
1425
1425
|
type: "Link",
|
|
1426
1426
|
description: "A link component",
|
|
1427
1427
|
label: "Link",
|
|
1428
1428
|
category: "core",
|
|
1429
|
-
icon:
|
|
1429
|
+
icon: ie,
|
|
1430
1430
|
group: "basic",
|
|
1431
1431
|
...p({
|
|
1432
1432
|
properties: {
|
|
1433
|
-
styles: u(""),
|
|
1433
|
+
styles: u("block"),
|
|
1434
1434
|
content: {
|
|
1435
1435
|
type: "string",
|
|
1436
|
-
default: "Link goes here",
|
|
1436
|
+
default: "Link text goes here",
|
|
1437
1437
|
title: "Content"
|
|
1438
1438
|
},
|
|
1439
1439
|
link: {
|
|
@@ -1464,7 +1464,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1464
1464
|
canAcceptBlock: (e) => e !== "Link"
|
|
1465
1465
|
}, yt = (e) => {
|
|
1466
1466
|
const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
|
|
1467
|
-
return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */
|
|
1467
|
+
return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : y.createElement(r || "ul", { ...o, ...l }, t);
|
|
1468
1468
|
}, gt = {
|
|
1469
1469
|
type: "List",
|
|
1470
1470
|
description: "A list component",
|
|
@@ -1513,7 +1513,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1513
1513
|
type: "ListItem",
|
|
1514
1514
|
description: "A list item component",
|
|
1515
1515
|
label: "List Item",
|
|
1516
|
-
icon:
|
|
1516
|
+
icon: ae,
|
|
1517
1517
|
category: "core",
|
|
1518
1518
|
group: "basic",
|
|
1519
1519
|
...p({
|
|
@@ -1565,7 +1565,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1565
1565
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
1566
1566
|
}, xt = (e) => {
|
|
1567
1567
|
const { blockProps: o, content: t, styles: l } = e, r = T(l, "rte");
|
|
1568
|
-
return /* @__PURE__ */
|
|
1568
|
+
return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
|
|
1569
1569
|
}, wt = {
|
|
1570
1570
|
type: "RichText",
|
|
1571
1571
|
description: "A rich text block",
|
|
@@ -1599,7 +1599,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1599
1599
|
description: "A span component",
|
|
1600
1600
|
label: "Span",
|
|
1601
1601
|
category: "core",
|
|
1602
|
-
group: "
|
|
1602
|
+
group: "basic",
|
|
1603
1603
|
...p({
|
|
1604
1604
|
properties: {
|
|
1605
1605
|
styles: u(""),
|
|
@@ -1614,13 +1614,13 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1614
1614
|
aiProps: ["content"],
|
|
1615
1615
|
i18nProps: ["content"],
|
|
1616
1616
|
canAcceptBlock: () => !0
|
|
1617
|
-
}, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */
|
|
1617
|
+
}, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
|
|
1618
1618
|
type: "Text",
|
|
1619
1619
|
description: "A text component with no styling",
|
|
1620
|
-
label: "
|
|
1620
|
+
label: "Text",
|
|
1621
1621
|
category: "core",
|
|
1622
1622
|
group: "typography",
|
|
1623
|
-
blocks: () => [{ _id: "a", _type: "Text", _name: "
|
|
1623
|
+
blocks: () => [{ _id: "a", _type: "Text", _name: "Text", content: "" }],
|
|
1624
1624
|
icon: de,
|
|
1625
1625
|
...p({
|
|
1626
1626
|
properties: {
|
|
@@ -1668,41 +1668,41 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1668
1668
|
}, A = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, E = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Lt = (e, o) => {
|
|
1669
1669
|
const t = k(o, "autoplay", !1), l = k(o, "controls", !1), r = k(o, "loop", !1), n = t || k(o, "muted", !0);
|
|
1670
1670
|
if (A.test(e)) {
|
|
1671
|
-
const
|
|
1672
|
-
if (
|
|
1673
|
-
const s =
|
|
1671
|
+
const a = e.match(A);
|
|
1672
|
+
if (a) {
|
|
1673
|
+
const s = a[4];
|
|
1674
1674
|
let c = `https://www.youtube.com/embed/${s}`, m = t ? "autoplay=1" : "";
|
|
1675
1675
|
return m += r ? `&loop=1&playlist=${s}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
if (E.test(e)) {
|
|
1679
|
-
const
|
|
1680
|
-
if (
|
|
1681
|
-
const s =
|
|
1679
|
+
const a = e.match(E);
|
|
1680
|
+
if (a) {
|
|
1681
|
+
const s = a[1];
|
|
1682
1682
|
let c = "";
|
|
1683
1683
|
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}`;
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
return null;
|
|
1687
1687
|
}, Bt = (e) => {
|
|
1688
|
-
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder:
|
|
1688
|
+
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a } = e, s = Lt(o, r);
|
|
1689
1689
|
return /* @__PURE__ */ g("div", { ...V(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
1690
|
-
!s &&
|
|
1691
|
-
|
|
1690
|
+
!s && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: v(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i("iframe", { width: "100%", src: s, ...F(l, "className") }),
|
|
1691
|
+
a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
|
|
1692
1692
|
] });
|
|
1693
1693
|
}, St = (e) => {
|
|
1694
|
-
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps:
|
|
1694
|
+
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a } = e;
|
|
1695
1695
|
let s = n;
|
|
1696
1696
|
const c = [...k(r, "srcsets", []) || []];
|
|
1697
1697
|
o && typeof o == "string" && c.push({ url: o, width: "9999" });
|
|
1698
1698
|
const m = c.sort((b, x) => parseInt(b.width) - parseInt(x.width)).filter((b) => !v(b.url) && !v(b.width));
|
|
1699
1699
|
m.length === 0 && !s && (s = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
|
|
1700
1700
|
const h = k(l, "autoplay", !1) || k(l, "muted", !0);
|
|
1701
|
-
return (s || !v(m)) && /* @__PURE__ */
|
|
1701
|
+
return (s || !v(m)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
|
|
1702
1702
|
"video",
|
|
1703
1703
|
{
|
|
1704
1704
|
...t,
|
|
1705
|
-
...
|
|
1705
|
+
...a,
|
|
1706
1706
|
key: JSON.stringify(m),
|
|
1707
1707
|
controls: k(l, "controls", !1),
|
|
1708
1708
|
autoPlay: k(l, "autoplay", !1),
|
|
@@ -1713,13 +1713,13 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1713
1713
|
m.map((b) => {
|
|
1714
1714
|
if (!b.url || b.url.length < 4 || isNaN(b.width)) return null;
|
|
1715
1715
|
const x = `(max-width: ${b.width}px)`;
|
|
1716
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ i("source", { src: b.url, media: x, type: b.type }, b.url);
|
|
1717
1717
|
}),
|
|
1718
1718
|
"Your browser does not support the video tag."
|
|
1719
1719
|
) });
|
|
1720
1720
|
}, Nt = (e) => {
|
|
1721
1721
|
const { videoSource: o } = e;
|
|
1722
|
-
return o === "Custom" ? /* @__PURE__ */
|
|
1722
|
+
return o === "Custom" ? /* @__PURE__ */ i(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
|
|
1723
1723
|
"Invalid video source : ",
|
|
1724
1724
|
o
|
|
1725
1725
|
] });
|
|
@@ -1810,38 +1810,38 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1810
1810
|
i18nProps: ["url"]
|
|
1811
1811
|
}, Tt = (e) => {
|
|
1812
1812
|
const { paginationStyles: o } = e, t = U("Pagination");
|
|
1813
|
-
return /* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1813
|
+
return /* @__PURE__ */ i("div", { ...o, children: t ? y.createElement(t.component, { ...V(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ g(N, { children: [
|
|
1814
|
+
/* @__PURE__ */ i(
|
|
1815
1815
|
"button",
|
|
1816
1816
|
{
|
|
1817
1817
|
className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1818
1818
|
disabled: !0,
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1819
|
+
children: /* @__PURE__ */ i(ue, { className: "h-4 w-4" })
|
|
1820
1820
|
}
|
|
1821
1821
|
),
|
|
1822
|
-
/* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-blue-500 bg-blue-500 font-medium text-white", children: "1" }),
|
|
1823
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "2" }),
|
|
1824
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "3" }),
|
|
1825
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "4" }),
|
|
1826
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "5" }),
|
|
1827
|
+
/* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50", children: /* @__PURE__ */ i(me, { className: "h-4 w-4" }) })
|
|
1828
1828
|
] }) });
|
|
1829
1829
|
}, Rt = (e) => {
|
|
1830
|
-
const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination:
|
|
1830
|
+
const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
|
|
1831
1831
|
let c = o;
|
|
1832
|
-
return v(c) && s && (c = /* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
/* @__PURE__ */
|
|
1832
|
+
return v(c) && s && (c = /* @__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" ? n && s ? Array.from({ length: 2 }).map((m, h) => /* @__PURE__ */ g("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1833
|
+
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1834
|
+
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1835
1835
|
] }, h)) : c : /* @__PURE__ */ g(N, { children: [
|
|
1836
1836
|
y.createElement(
|
|
1837
1837
|
t,
|
|
1838
1838
|
{ ...r, ...l },
|
|
1839
1839
|
n && s ? Array.from({ length: 2 }).map((m, h) => /* @__PURE__ */ g("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1840
|
-
/* @__PURE__ */
|
|
1841
|
-
/* @__PURE__ */
|
|
1840
|
+
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1841
|
+
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1842
1842
|
] }, h)) : c
|
|
1843
1843
|
),
|
|
1844
|
-
|
|
1844
|
+
a && /* @__PURE__ */ i(
|
|
1845
1845
|
Tt,
|
|
1846
1846
|
{
|
|
1847
1847
|
...F(e, [
|
|
@@ -1972,7 +1972,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1972
1972
|
return !e && r ? y.createElement(
|
|
1973
1973
|
n,
|
|
1974
1974
|
{ ...o, ...t },
|
|
1975
|
-
/* @__PURE__ */
|
|
1975
|
+
/* @__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" })
|
|
1976
1976
|
) : y.createElement(n, { ...o, ...t }, e);
|
|
1977
1977
|
}, Mt = {
|
|
1978
1978
|
type: "RepeaterItem",
|