@chaibuilder/sdk 1.2.29 → 1.2.30

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 (54) hide show
  1. package/dist/{AddBlocks-YJPdSqcY.cjs → AddBlocks-UxJOFB9M.cjs} +1 -1
  2. package/dist/{AddBlocks-0sW6gkCO.js → AddBlocks-u1FkSHNj.js} +19 -19
  3. package/dist/{BrandingOptions--vgnQvD1.js → BrandingOptions-A3_c_sd7.js} +1 -1
  4. package/dist/{CanvasArea-aii0PyU-.js → CanvasArea-3D9rpjpk.js} +3 -3
  5. package/dist/{CanvasArea-41QoxuLf.cjs → CanvasArea-e829y1ts.cjs} +1 -1
  6. package/dist/{CurrentPage-2W1pdAOG.cjs → CurrentPage-5xKDQqvg.cjs} +1 -1
  7. package/dist/{CurrentPage-06Iacwyp.js → CurrentPage-VbdmddMv.js} +4 -4
  8. package/dist/{ListTree-DnA8gj-7.js → ListTree-c9Z0kWbN.js} +1 -1
  9. package/dist/{PagesPanel-_1CDTUdE.js → PagesPanel-_VzJ1__k.js} +5 -5
  10. package/dist/{PagesPanel-PBFzPSNY.cjs → PagesPanel-wex1zGzm.cjs} +1 -1
  11. package/dist/{ProjectPanel-755bbzEQ.cjs → ProjectPanel-N6iWd_4Z.cjs} +1 -1
  12. package/dist/{ProjectPanel-pUMeIiUW.js → ProjectPanel-rPNO2QsE.js} +5 -5
  13. package/dist/{Settings-dnO-s6x0.js → Settings-jTl7IOPc.js} +560 -532
  14. package/dist/Settings-mlh0i_1M.cjs +1 -0
  15. package/dist/{SidePanels-VxSXXkt_.js → SidePanels-jYJEFpxC.js} +3 -3
  16. package/dist/{SidePanels-Gq2LdVuY.cjs → SidePanels-mx5TyZBn.cjs} +1 -1
  17. package/dist/{Topbar-5zbOSGF6.js → Topbar-VCFW9uNI.js} +1 -1
  18. package/dist/{UnsplashImages-4WAWgA4s.js → UnsplashImages-N9h0avWO.js} +1 -1
  19. package/dist/{UploadImages-PONIHtn6.js → UploadImages-e70AeNGX.js} +1 -1
  20. package/dist/{add-page-modal-4VrFvgEm.js → add-page-modal-o1euqbsp.js} +5 -5
  21. package/dist/{add-page-modal-jWcp0w-S.cjs → add-page-modal-v5smARyL.cjs} +1 -1
  22. package/dist/{confirm-alert-j7b88hsW.js → confirm-alert-EDOFRmH8.js} +1 -1
  23. package/dist/core.cjs +1 -1
  24. package/dist/core.js +2 -2
  25. package/dist/{delete-page-modal-p6b0upz4.cjs → delete-page-modal-DNjqQuop.cjs} +1 -1
  26. package/dist/{delete-page-modal--xHHdRAq.js → delete-page-modal-QzRkBAct.js} +4 -4
  27. package/dist/email.cjs +1 -1
  28. package/dist/email.js +2 -2
  29. package/dist/{form-_GJb9YcB.js → form-yw3Uuk6v.js} +1 -1
  30. package/dist/html-to-json-Xhu27KFD.cjs +1 -0
  31. package/dist/{html-to-json-LJyJsnmZ.js → html-to-json-ZV4QjSww.js} +53 -52
  32. package/dist/{index-KArv7pNz.cjs → index-5c_rU-9B.cjs} +1 -1
  33. package/dist/{index-mlMvwv2b.cjs → index-DHwvjZ5z.cjs} +1 -1
  34. package/dist/{index-Eb5zyh2F.js → index-DtBYhldP.js} +4 -4
  35. package/dist/{index-UHaqEdws.js → index-HiiWSXkE.js} +9 -9
  36. package/dist/{index-0QJwevON.js → index-SEJRE2ab.js} +2 -2
  37. package/dist/lib.cjs +1 -1
  38. package/dist/lib.js +1 -1
  39. package/dist/{page-viewer-00Xx4u8e.js → page-viewer-1vswRGpL.js} +5 -5
  40. package/dist/{page-viewer-SZNm7b1n.cjs → page-viewer-87wtE0pN.cjs} +1 -1
  41. package/dist/{project-general-setting-C_pHNuZE.cjs → project-general-setting-RSG7ZQSx.cjs} +1 -1
  42. package/dist/{project-general-setting-asDxlmhZ.js → project-general-setting-SE9QJ6mF.js} +5 -5
  43. package/dist/{project-seo-setting-DuAaDfDR.js → project-seo-setting-x3peNgla.js} +2 -2
  44. package/dist/{single-page-detail-oqj6zsLU.cjs → single-page-detail-8Arndzmw.cjs} +1 -1
  45. package/dist/{single-page-detail-UNxXvhl4.js → single-page-detail-bels-Cjo.js} +12 -12
  46. package/dist/studio.cjs +1 -1
  47. package/dist/studio.js +4 -4
  48. package/dist/ui.js +7 -7
  49. package/dist/{useCanvasSettings-R6br4J9i.js → useCanvasSettings-unTQUdlP.js} +1 -1
  50. package/dist/web-blocks.cjs +4 -4
  51. package/dist/web-blocks.js +232 -216
  52. package/package.json +1 -1
  53. package/dist/Settings-G9Xtqr7n.cjs +0 -1
  54. package/dist/html-to-json-vP1ESB_e.cjs +0 -1
@@ -1,24 +1,24 @@
1
1
  import { isNull as $, isEmpty as k, get as x, pick as z, omit as q, find as O, map as E, noop as V } from "lodash-es";
2
2
  import { j as n } from "./jsx-runtime-WbnYoNE9.js";
3
- import * as p from "react";
4
- import { S as i, s as I, o as C, g as B, m as L, u as y, T as P, c as _, q as U, b as G, r as b, h as W } from "./controls-OfJWSEqC.js";
3
+ import * as u from "react";
4
+ import { S as c, s as w, o as C, g as I, m as L, u as y, T as P, c as _, q as U, b as G, r as b, h as W } from "./controls-OfJWSEqC.js";
5
5
  import { registerChaiBlock as d } from "@chaibuilder/runtime";
6
6
  import { E as v } from "./empty-slot-ZBlsQi6m.js";
7
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 se, SpaceBetweenVerticallyIcon as F, TableIcon as ae, 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
8
  import { c as S, g } from "./Functions-7jnEwJyw.js";
9
- import { g as A } from "./html-to-json-LJyJsnmZ.js";
9
+ import { g as A } from "./html-to-json-ZV4QjSww.js";
10
10
  import "./_commonjsHelpers-UyOWmZb0.js";
11
11
  import "clsx";
12
12
  import "tailwind-merge";
13
13
  import "himalaya";
14
14
  import "./STRINGS--j49GZJP.js";
15
- const me = p.memo(
15
+ const me = u.memo(
16
16
  (e) => {
17
17
  const { blockProps: t, inBuilder: l, backgroundImage: o, children: s, tag: a = "div", styles: r } = e;
18
- let c = s;
19
- s || (c = /* @__PURE__ */ n.jsx(v, { blockProps: {}, styles: {}, inBuilder: l }));
20
- let u = {};
21
- return o && (u = { backgroundImage: `url(${o})` }), p.createElement(a, { ...t, ...r, style: u }, c);
18
+ let i = s;
19
+ s || (i = /* @__PURE__ */ n.jsx(v, { blockProps: {}, styles: {}, inBuilder: l }));
20
+ let p = {};
21
+ return o && (p = { backgroundImage: `url(${o})` }), u.createElement(a, { ...t, ...r, style: p }, i);
22
22
  }
23
23
  );
24
24
  d(me, {
@@ -27,8 +27,8 @@ d(me, {
27
27
  category: "core",
28
28
  group: "basic",
29
29
  props: {
30
- styles: i({ default: "" }),
31
- tag: I({
30
+ styles: c({ default: "" }),
31
+ tag: w({
32
32
  title: "Tag",
33
33
  default: "div",
34
34
  options: [
@@ -55,22 +55,38 @@ d(me, {
55
55
  },
56
56
  canAcceptBlock: () => !0
57
57
  });
58
- const fe = (e) => {
58
+ const fe = u.memo(
59
+ (e) => {
60
+ const { blockProps: t, styles: l } = e;
61
+ return u.createElement("div", { ...t, ...l });
62
+ }
63
+ );
64
+ d(fe, {
65
+ type: "EmptyBox",
66
+ label: "Empty Box",
67
+ category: "core",
68
+ group: "basic",
69
+ props: {
70
+ styles: c({ default: "" })
71
+ },
72
+ canAcceptBlock: () => !1
73
+ });
74
+ const be = (e) => {
59
75
  const { blockProps: t, styles: l, content: o, level: s = "h1", children: a = null } = e;
60
- return a ? p.createElement(s, { ...l, ...t }, a) : p.createElement(s, {
76
+ return a ? u.createElement(s, { ...l, ...t }, a) : u.createElement(s, {
61
77
  ...l,
62
78
  ...t,
63
79
  dangerouslySetInnerHTML: { __html: o }
64
80
  });
65
81
  };
66
- d(fe, {
82
+ d(be, {
67
83
  type: "Heading",
68
84
  label: "Heading",
69
85
  category: "core",
70
86
  icon: Y,
71
87
  group: "typography",
72
88
  props: {
73
- level: I({
89
+ level: w({
74
90
  title: "Level",
75
91
  default: "h1",
76
92
  binding: !1,
@@ -83,86 +99,86 @@ d(fe, {
83
99
  { value: "h6", title: "h6" }
84
100
  ]
85
101
  }),
86
- styles: i({ default: "text-3xl" }),
87
- content: B({ title: "Content", default: "Heading goes here" })
102
+ styles: c({ default: "text-3xl" }),
103
+ content: I({ title: "Content", default: "Heading goes here" })
88
104
  },
89
105
  canAcceptBlock: (e) => e === "Span" || e === "Text"
90
106
  });
91
- const be = (e) => {
107
+ const ge = (e) => {
92
108
  const { blockProps: t, styles: l, content: o } = e;
93
- return $(e.children) ? p.createElement("p", {
109
+ return $(e.children) ? u.createElement("p", {
94
110
  ...l,
95
111
  ...t,
96
112
  dangerouslySetInnerHTML: { __html: o }
97
- }) : p.createElement("p", { ...l, ...t }, e.children);
113
+ }) : u.createElement("p", { ...l, ...t }, e.children);
98
114
  };
99
- d(be, {
115
+ d(ge, {
100
116
  type: "Paragraph",
101
117
  label: "Paragraph",
102
118
  category: "core",
103
119
  icon: X,
104
120
  group: "typography",
105
121
  props: {
106
- styles: i({ default: "" }),
107
- content: B({
122
+ styles: c({ default: "" }),
123
+ content: I({
108
124
  title: "Content",
109
125
  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."
110
126
  })
111
127
  },
112
128
  canAcceptBlock: (e) => e === "Span" || e === "Link"
113
129
  });
114
- const ge = (e) => {
130
+ const ve = (e) => {
115
131
  const { blockProps: t, styles: l, content: o, children: s = null, tag: a } = e;
116
- return s ? p.createElement("span", { ...l, ...t }, s) : p.createElement(a || "span", {
132
+ return s ? u.createElement("span", { ...l, ...t }, s) : u.createElement(a || "span", {
117
133
  ...l,
118
134
  ...t,
119
135
  dangerouslySetInnerHTML: { __html: o }
120
136
  });
121
137
  };
122
- d(ge, {
138
+ d(ve, {
123
139
  type: "Span",
124
140
  label: "Span",
125
141
  category: "core",
126
142
  group: "typography",
127
143
  props: {
128
- styles: i({ default: "" }),
129
- content: B({ title: "Content", default: "Enter your content" })
144
+ styles: c({ default: "" }),
145
+ content: I({ title: "Content", default: "Enter your content" })
130
146
  },
131
147
  canAcceptBlock: () => !0
132
148
  });
133
- const ve = (e) => {
149
+ const xe = (e) => {
134
150
  const { blockProps: t, content: l, styles: o } = e;
135
151
  return /* @__PURE__ */ n.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ n.jsx("div", { ...t, ...o, dangerouslySetInnerHTML: { __html: l } }) });
136
152
  };
137
- d(ve, {
153
+ d(xe, {
138
154
  type: "RichText",
139
155
  label: "Rich Text",
140
156
  category: "core",
141
157
  icon: Z,
142
158
  group: "typography",
143
159
  props: {
144
- styles: i({ default: "" }),
160
+ styles: c({ default: "" }),
145
161
  content: L({
146
162
  title: "Content",
147
163
  default: "<p>This is a rich text block. You can add text, and other content here.</p>"
148
164
  })
149
165
  }
150
166
  });
151
- const xe = (e) => {
152
- const { blockProps: t, iconSize: l, icon: o, content: s, iconPos: a, styles: r, children: c } = e, u = o, h = c || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
167
+ const ke = (e) => {
168
+ const { blockProps: t, iconSize: l, icon: o, content: s, iconPos: a, styles: r, children: i } = e, p = o, h = i || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
153
169
  /* @__PURE__ */ n.jsx("span", { children: s }),
154
- u && /* @__PURE__ */ n.jsx(
170
+ p && /* @__PURE__ */ n.jsx(
155
171
  "div",
156
172
  {
157
173
  style: { width: l + "px" },
158
174
  className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
159
- dangerouslySetInnerHTML: { __html: u }
175
+ dangerouslySetInnerHTML: { __html: p }
160
176
  }
161
177
  )
162
178
  ] });
163
- return p.createElement("button", { ...t, ...r, type: "button" }, h);
179
+ return u.createElement("button", { ...t, ...r, type: "button" }, h);
164
180
  };
165
- d(xe, {
181
+ d(ke, {
166
182
  type: "Button",
167
183
  label: "Button",
168
184
  category: "core",
@@ -170,10 +186,10 @@ d(xe, {
170
186
  group: "basic",
171
187
  props: {
172
188
  content: y({ title: "Label", default: "Button", multiLingual: !0 }),
173
- styles: i({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
189
+ styles: c({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
174
190
  icon: P({ title: "Icon", default: "" }),
175
191
  iconSize: _({ title: "Icon Size", default: 24 }),
176
- iconPos: I({
192
+ iconPos: w({
177
193
  title: "Icon Position",
178
194
  default: "order-last",
179
195
  options: [
@@ -183,14 +199,14 @@ d(xe, {
183
199
  })
184
200
  }
185
201
  });
186
- const ke = (e) => {
202
+ const Be = (e) => {
187
203
  const { blockProps: t, link: l, children: o, styles: s, inBuilder: a, content: r } = e;
188
- return !o && k(s == null ? void 0 : s.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, inBuilder: a }) : a ? o ? /* @__PURE__ */ n.jsx("span", { "data-simulate": "a", ...t, ...s, children: o }) : p.createElement("span", {
204
+ return !o && k(s == null ? void 0 : s.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, inBuilder: a }) : a ? o ? /* @__PURE__ */ n.jsx("span", { "data-simulate": "a", ...t, ...s, children: o }) : u.createElement("span", {
189
205
  ...t,
190
206
  ...s,
191
207
  dangerouslySetInnerHTML: { __html: r },
192
208
  "data-simulate": "a"
193
- }) : o ? /* @__PURE__ */ n.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...s, children: o }) : p.createElement("a", {
209
+ }) : o ? /* @__PURE__ */ n.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...s, children: o }) : u.createElement("a", {
194
210
  ...t,
195
211
  ...s,
196
212
  href: l.href || "#",
@@ -198,14 +214,14 @@ const ke = (e) => {
198
214
  dangerouslySetInnerHTML: { __html: r }
199
215
  });
200
216
  };
201
- d(ke, {
217
+ d(Be, {
202
218
  type: "Link",
203
219
  label: "Link",
204
220
  category: "core",
205
221
  icon: J,
206
222
  group: "basic",
207
223
  props: {
208
- styles: i({ default: "" }),
224
+ styles: c({ default: "" }),
209
225
  content: y({ title: "Content", default: "" }),
210
226
  link: U({
211
227
  title: "Link",
@@ -215,10 +231,10 @@ d(ke, {
215
231
  canAcceptBlock: () => !0
216
232
  });
217
233
  const we = (e) => {
218
- const { blockProps: t, children: l, listType: o, styles: s, tag: a, inBuilder: r } = e, c = S(x(s, "className", ""), o);
219
- return !l && k(s == null ? void 0 : s.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r, blockProps: t, text: "LIST ITEM" }) : p.createElement(
234
+ const { blockProps: t, children: l, listType: o, styles: s, tag: a, inBuilder: r } = e, i = S(x(s, "className", ""), o);
235
+ return !l && k(s == null ? void 0 : s.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r, blockProps: t, text: "LIST ITEM" }) : u.createElement(
220
236
  a || (o === "list-decimal" ? "ol" : "ul"),
221
- { ...t, ...s, className: c },
237
+ { ...t, ...s, className: i },
222
238
  l
223
239
  );
224
240
  };
@@ -229,8 +245,8 @@ d(we, {
229
245
  category: "core",
230
246
  group: "basic",
231
247
  props: {
232
- styles: i({ default: "" }),
233
- listType: I({
248
+ styles: c({ default: "" }),
249
+ listType: w({
234
250
  title: "List type",
235
251
  default: "list-disc",
236
252
  options: [
@@ -268,7 +284,7 @@ d(we, {
268
284
  });
269
285
  const Ie = (e) => {
270
286
  const { blockProps: t, content: l, styles: o, children: s, tag: a } = e;
271
- return s ? p.createElement(a || "li", { ...o, ...t }, s) : p.createElement(a || "li", {
287
+ return s ? u.createElement(a || "li", { ...o, ...t }, s) : u.createElement(a || "li", {
272
288
  ...o,
273
289
  ...t,
274
290
  dangerouslySetInnerHTML: { __html: l }
@@ -281,34 +297,34 @@ d(Ie, {
281
297
  category: "core",
282
298
  group: "basic",
283
299
  props: {
284
- styles: i({ default: "" }),
285
- content: B({ title: "Content", default: "List item" })
300
+ styles: c({ default: "" }),
301
+ content: I({ title: "Content", default: "List item" })
286
302
  },
287
303
  canAcceptBlock: () => !0,
288
304
  canBeNested: (e) => e === "List"
289
305
  });
290
- const w = (e, ...t) => ({
306
+ const B = (e, ...t) => ({
291
307
  ...e,
292
308
  className: S(e.className, ...t)
293
- }), Be = (e) => {
294
- const { blockProps: t, icon: l, styles: o, width: s, inBuilder: a, height: r } = e, c = w(o, S(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
309
+ }), Te = (e) => {
310
+ const { blockProps: t, icon: l, styles: o, width: s, inBuilder: a, height: r } = e, i = B(o, S(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
295
311
  if (k(l))
296
312
  return /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "", inBuilder: a, className: "h-8 w-14" });
297
- const u = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
298
- return p.createElement("span", {
313
+ const p = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
314
+ return u.createElement("span", {
299
315
  ...t,
300
- ...c,
301
- dangerouslySetInnerHTML: { __html: u }
316
+ ...i,
317
+ dangerouslySetInnerHTML: { __html: p }
302
318
  });
303
319
  };
304
- d(Be, {
320
+ d(Te, {
305
321
  type: "Icon",
306
322
  label: "Icon",
307
323
  category: "core",
308
324
  icon: ee,
309
325
  group: "media",
310
326
  props: {
311
- styles: i({ default: "text-black" }),
327
+ styles: c({ default: "text-black" }),
312
328
  icon: P({
313
329
  title: "Icon",
314
330
  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>'
@@ -317,9 +333,9 @@ d(Be, {
317
333
  height: _({ title: "Height", default: "" })
318
334
  }
319
335
  });
320
- const Te = (e) => {
336
+ const Le = (e) => {
321
337
  const { blockProps: t, image: l, styles: o, alt: s, height: a, width: r } = e;
322
- return k(l) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : p.createElement("img", {
338
+ return k(l) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : u.createElement("img", {
323
339
  ...t,
324
340
  ...o,
325
341
  src: l,
@@ -328,14 +344,14 @@ const Te = (e) => {
328
344
  width: r
329
345
  });
330
346
  };
331
- d(Te, {
347
+ d(Le, {
332
348
  type: "Image",
333
349
  label: "Image",
334
350
  category: "core",
335
351
  icon: te,
336
352
  group: "media",
337
353
  props: {
338
- styles: i({ default: "" }),
354
+ styles: c({ default: "" }),
339
355
  image: C({
340
356
  title: "Image",
341
357
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
@@ -345,7 +361,7 @@ d(Te, {
345
361
  height: y({ title: "Height", default: "" })
346
362
  }
347
363
  });
348
- const Le = (e) => {
364
+ const _e = (e) => {
349
365
  var r;
350
366
  const { blockProps: t, inBuilder: l, styles: o, children: s } = e;
351
367
  let a = null;
@@ -353,27 +369,27 @@ const Le = (e) => {
353
369
  /* @__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: [
354
370
  "Slot: ",
355
371
  e.name
356
- ] }) }) })), p.createElement("div", { ...o, ...t, droppable: "yes" }, s || a);
372
+ ] }) }) })), u.createElement("div", { ...o, ...t, droppable: "yes" }, s || a);
357
373
  };
358
- d(Le, {
374
+ d(_e, {
359
375
  type: "Slot",
360
376
  label: "Slot",
361
377
  group: "basic",
362
378
  category: "core",
363
379
  hidden: !0,
364
380
  props: {
365
- styles: i({ default: "" }),
366
- emptyStyles: i({ default: "" })
381
+ styles: c({ default: "" }),
382
+ emptyStyles: c({ default: "" })
367
383
  },
368
384
  canAcceptBlock: () => !0
369
385
  });
370
- const N = /^(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_-]+)/, _e = (e) => {
371
- if (N.test(e)) {
372
- const t = e.match(N);
373
- return t ? `https://www.youtube.com/embed/${t[4]}` : e;
374
- }
386
+ 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) => {
375
387
  if (M.test(e)) {
376
388
  const t = e.match(M);
389
+ return t ? `https://www.youtube.com/embed/${t[4]}` : e;
390
+ }
391
+ if (N.test(e)) {
392
+ const t = e.match(N);
377
393
  return t ? `https://player.vimeo.com/video/${t[3]}` : e;
378
394
  }
379
395
  if (H.test(e)) {
@@ -381,18 +397,18 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
381
397
  return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
382
398
  }
383
399
  return null;
384
- }, Se = p.memo(
400
+ }, je = u.memo(
385
401
  (e) => {
386
- const { blockProps: t, inBuilder: l, styles: o, url: s, controls: a } = e, r = x(a, "autoPlay", !1), c = x(a, "controls", !1), u = r || x(a, "muted", !0), h = x(a, "loop", !1);
402
+ const { blockProps: t, inBuilder: l, styles: o, url: s, controls: a } = e, r = x(a, "autoPlay", !1), i = x(a, "controls", !1), p = r || x(a, "muted", !0), h = x(a, "loop", !1);
387
403
  if (k(s))
388
404
  return /* @__PURE__ */ n.jsx(v, { inBuilder: l, blockProps: t, text: "VIDEO URL", className: "h-36" });
389
- let f = _e(s), m = null;
405
+ let f = Se(s), m = null;
390
406
  if (f) {
391
407
  if (!k(f)) {
392
408
  const T = [];
393
- T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${a ? 1 : 0}`), T.push(`mute=${u ? 1 : 0}&muted=${u ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`), f = `${f}?${T.join("&")}`;
409
+ T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${a ? 1 : 0}`), T.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`), f = `${f}?${T.join("&")}`;
394
410
  }
395
- m = p.createElement("iframe", {
411
+ m = u.createElement("iframe", {
396
412
  ...t,
397
413
  className: "absolute inset-0 w-full h-full",
398
414
  src: f,
@@ -401,12 +417,12 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
401
417
  frameBorder: 0
402
418
  });
403
419
  } else
404
- m = p.createElement("video", {
420
+ m = u.createElement("video", {
405
421
  ...t,
406
422
  className: "absolute inset-0 w-full h-full",
407
423
  src: s,
408
- controls: c,
409
- muted: u,
424
+ controls: i,
425
+ muted: p,
410
426
  autoPlay: l ? !1 : r,
411
427
  loop: h
412
428
  });
@@ -416,14 +432,14 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
416
432
  ] }) });
417
433
  }
418
434
  );
419
- d(Se, {
435
+ d(je, {
420
436
  type: "Video",
421
437
  label: "Video",
422
438
  category: "core",
423
439
  icon: le,
424
440
  group: "media",
425
441
  props: {
426
- styles: i({ default: "" }),
442
+ styles: c({ default: "" }),
427
443
  url: y({
428
444
  title: "Video URL",
429
445
  default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
@@ -439,49 +455,49 @@ d(Se, {
439
455
  })
440
456
  }
441
457
  });
442
- const je = p.memo(
458
+ const Ee = u.memo(
443
459
  (e) => {
444
460
  const { blockProps: t, styles: l, content: o, inBuilder: s } = e;
445
461
  return /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
446
462
  s ? /* @__PURE__ */ n.jsx("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
447
- p.createElement("div", {
463
+ u.createElement("div", {
448
464
  ...l,
449
465
  dangerouslySetInnerHTML: { __html: o }
450
466
  })
451
467
  ] });
452
468
  }
453
469
  );
454
- d(je, {
470
+ d(Ee, {
455
471
  type: "CustomHTML",
456
472
  label: "Custom HTML",
457
473
  category: "core",
458
474
  icon: oe,
459
475
  group: "advanced",
460
476
  props: {
461
- styles: i({ default: "" }),
462
- content: B({
477
+ styles: c({ default: "" }),
478
+ content: I({
463
479
  title: "HTML Content",
464
480
  default: "<div><p>HTML Snippet goes here...</p></div>",
465
481
  placeholder: "Enter custom HTML code here"
466
482
  })
467
483
  }
468
484
  });
469
- const Ee = (e) => {
485
+ const Ce = (e) => {
470
486
  const { blockProps: t, styles: l } = e;
471
- return p.createElement("hr", { ...l, ...t });
487
+ return u.createElement("hr", { ...l, ...t });
472
488
  };
473
- d(Ee, {
489
+ d(Ce, {
474
490
  type: "Divider",
475
491
  label: "Divider",
476
492
  category: "core",
477
493
  icon: se,
478
494
  group: "basic",
479
495
  props: {
480
- styles: i({ default: "bg-gray-900 h-0.5 py-2 my-1" })
496
+ styles: c({ default: "bg-gray-900 h-0.5 py-2 my-1" })
481
497
  }
482
498
  });
483
- const Ce = (e) => e.inBuilder ? /* @__PURE__ */ n.jsx("span", { className: "inline-block", ...e.blockProps, children: e.content }) : `${e.content}`;
484
- d(Ce, {
499
+ const Pe = (e) => e.inBuilder ? /* @__PURE__ */ n.jsx("span", { ...e.blockProps, children: e.content }) : `${e.content}`;
500
+ d(Pe, {
485
501
  type: "Text",
486
502
  label: "Text",
487
503
  hidden: !0,
@@ -489,20 +505,20 @@ d(Ce, {
489
505
  group: "typography",
490
506
  icon: F,
491
507
  props: {
492
- content: B({ title: "Content", defaultValue: "" })
508
+ content: I({ title: "Content", defaultValue: "" })
493
509
  }
494
510
  });
495
- const Pe = ({ children: e, blockProps: t, styles: l }) => {
496
- const o = w(l, "hs-accordion-group");
511
+ const Ae = ({ children: e, blockProps: t, styles: l }) => {
512
+ const o = B(l, "hs-accordion-group");
497
513
  return /* @__PURE__ */ n.jsx("div", { ...t, ...o, children: e });
498
514
  };
499
- d(Pe, {
515
+ d(Ae, {
500
516
  type: "AccordionGroup",
501
517
  label: "Accordion Group",
502
518
  category: "core",
503
519
  group: "advanced",
504
520
  props: {
505
- styles: i({ default: "" })
521
+ styles: c({ default: "" })
506
522
  },
507
523
  // @ts-ignore
508
524
  blocks: () => {
@@ -529,19 +545,19 @@ d(Pe, {
529
545
  },
530
546
  canAcceptBlock: (e) => e === "Accordion"
531
547
  });
532
- const Ae = ({ children: e, blockProps: t, styles: l, blockState: o }) => {
533
- const s = w(
548
+ const Me = ({ children: e, blockProps: t, styles: l, blockState: o }) => {
549
+ const s = B(
534
550
  l,
535
551
  "hs-accordion " + (o && o != null && o.active ? "active" : "")
536
552
  );
537
553
  return /* @__PURE__ */ n.jsx("div", { ...t, ...s, children: e });
538
554
  };
539
- d(Ae, {
555
+ d(Me, {
540
556
  type: "Accordion",
541
557
  label: "Accordion",
542
558
  category: "core",
543
559
  group: "advanced",
544
- props: { styles: i({ default: "" }) },
560
+ props: { styles: c({ default: "" }) },
545
561
  //@ts-ignore
546
562
  customStylingStates: {
547
563
  "hs-accordion-active": "Accordion Active"
@@ -567,7 +583,7 @@ d(Ae, {
567
583
  }
568
584
  });
569
585
  const Ne = ({ children: e, blockProps: t, styles: l }) => {
570
- const o = w(l, "hs-accordion-toggle");
586
+ const o = B(l, "hs-accordion-toggle");
571
587
  return /* @__PURE__ */ n.jsx("button", { ...o, ...t, children: e });
572
588
  };
573
589
  d(Ne, {
@@ -577,7 +593,7 @@ d(Ne, {
577
593
  group: "advanced",
578
594
  hidden: !0,
579
595
  props: {
580
- styles: i({
596
+ styles: c({
581
597
  default: "hs-accordion-active:text-blue-600 dark:hs-accordion-active:text-blue-500 inline-flex w-full items-center gap-x-3 rounded-lg px-6 py-3 text-start text-sm font-semibold text-gray-800 hover:text-gray-500 disabled:pointer-events-none disabled:opacity-50 dark:text-neutral-200 dark:hover:text-neutral-400"
582
598
  })
583
599
  },
@@ -586,22 +602,22 @@ d(Ne, {
586
602
  canMove: () => !1,
587
603
  canDuplicate: () => !1
588
604
  });
589
- const Me = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
590
- const a = w(
605
+ const He = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
606
+ const a = B(
591
607
  l,
592
608
  "hs-accordion-content",
593
609
  s && o ? o != null && o.active ? "!block !opacity-100" : "!hidden !opacity-0" : ""
594
610
  );
595
611
  return /* @__PURE__ */ n.jsx("div", { ...a, ...t, children: e });
596
612
  };
597
- d(Me, {
613
+ d(He, {
598
614
  type: "AccordionContent",
599
615
  label: "Accordion Content",
600
616
  category: "core",
601
617
  group: "advanced",
602
618
  hidden: !0,
603
619
  props: {
604
- styles: i({ default: "w-full overflow-hidden transition-height hidden duration-300" })
620
+ styles: c({ default: "w-full overflow-hidden transition-height hidden duration-300" })
605
621
  },
606
622
  //@ts-ignore
607
623
  getBlockStateFrom: (e) => [e._parent],
@@ -610,17 +626,17 @@ d(Me, {
610
626
  canMove: () => !1,
611
627
  canDuplicate: () => !1
612
628
  });
613
- const He = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
614
- const a = s && (o != null && o.active) ? " open" : "", r = w(l, "hs-collapse-toggle", a);
629
+ const Re = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
630
+ const a = s && (o != null && o.active) ? " open" : "", r = B(l, "hs-collapse-toggle", a);
615
631
  return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...t, children: e });
616
632
  };
617
- d(He, {
633
+ d(Re, {
618
634
  type: "CollapseToggle",
619
635
  label: "Collapse Toggle",
620
636
  category: "core",
621
637
  group: "advanced",
622
638
  hidden: !0,
623
- props: { styles: i({ default: "" }) },
639
+ props: { styles: c({ default: "" }) },
624
640
  canAcceptBlock: () => !0,
625
641
  //@ts-ignore
626
642
  customStylingStates: {
@@ -635,17 +651,17 @@ d(He, {
635
651
  return o ? [o == null ? void 0 : o._id] : [];
636
652
  }
637
653
  });
638
- const Re = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
639
- const a = s ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(a).filter((u) => a[u]).join(" "), c = w(l, "hs-collapse", r);
640
- return /* @__PURE__ */ n.jsx("div", { ...c, ...t, children: e });
654
+ const Fe = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
655
+ const a = s ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(a).filter((p) => a[p]).join(" "), i = B(l, "hs-collapse", r);
656
+ return /* @__PURE__ */ n.jsx("div", { ...i, ...t, children: e });
641
657
  };
642
- d(Re, {
658
+ d(Fe, {
643
659
  type: "Collapse",
644
660
  label: "Collapse",
645
661
  category: "core",
646
662
  group: "advanced",
647
663
  props: {
648
- styles: i({
664
+ styles: c({
649
665
  default: "transition-opacity transition-margin duration hs-collapse-open:opacity-100 opacity-0 w-56 hidden z-10 mt-2 min-w-60 bg-white"
650
666
  })
651
667
  },
@@ -663,19 +679,19 @@ d(Re, {
663
679
  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.
664
680
  </div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${g()}`))
665
681
  });
666
- const Fe = (e) => {
682
+ const De = (e) => {
667
683
  const { blockProps: t, backgroundImage: l, children: o, styles: s } = e;
668
684
  let a = {};
669
- return l && (a = { backgroundImage: `url(${l})` }), p.createElement("div", { ...t, ...s, style: a }, o);
685
+ return l && (a = { backgroundImage: `url(${l})` }), u.createElement("div", { ...t, ...s, style: a }, o);
670
686
  };
671
- d(Fe, {
687
+ d(De, {
672
688
  type: "Body",
673
689
  label: "Body",
674
690
  category: "core",
675
691
  group: "basic",
676
692
  hidden: !0,
677
693
  props: {
678
- styles: i({ default: "font-body antialiased" }),
694
+ styles: c({ default: "font-body antialiased" }),
679
695
  backgroundImage: C({ title: "Background Image" })
680
696
  },
681
697
  canAcceptBlock: () => !0,
@@ -683,11 +699,11 @@ d(Fe, {
683
699
  canMove: () => !1,
684
700
  canDuplicate: () => !1
685
701
  });
686
- const De = (e) => {
702
+ const $e = (e) => {
687
703
  const { blockProps: t, styles: l } = e;
688
- return p.createElement("br", { ...t, ...l });
704
+ return u.createElement("br", { ...t, ...l });
689
705
  };
690
- d(De, {
706
+ d($e, {
691
707
  type: "LineBreak",
692
708
  label: "Line Break",
693
709
  category: "core",
@@ -695,7 +711,7 @@ d(De, {
695
711
  hidden: !0,
696
712
  icon: F,
697
713
  props: {
698
- styles: i({ default: "" })
714
+ styles: c({ default: "" })
699
715
  }
700
716
  });
701
717
  const j = (e) => {
@@ -706,26 +722,26 @@ const j = (e) => {
706
722
  styles: "#styles:,",
707
723
  content: `${e === "TableHead" ? "Table Head" : "Table Cell " + r}`
708
724
  }), l = (a) => {
709
- const r = g(), c = {
725
+ const r = g(), i = {
710
726
  _type: "TableRow",
711
727
  _id: r,
712
728
  styles: "#styles:,border-b"
713
729
  };
714
- return a && (c._parent = a), [c, t(r, "1"), t(r, "2"), t(r, "3")];
730
+ return a && (i._parent = a), [i, t(r, "1"), t(r, "2"), t(r, "3")];
715
731
  }, o = (a) => {
716
- const r = g(), c = {
732
+ const r = g(), i = {
717
733
  _id: r,
718
734
  _type: "TableHead",
719
735
  styles: "#styles:,font-medium"
720
736
  };
721
- return a && (c._parent = a), [c, ...l(r)];
737
+ return a && (i._parent = a), [i, ...l(r)];
722
738
  }, s = (a) => {
723
- const r = g(), c = {
739
+ const r = g(), i = {
724
740
  _id: r,
725
741
  _type: "TableBody",
726
742
  styles: "#styles:,"
727
743
  };
728
- return a && (c._parent = a), [c, ...l(r), ...l(r)];
744
+ return a && (i._parent = a), [i, ...l(r), ...l(r)];
729
745
  };
730
746
  if (e === "Table") {
731
747
  const a = g();
@@ -740,11 +756,11 @@ const j = (e) => {
740
756
  ];
741
757
  }
742
758
  return e === "TableRow" ? l() : e === "TableHead" ? o() : e === "TableBody" ? s() : [];
743
- }, $e = (e) => {
759
+ }, ze = (e) => {
744
760
  const { blockProps: t, children: l, styles: o } = e;
745
- return l ? p.createElement("table", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE HEAD / BODY" });
761
+ return l ? u.createElement("table", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE HEAD / BODY" });
746
762
  };
747
- d($e, {
763
+ d(ze, {
748
764
  type: "Table",
749
765
  label: "Table",
750
766
  category: "core",
@@ -752,15 +768,15 @@ d($e, {
752
768
  hidden: !0,
753
769
  icon: ae,
754
770
  props: {
755
- styles: i({ default: "" })
771
+ styles: c({ default: "" })
756
772
  },
757
773
  blocks: j("Table")
758
774
  });
759
- const ze = (e) => {
775
+ const qe = (e) => {
760
776
  const { blockProps: t, children: l, styles: o } = e;
761
- return l ? p.createElement("thead", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
777
+ return l ? u.createElement("thead", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
762
778
  };
763
- d(ze, {
779
+ d(qe, {
764
780
  type: "TableHead",
765
781
  label: "Table Head",
766
782
  category: "core",
@@ -768,15 +784,15 @@ d(ze, {
768
784
  hidden: !0,
769
785
  icon: ne,
770
786
  props: {
771
- styles: i({ default: "" })
787
+ styles: c({ default: "" })
772
788
  },
773
789
  blocks: j("TableHead")
774
790
  });
775
- const qe = (e) => {
791
+ const Oe = (e) => {
776
792
  const { blockProps: t, children: l, styles: o } = e;
777
- return l ? p.createElement("tbody", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
793
+ return l ? u.createElement("tbody", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
778
794
  };
779
- d(qe, {
795
+ d(Oe, {
780
796
  type: "TableBody",
781
797
  label: "Table Body",
782
798
  category: "core",
@@ -784,15 +800,15 @@ d(qe, {
784
800
  hidden: !0,
785
801
  icon: re,
786
802
  props: {
787
- styles: i({ default: "" })
803
+ styles: c({ default: "" })
788
804
  },
789
805
  blocks: j("TableBody")
790
806
  });
791
- const Oe = (e) => {
807
+ const Ve = (e) => {
792
808
  const { blockProps: t, children: l, styles: o } = e;
793
- return l ? p.createElement("tr", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE CELL" });
809
+ return l ? u.createElement("tr", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE CELL" });
794
810
  };
795
- d(Oe, {
811
+ d(Ve, {
796
812
  type: "TableRow",
797
813
  label: "Table Row",
798
814
  category: "core",
@@ -800,19 +816,19 @@ d(Oe, {
800
816
  hidden: !0,
801
817
  icon: ce,
802
818
  props: {
803
- styles: i({ default: "w-full" })
819
+ styles: c({ default: "w-full" })
804
820
  },
805
821
  blocks: j("TableRow")
806
822
  });
807
- const Ve = (e) => {
823
+ const Ue = (e) => {
808
824
  const { blockProps: t, children: l, content: o, styles: s } = e;
809
- return !l && k(o) ? /* @__PURE__ */ n.jsx(v, { blockProps: t }) : l ? p.createElement("td", { ...t, ...s }, l) : p.createElement("td", {
825
+ return !l && k(o) ? /* @__PURE__ */ n.jsx(v, { blockProps: t }) : l ? u.createElement("td", { ...t, ...s }, l) : u.createElement("td", {
810
826
  ...t,
811
827
  ...s,
812
828
  dangerouslySetInnerHTML: { __html: o }
813
829
  });
814
830
  };
815
- d(Ve, {
831
+ d(Ue, {
816
832
  type: "TableCell",
817
833
  label: "Table Cell",
818
834
  category: "core",
@@ -820,14 +836,14 @@ d(Ve, {
820
836
  hidden: !0,
821
837
  icon: ie,
822
838
  props: {
823
- styles: i({ default: "" }),
839
+ styles: c({ default: "" }),
824
840
  content: L({ title: "Content", default: "Table cell item" })
825
841
  }
826
842
  });
827
- const Ue = (e) => {
828
- const { blockProps: t, errorMessage: l, name: o, _type: s, successMessage: a, action: r, styles: c, children: u } = e;
829
- let h = u;
830
- u || (h = /* @__PURE__ */ n.jsx(v, { blockProps: {}, text: "FORM FIELDS" }));
843
+ const Ge = (e) => {
844
+ const { blockProps: t, errorMessage: l, name: o, _type: s, successMessage: a, action: r, styles: i, children: p } = e;
845
+ let h = p;
846
+ p || (h = /* @__PURE__ */ n.jsx(v, { blockProps: {}, text: "FORM FIELDS" }));
831
847
  const f = {
832
848
  "x-data": "useForm",
833
849
  "x-on:submit.prevent": "post"
@@ -844,7 +860,7 @@ const Ue = (e) => {
844
860
  method: "post",
845
861
  action: r,
846
862
  ...t,
847
- ...c,
863
+ ...i,
848
864
  children: [
849
865
  /* @__PURE__ */ n.jsx("div", { ...m }),
850
866
  /* @__PURE__ */ n.jsx("input", { name: "formname", type: "hidden", value: o || s }),
@@ -853,7 +869,7 @@ const Ue = (e) => {
853
869
  }
854
870
  );
855
871
  };
856
- d(Ue, {
872
+ d(Ge, {
857
873
  type: "Form",
858
874
  label: "Form",
859
875
  category: "core",
@@ -861,7 +877,7 @@ d(Ue, {
861
877
  group: "form",
862
878
  hidden: !0,
863
879
  props: {
864
- styles: i({ default: "" }),
880
+ styles: c({ default: "" }),
865
881
  action: y({
866
882
  title: "Submit URL",
867
883
  default: "/api/form/submit"
@@ -877,14 +893,14 @@ d(Ue, {
877
893
  },
878
894
  canAcceptBlock: () => !0
879
895
  });
880
- const Ge = (e) => {
896
+ const We = (e) => {
881
897
  const { blockProps: t, content: l, styles: o, children: s } = e, a = { ...o, ...t };
882
- return s ? p.createElement("label", a, s) : p.createElement("label", {
898
+ return s ? u.createElement("label", a, s) : u.createElement("label", {
883
899
  ...a,
884
900
  dangerouslySetInnerHTML: { __html: l }
885
901
  });
886
902
  };
887
- d(Ge, {
903
+ d(We, {
888
904
  type: "Label",
889
905
  label: "Label",
890
906
  category: "core",
@@ -892,12 +908,12 @@ d(Ge, {
892
908
  group: "form",
893
909
  hidden: !0,
894
910
  props: {
895
- styles: i({ default: "" }),
911
+ styles: c({ default: "" }),
896
912
  content: y({ title: "Content", default: "Label" })
897
913
  }
898
914
  });
899
- const We = (e) => {
900
- const { blockProps: t, inBuilder: l, label: o, placeholder: s, styles: a, inputStyles: r, icon: c, iconPos: u } = e, h = g(), f = {
915
+ const Ye = (e) => {
916
+ const { blockProps: t, inBuilder: l, label: o, placeholder: s, styles: a, inputStyles: r, icon: i, iconPos: p } = e, h = g(), f = {
901
917
  "x-bind:disabled": "formLoading"
902
918
  };
903
919
  return /* @__PURE__ */ n.jsxs(
@@ -912,12 +928,12 @@ const We = (e) => {
912
928
  placeholder: s,
913
929
  children: [
914
930
  o,
915
- c && /* @__PURE__ */ n.jsx("span", { className: u, dangerouslySetInnerHTML: { __html: c } })
931
+ i && /* @__PURE__ */ n.jsx("span", { className: p, dangerouslySetInnerHTML: { __html: i } })
916
932
  ]
917
933
  }
918
934
  );
919
935
  };
920
- d(We, {
936
+ d(Ye, {
921
937
  type: "FormButton",
922
938
  label: "Submit Button",
923
939
  category: "core",
@@ -926,11 +942,11 @@ d(We, {
926
942
  hidden: !0,
927
943
  props: {
928
944
  label: y({ title: "Label", default: "Submit" }),
929
- styles: i({
945
+ styles: c({
930
946
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
931
947
  }),
932
948
  icon: P({ title: "Icon", default: "" }),
933
- iconPos: I({
949
+ iconPos: w({
934
950
  title: "Icon Position",
935
951
  default: "order-last",
936
952
  options: [
@@ -940,9 +956,9 @@ d(We, {
940
956
  })
941
957
  }
942
958
  });
943
- const Ye = (e) => {
944
- const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, required: r, checked: c, showLabel: u = !0 } = e, h = g();
945
- return u ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
959
+ const Xe = (e) => {
960
+ const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, required: r, checked: i, showLabel: p = !0 } = e, h = g();
961
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
946
962
  /* @__PURE__ */ n.jsx(
947
963
  "input",
948
964
  {
@@ -951,7 +967,7 @@ const Ye = (e) => {
951
967
  id: h,
952
968
  type: "checkbox",
953
969
  required: r,
954
- defaultChecked: c
970
+ defaultChecked: i
955
971
  }
956
972
  ),
957
973
  o && o !== "Label" && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
@@ -968,7 +984,7 @@ const Ye = (e) => {
968
984
  }
969
985
  );
970
986
  };
971
- d(Ye, {
987
+ d(Xe, {
972
988
  type: "Checkbox",
973
989
  label: "Checkbox",
974
990
  category: "core",
@@ -977,13 +993,13 @@ d(Ye, {
977
993
  hidden: !0,
978
994
  props: {
979
995
  fieldName: y({ title: "Field Name", default: "checkbox" }),
980
- styles: i({ default: "flex items-center gap-x-2" }),
996
+ styles: c({ default: "flex items-center gap-x-2" }),
981
997
  label: y({ title: "Label", default: "Label" }),
982
998
  checked: b({ title: "Checked", default: !1 }),
983
999
  required: b({ title: "Required", default: !1 })
984
1000
  }
985
1001
  });
986
- const Xe = (e) => {
1002
+ const Ze = (e) => {
987
1003
  const {
988
1004
  blockProps: t,
989
1005
  label: l,
@@ -991,12 +1007,12 @@ const Xe = (e) => {
991
1007
  styles: s,
992
1008
  inputStyles: a,
993
1009
  showLabel: r,
994
- required: c,
995
- inputType: u = "text",
1010
+ required: i,
1011
+ inputType: p = "text",
996
1012
  inBuilder: h,
997
1013
  fieldName: f
998
1014
  } = e, m = g();
999
- return !r || u === "submit" ? (u === "submit" && (t.value = l), /* @__PURE__ */ n.jsx(
1015
+ return !r || p === "submit" ? (p === "submit" && (t.value = l), /* @__PURE__ */ n.jsx(
1000
1016
  "input",
1001
1017
  {
1002
1018
  id: m,
@@ -1005,9 +1021,9 @@ const Xe = (e) => {
1005
1021
  ...t,
1006
1022
  ...a,
1007
1023
  ...s,
1008
- type: u,
1024
+ type: p,
1009
1025
  placeholder: o,
1010
- required: c
1026
+ required: i
1011
1027
  }
1012
1028
  )) : /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
1013
1029
  r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children: l }),
@@ -1018,14 +1034,14 @@ const Xe = (e) => {
1018
1034
  readOnly: h,
1019
1035
  ...a,
1020
1036
  id: m,
1021
- type: u,
1037
+ type: p,
1022
1038
  placeholder: o,
1023
- required: c
1039
+ required: i
1024
1040
  }
1025
1041
  )
1026
1042
  ] });
1027
1043
  };
1028
- d(Xe, {
1044
+ d(Ze, {
1029
1045
  type: "Input",
1030
1046
  label: "Input",
1031
1047
  category: "core",
@@ -1033,9 +1049,9 @@ d(Xe, {
1033
1049
  group: "form",
1034
1050
  hidden: !0,
1035
1051
  props: {
1036
- styles: i({ default: "" }),
1052
+ styles: c({ default: "" }),
1037
1053
  fieldName: y({ title: "Field Name", default: "input" }),
1038
- inputType: I({
1054
+ inputType: w({
1039
1055
  title: "Type",
1040
1056
  options: E(
1041
1057
  ["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
@@ -1048,7 +1064,7 @@ d(Xe, {
1048
1064
  }),
1049
1065
  value: y({ title: "Value", default: "" }),
1050
1066
  showLabel: b({ title: "Show label", default: !0 }),
1051
- inputStyles: i({ default: "w-full p-1" }),
1067
+ inputStyles: c({ default: "w-full p-1" }),
1052
1068
  label: y({ title: "Label", default: "Label" }),
1053
1069
  placeholder: y({
1054
1070
  title: "Placeholder",
@@ -1057,10 +1073,10 @@ d(Xe, {
1057
1073
  required: b({ title: "Required", default: !1 })
1058
1074
  }
1059
1075
  });
1060
- const Ze = (e) => {
1061
- const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, checked: r, required: c, showLabel: u = !0 } = e, h = g();
1062
- return u ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
1063
- /* @__PURE__ */ n.jsx("input", { ...a, name: l, id: h, type: "radio", required: c, defaultChecked: r }),
1076
+ const Je = (e) => {
1077
+ const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, checked: r, required: i, showLabel: p = !0 } = e, h = g();
1078
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
1079
+ /* @__PURE__ */ n.jsx("input", { ...a, name: l, id: h, type: "radio", required: i, defaultChecked: r }),
1064
1080
  o && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
1065
1081
  ] }) : /* @__PURE__ */ n.jsx(
1066
1082
  "input",
@@ -1070,13 +1086,13 @@ const Ze = (e) => {
1070
1086
  ...a,
1071
1087
  ...s,
1072
1088
  type: "radio",
1073
- required: c,
1089
+ required: i,
1074
1090
  checked: r,
1075
1091
  name: l
1076
1092
  }
1077
1093
  );
1078
1094
  };
1079
- d(Ze, {
1095
+ d(Je, {
1080
1096
  type: "Radio",
1081
1097
  label: "Radio",
1082
1098
  category: "core",
@@ -1084,14 +1100,14 @@ d(Ze, {
1084
1100
  group: "form",
1085
1101
  hidden: !0,
1086
1102
  props: {
1087
- styles: i({ default: "flex items-center w-max gap-x-2" }),
1103
+ styles: c({ default: "flex items-center w-max gap-x-2" }),
1088
1104
  fieldName: y({ title: "Field Name", default: "radio" }),
1089
1105
  label: y({ title: "Label", default: "Label" }),
1090
1106
  checked: b({ title: "Checked", default: !1 }),
1091
1107
  required: b({ title: "Required", default: !1 })
1092
1108
  }
1093
1109
  });
1094
- const Je = (e) => {
1110
+ const Ke = (e) => {
1095
1111
  const {
1096
1112
  blockProps: t,
1097
1113
  fieldName: l,
@@ -1099,19 +1115,19 @@ const Je = (e) => {
1099
1115
  placeholder: s,
1100
1116
  styles: a,
1101
1117
  inputStyles: r,
1102
- required: c,
1103
- showLabel: u,
1118
+ required: i,
1119
+ showLabel: p,
1104
1120
  _multiple: h = !1
1105
1121
  } = e, f = g();
1106
- return u ? /* @__PURE__ */ n.jsxs("div", { ...a, children: [
1107
- u && /* @__PURE__ */ n.jsx("label", { htmlFor: f, children: o }),
1122
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...a, children: [
1123
+ p && /* @__PURE__ */ n.jsx("label", { htmlFor: f, children: o }),
1108
1124
  /* @__PURE__ */ n.jsxs(
1109
1125
  "select",
1110
1126
  {
1111
1127
  ...r,
1112
1128
  id: f,
1113
1129
  placeholder: s,
1114
- required: c,
1130
+ required: i,
1115
1131
  multiple: h,
1116
1132
  name: l,
1117
1133
  children: [
@@ -1135,7 +1151,7 @@ const Je = (e) => {
1135
1151
  ...a,
1136
1152
  ...t,
1137
1153
  placeholder: s,
1138
- required: c,
1154
+ required: i,
1139
1155
  multiple: h,
1140
1156
  name: l,
1141
1157
  children: [
@@ -1153,7 +1169,7 @@ const Je = (e) => {
1153
1169
  }
1154
1170
  );
1155
1171
  };
1156
- d(Je, {
1172
+ d(Ke, {
1157
1173
  type: "Select",
1158
1174
  label: "Select",
1159
1175
  category: "core",
@@ -1161,10 +1177,10 @@ d(Je, {
1161
1177
  group: "form",
1162
1178
  hidden: !0,
1163
1179
  props: {
1164
- styles: i({ default: "" }),
1180
+ styles: c({ default: "" }),
1165
1181
  fieldName: y({ title: "Field Name", default: "select" }),
1166
1182
  showLabel: b({ title: "Show label", default: !0 }),
1167
- inputStyles: i({ default: "w-full p-1" }),
1183
+ inputStyles: c({ default: "w-full p-1" }),
1168
1184
  label: y({ title: "Label", default: "Label" }),
1169
1185
  placeholder: y({
1170
1186
  title: "Placeholder",
@@ -1181,11 +1197,11 @@ d(Je, {
1181
1197
  })
1182
1198
  }
1183
1199
  });
1184
- const Ke = (e) => {
1185
- const { blockProps: t, fieldName: l, label: o, placeholder: s, styles: a, inputStyles: r, _rows: c, showLabel: u } = e, h = g();
1186
- return u ? /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
1187
- u && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o }),
1188
- /* @__PURE__ */ n.jsx("textarea", { name: l, ...r, id: h, placeholder: s, rows: c })
1200
+ const Qe = (e) => {
1201
+ const { blockProps: t, fieldName: l, label: o, placeholder: s, styles: a, inputStyles: r, _rows: i, showLabel: p } = e, h = g();
1202
+ return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
1203
+ p && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o }),
1204
+ /* @__PURE__ */ n.jsx("textarea", { name: l, ...r, id: h, placeholder: s, rows: i })
1189
1205
  ] }) : /* @__PURE__ */ n.jsx(
1190
1206
  "textarea",
1191
1207
  {
@@ -1195,11 +1211,11 @@ const Ke = (e) => {
1195
1211
  ...r,
1196
1212
  ...a,
1197
1213
  placeholder: s,
1198
- rows: c
1214
+ rows: i
1199
1215
  }
1200
1216
  );
1201
1217
  };
1202
- d(Ke, {
1218
+ d(Qe, {
1203
1219
  type: "TextArea",
1204
1220
  label: "TextArea",
1205
1221
  category: "core",
@@ -1209,8 +1225,8 @@ d(Ke, {
1209
1225
  props: {
1210
1226
  fieldName: y({ title: "Field Name", default: "textarea" }),
1211
1227
  showLabel: b({ title: "Show label", default: !0 }),
1212
- styles: i({ default: "" }),
1213
- inputStyles: i({ default: "w-full p-1" }),
1228
+ styles: c({ default: "" }),
1229
+ inputStyles: c({ default: "w-full p-1" }),
1214
1230
  label: y({ title: "Label", default: "Label" }),
1215
1231
  placeholder: y({
1216
1232
  title: "Placeholder",
@@ -1219,7 +1235,7 @@ d(Ke, {
1219
1235
  _rows: _({ title: "Rows", default: 3 })
1220
1236
  }
1221
1237
  });
1222
- const pt = V;
1238
+ const ht = V;
1223
1239
  export {
1224
- pt as loadWebBlocks
1240
+ ht as loadWebBlocks
1225
1241
  };