@chaibuilder/sdk 3.0.16 → 3.0.18

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.
@@ -1,16 +1,16 @@
1
1
  import { registerChaiBlockSchema as p, StylesProp as u, registerChaiBlock as d, getRegisteredChaiBlock as U, stylesProp as L, closestBlockProp as q } from "@chaibuilder/runtime";
2
- import { jsx as i, jsxs as g, Fragment as _ } from "react/jsx-runtime";
2
+ import { jsx as a, jsxs as g, Fragment as N } from "react/jsx-runtime";
3
3
  import { c as T, 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 E, CodeIcon as H, DividerHorizontalIcon as Z, CheckboxIcon as G, FileTextIcon as W, InputIcon as $, LetterCaseToggleIcon as O, RadiobuttonIcon as Y, DropdownMenuIcon as Q, FrameIcon as z, HeadingIcon as J, TableIcon as X, BorderTopIcon as K, BorderAllIcon as ee, ViewHorizontalIcon as te, DragHandleHorizontalIcon as oe, SketchLogoIcon as le, ImageIcon as re, Link1Icon as ne, RowsIcon as j, ColumnsIcon as ie, TextIcon as ae, LayoutIcon as se, CursorTextIcon as ce, SpaceBetweenVerticallyIcon as de, VideoIcon as pe, ChevronLeftIcon as ue, ChevronRightIcon as me, LoopIcon as D } from "@radix-ui/react-icons";
6
+ import { ButtonIcon as E, CodeIcon as H, DividerHorizontalIcon as Z, CheckboxIcon as G, FileTextIcon as W, InputIcon as $, LetterCaseToggleIcon as O, RadiobuttonIcon as Y, DropdownMenuIcon as Q, FrameIcon as z, HeadingIcon as J, TableIcon as X, BorderTopIcon as K, BorderAllIcon as ee, ViewHorizontalIcon as te, DragHandleHorizontalIcon as oe, SketchLogoIcon as le, ImageIcon as re, Link1Icon as ne, RowsIcon as j, ColumnsIcon as ae, TextIcon as ie, LayoutIcon as se, CursorTextIcon as ce, SpaceBetweenVerticallyIcon as de, VideoIcon as pe, ChevronLeftIcon as ue, ChevronRightIcon as me, LoopIcon as D } from "@radix-ui/react-icons";
7
7
  import { isEmpty as v, get as x, map as R, isNull as ye, omit as V, pick as F } from "lodash-es";
8
- const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: T("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;
8
+ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div", { className: T("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ a("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ a("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ge = (e) => {
9
+ const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: i } = e;
10
10
  let s = r;
11
- r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
11
+ r || (s = /* @__PURE__ */ a(C, { inBuilder: t }));
12
12
  let c = {};
13
- return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...a, style: c }, s);
13
+ return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...i, 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__ */ i("div",
54
54
  }),
55
55
  canAcceptBlock: () => !0
56
56
  }, fe = (e) => {
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(_, { children: [
58
- r && /* @__PURE__ */ i("span", { children: r }),
59
- h && /* @__PURE__ */ i(
57
+ const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: i, iconPos: s, link: c, inBuilder: m } = e, h = l, b = i || /* @__PURE__ */ g(N, { children: [
58
+ r && /* @__PURE__ */ a("span", { children: r }),
59
+ h && /* @__PURE__ */ a(
60
60
  "div",
61
61
  {
62
62
  style: { width: t + "px" },
@@ -74,7 +74,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
74
74
  },
75
75
  b
76
76
  );
77
- return v(x(c, "href")) ? k : m ? /* @__PURE__ */ i("span", { children: k }) : /* @__PURE__ */ i("a", { "aria-label": r, href: x(c, "href") || "/", target: x(c, "target", "_self"), children: k });
77
+ return v(x(c, "href")) ? k : m ? /* @__PURE__ */ a("span", { children: k }) : /* @__PURE__ */ a("a", { "aria-label": r, href: x(c, "href") || "/", target: x(c, "target", "_self"), children: k });
78
78
  }, he = {
79
79
  type: "Button",
80
80
  description: "similar to a button element in HTML",
@@ -135,7 +135,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
135
135
  }, xe = (e) => {
136
136
  const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
137
137
  return r ? /* @__PURE__ */ g("div", { className: "relative", children: [
138
- r ? /* @__PURE__ */ i("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
138
+ r ? /* @__PURE__ */ a("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
139
139
  y.createElement("div", {
140
140
  ...t,
141
141
  dangerouslySetInnerHTML: { __html: l.replace(/<script.*?>.*?<\/script>/g, "") }
@@ -165,7 +165,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
165
165
  i18nProps: ["htmlCode"]
166
166
  }, we = (e) => {
167
167
  const { scripts: o, inBuilder: t, blockProps: l } = e;
168
- return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: T("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
+ return t ? /* @__PURE__ */ a("div", { ...l, children: /* @__PURE__ */ a("div", { className: T("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ a("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ a("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ a("div", { dangerouslySetInnerHTML: { __html: o } });
169
169
  }, ve = {
170
170
  type: "CustomScript",
171
171
  description: "similar to a script element in HTML",
@@ -222,11 +222,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
222
222
  }
223
223
  })
224
224
  }, Be = (e) => {
225
- const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
225
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
226
226
  return c ? /* @__PURE__ */ g("div", { ...r, ...o, children: [
227
- /* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
228
- l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
229
- ] }) : /* @__PURE__ */ i(
227
+ /* @__PURE__ */ a("input", { ...n, name: t, type: "checkbox", required: i, defaultChecked: s }),
228
+ l && /* @__PURE__ */ a("label", { htmlFor: t, children: l })
229
+ ] }) : /* @__PURE__ */ a(
230
230
  "input",
231
231
  {
232
232
  name: t,
@@ -234,7 +234,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
234
234
  ...n,
235
235
  ...r,
236
236
  type: "checkbox",
237
- required: a,
237
+ required: i,
238
238
  defaultChecked: s
239
239
  }
240
240
  );
@@ -277,10 +277,10 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
277
277
  }),
278
278
  aiProps: ["label"],
279
279
  i18nProps: ["label"]
280
- }, Ne = (e) => {
281
- const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
280
+ }, _e = (e) => {
281
+ const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: s } = e;
282
282
  let c = o;
283
- return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ g(
283
+ return o || (c = /* @__PURE__ */ a(C, { inBuilder: s })), /* @__PURE__ */ g(
284
284
  "form",
285
285
  {
286
286
  ...{
@@ -292,9 +292,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
292
292
  method: "post",
293
293
  action: n,
294
294
  ...t,
295
- ...a,
295
+ ...i,
296
296
  children: [
297
- /* @__PURE__ */ i("div", { ...{
297
+ /* @__PURE__ */ a("div", { ...{
298
298
  "x-html": "",
299
299
  ":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
300
300
  } }),
@@ -302,7 +302,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
302
302
  ]
303
303
  }
304
304
  );
305
- }, _e = {
305
+ }, Ne = {
306
306
  type: "Form",
307
307
  label: "Form",
308
308
  category: "core",
@@ -344,13 +344,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
344
344
  aiProps: ["errorMessage", "successMessage"],
345
345
  canAcceptBlock: () => !0
346
346
  }, Te = (e) => {
347
- const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
347
+ const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: i, iconPos: s } = e;
348
348
  return /* @__PURE__ */ g("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
349
349
  l,
350
- n && /* @__PURE__ */ i(
350
+ n && /* @__PURE__ */ a(
351
351
  "div",
352
352
  {
353
- style: { width: a + "px" },
353
+ style: { width: i + "px" },
354
354
  className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
355
355
  dangerouslySetInnerHTML: { __html: n }
356
356
  }
@@ -470,32 +470,32 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
470
470
  label: l,
471
471
  placeholder: r,
472
472
  styles: n,
473
- inputStyles: a,
473
+ inputStyles: i,
474
474
  showLabel: s,
475
475
  required: c,
476
476
  inputType: m,
477
477
  defaultValue: h
478
478
  } = e, { type: b, autocomplete: k } = Ae(m);
479
479
  return s ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
480
- s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
481
- /* @__PURE__ */ i(
480
+ s && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
481
+ /* @__PURE__ */ a(
482
482
  "input",
483
483
  {
484
484
  name: t,
485
485
  defaultValue: h,
486
- ...a,
486
+ ...i,
487
487
  type: b,
488
488
  placeholder: r,
489
489
  required: c,
490
490
  autoComplete: k
491
491
  }
492
492
  )
493
- ] }) : /* @__PURE__ */ i(
493
+ ] }) : /* @__PURE__ */ a(
494
494
  "input",
495
495
  {
496
496
  name: t,
497
497
  ...o,
498
- ...a,
498
+ ...i,
499
499
  ...n,
500
500
  type: b,
501
501
  placeholder: r,
@@ -644,11 +644,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
644
644
  aiProps: ["content"],
645
645
  i18nProps: ["content"]
646
646
  }, ze = (e) => {
647
- const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
647
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
648
648
  return c ? /* @__PURE__ */ g("div", { ...r, ...o, children: [
649
- /* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
650
- l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
651
- ] }) : /* @__PURE__ */ i(
649
+ /* @__PURE__ */ a("input", { ...n, name: t, type: "radio", required: i, defaultChecked: s }),
650
+ l && /* @__PURE__ */ a("label", { htmlFor: t, children: l })
651
+ ] }) : /* @__PURE__ */ a(
652
652
  "input",
653
653
  {
654
654
  name: t,
@@ -656,7 +656,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
656
656
  ...n,
657
657
  ...r,
658
658
  type: "radio",
659
- required: a,
659
+ required: i,
660
660
  checked: s
661
661
  }
662
662
  );
@@ -706,7 +706,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
706
706
  label: l,
707
707
  placeholder: r,
708
708
  styles: n,
709
- inputStyles: a,
709
+ inputStyles: i,
710
710
  required: s,
711
711
  showLabel: c,
712
712
  _multiple: m,
@@ -714,18 +714,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
714
714
  defaultValue: b
715
715
  } = e, k = m && b ? b.split(",").map((f) => f.trim()) : b || "";
716
716
  return c ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
717
- c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
717
+ c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
718
718
  /* @__PURE__ */ g(
719
719
  "select",
720
720
  {
721
- ...a,
721
+ ...i,
722
722
  required: s,
723
723
  multiple: m,
724
724
  name: t,
725
725
  defaultValue: k,
726
726
  children: [
727
- /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
728
- 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))
727
+ /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
728
+ R(h, (f) => /* @__PURE__ */ a("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
729
729
  ]
730
730
  }
731
731
  )
@@ -739,8 +739,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
739
739
  name: t,
740
740
  defaultValue: k,
741
741
  children: [
742
- /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
743
- 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))
742
+ /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
743
+ R(h, (f) => /* @__PURE__ */ a("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
744
744
  ]
745
745
  }
746
746
  );
@@ -814,26 +814,26 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
814
814
  aiProps: ["label", "placeholder"],
815
815
  i18nProps: ["label", "placeholder"]
816
816
  }, Fe = (e) => {
817
- const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: m, defaultValue: h } = e;
817
+ const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: i, rows: s, showLabel: c, required: m, defaultValue: h } = e;
818
818
  return c ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
819
- c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
820
- /* @__PURE__ */ i(
819
+ c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
820
+ /* @__PURE__ */ a(
821
821
  "textarea",
822
822
  {
823
823
  name: t,
824
- ...a,
824
+ ...i,
825
825
  placeholder: r,
826
826
  rows: s,
827
827
  required: m,
828
828
  defaultValue: h
829
829
  }
830
830
  )
831
- ] }) : /* @__PURE__ */ i(
831
+ ] }) : /* @__PURE__ */ a(
832
832
  "textarea",
833
833
  {
834
834
  name: t,
835
835
  ...o,
836
- ...a,
836
+ ...i,
837
837
  ...n,
838
838
  placeholder: r,
839
839
  rows: s,
@@ -904,7 +904,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
904
904
  "Global Block - ",
905
905
  r
906
906
  ] }),
907
- /* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
907
+ /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
908
908
  ]
909
909
  }
910
910
  ) : y.createElement("span", { ...o }, l);
@@ -932,9 +932,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
932
932
  }), Ge = (e) => {
933
933
  const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
934
934
  if (n) return y.createElement(r, { ...t, ...o }, n);
935
- const a = B(t, "rte");
935
+ const i = B(t, "rte");
936
936
  return y.createElement(r, {
937
- ...a,
937
+ ...i,
938
938
  ...o,
939
939
  dangerouslySetInnerHTML: { __html: l }
940
940
  });
@@ -958,7 +958,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
958
958
  type: "string",
959
959
  default: "Heading goes here",
960
960
  title: "Content",
961
- ui: { "ui:widget": "richtext" }
961
+ ui: { "ui:widget": "textarea", "ui:rows": 3 }
962
962
  }
963
963
  }
964
964
  }),
@@ -985,19 +985,19 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
985
985
  canDuplicate: () => !1
986
986
  }, Qe = (e) => {
987
987
  const { blockProps: o, children: t, styles: l } = e;
988
- return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
988
+ return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
989
989
  }, Je = (e) => {
990
990
  const { blockProps: o, children: t, styles: l } = e;
991
- return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
991
+ return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
992
992
  }, Xe = (e) => {
993
993
  const { blockProps: o, children: t, styles: l } = e;
994
- return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
994
+ return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
995
995
  }, Ke = (e) => {
996
996
  const { blockProps: o, children: t, styles: l } = e;
997
- return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
997
+ return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
998
998
  }, et = (e) => {
999
999
  const { blockProps: o, children: t, content: l, styles: r } = e;
1000
- return !t && v(l) ? /* @__PURE__ */ i(C, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
1000
+ return !t && v(l) ? /* @__PURE__ */ a(C, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
1001
1001
  ...o,
1002
1002
  ...r,
1003
1003
  dangerouslySetInnerHTML: { __html: l }
@@ -1082,33 +1082,33 @@ d(et, {
1082
1082
  aiProps: ["content"]
1083
1083
  });
1084
1084
  function P(e) {
1085
- const o = (n, a) => ({
1085
+ const o = (n, i) => ({
1086
1086
  _id: I(),
1087
1087
  _parent: n,
1088
1088
  _type: "TableCell",
1089
1089
  styles: "#styles:,",
1090
- content: `${e === "TableHead" ? "Table Head" : "Table Cell " + a}`
1090
+ content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
1091
1091
  }), t = (n) => {
1092
- const a = I(), s = {
1092
+ const i = I(), s = {
1093
1093
  _type: "TableRow",
1094
- _id: a,
1094
+ _id: i,
1095
1095
  styles: "#styles:,border-b"
1096
1096
  };
1097
- return n && (s._parent = n), [s, o(a, "1"), o(a, "2"), o(a, "3")];
1097
+ return n && (s._parent = n), [s, o(i, "1"), o(i, "2"), o(i, "3")];
1098
1098
  }, l = (n) => {
1099
- const a = I(), s = {
1100
- _id: a,
1099
+ const i = I(), s = {
1100
+ _id: i,
1101
1101
  _type: "TableHead",
1102
1102
  styles: "#styles:,font-medium"
1103
1103
  };
1104
- return n && (s._parent = n), [s, ...t(a)];
1104
+ return n && (s._parent = n), [s, ...t(i)];
1105
1105
  }, r = (n) => {
1106
- const a = I(), s = {
1107
- _id: a,
1106
+ const i = I(), s = {
1107
+ _id: i,
1108
1108
  _type: "TableBody",
1109
1109
  styles: "#styles:,"
1110
1110
  };
1111
- return n && (s._parent = n), [s, ...t(a), ...t(a)];
1111
+ return n && (s._parent = n), [s, ...t(i), ...t(i)];
1112
1112
  };
1113
1113
  if (e === "Table") {
1114
1114
  const n = I();
@@ -1125,16 +1125,16 @@ function P(e) {
1125
1125
  return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1126
1126
  }
1127
1127
  const tt = (e) => {
1128
- const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = B(l, "");
1128
+ const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: i } = e, s = B(l, "");
1129
1129
  if (v(t))
1130
- return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
1130
+ return /* @__PURE__ */ a(C, { inBuilder: n, className: "h-8 w-14" });
1131
1131
  const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1132
1132
  return y.createElement("span", {
1133
1133
  ...o,
1134
1134
  ...s,
1135
1135
  style: {
1136
1136
  width: r ? `${r}px` : "auto",
1137
- height: a ? `${a}px` : "auto"
1137
+ height: i ? `${i}px` : "auto"
1138
1138
  },
1139
1139
  dangerouslySetInnerHTML: { __html: c }
1140
1140
  });
@@ -1166,10 +1166,10 @@ const tt = (e) => {
1166
1166
  }
1167
1167
  })
1168
1168
  }, lt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", rt = (e) => {
1169
- const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: m, mobileHeight: h } = e;
1170
- return v(t) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ g("picture", { children: [
1171
- l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: m, height: h }),
1172
- /* @__PURE__ */ i(
1169
+ const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: i, width: s, lazyLoading: c, mobileWidth: m, mobileHeight: h } = e;
1170
+ return v(t) ? /* @__PURE__ */ a(C, { className: "h-36" }) : /* @__PURE__ */ g("picture", { children: [
1171
+ l && /* @__PURE__ */ a("source", { srcSet: l, media: "(max-width: 480px)", width: m, height: h }),
1172
+ /* @__PURE__ */ a(
1173
1173
  "img",
1174
1174
  {
1175
1175
  ...o,
@@ -1178,7 +1178,7 @@ const tt = (e) => {
1178
1178
  alt: n,
1179
1179
  loading: c ? "lazy" : "eager",
1180
1180
  width: s,
1181
- height: a
1181
+ height: i
1182
1182
  }
1183
1183
  )
1184
1184
  ] });
@@ -1243,10 +1243,10 @@ const tt = (e) => {
1243
1243
  }),
1244
1244
  aiProps: ["alt"],
1245
1245
  i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
1246
- }, it = (e) => {
1247
- const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
1246
+ }, at = (e) => {
1247
+ const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: i } = e;
1248
1248
  let s = {};
1249
- 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(
1249
+ return !l && v(i) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ a("span", { role: "link", ...o, style: s, ...r, children: l }) : w(
1250
1250
  "span",
1251
1251
  {
1252
1252
  ...o,
@@ -1254,19 +1254,19 @@ const tt = (e) => {
1254
1254
  style: s,
1255
1255
  role: "link"
1256
1256
  },
1257
- a
1258
- ) : 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(
1257
+ i
1258
+ ) : l ? /* @__PURE__ */ a("a", { "aria-label": i, href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...o, ...r, children: l }) : w(
1259
1259
  "a",
1260
1260
  {
1261
1261
  ...o,
1262
1262
  ...r,
1263
1263
  href: (t == null ? void 0 : t.href) || "#",
1264
1264
  target: (t == null ? void 0 : t.target) || "_self",
1265
- "aria-label": a
1265
+ "aria-label": i
1266
1266
  },
1267
- a
1267
+ i
1268
1268
  );
1269
- }, at = {
1269
+ }, it = {
1270
1270
  type: "Link",
1271
1271
  description: "A link component",
1272
1272
  label: "Link",
@@ -1309,7 +1309,7 @@ const tt = (e) => {
1309
1309
  canAcceptBlock: (e) => e !== "Link"
1310
1310
  }, st = (e) => {
1311
1311
  const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
1312
- return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : y.createElement(r || "ul", { ...o, ...l }, t);
1312
+ return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */ a(C, { inBuilder: n }) : y.createElement(r || "ul", { ...o, ...l }, t);
1313
1313
  }, ct = {
1314
1314
  type: "List",
1315
1315
  description: "A list component",
@@ -1358,7 +1358,7 @@ const tt = (e) => {
1358
1358
  type: "ListItem",
1359
1359
  description: "A list item component",
1360
1360
  label: "List Item",
1361
- icon: ie,
1361
+ icon: ae,
1362
1362
  category: "core",
1363
1363
  group: "basic",
1364
1364
  ...p({
@@ -1382,7 +1382,7 @@ const tt = (e) => {
1382
1382
  const { blockProps: o, styles: t, content: l } = e;
1383
1383
  if (!ye(e.children)) return y.createElement("p", { ...t, ...o }, e.children);
1384
1384
  const r = B(t, "rte");
1385
- return y.createElement("p", {
1385
+ return y.createElement("div", {
1386
1386
  ...r,
1387
1387
  ...o,
1388
1388
  dangerouslySetInnerHTML: { __html: l }
@@ -1392,7 +1392,7 @@ const tt = (e) => {
1392
1392
  description: "A paragraph component",
1393
1393
  label: "Paragraph",
1394
1394
  category: "core",
1395
- icon: ae,
1395
+ icon: ie,
1396
1396
  group: "typography",
1397
1397
  ...p({
1398
1398
  properties: {
@@ -1420,7 +1420,7 @@ const tt = (e) => {
1420
1420
  "Partial Block - ",
1421
1421
  r
1422
1422
  ] }),
1423
- /* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
1423
+ /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
1424
1424
  ]
1425
1425
  }
1426
1426
  ) : y.createElement("span", { ...o }, l);
@@ -1486,13 +1486,13 @@ const tt = (e) => {
1486
1486
  12: "lg:col-span-12"
1487
1487
  }
1488
1488
  }, bt = (e) => {
1489
- const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
1489
+ const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1490
1490
  x(l, "className", ""),
1491
1491
  x(S, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1492
1492
  n ? x(S, ["MEDIUM", n || r], "") : "",
1493
- a ? x(S, ["LARGE", n || r], "") : ""
1493
+ i ? x(S, ["LARGE", n || r], "") : ""
1494
1494
  ].join(" ") };
1495
- 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" }) });
1495
+ return /* @__PURE__ */ a("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ a("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
1496
1496
  }, ft = {
1497
1497
  type: "Column",
1498
1498
  description: "A column component",
@@ -1530,8 +1530,8 @@ const tt = (e) => {
1530
1530
  }
1531
1531
  })
1532
1532
  }, ht = (e) => {
1533
- const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [x(l, "className", ""), " grid grid-cols-12"].join() };
1534
- 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 });
1533
+ const { blockProps: o, children: t, styles: l, gutter: r } = e, i = { className: [x(l, "className", ""), " grid grid-cols-12"].join() };
1534
+ return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : i.style = { gap: `${r}px` }, /* @__PURE__ */ a("div", { ...o, ...l, ...i, children: t });
1535
1535
  }, xt = {
1536
1536
  type: "Row",
1537
1537
  description: "A row component",
@@ -1565,11 +1565,12 @@ const tt = (e) => {
1565
1565
  })
1566
1566
  }, kt = (e) => {
1567
1567
  const { blockProps: o, content: t, styles: l } = e, r = B(l, "rte");
1568
- return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1568
+ return /* @__PURE__ */ a("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1569
1569
  }, wt = {
1570
1570
  type: "RichText",
1571
1571
  description: "A rich text block",
1572
1572
  label: "Rich Text",
1573
+ hidden: !0,
1573
1574
  category: "core",
1574
1575
  icon: ce,
1575
1576
  group: "typography",
@@ -1606,20 +1607,20 @@ const tt = (e) => {
1606
1607
  type: "string",
1607
1608
  title: "Content",
1608
1609
  default: "",
1609
- ui: { "ui:widget": "richtext", "ui:autosize": !0, "ui:rows": 3 }
1610
+ ui: { "ui:widget": "textarea", "ui:autosize": !0, "ui:rows": 3 }
1610
1611
  }
1611
1612
  }
1612
1613
  }),
1613
1614
  aiProps: ["content"],
1614
1615
  i18nProps: ["content"],
1615
1616
  canAcceptBlock: () => !0
1616
- }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1617
+ }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1617
1618
  type: "Text",
1618
1619
  description: "A text component with no styling",
1619
- label: "Text",
1620
- hidden: !0,
1620
+ label: "Raw Text",
1621
1621
  category: "core",
1622
1622
  group: "typography",
1623
+ blocks: () => [{ _id: "a", _type: "Text", _name: "Raw Text", content: "" }],
1623
1624
  icon: de,
1624
1625
  ...p({
1625
1626
  properties: {
@@ -1633,7 +1634,7 @@ const tt = (e) => {
1633
1634
  }),
1634
1635
  aiProps: ["content"],
1635
1636
  i18nProps: ["content"]
1636
- }, N = {
1637
+ }, _ = {
1637
1638
  type: "object",
1638
1639
  title: "Controls",
1639
1640
  default: {
@@ -1667,41 +1668,41 @@ const tt = (e) => {
1667
1668
  }, A = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, M = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Lt = (e, o) => {
1668
1669
  const t = x(o, "autoplay", !1), l = x(o, "controls", !1), r = x(o, "loop", !1), n = t || x(o, "muted", !0);
1669
1670
  if (A.test(e)) {
1670
- const a = e.match(A);
1671
- if (a) {
1672
- const s = a[4];
1671
+ const i = e.match(A);
1672
+ if (i) {
1673
+ const s = i[4];
1673
1674
  let c = `https://www.youtube.com/embed/${s}`, m = t ? "autoplay=1" : "";
1674
1675
  return m += r ? `&loop=1&playlist=${s}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
1675
1676
  }
1676
1677
  }
1677
1678
  if (M.test(e)) {
1678
- const a = e.match(M);
1679
- if (a) {
1680
- const s = a[1];
1679
+ const i = e.match(M);
1680
+ if (i) {
1681
+ const s = i[1];
1681
1682
  let c = "";
1682
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}`;
1683
1684
  }
1684
1685
  }
1685
1686
  return null;
1686
1687
  }, Bt = (e) => {
1687
- const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a } = e, s = Lt(o, r);
1688
+ const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s = Lt(o, r);
1688
1689
  return /* @__PURE__ */ g("div", { ...V(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1689
- !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") }),
1690
- a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
1690
+ !s && i ? /* @__PURE__ */ a("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__ */ a("iframe", { width: "100%", src: s, ...F(l, "className") }),
1691
+ i && /* @__PURE__ */ a("div", { ...t, className: "absolute top-0 h-full w-full" })
1691
1692
  ] });
1692
1693
  }, St = (e) => {
1693
- const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a } = e;
1694
+ const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: i } = e;
1694
1695
  let s = n;
1695
1696
  const c = [...x(r, "srcsets", []) || []];
1696
1697
  o && typeof o == "string" && c.push({ url: o, width: "9999" });
1697
1698
  const m = c.sort((b, k) => parseInt(b.width) - parseInt(k.width)).filter((b) => !v(b.url) && !v(b.width));
1698
1699
  m.length === 0 && !s && (s = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
1699
1700
  const h = x(l, "autoplay", !1) || x(l, "muted", !0);
1700
- return (s || !v(m)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1701
+ return (s || !v(m)) && /* @__PURE__ */ a("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1701
1702
  "video",
1702
1703
  {
1703
1704
  ...t,
1704
- ...a,
1705
+ ...i,
1705
1706
  key: JSON.stringify(m),
1706
1707
  controls: x(l, "controls", !1),
1707
1708
  autoPlay: x(l, "autoplay", !1),
@@ -1712,17 +1713,17 @@ const tt = (e) => {
1712
1713
  m.map((b) => {
1713
1714
  if (!b.url || b.url.length < 4 || isNaN(b.width)) return null;
1714
1715
  const k = `(max-width: ${b.width}px)`;
1715
- return /* @__PURE__ */ i("source", { src: b.url, media: k, type: b.type }, b.url);
1716
+ return /* @__PURE__ */ a("source", { src: b.url, media: k, type: b.type }, b.url);
1716
1717
  }),
1717
1718
  "Your browser does not support the video tag."
1718
1719
  ) });
1719
- }, Nt = (e) => {
1720
+ }, _t = (e) => {
1720
1721
  const { videoSource: o } = e;
1721
- return o === "Custom" ? /* @__PURE__ */ i(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
1722
+ return o === "Custom" ? /* @__PURE__ */ a(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ a(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
1722
1723
  "Invalid video source : ",
1723
1724
  o
1724
1725
  ] });
1725
- }, _t = {
1726
+ }, Nt = {
1726
1727
  type: "Video",
1727
1728
  label: "Video",
1728
1729
  category: "core",
@@ -1761,7 +1762,7 @@ const tt = (e) => {
1761
1762
  type: "object",
1762
1763
  default: { srcsets: [] }
1763
1764
  },
1764
- controls: { ...N }
1765
+ controls: { ..._ }
1765
1766
  }
1766
1767
  }
1767
1768
  },
@@ -1778,7 +1779,7 @@ const tt = (e) => {
1778
1779
  title: "Youtube Video URL",
1779
1780
  default: ""
1780
1781
  },
1781
- controls: { ...N }
1782
+ controls: { ..._ }
1782
1783
  }
1783
1784
  }
1784
1785
  },
@@ -1795,7 +1796,7 @@ const tt = (e) => {
1795
1796
  title: "Vimeo Video URL",
1796
1797
  default: ""
1797
1798
  },
1798
- controls: { ...N }
1799
+ controls: { ..._ }
1799
1800
  }
1800
1801
  }
1801
1802
  }
@@ -1809,38 +1810,38 @@ const tt = (e) => {
1809
1810
  i18nProps: ["url"]
1810
1811
  }, Tt = (e) => {
1811
1812
  const { paginationStyles: o } = e, t = U("Pagination");
1812
- return /* @__PURE__ */ i("div", { ...o, children: t ? y.createElement(t.component, { ...V(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ g(_, { children: [
1813
- /* @__PURE__ */ i(
1813
+ return /* @__PURE__ */ a("div", { ...o, children: t ? y.createElement(t.component, { ...V(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ g(N, { children: [
1814
+ /* @__PURE__ */ a(
1814
1815
  "button",
1815
1816
  {
1816
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",
1817
1818
  disabled: !0,
1818
- children: /* @__PURE__ */ i(ue, { className: "h-4 w-4" })
1819
+ children: /* @__PURE__ */ a(ue, { className: "h-4 w-4" })
1819
1820
  }
1820
1821
  ),
1821
- /* @__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" }),
1822
- /* @__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" }),
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: "3" }),
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: "4" }),
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: "5" }),
1826
- /* @__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" }) })
1822
+ /* @__PURE__ */ a("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__ */ a("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__ */ a("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__ */ a("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__ */ a("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__ */ a("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__ */ a(me, { className: "h-4 w-4" }) })
1827
1828
  ] }) });
1828
1829
  }, Rt = (e) => {
1829
- const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
1830
+ const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: i, inBuilder: s } = e;
1830
1831
  let c = o;
1831
- 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: [
1832
- /* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1833
- /* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1834
- ] }, h)) : c : /* @__PURE__ */ g(_, { children: [
1832
+ return v(c) && s && (c = /* @__PURE__ */ a("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? 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__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1834
+ /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1835
+ ] }, h)) : c : /* @__PURE__ */ g(N, { children: [
1835
1836
  y.createElement(
1836
1837
  t,
1837
1838
  { ...r, ...l },
1838
1839
  n && s ? Array.from({ length: 2 }).map((m, h) => /* @__PURE__ */ g("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
1839
- /* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1840
- /* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1840
+ /* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1841
+ /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1841
1842
  ] }, h)) : c
1842
1843
  ),
1843
- a && /* @__PURE__ */ i(
1844
+ i && /* @__PURE__ */ a(
1844
1845
  Tt,
1845
1846
  {
1846
1847
  ...F(e, [
@@ -1970,7 +1971,7 @@ const tt = (e) => {
1970
1971
  return !e && r ? y.createElement(
1971
1972
  n,
1972
1973
  { ...o, ...t },
1973
- /* @__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" })
1974
+ /* @__PURE__ */ a("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Add children to repeater item" })
1974
1975
  ) : y.createElement(n, { ...o, ...t }, e);
1975
1976
  }, Et = {
1976
1977
  type: "RepeaterItem",
@@ -2005,7 +2006,7 @@ const tt = (e) => {
2005
2006
  canMove: () => !1,
2006
2007
  canDuplicate: () => !1
2007
2008
  }, qt = () => {
2008
- d(ge, be), d(Pe, Le), d(fe, he), d(Ge, We), d(ut, mt), d(vt, Ct), d(kt, wt), d(it, at), d(st, ct), d(dt, pt), d(tt, ot), d(rt, nt), d(Nt, _t), d(xe, ke), d(we, ve), d(It, Pt), d(Ne, _e), d(Te, Re), d(Me, Ee), d(Be, Se), d(ze, je), d(De, Ve), d(Fe, Ue), d(He, $e), d(Oe, Ye), d(Ce, Ie), d(qe, Ze), d(yt, gt), d(ht, xt), d(bt, ft), d(Rt, At), d(Mt, Et), d(Ht, $t);
2009
+ d(ge, be), d(Pe, Le), d(fe, he), d(Ge, We), d(ut, mt), d(vt, Ct), d(kt, wt), d(at, it), d(st, ct), d(dt, pt), d(tt, ot), d(rt, nt), d(_t, Nt), d(xe, ke), d(we, ve), d(It, Pt), d(_e, Ne), d(Te, Re), d(Me, Ee), d(Be, Se), d(ze, je), d(De, Ve), d(Fe, Ue), d(He, $e), d(Oe, Ye), d(Ce, Ie), d(qe, Ze), d(yt, gt), d(ht, xt), d(bt, ft), d(Rt, At), d(Mt, Et), d(Ht, $t);
2009
2010
  };
2010
2011
  export {
2011
2012
  qt as loadWebBlocks