@chaibuilder/sdk 3.0.17 → 3.0.19

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";
3
- import { c as T, g as I } from "./common-functions-BGzDsf1z.js";
2
+ import { jsx as a, jsxs as g, Fragment as _ } from "react/jsx-runtime";
3
+ import { c as N, 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: N("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(_, { 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: N("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);
@@ -926,15 +926,10 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
926
926
  }
927
927
  }
928
928
  })
929
- }, B = (e, ...o) => ({
930
- ...e,
931
- className: T(e.className, ...o)
932
- }), Ge = (e) => {
929
+ }, Ge = (e) => {
933
930
  const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
934
- if (n) return y.createElement(r, { ...t, ...o }, n);
935
- const a = B(t, "rte");
936
- return y.createElement(r, {
937
- ...a,
931
+ return n ? y.createElement(r, { ...t, ...o }, n) : y.createElement(r, {
932
+ ...t,
938
933
  ...o,
939
934
  dangerouslySetInnerHTML: { __html: l }
940
935
  });
@@ -958,7 +953,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
958
953
  type: "string",
959
954
  default: "Heading goes here",
960
955
  title: "Content",
961
- ui: { "ui:widget": "richtext" }
956
+ ui: { "ui:widget": "textarea", "ui:rows": 3 }
962
957
  }
963
958
  }
964
959
  }),
@@ -985,19 +980,19 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
985
980
  canDuplicate: () => !1
986
981
  }, Qe = (e) => {
987
982
  const { blockProps: o, children: t, styles: l } = e;
988
- return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
983
+ return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
989
984
  }, Je = (e) => {
990
985
  const { blockProps: o, children: t, styles: l } = e;
991
- return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
986
+ return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
992
987
  }, Xe = (e) => {
993
988
  const { blockProps: o, children: t, styles: l } = e;
994
- return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
989
+ return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
995
990
  }, Ke = (e) => {
996
991
  const { blockProps: o, children: t, styles: l } = e;
997
- return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
992
+ return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
998
993
  }, et = (e) => {
999
994
  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", {
995
+ return !t && v(l) ? /* @__PURE__ */ a(C, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
1001
996
  ...o,
1002
997
  ...r,
1003
998
  dangerouslySetInnerHTML: { __html: l }
@@ -1082,33 +1077,33 @@ d(et, {
1082
1077
  aiProps: ["content"]
1083
1078
  });
1084
1079
  function P(e) {
1085
- const o = (n, a) => ({
1080
+ const o = (n, i) => ({
1086
1081
  _id: I(),
1087
1082
  _parent: n,
1088
1083
  _type: "TableCell",
1089
1084
  styles: "#styles:,",
1090
- content: `${e === "TableHead" ? "Table Head" : "Table Cell " + a}`
1085
+ content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
1091
1086
  }), t = (n) => {
1092
- const a = I(), s = {
1087
+ const i = I(), s = {
1093
1088
  _type: "TableRow",
1094
- _id: a,
1089
+ _id: i,
1095
1090
  styles: "#styles:,border-b"
1096
1091
  };
1097
- return n && (s._parent = n), [s, o(a, "1"), o(a, "2"), o(a, "3")];
1092
+ return n && (s._parent = n), [s, o(i, "1"), o(i, "2"), o(i, "3")];
1098
1093
  }, l = (n) => {
1099
- const a = I(), s = {
1100
- _id: a,
1094
+ const i = I(), s = {
1095
+ _id: i,
1101
1096
  _type: "TableHead",
1102
1097
  styles: "#styles:,font-medium"
1103
1098
  };
1104
- return n && (s._parent = n), [s, ...t(a)];
1099
+ return n && (s._parent = n), [s, ...t(i)];
1105
1100
  }, r = (n) => {
1106
- const a = I(), s = {
1107
- _id: a,
1101
+ const i = I(), s = {
1102
+ _id: i,
1108
1103
  _type: "TableBody",
1109
1104
  styles: "#styles:,"
1110
1105
  };
1111
- return n && (s._parent = n), [s, ...t(a), ...t(a)];
1106
+ return n && (s._parent = n), [s, ...t(i), ...t(i)];
1112
1107
  };
1113
1108
  if (e === "Table") {
1114
1109
  const n = I();
@@ -1124,17 +1119,20 @@ function P(e) {
1124
1119
  }
1125
1120
  return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1126
1121
  }
1127
- const tt = (e) => {
1128
- const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = B(l, "");
1122
+ const T = (e, ...o) => ({
1123
+ ...e,
1124
+ className: N(e.className, ...o)
1125
+ }), tt = (e) => {
1126
+ const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: i } = e, s = T(l, "");
1129
1127
  if (v(t))
1130
- return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
1128
+ return /* @__PURE__ */ a(C, { inBuilder: n, className: "h-8 w-14" });
1131
1129
  const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1132
1130
  return y.createElement("span", {
1133
1131
  ...o,
1134
1132
  ...s,
1135
1133
  style: {
1136
1134
  width: r ? `${r}px` : "auto",
1137
- height: a ? `${a}px` : "auto"
1135
+ height: i ? `${i}px` : "auto"
1138
1136
  },
1139
1137
  dangerouslySetInnerHTML: { __html: c }
1140
1138
  });
@@ -1166,10 +1164,10 @@ const tt = (e) => {
1166
1164
  }
1167
1165
  })
1168
1166
  }, 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(
1167
+ const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: i, width: s, lazyLoading: c, mobileWidth: m, mobileHeight: h } = e;
1168
+ return v(t) ? /* @__PURE__ */ a(C, { className: "h-36" }) : /* @__PURE__ */ g("picture", { children: [
1169
+ l && /* @__PURE__ */ a("source", { srcSet: l, media: "(max-width: 480px)", width: m, height: h }),
1170
+ /* @__PURE__ */ a(
1173
1171
  "img",
1174
1172
  {
1175
1173
  ...o,
@@ -1178,7 +1176,7 @@ const tt = (e) => {
1178
1176
  alt: n,
1179
1177
  loading: c ? "lazy" : "eager",
1180
1178
  width: s,
1181
- height: a
1179
+ height: i
1182
1180
  }
1183
1181
  )
1184
1182
  ] });
@@ -1243,10 +1241,10 @@ const tt = (e) => {
1243
1241
  }),
1244
1242
  aiProps: ["alt"],
1245
1243
  i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
1246
- }, it = (e) => {
1247
- const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
1244
+ }, at = (e) => {
1245
+ const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: i } = e;
1248
1246
  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(
1247
+ 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
1248
  "span",
1251
1249
  {
1252
1250
  ...o,
@@ -1254,19 +1252,19 @@ const tt = (e) => {
1254
1252
  style: s,
1255
1253
  role: "link"
1256
1254
  },
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(
1255
+ i
1256
+ ) : 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
1257
  "a",
1260
1258
  {
1261
1259
  ...o,
1262
1260
  ...r,
1263
1261
  href: (t == null ? void 0 : t.href) || "#",
1264
1262
  target: (t == null ? void 0 : t.target) || "_self",
1265
- "aria-label": a
1263
+ "aria-label": i
1266
1264
  },
1267
- a
1265
+ i
1268
1266
  );
1269
- }, at = {
1267
+ }, it = {
1270
1268
  type: "Link",
1271
1269
  description: "A link component",
1272
1270
  label: "Link",
@@ -1309,7 +1307,7 @@ const tt = (e) => {
1309
1307
  canAcceptBlock: (e) => e !== "Link"
1310
1308
  }, st = (e) => {
1311
1309
  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);
1310
+ return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */ a(C, { inBuilder: n }) : y.createElement(r || "ul", { ...o, ...l }, t);
1313
1311
  }, ct = {
1314
1312
  type: "List",
1315
1313
  description: "A list component",
@@ -1358,7 +1356,7 @@ const tt = (e) => {
1358
1356
  type: "ListItem",
1359
1357
  description: "A list item component",
1360
1358
  label: "List Item",
1361
- icon: ie,
1359
+ icon: ae,
1362
1360
  category: "core",
1363
1361
  group: "basic",
1364
1362
  ...p({
@@ -1381,8 +1379,8 @@ const tt = (e) => {
1381
1379
  }, ut = (e) => {
1382
1380
  const { blockProps: o, styles: t, content: l } = e;
1383
1381
  if (!ye(e.children)) return y.createElement("p", { ...t, ...o }, e.children);
1384
- const r = B(t, "rte");
1385
- return y.createElement("p", {
1382
+ const r = T(t, "rte");
1383
+ return y.createElement("div", {
1386
1384
  ...r,
1387
1385
  ...o,
1388
1386
  dangerouslySetInnerHTML: { __html: l }
@@ -1392,7 +1390,7 @@ const tt = (e) => {
1392
1390
  description: "A paragraph component",
1393
1391
  label: "Paragraph",
1394
1392
  category: "core",
1395
- icon: ae,
1393
+ icon: ie,
1396
1394
  group: "typography",
1397
1395
  ...p({
1398
1396
  properties: {
@@ -1420,7 +1418,7 @@ const tt = (e) => {
1420
1418
  "Partial Block - ",
1421
1419
  r
1422
1420
  ] }),
1423
- /* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
1421
+ /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
1424
1422
  ]
1425
1423
  }
1426
1424
  ) : y.createElement("span", { ...o }, l);
@@ -1442,7 +1440,7 @@ const tt = (e) => {
1442
1440
  }
1443
1441
  }
1444
1442
  })
1445
- }, S = {
1443
+ }, B = {
1446
1444
  SMALL: {
1447
1445
  1: "col-span-1",
1448
1446
  2: "col-span-2",
@@ -1486,13 +1484,13 @@ const tt = (e) => {
1486
1484
  12: "lg:col-span-12"
1487
1485
  }
1488
1486
  }, bt = (e) => {
1489
- const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
1487
+ const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1490
1488
  x(l, "className", ""),
1491
- x(S, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1492
- n ? x(S, ["MEDIUM", n || r], "") : "",
1493
- a ? x(S, ["LARGE", n || r], "") : ""
1489
+ x(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1490
+ n ? x(B, ["MEDIUM", n || r], "") : "",
1491
+ i ? x(B, ["LARGE", n || r], "") : ""
1494
1492
  ].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" }) });
1493
+ 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
1494
  }, ft = {
1497
1495
  type: "Column",
1498
1496
  description: "A column component",
@@ -1530,8 +1528,8 @@ const tt = (e) => {
1530
1528
  }
1531
1529
  })
1532
1530
  }, 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 });
1531
+ const { blockProps: o, children: t, styles: l, gutter: r } = e, i = { className: [x(l, "className", ""), " grid grid-cols-12"].join() };
1532
+ 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
1533
  }, xt = {
1536
1534
  type: "Row",
1537
1535
  description: "A row component",
@@ -1564,12 +1562,13 @@ const tt = (e) => {
1564
1562
  }
1565
1563
  })
1566
1564
  }, kt = (e) => {
1567
- const { blockProps: o, content: t, styles: l } = e, r = B(l, "rte");
1568
- return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1565
+ const { blockProps: o, content: t, styles: l } = e, r = T(l, "rte");
1566
+ return /* @__PURE__ */ a("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1569
1567
  }, wt = {
1570
1568
  type: "RichText",
1571
1569
  description: "A rich text block",
1572
1570
  label: "Rich Text",
1571
+ hidden: !0,
1573
1572
  category: "core",
1574
1573
  icon: ce,
1575
1574
  group: "typography",
@@ -1606,20 +1605,20 @@ const tt = (e) => {
1606
1605
  type: "string",
1607
1606
  title: "Content",
1608
1607
  default: "",
1609
- ui: { "ui:widget": "richtext", "ui:autosize": !0, "ui:rows": 3 }
1608
+ ui: { "ui:widget": "textarea", "ui:autosize": !0, "ui:rows": 3 }
1610
1609
  }
1611
1610
  }
1612
1611
  }),
1613
1612
  aiProps: ["content"],
1614
1613
  i18nProps: ["content"],
1615
1614
  canAcceptBlock: () => !0
1616
- }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1615
+ }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1617
1616
  type: "Text",
1618
1617
  description: "A text component with no styling",
1619
- label: "Text",
1620
- hidden: !0,
1618
+ label: "Raw Text",
1621
1619
  category: "core",
1622
1620
  group: "typography",
1621
+ blocks: () => [{ _id: "a", _type: "Text", _name: "Raw Text", content: "" }],
1623
1622
  icon: de,
1624
1623
  ...p({
1625
1624
  properties: {
@@ -1633,7 +1632,7 @@ const tt = (e) => {
1633
1632
  }),
1634
1633
  aiProps: ["content"],
1635
1634
  i18nProps: ["content"]
1636
- }, N = {
1635
+ }, S = {
1637
1636
  type: "object",
1638
1637
  title: "Controls",
1639
1638
  default: {
@@ -1667,41 +1666,41 @@ const tt = (e) => {
1667
1666
  }, 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
1667
  const t = x(o, "autoplay", !1), l = x(o, "controls", !1), r = x(o, "loop", !1), n = t || x(o, "muted", !0);
1669
1668
  if (A.test(e)) {
1670
- const a = e.match(A);
1671
- if (a) {
1672
- const s = a[4];
1669
+ const i = e.match(A);
1670
+ if (i) {
1671
+ const s = i[4];
1673
1672
  let c = `https://www.youtube.com/embed/${s}`, m = t ? "autoplay=1" : "";
1674
1673
  return m += r ? `&loop=1&playlist=${s}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
1675
1674
  }
1676
1675
  }
1677
1676
  if (M.test(e)) {
1678
- const a = e.match(M);
1679
- if (a) {
1680
- const s = a[1];
1677
+ const i = e.match(M);
1678
+ if (i) {
1679
+ const s = i[1];
1681
1680
  let c = "";
1682
1681
  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
1682
  }
1684
1683
  }
1685
1684
  return null;
1686
1685
  }, Bt = (e) => {
1687
- const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a } = e, s = Lt(o, r);
1686
+ const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s = Lt(o, r);
1688
1687
  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" })
1688
+ !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") }),
1689
+ i && /* @__PURE__ */ a("div", { ...t, className: "absolute top-0 h-full w-full" })
1691
1690
  ] });
1692
1691
  }, St = (e) => {
1693
- const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a } = e;
1692
+ const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: i } = e;
1694
1693
  let s = n;
1695
1694
  const c = [...x(r, "srcsets", []) || []];
1696
1695
  o && typeof o == "string" && c.push({ url: o, width: "9999" });
1697
1696
  const m = c.sort((b, k) => parseInt(b.width) - parseInt(k.width)).filter((b) => !v(b.url) && !v(b.width));
1698
1697
  m.length === 0 && !s && (s = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
1699
1698
  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(
1699
+ return (s || !v(m)) && /* @__PURE__ */ a("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1701
1700
  "video",
1702
1701
  {
1703
1702
  ...t,
1704
- ...a,
1703
+ ...i,
1705
1704
  key: JSON.stringify(m),
1706
1705
  controls: x(l, "controls", !1),
1707
1706
  autoPlay: x(l, "autoplay", !1),
@@ -1712,17 +1711,17 @@ const tt = (e) => {
1712
1711
  m.map((b) => {
1713
1712
  if (!b.url || b.url.length < 4 || isNaN(b.width)) return null;
1714
1713
  const k = `(max-width: ${b.width}px)`;
1715
- return /* @__PURE__ */ i("source", { src: b.url, media: k, type: b.type }, b.url);
1714
+ return /* @__PURE__ */ a("source", { src: b.url, media: k, type: b.type }, b.url);
1716
1715
  }),
1717
1716
  "Your browser does not support the video tag."
1718
1717
  ) });
1719
- }, Nt = (e) => {
1718
+ }, _t = (e) => {
1720
1719
  const { videoSource: o } = e;
1721
- return o === "Custom" ? /* @__PURE__ */ i(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
1720
+ return o === "Custom" ? /* @__PURE__ */ a(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ a(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
1722
1721
  "Invalid video source : ",
1723
1722
  o
1724
1723
  ] });
1725
- }, _t = {
1724
+ }, Nt = {
1726
1725
  type: "Video",
1727
1726
  label: "Video",
1728
1727
  category: "core",
@@ -1761,7 +1760,7 @@ const tt = (e) => {
1761
1760
  type: "object",
1762
1761
  default: { srcsets: [] }
1763
1762
  },
1764
- controls: { ...N }
1763
+ controls: { ...S }
1765
1764
  }
1766
1765
  }
1767
1766
  },
@@ -1778,7 +1777,7 @@ const tt = (e) => {
1778
1777
  title: "Youtube Video URL",
1779
1778
  default: ""
1780
1779
  },
1781
- controls: { ...N }
1780
+ controls: { ...S }
1782
1781
  }
1783
1782
  }
1784
1783
  },
@@ -1795,7 +1794,7 @@ const tt = (e) => {
1795
1794
  title: "Vimeo Video URL",
1796
1795
  default: ""
1797
1796
  },
1798
- controls: { ...N }
1797
+ controls: { ...S }
1799
1798
  }
1800
1799
  }
1801
1800
  }
@@ -1809,38 +1808,38 @@ const tt = (e) => {
1809
1808
  i18nProps: ["url"]
1810
1809
  }, Tt = (e) => {
1811
1810
  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(
1811
+ return /* @__PURE__ */ a("div", { ...o, children: t ? y.createElement(t.component, { ...V(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ g(_, { children: [
1812
+ /* @__PURE__ */ a(
1814
1813
  "button",
1815
1814
  {
1816
1815
  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
1816
  disabled: !0,
1818
- children: /* @__PURE__ */ i(ue, { className: "h-4 w-4" })
1817
+ children: /* @__PURE__ */ a(ue, { className: "h-4 w-4" })
1819
1818
  }
1820
1819
  ),
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" }) })
1820
+ /* @__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" }),
1821
+ /* @__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" }),
1822
+ /* @__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" }),
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: "4" }),
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: "5" }),
1825
+ /* @__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
1826
  ] }) });
1828
1827
  }, Rt = (e) => {
1829
- const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
1828
+ const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: i, inBuilder: s } = e;
1830
1829
  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" })
1830
+ 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: [
1831
+ /* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1832
+ /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1834
1833
  ] }, h)) : c : /* @__PURE__ */ g(_, { children: [
1835
1834
  y.createElement(
1836
1835
  t,
1837
1836
  { ...r, ...l },
1838
1837
  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" })
1838
+ /* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1839
+ /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1841
1840
  ] }, h)) : c
1842
1841
  ),
1843
- a && /* @__PURE__ */ i(
1842
+ i && /* @__PURE__ */ a(
1844
1843
  Tt,
1845
1844
  {
1846
1845
  ...F(e, [
@@ -1970,7 +1969,7 @@ const tt = (e) => {
1970
1969
  return !e && r ? y.createElement(
1971
1970
  n,
1972
1971
  { ...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" })
1972
+ /* @__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
1973
  ) : y.createElement(n, { ...o, ...t }, e);
1975
1974
  }, Et = {
1976
1975
  type: "RepeaterItem",
@@ -2005,7 +2004,7 @@ const tt = (e) => {
2005
2004
  canMove: () => !1,
2006
2005
  canDuplicate: () => !1
2007
2006
  }, 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);
2007
+ 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
2008
  };
2010
2009
  export {
2011
2010
  qt as loadWebBlocks