@chaibuilder/sdk 1.2.43 → 1.2.44

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.
Files changed (81) hide show
  1. package/dist/AddBlocks-Bb-K6Y0Z.cjs +1 -0
  2. package/dist/{AddBlocks-9UM7zj57.js → AddBlocks-QCb-vIta.js} +47 -46
  3. package/dist/CanvasArea-Hqy_21xf.js +1215 -0
  4. package/dist/CanvasArea-xvT325mp.cjs +57 -0
  5. package/dist/{ChaiBuilderEditor--NV-B5az.cjs → ChaiBuilderEditor-AIXWnz29.cjs} +44 -44
  6. package/dist/{ChaiBuilderEditor-yf2LRjL1.js → ChaiBuilderEditor-NnMEdW3k.js} +6627 -6635
  7. package/dist/{CurrentPage-rgu6shCq.cjs → CurrentPage-n_oOiHx5.cjs} +1 -1
  8. package/dist/{CurrentPage-hKtVFDxU.js → CurrentPage-rkdt2mNr.js} +3 -3
  9. package/dist/{ListTree-ulr_sjdn.js → ListTree-PuZP9LQu.js} +3 -3
  10. package/dist/{ListTree-fwN6Y_EA.cjs → ListTree-z0FeSAsc.cjs} +1 -1
  11. package/dist/{PagesPanel-v6Nl5KWy.cjs → PagesPanel-4ftrFiS0.cjs} +1 -1
  12. package/dist/{PagesPanel-EHLY-cfj.js → PagesPanel-TYArrNU6.js} +4 -4
  13. package/dist/{ProjectPanel-ck-mOBEg.cjs → ProjectPanel-2scMInUn.cjs} +1 -1
  14. package/dist/{ProjectPanel-qiqyRbwH.js → ProjectPanel-qY_Bnqjm.js} +4 -4
  15. package/dist/{Settings-a7j3ihRx.js → Settings-k9Ll55Wc.js} +965 -892
  16. package/dist/Settings-kbUR5-xt.cjs +1 -0
  17. package/dist/{SidePanels-biCoYtzR.cjs → SidePanels-ZHxoiJ7y.cjs} +1 -1
  18. package/dist/{SidePanels-9XdRZ7rz.js → SidePanels-eOnxPSSw.js} +4 -4
  19. package/dist/{ThemeConfiguration-MaGPPza1.js → ThemeConfiguration-TINcg8VX.js} +5 -5
  20. package/dist/{ThemeConfiguration-f6AxqpmO.cjs → ThemeConfiguration-fRsktVs4.cjs} +1 -1
  21. package/dist/{Topbar-OpgHjdWn.js → Topbar--KrJ6nJg.js} +2 -2
  22. package/dist/{Topbar-cDxKWgN6.cjs → Topbar-tgFkKz7R.cjs} +1 -1
  23. package/dist/{UILibrariesPanel-d08F5Ri0.cjs → UILibrariesPanel-2HyAEVLE.cjs} +1 -1
  24. package/dist/{UILibrariesPanel-HVpapacm.js → UILibrariesPanel-sleogb55.js} +3 -3
  25. package/dist/{UnsplashImages-Gx7dy6mp.js → UnsplashImages-P7_2yEo-.js} +9 -9
  26. package/dist/{UnsplashImages-uyokFuF-.cjs → UnsplashImages-azP_HIqG.cjs} +1 -1
  27. package/dist/{UploadImages-kLPXfW7W.cjs → UploadImages-nnszHoZa.cjs} +1 -1
  28. package/dist/{UploadImages-aClrfKqQ.js → UploadImages-ovzzQW6b.js} +7 -7
  29. package/dist/{add-page-modal-kP7x8GYO.js → add-page-modal-SmBfx0LH.js} +4 -4
  30. package/dist/{add-page-modal-H5MTzKBT.cjs → add-page-modal-nDBqhemF.cjs} +1 -1
  31. package/dist/atoms-ZOWyNoiC.js +6 -0
  32. package/dist/atoms-a0H_593V.cjs +1 -0
  33. package/dist/{confirm-alert-zZAmXzx0.cjs → confirm-alert-75rfTsgE.cjs} +1 -1
  34. package/dist/{confirm-alert-gemzBTIt.js → confirm-alert-yipdBkkj.js} +2 -2
  35. package/dist/core.cjs +1 -1
  36. package/dist/core.d.ts +1 -1
  37. package/dist/core.js +2 -2
  38. package/dist/{delete-page-modal-ER-TAzRL.js → delete-page-modal-HIul7JBc.js} +3 -3
  39. package/dist/{delete-page-modal-E8MFNVWF.cjs → delete-page-modal-lO-dULGW.cjs} +1 -1
  40. package/dist/email-blocks.cjs +1 -1
  41. package/dist/email-blocks.js +30 -30
  42. package/dist/email.cjs +1 -1
  43. package/dist/email.d.ts +1 -1
  44. package/dist/email.js +2 -2
  45. package/dist/empty-slot-Lsxjts7Q.js +6 -0
  46. package/dist/empty-slot-Sy930lX6.cjs +1 -0
  47. package/dist/{form-UruaB3s_.js → form-cZPoXqTP.js} +5 -5
  48. package/dist/{form-l4PB76nt.cjs → form-yq_mbR58.cjs} +1 -1
  49. package/dist/{index-rKrjj7Vz.js → index-Vu40oRWp.js} +2 -2
  50. package/dist/{index-PXyps6Qc.cjs → index-q_bEEzdK.cjs} +1 -1
  51. package/dist/lib.cjs +1 -1
  52. package/dist/lib.js +3 -3
  53. package/dist/{page-viewer-wQq2qD96.cjs → page-viewer-3ZqrDjrz.cjs} +1 -1
  54. package/dist/{page-viewer-bCH5PPSH.js → page-viewer-ZOVAaE9q.js} +4 -4
  55. package/dist/{project-general-setting-rdCQBkQZ.js → project-general-setting-2iNlm_kN.js} +8 -8
  56. package/dist/{project-general-setting-A5OelyCo.cjs → project-general-setting-IIxWGrU2.cjs} +1 -1
  57. package/dist/{project-seo-setting-Y_q0WJSy.cjs → project-seo-setting-46PdN9FR.cjs} +1 -1
  58. package/dist/{project-seo-setting-_SGBKl0c.js → project-seo-setting-FX0cbkrO.js} +3 -3
  59. package/dist/{single-page-detail-H3Rb5gkJ.js → single-page-detail-4v8ojQss.js} +5 -5
  60. package/dist/{single-page-detail-xAO7x8a1.cjs → single-page-detail-MsBTVx9h.cjs} +1 -1
  61. package/dist/studio.cjs +1 -1
  62. package/dist/studio.d.ts +1 -1
  63. package/dist/studio.js +3 -3
  64. package/dist/style.css +1 -1
  65. package/dist/ui.cjs +1 -1
  66. package/dist/ui.d.ts +3 -3
  67. package/dist/ui.js +50 -50
  68. package/dist/{useCanvasSettings-IalZcnSd.cjs → useCanvasSettings-A7Qj0z4L.cjs} +1 -1
  69. package/dist/{useCanvasSettings-tkzd9Qrw.js → useCanvasSettings-QH5zCmxD.js} +1 -1
  70. package/dist/utils-K3Zk762G.cjs +1 -0
  71. package/dist/{Class-6Hz2KzYb.js → utils-iMv3T4WT.js} +16 -15
  72. package/dist/web-blocks.cjs +4 -4
  73. package/dist/web-blocks.js +237 -238
  74. package/package.json +2 -2
  75. package/dist/AddBlocks-_6X3bnJZ.cjs +0 -1
  76. package/dist/CanvasArea-HmbcRpgP.cjs +0 -55
  77. package/dist/CanvasArea-a3WMBMi3.js +0 -1199
  78. package/dist/Class-Zc8hpE7f.cjs +0 -1
  79. package/dist/Settings-Rtk4HDKy.cjs +0 -1
  80. package/dist/empty-slot-ZBlsQi6m.js +0 -15
  81. package/dist/empty-slot-nzYOgZuS.cjs +0 -1
@@ -1,12 +1,12 @@
1
- import { isNull as z, isEmpty as k, get as x, pick as $, omit as q, find as O, map as E, noop as V } from "lodash-es";
1
+ import { isNull as D, isEmpty as k, get as x, pick as $, omit as q, find as V, map as C, noop as O } from "lodash-es";
2
2
  import { j as n } from "./jsx-runtime-WbnYoNE9.js";
3
3
  import * as u from "react";
4
- import { S as c, y as w, q as C, g as I, m as L, l as y, o as P, c as _, T as U, b as G, r as f, h as W } from "./controls-VTdJhdSz.js";
4
+ import { S as c, y as B, q as E, g as I, m as L, l as y, o as P, c as _, T as U, b as G, r as f, h as W } from "./controls-VTdJhdSz.js";
5
5
  import { registerChaiBlock as d } from "@chaibuilder/runtime";
6
- import { E as v } from "./empty-slot-ZBlsQi6m.js";
7
- import { HeadingIcon as Y, TextIcon as X, CursorTextIcon as Z, ButtonIcon as R, Link1Icon as J, RowsIcon as K, ColumnsIcon as Q, SketchLogoIcon as ee, ImageIcon as te, VideoIcon as le, CodeIcon as oe, DividerHorizontalIcon as ae, SpaceBetweenVerticallyIcon as F, TableIcon as se, BorderTopIcon as ne, BorderAllIcon as re, ViewHorizontalIcon as ce, DragHandleHorizontalIcon as ie, GroupIcon as de, LetterCaseToggleIcon as ue, CheckboxIcon as pe, InputIcon as D, RadiobuttonIcon as he, DropdownMenuIcon as ye } from "@radix-ui/react-icons";
8
- import { c as S, g } from "./Functions-7jnEwJyw.js";
9
- import { g as A } from "./html-to-json-Z6R2o_fA.js";
6
+ import { E as v } from "./empty-slot-Lsxjts7Q.js";
7
+ import { HeadingIcon as X, TextIcon as Y, CursorTextIcon as Z, ButtonIcon as R, Link1Icon as J, RowsIcon as K, ColumnsIcon as Q, SketchLogoIcon as ee, ImageIcon as te, VideoIcon as le, CodeIcon as oe, DividerHorizontalIcon as ae, SpaceBetweenVerticallyIcon as F, TableIcon as se, BorderTopIcon as ne, BorderAllIcon as re, ViewHorizontalIcon as ce, DragHandleHorizontalIcon as ie, GroupIcon as de, LetterCaseToggleIcon as ue, CheckboxIcon as pe, InputIcon as z, RadiobuttonIcon as he, DropdownMenuIcon as ye } from "@radix-ui/react-icons";
8
+ import { c as j, g as b } from "./Functions-7jnEwJyw.js";
9
+ import { g as N } from "./html-to-json-Z6R2o_fA.js";
10
10
  import "./_commonjsHelpers-UyOWmZb0.js";
11
11
  import "clsx";
12
12
  import "tailwind-merge";
@@ -14,11 +14,11 @@ import "himalaya";
14
14
  import "./STRINGS--j49GZJP.js";
15
15
  const me = u.memo(
16
16
  (e) => {
17
- const { blockProps: t, inBuilder: l, backgroundImage: o, children: a, tag: s = "div", styles: r } = e;
17
+ const { blockProps: l, inBuilder: t, backgroundImage: o, children: a, tag: s = "div", styles: r } = e;
18
18
  let i = a;
19
- a || (i = /* @__PURE__ */ n.jsx(v, { blockProps: {}, styles: {}, inBuilder: l }));
19
+ a || (i = /* @__PURE__ */ n.jsx(v, { inBuilder: t }));
20
20
  let p = {};
21
- return o && (p = { backgroundImage: `url(${o})` }), u.createElement(s, { ...t, ...r, style: p }, i);
21
+ return o && (p = { backgroundImage: `url(${o})` }), u.createElement(s, { ...l, ...r, style: p }, i);
22
22
  }
23
23
  );
24
24
  d(me, {
@@ -28,7 +28,7 @@ d(me, {
28
28
  group: "basic",
29
29
  props: {
30
30
  styles: c({ default: "" }),
31
- tag: w({
31
+ tag: B({
32
32
  title: "Tag",
33
33
  default: "div",
34
34
  options: [
@@ -51,14 +51,14 @@ d(me, {
51
51
  { value: "mark", title: "mark" }
52
52
  ]
53
53
  }),
54
- backgroundImage: C({ title: "Background Image" })
54
+ backgroundImage: E({ title: "Background Image" })
55
55
  },
56
56
  canAcceptBlock: () => !0
57
57
  });
58
58
  const fe = u.memo(
59
59
  (e) => {
60
- const { blockProps: t, styles: l } = e;
61
- return u.createElement("div", { ...t, ...l });
60
+ const { blockProps: l, styles: t } = e;
61
+ return u.createElement("div", { ...l, ...t });
62
62
  }
63
63
  );
64
64
  d(fe, {
@@ -71,24 +71,24 @@ d(fe, {
71
71
  },
72
72
  canAcceptBlock: () => !1
73
73
  });
74
- const be = (e) => {
75
- const { blockProps: t, styles: l, content: o, level: a = "h1", children: s = null } = e;
76
- return s ? u.createElement(a, { ...l, ...t }, s) : u.createElement(a, {
77
- ...l,
74
+ const ge = (e) => {
75
+ const { blockProps: l, styles: t, content: o, level: a = "h1", children: s = null } = e;
76
+ return s ? u.createElement(a, { ...t, ...l }, s) : u.createElement(a, {
78
77
  ...t,
78
+ ...l,
79
79
  "data-ai-key": "content",
80
80
  "data-ai-type": "html",
81
81
  dangerouslySetInnerHTML: { __html: o }
82
82
  });
83
83
  };
84
- d(be, {
84
+ d(ge, {
85
85
  type: "Heading",
86
86
  label: "Heading",
87
87
  category: "core",
88
- icon: Y,
88
+ icon: X,
89
89
  group: "typography",
90
90
  props: {
91
- level: w({
91
+ level: B({
92
92
  title: "Level",
93
93
  default: "h1",
94
94
  binding: !1,
@@ -106,21 +106,21 @@ d(be, {
106
106
  },
107
107
  canAcceptBlock: (e) => e === "Span" || e === "Text"
108
108
  });
109
- const ge = (e) => {
110
- const { blockProps: t, styles: l, content: o } = e;
111
- return z(e.children) ? u.createElement("p", {
112
- ...l,
109
+ const be = (e) => {
110
+ const { blockProps: l, styles: t, content: o } = e;
111
+ return D(e.children) ? u.createElement("p", {
113
112
  ...t,
113
+ ...l,
114
114
  "data-ai-key": "content",
115
115
  "data-ai-type": "html",
116
116
  dangerouslySetInnerHTML: { __html: o }
117
- }) : u.createElement("p", { ...l, ...t }, e.children);
117
+ }) : u.createElement("p", { ...t, ...l }, e.children);
118
118
  };
119
- d(ge, {
119
+ d(be, {
120
120
  type: "Paragraph",
121
121
  label: "Paragraph",
122
122
  category: "core",
123
- icon: X,
123
+ icon: Y,
124
124
  group: "typography",
125
125
  props: {
126
126
  styles: c({ default: "" }),
@@ -132,10 +132,10 @@ d(ge, {
132
132
  canAcceptBlock: (e) => e === "Span" || e === "Link"
133
133
  });
134
134
  const ve = (e) => {
135
- const { blockProps: t, styles: l, content: o, children: a = null, tag: s } = e;
136
- return a ? u.createElement("span", { ...l, ...t }, a) : u.createElement(s || "span", {
137
- ...l,
135
+ const { blockProps: l, styles: t, content: o, children: a = null, tag: s } = e;
136
+ return a ? u.createElement("span", { ...t, ...l }, a) : u.createElement(s || "span", {
138
137
  ...t,
138
+ ...l,
139
139
  "data-ai-key": "content",
140
140
  dangerouslySetInnerHTML: { __html: o }
141
141
  });
@@ -152,15 +152,15 @@ d(ve, {
152
152
  canAcceptBlock: () => !0
153
153
  });
154
154
  const xe = (e) => {
155
- const { blockProps: t, content: l, styles: o } = e;
155
+ const { blockProps: l, content: t, styles: o } = e;
156
156
  return /* @__PURE__ */ n.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ n.jsx(
157
157
  "div",
158
158
  {
159
159
  "data-ai-key": "content",
160
160
  "data-ai-type": "richtext",
161
- ...t,
161
+ ...l,
162
162
  ...o,
163
- dangerouslySetInnerHTML: { __html: l }
163
+ dangerouslySetInnerHTML: { __html: t }
164
164
  }
165
165
  ) });
166
166
  };
@@ -179,12 +179,12 @@ d(xe, {
179
179
  }
180
180
  });
181
181
  const ke = (e) => {
182
- const { blockProps: t, iconSize: l, icon: o, content: a, iconPos: s, styles: r, children: i } = e, p = o, h = i || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
182
+ const { blockProps: l, iconSize: t, icon: o, content: a, iconPos: s, styles: r, children: i } = e, p = o, h = i || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
183
183
  /* @__PURE__ */ n.jsx("span", { "data-ai-key": "content", children: a }),
184
184
  p && /* @__PURE__ */ n.jsx(
185
185
  "div",
186
186
  {
187
- style: { width: l + "px" },
187
+ style: { width: t + "px" },
188
188
  className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
189
189
  dangerouslySetInnerHTML: { __html: p }
190
190
  }
@@ -193,7 +193,7 @@ const ke = (e) => {
193
193
  return u.createElement(
194
194
  "button",
195
195
  {
196
- ...t,
196
+ ...l,
197
197
  ...r,
198
198
  type: "button"
199
199
  },
@@ -211,7 +211,7 @@ d(ke, {
211
211
  styles: c({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
212
212
  icon: P({ title: "Icon", default: "" }),
213
213
  iconSize: _({ title: "Icon Size", default: 24 }),
214
- iconPos: w({
214
+ iconPos: B({
215
215
  title: "Icon Position",
216
216
  default: "order-last",
217
217
  options: [
@@ -221,23 +221,22 @@ d(ke, {
221
221
  })
222
222
  }
223
223
  });
224
- const Be = (e) => {
225
- const { blockProps: t, link: l, children: o, styles: a, inBuilder: s, content: r } = e;
226
- return !o && k(a == null ? void 0 : a.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, inBuilder: s }) : s ? o ? /* @__PURE__ */ n.jsx("span", { "data-simulate": "a", ...t, ...a, children: o }) : u.createElement("span", {
227
- ...t,
224
+ const we = (e) => {
225
+ const { blockProps: l, link: t, children: o, styles: a, inBuilder: s, content: r } = e;
226
+ return !o && k(a == null ? void 0 : a.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { inBuilder: s }) : s ? o ? /* @__PURE__ */ n.jsx("span", { ...l, ...a, children: o }) : u.createElement("span", {
227
+ ...l,
228
228
  ...a,
229
- dangerouslySetInnerHTML: { __html: r },
230
- "data-simulate": "a"
231
- }) : o ? /* @__PURE__ */ n.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...a, children: o }) : u.createElement("a", {
232
- ...t,
229
+ dangerouslySetInnerHTML: { __html: r }
230
+ }) : o ? /* @__PURE__ */ n.jsx("a", { href: t.href || "#/", target: t.target, ...l, ...a, children: o }) : u.createElement("a", {
231
+ ...l,
233
232
  ...a,
234
233
  "data-ai-key": "content",
235
- href: l.href || "#",
236
- target: l.target || "_self",
234
+ href: t.href || "#",
235
+ target: t.target || "_self",
237
236
  dangerouslySetInnerHTML: { __html: r }
238
237
  });
239
238
  };
240
- d(Be, {
239
+ d(we, {
241
240
  type: "Link",
242
241
  label: "Link",
243
242
  category: "core",
@@ -251,17 +250,17 @@ d(Be, {
251
250
  default: { type: "page", target: "_self", href: "" }
252
251
  })
253
252
  },
254
- canAcceptBlock: () => !0
253
+ canAcceptBlock: (e) => e !== "Link"
255
254
  });
256
- const we = (e) => {
257
- const { blockProps: t, children: l, listType: o, styles: a, tag: s, inBuilder: r } = e, i = S(x(a, "className", ""), o);
258
- return !l && k(a == null ? void 0 : a.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r, blockProps: t, text: "LIST ITEM" }) : u.createElement(
255
+ const Be = (e) => {
256
+ const { blockProps: l, children: t, listType: o, styles: a, tag: s, inBuilder: r } = e, i = j(x(a, "className", ""), o);
257
+ return !t && k(a == null ? void 0 : a.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r }) : u.createElement(
259
258
  s || (o === "list-decimal" ? "ol" : "ul"),
260
- { ...t, ...a, className: i },
261
- l
259
+ { ...l, ...a, className: i },
260
+ t
262
261
  );
263
262
  };
264
- d(we, {
263
+ d(Be, {
265
264
  type: "List",
266
265
  label: "List",
267
266
  icon: K,
@@ -269,7 +268,7 @@ d(we, {
269
268
  group: "basic",
270
269
  props: {
271
270
  styles: c({ default: "" }),
272
- listType: w({
271
+ listType: B({
273
272
  title: "List type",
274
273
  default: "list-disc",
275
274
  options: [
@@ -306,12 +305,12 @@ d(we, {
306
305
  ]
307
306
  });
308
307
  const Ie = (e) => {
309
- const { blockProps: t, content: l, styles: o, children: a, tag: s } = e;
310
- return a ? u.createElement(s || "li", { ...o, ...t }, a) : u.createElement(s || "li", {
308
+ const { blockProps: l, content: t, styles: o, children: a, tag: s } = e;
309
+ return a ? u.createElement(s || "li", { ...o, ...l }, a) : u.createElement(s || "li", {
311
310
  ...o,
312
- ...t,
311
+ ...l,
313
312
  "data-ai-key": "content",
314
- dangerouslySetInnerHTML: { __html: l }
313
+ dangerouslySetInnerHTML: { __html: t }
315
314
  });
316
315
  };
317
316
  d(Ie, {
@@ -327,16 +326,16 @@ d(Ie, {
327
326
  canAcceptBlock: () => !0,
328
327
  canBeNested: (e) => e === "List"
329
328
  });
330
- const B = (e, ...t) => ({
329
+ const w = (e, ...l) => ({
331
330
  ...e,
332
- className: S(e.className, ...t)
331
+ className: j(e.className, ...l)
333
332
  }), Te = (e) => {
334
- const { blockProps: t, icon: l, styles: o, width: a, inBuilder: s, height: r } = e, i = B(o, S(a ? `w-[${a}px]` : "", r ? `h-[${r}px]` : ""));
335
- if (k(l))
336
- return /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "", inBuilder: s, className: "h-8 w-14" });
337
- const p = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
333
+ const { blockProps: l, icon: t, styles: o, width: a, inBuilder: s, height: r } = e, i = w(o, j(a ? `w-[${a}px]` : "", r ? `h-[${r}px]` : ""));
334
+ if (k(t))
335
+ return /* @__PURE__ */ n.jsx(v, { inBuilder: s, className: "h-8 w-14" });
336
+ const p = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
338
337
  return u.createElement("span", {
339
- ...t,
338
+ ...l,
340
339
  ...i,
341
340
  dangerouslySetInnerHTML: { __html: p }
342
341
  });
@@ -358,11 +357,11 @@ d(Te, {
358
357
  }
359
358
  });
360
359
  const Le = (e) => {
361
- const { blockProps: t, image: l, styles: o, alt: a, height: s, width: r } = e;
362
- return k(l) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : u.createElement("img", {
363
- ...t,
360
+ const { blockProps: l, image: t, styles: o, alt: a, height: s, width: r } = e;
361
+ return k(t) ? /* @__PURE__ */ n.jsx(v, { className: "h-36" }) : u.createElement("img", {
362
+ ...l,
364
363
  ...o,
365
- src: l,
364
+ src: t,
366
365
  alt: a,
367
366
  loading: "lazy",
368
367
  height: s,
@@ -377,7 +376,7 @@ d(Le, {
377
376
  group: "media",
378
377
  props: {
379
378
  styles: c({ default: "" }),
380
- image: C({
379
+ image: E({
381
380
  title: "Image",
382
381
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
383
382
  }),
@@ -388,13 +387,13 @@ d(Le, {
388
387
  });
389
388
  const _e = (e) => {
390
389
  var r;
391
- const { blockProps: t, inBuilder: l, styles: o, children: a } = e;
390
+ const { blockProps: l, inBuilder: t, styles: o, children: a } = e;
392
391
  let s = null;
393
- return !a && l && (s = // @ts-ignore
394
- /* @__PURE__ */ n.jsx("div", { className: S("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ n.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ n.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
392
+ return !a && t && (s = // @ts-ignore
393
+ /* @__PURE__ */ n.jsx("div", { className: j("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ n.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ n.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
395
394
  "Slot: ",
396
395
  e.name
397
- ] }) }) })), u.createElement("div", { ...o, ...t, droppable: "yes" }, a || s);
396
+ ] }) }) })), u.createElement("div", { ...o, ...l, droppable: "yes" }, a || s);
398
397
  };
399
398
  d(_e, {
400
399
  type: "Slot",
@@ -408,56 +407,56 @@ d(_e, {
408
407
  },
409
408
  canAcceptBlock: () => !0
410
409
  });
411
- const M = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, N = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, H = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Se = (e) => {
412
- if (M.test(e)) {
413
- const t = e.match(M);
414
- return t ? `https://www.youtube.com/embed/${t[4]}` : e;
410
+ const A = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, M = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, H = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, je = (e) => {
411
+ if (A.test(e)) {
412
+ const l = e.match(A);
413
+ return l ? `https://www.youtube.com/embed/${l[4]}` : e;
415
414
  }
416
- if (N.test(e)) {
417
- const t = e.match(N);
418
- return t ? `https://player.vimeo.com/video/${t[3]}` : e;
415
+ if (M.test(e)) {
416
+ const l = e.match(M);
417
+ return l ? `https://player.vimeo.com/video/${l[3]}` : e;
419
418
  }
420
419
  if (H.test(e)) {
421
- const t = e.match(H);
422
- return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
420
+ const l = e.match(H);
421
+ return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : e;
423
422
  }
424
423
  return null;
425
- }, je = u.memo(
424
+ }, Se = u.memo(
426
425
  (e) => {
427
- const { blockProps: t, inBuilder: l, styles: o, url: a, controls: s } = e, r = x(s, "autoPlay", !1), i = x(s, "controls", !1), p = r || x(s, "muted", !0), h = x(s, "loop", !1);
426
+ const { blockProps: l, inBuilder: t, styles: o, url: a, controls: s } = e, r = x(s, "autoPlay", !1), i = x(s, "controls", !1), p = r || x(s, "muted", !0), h = x(s, "loop", !1);
428
427
  if (k(a))
429
- return /* @__PURE__ */ n.jsx(v, { inBuilder: l, blockProps: t, text: "VIDEO URL", className: "h-36" });
430
- let b = Se(a), m = null;
431
- if (b) {
432
- if (!k(b)) {
428
+ return /* @__PURE__ */ n.jsx(v, { inBuilder: t, className: "h-36" });
429
+ let g = je(a), m = null;
430
+ if (g) {
431
+ if (!k(g)) {
433
432
  const T = [];
434
- T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${s ? 1 : 0}`), T.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`), b = `${b}?${T.join("&")}`;
433
+ T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${s ? 1 : 0}`), T.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`), g = `${g}?${T.join("&")}`;
435
434
  }
436
435
  m = u.createElement("iframe", {
437
- ...t,
436
+ ...l,
438
437
  className: "absolute inset-0 w-full h-full",
439
- src: b,
440
- allow: l ? "" : "autoplay *; fullscreen *",
438
+ src: g,
439
+ allow: t ? "" : "autoplay *; fullscreen *",
441
440
  allowFullScreen: !0,
442
441
  frameBorder: 0
443
442
  });
444
443
  } else
445
444
  m = u.createElement("video", {
446
- ...t,
445
+ ...l,
447
446
  className: "absolute inset-0 w-full h-full",
448
447
  src: a,
449
448
  controls: i,
450
449
  muted: p,
451
- autoPlay: l ? !1 : r,
450
+ autoPlay: t ? !1 : r,
452
451
  loop: h
453
452
  });
454
453
  return /* @__PURE__ */ n.jsx("div", { ...$(o, ["className"]), children: /* @__PURE__ */ n.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
455
- l ? /* @__PURE__ */ n.jsx("div", { ...t, ...q(o, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
454
+ t ? /* @__PURE__ */ n.jsx("div", { ...l, ...q(o, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
456
455
  m
457
456
  ] }) });
458
457
  }
459
458
  );
460
- d(je, {
459
+ d(Se, {
461
460
  type: "Video",
462
461
  label: "Video",
463
462
  category: "core",
@@ -480,19 +479,19 @@ d(je, {
480
479
  })
481
480
  }
482
481
  });
483
- const Ee = u.memo(
482
+ const Ce = u.memo(
484
483
  (e) => {
485
- const { blockProps: t, styles: l, content: o, inBuilder: a } = e;
484
+ const { blockProps: l, styles: t, content: o, inBuilder: a } = e;
486
485
  return /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
487
- a ? /* @__PURE__ */ n.jsx("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
486
+ a ? /* @__PURE__ */ n.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
488
487
  u.createElement("div", {
489
- ...l,
488
+ ...t,
490
489
  dangerouslySetInnerHTML: { __html: o }
491
490
  })
492
491
  ] });
493
492
  }
494
493
  );
495
- d(Ee, {
494
+ d(Ce, {
496
495
  type: "CustomHTML",
497
496
  label: "Custom HTML",
498
497
  category: "core",
@@ -507,11 +506,11 @@ d(Ee, {
507
506
  })
508
507
  }
509
508
  });
510
- const Ce = (e) => {
511
- const { blockProps: t, styles: l } = e;
512
- return u.createElement("hr", { ...l, ...t });
509
+ const Ee = (e) => {
510
+ const { blockProps: l, styles: t } = e;
511
+ return u.createElement("hr", { ...t, ...l });
513
512
  };
514
- d(Ce, {
513
+ d(Ee, {
515
514
  type: "Divider",
516
515
  label: "Divider",
517
516
  category: "core",
@@ -533,11 +532,11 @@ d(Pe, {
533
532
  content: I({ title: "Content", defaultValue: "" })
534
533
  }
535
534
  });
536
- const Ae = ({ children: e, blockProps: t, styles: l }) => {
537
- const o = B(l, "hs-accordion-group");
538
- return /* @__PURE__ */ n.jsx("div", { ...t, ...o, children: e });
535
+ const Ne = ({ children: e, blockProps: l, styles: t }) => {
536
+ const o = w(t, "hs-accordion-group");
537
+ return /* @__PURE__ */ n.jsx("div", { ...l, ...o, children: e });
539
538
  };
540
- d(Ae, {
539
+ d(Ne, {
541
540
  type: "AccordionGroup",
542
541
  label: "Accordion Group",
543
542
  category: "core",
@@ -547,8 +546,8 @@ d(Ae, {
547
546
  },
548
547
  // @ts-ignore
549
548
  blocks: () => {
550
- const e = "dnd-accordion-" + g();
551
- return A(`<div class="hs-accordion-group">
549
+ const e = "dnd-accordion-" + b();
550
+ return N(`<div class="hs-accordion-group">
552
551
  <div class="hs-accordion active" id="hs-unstyled-heading-one">
553
552
  <button class="hs-accordion-toggle" aria-controls="hs-unstyled-collapse-one">
554
553
  Accordion #1
@@ -570,14 +569,14 @@ d(Ae, {
570
569
  },
571
570
  canAcceptBlock: (e) => e === "Accordion"
572
571
  });
573
- const Me = ({ children: e, blockProps: t, styles: l, blockState: o }) => {
574
- const a = B(
575
- l,
572
+ const Ae = ({ children: e, blockProps: l, styles: t, blockState: o }) => {
573
+ const a = w(
574
+ t,
576
575
  "hs-accordion " + (o && o != null && o.active ? "active" : "")
577
576
  );
578
- return /* @__PURE__ */ n.jsx("div", { ...t, ...a, children: e });
577
+ return /* @__PURE__ */ n.jsx("div", { ...l, ...a, children: e });
579
578
  };
580
- d(Me, {
579
+ d(Ae, {
581
580
  type: "Accordion",
582
581
  label: "Accordion",
583
582
  category: "core",
@@ -594,8 +593,8 @@ d(Me, {
594
593
  getBlockStateFrom: (e) => [e._id],
595
594
  // @ts-ignore
596
595
  blocks: () => {
597
- const e = "dnd-accordion-" + g();
598
- return A(`
596
+ const e = "dnd-accordion-" + b();
597
+ return N(`
599
598
  <div class="hs-accordion active" id="hs-unstyled-heading-one">
600
599
  <button class="hs-accordion-toggle" aria-controls="hs-unstyled-collapse-one">
601
600
  Accordion #1
@@ -607,11 +606,11 @@ d(Me, {
607
606
  `.replace(/hs-unstyled-heading/g, e).replace(/hs-unstyled-collapse/g, e));
608
607
  }
609
608
  });
610
- const Ne = ({ children: e, blockProps: t, styles: l }) => {
611
- const o = B(l, "hs-accordion-toggle");
612
- return /* @__PURE__ */ n.jsx("button", { ...o, ...t, children: e });
609
+ const Me = ({ children: e, blockProps: l, styles: t }) => {
610
+ const o = w(t, "hs-accordion-toggle");
611
+ return /* @__PURE__ */ n.jsx("button", { ...o, ...l, children: e });
613
612
  };
614
- d(Ne, {
613
+ d(Me, {
615
614
  type: "AccordionToggle",
616
615
  label: "Accordion Toggle",
617
616
  category: "core",
@@ -627,13 +626,13 @@ d(Ne, {
627
626
  canMove: () => !1,
628
627
  canDuplicate: () => !1
629
628
  });
630
- const He = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: a }) => {
631
- const s = B(
632
- l,
629
+ const He = ({ children: e, blockProps: l, styles: t, blockState: o, inBuilder: a }) => {
630
+ const s = w(
631
+ t,
633
632
  "hs-accordion-content",
634
633
  a && o ? o != null && o.active ? "!block !opacity-100" : "!hidden !opacity-0" : ""
635
634
  );
636
- return /* @__PURE__ */ n.jsx("div", { ...s, ...t, children: e });
635
+ return /* @__PURE__ */ n.jsx("div", { ...s, ...l, children: e });
637
636
  };
638
637
  d(He, {
639
638
  type: "AccordionContent",
@@ -651,9 +650,9 @@ d(He, {
651
650
  canMove: () => !1,
652
651
  canDuplicate: () => !1
653
652
  });
654
- const Re = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: a }) => {
655
- const s = a && (o != null && o.active) ? " open" : "", r = B(l, "hs-collapse-toggle", s);
656
- return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...t, children: e });
653
+ const Re = ({ children: e, blockProps: l, styles: t, blockState: o, inBuilder: a }) => {
654
+ const s = a && (o != null && o.active) ? " open" : "", r = w(t, "hs-collapse-toggle", s);
655
+ return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...l, children: e });
657
656
  };
658
657
  d(Re, {
659
658
  type: "CollapseToggle",
@@ -668,17 +667,17 @@ d(Re, {
668
667
  "hs-collapse-open": "Collapse Open"
669
668
  },
670
669
  // @ts-ignore
671
- getBlockStateFrom: (e, t) => {
672
- const l = x(e, "styles_attrs.data-hs-collapse", "").replace("#", "");
673
- if (!l)
670
+ getBlockStateFrom: (e, l) => {
671
+ const t = x(e, "styles_attrs.data-hs-collapse", "").replace("#", "");
672
+ if (!t)
674
673
  return [];
675
- const o = O(t, (a) => x(a, "styles_attrs.id") === l);
674
+ const o = V(l, (a) => x(a, "styles_attrs.id") === t);
676
675
  return o ? [o == null ? void 0 : o._id] : [];
677
676
  }
678
677
  });
679
- const Fe = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: a }) => {
680
- const s = a ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(s).filter((p) => s[p]).join(" "), i = B(l, "hs-collapse", r);
681
- return /* @__PURE__ */ n.jsx("div", { ...i, ...t, children: e });
678
+ const Fe = ({ children: e, blockProps: l, styles: t, blockState: o, inBuilder: a }) => {
679
+ const s = a ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(s).filter((p) => s[p]).join(" "), i = w(t, "hs-collapse", r);
680
+ return /* @__PURE__ */ n.jsx("div", { ...i, ...l, children: e });
682
681
  };
683
682
  d(Fe, {
684
683
  type: "Collapse",
@@ -697,19 +696,19 @@ d(Fe, {
697
696
  },
698
697
  getBlockStateFrom: (e) => [e._id],
699
698
  // @ts-ignore
700
- blocks: () => A(`<button type="button" class="hs-collapse-toggle" id="hs-unstyled-collapse" data-hs-collapse="#hs-unstyled-collapse-content">
699
+ blocks: () => N(`<button type="button" class="hs-collapse-toggle" id="hs-unstyled-collapse" data-hs-collapse="#hs-unstyled-collapse-content">
701
700
  Collapse
702
701
  </button>
703
702
  <div id="hs-unstyled-collapse-content" class="hs-collapse hidden w-full overflow-hidden transition-[height] duration-300" aria-labelledby="hs-unstyled-collapse">
704
703
  This is a collapse body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions.
705
- </div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${g()}`))
704
+ </div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${b()}`))
706
705
  });
707
- const De = (e) => {
708
- const { blockProps: t, backgroundImage: l, children: o, styles: a } = e;
706
+ const ze = (e) => {
707
+ const { blockProps: l, backgroundImage: t, children: o, styles: a } = e;
709
708
  let s = {};
710
- return l && (s = { backgroundImage: `url(${l})` }), u.createElement("div", { ...t, ...a, style: s }, o);
709
+ return t && (s = { backgroundImage: `url(${t})` }), u.createElement("div", { ...l, ...a, style: s }, o);
711
710
  };
712
- d(De, {
711
+ d(ze, {
713
712
  type: "Body",
714
713
  label: "Body",
715
714
  category: "core",
@@ -717,18 +716,18 @@ d(De, {
717
716
  hidden: !0,
718
717
  props: {
719
718
  styles: c({ default: "font-body antialiased" }),
720
- backgroundImage: C({ title: "Background Image" })
719
+ backgroundImage: E({ title: "Background Image" })
721
720
  },
722
721
  canAcceptBlock: () => !0,
723
722
  canDelete: () => !1,
724
723
  canMove: () => !1,
725
724
  canDuplicate: () => !1
726
725
  });
727
- const ze = (e) => {
728
- const { blockProps: t, styles: l } = e;
729
- return u.createElement("br", { ...t, ...l });
726
+ const De = (e) => {
727
+ const { blockProps: l, styles: t } = e;
728
+ return u.createElement("br", { ...l, ...t });
730
729
  };
731
- d(ze, {
730
+ d(De, {
732
731
  type: "LineBreak",
733
732
  label: "Line Break",
734
733
  category: "core",
@@ -739,37 +738,37 @@ d(ze, {
739
738
  styles: c({ default: "" })
740
739
  }
741
740
  });
742
- const j = (e) => {
743
- const t = (s, r) => ({
744
- _id: g(),
741
+ const S = (e) => {
742
+ const l = (s, r) => ({
743
+ _id: b(),
745
744
  _parent: s,
746
745
  _type: "TableCell",
747
746
  styles: "#styles:,",
748
747
  content: `${e === "TableHead" ? "Table Head" : "Table Cell " + r}`
749
- }), l = (s) => {
750
- const r = g(), i = {
748
+ }), t = (s) => {
749
+ const r = b(), i = {
751
750
  _type: "TableRow",
752
751
  _id: r,
753
752
  styles: "#styles:,border-b"
754
753
  };
755
- return s && (i._parent = s), [i, t(r, "1"), t(r, "2"), t(r, "3")];
754
+ return s && (i._parent = s), [i, l(r, "1"), l(r, "2"), l(r, "3")];
756
755
  }, o = (s) => {
757
- const r = g(), i = {
756
+ const r = b(), i = {
758
757
  _id: r,
759
758
  _type: "TableHead",
760
759
  styles: "#styles:,font-medium"
761
760
  };
762
- return s && (i._parent = s), [i, ...l(r)];
761
+ return s && (i._parent = s), [i, ...t(r)];
763
762
  }, a = (s) => {
764
- const r = g(), i = {
763
+ const r = b(), i = {
765
764
  _id: r,
766
765
  _type: "TableBody",
767
766
  styles: "#styles:,"
768
767
  };
769
- return s && (i._parent = s), [i, ...l(r), ...l(r)];
768
+ return s && (i._parent = s), [i, ...t(r), ...t(r)];
770
769
  };
771
770
  if (e === "Table") {
772
- const s = g();
771
+ const s = b();
773
772
  return [
774
773
  {
775
774
  _id: s,
@@ -780,10 +779,10 @@ const j = (e) => {
780
779
  ...a(s)
781
780
  ];
782
781
  }
783
- return e === "TableRow" ? l() : e === "TableHead" ? o() : e === "TableBody" ? a() : [];
782
+ return e === "TableRow" ? t() : e === "TableHead" ? o() : e === "TableBody" ? a() : [];
784
783
  }, $e = (e) => {
785
- const { blockProps: t, children: l, styles: o } = e;
786
- return l ? u.createElement("table", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE HEAD / BODY" });
784
+ const { blockProps: l, children: t, styles: o } = e;
785
+ return t ? u.createElement("table", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
787
786
  };
788
787
  d($e, {
789
788
  type: "Table",
@@ -795,11 +794,11 @@ d($e, {
795
794
  props: {
796
795
  styles: c({ default: "" })
797
796
  },
798
- blocks: j("Table")
797
+ blocks: S("Table")
799
798
  });
800
799
  const qe = (e) => {
801
- const { blockProps: t, children: l, styles: o } = e;
802
- return l ? u.createElement("thead", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
800
+ const { blockProps: l, children: t, styles: o } = e;
801
+ return t ? u.createElement("thead", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
803
802
  };
804
803
  d(qe, {
805
804
  type: "TableHead",
@@ -811,13 +810,13 @@ d(qe, {
811
810
  props: {
812
811
  styles: c({ default: "" })
813
812
  },
814
- blocks: j("TableHead")
813
+ blocks: S("TableHead")
815
814
  });
816
- const Oe = (e) => {
817
- const { blockProps: t, children: l, styles: o } = e;
818
- return l ? u.createElement("tbody", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
815
+ const Ve = (e) => {
816
+ const { blockProps: l, children: t, styles: o } = e;
817
+ return t ? u.createElement("tbody", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
819
818
  };
820
- d(Oe, {
819
+ d(Ve, {
821
820
  type: "TableBody",
822
821
  label: "Table Body",
823
822
  category: "core",
@@ -827,13 +826,13 @@ d(Oe, {
827
826
  props: {
828
827
  styles: c({ default: "" })
829
828
  },
830
- blocks: j("TableBody")
829
+ blocks: S("TableBody")
831
830
  });
832
- const Ve = (e) => {
833
- const { blockProps: t, children: l, styles: o } = e;
834
- return l ? u.createElement("tr", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE CELL" });
831
+ const Oe = (e) => {
832
+ const { blockProps: l, children: t, styles: o } = e;
833
+ return t ? u.createElement("tr", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
835
834
  };
836
- d(Ve, {
835
+ d(Oe, {
837
836
  type: "TableRow",
838
837
  label: "Table Row",
839
838
  category: "core",
@@ -843,12 +842,12 @@ d(Ve, {
843
842
  props: {
844
843
  styles: c({ default: "w-full" })
845
844
  },
846
- blocks: j("TableRow")
845
+ blocks: S("TableRow")
847
846
  });
848
847
  const Ue = (e) => {
849
- const { blockProps: t, children: l, content: o, styles: a } = e;
850
- return !l && k(o) ? /* @__PURE__ */ n.jsx(v, { blockProps: t }) : l ? u.createElement("td", { ...t, ...a }, l) : u.createElement("td", {
851
- ...t,
848
+ const { blockProps: l, children: t, content: o, styles: a } = e;
849
+ return !t && k(o) ? /* @__PURE__ */ n.jsx(v, {}) : t ? u.createElement("td", { ...l, ...a }, t) : u.createElement("td", {
850
+ ...l,
852
851
  ...a,
853
852
  dangerouslySetInnerHTML: { __html: o }
854
853
  });
@@ -866,10 +865,10 @@ d(Ue, {
866
865
  }
867
866
  });
868
867
  const Ge = (e) => {
869
- const { blockProps: t, errorMessage: l, name: o, _type: a, successMessage: s, action: r, styles: i, children: p } = e;
868
+ const { blockProps: l, errorMessage: t, name: o, _type: a, successMessage: s, action: r, styles: i, children: p } = e;
870
869
  let h = p;
871
- p || (h = /* @__PURE__ */ n.jsx(v, { blockProps: {}, text: "FORM FIELDS" }));
872
- const b = {
870
+ p || (h = /* @__PURE__ */ n.jsx(v, {}));
871
+ const g = {
873
872
  "x-data": "useForm",
874
873
  "x-on:submit.prevent": "post"
875
874
  }, m = {
@@ -879,12 +878,12 @@ const Ge = (e) => {
879
878
  return /* @__PURE__ */ n.jsxs(
880
879
  "form",
881
880
  {
882
- ...b,
883
- "data-error": l,
881
+ ...g,
882
+ "data-error": t,
884
883
  "data-success": s,
885
884
  method: "post",
886
885
  action: r,
887
- ...t,
886
+ ...l,
888
887
  ...i,
889
888
  children: [
890
889
  /* @__PURE__ */ n.jsx("div", { ...m }),
@@ -919,10 +918,10 @@ d(Ge, {
919
918
  canAcceptBlock: () => !0
920
919
  });
921
920
  const We = (e) => {
922
- const { blockProps: t, content: l, styles: o, children: a } = e, s = { ...o, ...t };
921
+ const { blockProps: l, content: t, styles: o, children: a } = e, s = { ...o, ...l };
923
922
  return a ? u.createElement("label", s, a) : u.createElement("label", {
924
923
  ...s,
925
- dangerouslySetInnerHTML: { __html: l }
924
+ dangerouslySetInnerHTML: { __html: t }
926
925
  });
927
926
  };
928
927
  d(We, {
@@ -937,8 +936,8 @@ d(We, {
937
936
  content: y({ title: "Content", default: "Label", ai: { html: !1 } })
938
937
  }
939
938
  });
940
- const Ye = (e) => {
941
- const { blockProps: t, inBuilder: l, label: o, styles: a, inputStyles: s, icon: r, iconPos: i } = e, p = g(), h = {
939
+ const Xe = (e) => {
940
+ const { blockProps: l, inBuilder: t, label: o, styles: a, inputStyles: s, icon: r, iconPos: i } = e, p = b(), h = {
942
941
  "x-bind:disabled": "formLoading"
943
942
  };
944
943
  return /* @__PURE__ */ n.jsxs(
@@ -948,8 +947,8 @@ const Ye = (e) => {
948
947
  ...h,
949
948
  ...s,
950
949
  ...a,
951
- ...t || {},
952
- type: l ? "button" : "submit",
950
+ ...l || {},
951
+ type: t ? "button" : "submit",
953
952
  children: [
954
953
  o,
955
954
  r && /* @__PURE__ */ n.jsx("span", { className: i, dangerouslySetInnerHTML: { __html: r } })
@@ -957,7 +956,7 @@ const Ye = (e) => {
957
956
  }
958
957
  );
959
958
  };
960
- d(Ye, {
959
+ d(Xe, {
961
960
  type: "FormButton",
962
961
  label: "Submit Button",
963
962
  category: "core",
@@ -970,7 +969,7 @@ d(Ye, {
970
969
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
971
970
  }),
972
971
  icon: P({ title: "Icon", default: "" }),
973
- iconPos: w({
972
+ iconPos: B({
974
973
  title: "Icon Position",
975
974
  default: "order-last",
976
975
  options: [
@@ -980,14 +979,14 @@ d(Ye, {
980
979
  })
981
980
  }
982
981
  });
983
- const Xe = (e) => {
984
- const { blockProps: t, fieldName: l, label: o, styles: a, inputStyles: s, required: r, checked: i, showLabel: p = !0 } = e, h = g();
985
- return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
982
+ const Ye = (e) => {
983
+ const { blockProps: l, fieldName: t, label: o, styles: a, inputStyles: s, required: r, checked: i, showLabel: p = !0 } = e, h = b();
984
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...l, children: [
986
985
  /* @__PURE__ */ n.jsx(
987
986
  "input",
988
987
  {
989
988
  ...s,
990
- name: l,
989
+ name: t,
991
990
  id: h,
992
991
  type: "checkbox",
993
992
  required: r,
@@ -999,16 +998,16 @@ const Xe = (e) => {
999
998
  "input",
1000
999
  {
1001
1000
  id: h,
1002
- ...t,
1001
+ ...l,
1003
1002
  ...s,
1004
1003
  ...a,
1005
1004
  type: "checkbox",
1006
1005
  required: r,
1007
- name: l
1006
+ name: t
1008
1007
  }
1009
1008
  );
1010
1009
  };
1011
- d(Xe, {
1010
+ d(Ye, {
1012
1011
  type: "Checkbox",
1013
1012
  label: "Checkbox",
1014
1013
  category: "core",
@@ -1025,8 +1024,8 @@ d(Xe, {
1025
1024
  });
1026
1025
  const Ze = (e) => {
1027
1026
  const {
1028
- blockProps: t,
1029
- label: l,
1027
+ blockProps: l,
1028
+ label: t,
1030
1029
  placeholder: o,
1031
1030
  styles: a,
1032
1031
  inputStyles: s,
@@ -1034,27 +1033,27 @@ const Ze = (e) => {
1034
1033
  required: i,
1035
1034
  inputType: p = "text",
1036
1035
  inBuilder: h,
1037
- fieldName: b
1038
- } = e, m = g();
1039
- return !r || p === "submit" ? (p === "submit" && (t.value = l), /* @__PURE__ */ n.jsx(
1036
+ fieldName: g
1037
+ } = e, m = b();
1038
+ return !r || p === "submit" ? (p === "submit" && (l.value = t), /* @__PURE__ */ n.jsx(
1040
1039
  "input",
1041
1040
  {
1042
1041
  id: m,
1043
- name: b,
1042
+ name: g,
1044
1043
  readOnly: h,
1045
- ...t,
1044
+ ...l,
1046
1045
  ...s,
1047
1046
  ...a,
1048
1047
  type: p,
1049
1048
  placeholder: o,
1050
1049
  required: i
1051
1050
  }
1052
- )) : /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
1053
- r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children: l }),
1051
+ )) : /* @__PURE__ */ n.jsxs("div", { ...a, ...l, children: [
1052
+ r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children: t }),
1054
1053
  /* @__PURE__ */ n.jsx(
1055
1054
  "input",
1056
1055
  {
1057
- name: b,
1056
+ name: g,
1058
1057
  readOnly: h,
1059
1058
  ...s,
1060
1059
  id: m,
@@ -1069,15 +1068,15 @@ d(Ze, {
1069
1068
  type: "Input",
1070
1069
  label: "Input",
1071
1070
  category: "core",
1072
- icon: D,
1071
+ icon: z,
1073
1072
  group: "form",
1074
1073
  hidden: !0,
1075
1074
  props: {
1076
1075
  styles: c({ default: "" }),
1077
1076
  fieldName: y({ title: "Field Name", default: "input" }),
1078
- inputType: w({
1077
+ inputType: B({
1079
1078
  title: "Type",
1080
- options: E(
1079
+ options: C(
1081
1080
  ["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
1082
1081
  (e) => ({
1083
1082
  value: e,
@@ -1098,21 +1097,21 @@ d(Ze, {
1098
1097
  }
1099
1098
  });
1100
1099
  const Je = (e) => {
1101
- const { blockProps: t, fieldName: l, label: o, styles: a, inputStyles: s, checked: r, required: i, showLabel: p = !0 } = e, h = g();
1102
- return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
1103
- /* @__PURE__ */ n.jsx("input", { ...s, name: l, id: h, type: "radio", required: i, defaultChecked: r }),
1100
+ const { blockProps: l, fieldName: t, label: o, styles: a, inputStyles: s, checked: r, required: i, showLabel: p = !0 } = e, h = b();
1101
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...l, children: [
1102
+ /* @__PURE__ */ n.jsx("input", { ...s, name: t, id: h, type: "radio", required: i, defaultChecked: r }),
1104
1103
  o && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
1105
1104
  ] }) : /* @__PURE__ */ n.jsx(
1106
1105
  "input",
1107
1106
  {
1108
1107
  id: h,
1109
- ...t,
1108
+ ...l,
1110
1109
  ...s,
1111
1110
  ...a,
1112
1111
  type: "radio",
1113
1112
  required: i,
1114
1113
  checked: r,
1115
- name: l
1114
+ name: t
1116
1115
  }
1117
1116
  );
1118
1117
  };
@@ -1133,8 +1132,8 @@ d(Je, {
1133
1132
  });
1134
1133
  const Ke = (e) => {
1135
1134
  const {
1136
- blockProps: t,
1137
- fieldName: l,
1135
+ blockProps: l,
1136
+ fieldName: t,
1138
1137
  label: o,
1139
1138
  placeholder: a,
1140
1139
  styles: s,
@@ -1142,20 +1141,20 @@ const Ke = (e) => {
1142
1141
  required: i,
1143
1142
  showLabel: p,
1144
1143
  _multiple: h = !1
1145
- } = e, b = g();
1144
+ } = e, g = b();
1146
1145
  return p ? /* @__PURE__ */ n.jsxs("div", { ...s, children: [
1147
- p && /* @__PURE__ */ n.jsx("label", { htmlFor: b, children: o }),
1146
+ p && /* @__PURE__ */ n.jsx("label", { htmlFor: g, children: o }),
1148
1147
  /* @__PURE__ */ n.jsxs(
1149
1148
  "select",
1150
1149
  {
1151
1150
  ...r,
1152
- id: b,
1151
+ id: g,
1153
1152
  required: i,
1154
1153
  multiple: h,
1155
- name: l,
1154
+ name: t,
1156
1155
  children: [
1157
1156
  /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
1158
- E(e.options, (m) => /* @__PURE__ */ n.jsx(
1157
+ C(e.options, (m) => /* @__PURE__ */ n.jsx(
1159
1158
  "option",
1160
1159
  {
1161
1160
  selected: x(m, "selected", !1),
@@ -1170,15 +1169,15 @@ const Ke = (e) => {
1170
1169
  ] }) : /* @__PURE__ */ n.jsxs(
1171
1170
  "select",
1172
1171
  {
1173
- id: b,
1172
+ id: g,
1174
1173
  ...s,
1175
- ...t,
1174
+ ...l,
1176
1175
  required: i,
1177
1176
  multiple: h,
1178
- name: l,
1177
+ name: t,
1179
1178
  children: [
1180
1179
  /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
1181
- E(e.options, (m) => /* @__PURE__ */ n.jsx(
1180
+ C(e.options, (m) => /* @__PURE__ */ n.jsx(
1182
1181
  "option",
1183
1182
  {
1184
1183
  selected: x(m, "selected", !1),
@@ -1220,16 +1219,16 @@ d(Ke, {
1220
1219
  }
1221
1220
  });
1222
1221
  const Qe = (e) => {
1223
- const { blockProps: t, fieldName: l, label: o, placeholder: a, styles: s, inputStyles: r, _rows: i, showLabel: p } = e, h = g();
1224
- return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
1222
+ const { blockProps: l, fieldName: t, label: o, placeholder: a, styles: s, inputStyles: r, _rows: i, showLabel: p } = e, h = b();
1223
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...l, children: [
1225
1224
  p && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o }),
1226
- /* @__PURE__ */ n.jsx("textarea", { name: l, ...r, id: h, placeholder: a, rows: i })
1225
+ /* @__PURE__ */ n.jsx("textarea", { name: t, ...r, id: h, placeholder: a, rows: i })
1227
1226
  ] }) : /* @__PURE__ */ n.jsx(
1228
1227
  "textarea",
1229
1228
  {
1230
1229
  id: h,
1231
- name: l,
1232
- ...t,
1230
+ name: t,
1231
+ ...l,
1233
1232
  ...r,
1234
1233
  ...s,
1235
1234
  placeholder: a,
@@ -1241,7 +1240,7 @@ d(Qe, {
1241
1240
  type: "TextArea",
1242
1241
  label: "TextArea",
1243
1242
  category: "core",
1244
- icon: D,
1243
+ icon: z,
1245
1244
  group: "form",
1246
1245
  hidden: !0,
1247
1246
  props: {
@@ -1257,7 +1256,7 @@ d(Qe, {
1257
1256
  _rows: _({ title: "Rows", default: 3 })
1258
1257
  }
1259
1258
  });
1260
- const ht = V;
1259
+ const ht = O;
1261
1260
  export {
1262
1261
  ht as loadWebBlocks
1263
1262
  };