@chaibuilder/sdk 2.2.22 → 2.2.24

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