@chaibuilder/sdk 1.2.50 → 1.2.52

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 (88) hide show
  1. package/dist/{AddBlocks-IX7HKzSe.js → AddBlocks-GxEmM16E.js} +18 -18
  2. package/dist/{AddBlocks-zwZ63DdP.cjs → AddBlocks-fozauzIV.cjs} +1 -1
  3. package/dist/CanvasArea-NRtblq5d.cjs +56 -0
  4. package/dist/{CanvasArea-ehmBje_E.js → CanvasArea-rdY6SFYn.js} +57 -57
  5. package/dist/{ChaiBuilderEditor-ZRHqW7Gd.cjs → ChaiBuilderEditor-Pga_zJgw.cjs} +55 -55
  6. package/dist/{ChaiBuilderEditor-3xIN-AP_.js → ChaiBuilderEditor-bNZZWYMh.js} +14537 -14544
  7. package/dist/CodeEditor-tqtgia3I.js +115 -0
  8. package/dist/CodeEditor-ye3IXW3i.cjs +1 -0
  9. package/dist/{CurrentPage-qhBjm7th.js → CurrentPage-7NM90y76.js} +8 -8
  10. package/dist/{CurrentPage-HOPNdQZ-.cjs → CurrentPage-sx7KVTmt.cjs} +1 -1
  11. package/dist/ListTree-7Pz6H6eE.cjs +1 -0
  12. package/dist/ListTree-oRbeDNod.js +25724 -0
  13. package/dist/{PagesPanel-kdl4A0IN.cjs → PagesPanel-Nr-908vy.cjs} +1 -1
  14. package/dist/{PagesPanel-5iVsbDP1.js → PagesPanel-XiTUaiq_.js} +5 -5
  15. package/dist/{ProjectPanel-mXPBI-TU.cjs → ProjectPanel-SuFYN60H.cjs} +1 -1
  16. package/dist/{ProjectPanel-c8oTzhQd.js → ProjectPanel-XfknsGkz.js} +5 -5
  17. package/dist/Settings-22Hy7jUT.cjs +1 -0
  18. package/dist/{Settings-0uSGoECC.js → Settings-dJ72rwnH.js} +408 -401
  19. package/dist/{SidePanels-kKram02Q.cjs → SidePanels-5dnRAsJh.cjs} +1 -1
  20. package/dist/{SidePanels-YLWdBer9.js → SidePanels-t9oUA51J.js} +38 -38
  21. package/dist/{ThemeConfiguration-8W1CM4tW.cjs → ThemeConfiguration-2Sbh29qi.cjs} +1 -1
  22. package/dist/{ThemeConfiguration-AAGFJieC.js → ThemeConfiguration-pcHbYiIP.js} +9 -9
  23. package/dist/{Topbar-nX9Muoem.js → Topbar-0DmS6VpB.js} +4 -4
  24. package/dist/{Topbar-CLNUPx7K.cjs → Topbar-ID6Ipphd.cjs} +1 -1
  25. package/dist/{UILibrariesPanel-fKn2nlgI.js → UILibrariesPanel-G9J4KUsZ.js} +6 -6
  26. package/dist/{UILibrariesPanel-cp0Mkaq_.cjs → UILibrariesPanel-sXY6hozJ.cjs} +1 -1
  27. package/dist/{UnsplashImages-56HoW_ZA.cjs → UnsplashImages-HK4_1VVL.cjs} +1 -1
  28. package/dist/{UnsplashImages-zTZa3LjG.js → UnsplashImages-MeS5Cu7a.js} +4 -4
  29. package/dist/{UploadImages-SnfaTrlz.js → UploadImages-AIKATqfP.js} +2 -2
  30. package/dist/{UploadImages-okNGjkXb.cjs → UploadImages-LSnxByGV.cjs} +1 -1
  31. package/dist/{add-page-modal-uDoO0zws.js → add-page-modal-JkD45moJ.js} +9 -9
  32. package/dist/{add-page-modal-Y2RY3x01.cjs → add-page-modal-krxKdX7-.cjs} +1 -1
  33. package/dist/{confirm-alert-aD7AMK_6.cjs → confirm-alert--QTC21Z2.cjs} +1 -1
  34. package/dist/{confirm-alert-9XiVxCc0.js → confirm-alert-NHxthdRK.js} +2 -2
  35. package/dist/core.cjs +1 -1
  36. package/dist/core.d.ts +9 -0
  37. package/dist/core.js +32 -31
  38. package/dist/{delete-page-modal-7sfoFf9r.js → delete-page-modal-8rjPEchH.js} +4 -4
  39. package/dist/{delete-page-modal-ieJ367JA.cjs → delete-page-modal-BIe0kYNH.cjs} +1 -1
  40. package/dist/email.cjs +1 -1
  41. package/dist/email.js +2 -2
  42. package/dist/{form-KWYHDVIf.cjs → form-6OLp5uEG.cjs} +1 -1
  43. package/dist/{form-PQSmqcIl.js → form-PQYPrD_Q.js} +5 -5
  44. package/dist/functions--tdNWQDW.js +30 -0
  45. package/dist/functions-EVUeSwX1.cjs +1 -0
  46. package/dist/html-to-json-9uiQ2Dp2.cjs +1 -0
  47. package/dist/html-to-json-ofq1N3tB.js +186 -0
  48. package/dist/index--mLLy7QQ.cjs +1 -0
  49. package/dist/index-9_b2eou7.js +2201 -0
  50. package/dist/index-VBXQixVm.js +117 -0
  51. package/dist/index-seU0_UZX.cjs +1 -0
  52. package/dist/lib.cjs +1 -1
  53. package/dist/lib.js +11 -11
  54. package/dist/{page-viewer-aoro5JxT.cjs → page-viewer-WwwMC1Kq.cjs} +1 -1
  55. package/dist/{page-viewer-qkwZJ6e-.js → page-viewer-sKluQ_e1.js} +10 -10
  56. package/dist/{project-general-setting-3gkaXq1F.js → project-general-setting-Lc2ByvTt.js} +7 -7
  57. package/dist/{project-general-setting-arXitV5_.cjs → project-general-setting-pRO1ikDV.cjs} +1 -1
  58. package/dist/{project-seo-setting-X8pykTmc.js → project-seo-setting-530_6o9S.js} +3 -3
  59. package/dist/{project-seo-setting-kjtUt-er.cjs → project-seo-setting-BzSrXFVv.cjs} +1 -1
  60. package/dist/render.cjs +1 -1
  61. package/dist/render.js +2 -2
  62. package/dist/{single-page-detail-UsWG0gfh.cjs → single-page-detail-_VP4zaCI.cjs} +1 -1
  63. package/dist/{single-page-detail-ZXZX6Xmw.js → single-page-detail-qDxxtedN.js} +6 -6
  64. package/dist/studio.cjs +1 -1
  65. package/dist/studio.js +4 -4
  66. package/dist/ui.cjs +1 -1
  67. package/dist/ui.js +98 -98
  68. package/dist/useCanvasSettings-5y2fSCpN.js +6 -0
  69. package/dist/useCanvasSettings-pURFQG4q.cjs +1 -0
  70. package/dist/web-blocks.cjs +1 -1
  71. package/dist/web-blocks.js +320 -320
  72. package/package.json +3 -2
  73. package/dist/CanvasArea-URgoG1jc.cjs +0 -56
  74. package/dist/CodeEditor-0F7Dz3AB.js +0 -97
  75. package/dist/CodeEditor-1vu-qNgT.cjs +0 -1
  76. package/dist/ListTree-DkbFFDXB.cjs +0 -1
  77. package/dist/ListTree-sTwXvXST.js +0 -409
  78. package/dist/Settings-3kBSStO6.cjs +0 -1
  79. package/dist/functions-JO0EW8GX.js +0 -30
  80. package/dist/functions-ZZVUnIjD.cjs +0 -1
  81. package/dist/html-to-json-GJ6RioQf.js +0 -221
  82. package/dist/html-to-json-O1OpqICe.cjs +0 -1
  83. package/dist/index-VOrp9ZpX.cjs +0 -1
  84. package/dist/index-YpnaudSM.js +0 -63
  85. package/dist/index-ecnGWzh9.cjs +0 -1
  86. package/dist/index-i2kgLkjC.js +0 -2201
  87. package/dist/useCodeEditor-CtjbxWLf.cjs +0 -1
  88. package/dist/useCodeEditor-yl5V3Hte.js +0 -7
@@ -1,31 +1,31 @@
1
1
  import { isNull as A, isEmpty as x, get as B, pick as G, omit as q, map as L, noop as F } from "lodash-es";
2
- import { j as r } from "./jsx-runtime-WbnYoNE9.js";
3
- import * as o from "react";
4
- import { o as v, f as y, v as T, r as b, b as D, g as d, T as j, y as k, q as $, h as V, c as p, u as E, S as O } from "./controls-yjgoZzB6.js";
5
- import { registerChaiBlock as h } from "@chaibuilder/runtime";
2
+ import { j as i } from "./jsx-runtime-WbnYoNE9.js";
3
+ import * as n from "react";
4
+ import { o, f as y, v as T, r as b, b as D, g as z, T as j, y as k, q as $, h as V, c as p, u as E, S as O } from "./controls-yjgoZzB6.js";
5
+ import { registerChaiBlock as d } from "@chaibuilder/runtime";
6
6
  import { E as f } from "./empty-slot-Lsxjts7Q.js";
7
- import { HeadingIcon as U, TextIcon as J, CursorTextIcon as W, ButtonIcon as N, Link1Icon as Y, RowsIcon as K, ColumnsIcon as X, SketchLogoIcon as Z, ImageIcon as Q, VideoIcon as c0, CodeIcon as t0, DividerHorizontalIcon as l0, SpaceBetweenVerticallyIcon as H, TableIcon as e0, BorderTopIcon as s0, BorderAllIcon as a0, ViewHorizontalIcon as r0, DragHandleHorizontalIcon as i0, GroupIcon as n0, LetterCaseToggleIcon as o0, CheckboxIcon as v0, InputIcon as R, RadiobuttonIcon as h0, DropdownMenuIcon as M0 } from "@radix-ui/react-icons";
7
+ import { HeadingIcon as U, TextIcon as J, CursorTextIcon as W, ButtonIcon as N, Link1Icon as Y, RowsIcon as K, ColumnsIcon as X, SketchLogoIcon as Z, ImageIcon as Q, VideoIcon as c0, CodeIcon as t0, DividerHorizontalIcon as l0, SpaceBetweenVerticallyIcon as H, TableIcon as e0, BorderTopIcon as s0, BorderAllIcon as a0, ViewHorizontalIcon as i0, DragHandleHorizontalIcon as r0, GroupIcon as h0, LetterCaseToggleIcon as n0, CheckboxIcon as o0, InputIcon as R, RadiobuttonIcon as d0, DropdownMenuIcon as v0 } from "@radix-ui/react-icons";
8
8
  import { c as I, g as m } from "./Functions-7jnEwJyw.js";
9
- import { G as z0 } from "./index-YpnaudSM.js";
9
+ import { G as M0 } from "./index-VBXQixVm.js";
10
10
  import "./_commonjsHelpers-UyOWmZb0.js";
11
11
  import "clsx";
12
12
  import "tailwind-merge";
13
- const d0 = o.memo(
13
+ const z0 = n.memo(
14
14
  (c) => {
15
- const { blockProps: l, inBuilder: t, backgroundImage: e, children: a, tag: s = "div", styles: i } = c;
16
- let n = a;
17
- a || (n = /* @__PURE__ */ r.jsx(f, { inBuilder: t }));
18
- let M = {};
19
- return e && (M = { backgroundImage: `url(${e})` }), o.createElement(s, { ...l, ...i, style: M }, n);
15
+ const { blockProps: l, inBuilder: t, backgroundImage: e, children: s, tag: a = "div", styles: r } = c;
16
+ let h = s;
17
+ s || (h = /* @__PURE__ */ i.jsx(f, { inBuilder: t }));
18
+ let v = {};
19
+ return e && (v = { backgroundImage: `url(${e})` }), n.createElement(a, { ...l, ...r, style: v }, h);
20
20
  }
21
21
  );
22
- h(d0, {
22
+ d(z0, {
23
23
  type: "Box",
24
24
  label: "Box",
25
25
  category: "core",
26
26
  group: "basic",
27
27
  props: {
28
- styles: v({ default: "" }),
28
+ styles: o({ default: "" }),
29
29
  tag: y({
30
30
  title: "Tag",
31
31
  default: "div",
@@ -53,25 +53,25 @@ h(d0, {
53
53
  },
54
54
  canAcceptBlock: () => !0
55
55
  });
56
- const g0 = o.memo(
56
+ const g0 = n.memo(
57
57
  (c) => {
58
58
  const { blockProps: l, styles: t } = c;
59
- return o.createElement("div", { ...l, ...t });
59
+ return n.createElement("div", { ...l, ...t });
60
60
  }
61
61
  );
62
- h(g0, {
62
+ d(g0, {
63
63
  type: "EmptyBox",
64
64
  label: "Empty Box",
65
65
  category: "core",
66
66
  group: "basic",
67
67
  props: {
68
- styles: v({ default: "" })
68
+ styles: o({ default: "" })
69
69
  },
70
70
  canAcceptBlock: () => !1
71
71
  });
72
72
  const u0 = (c) => {
73
- const { blockProps: l, styles: t, content: e, level: a = "h1", children: s = null } = c;
74
- return s ? o.createElement(a, { ...t, ...l }, s) : o.createElement(a, {
73
+ const { blockProps: l, styles: t, content: e, level: s = "h1", children: a = null } = c;
74
+ return a ? n.createElement(s, { ...t, ...l }, a) : n.createElement(s, {
75
75
  ...t,
76
76
  ...l,
77
77
  "data-ai-key": "content",
@@ -79,7 +79,7 @@ const u0 = (c) => {
79
79
  dangerouslySetInnerHTML: { __html: e }
80
80
  });
81
81
  };
82
- h(u0, {
82
+ d(u0, {
83
83
  type: "Heading",
84
84
  label: "Heading",
85
85
  category: "core",
@@ -99,29 +99,29 @@ h(u0, {
99
99
  { value: "h6", title: "h6" }
100
100
  ]
101
101
  }),
102
- styles: v({ default: "text-3xl" }),
102
+ styles: o({ default: "text-3xl" }),
103
103
  content: b({ title: "Content", default: "Heading goes here" })
104
104
  },
105
105
  canAcceptBlock: (c) => c === "Span" || c === "Text"
106
106
  });
107
107
  const p0 = (c) => {
108
108
  const { blockProps: l, styles: t, content: e } = c;
109
- return A(c.children) ? o.createElement("p", {
109
+ return A(c.children) ? n.createElement("p", {
110
110
  ...t,
111
111
  ...l,
112
112
  "data-ai-key": "content",
113
113
  "data-ai-type": "html",
114
114
  dangerouslySetInnerHTML: { __html: e }
115
- }) : o.createElement("p", { ...t, ...l }, c.children);
115
+ }) : n.createElement("p", { ...t, ...l }, c.children);
116
116
  };
117
- h(p0, {
117
+ d(p0, {
118
118
  type: "Paragraph",
119
119
  label: "Paragraph",
120
120
  category: "core",
121
121
  icon: J,
122
122
  group: "typography",
123
123
  props: {
124
- styles: v({ default: "" }),
124
+ styles: o({ default: "" }),
125
125
  content: b({
126
126
  title: "Content",
127
127
  default: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere."
@@ -130,28 +130,28 @@ h(p0, {
130
130
  canAcceptBlock: (c) => c === "Span" || c === "Link"
131
131
  });
132
132
  const f0 = (c) => {
133
- const { blockProps: l, styles: t, content: e, children: a = null, tag: s } = c;
134
- return a ? o.createElement("span", { ...t, ...l }, a) : o.createElement(s || "span", {
133
+ const { blockProps: l, styles: t, content: e, children: s = null, tag: a } = c;
134
+ return s ? n.createElement("span", { ...t, ...l }, s) : n.createElement(a || "span", {
135
135
  ...t,
136
136
  ...l,
137
137
  "data-ai-key": "content",
138
138
  dangerouslySetInnerHTML: { __html: e }
139
139
  });
140
140
  };
141
- h(f0, {
141
+ d(f0, {
142
142
  type: "Span",
143
143
  label: "Span",
144
144
  category: "core",
145
145
  group: "typography",
146
146
  props: {
147
- styles: v({ default: "" }),
147
+ styles: o({ default: "" }),
148
148
  content: b({ title: "Content", default: "" })
149
149
  },
150
150
  canAcceptBlock: () => !0
151
151
  });
152
152
  const m0 = (c) => {
153
153
  const { blockProps: l, content: t, styles: e } = c;
154
- return /* @__PURE__ */ r.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ r.jsx(
154
+ return /* @__PURE__ */ i.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ i.jsx(
155
155
  "div",
156
156
  {
157
157
  "data-ai-key": "content",
@@ -162,14 +162,14 @@ const m0 = (c) => {
162
162
  }
163
163
  ) });
164
164
  };
165
- h(m0, {
165
+ d(m0, {
166
166
  type: "RichText",
167
167
  label: "Rich Text",
168
168
  category: "core",
169
169
  icon: W,
170
170
  group: "typography",
171
171
  props: {
172
- styles: v({ default: "" }),
172
+ styles: o({ default: "" }),
173
173
  content: D({
174
174
  title: "Content",
175
175
  default: "<p>This is a rich text block. You can add text, and other content here.</p>"
@@ -177,36 +177,36 @@ h(m0, {
177
177
  }
178
178
  });
179
179
  const x0 = (c) => {
180
- const { blockProps: l, iconSize: t, icon: e, content: a, iconPos: s, styles: i, children: n } = c, M = e, z = n || /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
181
- /* @__PURE__ */ r.jsx("span", { "data-ai-key": "content", children: a }),
182
- M && /* @__PURE__ */ r.jsx(
180
+ const { blockProps: l, iconSize: t, icon: e, content: s, iconPos: a, styles: r, children: h } = c, v = e, M = h || /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
181
+ /* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", children: s }),
182
+ v && /* @__PURE__ */ i.jsx(
183
183
  "div",
184
184
  {
185
185
  style: { width: t + "px" },
186
- className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
187
- dangerouslySetInnerHTML: { __html: M }
186
+ className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
187
+ dangerouslySetInnerHTML: { __html: v }
188
188
  }
189
189
  )
190
190
  ] });
191
- return o.createElement(
191
+ return n.createElement(
192
192
  "button",
193
193
  {
194
194
  ...l,
195
- ...i,
195
+ ...r,
196
196
  type: "button"
197
197
  },
198
- z
198
+ M
199
199
  );
200
200
  };
201
- h(x0, {
201
+ d(x0, {
202
202
  type: "Button",
203
203
  label: "Button",
204
204
  category: "core",
205
205
  icon: N,
206
206
  group: "basic",
207
207
  props: {
208
- content: d({ title: "Label", default: "Button" }),
209
- styles: v({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
208
+ content: z({ title: "Label", default: "Button" }),
209
+ styles: o({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
210
210
  icon: j({ title: "Icon", default: "" }),
211
211
  iconSize: k({ title: "Icon Size", default: 24 }),
212
212
  iconPos: y({
@@ -220,52 +220,52 @@ h(x0, {
220
220
  }
221
221
  });
222
222
  const B0 = (c) => {
223
- const { blockProps: l, link: t, children: e, styles: a, inBuilder: s, content: i } = c;
224
- return !e && x(a == null ? void 0 : a.className) && x(i) ? /* @__PURE__ */ r.jsx(f, { inBuilder: s }) : s ? e ? /* @__PURE__ */ r.jsx("span", { ...l, ...a, children: e }) : o.createElement("span", {
223
+ const { blockProps: l, link: t, children: e, styles: s, inBuilder: a, content: r } = c;
224
+ return !e && x(s == null ? void 0 : s.className) && x(r) ? /* @__PURE__ */ i.jsx(f, { inBuilder: a }) : a ? e ? /* @__PURE__ */ i.jsx("span", { ...l, ...s, children: e }) : n.createElement("span", {
225
225
  ...l,
226
- ...a,
227
- dangerouslySetInnerHTML: { __html: i }
228
- }) : e ? /* @__PURE__ */ r.jsx("a", { href: t.href || "#/", target: t.target, ...l, ...a, children: e }) : o.createElement("a", {
226
+ ...s,
227
+ dangerouslySetInnerHTML: { __html: r }
228
+ }) : e ? /* @__PURE__ */ i.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...s, children: e }) : n.createElement("a", {
229
229
  ...l,
230
- ...a,
230
+ ...s,
231
231
  "data-ai-key": "content",
232
- href: t.href || "#",
233
- target: t.target || "_self",
234
- dangerouslySetInnerHTML: { __html: i }
232
+ href: (t == null ? void 0 : t.href) || "#",
233
+ target: (t == null ? void 0 : t.target) || "_self",
234
+ dangerouslySetInnerHTML: { __html: r }
235
235
  });
236
236
  };
237
- h(B0, {
237
+ d(B0, {
238
238
  type: "Link",
239
239
  label: "Link",
240
240
  category: "core",
241
241
  icon: Y,
242
242
  group: "basic",
243
243
  props: {
244
- styles: v({ default: "" }),
245
- content: d({ title: "Content", default: "" }),
244
+ styles: o({ default: "" }),
245
+ content: z({ title: "Content", default: "" }),
246
246
  link: $({
247
247
  title: "Link",
248
- default: { type: "page", target: "_self", href: "" }
248
+ default: { type: "page", target: "_self", href: "#" }
249
249
  })
250
250
  },
251
251
  canAcceptBlock: (c) => c !== "Link"
252
252
  });
253
253
  const y0 = (c) => {
254
- const { blockProps: l, children: t, listType: e, styles: a, tag: s, inBuilder: i } = c, n = I(B(a, "className", ""), e);
255
- return !t && x(a == null ? void 0 : a.className) ? /* @__PURE__ */ r.jsx(f, { inBuilder: i }) : o.createElement(
256
- s || (e === "list-decimal" ? "ol" : "ul"),
257
- { ...l, ...a, className: n },
254
+ const { blockProps: l, children: t, listType: e, styles: s, tag: a, inBuilder: r } = c, h = I(B(s, "className", ""), e);
255
+ return !t && x(s == null ? void 0 : s.className) ? /* @__PURE__ */ i.jsx(f, { inBuilder: r }) : n.createElement(
256
+ a || (e === "list-decimal" ? "ol" : "ul"),
257
+ { ...l, ...s, className: h },
258
258
  t
259
259
  );
260
260
  };
261
- h(y0, {
261
+ d(y0, {
262
262
  type: "List",
263
263
  label: "List",
264
264
  icon: K,
265
265
  category: "core",
266
266
  group: "basic",
267
267
  props: {
268
- styles: v({ default: "" }),
268
+ styles: o({ default: "" }),
269
269
  listType: y({
270
270
  title: "List type",
271
271
  default: "list-none",
@@ -303,22 +303,22 @@ h(y0, {
303
303
  ]
304
304
  });
305
305
  const w0 = (c) => {
306
- const { blockProps: l, content: t, styles: e, children: a, tag: s } = c;
307
- return a ? o.createElement(s || "li", { ...e, ...l }, a) : o.createElement(s || "li", {
306
+ const { blockProps: l, content: t, styles: e, children: s, tag: a } = c;
307
+ return s ? n.createElement(a || "li", { ...e, ...l }, s) : n.createElement(a || "li", {
308
308
  ...e,
309
309
  ...l,
310
310
  "data-ai-key": "content",
311
311
  dangerouslySetInnerHTML: { __html: t }
312
312
  });
313
313
  };
314
- h(w0, {
314
+ d(w0, {
315
315
  type: "ListItem",
316
316
  label: "List Item",
317
317
  icon: X,
318
318
  category: "core",
319
319
  group: "basic",
320
320
  props: {
321
- styles: v({ default: "" }),
321
+ styles: o({ default: "" }),
322
322
  content: b({ title: "Content", default: "List item" })
323
323
  },
324
324
  canAcceptBlock: (c) => c !== "ListItem",
@@ -328,24 +328,24 @@ const b0 = (c, ...l) => ({
328
328
  ...c,
329
329
  className: I(c.className, ...l)
330
330
  }), D0 = (c) => {
331
- const { blockProps: l, icon: t, styles: e, width: a, inBuilder: s, height: i } = c, n = b0(e, I(a ? `w-[${a}px]` : "", i ? `h-[${i}px]` : ""));
331
+ const { blockProps: l, icon: t, styles: e, width: s, inBuilder: a, height: r } = c, h = b0(e, I(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
332
332
  if (x(t))
333
- return /* @__PURE__ */ r.jsx(f, { inBuilder: s, className: "h-8 w-14" });
334
- const M = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
335
- return o.createElement("span", {
333
+ return /* @__PURE__ */ i.jsx(f, { inBuilder: a, className: "h-8 w-14" });
334
+ const v = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
335
+ return n.createElement("span", {
336
336
  ...l,
337
- ...n,
338
- dangerouslySetInnerHTML: { __html: M }
337
+ ...h,
338
+ dangerouslySetInnerHTML: { __html: v }
339
339
  });
340
340
  };
341
- h(D0, {
341
+ d(D0, {
342
342
  type: "Icon",
343
343
  label: "Icon",
344
344
  category: "core",
345
345
  icon: Z,
346
346
  group: "media",
347
347
  props: {
348
- styles: v({ default: "text-black" }),
348
+ styles: o({ default: "text-black" }),
349
349
  icon: j({
350
350
  title: "Icon",
351
351
  default: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8 9.356c1.812 0 3.535-0.481 5-1.327-0.228 2.788-2.393 4.971-5 4.971s-4.772-2.186-5-4.973c1.465 0.845 3.188 1.329 5 1.329zM4 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5zM10 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5z"></path></svg>'
@@ -355,53 +355,53 @@ h(D0, {
355
355
  }
356
356
  });
357
357
  const k0 = (c) => {
358
- const { blockProps: l, image: t, styles: e, alt: a, height: s, width: i } = c;
359
- return x(t) ? /* @__PURE__ */ r.jsx(f, { className: "h-36" }) : o.createElement("img", {
358
+ const { blockProps: l, image: t, styles: e, alt: s, height: a, width: r } = c;
359
+ return x(t) ? /* @__PURE__ */ i.jsx(f, { className: "h-36" }) : n.createElement("img", {
360
360
  ...l,
361
361
  ...e,
362
362
  src: t,
363
- alt: a,
363
+ alt: s,
364
364
  loading: "lazy",
365
- height: s,
366
- width: i
365
+ height: a,
366
+ width: r
367
367
  });
368
368
  };
369
- h(k0, {
369
+ d(k0, {
370
370
  type: "Image",
371
371
  label: "Image",
372
372
  category: "core",
373
373
  icon: Q,
374
374
  group: "media",
375
375
  props: {
376
- styles: v({ default: "" }),
376
+ styles: o({ default: "" }),
377
377
  image: T({
378
378
  title: "Image",
379
379
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
380
380
  }),
381
- alt: d({ title: "Alt", default: "" }),
382
- width: d({ title: "Width", default: "" }),
383
- height: d({ title: "Height", default: "" })
381
+ alt: z({ title: "Alt", default: "" }),
382
+ width: z({ title: "Width", default: "" }),
383
+ height: z({ title: "Height", default: "" })
384
384
  }
385
385
  });
386
386
  const I0 = (c) => {
387
- var i;
388
- const { blockProps: l, inBuilder: t, styles: e, children: a } = c;
389
- let s = null;
390
- return !a && t && (s = // @ts-ignore
391
- /* @__PURE__ */ r.jsx("div", { className: I("flex flex-col items-center justify-center", (i = c.emptyStyles) == null ? void 0 : i.className), children: /* @__PURE__ */ r.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ r.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
387
+ var r;
388
+ const { blockProps: l, inBuilder: t, styles: e, children: s } = c;
389
+ let a = null;
390
+ return !s && t && (a = // @ts-ignore
391
+ /* @__PURE__ */ i.jsx("div", { className: I("flex flex-col items-center justify-center", (r = c.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ i.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ i.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
392
392
  "Slot: ",
393
393
  c.name
394
- ] }) }) })), o.createElement("div", { ...e, ...l, droppable: "yes" }, a || s);
394
+ ] }) }) })), n.createElement("div", { ...e, ...l, droppable: "yes" }, s || a);
395
395
  };
396
- h(I0, {
396
+ d(I0, {
397
397
  type: "Slot",
398
398
  label: "Slot",
399
399
  group: "basic",
400
400
  category: "core",
401
401
  hidden: !0,
402
402
  props: {
403
- styles: v({ default: "" }),
404
- emptyStyles: v({ default: "" })
403
+ styles: o({ default: "" }),
404
+ emptyStyles: o({ default: "" })
405
405
  },
406
406
  canAcceptBlock: () => !0
407
407
  });
@@ -419,18 +419,18 @@ const C = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
419
419
  return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : c;
420
420
  }
421
421
  return null;
422
- }, L0 = o.memo(
422
+ }, L0 = n.memo(
423
423
  (c) => {
424
- const { blockProps: l, inBuilder: t, styles: e, url: a, controls: s } = c, i = B(s, "autoPlay", !1), n = B(s, "controls", !1), M = i || B(s, "muted", !0), z = B(s, "loop", !1);
425
- if (x(a))
426
- return /* @__PURE__ */ r.jsx(f, { inBuilder: t, className: "h-36" });
427
- let u = S0(a), g = null;
424
+ const { blockProps: l, inBuilder: t, styles: e, url: s, controls: a } = c, r = B(a, "autoPlay", !1), h = B(a, "controls", !1), v = r || B(a, "muted", !0), M = B(a, "loop", !1);
425
+ if (x(s))
426
+ return /* @__PURE__ */ i.jsx(f, { inBuilder: t, className: "h-36" });
427
+ let u = S0(s), g = null;
428
428
  if (u) {
429
429
  if (!x(u)) {
430
430
  const w = [];
431
- w.push(`autoplay=${i ? 1 : 0}`), w.push(`controls=${s ? 1 : 0}`), w.push(`mute=${M ? 1 : 0}&muted=${M ? 1 : 0}`), w.push(`loop=${z ? 1 : 0}`), u = `${u}?${w.join("&")}`;
431
+ w.push(`autoplay=${r ? 1 : 0}`), w.push(`controls=${a ? 1 : 0}`), w.push(`mute=${v ? 1 : 0}&muted=${v ? 1 : 0}`), w.push(`loop=${M ? 1 : 0}`), u = `${u}?${w.join("&")}`;
432
432
  }
433
- g = o.createElement("iframe", {
433
+ g = n.createElement("iframe", {
434
434
  ...l,
435
435
  className: "absolute inset-0 w-full h-full",
436
436
  src: u,
@@ -439,30 +439,30 @@ const C = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
439
439
  frameBorder: 0
440
440
  });
441
441
  } else
442
- g = o.createElement("video", {
442
+ g = n.createElement("video", {
443
443
  ...l,
444
444
  className: "absolute inset-0 w-full h-full",
445
- src: a,
446
- controls: n,
447
- muted: M,
448
- autoPlay: t ? !1 : i,
449
- loop: z
445
+ src: s,
446
+ controls: h,
447
+ muted: v,
448
+ autoPlay: t ? !1 : r,
449
+ loop: M
450
450
  });
451
- return /* @__PURE__ */ r.jsx("div", { ...G(e, ["className"]), children: /* @__PURE__ */ r.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
452
- t ? /* @__PURE__ */ r.jsx("div", { ...l, ...q(e, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
451
+ return /* @__PURE__ */ i.jsx("div", { ...G(e, ["className"]), children: /* @__PURE__ */ i.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
452
+ t ? /* @__PURE__ */ i.jsx("div", { ...l, ...q(e, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
453
453
  g
454
454
  ] }) });
455
455
  }
456
456
  );
457
- h(L0, {
457
+ d(L0, {
458
458
  type: "Video",
459
459
  label: "Video",
460
460
  category: "core",
461
461
  icon: c0,
462
462
  group: "media",
463
463
  props: {
464
- styles: v({ default: "" }),
465
- url: d({
464
+ styles: o({ default: "" }),
465
+ url: z({
466
466
  title: "Video URL",
467
467
  default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
468
468
  }),
@@ -477,26 +477,28 @@ h(L0, {
477
477
  })
478
478
  }
479
479
  });
480
- const T0 = o.memo(
481
- (c) => {
482
- const { blockProps: l, styles: t, htmlCode: e, inBuilder: a } = c, s = e.replace(/<script.*?>.*?<\/script>/g, "");
483
- return /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
484
- a ? /* @__PURE__ */ r.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
485
- o.createElement("div", {
486
- ...t,
487
- dangerouslySetInnerHTML: { __html: a ? s : e }
488
- })
489
- ] });
490
- }
491
- );
492
- h(T0, {
480
+ const T0 = (c) => {
481
+ const { blockProps: l, styles: t, htmlCode: e, inBuilder: s } = c;
482
+ return s ? /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
483
+ s ? /* @__PURE__ */ i.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
484
+ n.createElement("div", {
485
+ ...t,
486
+ dangerouslySetInnerHTML: { __html: e.replace(/<script.*?>.*?<\/script>/g, "") }
487
+ })
488
+ ] }) : n.createElement("div", {
489
+ ...l,
490
+ ...t,
491
+ dangerouslySetInnerHTML: { __html: e }
492
+ });
493
+ };
494
+ d(T0, {
493
495
  type: "CustomHTML",
494
496
  label: "Custom HTML",
495
497
  category: "core",
496
498
  icon: t0,
497
499
  group: "advanced",
498
500
  props: {
499
- styles: v({ default: "" }),
501
+ styles: o({ default: "" }),
500
502
  htmlCode: E({
501
503
  title: "HTML Code",
502
504
  default: "<div><p>HTML Snippet goes here...</p></div>",
@@ -506,22 +508,20 @@ h(T0, {
506
508
  canAcceptBlock: () => !1
507
509
  });
508
510
  function j0(c) {
509
- return z0({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" } }] })(c);
511
+ return M0({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" }, child: [] }] })(c);
510
512
  }
511
- const C0 = o.memo(
512
- (c) => {
513
- const { script: l, inBuilder: t, blockProps: e } = c;
514
- return t ? /* @__PURE__ */ r.jsx("div", { ...e, children: /* @__PURE__ */ r.jsx(f, {}) }) : /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
515
- }
516
- );
517
- h(C0, {
513
+ const C0 = (c) => {
514
+ const { scripts: l, inBuilder: t, blockProps: e } = c;
515
+ return t ? /* @__PURE__ */ i.jsx("div", { ...e }) : /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
516
+ };
517
+ d(C0, {
518
518
  type: "CustomScript",
519
519
  label: "Custom Script",
520
520
  category: "core",
521
521
  icon: j0,
522
522
  group: "advanced",
523
523
  props: {
524
- script: E({
524
+ scripts: E({
525
525
  title: "Script",
526
526
  default: "",
527
527
  placeholder: "<script>console.log('Hello, world!');<\/script>"
@@ -531,20 +531,20 @@ h(C0, {
531
531
  });
532
532
  const _0 = (c) => {
533
533
  const { blockProps: l, styles: t } = c;
534
- return o.createElement("hr", { ...t, ...l });
534
+ return n.createElement("hr", { ...t, ...l });
535
535
  };
536
- h(_0, {
536
+ d(_0, {
537
537
  type: "Divider",
538
538
  label: "Divider",
539
539
  category: "core",
540
540
  icon: l0,
541
541
  group: "basic",
542
542
  props: {
543
- styles: v({ default: "bg-gray-900 h-0.5 py-2 my-1" })
543
+ styles: o({ default: "bg-gray-900 h-0.5 py-2 my-1" })
544
544
  }
545
545
  });
546
- const P0 = (c) => c.inBuilder || c.forceWrapper ? /* @__PURE__ */ r.jsx("span", { "data-ai-key": "content", ...c.blockProps, children: c.content }) : `${c.content}`;
547
- h(P0, {
546
+ const P0 = (c) => c.inBuilder || c.forceWrapper ? /* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", ...c.blockProps, children: c.content }) : `${c.content}`;
547
+ d(P0, {
548
548
  type: "Text",
549
549
  label: "Text",
550
550
  hidden: !0,
@@ -556,18 +556,18 @@ h(P0, {
556
556
  }
557
557
  });
558
558
  const E0 = (c) => {
559
- const { blockProps: l, backgroundImage: t, children: e, styles: a } = c;
560
- let s = {};
561
- return t && (s = { backgroundImage: `url(${t})` }), o.createElement("div", { ...l, ...a, style: s }, e);
559
+ const { blockProps: l, backgroundImage: t, children: e, styles: s } = c;
560
+ let a = {};
561
+ return t && (a = { backgroundImage: `url(${t})` }), n.createElement("div", { ...l, ...s, style: a }, e);
562
562
  };
563
- h(E0, {
563
+ d(E0, {
564
564
  type: "Body",
565
565
  label: "Body",
566
566
  category: "core",
567
567
  group: "basic",
568
568
  hidden: !0,
569
569
  props: {
570
- styles: v({ default: "font-body antialiased" }),
570
+ styles: o({ default: "font-body antialiased" }),
571
571
  backgroundImage: T({ title: "Background Image" })
572
572
  },
573
573
  canAcceptBlock: () => !0,
@@ -577,9 +577,9 @@ h(E0, {
577
577
  });
578
578
  const N0 = (c) => {
579
579
  const { blockProps: l, styles: t } = c;
580
- return o.createElement("br", { ...l, ...t });
580
+ return n.createElement("br", { ...l, ...t });
581
581
  };
582
- h(N0, {
582
+ d(N0, {
583
583
  type: "LineBreak",
584
584
  label: "Line Break",
585
585
  category: "core",
@@ -587,56 +587,56 @@ h(N0, {
587
587
  hidden: !0,
588
588
  icon: H,
589
589
  props: {
590
- styles: v({ default: "" })
590
+ styles: o({ default: "" })
591
591
  }
592
592
  });
593
593
  const S = (c) => {
594
- const l = (s, i) => ({
594
+ const l = (a, r) => ({
595
595
  _id: m(),
596
- _parent: s,
596
+ _parent: a,
597
597
  _type: "TableCell",
598
598
  styles: "#styles:,",
599
- content: `${c === "TableHead" ? "Table Head" : "Table Cell " + i}`
600
- }), t = (s) => {
601
- const i = m(), n = {
599
+ content: `${c === "TableHead" ? "Table Head" : "Table Cell " + r}`
600
+ }), t = (a) => {
601
+ const r = m(), h = {
602
602
  _type: "TableRow",
603
- _id: i,
603
+ _id: r,
604
604
  styles: "#styles:,border-b"
605
605
  };
606
- return s && (n._parent = s), [n, l(i, "1"), l(i, "2"), l(i, "3")];
607
- }, e = (s) => {
608
- const i = m(), n = {
609
- _id: i,
606
+ return a && (h._parent = a), [h, l(r, "1"), l(r, "2"), l(r, "3")];
607
+ }, e = (a) => {
608
+ const r = m(), h = {
609
+ _id: r,
610
610
  _type: "TableHead",
611
611
  styles: "#styles:,font-medium"
612
612
  };
613
- return s && (n._parent = s), [n, ...t(i)];
614
- }, a = (s) => {
615
- const i = m(), n = {
616
- _id: i,
613
+ return a && (h._parent = a), [h, ...t(r)];
614
+ }, s = (a) => {
615
+ const r = m(), h = {
616
+ _id: r,
617
617
  _type: "TableBody",
618
618
  styles: "#styles:,"
619
619
  };
620
- return s && (n._parent = s), [n, ...t(i), ...t(i)];
620
+ return a && (h._parent = a), [h, ...t(r), ...t(r)];
621
621
  };
622
622
  if (c === "Table") {
623
- const s = m();
623
+ const a = m();
624
624
  return [
625
625
  {
626
- _id: s,
626
+ _id: a,
627
627
  _type: "Table",
628
628
  styles: "#styles:,w-full text-left text-gray-500 dark:text-gray-400"
629
629
  },
630
- ...e(s),
631
- ...a(s)
630
+ ...e(a),
631
+ ...s(a)
632
632
  ];
633
633
  }
634
- return c === "TableRow" ? t() : c === "TableHead" ? e() : c === "TableBody" ? a() : [];
634
+ return c === "TableRow" ? t() : c === "TableHead" ? e() : c === "TableBody" ? s() : [];
635
635
  }, H0 = (c) => {
636
636
  const { blockProps: l, children: t, styles: e } = c;
637
- return t ? o.createElement("table", { ...l, ...e }, t) : /* @__PURE__ */ r.jsx(f, {});
637
+ return t ? n.createElement("table", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
638
638
  };
639
- h(H0, {
639
+ d(H0, {
640
640
  type: "Table",
641
641
  label: "Table",
642
642
  category: "core",
@@ -644,15 +644,15 @@ h(H0, {
644
644
  hidden: !0,
645
645
  icon: e0,
646
646
  props: {
647
- styles: v({ default: "" })
647
+ styles: o({ default: "" })
648
648
  },
649
649
  blocks: S("Table")
650
650
  });
651
651
  const R0 = (c) => {
652
652
  const { blockProps: l, children: t, styles: e } = c;
653
- return t ? o.createElement("thead", { ...l, ...e }, t) : /* @__PURE__ */ r.jsx(f, {});
653
+ return t ? n.createElement("thead", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
654
654
  };
655
- h(R0, {
655
+ d(R0, {
656
656
  type: "TableHead",
657
657
  label: "Table Head",
658
658
  category: "core",
@@ -660,15 +660,15 @@ h(R0, {
660
660
  hidden: !0,
661
661
  icon: s0,
662
662
  props: {
663
- styles: v({ default: "" })
663
+ styles: o({ default: "" })
664
664
  },
665
665
  blocks: S("TableHead")
666
666
  });
667
667
  const A0 = (c) => {
668
668
  const { blockProps: l, children: t, styles: e } = c;
669
- return t ? o.createElement("tbody", { ...l, ...e }, t) : /* @__PURE__ */ r.jsx(f, {});
669
+ return t ? n.createElement("tbody", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
670
670
  };
671
- h(A0, {
671
+ d(A0, {
672
672
  type: "TableBody",
673
673
  label: "Table Body",
674
674
  category: "core",
@@ -676,50 +676,50 @@ h(A0, {
676
676
  hidden: !0,
677
677
  icon: a0,
678
678
  props: {
679
- styles: v({ default: "" })
679
+ styles: o({ default: "" })
680
680
  },
681
681
  blocks: S("TableBody")
682
682
  });
683
683
  const G0 = (c) => {
684
684
  const { blockProps: l, children: t, styles: e } = c;
685
- return t ? o.createElement("tr", { ...l, ...e }, t) : /* @__PURE__ */ r.jsx(f, {});
685
+ return t ? n.createElement("tr", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
686
686
  };
687
- h(G0, {
687
+ d(G0, {
688
688
  type: "TableRow",
689
689
  label: "Table Row",
690
690
  category: "core",
691
691
  group: "table",
692
692
  hidden: !0,
693
- icon: r0,
693
+ icon: i0,
694
694
  props: {
695
- styles: v({ default: "w-full" })
695
+ styles: o({ default: "w-full" })
696
696
  },
697
697
  blocks: S("TableRow")
698
698
  });
699
699
  const q0 = (c) => {
700
- const { blockProps: l, children: t, content: e, styles: a } = c;
701
- return !t && x(e) ? /* @__PURE__ */ r.jsx(f, {}) : t ? o.createElement("td", { ...l, ...a }, t) : o.createElement("td", {
700
+ const { blockProps: l, children: t, content: e, styles: s } = c;
701
+ return !t && x(e) ? /* @__PURE__ */ i.jsx(f, {}) : t ? n.createElement("td", { ...l, ...s }, t) : n.createElement("td", {
702
702
  ...l,
703
- ...a,
703
+ ...s,
704
704
  dangerouslySetInnerHTML: { __html: e }
705
705
  });
706
706
  };
707
- h(q0, {
707
+ d(q0, {
708
708
  type: "TableCell",
709
709
  label: "Table Cell",
710
710
  category: "core",
711
711
  group: "table",
712
712
  hidden: !0,
713
- icon: i0,
713
+ icon: r0,
714
714
  props: {
715
- styles: v({ default: "" }),
715
+ styles: o({ default: "" }),
716
716
  content: D({ title: "Content", default: "Table cell item", ai: { html: !0 } })
717
717
  }
718
718
  });
719
719
  const F0 = (c) => {
720
- const { blockProps: l, errorMessage: t, name: e, _type: a, successMessage: s, action: i, styles: n, children: M } = c;
721
- let z = M;
722
- M || (z = /* @__PURE__ */ r.jsx(f, {}));
720
+ const { blockProps: l, errorMessage: t, name: e, _type: s, successMessage: a, action: r, styles: h, children: v } = c;
721
+ let M = v;
722
+ v || (M = /* @__PURE__ */ i.jsx(f, {}));
723
723
  const u = {
724
724
  "x-data": "useForm",
725
725
  "x-on:submit.prevent": "post"
@@ -727,34 +727,34 @@ const F0 = (c) => {
727
727
  "x-html": "formResponse",
728
728
  ":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
729
729
  };
730
- return /* @__PURE__ */ r.jsxs(
730
+ return /* @__PURE__ */ i.jsxs(
731
731
  "form",
732
732
  {
733
733
  ...u,
734
734
  "data-error": t,
735
- "data-success": s,
735
+ "data-success": a,
736
736
  method: "post",
737
- action: i,
737
+ action: r,
738
738
  ...l,
739
- ...n,
739
+ ...h,
740
740
  children: [
741
- /* @__PURE__ */ r.jsx("div", { ...g }),
742
- /* @__PURE__ */ r.jsx("input", { name: "formname", type: "hidden", value: e || a }),
743
- z
741
+ /* @__PURE__ */ i.jsx("div", { ...g }),
742
+ /* @__PURE__ */ i.jsx("input", { name: "formname", type: "hidden", value: e || s }),
743
+ M
744
744
  ]
745
745
  }
746
746
  );
747
747
  };
748
- h(F0, {
748
+ d(F0, {
749
749
  type: "Form",
750
750
  label: "Form",
751
751
  category: "core",
752
- icon: n0,
752
+ icon: h0,
753
753
  group: "form",
754
754
  hidden: !0,
755
755
  props: {
756
- styles: v({ default: "" }),
757
- action: d({
756
+ styles: o({ default: "" }),
757
+ action: z({
758
758
  title: "Submit URL",
759
759
  default: "/api/form/submit"
760
760
  }),
@@ -770,45 +770,45 @@ h(F0, {
770
770
  canAcceptBlock: () => !0
771
771
  });
772
772
  const $0 = (c) => {
773
- const { blockProps: l, content: t, styles: e, children: a } = c, s = { ...e, ...l };
774
- return a ? o.createElement("label", s, a) : o.createElement("label", {
775
- ...s,
773
+ const { blockProps: l, content: t, styles: e, children: s } = c, a = { ...e, ...l };
774
+ return s ? n.createElement("label", a, s) : n.createElement("label", {
775
+ ...a,
776
776
  dangerouslySetInnerHTML: { __html: t }
777
777
  });
778
778
  };
779
- h($0, {
779
+ d($0, {
780
780
  type: "Label",
781
781
  label: "Label",
782
782
  category: "core",
783
- icon: o0,
783
+ icon: n0,
784
784
  group: "form",
785
785
  hidden: !0,
786
786
  props: {
787
- styles: v({ default: "" }),
788
- content: d({ title: "Content", default: "Label", ai: { html: !1 } })
787
+ styles: o({ default: "" }),
788
+ content: z({ title: "Content", default: "Label", ai: { html: !1 } })
789
789
  }
790
790
  });
791
791
  const V0 = (c) => {
792
- const { blockProps: l, inBuilder: t, label: e, styles: a, inputStyles: s, icon: i, iconPos: n } = c, M = m(), z = {
792
+ const { blockProps: l, inBuilder: t, label: e, styles: s, inputStyles: a, icon: r, iconPos: h } = c, v = m(), M = {
793
793
  "x-bind:disabled": "formLoading"
794
794
  };
795
- return /* @__PURE__ */ r.jsxs(
795
+ return /* @__PURE__ */ i.jsxs(
796
796
  "button",
797
797
  {
798
- id: M,
799
- ...z,
800
- ...s,
798
+ id: v,
799
+ ...M,
801
800
  ...a,
801
+ ...s,
802
802
  ...l || {},
803
803
  type: t ? "button" : "submit",
804
804
  children: [
805
805
  e,
806
- i && /* @__PURE__ */ r.jsx("span", { className: n, dangerouslySetInnerHTML: { __html: i } })
806
+ r && /* @__PURE__ */ i.jsx("span", { className: h, dangerouslySetInnerHTML: { __html: r } })
807
807
  ]
808
808
  }
809
809
  );
810
810
  };
811
- h(V0, {
811
+ d(V0, {
812
812
  type: "FormButton",
813
813
  label: "Submit Button",
814
814
  category: "core",
@@ -816,8 +816,8 @@ h(V0, {
816
816
  group: "form",
817
817
  hidden: !0,
818
818
  props: {
819
- label: d({ title: "Label", default: "Submit" }),
820
- styles: v({
819
+ label: z({ title: "Label", default: "Submit" }),
820
+ styles: o({
821
821
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
822
822
  }),
823
823
  icon: j({ title: "Icon", default: "" }),
@@ -832,44 +832,44 @@ h(V0, {
832
832
  }
833
833
  });
834
834
  const O0 = (c) => {
835
- const { blockProps: l, fieldName: t, label: e, styles: a, inputStyles: s, required: i, checked: n, showLabel: M = !0 } = c, z = m();
836
- return M ? /* @__PURE__ */ r.jsxs("div", { ...a, ...l, children: [
837
- /* @__PURE__ */ r.jsx(
835
+ const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, required: r, checked: h, showLabel: v = !0 } = c, M = m();
836
+ return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
837
+ /* @__PURE__ */ i.jsx(
838
838
  "input",
839
839
  {
840
- ...s,
840
+ ...a,
841
841
  name: t,
842
- id: z,
842
+ id: M,
843
843
  type: "checkbox",
844
- required: i,
845
- defaultChecked: n
844
+ required: r,
845
+ defaultChecked: h
846
846
  }
847
847
  ),
848
- e && e !== "Label" && /* @__PURE__ */ r.jsx("label", { htmlFor: z, children: e })
849
- ] }) : /* @__PURE__ */ r.jsx(
848
+ e && e !== "Label" && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e })
849
+ ] }) : /* @__PURE__ */ i.jsx(
850
850
  "input",
851
851
  {
852
- id: z,
852
+ id: M,
853
853
  ...l,
854
- ...s,
855
854
  ...a,
855
+ ...s,
856
856
  type: "checkbox",
857
- required: i,
857
+ required: r,
858
858
  name: t
859
859
  }
860
860
  );
861
861
  };
862
- h(O0, {
862
+ d(O0, {
863
863
  type: "Checkbox",
864
864
  label: "Checkbox",
865
865
  category: "core",
866
- icon: v0,
866
+ icon: o0,
867
867
  group: "form",
868
868
  hidden: !0,
869
869
  props: {
870
- fieldName: d({ title: "Field Name", default: "checkbox" }),
871
- styles: v({ default: "flex items-center gap-x-2" }),
872
- label: d({ title: "Label", default: "Label" }),
870
+ fieldName: z({ title: "Field Name", default: "checkbox" }),
871
+ styles: o({ default: "flex items-center gap-x-2" }),
872
+ label: z({ title: "Label", default: "Label" }),
873
873
  checked: p({ title: "Checked", default: !1 }),
874
874
  required: p({ title: "Required", default: !1 })
875
875
  }
@@ -879,44 +879,44 @@ const U0 = (c) => {
879
879
  blockProps: l,
880
880
  label: t,
881
881
  placeholder: e,
882
- styles: a,
883
- inputStyles: s,
884
- showLabel: i,
885
- required: n,
886
- inputType: M = "text",
887
- inBuilder: z,
882
+ styles: s,
883
+ inputStyles: a,
884
+ showLabel: r,
885
+ required: h,
886
+ inputType: v = "text",
887
+ inBuilder: M,
888
888
  fieldName: u
889
889
  } = c, g = m();
890
- return !i || M === "submit" ? (M === "submit" && (l.value = t), /* @__PURE__ */ r.jsx(
890
+ return !r || v === "submit" ? (v === "submit" && (l.value = t), /* @__PURE__ */ i.jsx(
891
891
  "input",
892
892
  {
893
893
  id: g,
894
894
  name: u,
895
- readOnly: z,
895
+ readOnly: M,
896
896
  ...l,
897
- ...s,
898
897
  ...a,
899
- type: M,
898
+ ...s,
899
+ type: v,
900
900
  placeholder: e,
901
- required: n
901
+ required: h
902
902
  }
903
- )) : /* @__PURE__ */ r.jsxs("div", { ...a, ...l, children: [
904
- i && /* @__PURE__ */ r.jsx("label", { htmlFor: g, children: t }),
905
- /* @__PURE__ */ r.jsx(
903
+ )) : /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
904
+ r && /* @__PURE__ */ i.jsx("label", { htmlFor: g, children: t }),
905
+ /* @__PURE__ */ i.jsx(
906
906
  "input",
907
907
  {
908
908
  name: u,
909
- readOnly: z,
910
- ...s,
909
+ readOnly: M,
910
+ ...a,
911
911
  id: g,
912
- type: M,
912
+ type: v,
913
913
  placeholder: e,
914
- required: n
914
+ required: h
915
915
  }
916
916
  )
917
917
  ] });
918
918
  };
919
- h(U0, {
919
+ d(U0, {
920
920
  type: "Input",
921
921
  label: "Input",
922
922
  category: "core",
@@ -924,8 +924,8 @@ h(U0, {
924
924
  group: "form",
925
925
  hidden: !0,
926
926
  props: {
927
- styles: v({ default: "" }),
928
- fieldName: d({ title: "Field Name", default: "input" }),
927
+ styles: o({ default: "" }),
928
+ fieldName: z({ title: "Field Name", default: "input" }),
929
929
  inputType: y({
930
930
  title: "Type",
931
931
  options: L(
@@ -937,11 +937,11 @@ h(U0, {
937
937
  ),
938
938
  default: "text"
939
939
  }),
940
- value: d({ title: "Value", default: "" }),
940
+ value: z({ title: "Value", default: "" }),
941
941
  showLabel: p({ title: "Show label", default: !0 }),
942
- inputStyles: v({ default: "w-full p-1" }),
943
- label: d({ title: "Label", default: "Label" }),
944
- placeholder: d({
942
+ inputStyles: o({ default: "w-full p-1" }),
943
+ label: z({ title: "Label", default: "Label" }),
944
+ placeholder: z({
945
945
  title: "Placeholder",
946
946
  default: "Placeholder"
947
947
  }),
@@ -949,35 +949,35 @@ h(U0, {
949
949
  }
950
950
  });
951
951
  const J0 = (c) => {
952
- const { blockProps: l, fieldName: t, label: e, styles: a, inputStyles: s, checked: i, required: n, showLabel: M = !0 } = c, z = m();
953
- return M ? /* @__PURE__ */ r.jsxs("div", { ...a, ...l, children: [
954
- /* @__PURE__ */ r.jsx("input", { ...s, name: t, id: z, type: "radio", required: n, defaultChecked: i }),
955
- e && /* @__PURE__ */ r.jsx("label", { htmlFor: z, children: e })
956
- ] }) : /* @__PURE__ */ r.jsx(
952
+ const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, checked: r, required: h, showLabel: v = !0 } = c, M = m();
953
+ return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
954
+ /* @__PURE__ */ i.jsx("input", { ...a, name: t, id: M, type: "radio", required: h, defaultChecked: r }),
955
+ e && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e })
956
+ ] }) : /* @__PURE__ */ i.jsx(
957
957
  "input",
958
958
  {
959
- id: z,
959
+ id: M,
960
960
  ...l,
961
- ...s,
962
961
  ...a,
962
+ ...s,
963
963
  type: "radio",
964
- required: n,
965
- checked: i,
964
+ required: h,
965
+ checked: r,
966
966
  name: t
967
967
  }
968
968
  );
969
969
  };
970
- h(J0, {
970
+ d(J0, {
971
971
  type: "Radio",
972
972
  label: "Radio",
973
973
  category: "core",
974
- icon: h0,
974
+ icon: d0,
975
975
  group: "form",
976
976
  hidden: !0,
977
977
  props: {
978
- styles: v({ default: "flex items-center w-max gap-x-2" }),
979
- fieldName: d({ title: "Field Name", default: "radio" }),
980
- label: d({ title: "Label", default: "Label" }),
978
+ styles: o({ default: "flex items-center w-max gap-x-2" }),
979
+ fieldName: z({ title: "Field Name", default: "radio" }),
980
+ label: z({ title: "Label", default: "Label" }),
981
981
  checked: p({ title: "Checked", default: !1 }),
982
982
  required: p({ title: "Required", default: !1 })
983
983
  }
@@ -987,26 +987,26 @@ const W0 = (c) => {
987
987
  blockProps: l,
988
988
  fieldName: t,
989
989
  label: e,
990
- placeholder: a,
991
- styles: s,
992
- inputStyles: i,
993
- required: n,
994
- showLabel: M,
995
- _multiple: z = !1
990
+ placeholder: s,
991
+ styles: a,
992
+ inputStyles: r,
993
+ required: h,
994
+ showLabel: v,
995
+ _multiple: M = !1
996
996
  } = c, u = m();
997
- return M ? /* @__PURE__ */ r.jsxs("div", { ...s, children: [
998
- M && /* @__PURE__ */ r.jsx("label", { htmlFor: u, children: e }),
999
- /* @__PURE__ */ r.jsxs(
997
+ return v ? /* @__PURE__ */ i.jsxs("div", { ...a, children: [
998
+ v && /* @__PURE__ */ i.jsx("label", { htmlFor: u, children: e }),
999
+ /* @__PURE__ */ i.jsxs(
1000
1000
  "select",
1001
1001
  {
1002
- ...i,
1002
+ ...r,
1003
1003
  id: u,
1004
- required: n,
1005
- multiple: z,
1004
+ required: h,
1005
+ multiple: M,
1006
1006
  name: t,
1007
1007
  children: [
1008
- /* @__PURE__ */ r.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
1009
- L(c.options, (g) => /* @__PURE__ */ r.jsx(
1008
+ /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
1009
+ L(c.options, (g) => /* @__PURE__ */ i.jsx(
1010
1010
  "option",
1011
1011
  {
1012
1012
  selected: B(g, "selected", !1),
@@ -1018,18 +1018,18 @@ const W0 = (c) => {
1018
1018
  ]
1019
1019
  }
1020
1020
  )
1021
- ] }) : /* @__PURE__ */ r.jsxs(
1021
+ ] }) : /* @__PURE__ */ i.jsxs(
1022
1022
  "select",
1023
1023
  {
1024
1024
  id: u,
1025
- ...s,
1025
+ ...a,
1026
1026
  ...l,
1027
- required: n,
1028
- multiple: z,
1027
+ required: h,
1028
+ multiple: M,
1029
1029
  name: t,
1030
1030
  children: [
1031
- /* @__PURE__ */ r.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
1032
- L(c.options, (g) => /* @__PURE__ */ r.jsx(
1031
+ /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
1032
+ L(c.options, (g) => /* @__PURE__ */ i.jsx(
1033
1033
  "option",
1034
1034
  {
1035
1035
  selected: B(g, "selected", !1),
@@ -1042,20 +1042,20 @@ const W0 = (c) => {
1042
1042
  }
1043
1043
  );
1044
1044
  };
1045
- h(W0, {
1045
+ d(W0, {
1046
1046
  type: "Select",
1047
1047
  label: "Select",
1048
1048
  category: "core",
1049
- icon: M0,
1049
+ icon: v0,
1050
1050
  group: "form",
1051
1051
  hidden: !0,
1052
1052
  props: {
1053
- styles: v({ default: "" }),
1054
- fieldName: d({ title: "Field Name", default: "select" }),
1053
+ styles: o({ default: "" }),
1054
+ fieldName: z({ title: "Field Name", default: "select" }),
1055
1055
  showLabel: p({ title: "Show label", default: !0 }),
1056
- inputStyles: v({ default: "w-full p-1" }),
1057
- label: d({ title: "Label", default: "Label" }),
1058
- placeholder: d({
1056
+ inputStyles: o({ default: "w-full p-1" }),
1057
+ label: z({ title: "Label", default: "Label" }),
1058
+ placeholder: z({
1059
1059
  title: "Placeholder",
1060
1060
  default: "Placeholder"
1061
1061
  }),
@@ -1064,31 +1064,31 @@ h(W0, {
1064
1064
  options: O({
1065
1065
  title: "Options",
1066
1066
  itemProperties: {
1067
- label: d({ title: "Label", default: "" }),
1068
- value: d({ title: "Value", default: "" })
1067
+ label: z({ title: "Label", default: "" }),
1068
+ value: z({ title: "Value", default: "" })
1069
1069
  }
1070
1070
  })
1071
1071
  }
1072
1072
  });
1073
1073
  const Y0 = (c) => {
1074
- const { blockProps: l, fieldName: t, label: e, placeholder: a, styles: s, inputStyles: i, _rows: n, showLabel: M } = c, z = m();
1075
- return M ? /* @__PURE__ */ r.jsxs("div", { ...s, ...l, children: [
1076
- M && /* @__PURE__ */ r.jsx("label", { htmlFor: z, children: e }),
1077
- /* @__PURE__ */ r.jsx("textarea", { name: t, ...i, id: z, placeholder: a, rows: n })
1078
- ] }) : /* @__PURE__ */ r.jsx(
1074
+ const { blockProps: l, fieldName: t, label: e, placeholder: s, styles: a, inputStyles: r, _rows: h, showLabel: v } = c, M = m();
1075
+ return v ? /* @__PURE__ */ i.jsxs("div", { ...a, ...l, children: [
1076
+ v && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e }),
1077
+ /* @__PURE__ */ i.jsx("textarea", { name: t, ...r, id: M, placeholder: s, rows: h })
1078
+ ] }) : /* @__PURE__ */ i.jsx(
1079
1079
  "textarea",
1080
1080
  {
1081
- id: z,
1081
+ id: M,
1082
1082
  name: t,
1083
1083
  ...l,
1084
- ...i,
1085
- ...s,
1086
- placeholder: a,
1087
- rows: n
1084
+ ...r,
1085
+ ...a,
1086
+ placeholder: s,
1087
+ rows: h
1088
1088
  }
1089
1089
  );
1090
1090
  };
1091
- h(Y0, {
1091
+ d(Y0, {
1092
1092
  type: "TextArea",
1093
1093
  label: "TextArea",
1094
1094
  category: "core",
@@ -1096,19 +1096,19 @@ h(Y0, {
1096
1096
  group: "form",
1097
1097
  hidden: !0,
1098
1098
  props: {
1099
- fieldName: d({ title: "Field Name", default: "textarea" }),
1099
+ fieldName: z({ title: "Field Name", default: "textarea" }),
1100
1100
  showLabel: p({ title: "Show label", default: !0 }),
1101
- styles: v({ default: "" }),
1102
- inputStyles: v({ default: "w-full p-1" }),
1103
- label: d({ title: "Label", default: "Label" }),
1104
- placeholder: d({
1101
+ styles: o({ default: "" }),
1102
+ inputStyles: o({ default: "w-full p-1" }),
1103
+ label: z({ title: "Label", default: "Label" }),
1104
+ placeholder: z({
1105
1105
  title: "Placeholder",
1106
1106
  default: "Placeholder"
1107
1107
  }),
1108
1108
  _rows: k({ title: "Rows", default: 3 })
1109
1109
  }
1110
1110
  });
1111
- const i1 = F;
1111
+ const r1 = F;
1112
1112
  export {
1113
- i1 as loadWebBlocks
1113
+ r1 as loadWebBlocks
1114
1114
  };