@chaibuilder/sdk 2.2.24 → 2.2.26

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.
@@ -6,12 +6,12 @@ import { createElement as w } from "react";
6
6
  import { ButtonIcon as R, CopyIcon as z, CodeIcon as D, DividerHorizontalIcon as j, CheckboxIcon as V, InputIcon as M, LetterCaseToggleIcon as q, RadiobuttonIcon as F, DropdownMenuIcon as U, HeadingIcon as G, TableIcon as O, BorderTopIcon as Y, BorderAllIcon as W, ViewHorizontalIcon as X, DragHandleHorizontalIcon as J, SketchLogoIcon as Q, ImageIcon as Z, Link1Icon as K, RowsIcon as ee, ColumnsIcon as te, TextIcon as oe, CursorTextIcon as le, SpaceBetweenVerticallyIcon as re, VideoIcon as ne, LoopIcon as E } from "@radix-ui/react-icons";
7
7
  import { isEmpty as C, get as h, map as S, isNull as ie, omit as se, pick as ae } from "lodash-es";
8
8
  import { FileCode as ce, GroupIcon as pe, GlobeIcon as A, Columns as de, Rows as ue } from "lucide-react";
9
- const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div", { className: B("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ s("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ s("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, me = (e) => {
10
- const { blockProps: t, inBuilder: o, backgroundImage: l, children: r, tag: n = "div", styles: i } = e;
9
+ const x = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s("div", { className: B("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ s("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ s("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, me = (e) => {
10
+ const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: i } = e;
11
11
  let a = r;
12
- r || (a = /* @__PURE__ */ s(x, { inBuilder: o }));
12
+ r || (a = /* @__PURE__ */ s(x, { inBuilder: t }));
13
13
  let c = {};
14
- return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...t, ...i, style: c }, a);
14
+ return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...o, ...i, style: c }, a);
15
15
  }, ye = {
16
16
  type: "Box",
17
17
  description: "Similar to a div or section elements in HTML",
@@ -55,12 +55,12 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
55
55
  }),
56
56
  canAcceptBlock: () => !0
57
57
  }, ge = (e) => {
58
- const { blockProps: t, iconSize: o, icon: l, content: r, styles: n, children: i, iconPos: a, link: c, inBuilder: m } = e, k = l, g = i || /* @__PURE__ */ f(N, { children: [
58
+ const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: i, iconPos: a, link: c, inBuilder: m } = e, k = l, g = i || /* @__PURE__ */ f(N, { children: [
59
59
  /* @__PURE__ */ s("span", { "data-ai-key": "content", children: r }),
60
60
  k && /* @__PURE__ */ s(
61
61
  "div",
62
62
  {
63
- style: { width: o + "px" },
63
+ style: { width: t + "px" },
64
64
  className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
65
65
  dangerouslySetInnerHTML: { __html: k }
66
66
  }
@@ -68,7 +68,7 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
68
68
  ] }), y = w(
69
69
  "button",
70
70
  {
71
- ...t,
71
+ ...o,
72
72
  ...n,
73
73
  type: "button",
74
74
  "aria-label": r
@@ -129,14 +129,14 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
129
129
  i18nProps: ["content"],
130
130
  aiProps: ["content"]
131
131
  }, fe = (e) => {
132
- const { blockProps: t, iconSize: o, icon: l, content: r, styles: n } = e, i = l, a = /* @__PURE__ */ f(N, { children: [
132
+ const { blockProps: o, iconSize: t, icon: l, content: r, styles: n } = e, i = l, a = /* @__PURE__ */ f(N, { children: [
133
133
  /* @__PURE__ */ s("span", { "data-ai-key": "content", children: r }),
134
- i && /* @__PURE__ */ s("div", { style: { width: o + "px" }, dangerouslySetInnerHTML: { __html: i } })
134
+ i && /* @__PURE__ */ s("div", { style: { width: t + "px" }, dangerouslySetInnerHTML: { __html: i } })
135
135
  ] });
136
136
  return w(
137
137
  "button",
138
138
  {
139
- ...t,
139
+ ...o,
140
140
  ...n,
141
141
  type: "button",
142
142
  "aria-label": r
@@ -174,16 +174,16 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
174
174
  i18nProps: ["content"],
175
175
  aiProps: ["content"]
176
176
  }, ke = (e) => {
177
- const { blockProps: t, styles: o, htmlCode: l, inBuilder: r } = e;
177
+ const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
178
178
  return r ? /* @__PURE__ */ f("div", { className: "relative", children: [
179
- r ? /* @__PURE__ */ s("div", { ...t, ...o, className: "absolute z-20 h-full w-full" }) : null,
179
+ r ? /* @__PURE__ */ s("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
180
180
  b.createElement("div", {
181
- ...o,
181
+ ...t,
182
182
  dangerouslySetInnerHTML: { __html: l.replace(/<script.*?>.*?<\/script>/g, "") }
183
183
  })
184
184
  ] }) : b.createElement("div", {
185
- ...t,
186
185
  ...o,
186
+ ...t,
187
187
  dangerouslySetInnerHTML: { __html: l }
188
188
  });
189
189
  }, we = {
@@ -204,8 +204,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
204
204
  }
205
205
  })
206
206
  }, ve = (e) => {
207
- const { scripts: t, inBuilder: o, blockProps: l } = e;
208
- return o ? /* @__PURE__ */ s("div", { ...l, children: /* @__PURE__ */ s("div", { className: B("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ s("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ s("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__ */ s("div", { dangerouslySetInnerHTML: { __html: t } });
207
+ const { scripts: o, inBuilder: t, blockProps: l } = e;
208
+ return t ? /* @__PURE__ */ s("div", { ...l, children: /* @__PURE__ */ s("div", { className: B("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ s("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ s("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__ */ s("div", { dangerouslySetInnerHTML: { __html: o } });
209
209
  }, Ce = {
210
210
  type: "CustomScript",
211
211
  description: "similar to a script element in HTML",
@@ -225,8 +225,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
225
225
  }
226
226
  })
227
227
  }, xe = (e) => {
228
- const { blockProps: t, styles: o } = e;
229
- return w("hr", { ...o, ...t });
228
+ const { blockProps: o, styles: t } = e;
229
+ return w("hr", { ...t, ...o });
230
230
  }, Ie = {
231
231
  type: "Divider",
232
232
  description: "A horizontal line component",
@@ -240,9 +240,9 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
240
240
  }
241
241
  })
242
242
  }, Be = (e) => {
243
- const { blockProps: t, styles: o, backgroundImage: l } = e;
243
+ const { blockProps: o, styles: t, backgroundImage: l } = e;
244
244
  let r = {};
245
- return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...t, ...o, style: r });
245
+ return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...o, ...t, style: r });
246
246
  }, Le = {
247
247
  type: "EmptyBox",
248
248
  description: "A box component with no children",
@@ -261,13 +261,13 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
261
261
  }
262
262
  })
263
263
  }, Pe = (e) => {
264
- const { blockProps: t, fieldName: o, label: l, styles: r, inputStyles: n, required: i, checked: a, showLabel: c = !0 } = e, m = v();
265
- return c ? /* @__PURE__ */ f("div", { ...r, ...t, children: [
264
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: a, showLabel: c = !0 } = e, m = v();
265
+ return c ? /* @__PURE__ */ f("div", { ...r, ...o, children: [
266
266
  /* @__PURE__ */ s(
267
267
  "input",
268
268
  {
269
269
  ...n,
270
- name: o,
270
+ name: t,
271
271
  id: m,
272
272
  type: "checkbox",
273
273
  required: i,
@@ -279,12 +279,12 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
279
279
  "input",
280
280
  {
281
281
  id: m,
282
- ...t,
282
+ ...o,
283
283
  ...n,
284
284
  ...r,
285
285
  type: "checkbox",
286
286
  required: i,
287
- name: o
287
+ name: t
288
288
  }
289
289
  );
290
290
  }, Se = {
@@ -327,9 +327,9 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
327
327
  aiProps: ["label"],
328
328
  i18nProps: ["label"]
329
329
  }, _e = (e) => {
330
- const { children: t, blockProps: o, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: a } = e;
331
- let c = t;
332
- return t || (c = /* @__PURE__ */ s(x, { inBuilder: a })), /* @__PURE__ */ f(
330
+ const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: a } = e;
331
+ let c = o;
332
+ return o || (c = /* @__PURE__ */ s(x, { inBuilder: a })), /* @__PURE__ */ f(
333
333
  "form",
334
334
  {
335
335
  ...{
@@ -340,7 +340,7 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
340
340
  "data-success": r,
341
341
  method: "post",
342
342
  action: n,
343
- ...o,
343
+ ...t,
344
344
  ...i,
345
345
  children: [
346
346
  /* @__PURE__ */ s("div", { ...{
@@ -393,7 +393,7 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
393
393
  aiProps: ["errorMessage", "successMessage"],
394
394
  canAcceptBlock: () => !0
395
395
  }, Ne = (e) => {
396
- const { blockProps: t, inBuilder: o, label: l, styles: r, inputStyles: n, icon: i, iconSize: a, iconPos: c } = e, m = v();
396
+ const { blockProps: o, inBuilder: t, label: l, styles: r, inputStyles: n, icon: i, iconSize: a, iconPos: c } = e, m = v();
397
397
  return /* @__PURE__ */ f(
398
398
  "button",
399
399
  {
@@ -403,8 +403,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
403
403
  },
404
404
  ...n,
405
405
  ...r,
406
- ...t || {},
407
- type: o ? "button" : "submit",
406
+ ...o || {},
407
+ type: t ? "button" : "submit",
408
408
  "aria-label": l,
409
409
  children: [
410
410
  l,
@@ -461,8 +461,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
461
461
  aiProps: ["label"]
462
462
  }, Me = (e) => {
463
463
  const {
464
- blockProps: t,
465
- fieldName: o,
464
+ blockProps: o,
465
+ fieldName: t,
466
466
  label: l,
467
467
  placeholder: r,
468
468
  styles: n,
@@ -472,12 +472,12 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
472
472
  inputType: m,
473
473
  autocomplete: k
474
474
  } = e, g = v();
475
- return a ? /* @__PURE__ */ f("div", { ...n, ...t, children: [
475
+ return a ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
476
476
  a && /* @__PURE__ */ s("label", { htmlFor: g, children: l }),
477
477
  /* @__PURE__ */ s(
478
478
  "input",
479
479
  {
480
- name: o,
480
+ name: t,
481
481
  ...i,
482
482
  id: g,
483
483
  type: m,
@@ -490,8 +490,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
490
490
  "input",
491
491
  {
492
492
  id: g,
493
- name: o,
494
- ...t,
493
+ name: t,
494
+ ...o,
495
495
  ...i,
496
496
  ...n,
497
497
  type: m,
@@ -566,10 +566,10 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
566
566
  aiProps: ["label", "placeholder"],
567
567
  i18nProps: ["label", "placeholder"]
568
568
  }, Ae = (e) => {
569
- const { blockProps: t, content: o, styles: l, children: r } = e, n = { ...l, ...t };
569
+ const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
570
570
  return r ? b.createElement("label", n, r) : b.createElement("label", {
571
571
  ...n,
572
- dangerouslySetInnerHTML: { __html: o }
572
+ dangerouslySetInnerHTML: { __html: t }
573
573
  });
574
574
  }, $e = {
575
575
  type: "Label",
@@ -590,21 +590,21 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
590
590
  aiProps: ["content"],
591
591
  i18nProps: ["content"]
592
592
  }, He = (e) => {
593
- const { blockProps: t, fieldName: o, label: l, styles: r, inputStyles: n, required: i, checked: a, showLabel: c = !0 } = e, m = v();
594
- return c ? /* @__PURE__ */ f("div", { ...r, ...t, children: [
595
- /* @__PURE__ */ s("input", { ...n, name: o, id: m, type: "radio", required: i, defaultChecked: a }),
593
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: a, showLabel: c = !0 } = e, m = v();
594
+ return c ? /* @__PURE__ */ f("div", { ...r, ...o, children: [
595
+ /* @__PURE__ */ s("input", { ...n, name: t, id: m, type: "radio", required: i, defaultChecked: a }),
596
596
  l && /* @__PURE__ */ s("label", { htmlFor: m, children: l })
597
597
  ] }) : /* @__PURE__ */ s(
598
598
  "input",
599
599
  {
600
600
  id: m,
601
- ...t,
601
+ ...o,
602
602
  ...n,
603
603
  ...r,
604
604
  type: "radio",
605
605
  required: i,
606
606
  checked: a,
607
- name: o
607
+ name: t
608
608
  }
609
609
  );
610
610
  }, ze = {
@@ -647,14 +647,14 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
647
647
  aiProps: ["label"],
648
648
  i18nProps: ["label"]
649
649
  }, De = (e) => {
650
- const { blockProps: t, fieldName: o, label: l, placeholder: r, styles: n, inputStyles: i, required: a, showLabel: c, _multiple: m, options: k } = e, g = v();
651
- return c ? /* @__PURE__ */ f("div", { ...n, ...t, children: [
650
+ const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: i, required: a, showLabel: c, _multiple: m, options: k } = e, g = v();
651
+ return c ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
652
652
  c && /* @__PURE__ */ s("label", { htmlFor: g, children: l }),
653
- /* @__PURE__ */ f("select", { ...i, id: g, required: a, multiple: m, name: o, children: [
653
+ /* @__PURE__ */ f("select", { ...i, id: g, required: a, multiple: m, name: t, children: [
654
654
  /* @__PURE__ */ s("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: r }),
655
655
  S(k, (y) => /* @__PURE__ */ s("option", { value: y == null ? void 0 : y.value, children: y == null ? void 0 : y.label }, y == null ? void 0 : y.value))
656
656
  ] })
657
- ] }) : /* @__PURE__ */ f("select", { id: g, ...n, ...t, required: a, multiple: m, name: o, children: [
657
+ ] }) : /* @__PURE__ */ f("select", { id: g, ...n, ...o, required: a, multiple: m, name: t, children: [
658
658
  /* @__PURE__ */ s("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: r }),
659
659
  S(k, (y) => /* @__PURE__ */ s("option", { value: y == null ? void 0 : y.value, children: y == null ? void 0 : y.label }, y == null ? void 0 : y.value))
660
660
  ] });
@@ -723,13 +723,13 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
723
723
  aiProps: ["label", "placeholder"],
724
724
  i18nProps: ["label", "placeholder"]
725
725
  }, Ve = (e) => {
726
- const { blockProps: t, fieldName: o, label: l, placeholder: r, styles: n, inputStyles: i, rows: a, showLabel: c, required: m } = e, k = v();
727
- return c ? /* @__PURE__ */ f("div", { ...n, ...t, children: [
726
+ const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: i, rows: a, showLabel: c, required: m } = e, k = v();
727
+ return c ? /* @__PURE__ */ f("div", { ...n, ...o, children: [
728
728
  c && /* @__PURE__ */ s("label", { htmlFor: k, children: l }),
729
729
  /* @__PURE__ */ s(
730
730
  "textarea",
731
731
  {
732
- name: o,
732
+ name: t,
733
733
  ...i,
734
734
  id: k,
735
735
  placeholder: r,
@@ -741,8 +741,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
741
741
  "textarea",
742
742
  {
743
743
  id: k,
744
- name: o,
745
- ...t,
744
+ name: t,
745
+ ...o,
746
746
  ...i,
747
747
  ...n,
748
748
  placeholder: r,
@@ -796,12 +796,12 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
796
796
  aiProps: ["label", "placeholder"],
797
797
  i18nProps: ["label", "placeholder"]
798
798
  }, Fe = (e) => {
799
- const { blockProps: t, inBuilder: o, children: l, globalBlock: r } = e;
800
- return o && !r ? /* @__PURE__ */ f(
799
+ const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
800
+ return t && !r ? /* @__PURE__ */ f(
801
801
  "div",
802
802
  {
803
803
  className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
804
- ...t,
804
+ ...o,
805
805
  children: [
806
806
  /* @__PURE__ */ f("h1", { children: [
807
807
  "Global Block - ",
@@ -810,7 +810,7 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
810
810
  /* @__PURE__ */ s("p", { children: "Choose a block from the sidebar to add it to this page." })
811
811
  ]
812
812
  }
813
- ) : b.createElement("span", { ...t }, l);
813
+ ) : b.createElement("span", { ...o }, l);
814
814
  }, Ue = {
815
815
  type: "GlobalBlock",
816
816
  description: "A global block component",
@@ -830,10 +830,10 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
830
830
  }
831
831
  })
832
832
  }, Ge = (e) => {
833
- const { blockProps: t, styles: o, content: l, tag: r = "h1", children: n = null } = e;
834
- return n ? b.createElement(r, { ...o, ...t }, n) : b.createElement(r, {
835
- ...o,
833
+ const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
834
+ return n ? b.createElement(r, { ...t, ...o }, n) : b.createElement(r, {
836
835
  ...t,
836
+ ...o,
837
837
  dangerouslySetInnerHTML: { __html: l }
838
838
  });
839
839
  }, Oe = {
@@ -864,8 +864,8 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
864
864
  i18nProps: ["content"],
865
865
  canAcceptBlock: (e) => e === "Span" || e === "Text"
866
866
  }, Ye = (e) => {
867
- const { blockProps: t, styles: o } = e;
868
- return w("br", { ...t, ...o });
867
+ const { blockProps: o, styles: t } = e;
868
+ return w("br", { ...o, ...t });
869
869
  }, We = {
870
870
  type: "LineBreak",
871
871
  label: "Line Break",
@@ -882,21 +882,21 @@ const x = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ s("div",
882
882
  canMove: () => !1,
883
883
  canDuplicate: () => !1
884
884
  }, Xe = (e) => {
885
- const { blockProps: t, children: o, styles: l } = e;
886
- return o ? w("table", { ...t, ...l }, o) : /* @__PURE__ */ s(x, {});
885
+ const { blockProps: o, children: t, styles: l } = e;
886
+ return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ s(x, {});
887
887
  }, Je = (e) => {
888
- const { blockProps: t, children: o, styles: l } = e;
889
- return o ? w("thead", { ...t, ...l }, o) : /* @__PURE__ */ s(x, {});
888
+ const { blockProps: o, children: t, styles: l } = e;
889
+ return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ s(x, {});
890
890
  }, Qe = (e) => {
891
- const { blockProps: t, children: o, styles: l } = e;
892
- return o ? w("tbody", { ...t, ...l }, o) : /* @__PURE__ */ s(x, {});
891
+ const { blockProps: o, children: t, styles: l } = e;
892
+ return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ s(x, {});
893
893
  }, Ze = (e) => {
894
- const { blockProps: t, children: o, styles: l } = e;
895
- return o ? w("tr", { ...t, ...l }, o) : /* @__PURE__ */ s(x, {});
894
+ const { blockProps: o, children: t, styles: l } = e;
895
+ return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ s(x, {});
896
896
  }, Ke = (e) => {
897
- const { blockProps: t, children: o, content: l, styles: r } = e;
898
- return !o && C(l) ? /* @__PURE__ */ s(x, {}) : o ? w("td", { ...t, ...r }, o) : w("td", {
899
- ...t,
897
+ const { blockProps: o, children: t, content: l, styles: r } = e;
898
+ return !t && C(l) ? /* @__PURE__ */ s(x, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
899
+ ...o,
900
900
  ...r,
901
901
  dangerouslySetInnerHTML: { __html: l }
902
902
  });
@@ -980,33 +980,33 @@ p(Ke, {
980
980
  aiProps: ["content"]
981
981
  });
982
982
  function I(e) {
983
- const t = (n, i) => ({
983
+ const o = (n, i) => ({
984
984
  _id: v(),
985
985
  _parent: n,
986
986
  _type: "TableCell",
987
987
  styles: "#styles:,",
988
988
  content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
989
- }), o = (n) => {
989
+ }), t = (n) => {
990
990
  const i = v(), a = {
991
991
  _type: "TableRow",
992
992
  _id: i,
993
993
  styles: "#styles:,border-b"
994
994
  };
995
- return n && (a._parent = n), [a, t(i, "1"), t(i, "2"), t(i, "3")];
995
+ return n && (a._parent = n), [a, o(i, "1"), o(i, "2"), o(i, "3")];
996
996
  }, l = (n) => {
997
997
  const i = v(), a = {
998
998
  _id: i,
999
999
  _type: "TableHead",
1000
1000
  styles: "#styles:,font-medium"
1001
1001
  };
1002
- return n && (a._parent = n), [a, ...o(i)];
1002
+ return n && (a._parent = n), [a, ...t(i)];
1003
1003
  }, r = (n) => {
1004
1004
  const i = v(), a = {
1005
1005
  _id: i,
1006
1006
  _type: "TableBody",
1007
1007
  styles: "#styles:,"
1008
1008
  };
1009
- return n && (a._parent = n), [a, ...o(i), ...o(i)];
1009
+ return n && (a._parent = n), [a, ...t(i), ...t(i)];
1010
1010
  };
1011
1011
  if (e === "Table") {
1012
1012
  const n = v();
@@ -1020,18 +1020,18 @@ function I(e) {
1020
1020
  ...r(n)
1021
1021
  ];
1022
1022
  }
1023
- return e === "TableRow" ? o() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1023
+ return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1024
1024
  }
1025
- const $ = (e, ...t) => ({
1025
+ const $ = (e, ...o) => ({
1026
1026
  ...e,
1027
- className: B(e.className, ...t)
1027
+ className: B(e.className, ...o)
1028
1028
  }), et = (e) => {
1029
- const { blockProps: t, icon: o, styles: l, width: r, inBuilder: n, height: i } = e, a = $(l, "");
1030
- if (C(o))
1029
+ const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: i } = e, a = $(l, "");
1030
+ if (C(t))
1031
1031
  return /* @__PURE__ */ s(x, { inBuilder: n, className: "h-8 w-14" });
1032
- const c = o.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1032
+ const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1033
1033
  return b.createElement("span", {
1034
- ...t,
1034
+ ...o,
1035
1035
  ...a,
1036
1036
  style: {
1037
1037
  width: r ? `${r}px` : "auto",
@@ -1067,15 +1067,15 @@ const $ = (e, ...t) => ({
1067
1067
  }
1068
1068
  })
1069
1069
  }, ot = (e) => {
1070
- const { blockProps: t, image: o, mobileImage: l, styles: r, alt: n, height: i, width: a, lazyLoading: c } = e;
1071
- return C(o) ? /* @__PURE__ */ s(x, { className: "h-36" }) : /* @__PURE__ */ f("picture", { children: [
1070
+ const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: i, width: a, lazyLoading: c } = e;
1071
+ return C(t) ? /* @__PURE__ */ s(x, { className: "h-36" }) : /* @__PURE__ */ f("picture", { children: [
1072
1072
  l && /* @__PURE__ */ s("source", { srcSet: l, media: "(max-width: 480px)" }),
1073
1073
  /* @__PURE__ */ s(
1074
1074
  "img",
1075
1075
  {
1076
- ...t,
1076
+ ...o,
1077
1077
  ...r,
1078
- src: o,
1078
+ src: t,
1079
1079
  alt: n,
1080
1080
  loading: c ? "lazy" : "eager",
1081
1081
  width: a,
@@ -1139,23 +1139,23 @@ const $ = (e, ...t) => ({
1139
1139
  aiProps: ["alt"],
1140
1140
  i18nProps: ["alt"]
1141
1141
  }, rt = (e) => {
1142
- const { blockProps: t, link: o, children: l, styles: r, inBuilder: n, content: i } = e;
1142
+ const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: i } = e;
1143
1143
  let a = {};
1144
- return !l && C(i) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ s("span", { ...t, style: a, ...r, children: l }) : w(
1144
+ return !l && C(i) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ s("span", { ...o, style: a, ...r, children: l }) : w(
1145
1145
  "span",
1146
1146
  {
1147
- ...t,
1147
+ ...o,
1148
1148
  ...r,
1149
1149
  style: a
1150
1150
  },
1151
1151
  i
1152
- ) : l ? /* @__PURE__ */ s("a", { "aria-label": i, href: (o == null ? void 0 : o.href) || "#/", target: o == null ? void 0 : o.target, ...t, ...r, children: l }) : w(
1152
+ ) : l ? /* @__PURE__ */ s("a", { "aria-label": i, href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...o, ...r, children: l }) : w(
1153
1153
  "a",
1154
1154
  {
1155
- ...t,
1155
+ ...o,
1156
1156
  ...r,
1157
- href: (o == null ? void 0 : o.href) || "#",
1158
- target: (o == null ? void 0 : o.target) || "_self",
1157
+ href: (t == null ? void 0 : t.href) || "#",
1158
+ target: (t == null ? void 0 : t.target) || "_self",
1159
1159
  "aria-label": i
1160
1160
  },
1161
1161
  i
@@ -1197,11 +1197,11 @@ const $ = (e, ...t) => ({
1197
1197
  i18nProps: ["content"],
1198
1198
  canAcceptBlock: (e) => e !== "Link"
1199
1199
  }, it = (e) => {
1200
- const { blockProps: t, children: o, listType: l, styles: r, tag: n, inBuilder: i } = e, a = B(h(r, "className", ""), l);
1201
- return !o && C(r == null ? void 0 : r.className) ? /* @__PURE__ */ s(x, { inBuilder: i }) : b.createElement(
1200
+ const { blockProps: o, children: t, listType: l, styles: r, tag: n, inBuilder: i } = e, a = B(h(r, "className", ""), l);
1201
+ return !t && C(r == null ? void 0 : r.className) ? /* @__PURE__ */ s(x, { inBuilder: i }) : b.createElement(
1202
1202
  n || (l === "list-decimal" ? "ol" : "ul"),
1203
- { ...t, ...r, className: a },
1204
- o
1203
+ { ...o, ...r, className: a },
1204
+ t
1205
1205
  );
1206
1206
  }, st = {
1207
1207
  type: "List",
@@ -1251,11 +1251,11 @@ const $ = (e, ...t) => ({
1251
1251
  }
1252
1252
  ]
1253
1253
  }, at = (e) => {
1254
- const { blockProps: t, content: o, styles: l, children: r, tag: n } = e;
1255
- return r ? b.createElement(n || "li", { ...l, ...t }, r) : b.createElement(n || "li", {
1254
+ const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
1255
+ return r ? b.createElement(n || "li", { ...l, ...o }, r) : b.createElement(n || "li", {
1256
1256
  ...l,
1257
- ...t,
1258
- dangerouslySetInnerHTML: { __html: o }
1257
+ ...o,
1258
+ dangerouslySetInnerHTML: { __html: t }
1259
1259
  });
1260
1260
  }, ct = {
1261
1261
  type: "ListItem",
@@ -1282,12 +1282,12 @@ const $ = (e, ...t) => ({
1282
1282
  canAcceptBlock: (e) => e !== "ListItem",
1283
1283
  canBeNested: (e) => e === "List" || e === "Repeater"
1284
1284
  }, pt = (e) => {
1285
- const { blockProps: t, styles: o, content: l } = e;
1285
+ const { blockProps: o, styles: t, content: l } = e;
1286
1286
  return ie(e.children) ? b.createElement("p", {
1287
- ...o,
1288
1287
  ...t,
1288
+ ...o,
1289
1289
  dangerouslySetInnerHTML: { __html: l }
1290
- }) : b.createElement("p", { ...o, ...t }, e.children);
1290
+ }) : b.createElement("p", { ...t, ...o }, e.children);
1291
1291
  }, dt = {
1292
1292
  type: "Paragraph",
1293
1293
  description: "A paragraph component",
@@ -1310,12 +1310,12 @@ const $ = (e, ...t) => ({
1310
1310
  aiProps: ["content"],
1311
1311
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
1312
1312
  }, ut = (e) => {
1313
- const { blockProps: t, inBuilder: o, children: l, partialBlockId: r } = e;
1314
- return o && !r ? /* @__PURE__ */ f(
1313
+ const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
1314
+ return t && !r ? /* @__PURE__ */ f(
1315
1315
  "div",
1316
1316
  {
1317
1317
  className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
1318
- ...t,
1318
+ ...o,
1319
1319
  children: [
1320
1320
  /* @__PURE__ */ f("h1", { children: [
1321
1321
  "Partial Block - ",
@@ -1324,7 +1324,7 @@ const $ = (e, ...t) => ({
1324
1324
  /* @__PURE__ */ s("p", { children: "Choose a block from the sidebar to add it to this page." })
1325
1325
  ]
1326
1326
  }
1327
- ) : b.createElement("span", { ...t }, l);
1327
+ ) : b.createElement("span", { ...o }, l);
1328
1328
  }, mt = {
1329
1329
  type: "PartialBlock",
1330
1330
  description: "A partial block component",
@@ -1387,13 +1387,13 @@ const $ = (e, ...t) => ({
1387
1387
  12: "lg:col-span-12"
1388
1388
  }
1389
1389
  }, yt = (e) => {
1390
- const { blockProps: t, children: o, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1390
+ const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1391
1391
  h(l, "className", ""),
1392
1392
  h(L, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1393
1393
  n ? h(L, ["MEDIUM", n || r], "") : "",
1394
1394
  i ? h(L, ["LARGE", n || r], "") : ""
1395
1395
  ].join(" ") };
1396
- return /* @__PURE__ */ s("div", { ...t, ...l, ...c, children: o || /* @__PURE__ */ s("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
1396
+ return /* @__PURE__ */ s("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ s("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
1397
1397
  }, gt = {
1398
1398
  type: "Column",
1399
1399
  description: "A column component",
@@ -1431,8 +1431,8 @@ const $ = (e, ...t) => ({
1431
1431
  }
1432
1432
  })
1433
1433
  }, bt = (e) => {
1434
- const { blockProps: t, children: o, styles: l, gutter: r } = e, i = { className: [h(l, "className", ""), " grid grid-cols-12"].join() };
1435
- return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : i.style = { gap: `${r}px` }, /* @__PURE__ */ s("div", { ...t, ...l, ...i, children: o });
1434
+ const { blockProps: o, children: t, styles: l, gutter: r } = e, i = { className: [h(l, "className", ""), " grid grid-cols-12"].join() };
1435
+ return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : i.style = { gap: `${r}px` }, /* @__PURE__ */ s("div", { ...o, ...l, ...i, children: t });
1436
1436
  }, ft = {
1437
1437
  type: "Row",
1438
1438
  description: "A row component",
@@ -1465,12 +1465,12 @@ const $ = (e, ...t) => ({
1465
1465
  }
1466
1466
  })
1467
1467
  }, ht = (e) => {
1468
- const { blockProps: t, content: o, styles: l } = e, r = $(
1468
+ const { blockProps: o, content: t, styles: l } = e, r = $(
1469
1469
  l,
1470
1470
  "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",
1471
1471
  "max-w-full"
1472
1472
  );
1473
- return /* @__PURE__ */ s("div", { ...t, ...r, dangerouslySetInnerHTML: { __html: o } });
1473
+ return /* @__PURE__ */ s("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1474
1474
  }, kt = {
1475
1475
  type: "RichText",
1476
1476
  description: "A rich text block",
@@ -1492,10 +1492,10 @@ const $ = (e, ...t) => ({
1492
1492
  aiProps: ["content"],
1493
1493
  i18nProps: ["content"]
1494
1494
  }, wt = (e) => {
1495
- const { blockProps: t, styles: o, content: l, children: r = null, tag: n } = e;
1496
- return r ? b.createElement("span", { ...o, ...t }, r) : b.createElement(n || "span", {
1497
- ...o,
1495
+ const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
1496
+ return r ? b.createElement("span", { ...t, ...o }, r) : b.createElement(n || "span", {
1498
1497
  ...t,
1498
+ ...o,
1499
1499
  dangerouslySetInnerHTML: { __html: l || "" }
1500
1500
  });
1501
1501
  }, vt = {
@@ -1569,13 +1569,13 @@ const $ = (e, ...t) => ({
1569
1569
  default: !1
1570
1570
  }
1571
1571
  }
1572
- }, _ = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, T = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Bt = (e, t) => {
1573
- const o = h(t, "autoplay", !1), l = h(t, "controls", !1), r = h(t, "loop", !1), n = o || h(t, "muted", !0);
1572
+ }, _ = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, T = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Bt = (e, o) => {
1573
+ const t = h(o, "autoplay", !1), l = h(o, "controls", !1), r = h(o, "loop", !1), n = t || h(o, "muted", !0);
1574
1574
  if (_.test(e)) {
1575
1575
  const i = e.match(_);
1576
1576
  if (i) {
1577
1577
  const a = i[4];
1578
- let c = `https://www.youtube.com/embed/${a}`, m = o ? "autoplay=1" : "";
1578
+ let c = `https://www.youtube.com/embed/${a}`, m = t ? "autoplay=1" : "";
1579
1579
  return m += r ? `&loop=1&playlist=${a}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
1580
1580
  }
1581
1581
  }
@@ -1584,28 +1584,28 @@ const $ = (e, ...t) => ({
1584
1584
  if (i) {
1585
1585
  const a = i[1];
1586
1586
  let c = "";
1587
- return c += o ? "autoplay=1" : "", c += l ? "&controls=1" : "&controls=0", c += n ? "&muted=1" : "", c += r ? "&loop=1" : "", `https://player.vimeo.com/video/${a}?${c}`;
1587
+ return c += t ? "autoplay=1" : "", c += l ? "&controls=1" : "&controls=0", c += n ? "&muted=1" : "", c += r ? "&loop=1" : "", `https://player.vimeo.com/video/${a}?${c}`;
1588
1588
  }
1589
1589
  }
1590
1590
  return null;
1591
1591
  }, Lt = (e) => {
1592
- const { url: t, blockProps: o, styles: l, controls: r, videoSource: n, inBuilder: i } = e, a = Bt(t, r);
1592
+ const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, a = Bt(o, r);
1593
1593
  return /* @__PURE__ */ f("div", { ...se(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1594
- !a && i ? /* @__PURE__ */ s("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: C(t) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ s("iframe", { width: "100%", src: a, ...ae(l, "className") }),
1595
- i && /* @__PURE__ */ s("div", { ...o, className: "absolute top-0 h-full w-full" })
1594
+ !a && i ? /* @__PURE__ */ s("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__ */ s("iframe", { width: "100%", src: a, ...ae(l, "className") }),
1595
+ i && /* @__PURE__ */ s("div", { ...t, className: "absolute top-0 h-full w-full" })
1596
1596
  ] });
1597
1597
  }, Pt = (e) => {
1598
- const { url: t, styles: o, controls: l, sources: r, poster: n, blockProps: i } = e;
1598
+ const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: i } = e;
1599
1599
  let a = n;
1600
1600
  const c = [...h(r, "srcsets", []) || []];
1601
- t && typeof t == "string" && c.push({ url: t, width: "9999" });
1601
+ o && typeof o == "string" && c.push({ url: o, width: "9999" });
1602
1602
  const m = c.sort((g, y) => parseInt(g.width) - parseInt(y.width)).filter((g) => !C(g.url) && !C(g.width));
1603
1603
  m.length === 0 && !a && (a = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
1604
1604
  const k = h(l, "autoplay", !1) || h(l, "muted", !0);
1605
1605
  return (a || !C(m)) && /* @__PURE__ */ s("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1606
1606
  "video",
1607
1607
  {
1608
- ...o,
1608
+ ...t,
1609
1609
  ...i,
1610
1610
  key: JSON.stringify(m),
1611
1611
  controls: h(l, "controls", !1),
@@ -1622,10 +1622,10 @@ const $ = (e, ...t) => ({
1622
1622
  "Your browser does not support the video tag."
1623
1623
  ) });
1624
1624
  }, St = (e) => {
1625
- const { videoSource: t } = e;
1626
- return t === "Custom" ? /* @__PURE__ */ s(Pt, { ...e }) : t === "Youtube" || t === "Vimeo" ? /* @__PURE__ */ s(Lt, { ...e }) : /* @__PURE__ */ f("div", { children: [
1625
+ const { videoSource: o } = e;
1626
+ return o === "Custom" ? /* @__PURE__ */ s(Pt, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ s(Lt, { ...e }) : /* @__PURE__ */ f("div", { children: [
1627
1627
  "Invalid video source : ",
1628
- t
1628
+ o
1629
1629
  ] });
1630
1630
  }, _t = {
1631
1631
  type: "Video",
@@ -1712,16 +1712,16 @@ const $ = (e, ...t) => ({
1712
1712
  i18nProps: ["url"]
1713
1713
  }, Tt = ({
1714
1714
  children: e,
1715
- tag: t,
1716
- blockProps: o,
1715
+ tag: o,
1716
+ blockProps: t,
1717
1717
  styles: l,
1718
1718
  inBuilder: r,
1719
1719
  $loading: n
1720
1720
  }) => {
1721
1721
  let i = e;
1722
- return C(i) && r && (i = /* @__PURE__ */ s("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5", children: "No items found" })), b.createElement(
1723
- t,
1724
- { ...o, ...l },
1722
+ return C(i) && r && (i = /* @__PURE__ */ s("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" })), b.createElement(
1723
+ o,
1724
+ { ...t, ...l },
1725
1725
  n ? Array.from({ length: 2 }).map((a, c) => /* @__PURE__ */ f("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
1726
1726
  /* @__PURE__ */ s("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1727
1727
  /* @__PURE__ */ s("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
@@ -1732,6 +1732,7 @@ const $ = (e, ...t) => ({
1732
1732
  label: "Repeater",
1733
1733
  icon: E,
1734
1734
  group: "basic",
1735
+ dataProviderMode: "live",
1735
1736
  dataProviderDependencies: ["filter", "sort", "limit", "repeaterItems"],
1736
1737
  blocks: () => [
1737
1738
  { _id: "A", _type: "Repeater", tag: "ul" },
@@ -1750,11 +1751,14 @@ const $ = (e, ...t) => ({
1750
1751
  properties: {
1751
1752
  styles: P("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
1752
1753
  repeaterItems: {
1753
- title: "Items",
1754
+ title: "Collection",
1754
1755
  type: "string",
1755
1756
  binding: "array",
1756
1757
  default: "",
1757
- ui: { "ui:readonly": !0 }
1758
+ ui: {
1759
+ "ui:widget": "repeaterBinding",
1760
+ "ui:readonly": !0
1761
+ }
1758
1762
  },
1759
1763
  tag: {
1760
1764
  title: "Tag",
@@ -1783,22 +1787,27 @@ const $ = (e, ...t) => ({
1783
1787
  })
1784
1788
  }, Rt = ({
1785
1789
  children: e,
1786
- blockProps: t,
1787
- styles: o,
1788
- parentTag: l
1790
+ blockProps: o,
1791
+ styles: t,
1792
+ parentTag: l,
1793
+ inBuilder: r
1789
1794
  }) => {
1790
- let r = "li";
1795
+ let n = "li";
1791
1796
  switch (l) {
1792
1797
  case "ul":
1793
- r = "li";
1798
+ n = "li";
1794
1799
  break;
1795
1800
  case "ol":
1796
- r = "li";
1801
+ n = "li";
1797
1802
  break;
1798
1803
  default:
1799
- r = "div";
1804
+ n = "div";
1800
1805
  }
1801
- return e ? b.createElement(r, { ...t, ...o }, e) : /* @__PURE__ */ s("div", { ...t, className: "flex min-h-[80px] items-center justify-center bg-gray-100 text-sm text-gray-500", children: "Add block" });
1806
+ return !e && r ? b.createElement(
1807
+ n,
1808
+ { ...o, ...t },
1809
+ /* @__PURE__ */ s("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" })
1810
+ ) : b.createElement(n, { ...o, ...t }, e);
1802
1811
  }, Mt = {
1803
1812
  type: "RepeaterItem",
1804
1813
  label: "Repeater Item",
@@ -1817,9 +1826,9 @@ const $ = (e, ...t) => ({
1817
1826
  canDuplicate: () => !1
1818
1827
  }, Et = ({
1819
1828
  children: e,
1820
- blockProps: t,
1821
- styles: o
1822
- }) => b.createElement("div", { ...t, ...o }, e), At = {
1829
+ blockProps: o,
1830
+ styles: t
1831
+ }) => b.createElement("div", { ...o, ...t }, e), At = {
1823
1832
  type: "RepeaterEmptyState",
1824
1833
  label: "Empty State",
1825
1834
  hidden: !0,