@chaibuilder/sdk 3.0.13 → 3.0.15

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 a, jsxs as g, Fragment as N } from "react/jsx-runtime";
3
- import { c as _, g as I } from "./common-functions-BGzDsf1z.js";
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";
4
4
  import * as y from "react";
5
5
  import { createElement as w } from "react";
6
- import { ButtonIcon as M, CodeIcon as E, DividerHorizontalIcon as Z, CheckboxIcon as G, FileTextIcon as W, InputIcon as H, LetterCaseToggleIcon as O, RadiobuttonIcon as Y, DropdownMenuIcon as Q, FrameIcon as $, 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 z, 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 j } from "@radix-ui/react-icons";
7
- import { isEmpty as v, get as x, map as T, isNull as ye, omit as D, pick as V } from "lodash-es";
8
- const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div", { className: _("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;
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";
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;
10
10
  let s = r;
11
- r || (s = /* @__PURE__ */ a(C, { inBuilder: t }));
11
+ r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
12
12
  let c = {};
13
- return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...i, style: c }, s);
13
+ return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...a, style: c }, s);
14
14
  }, be = {
15
15
  type: "Box",
16
16
  description: "Similar to a div or section elements in HTML",
@@ -54,9 +54,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
54
54
  }),
55
55
  canAcceptBlock: () => !0
56
56
  }, fe = (e) => {
57
- const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: 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(
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(
60
60
  "div",
61
61
  {
62
62
  style: { width: t + "px" },
@@ -74,13 +74,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
74
74
  },
75
75
  b
76
76
  );
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 });
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 });
78
78
  }, he = {
79
79
  type: "Button",
80
80
  description: "similar to a button element in HTML",
81
81
  label: "Button",
82
82
  category: "core",
83
- icon: M,
83
+ icon: E,
84
84
  group: "basic",
85
85
  ...p({
86
86
  properties: {
@@ -135,7 +135,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("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__ */ a("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
138
+ r ? /* @__PURE__ */ i("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, "") }
@@ -150,7 +150,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
150
150
  description: "similar to a div or section elements in HTML",
151
151
  label: "Custom HTML",
152
152
  category: "core",
153
- icon: E,
153
+ icon: H,
154
154
  group: "advanced",
155
155
  ...p({
156
156
  properties: {
@@ -165,13 +165,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
165
165
  i18nProps: ["htmlCode"]
166
166
  }, we = (e) => {
167
167
  const { scripts: o, inBuilder: t, blockProps: l } = e;
168
- return t ? /* @__PURE__ */ a("div", { ...l, children: /* @__PURE__ */ a("div", { className: _("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 } });
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 } });
169
169
  }, ve = {
170
170
  type: "CustomScript",
171
171
  description: "similar to a script element in HTML",
172
172
  label: "Custom Script",
173
173
  category: "core",
174
- icon: E,
174
+ icon: H,
175
175
  group: "advanced",
176
176
  ...p({
177
177
  properties: {
@@ -222,11 +222,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
222
222
  }
223
223
  })
224
224
  }, Be = (e) => {
225
- const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
225
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
226
226
  return c ? /* @__PURE__ */ g("div", { ...r, ...o, children: [
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(
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(
230
230
  "input",
231
231
  {
232
232
  name: t,
@@ -234,7 +234,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
234
234
  ...n,
235
235
  ...r,
236
236
  type: "checkbox",
237
- required: i,
237
+ required: a,
238
238
  defaultChecked: s
239
239
  }
240
240
  );
@@ -278,9 +278,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
278
278
  aiProps: ["label"],
279
279
  i18nProps: ["label"]
280
280
  }, Ne = (e) => {
281
- const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: s } = e;
281
+ const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
282
282
  let c = o;
283
- return o || (c = /* @__PURE__ */ a(C, { inBuilder: s })), /* @__PURE__ */ g(
283
+ return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ g(
284
284
  "form",
285
285
  {
286
286
  ...{
@@ -292,9 +292,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
292
292
  method: "post",
293
293
  action: n,
294
294
  ...t,
295
- ...i,
295
+ ...a,
296
296
  children: [
297
- /* @__PURE__ */ a("div", { ...{
297
+ /* @__PURE__ */ i("div", { ...{
298
298
  "x-html": "",
299
299
  ":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
300
300
  } }),
@@ -344,13 +344,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("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: i, iconPos: s } = e;
347
+ const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, 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__ */ a(
350
+ n && /* @__PURE__ */ i(
351
351
  "div",
352
352
  {
353
- style: { width: i + "px" },
353
+ style: { width: a + "px" },
354
354
  className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
355
355
  dangerouslySetInnerHTML: { __html: n }
356
356
  }
@@ -360,7 +360,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
360
360
  type: "FormButton",
361
361
  label: "Submit Button",
362
362
  category: "core",
363
- icon: M,
363
+ icon: E,
364
364
  group: "form",
365
365
  ...p({
366
366
  properties: {
@@ -470,32 +470,32 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
470
470
  label: l,
471
471
  placeholder: r,
472
472
  styles: n,
473
- inputStyles: i,
473
+ inputStyles: a,
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__ */ a("label", { htmlFor: t, children: l }),
481
- /* @__PURE__ */ a(
480
+ s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
481
+ /* @__PURE__ */ i(
482
482
  "input",
483
483
  {
484
484
  name: t,
485
485
  defaultValue: h,
486
- ...i,
486
+ ...a,
487
487
  type: b,
488
488
  placeholder: r,
489
489
  required: c,
490
490
  autoComplete: k
491
491
  }
492
492
  )
493
- ] }) : /* @__PURE__ */ a(
493
+ ] }) : /* @__PURE__ */ i(
494
494
  "input",
495
495
  {
496
496
  name: t,
497
497
  ...o,
498
- ...i,
498
+ ...a,
499
499
  ...n,
500
500
  type: b,
501
501
  placeholder: r,
@@ -508,7 +508,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
508
508
  type: "Input",
509
509
  label: "web_blocks.input",
510
510
  category: "core",
511
- icon: H,
511
+ icon: $,
512
512
  group: "form",
513
513
  ...p({
514
514
  properties: {
@@ -644,11 +644,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("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: i, checked: s, showLabel: c = !0 } = e;
647
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
648
648
  return c ? /* @__PURE__ */ g("div", { ...r, ...o, children: [
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(
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(
652
652
  "input",
653
653
  {
654
654
  name: t,
@@ -656,7 +656,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
656
656
  ...n,
657
657
  ...r,
658
658
  type: "radio",
659
- required: i,
659
+ required: a,
660
660
  checked: s
661
661
  }
662
662
  );
@@ -706,7 +706,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
706
706
  label: l,
707
707
  placeholder: r,
708
708
  styles: n,
709
- inputStyles: i,
709
+ inputStyles: a,
710
710
  required: s,
711
711
  showLabel: c,
712
712
  _multiple: m,
@@ -714,18 +714,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("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__ */ a("label", { htmlFor: t, children: l }),
717
+ c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
718
718
  /* @__PURE__ */ g(
719
719
  "select",
720
720
  {
721
- ...i,
721
+ ...a,
722
722
  required: s,
723
723
  multiple: m,
724
724
  name: t,
725
725
  defaultValue: k,
726
726
  children: [
727
- /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
728
- T(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))
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))
729
729
  ]
730
730
  }
731
731
  )
@@ -739,8 +739,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
739
739
  name: t,
740
740
  defaultValue: k,
741
741
  children: [
742
- /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
743
- T(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))
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))
744
744
  ]
745
745
  }
746
746
  );
@@ -814,26 +814,26 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("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: i, rows: s, showLabel: c, required: m, defaultValue: h } = e;
817
+ const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: m, defaultValue: h } = e;
818
818
  return c ? /* @__PURE__ */ g("div", { ...n, ...o, children: [
819
- c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
820
- /* @__PURE__ */ a(
819
+ c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
820
+ /* @__PURE__ */ i(
821
821
  "textarea",
822
822
  {
823
823
  name: t,
824
- ...i,
824
+ ...a,
825
825
  placeholder: r,
826
826
  rows: s,
827
827
  required: m,
828
828
  defaultValue: h
829
829
  }
830
830
  )
831
- ] }) : /* @__PURE__ */ a(
831
+ ] }) : /* @__PURE__ */ i(
832
832
  "textarea",
833
833
  {
834
834
  name: t,
835
835
  ...o,
836
- ...i,
836
+ ...a,
837
837
  ...n,
838
838
  placeholder: r,
839
839
  rows: s,
@@ -845,7 +845,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
845
845
  type: "TextArea",
846
846
  label: "web_blocks.textarea",
847
847
  category: "core",
848
- icon: H,
848
+ icon: $,
849
849
  group: "form",
850
850
  ...p({
851
851
  properties: {
@@ -904,7 +904,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
904
904
  "Global Block - ",
905
905
  r
906
906
  ] }),
907
- /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
907
+ /* @__PURE__ */ i("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);
@@ -912,7 +912,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
912
912
  type: "GlobalBlock",
913
913
  description: "A global block component",
914
914
  label: "Global Block",
915
- icon: $,
915
+ icon: z,
916
916
  category: "core",
917
917
  group: "basic",
918
918
  hidden: !0,
@@ -926,10 +926,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
926
926
  }
927
927
  }
928
928
  })
929
- }, Ge = (e) => {
929
+ }, B = (e, ...o) => ({
930
+ ...e,
931
+ className: T(e.className, ...o)
932
+ }), Ge = (e) => {
930
933
  const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
931
- return n ? y.createElement(r, { ...t, ...o }, n) : y.createElement(r, {
932
- ...t,
934
+ if (n) return y.createElement(r, { ...t, ...o }, n);
935
+ const a = B(t, "rte");
936
+ return y.createElement(r, {
937
+ ...a,
933
938
  ...o,
934
939
  dangerouslySetInnerHTML: { __html: l }
935
940
  });
@@ -953,7 +958,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
953
958
  type: "string",
954
959
  default: "Heading goes here",
955
960
  title: "Content",
956
- ui: { "ui:widget": "textarea" }
961
+ ui: { "ui:widget": "richtext" }
957
962
  }
958
963
  }
959
964
  }),
@@ -980,19 +985,19 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
980
985
  canDuplicate: () => !1
981
986
  }, Qe = (e) => {
982
987
  const { blockProps: o, children: t, styles: l } = e;
983
- return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
988
+ return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
984
989
  }, Je = (e) => {
985
990
  const { blockProps: o, children: t, styles: l } = e;
986
- return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
991
+ return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
987
992
  }, Xe = (e) => {
988
993
  const { blockProps: o, children: t, styles: l } = e;
989
- return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
994
+ return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
990
995
  }, Ke = (e) => {
991
996
  const { blockProps: o, children: t, styles: l } = e;
992
- return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
997
+ return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
993
998
  }, et = (e) => {
994
999
  const { blockProps: o, children: t, content: l, styles: r } = e;
995
- return !t && v(l) ? /* @__PURE__ */ a(C, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
1000
+ return !t && v(l) ? /* @__PURE__ */ i(C, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
996
1001
  ...o,
997
1002
  ...r,
998
1003
  dangerouslySetInnerHTML: { __html: l }
@@ -1077,33 +1082,33 @@ d(et, {
1077
1082
  aiProps: ["content"]
1078
1083
  });
1079
1084
  function P(e) {
1080
- const o = (n, i) => ({
1085
+ const o = (n, a) => ({
1081
1086
  _id: I(),
1082
1087
  _parent: n,
1083
1088
  _type: "TableCell",
1084
1089
  styles: "#styles:,",
1085
- content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
1090
+ content: `${e === "TableHead" ? "Table Head" : "Table Cell " + a}`
1086
1091
  }), t = (n) => {
1087
- const i = I(), s = {
1092
+ const a = I(), s = {
1088
1093
  _type: "TableRow",
1089
- _id: i,
1094
+ _id: a,
1090
1095
  styles: "#styles:,border-b"
1091
1096
  };
1092
- return n && (s._parent = n), [s, o(i, "1"), o(i, "2"), o(i, "3")];
1097
+ return n && (s._parent = n), [s, o(a, "1"), o(a, "2"), o(a, "3")];
1093
1098
  }, l = (n) => {
1094
- const i = I(), s = {
1095
- _id: i,
1099
+ const a = I(), s = {
1100
+ _id: a,
1096
1101
  _type: "TableHead",
1097
1102
  styles: "#styles:,font-medium"
1098
1103
  };
1099
- return n && (s._parent = n), [s, ...t(i)];
1104
+ return n && (s._parent = n), [s, ...t(a)];
1100
1105
  }, r = (n) => {
1101
- const i = I(), s = {
1102
- _id: i,
1106
+ const a = I(), s = {
1107
+ _id: a,
1103
1108
  _type: "TableBody",
1104
1109
  styles: "#styles:,"
1105
1110
  };
1106
- return n && (s._parent = n), [s, ...t(i), ...t(i)];
1111
+ return n && (s._parent = n), [s, ...t(a), ...t(a)];
1107
1112
  };
1108
1113
  if (e === "Table") {
1109
1114
  const n = I();
@@ -1119,20 +1124,17 @@ function P(e) {
1119
1124
  }
1120
1125
  return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1121
1126
  }
1122
- const F = (e, ...o) => ({
1123
- ...e,
1124
- className: _(e.className, ...o)
1125
- }), tt = (e) => {
1126
- const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: i } = e, s = F(l, "");
1127
+ const tt = (e) => {
1128
+ const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = B(l, "");
1127
1129
  if (v(t))
1128
- return /* @__PURE__ */ a(C, { inBuilder: n, className: "h-8 w-14" });
1130
+ return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
1129
1131
  const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1130
1132
  return y.createElement("span", {
1131
1133
  ...o,
1132
1134
  ...s,
1133
1135
  style: {
1134
1136
  width: r ? `${r}px` : "auto",
1135
- height: i ? `${i}px` : "auto"
1137
+ height: a ? `${a}px` : "auto"
1136
1138
  },
1137
1139
  dangerouslySetInnerHTML: { __html: c }
1138
1140
  });
@@ -1164,10 +1166,10 @@ const F = (e, ...o) => ({
1164
1166
  }
1165
1167
  })
1166
1168
  }, lt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", rt = (e) => {
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(
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(
1171
1173
  "img",
1172
1174
  {
1173
1175
  ...o,
@@ -1176,7 +1178,7 @@ const F = (e, ...o) => ({
1176
1178
  alt: n,
1177
1179
  loading: c ? "lazy" : "eager",
1178
1180
  width: s,
1179
- height: i
1181
+ height: a
1180
1182
  }
1181
1183
  )
1182
1184
  ] });
@@ -1241,10 +1243,10 @@ const F = (e, ...o) => ({
1241
1243
  }),
1242
1244
  aiProps: ["alt"],
1243
1245
  i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
1244
- }, at = (e) => {
1245
- const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: i } = e;
1246
+ }, it = (e) => {
1247
+ const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
1246
1248
  let s = {};
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(
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(
1248
1250
  "span",
1249
1251
  {
1250
1252
  ...o,
@@ -1252,19 +1254,19 @@ const F = (e, ...o) => ({
1252
1254
  style: s,
1253
1255
  role: "link"
1254
1256
  },
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(
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
1259
  "a",
1258
1260
  {
1259
1261
  ...o,
1260
1262
  ...r,
1261
1263
  href: (t == null ? void 0 : t.href) || "#",
1262
1264
  target: (t == null ? void 0 : t.target) || "_self",
1263
- "aria-label": i
1265
+ "aria-label": a
1264
1266
  },
1265
- i
1267
+ a
1266
1268
  );
1267
- }, it = {
1269
+ }, at = {
1268
1270
  type: "Link",
1269
1271
  description: "A link component",
1270
1272
  label: "Link",
@@ -1307,12 +1309,12 @@ const F = (e, ...o) => ({
1307
1309
  canAcceptBlock: (e) => e !== "Link"
1308
1310
  }, st = (e) => {
1309
1311
  const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
1310
- return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */ a(C, { inBuilder: n }) : y.createElement(r || "ul", { ...o, ...l }, t);
1312
+ return !t && v(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : y.createElement(r || "ul", { ...o, ...l }, t);
1311
1313
  }, ct = {
1312
1314
  type: "List",
1313
1315
  description: "A list component",
1314
1316
  label: "List",
1315
- icon: z,
1317
+ icon: j,
1316
1318
  category: "core",
1317
1319
  group: "basic",
1318
1320
  ...p({
@@ -1356,7 +1358,7 @@ const F = (e, ...o) => ({
1356
1358
  type: "ListItem",
1357
1359
  description: "A list item component",
1358
1360
  label: "List Item",
1359
- icon: ae,
1361
+ icon: ie,
1360
1362
  category: "core",
1361
1363
  group: "basic",
1362
1364
  ...p({
@@ -1378,17 +1380,19 @@ const F = (e, ...o) => ({
1378
1380
  canBeNested: (e) => e === "List" || e === "Repeater"
1379
1381
  }, ut = (e) => {
1380
1382
  const { blockProps: o, styles: t, content: l } = e;
1381
- return ye(e.children) ? y.createElement("p", {
1382
- ...t,
1383
+ if (!ye(e.children)) return y.createElement("p", { ...t, ...o }, e.children);
1384
+ const r = B(t, "rte rte-p");
1385
+ return y.createElement("p", {
1386
+ ...r,
1383
1387
  ...o,
1384
1388
  dangerouslySetInnerHTML: { __html: l }
1385
- }) : y.createElement("p", { ...t, ...o }, e.children);
1389
+ });
1386
1390
  }, mt = {
1387
1391
  type: "Paragraph",
1388
1392
  description: "A paragraph component",
1389
1393
  label: "Paragraph",
1390
1394
  category: "core",
1391
- icon: ie,
1395
+ icon: ae,
1392
1396
  group: "typography",
1393
1397
  ...p({
1394
1398
  properties: {
@@ -1397,7 +1401,7 @@ const F = (e, ...o) => ({
1397
1401
  type: "string",
1398
1402
  title: "Content",
1399
1403
  default: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.",
1400
- ui: { "ui:widget": "textarea", "ui:autosize": !0, "ui:rows": 5 }
1404
+ ui: { "ui:widget": "richtext", "ui:autosize": !0, "ui:rows": 5 }
1401
1405
  }
1402
1406
  }
1403
1407
  }),
@@ -1416,7 +1420,7 @@ const F = (e, ...o) => ({
1416
1420
  "Partial Block - ",
1417
1421
  r
1418
1422
  ] }),
1419
- /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
1423
+ /* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
1420
1424
  ]
1421
1425
  }
1422
1426
  ) : y.createElement("span", { ...o }, l);
@@ -1424,7 +1428,7 @@ const F = (e, ...o) => ({
1424
1428
  type: "PartialBlock",
1425
1429
  description: "A partial block component",
1426
1430
  label: "Partial Block",
1427
- icon: $,
1431
+ icon: z,
1428
1432
  category: "core",
1429
1433
  group: "basic",
1430
1434
  hidden: !0,
@@ -1438,7 +1442,7 @@ const F = (e, ...o) => ({
1438
1442
  }
1439
1443
  }
1440
1444
  })
1441
- }, B = {
1445
+ }, S = {
1442
1446
  SMALL: {
1443
1447
  1: "col-span-1",
1444
1448
  2: "col-span-2",
@@ -1482,13 +1486,13 @@ const F = (e, ...o) => ({
1482
1486
  12: "lg:col-span-12"
1483
1487
  }
1484
1488
  }, bt = (e) => {
1485
- const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1489
+ const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
1486
1490
  x(l, "className", ""),
1487
- x(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1488
- n ? x(B, ["MEDIUM", n || r], "") : "",
1489
- i ? x(B, ["LARGE", n || r], "") : ""
1491
+ x(S, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1492
+ n ? x(S, ["MEDIUM", n || r], "") : "",
1493
+ a ? x(S, ["LARGE", n || r], "") : ""
1490
1494
  ].join(" ") };
1491
- 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" }) });
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" }) });
1492
1496
  }, ft = {
1493
1497
  type: "Column",
1494
1498
  description: "A column component",
@@ -1526,14 +1530,14 @@ const F = (e, ...o) => ({
1526
1530
  }
1527
1531
  })
1528
1532
  }, ht = (e) => {
1529
- const { blockProps: o, children: t, styles: l, gutter: r } = e, i = { className: [x(l, "className", ""), " grid grid-cols-12"].join() };
1530
- 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 });
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
1535
  }, xt = {
1532
1536
  type: "Row",
1533
1537
  description: "A row component",
1534
1538
  label: "Row",
1535
1539
  group: "basic",
1536
- icon: z,
1540
+ icon: j,
1537
1541
  blocks: () => [
1538
1542
  { _type: "Row", _id: "row", styles: "#styles:,p-1" },
1539
1543
  { _type: "Column", id: "column", _parent: "row", styles: "#styles:," },
@@ -1560,12 +1564,8 @@ const F = (e, ...o) => ({
1560
1564
  }
1561
1565
  })
1562
1566
  }, kt = (e) => {
1563
- const { blockProps: o, content: t, styles: l } = e, r = F(
1564
- l,
1565
- "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",
1566
- "max-w-full"
1567
- );
1568
- return /* @__PURE__ */ a("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1567
+ const { blockProps: o, content: t, styles: l } = e, r = B(l, "rte");
1568
+ return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1569
1569
  }, wt = {
1570
1570
  type: "RichText",
1571
1571
  description: "A rich text block",
@@ -1606,14 +1606,14 @@ const F = (e, ...o) => ({
1606
1606
  type: "string",
1607
1607
  title: "Content",
1608
1608
  default: "",
1609
- ui: { "ui:widget": "textarea", "ui:autosize": !0, "ui:rows": 3 }
1609
+ ui: { "ui:widget": "richtext", "ui:autosize": !0, "ui:rows": 3 }
1610
1610
  }
1611
1611
  }
1612
1612
  }),
1613
1613
  aiProps: ["content"],
1614
1614
  i18nProps: ["content"],
1615
1615
  canAcceptBlock: () => !0
1616
- }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1616
+ }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1617
1617
  type: "Text",
1618
1618
  description: "A text component with no styling",
1619
1619
  label: "Text",
@@ -1633,7 +1633,7 @@ const F = (e, ...o) => ({
1633
1633
  }),
1634
1634
  aiProps: ["content"],
1635
1635
  i18nProps: ["content"]
1636
- }, S = {
1636
+ }, N = {
1637
1637
  type: "object",
1638
1638
  title: "Controls",
1639
1639
  default: {
@@ -1664,44 +1664,44 @@ const F = (e, ...o) => ({
1664
1664
  default: !1
1665
1665
  }
1666
1666
  }
1667
- }, R = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, A = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Lt = (e, o) => {
1667
+ }, 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
1668
  const t = x(o, "autoplay", !1), l = x(o, "controls", !1), r = x(o, "loop", !1), n = t || x(o, "muted", !0);
1669
- if (R.test(e)) {
1670
- const i = e.match(R);
1671
- if (i) {
1672
- const s = i[4];
1669
+ if (A.test(e)) {
1670
+ const a = e.match(A);
1671
+ if (a) {
1672
+ const s = a[4];
1673
1673
  let c = `https://www.youtube.com/embed/${s}`, m = t ? "autoplay=1" : "";
1674
1674
  return m += r ? `&loop=1&playlist=${s}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
1675
1675
  }
1676
1676
  }
1677
- if (A.test(e)) {
1678
- const i = e.match(A);
1679
- if (i) {
1680
- const s = i[1];
1677
+ if (M.test(e)) {
1678
+ const a = e.match(M);
1679
+ if (a) {
1680
+ const s = a[1];
1681
1681
  let c = "";
1682
1682
  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
1683
  }
1684
1684
  }
1685
1685
  return null;
1686
1686
  }, Bt = (e) => {
1687
- const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s = Lt(o, r);
1688
- return /* @__PURE__ */ g("div", { ...D(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1689
- !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, ...V(l, "className") }),
1690
- i && /* @__PURE__ */ a("div", { ...t, className: "absolute top-0 h-full w-full" })
1687
+ const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a } = e, s = Lt(o, r);
1688
+ 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" })
1691
1691
  ] });
1692
1692
  }, St = (e) => {
1693
- const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: i } = e;
1693
+ const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a } = e;
1694
1694
  let s = n;
1695
1695
  const c = [...x(r, "srcsets", []) || []];
1696
1696
  o && typeof o == "string" && c.push({ url: o, width: "9999" });
1697
1697
  const m = c.sort((b, k) => parseInt(b.width) - parseInt(k.width)).filter((b) => !v(b.url) && !v(b.width));
1698
1698
  m.length === 0 && !s && (s = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
1699
1699
  const h = x(l, "autoplay", !1) || x(l, "muted", !0);
1700
- return (s || !v(m)) && /* @__PURE__ */ a("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1700
+ return (s || !v(m)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1701
1701
  "video",
1702
1702
  {
1703
1703
  ...t,
1704
- ...i,
1704
+ ...a,
1705
1705
  key: JSON.stringify(m),
1706
1706
  controls: x(l, "controls", !1),
1707
1707
  autoPlay: x(l, "autoplay", !1),
@@ -1712,13 +1712,13 @@ const F = (e, ...o) => ({
1712
1712
  m.map((b) => {
1713
1713
  if (!b.url || b.url.length < 4 || isNaN(b.width)) return null;
1714
1714
  const k = `(max-width: ${b.width}px)`;
1715
- return /* @__PURE__ */ a("source", { src: b.url, media: k, type: b.type }, b.url);
1715
+ return /* @__PURE__ */ i("source", { src: b.url, media: k, type: b.type }, b.url);
1716
1716
  }),
1717
1717
  "Your browser does not support the video tag."
1718
1718
  ) });
1719
1719
  }, Nt = (e) => {
1720
1720
  const { videoSource: o } = e;
1721
- return o === "Custom" ? /* @__PURE__ */ a(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ a(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
1721
+ return o === "Custom" ? /* @__PURE__ */ i(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Bt, { ...e }) : /* @__PURE__ */ g("div", { children: [
1722
1722
  "Invalid video source : ",
1723
1723
  o
1724
1724
  ] });
@@ -1761,7 +1761,7 @@ const F = (e, ...o) => ({
1761
1761
  type: "object",
1762
1762
  default: { srcsets: [] }
1763
1763
  },
1764
- controls: { ...S }
1764
+ controls: { ...N }
1765
1765
  }
1766
1766
  }
1767
1767
  },
@@ -1778,7 +1778,7 @@ const F = (e, ...o) => ({
1778
1778
  title: "Youtube Video URL",
1779
1779
  default: ""
1780
1780
  },
1781
- controls: { ...S }
1781
+ controls: { ...N }
1782
1782
  }
1783
1783
  }
1784
1784
  },
@@ -1795,7 +1795,7 @@ const F = (e, ...o) => ({
1795
1795
  title: "Vimeo Video URL",
1796
1796
  default: ""
1797
1797
  },
1798
- controls: { ...S }
1798
+ controls: { ...N }
1799
1799
  }
1800
1800
  }
1801
1801
  }
@@ -1808,49 +1808,57 @@ const F = (e, ...o) => ({
1808
1808
  }),
1809
1809
  i18nProps: ["url"]
1810
1810
  }, Tt = (e) => {
1811
- const { styles: o } = e, t = U("Pagination");
1812
- return /* @__PURE__ */ a("div", { ...o, children: t ? y.createElement(t.component, { ...D(e, ["styles"]), blockProps: {} }) : /* @__PURE__ */ g(N, { children: [
1813
- /* @__PURE__ */ a(
1811
+ 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(
1814
1814
  "button",
1815
1815
  {
1816
1816
  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
1817
  disabled: !0,
1818
- children: /* @__PURE__ */ a(ue, { className: "h-4 w-4" })
1818
+ children: /* @__PURE__ */ i(ue, { className: "h-4 w-4" })
1819
1819
  }
1820
1820
  ),
1821
- /* @__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" }),
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: "2" }),
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: "3" }),
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: "4" }),
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: "5" }),
1826
- /* @__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" }) })
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" }) })
1827
1827
  ] }) });
1828
1828
  }, Rt = (e) => {
1829
- const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: i, inBuilder: s } = e;
1829
+ const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
1830
1830
  let c = o;
1831
- 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: [
1832
- /* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1833
- /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1834
- ] }, h)) : c : /* @__PURE__ */ g(N, { children: [
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: [
1835
1835
  y.createElement(
1836
1836
  t,
1837
1837
  { ...r, ...l },
1838
1838
  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__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1840
- /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
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" })
1841
1841
  ] }, h)) : c
1842
1842
  ),
1843
- i && /* @__PURE__ */ a(
1843
+ a && /* @__PURE__ */ i(
1844
1844
  Tt,
1845
1845
  {
1846
- ...V(e, ["limit", "totalItems", "paginationStrategy", "inBuilder", "draft", "lang"])
1846
+ ...F(e, [
1847
+ "limit",
1848
+ "totalItems",
1849
+ "paginationStrategy",
1850
+ "inBuilder",
1851
+ "draft",
1852
+ "lang",
1853
+ "paginationStyles"
1854
+ ])
1847
1855
  }
1848
1856
  )
1849
1857
  ] });
1850
1858
  }, At = {
1851
1859
  type: "Repeater",
1852
1860
  label: "Repeater",
1853
- icon: j,
1861
+ icon: D,
1854
1862
  group: "basic",
1855
1863
  dataProviderMode: "live",
1856
1864
  dataProviderDependencies: ["filter", "sort", "limit", "repeaterItems"],
@@ -1962,12 +1970,12 @@ const F = (e, ...o) => ({
1962
1970
  return !e && r ? y.createElement(
1963
1971
  n,
1964
1972
  { ...o, ...t },
1965
- /* @__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" })
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" })
1966
1974
  ) : y.createElement(n, { ...o, ...t }, e);
1967
1975
  }, Et = {
1968
1976
  type: "RepeaterItem",
1969
1977
  label: "Repeater Item",
1970
- icon: j,
1978
+ icon: D,
1971
1979
  hidden: !0,
1972
1980
  group: "basic",
1973
1981
  ...p({
@@ -1997,7 +2005,7 @@ const F = (e, ...o) => ({
1997
2005
  canMove: () => !1,
1998
2006
  canDuplicate: () => !1
1999
2007
  }, qt = () => {
2000
- 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(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);
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);
2001
2009
  };
2002
2010
  export {
2003
2011
  qt as loadWebBlocks