@chaibuilder/sdk 2.3.8 → 2.4.0

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,18 +1,18 @@
1
- import { registerChaiBlockSchema as d, StylesProp as u, registerChaiBlock as p, stylesProp as T, closestBlockProp as V } from "@chaibuilder/runtime";
2
- import { jsx as a, jsxs as b, Fragment as M } from "react/jsx-runtime";
3
- import { c as P, g as C } from "./common-functions-BGzDsf1z.js";
4
- import * as g from "react";
1
+ import { registerChaiBlockSchema as d, StylesProp as u, registerChaiBlock as p, stylesProp as _, closestBlockProp as D } from "@chaibuilder/runtime";
2
+ import { jsx as a, jsxs as b, Fragment as A } from "react/jsx-runtime";
3
+ import { c as P, g as L } from "./common-functions-BGzDsf1z.js";
4
+ import * as y from "react";
5
5
  import { createElement as w } from "react";
6
- import { ButtonIcon as E, CopyIcon as j, CodeIcon as U, DividerHorizontalIcon as q, CheckboxIcon as F, InputIcon as $, LetterCaseToggleIcon as O, RadiobuttonIcon as G, DropdownMenuIcon as Y, HeadingIcon as W, TableIcon as X, BorderTopIcon as J, BorderAllIcon as Q, ViewHorizontalIcon as Z, DragHandleHorizontalIcon as K, SketchLogoIcon as ee, ImageIcon as te, Link1Icon as oe, RowsIcon as le, ColumnsIcon as re, TextIcon as ne, CursorTextIcon as ie, SpaceBetweenVerticallyIcon as ae, VideoIcon as se, LoopIcon as H } from "@radix-ui/react-icons";
7
- import { isEmpty as v, get as h, map as N, isNull as ce, omit as pe, pick as de } from "lodash-es";
8
- import { FileCode as ue, GroupIcon as me, GlobeIcon as z, Columns as ye, Rows as ge } from "lucide-react";
9
- const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div", { className: P("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, fe = (e) => {
10
- const { blockProps: t, inBuilder: o, backgroundImage: l, children: r, tag: n = "div", styles: i } = e;
6
+ import { ButtonIcon as M, CopyIcon as V, CodeIcon as j, DividerHorizontalIcon as U, CheckboxIcon as q, InputIcon as E, LetterCaseToggleIcon as F, RadiobuttonIcon as O, DropdownMenuIcon as G, HeadingIcon as Y, TableIcon as W, BorderTopIcon as X, BorderAllIcon as J, ViewHorizontalIcon as Q, DragHandleHorizontalIcon as Z, SketchLogoIcon as K, ImageIcon as ee, Link1Icon as te, RowsIcon as oe, ColumnsIcon as le, TextIcon as re, CursorTextIcon as ne, SpaceBetweenVerticallyIcon as ie, VideoIcon as ae, LoopIcon as $ } from "@radix-ui/react-icons";
7
+ import { isEmpty as C, get as h, map as T, isNull as se, omit as ce, pick as pe } from "lodash-es";
8
+ import { FileCode as de, GroupIcon as ue, GlobeIcon as H, Columns as me, Rows as ye } from "lucide-react";
9
+ const v = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div", { className: P("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) => {
10
+ const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: i } = e;
11
11
  let s = r;
12
- r || (s = /* @__PURE__ */ a(L, { inBuilder: o }));
12
+ r || (s = /* @__PURE__ */ a(v, { inBuilder: t }));
13
13
  let c = {};
14
- return l && (c = { backgroundImage: `url(${l})` }), g.createElement(n, { ...t, ...i, style: c }, s);
15
- }, be = {
14
+ return l && (c = { backgroundImage: `url(${l})` }), y.createElement(n, { ...o, ...i, style: c }, s);
15
+ }, fe = {
16
16
  type: "Box",
17
17
  description: "Similar to a div or section elements in HTML",
18
18
  label: "Box",
@@ -54,13 +54,13 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
54
54
  }
55
55
  }),
56
56
  canAcceptBlock: () => !0
57
- }, he = (e) => {
58
- const { blockProps: t, iconSize: o, icon: l, content: r, styles: n, children: i, iconPos: s, link: c, inBuilder: m } = e, k = l, y = i || /* @__PURE__ */ b(M, { children: [
57
+ }, be = (e) => {
58
+ const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: i, iconPos: s, link: c, inBuilder: m } = e, k = l, g = i || /* @__PURE__ */ b(A, { children: [
59
59
  /* @__PURE__ */ a("span", { "data-ai-key": "content", children: r }),
60
60
  k && /* @__PURE__ */ a(
61
61
  "div",
62
62
  {
63
- style: { width: o + "px" },
63
+ style: { width: t + "px" },
64
64
  className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
65
65
  dangerouslySetInnerHTML: { __html: k }
66
66
  }
@@ -68,20 +68,20 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
68
68
  ] }), x = w(
69
69
  "button",
70
70
  {
71
- ...t,
71
+ ...o,
72
72
  ...n,
73
73
  type: "button",
74
74
  "aria-label": r
75
75
  },
76
- y
76
+ g
77
77
  );
78
- return v(h(c, "href")) ? x : m ? /* @__PURE__ */ a("span", { children: x }) : /* @__PURE__ */ a("a", { "aria-label": r, href: h(c, "href") || "/", target: h(c, "target", "_self"), children: x });
79
- }, ke = {
78
+ return C(h(c, "href")) ? x : m ? /* @__PURE__ */ a("span", { children: x }) : /* @__PURE__ */ a("a", { "aria-label": r, href: h(c, "href") || "/", target: h(c, "target", "_self"), children: x });
79
+ }, he = {
80
80
  type: "Button",
81
81
  description: "similar to a button element in HTML",
82
82
  label: "Button",
83
83
  category: "core",
84
- icon: E,
84
+ icon: M,
85
85
  group: "basic",
86
86
  ...d({
87
87
  properties: {
@@ -133,27 +133,27 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
133
133
  }),
134
134
  i18nProps: ["content"],
135
135
  aiProps: ["content"]
136
- }, xe = (e) => {
137
- const { blockProps: t, iconSize: o, icon: l, content: r, styles: n } = e, i = l, s = /* @__PURE__ */ b(M, { children: [
136
+ }, ke = (e) => {
137
+ const { blockProps: o, iconSize: t, icon: l, content: r, styles: n } = e, i = l, s = /* @__PURE__ */ b(A, { children: [
138
138
  /* @__PURE__ */ a("span", { "data-ai-key": "content", children: r }),
139
- i && /* @__PURE__ */ a("div", { style: { width: o + "px" }, dangerouslySetInnerHTML: { __html: i } })
139
+ i && /* @__PURE__ */ a("div", { style: { width: t + "px" }, dangerouslySetInnerHTML: { __html: i } })
140
140
  ] });
141
141
  return w(
142
142
  "button",
143
143
  {
144
- ...t,
144
+ ...o,
145
145
  ...n,
146
146
  type: "button",
147
147
  "aria-label": r
148
148
  },
149
149
  s
150
150
  );
151
- }, we = {
151
+ }, xe = {
152
152
  type: "CopyButton",
153
153
  description: "A copy button component",
154
154
  label: "Copy Button",
155
155
  category: "core",
156
- icon: j,
156
+ icon: V,
157
157
  group: "basic",
158
158
  ...d({
159
159
  properties: {
@@ -178,25 +178,25 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
178
178
  }),
179
179
  i18nProps: ["content"],
180
180
  aiProps: ["content"]
181
- }, Ce = (e) => {
182
- const { blockProps: t, styles: o, htmlCode: l, inBuilder: r } = e;
181
+ }, we = (e) => {
182
+ const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
183
183
  return r ? /* @__PURE__ */ b("div", { className: "relative", children: [
184
- r ? /* @__PURE__ */ a("div", { ...t, ...o, className: "absolute z-20 h-full w-full" }) : null,
185
- g.createElement("div", {
186
- ...o,
184
+ r ? /* @__PURE__ */ a("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
185
+ y.createElement("div", {
186
+ ...t,
187
187
  dangerouslySetInnerHTML: { __html: l.replace(/<script.*?>.*?<\/script>/g, "") }
188
188
  })
189
- ] }) : g.createElement("div", {
190
- ...t,
189
+ ] }) : y.createElement("div", {
191
190
  ...o,
191
+ ...t,
192
192
  dangerouslySetInnerHTML: { __html: l }
193
193
  });
194
- }, ve = {
194
+ }, Ce = {
195
195
  type: "CustomHTML",
196
196
  description: "similar to a div or section elements in HTML",
197
197
  label: "Custom HTML",
198
198
  category: "core",
199
- icon: U,
199
+ icon: j,
200
200
  group: "advanced",
201
201
  ...d({
202
202
  properties: {
@@ -209,15 +209,15 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
209
209
  }
210
210
  }),
211
211
  i18nProps: ["htmlCode"]
212
- }, Le = (e) => {
213
- const { scripts: t, inBuilder: o, blockProps: l } = e;
214
- return o ? /* @__PURE__ */ a("div", { ...l, children: /* @__PURE__ */ a("div", { className: P("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: t } });
215
- }, Be = {
212
+ }, ve = (e) => {
213
+ const { scripts: o, inBuilder: t, blockProps: l } = e;
214
+ return t ? /* @__PURE__ */ a("div", { ...l, children: /* @__PURE__ */ a("div", { className: P("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 } });
215
+ }, Le = {
216
216
  type: "CustomScript",
217
217
  description: "similar to a script element in HTML",
218
218
  label: "Custom Script",
219
219
  category: "core",
220
- icon: ue,
220
+ icon: de,
221
221
  group: "advanced",
222
222
  ...d({
223
223
  properties: {
@@ -230,26 +230,26 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
230
230
  }
231
231
  }
232
232
  })
233
- }, Ie = (e) => {
234
- const { blockProps: t, styles: o } = e;
235
- return w("hr", { ...o, ...t });
233
+ }, Be = (e) => {
234
+ const { blockProps: o, styles: t } = e;
235
+ return w("hr", { ...t, ...o });
236
236
  }, Pe = {
237
237
  type: "Divider",
238
238
  description: "A horizontal line component",
239
239
  label: "Divider",
240
240
  category: "core",
241
- icon: q,
241
+ icon: U,
242
242
  group: "basic",
243
243
  ...d({
244
244
  properties: {
245
245
  styles: u("bg-gray-900 h-0.5 py-2 my-1")
246
246
  }
247
247
  })
248
- }, Se = (e) => {
249
- const { blockProps: t, styles: o, backgroundImage: l } = e;
248
+ }, Ie = (e) => {
249
+ const { blockProps: o, styles: t, backgroundImage: l } = e;
250
250
  let r = {};
251
- return l && (r = { backgroundImage: `url(${l})` }), g.createElement("div", { ...t, ...o, style: r });
252
- }, _e = {
251
+ return l && (r = { backgroundImage: `url(${l})` }), y.createElement("div", { ...o, ...t, style: r });
252
+ }, Se = {
253
253
  type: "EmptyBox",
254
254
  description: "A box component with no children",
255
255
  label: "Empty Box",
@@ -266,39 +266,28 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
266
266
  }
267
267
  }
268
268
  })
269
- }, Te = (e) => {
270
- const { blockProps: t, fieldName: o, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e, m = C();
271
- return c ? /* @__PURE__ */ b("div", { ...r, ...t, children: [
272
- /* @__PURE__ */ a(
273
- "input",
274
- {
275
- ...n,
276
- name: o,
277
- id: m,
278
- type: "checkbox",
279
- required: i,
280
- defaultChecked: s
281
- }
282
- ),
283
- l && /* @__PURE__ */ a("label", { htmlFor: m, children: l })
269
+ }, _e = (e) => {
270
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
271
+ return c ? /* @__PURE__ */ b("div", { ...r, ...o, children: [
272
+ /* @__PURE__ */ a("input", { ...n, name: t, type: "checkbox", required: i, defaultChecked: s }),
273
+ l && /* @__PURE__ */ a("label", { htmlFor: t, children: l })
284
274
  ] }) : /* @__PURE__ */ a(
285
275
  "input",
286
276
  {
287
- id: m,
288
- ...t,
277
+ name: t,
278
+ ...o,
289
279
  ...n,
290
280
  ...r,
291
281
  type: "checkbox",
292
282
  required: i,
293
- name: o,
294
283
  defaultChecked: s
295
284
  }
296
285
  );
297
- }, Ne = {
286
+ }, Te = {
298
287
  type: "Checkbox",
299
288
  label: "web_blocks.checkbox",
300
289
  category: "core",
301
- icon: F,
290
+ icon: q,
302
291
  group: "form",
303
292
  ...d({
304
293
  properties: {
@@ -333,10 +322,10 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
333
322
  }),
334
323
  aiProps: ["label"],
335
324
  i18nProps: ["label"]
336
- }, Re = (e) => {
337
- const { children: t, blockProps: o, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: s } = e;
338
- let c = t;
339
- return t || (c = /* @__PURE__ */ a(L, { inBuilder: s })), /* @__PURE__ */ b(
325
+ }, Ne = (e) => {
326
+ const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: i, inBuilder: s } = e;
327
+ let c = o;
328
+ return o || (c = /* @__PURE__ */ a(v, { inBuilder: s })), /* @__PURE__ */ b(
340
329
  "form",
341
330
  {
342
331
  ...{
@@ -347,7 +336,7 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
347
336
  "data-success": r,
348
337
  method: "post",
349
338
  action: n,
350
- ...o,
339
+ ...t,
351
340
  ...i,
352
341
  children: [
353
342
  /* @__PURE__ */ a("div", { ...{
@@ -358,11 +347,11 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
358
347
  ]
359
348
  }
360
349
  );
361
- }, Ae = {
350
+ }, Re = {
362
351
  type: "Form",
363
352
  label: "Form",
364
353
  category: "core",
365
- icon: me,
354
+ icon: ue,
366
355
  group: "form",
367
356
  blocks: () => [
368
357
  { _type: "Form", _id: "form", styles: "#styles:p-1 space-y-2," },
@@ -399,9 +388,9 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
399
388
  i18nProps: ["errorMessage", "successMessage"],
400
389
  aiProps: ["errorMessage", "successMessage"],
401
390
  canAcceptBlock: () => !0
402
- }, Me = (e) => {
403
- const { blockProps: t, inBuilder: o, label: l, styles: r, icon: n, iconSize: i, iconPos: s } = e, c = C();
404
- return /* @__PURE__ */ b("button", { id: c, ...r, ...t || {}, type: o ? "button" : "submit", "aria-label": l, children: [
391
+ }, Ae = (e) => {
392
+ const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: i, iconPos: s } = e;
393
+ return /* @__PURE__ */ b("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
405
394
  l,
406
395
  n && /* @__PURE__ */ a(
407
396
  "div",
@@ -412,11 +401,11 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
412
401
  }
413
402
  )
414
403
  ] });
415
- }, Ee = {
404
+ }, Me = {
416
405
  type: "FormButton",
417
406
  label: "Submit Button",
418
407
  category: "core",
419
- icon: E,
408
+ icon: M,
420
409
  group: "form",
421
410
  ...d({
422
411
  properties: {
@@ -451,8 +440,8 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
451
440
  }),
452
441
  i18nProps: ["label"],
453
442
  aiProps: ["label"]
454
- }, $e = (e) => {
455
- const t = { type: "text", autocomplete: "on" };
443
+ }, Ee = (e) => {
444
+ const o = { type: "text", autocomplete: "on" };
456
445
  return e ? ["text", "password", "number", "hidden", "range", "color", "date", "time"].includes(e) ? { type: e, autocomplete: "on" } : e === "email" ? { type: "email", autocomplete: "email" } : e === "tel" ? { type: "tel", autocomplete: "tel" } : e === "url" ? { type: "url", autocomplete: "url" } : {
457
446
  // Special cases
458
447
  off: { type: "text", autocomplete: "off" },
@@ -516,44 +505,53 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
516
505
  "organization-title": { type: "text", autocomplete: "organization-title" },
517
506
  organization: { type: "text", autocomplete: "organization" },
518
507
  language: { type: "text", autocomplete: "language" }
519
- }[e] || t : t;
520
- }, He = (e) => {
521
- const { blockProps: t, fieldName: o, label: l, placeholder: r, styles: n, inputStyles: i, showLabel: s, required: c, inputType: m, defaultValue: k } = e, y = C(), { type: x, autocomplete: B } = $e(m);
522
- return s ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
523
- s && /* @__PURE__ */ a("label", { htmlFor: y, children: l }),
508
+ }[e] || o : o;
509
+ }, $e = (e) => {
510
+ const {
511
+ blockProps: o,
512
+ fieldName: t,
513
+ label: l,
514
+ placeholder: r,
515
+ styles: n,
516
+ inputStyles: i,
517
+ showLabel: s,
518
+ required: c,
519
+ inputType: m,
520
+ defaultValue: k
521
+ } = e, { type: g, autocomplete: x } = Ee(m);
522
+ return s ? /* @__PURE__ */ b("div", { ...n, ...o, children: [
523
+ s && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
524
524
  /* @__PURE__ */ a(
525
525
  "input",
526
526
  {
527
- name: o,
527
+ name: t,
528
528
  defaultValue: k,
529
529
  ...i,
530
- id: y,
531
- type: x,
530
+ type: g,
532
531
  placeholder: r,
533
532
  required: c,
534
- autoComplete: B
533
+ autoComplete: x
535
534
  }
536
535
  )
537
536
  ] }) : /* @__PURE__ */ a(
538
537
  "input",
539
538
  {
540
- id: y,
541
- name: o,
542
- ...t,
539
+ name: t,
540
+ ...o,
543
541
  ...i,
544
542
  ...n,
545
- type: x,
543
+ type: g,
546
544
  placeholder: r,
547
545
  required: c,
548
- autoComplete: B,
546
+ autoComplete: x,
549
547
  defaultValue: k
550
548
  }
551
549
  );
552
- }, ze = {
550
+ }, He = {
553
551
  type: "Input",
554
552
  label: "web_blocks.input",
555
553
  category: "core",
556
- icon: $,
554
+ icon: E,
557
555
  group: "form",
558
556
  ...d({
559
557
  properties: {
@@ -662,17 +660,17 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
662
660
  }),
663
661
  aiProps: ["label", "placeholder"],
664
662
  i18nProps: ["label", "placeholder"]
665
- }, De = (e) => {
666
- const { blockProps: t, content: o, styles: l, children: r } = e, n = { ...l, ...t };
667
- return r ? g.createElement("label", n, r) : g.createElement("label", {
663
+ }, ze = (e) => {
664
+ const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
665
+ return r ? y.createElement("label", n, r) : y.createElement("label", {
668
666
  ...n,
669
- dangerouslySetInnerHTML: { __html: o }
667
+ dangerouslySetInnerHTML: { __html: t }
670
668
  });
671
- }, Ve = {
669
+ }, De = {
672
670
  type: "Label",
673
671
  label: "Label",
674
672
  category: "core",
675
- icon: O,
673
+ icon: F,
676
674
  group: "form",
677
675
  ...d({
678
676
  properties: {
@@ -686,29 +684,28 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
686
684
  }),
687
685
  aiProps: ["content"],
688
686
  i18nProps: ["content"]
689
- }, je = (e) => {
690
- const { blockProps: t, fieldName: o, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e, m = C();
691
- return c ? /* @__PURE__ */ b("div", { ...r, ...t, children: [
692
- /* @__PURE__ */ a("input", { ...n, name: o, id: m, type: "radio", required: i, defaultChecked: s }),
693
- l && /* @__PURE__ */ a("label", { htmlFor: m, children: l })
687
+ }, Ve = (e) => {
688
+ const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: i, checked: s, showLabel: c = !0 } = e;
689
+ return c ? /* @__PURE__ */ b("div", { ...r, ...o, children: [
690
+ /* @__PURE__ */ a("input", { ...n, name: t, type: "radio", required: i, defaultChecked: s }),
691
+ l && /* @__PURE__ */ a("label", { htmlFor: t, children: l })
694
692
  ] }) : /* @__PURE__ */ a(
695
693
  "input",
696
694
  {
697
- id: m,
698
- ...t,
695
+ name: t,
696
+ ...o,
699
697
  ...n,
700
698
  ...r,
701
699
  type: "radio",
702
700
  required: i,
703
- checked: s,
704
- name: o
701
+ checked: s
705
702
  }
706
703
  );
707
- }, Ue = {
704
+ }, je = {
708
705
  type: "Radio",
709
706
  label: "web_blocks.radio",
710
707
  category: "core",
711
- icon: G,
708
+ icon: O,
712
709
  group: "form",
713
710
  ...d({
714
711
  properties: {
@@ -743,10 +740,10 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
743
740
  }),
744
741
  aiProps: ["label"],
745
742
  i18nProps: ["label"]
746
- }, qe = (e) => {
743
+ }, Ue = (e) => {
747
744
  const {
748
- blockProps: t,
749
- fieldName: o,
745
+ blockProps: o,
746
+ fieldName: t,
750
747
  label: l,
751
748
  placeholder: r,
752
749
  styles: n,
@@ -755,46 +752,44 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
755
752
  showLabel: c,
756
753
  _multiple: m,
757
754
  options: k,
758
- defaultValue: y
759
- } = e, x = C(), B = m && y ? y.split(",").map((f) => f.trim()) : y || "";
760
- return c ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
761
- c && /* @__PURE__ */ a("label", { htmlFor: x, children: l }),
755
+ defaultValue: g
756
+ } = e, x = m && g ? g.split(",").map((f) => f.trim()) : g || "";
757
+ return c ? /* @__PURE__ */ b("div", { ...n, ...o, children: [
758
+ c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
762
759
  /* @__PURE__ */ b(
763
760
  "select",
764
761
  {
765
762
  ...i,
766
- id: x,
767
763
  required: s,
768
764
  multiple: m,
769
- name: o,
770
- defaultValue: B,
765
+ name: t,
766
+ defaultValue: x,
771
767
  children: [
772
768
  /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
773
- N(k, (f) => /* @__PURE__ */ a("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
769
+ T(k, (f) => /* @__PURE__ */ a("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
774
770
  ]
775
771
  }
776
772
  )
777
773
  ] }) : /* @__PURE__ */ b(
778
774
  "select",
779
775
  {
780
- id: x,
781
776
  ...n,
782
- ...t,
777
+ ...o,
783
778
  required: s,
784
779
  multiple: m,
785
- name: o,
786
- defaultValue: B,
780
+ name: t,
781
+ defaultValue: x,
787
782
  children: [
788
783
  /* @__PURE__ */ a("option", { value: "", disabled: !0, hidden: !0, children: r }),
789
- N(k, (f) => /* @__PURE__ */ a("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
784
+ T(k, (f) => /* @__PURE__ */ a("option", { value: f == null ? void 0 : f.value, children: f == null ? void 0 : f.label }, f == null ? void 0 : f.value))
790
785
  ]
791
786
  }
792
787
  );
793
- }, Fe = {
788
+ }, qe = {
794
789
  type: "Select",
795
790
  label: "web_blocks.select",
796
791
  category: "core",
797
- icon: Y,
792
+ icon: G,
798
793
  group: "form",
799
794
  ...d({
800
795
  properties: {
@@ -859,16 +854,15 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
859
854
  }),
860
855
  aiProps: ["label", "placeholder"],
861
856
  i18nProps: ["label", "placeholder"]
862
- }, Oe = (e) => {
863
- const { blockProps: t, fieldName: o, label: l, placeholder: r, styles: n, inputStyles: i, rows: s, showLabel: c, required: m, defaultValue: k } = e, y = C();
864
- return c ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
865
- c && /* @__PURE__ */ a("label", { htmlFor: y, children: l }),
857
+ }, Fe = (e) => {
858
+ const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: i, rows: s, showLabel: c, required: m, defaultValue: k } = e;
859
+ return c ? /* @__PURE__ */ b("div", { ...n, ...o, children: [
860
+ c && /* @__PURE__ */ a("label", { htmlFor: t, children: l }),
866
861
  /* @__PURE__ */ a(
867
862
  "textarea",
868
863
  {
869
- name: o,
864
+ name: t,
870
865
  ...i,
871
- id: y,
872
866
  placeholder: r,
873
867
  rows: s,
874
868
  required: m,
@@ -878,9 +872,8 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
878
872
  ] }) : /* @__PURE__ */ a(
879
873
  "textarea",
880
874
  {
881
- id: y,
882
- name: o,
883
- ...t,
875
+ name: t,
876
+ ...o,
884
877
  ...i,
885
878
  ...n,
886
879
  placeholder: r,
@@ -889,11 +882,11 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
889
882
  defaultValue: k
890
883
  }
891
884
  );
892
- }, Ge = {
885
+ }, Oe = {
893
886
  type: "TextArea",
894
887
  label: "web_blocks.textarea",
895
888
  category: "core",
896
- icon: $,
889
+ icon: E,
897
890
  group: "form",
898
891
  ...d({
899
892
  properties: {
@@ -940,13 +933,13 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
940
933
  }),
941
934
  aiProps: ["label", "placeholder"],
942
935
  i18nProps: ["label", "placeholder"]
943
- }, Ye = (e) => {
944
- const { blockProps: t, inBuilder: o, children: l, globalBlock: r } = e;
945
- return o && !r ? /* @__PURE__ */ b(
936
+ }, Ge = (e) => {
937
+ const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
938
+ return t && !r ? /* @__PURE__ */ b(
946
939
  "div",
947
940
  {
948
941
  className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
949
- ...t,
942
+ ...o,
950
943
  children: [
951
944
  /* @__PURE__ */ b("h1", { children: [
952
945
  "Global Block - ",
@@ -955,12 +948,12 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
955
948
  /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
956
949
  ]
957
950
  }
958
- ) : g.createElement("span", { ...t }, l);
959
- }, We = {
951
+ ) : y.createElement("span", { ...o }, l);
952
+ }, Ye = {
960
953
  type: "GlobalBlock",
961
954
  description: "A global block component",
962
955
  label: "Global Block",
963
- icon: z,
956
+ icon: H,
964
957
  category: "core",
965
958
  group: "basic",
966
959
  hidden: !0,
@@ -974,19 +967,19 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
974
967
  }
975
968
  }
976
969
  })
977
- }, Xe = (e) => {
978
- const { blockProps: t, styles: o, content: l, tag: r = "h1", children: n = null } = e;
979
- return n ? g.createElement(r, { ...o, ...t }, n) : g.createElement(r, {
980
- ...o,
970
+ }, We = (e) => {
971
+ const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
972
+ return n ? y.createElement(r, { ...t, ...o }, n) : y.createElement(r, {
981
973
  ...t,
974
+ ...o,
982
975
  dangerouslySetInnerHTML: { __html: l }
983
976
  });
984
- }, Je = {
977
+ }, Xe = {
985
978
  type: "Heading",
986
979
  description: "A heading component similar to h1, h2, h3, h4, h5, h6 elements in HTML",
987
980
  label: "Heading",
988
981
  category: "core",
989
- icon: W,
982
+ icon: Y,
990
983
  group: "typography",
991
984
  ...d({
992
985
  properties: {
@@ -1008,10 +1001,10 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
1008
1001
  aiProps: ["content"],
1009
1002
  i18nProps: ["content"],
1010
1003
  canAcceptBlock: (e) => e === "Span" || e === "Text"
1011
- }, Qe = (e) => {
1012
- const { blockProps: t, styles: o } = e;
1013
- return w("br", { ...t, ...o });
1014
- }, Ze = {
1004
+ }, Je = (e) => {
1005
+ const { blockProps: o, styles: t } = e;
1006
+ return w("br", { ...o, ...t });
1007
+ }, Qe = {
1015
1008
  type: "LineBreak",
1016
1009
  label: "Line Break",
1017
1010
  category: "core",
@@ -1026,89 +1019,89 @@ const L = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ a("div",
1026
1019
  canDelete: () => !1,
1027
1020
  canMove: () => !1,
1028
1021
  canDuplicate: () => !1
1022
+ }, Ze = (e) => {
1023
+ const { blockProps: o, children: t, styles: l } = e;
1024
+ return t ? w("table", { ...o, ...l }, t) : /* @__PURE__ */ a(v, {});
1029
1025
  }, Ke = (e) => {
1030
- const { blockProps: t, children: o, styles: l } = e;
1031
- return o ? w("table", { ...t, ...l }, o) : /* @__PURE__ */ a(L, {});
1026
+ const { blockProps: o, children: t, styles: l } = e;
1027
+ return t ? w("thead", { ...o, ...l }, t) : /* @__PURE__ */ a(v, {});
1032
1028
  }, et = (e) => {
1033
- const { blockProps: t, children: o, styles: l } = e;
1034
- return o ? w("thead", { ...t, ...l }, o) : /* @__PURE__ */ a(L, {});
1029
+ const { blockProps: o, children: t, styles: l } = e;
1030
+ return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ a(v, {});
1035
1031
  }, tt = (e) => {
1036
- const { blockProps: t, children: o, styles: l } = e;
1037
- return o ? w("tbody", { ...t, ...l }, o) : /* @__PURE__ */ a(L, {});
1032
+ const { blockProps: o, children: t, styles: l } = e;
1033
+ return t ? w("tr", { ...o, ...l }, t) : /* @__PURE__ */ a(v, {});
1038
1034
  }, ot = (e) => {
1039
- const { blockProps: t, children: o, styles: l } = e;
1040
- return o ? w("tr", { ...t, ...l }, o) : /* @__PURE__ */ a(L, {});
1041
- }, lt = (e) => {
1042
- const { blockProps: t, children: o, content: l, styles: r } = e;
1043
- return !o && v(l) ? /* @__PURE__ */ a(L, {}) : o ? w("td", { ...t, ...r }, o) : w("td", {
1044
- ...t,
1035
+ const { blockProps: o, children: t, content: l, styles: r } = e;
1036
+ return !t && C(l) ? /* @__PURE__ */ a(v, {}) : t ? w("td", { ...o, ...r }, t) : w("td", {
1037
+ ...o,
1045
1038
  ...r,
1046
1039
  dangerouslySetInnerHTML: { __html: l }
1047
1040
  });
1048
1041
  };
1049
- p(Ke, {
1042
+ p(Ze, {
1050
1043
  type: "Table",
1051
1044
  label: "Table",
1052
1045
  category: "core",
1053
1046
  group: "table",
1054
1047
  hidden: !0,
1055
- icon: X,
1048
+ icon: W,
1056
1049
  ...d({
1057
1050
  properties: {
1058
1051
  styles: u("")
1059
1052
  }
1060
1053
  }),
1061
- blocks: I("Table")
1054
+ blocks: B("Table")
1062
1055
  });
1063
- p(et, {
1056
+ p(Ke, {
1064
1057
  type: "TableHead",
1065
1058
  label: "Table Head",
1066
1059
  category: "core",
1067
1060
  group: "table",
1068
1061
  hidden: !0,
1069
- icon: J,
1062
+ icon: X,
1070
1063
  ...d({
1071
1064
  properties: {
1072
1065
  styles: u("")
1073
1066
  }
1074
1067
  }),
1075
- blocks: I("TableHead")
1068
+ blocks: B("TableHead")
1076
1069
  });
1077
- p(tt, {
1070
+ p(et, {
1078
1071
  type: "TableBody",
1079
1072
  label: "Table Body",
1080
1073
  category: "core",
1081
1074
  group: "table",
1082
1075
  hidden: !0,
1083
- icon: Q,
1076
+ icon: J,
1084
1077
  ...d({
1085
1078
  properties: {
1086
1079
  styles: u("")
1087
1080
  }
1088
1081
  }),
1089
- blocks: I("TableBody")
1082
+ blocks: B("TableBody")
1090
1083
  });
1091
- p(ot, {
1084
+ p(tt, {
1092
1085
  type: "TableRow",
1093
1086
  label: "Table Row",
1094
1087
  category: "core",
1095
1088
  group: "table",
1096
1089
  hidden: !0,
1097
- icon: Z,
1090
+ icon: Q,
1098
1091
  ...d({
1099
1092
  properties: {
1100
1093
  styles: u("")
1101
1094
  }
1102
1095
  }),
1103
- blocks: I("TableRow")
1096
+ blocks: B("TableRow")
1104
1097
  });
1105
- p(lt, {
1098
+ p(ot, {
1106
1099
  type: "TableCell",
1107
1100
  label: "Table Cell",
1108
1101
  category: "core",
1109
1102
  group: "table",
1110
1103
  hidden: !0,
1111
- icon: K,
1104
+ icon: Z,
1112
1105
  ...d({
1113
1106
  properties: {
1114
1107
  styles: u(""),
@@ -1120,41 +1113,41 @@ p(lt, {
1120
1113
  }
1121
1114
  }
1122
1115
  }),
1123
- blocks: I("TableCell"),
1116
+ blocks: B("TableCell"),
1124
1117
  i18nProps: ["content"],
1125
1118
  aiProps: ["content"]
1126
1119
  });
1127
- function I(e) {
1128
- const t = (n, i) => ({
1129
- _id: C(),
1120
+ function B(e) {
1121
+ const o = (n, i) => ({
1122
+ _id: L(),
1130
1123
  _parent: n,
1131
1124
  _type: "TableCell",
1132
1125
  styles: "#styles:,",
1133
1126
  content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
1134
- }), o = (n) => {
1135
- const i = C(), s = {
1127
+ }), t = (n) => {
1128
+ const i = L(), s = {
1136
1129
  _type: "TableRow",
1137
1130
  _id: i,
1138
1131
  styles: "#styles:,border-b"
1139
1132
  };
1140
- return n && (s._parent = n), [s, t(i, "1"), t(i, "2"), t(i, "3")];
1133
+ return n && (s._parent = n), [s, o(i, "1"), o(i, "2"), o(i, "3")];
1141
1134
  }, l = (n) => {
1142
- const i = C(), s = {
1135
+ const i = L(), s = {
1143
1136
  _id: i,
1144
1137
  _type: "TableHead",
1145
1138
  styles: "#styles:,font-medium"
1146
1139
  };
1147
- return n && (s._parent = n), [s, ...o(i)];
1140
+ return n && (s._parent = n), [s, ...t(i)];
1148
1141
  }, r = (n) => {
1149
- const i = C(), s = {
1142
+ const i = L(), s = {
1150
1143
  _id: i,
1151
1144
  _type: "TableBody",
1152
1145
  styles: "#styles:,"
1153
1146
  };
1154
- return n && (s._parent = n), [s, ...o(i), ...o(i)];
1147
+ return n && (s._parent = n), [s, ...t(i), ...t(i)];
1155
1148
  };
1156
1149
  if (e === "Table") {
1157
- const n = C();
1150
+ const n = L();
1158
1151
  return [
1159
1152
  {
1160
1153
  _id: n,
@@ -1165,18 +1158,18 @@ function I(e) {
1165
1158
  ...r(n)
1166
1159
  ];
1167
1160
  }
1168
- return e === "TableRow" ? o() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1161
+ return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1169
1162
  }
1170
- const D = (e, ...t) => ({
1163
+ const z = (e, ...o) => ({
1171
1164
  ...e,
1172
- className: P(e.className, ...t)
1173
- }), rt = (e) => {
1174
- const { blockProps: t, icon: o, styles: l, width: r, inBuilder: n, height: i } = e, s = D(l, "");
1175
- if (v(o))
1176
- return /* @__PURE__ */ a(L, { inBuilder: n, className: "h-8 w-14" });
1177
- const c = o.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1178
- return g.createElement("span", {
1179
- ...t,
1165
+ className: P(e.className, ...o)
1166
+ }), lt = (e) => {
1167
+ const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: i } = e, s = z(l, "");
1168
+ if (C(t))
1169
+ return /* @__PURE__ */ a(v, { inBuilder: n, className: "h-8 w-14" });
1170
+ const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
1171
+ return y.createElement("span", {
1172
+ ...o,
1180
1173
  ...s,
1181
1174
  style: {
1182
1175
  width: r ? `${r}px` : "auto",
@@ -1184,11 +1177,11 @@ const D = (e, ...t) => ({
1184
1177
  },
1185
1178
  dangerouslySetInnerHTML: { __html: c }
1186
1179
  });
1187
- }, nt = {
1180
+ }, rt = {
1188
1181
  type: "Icon",
1189
1182
  label: "web_blocks.icon",
1190
1183
  category: "core",
1191
- icon: ee,
1184
+ icon: K,
1192
1185
  group: "media",
1193
1186
  ...d({
1194
1187
  properties: {
@@ -1211,16 +1204,16 @@ const D = (e, ...t) => ({
1211
1204
  }
1212
1205
  }
1213
1206
  })
1214
- }, it = (e) => {
1215
- const { blockProps: t, image: o, mobileImage: l, styles: r, alt: n, height: i, width: s, lazyLoading: c } = e;
1216
- return v(o) ? /* @__PURE__ */ a(L, { className: "h-36" }) : /* @__PURE__ */ b("picture", { children: [
1207
+ }, nt = (e) => {
1208
+ const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: i, width: s, lazyLoading: c } = e;
1209
+ return C(t) ? /* @__PURE__ */ a(v, { className: "h-36" }) : /* @__PURE__ */ b("picture", { children: [
1217
1210
  l && /* @__PURE__ */ a("source", { srcSet: l, media: "(max-width: 480px)" }),
1218
1211
  /* @__PURE__ */ a(
1219
1212
  "img",
1220
1213
  {
1221
- ...t,
1214
+ ...o,
1222
1215
  ...r,
1223
- src: o,
1216
+ src: t,
1224
1217
  alt: n,
1225
1218
  loading: c ? "lazy" : "eager",
1226
1219
  width: s,
@@ -1228,12 +1221,12 @@ const D = (e, ...t) => ({
1228
1221
  }
1229
1222
  )
1230
1223
  ] });
1231
- }, at = {
1224
+ }, it = {
1232
1225
  type: "Image",
1233
1226
  description: "A image component",
1234
1227
  label: "Image",
1235
1228
  category: "core",
1236
- icon: te,
1229
+ icon: ee,
1237
1230
  group: "media",
1238
1231
  ...d({
1239
1232
  properties: {
@@ -1283,35 +1276,35 @@ const D = (e, ...t) => ({
1283
1276
  }),
1284
1277
  aiProps: ["alt"],
1285
1278
  i18nProps: ["alt"]
1286
- }, st = (e) => {
1287
- const { blockProps: t, link: o, children: l, styles: r, inBuilder: n, content: i } = e;
1279
+ }, at = (e) => {
1280
+ const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: i } = e;
1288
1281
  let s = {};
1289
- return !l && v(i) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ a("span", { role: "link", ...t, style: s, ...r, children: l }) : w(
1282
+ return !l && C(i) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ a("span", { role: "link", ...o, style: s, ...r, children: l }) : w(
1290
1283
  "span",
1291
1284
  {
1292
- ...t,
1285
+ ...o,
1293
1286
  ...r,
1294
1287
  style: s,
1295
1288
  role: "link"
1296
1289
  },
1297
1290
  i
1298
- ) : l ? /* @__PURE__ */ a("a", { "aria-label": i, href: (o == null ? void 0 : o.href) || "#/", target: o == null ? void 0 : o.target, ...t, ...r, children: l }) : w(
1291
+ ) : 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(
1299
1292
  "a",
1300
1293
  {
1301
- ...t,
1294
+ ...o,
1302
1295
  ...r,
1303
- href: (o == null ? void 0 : o.href) || "#",
1304
- target: (o == null ? void 0 : o.target) || "_self",
1296
+ href: (t == null ? void 0 : t.href) || "#",
1297
+ target: (t == null ? void 0 : t.target) || "_self",
1305
1298
  "aria-label": i
1306
1299
  },
1307
1300
  i
1308
1301
  );
1309
- }, ct = {
1302
+ }, st = {
1310
1303
  type: "Link",
1311
1304
  description: "A link component",
1312
1305
  label: "Link",
1313
1306
  category: "core",
1314
- icon: oe,
1307
+ icon: te,
1315
1308
  group: "basic",
1316
1309
  ...d({
1317
1310
  properties: {
@@ -1347,18 +1340,18 @@ const D = (e, ...t) => ({
1347
1340
  aiProps: ["content"],
1348
1341
  i18nProps: ["content"],
1349
1342
  canAcceptBlock: (e) => e !== "Link"
1350
- }, pt = (e) => {
1351
- const { blockProps: t, children: o, listType: l, styles: r, tag: n, inBuilder: i } = e, s = P(h(r, "className", ""), l);
1352
- return !o && v(r == null ? void 0 : r.className) ? /* @__PURE__ */ a(L, { inBuilder: i }) : g.createElement(
1343
+ }, ct = (e) => {
1344
+ const { blockProps: o, children: t, listType: l, styles: r, tag: n, inBuilder: i } = e, s = P(h(r, "className", ""), l);
1345
+ return !t && C(r == null ? void 0 : r.className) ? /* @__PURE__ */ a(v, { inBuilder: i }) : y.createElement(
1353
1346
  n || (l === "list-decimal" ? "ol" : "ul"),
1354
- { ...t, ...r, className: s },
1355
- o
1347
+ { ...o, ...r, className: s },
1348
+ t
1356
1349
  );
1357
- }, dt = {
1350
+ }, pt = {
1358
1351
  type: "List",
1359
1352
  description: "A list component",
1360
1353
  label: "List",
1361
- icon: le,
1354
+ icon: oe,
1362
1355
  category: "core",
1363
1356
  group: "basic",
1364
1357
  ...d({
@@ -1401,18 +1394,18 @@ const D = (e, ...t) => ({
1401
1394
  content: "Item 3"
1402
1395
  }
1403
1396
  ]
1404
- }, ut = (e) => {
1405
- const { blockProps: t, content: o, styles: l, children: r, tag: n } = e;
1406
- return r ? g.createElement(n || "li", { ...l, ...t }, r) : g.createElement(n || "li", {
1397
+ }, dt = (e) => {
1398
+ const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
1399
+ return r ? y.createElement(n || "li", { ...l, ...o }, r) : y.createElement(n || "li", {
1407
1400
  ...l,
1408
- ...t,
1409
- dangerouslySetInnerHTML: { __html: o }
1401
+ ...o,
1402
+ dangerouslySetInnerHTML: { __html: t }
1410
1403
  });
1411
- }, mt = {
1404
+ }, ut = {
1412
1405
  type: "ListItem",
1413
1406
  description: "A list item component",
1414
1407
  label: "List Item",
1415
- icon: re,
1408
+ icon: le,
1416
1409
  category: "core",
1417
1410
  group: "basic",
1418
1411
  ...d({
@@ -1432,19 +1425,19 @@ const D = (e, ...t) => ({
1432
1425
  aiProps: ["content"],
1433
1426
  canAcceptBlock: (e) => e !== "ListItem",
1434
1427
  canBeNested: (e) => e === "List" || e === "Repeater"
1435
- }, yt = (e) => {
1436
- const { blockProps: t, styles: o, content: l } = e;
1437
- return ce(e.children) ? g.createElement("p", {
1438
- ...o,
1428
+ }, mt = (e) => {
1429
+ const { blockProps: o, styles: t, content: l } = e;
1430
+ return se(e.children) ? y.createElement("p", {
1439
1431
  ...t,
1432
+ ...o,
1440
1433
  dangerouslySetInnerHTML: { __html: l }
1441
- }) : g.createElement("p", { ...o, ...t }, e.children);
1442
- }, gt = {
1434
+ }) : y.createElement("p", { ...t, ...o }, e.children);
1435
+ }, yt = {
1443
1436
  type: "Paragraph",
1444
1437
  description: "A paragraph component",
1445
1438
  label: "Paragraph",
1446
1439
  category: "core",
1447
- icon: ne,
1440
+ icon: re,
1448
1441
  group: "typography",
1449
1442
  ...d({
1450
1443
  properties: {
@@ -1460,13 +1453,13 @@ const D = (e, ...t) => ({
1460
1453
  i18nProps: ["content"],
1461
1454
  aiProps: ["content"],
1462
1455
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
1463
- }, ft = (e) => {
1464
- const { blockProps: t, inBuilder: o, children: l, partialBlockId: r } = e;
1465
- return o && !r ? /* @__PURE__ */ b(
1456
+ }, gt = (e) => {
1457
+ const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
1458
+ return t && !r ? /* @__PURE__ */ b(
1466
1459
  "div",
1467
1460
  {
1468
1461
  className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
1469
- ...t,
1462
+ ...o,
1470
1463
  children: [
1471
1464
  /* @__PURE__ */ b("h1", { children: [
1472
1465
  "Partial Block - ",
@@ -1475,12 +1468,12 @@ const D = (e, ...t) => ({
1475
1468
  /* @__PURE__ */ a("p", { children: "Choose a block from the sidebar to add it to this page." })
1476
1469
  ]
1477
1470
  }
1478
- ) : g.createElement("span", { ...t }, l);
1479
- }, bt = {
1471
+ ) : y.createElement("span", { ...o }, l);
1472
+ }, ft = {
1480
1473
  type: "PartialBlock",
1481
1474
  description: "A partial block component",
1482
1475
  label: "Partial Block",
1483
- icon: z,
1476
+ icon: H,
1484
1477
  category: "core",
1485
1478
  group: "basic",
1486
1479
  hidden: !0,
@@ -1494,7 +1487,7 @@ const D = (e, ...t) => ({
1494
1487
  }
1495
1488
  }
1496
1489
  })
1497
- }, S = {
1490
+ }, I = {
1498
1491
  SMALL: {
1499
1492
  1: "col-span-1",
1500
1493
  2: "col-span-2",
@@ -1537,21 +1530,21 @@ const D = (e, ...t) => ({
1537
1530
  11: "lg:col-span-11",
1538
1531
  12: "lg:col-span-12"
1539
1532
  }
1540
- }, ht = (e) => {
1541
- const { blockProps: t, children: o, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1533
+ }, bt = (e) => {
1534
+ const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: i } = e, c = { className: [
1542
1535
  h(l, "className", ""),
1543
- h(S, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1544
- n ? h(S, ["MEDIUM", n || r], "") : "",
1545
- i ? h(S, ["LARGE", n || r], "") : ""
1536
+ h(I, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
1537
+ n ? h(I, ["MEDIUM", n || r], "") : "",
1538
+ i ? h(I, ["LARGE", n || r], "") : ""
1546
1539
  ].join(" ") };
1547
- return /* @__PURE__ */ a("div", { ...t, ...l, ...c, children: o || /* @__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" }) });
1548
- }, kt = {
1540
+ 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" }) });
1541
+ }, ht = {
1549
1542
  type: "Column",
1550
1543
  description: "A column component",
1551
1544
  label: "Column",
1552
1545
  group: "basic",
1553
1546
  category: "core",
1554
- icon: ye,
1547
+ icon: me,
1555
1548
  wrapper: !0,
1556
1549
  canDelete: () => !0,
1557
1550
  canAcceptBlock: () => !0,
@@ -1581,15 +1574,15 @@ const D = (e, ...t) => ({
1581
1574
  }
1582
1575
  }
1583
1576
  })
1584
- }, xt = (e) => {
1585
- const { blockProps: t, children: o, styles: l, gutter: r } = e, i = { className: [h(l, "className", ""), " grid grid-cols-12"].join() };
1586
- return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : i.style = { gap: `${r}px` }, /* @__PURE__ */ a("div", { ...t, ...l, ...i, children: o });
1587
- }, wt = {
1577
+ }, kt = (e) => {
1578
+ const { blockProps: o, children: t, styles: l, gutter: r } = e, i = { className: [h(l, "className", ""), " grid grid-cols-12"].join() };
1579
+ 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 });
1580
+ }, xt = {
1588
1581
  type: "Row",
1589
1582
  description: "A row component",
1590
1583
  label: "Row",
1591
1584
  group: "basic",
1592
- icon: ge,
1585
+ icon: ye,
1593
1586
  blocks: () => [
1594
1587
  { _type: "Row", _id: "row", styles: "#styles:,p-1" },
1595
1588
  { _type: "Column", id: "column", _parent: "row", styles: "#styles:," },
@@ -1615,19 +1608,19 @@ const D = (e, ...t) => ({
1615
1608
  }
1616
1609
  }
1617
1610
  })
1618
- }, Ct = (e) => {
1619
- const { blockProps: t, content: o, styles: l } = e, r = D(
1611
+ }, wt = (e) => {
1612
+ const { blockProps: o, content: t, styles: l } = e, r = z(
1620
1613
  l,
1621
1614
  "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",
1622
1615
  "max-w-full"
1623
1616
  );
1624
- return /* @__PURE__ */ a("div", { ...t, ...r, dangerouslySetInnerHTML: { __html: o } });
1625
- }, vt = {
1617
+ return /* @__PURE__ */ a("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1618
+ }, Ct = {
1626
1619
  type: "RichText",
1627
1620
  description: "A rich text block",
1628
1621
  label: "Rich Text",
1629
1622
  category: "core",
1630
- icon: ie,
1623
+ icon: ne,
1631
1624
  group: "typography",
1632
1625
  ...d({
1633
1626
  properties: {
@@ -1642,14 +1635,14 @@ const D = (e, ...t) => ({
1642
1635
  }),
1643
1636
  aiProps: ["content"],
1644
1637
  i18nProps: ["content"]
1645
- }, Lt = (e) => {
1646
- const { blockProps: t, styles: o, content: l, children: r = null, tag: n } = e;
1647
- return r ? g.createElement("span", { ...o, ...t }, r) : g.createElement(n || "span", {
1648
- ...o,
1638
+ }, vt = (e) => {
1639
+ const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
1640
+ return r ? y.createElement("span", { ...t, ...o }, r) : y.createElement(n || "span", {
1649
1641
  ...t,
1642
+ ...o,
1650
1643
  dangerouslySetInnerHTML: { __html: l || "" }
1651
1644
  });
1652
- }, Bt = {
1645
+ }, Lt = {
1653
1646
  type: "Span",
1654
1647
  description: "A span component",
1655
1648
  label: "Span",
@@ -1669,14 +1662,14 @@ const D = (e, ...t) => ({
1669
1662
  aiProps: ["content"],
1670
1663
  i18nProps: ["content"],
1671
1664
  canAcceptBlock: () => !0
1672
- }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1665
+ }, Bt = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1673
1666
  type: "Text",
1674
1667
  description: "A text component with no styling",
1675
1668
  label: "Text",
1676
1669
  hidden: !0,
1677
1670
  category: "core",
1678
1671
  group: "typography",
1679
- icon: ae,
1672
+ icon: ie,
1680
1673
  ...d({
1681
1674
  properties: {
1682
1675
  styles: u("text-black"),
@@ -1689,7 +1682,7 @@ const D = (e, ...t) => ({
1689
1682
  }),
1690
1683
  aiProps: ["content"],
1691
1684
  i18nProps: ["content"]
1692
- }, _ = {
1685
+ }, S = {
1693
1686
  type: "object",
1694
1687
  title: "Controls",
1695
1688
  default: {
@@ -1720,43 +1713,43 @@ const D = (e, ...t) => ({
1720
1713
  default: !1
1721
1714
  }
1722
1715
  }
1723
- }, 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+)/, St = (e, t) => {
1724
- const o = h(t, "autoplay", !1), l = h(t, "controls", !1), r = h(t, "loop", !1), n = o || h(t, "muted", !0);
1725
- if (R.test(e)) {
1726
- const i = e.match(R);
1716
+ }, N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, R = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, It = (e, o) => {
1717
+ const t = h(o, "autoplay", !1), l = h(o, "controls", !1), r = h(o, "loop", !1), n = t || h(o, "muted", !0);
1718
+ if (N.test(e)) {
1719
+ const i = e.match(N);
1727
1720
  if (i) {
1728
1721
  const s = i[4];
1729
- let c = `https://www.youtube.com/embed/${s}`, m = o ? "autoplay=1" : "";
1722
+ let c = `https://www.youtube.com/embed/${s}`, m = t ? "autoplay=1" : "";
1730
1723
  return m += r ? `&loop=1&playlist=${s}` : "", m += n ? "&mute=1&muted=1" : "", m += l ? "&controls=1" : "&controls=0", `${c}?${m}`;
1731
1724
  }
1732
1725
  }
1733
- if (A.test(e)) {
1734
- const i = e.match(A);
1726
+ if (R.test(e)) {
1727
+ const i = e.match(R);
1735
1728
  if (i) {
1736
1729
  const s = i[1];
1737
1730
  let c = "";
1738
- return c += o ? "autoplay=1" : "", c += l ? "&controls=1" : "&controls=0", c += n ? "&muted=1" : "", c += r ? "&loop=1" : "", `https://player.vimeo.com/video/${s}?${c}`;
1731
+ 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}`;
1739
1732
  }
1740
1733
  }
1741
1734
  return null;
1742
- }, _t = (e) => {
1743
- const { url: t, blockProps: o, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s = St(t, r);
1744
- return /* @__PURE__ */ b("div", { ...pe(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1745
- !s && i ? /* @__PURE__ */ a("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: v(t) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ a("iframe", { width: "100%", src: s, ...de(l, "className") }),
1746
- i && /* @__PURE__ */ a("div", { ...o, className: "absolute top-0 h-full w-full" })
1735
+ }, St = (e) => {
1736
+ const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: i } = e, s = It(o, r);
1737
+ return /* @__PURE__ */ b("div", { ...ce(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1738
+ !s && i ? /* @__PURE__ */ a("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__ */ a("iframe", { width: "100%", src: s, ...pe(l, "className") }),
1739
+ i && /* @__PURE__ */ a("div", { ...t, className: "absolute top-0 h-full w-full" })
1747
1740
  ] });
1748
- }, Tt = (e) => {
1749
- const { url: t, styles: o, controls: l, sources: r, poster: n, blockProps: i } = e;
1741
+ }, _t = (e) => {
1742
+ const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: i } = e;
1750
1743
  let s = n;
1751
1744
  const c = [...h(r, "srcsets", []) || []];
1752
- t && typeof t == "string" && c.push({ url: t, width: "9999" });
1753
- const m = c.sort((y, x) => parseInt(y.width) - parseInt(x.width)).filter((y) => !v(y.url) && !v(y.width));
1745
+ o && typeof o == "string" && c.push({ url: o, width: "9999" });
1746
+ const m = c.sort((g, x) => parseInt(g.width) - parseInt(x.width)).filter((g) => !C(g.url) && !C(g.width));
1754
1747
  m.length === 0 && !s && (s = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
1755
1748
  const k = h(l, "autoplay", !1) || h(l, "muted", !0);
1756
- return (s || !v(m)) && /* @__PURE__ */ a("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1749
+ return (s || !C(m)) && /* @__PURE__ */ a("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ w(
1757
1750
  "video",
1758
1751
  {
1759
- ...o,
1752
+ ...t,
1760
1753
  ...i,
1761
1754
  key: JSON.stringify(m),
1762
1755
  controls: h(l, "controls", !1),
@@ -1765,24 +1758,24 @@ const D = (e, ...t) => ({
1765
1758
  poster: s,
1766
1759
  ...k ? { muted: !0 } : {}
1767
1760
  },
1768
- m.map((y) => {
1769
- if (!y.url || y.url.length < 4 || isNaN(y.width)) return null;
1770
- const x = `(max-width: ${y.width}px)`;
1771
- return /* @__PURE__ */ a("source", { src: y.url, media: x, type: y.type }, y.url);
1761
+ m.map((g) => {
1762
+ if (!g.url || g.url.length < 4 || isNaN(g.width)) return null;
1763
+ const x = `(max-width: ${g.width}px)`;
1764
+ return /* @__PURE__ */ a("source", { src: g.url, media: x, type: g.type }, g.url);
1772
1765
  }),
1773
1766
  "Your browser does not support the video tag."
1774
1767
  ) });
1775
- }, Nt = (e) => {
1776
- const { videoSource: t } = e;
1777
- return t === "Custom" ? /* @__PURE__ */ a(Tt, { ...e }) : t === "Youtube" || t === "Vimeo" ? /* @__PURE__ */ a(_t, { ...e }) : /* @__PURE__ */ b("div", { children: [
1768
+ }, Tt = (e) => {
1769
+ const { videoSource: o } = e;
1770
+ return o === "Custom" ? /* @__PURE__ */ a(_t, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ a(St, { ...e }) : /* @__PURE__ */ b("div", { children: [
1778
1771
  "Invalid video source : ",
1779
- t
1772
+ o
1780
1773
  ] });
1781
- }, Rt = {
1774
+ }, Nt = {
1782
1775
  type: "Video",
1783
1776
  label: "Video",
1784
1777
  category: "core",
1785
- icon: se,
1778
+ icon: ae,
1786
1779
  group: "media",
1787
1780
  ...d({
1788
1781
  properties: {
@@ -1817,7 +1810,7 @@ const D = (e, ...t) => ({
1817
1810
  type: "object",
1818
1811
  default: { srcsets: [] }
1819
1812
  },
1820
- controls: { ..._ }
1813
+ controls: { ...S }
1821
1814
  }
1822
1815
  }
1823
1816
  },
@@ -1834,7 +1827,7 @@ const D = (e, ...t) => ({
1834
1827
  title: "Youtube Video URL",
1835
1828
  default: ""
1836
1829
  },
1837
- controls: { ..._ }
1830
+ controls: { ...S }
1838
1831
  }
1839
1832
  }
1840
1833
  },
@@ -1851,7 +1844,7 @@ const D = (e, ...t) => ({
1851
1844
  title: "Vimeo Video URL",
1852
1845
  default: ""
1853
1846
  },
1854
- controls: { ..._ }
1847
+ controls: { ...S }
1855
1848
  }
1856
1849
  }
1857
1850
  }
@@ -1863,24 +1856,24 @@ const D = (e, ...t) => ({
1863
1856
  }
1864
1857
  }),
1865
1858
  i18nProps: ["url"]
1866
- }, At = (e) => {
1867
- const { children: t, tag: o, styles: l, blockProps: r, inBuilder: n, $loading: i } = e;
1868
- let s = t;
1869
- return v(s) && n && (s = /* @__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" })), o === "none" ? i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ b("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
1859
+ }, Rt = (e) => {
1860
+ const { children: o, tag: t, styles: l, blockProps: r, inBuilder: n, $loading: i } = e;
1861
+ let s = o;
1862
+ return C(s) && n && (s = /* @__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" ? i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ b("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
1870
1863
  /* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1871
1864
  /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1872
- ] }, m)) : s : g.createElement(
1873
- o,
1865
+ ] }, m)) : s : y.createElement(
1866
+ t,
1874
1867
  { ...r, ...l },
1875
1868
  i && n ? Array.from({ length: 2 }).map((c, m) => /* @__PURE__ */ b("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
1876
1869
  /* @__PURE__ */ a("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1877
1870
  /* @__PURE__ */ a("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1878
1871
  ] }, m)) : s
1879
1872
  );
1880
- }, Mt = {
1873
+ }, At = {
1881
1874
  type: "Repeater",
1882
1875
  label: "Repeater",
1883
- icon: H,
1876
+ icon: $,
1884
1877
  group: "basic",
1885
1878
  dataProviderMode: "live",
1886
1879
  dataProviderDependencies: ["filter", "sort", "limit", "repeaterItems"],
@@ -1899,7 +1892,7 @@ const D = (e, ...t) => ({
1899
1892
  ],
1900
1893
  ...d({
1901
1894
  properties: {
1902
- styles: T("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
1895
+ styles: _("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
1903
1896
  repeaterItems: {
1904
1897
  title: "Collection",
1905
1898
  type: "string",
@@ -1935,10 +1928,10 @@ const D = (e, ...t) => ({
1935
1928
  }
1936
1929
  }
1937
1930
  })
1938
- }, Et = ({
1931
+ }, Mt = ({
1939
1932
  children: e,
1940
- blockProps: t,
1941
- styles: o,
1933
+ blockProps: o,
1934
+ styles: t,
1942
1935
  parentTag: l,
1943
1936
  inBuilder: r
1944
1937
  }) => {
@@ -1953,46 +1946,46 @@ const D = (e, ...t) => ({
1953
1946
  default:
1954
1947
  n = "div";
1955
1948
  }
1956
- return !e && r ? g.createElement(
1949
+ return !e && r ? y.createElement(
1957
1950
  n,
1958
- { ...t, ...o },
1951
+ { ...o, ...t },
1959
1952
  /* @__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" })
1960
- ) : g.createElement(n, { ...t, ...o }, e);
1961
- }, $t = {
1953
+ ) : y.createElement(n, { ...o, ...t }, e);
1954
+ }, Et = {
1962
1955
  type: "RepeaterItem",
1963
1956
  label: "Repeater Item",
1964
- icon: H,
1957
+ icon: $,
1965
1958
  hidden: !0,
1966
1959
  group: "basic",
1967
1960
  ...d({
1968
1961
  properties: {
1969
- styles: T(""),
1970
- parentTag: V("Repeater", "tag")
1962
+ styles: _(""),
1963
+ parentTag: D("Repeater", "tag")
1971
1964
  }
1972
1965
  }),
1973
1966
  canAcceptBlock: (e) => e !== "RepeaterItem",
1974
1967
  canDelete: () => !1,
1975
1968
  canMove: () => !1,
1976
1969
  canDuplicate: () => !1
1977
- }, Ht = ({
1970
+ }, $t = ({
1978
1971
  children: e,
1979
- blockProps: t,
1980
- styles: o
1981
- }) => g.createElement("div", { ...t, ...o }, e), zt = {
1972
+ blockProps: o,
1973
+ styles: t
1974
+ }) => y.createElement("div", { ...o, ...t }, e), Ht = {
1982
1975
  type: "RepeaterEmptyState",
1983
1976
  label: "Empty State",
1984
1977
  hidden: !0,
1985
1978
  group: "basic",
1986
1979
  ...d({
1987
- properties: { styles: T("p-5 flex items-center justify-center") }
1980
+ properties: { styles: _("p-5 flex items-center justify-center") }
1988
1981
  }),
1989
1982
  canAcceptBlock: () => !0,
1990
1983
  canDelete: () => !1,
1991
1984
  canMove: () => !1,
1992
1985
  canDuplicate: () => !1
1993
- }, Gt = () => {
1994
- p(fe, be), p(Se, _e), p(he, ke), p(Xe, Je), p(yt, gt), p(Lt, Bt), p(Ct, vt), p(st, ct), p(pt, dt), p(ut, mt), p(rt, nt), p(it, at), p(Nt, Rt), p(Ce, ve), p(Le, Be), p(It, Pt), p(Re, Ae), p(Me, Ee), p(He, ze), p(Te, Ne), p(je, Ue), p(qe, Fe), p(Oe, Ge), p(De, Ve), p(Qe, Ze), p(Ie, Pe), p(Ye, We), p(ft, bt), p(xt, wt), p(ht, kt), p(xe, we), p(At, Mt), p(Et, $t), p(Ht, zt);
1986
+ }, Ot = () => {
1987
+ p(ge, fe), p(Ie, Se), p(be, he), p(We, Xe), p(mt, yt), p(vt, Lt), p(wt, Ct), p(at, st), p(ct, pt), p(dt, ut), p(lt, rt), p(nt, it), p(Tt, Nt), p(we, Ce), p(ve, Le), p(Bt, Pt), p(Ne, Re), p(Ae, Me), p($e, He), p(_e, Te), p(Ve, je), p(Ue, qe), p(Fe, Oe), p(ze, De), p(Je, Qe), p(Be, Pe), p(Ge, Ye), p(gt, ft), p(kt, xt), p(bt, ht), p(ke, xe), p(Rt, At), p(Mt, Et), p($t, Ht);
1995
1988
  };
1996
1989
  export {
1997
- Gt as loadWebBlocks
1990
+ Ot as loadWebBlocks
1998
1991
  };