@chaibuilder/sdk 1.2.28 → 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 -219
  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,37 +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(
295
- o,
296
- S("inline-block", s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : "")
297
- );
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]` : ""));
298
311
  if (k(l))
299
312
  return /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "", inBuilder: a, className: "h-8 w-14" });
300
- const u = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
301
- return p.createElement("span", {
313
+ const p = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
314
+ return u.createElement("span", {
302
315
  ...t,
303
- ...c,
304
- dangerouslySetInnerHTML: { __html: u }
316
+ ...i,
317
+ dangerouslySetInnerHTML: { __html: p }
305
318
  });
306
319
  };
307
- d(Be, {
320
+ d(Te, {
308
321
  type: "Icon",
309
322
  label: "Icon",
310
323
  category: "core",
311
324
  icon: ee,
312
325
  group: "media",
313
326
  props: {
314
- styles: i({ default: "text-black" }),
327
+ styles: c({ default: "text-black" }),
315
328
  icon: P({
316
329
  title: "Icon",
317
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>'
@@ -320,9 +333,9 @@ d(Be, {
320
333
  height: _({ title: "Height", default: "" })
321
334
  }
322
335
  });
323
- const Te = (e) => {
336
+ const Le = (e) => {
324
337
  const { blockProps: t, image: l, styles: o, alt: s, height: a, width: r } = e;
325
- 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", {
326
339
  ...t,
327
340
  ...o,
328
341
  src: l,
@@ -331,14 +344,14 @@ const Te = (e) => {
331
344
  width: r
332
345
  });
333
346
  };
334
- d(Te, {
347
+ d(Le, {
335
348
  type: "Image",
336
349
  label: "Image",
337
350
  category: "core",
338
351
  icon: te,
339
352
  group: "media",
340
353
  props: {
341
- styles: i({ default: "" }),
354
+ styles: c({ default: "" }),
342
355
  image: C({
343
356
  title: "Image",
344
357
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
@@ -348,7 +361,7 @@ d(Te, {
348
361
  height: y({ title: "Height", default: "" })
349
362
  }
350
363
  });
351
- const Le = (e) => {
364
+ const _e = (e) => {
352
365
  var r;
353
366
  const { blockProps: t, inBuilder: l, styles: o, children: s } = e;
354
367
  let a = null;
@@ -356,27 +369,27 @@ const Le = (e) => {
356
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: [
357
370
  "Slot: ",
358
371
  e.name
359
- ] }) }) })), p.createElement("div", { ...o, ...t, droppable: "yes" }, s || a);
372
+ ] }) }) })), u.createElement("div", { ...o, ...t, droppable: "yes" }, s || a);
360
373
  };
361
- d(Le, {
374
+ d(_e, {
362
375
  type: "Slot",
363
376
  label: "Slot",
364
377
  group: "basic",
365
378
  category: "core",
366
379
  hidden: !0,
367
380
  props: {
368
- styles: i({ default: "" }),
369
- emptyStyles: i({ default: "" })
381
+ styles: c({ default: "" }),
382
+ emptyStyles: c({ default: "" })
370
383
  },
371
384
  canAcceptBlock: () => !0
372
385
  });
373
- 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) => {
374
- if (N.test(e)) {
375
- const t = e.match(N);
376
- return t ? `https://www.youtube.com/embed/${t[4]}` : e;
377
- }
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) => {
378
387
  if (M.test(e)) {
379
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);
380
393
  return t ? `https://player.vimeo.com/video/${t[3]}` : e;
381
394
  }
382
395
  if (H.test(e)) {
@@ -384,18 +397,18 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
384
397
  return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
385
398
  }
386
399
  return null;
387
- }, Se = p.memo(
400
+ }, je = u.memo(
388
401
  (e) => {
389
- 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);
390
403
  if (k(s))
391
404
  return /* @__PURE__ */ n.jsx(v, { inBuilder: l, blockProps: t, text: "VIDEO URL", className: "h-36" });
392
- let f = _e(s), m = null;
405
+ let f = Se(s), m = null;
393
406
  if (f) {
394
407
  if (!k(f)) {
395
408
  const T = [];
396
- 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("&")}`;
397
410
  }
398
- m = p.createElement("iframe", {
411
+ m = u.createElement("iframe", {
399
412
  ...t,
400
413
  className: "absolute inset-0 w-full h-full",
401
414
  src: f,
@@ -404,12 +417,12 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
404
417
  frameBorder: 0
405
418
  });
406
419
  } else
407
- m = p.createElement("video", {
420
+ m = u.createElement("video", {
408
421
  ...t,
409
422
  className: "absolute inset-0 w-full h-full",
410
423
  src: s,
411
- controls: c,
412
- muted: u,
424
+ controls: i,
425
+ muted: p,
413
426
  autoPlay: l ? !1 : r,
414
427
  loop: h
415
428
  });
@@ -419,14 +432,14 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
419
432
  ] }) });
420
433
  }
421
434
  );
422
- d(Se, {
435
+ d(je, {
423
436
  type: "Video",
424
437
  label: "Video",
425
438
  category: "core",
426
439
  icon: le,
427
440
  group: "media",
428
441
  props: {
429
- styles: i({ default: "" }),
442
+ styles: c({ default: "" }),
430
443
  url: y({
431
444
  title: "Video URL",
432
445
  default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
@@ -442,49 +455,49 @@ d(Se, {
442
455
  })
443
456
  }
444
457
  });
445
- const je = p.memo(
458
+ const Ee = u.memo(
446
459
  (e) => {
447
460
  const { blockProps: t, styles: l, content: o, inBuilder: s } = e;
448
461
  return /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
449
462
  s ? /* @__PURE__ */ n.jsx("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
450
- p.createElement("div", {
463
+ u.createElement("div", {
451
464
  ...l,
452
465
  dangerouslySetInnerHTML: { __html: o }
453
466
  })
454
467
  ] });
455
468
  }
456
469
  );
457
- d(je, {
470
+ d(Ee, {
458
471
  type: "CustomHTML",
459
472
  label: "Custom HTML",
460
473
  category: "core",
461
474
  icon: oe,
462
475
  group: "advanced",
463
476
  props: {
464
- styles: i({ default: "" }),
465
- content: B({
477
+ styles: c({ default: "" }),
478
+ content: I({
466
479
  title: "HTML Content",
467
480
  default: "<div><p>HTML Snippet goes here...</p></div>",
468
481
  placeholder: "Enter custom HTML code here"
469
482
  })
470
483
  }
471
484
  });
472
- const Ee = (e) => {
485
+ const Ce = (e) => {
473
486
  const { blockProps: t, styles: l } = e;
474
- return p.createElement("hr", { ...l, ...t });
487
+ return u.createElement("hr", { ...l, ...t });
475
488
  };
476
- d(Ee, {
489
+ d(Ce, {
477
490
  type: "Divider",
478
491
  label: "Divider",
479
492
  category: "core",
480
493
  icon: se,
481
494
  group: "basic",
482
495
  props: {
483
- 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" })
484
497
  }
485
498
  });
486
- const Ce = (e) => e.inBuilder ? /* @__PURE__ */ n.jsx("span", { className: "inline-block", ...e.blockProps, children: e.content }) : `${e.content}`;
487
- d(Ce, {
499
+ const Pe = (e) => e.inBuilder ? /* @__PURE__ */ n.jsx("span", { ...e.blockProps, children: e.content }) : `${e.content}`;
500
+ d(Pe, {
488
501
  type: "Text",
489
502
  label: "Text",
490
503
  hidden: !0,
@@ -492,20 +505,20 @@ d(Ce, {
492
505
  group: "typography",
493
506
  icon: F,
494
507
  props: {
495
- content: B({ title: "Content", defaultValue: "" })
508
+ content: I({ title: "Content", defaultValue: "" })
496
509
  }
497
510
  });
498
- const Pe = ({ children: e, blockProps: t, styles: l }) => {
499
- const o = w(l, "hs-accordion-group");
511
+ const Ae = ({ children: e, blockProps: t, styles: l }) => {
512
+ const o = B(l, "hs-accordion-group");
500
513
  return /* @__PURE__ */ n.jsx("div", { ...t, ...o, children: e });
501
514
  };
502
- d(Pe, {
515
+ d(Ae, {
503
516
  type: "AccordionGroup",
504
517
  label: "Accordion Group",
505
518
  category: "core",
506
519
  group: "advanced",
507
520
  props: {
508
- styles: i({ default: "" })
521
+ styles: c({ default: "" })
509
522
  },
510
523
  // @ts-ignore
511
524
  blocks: () => {
@@ -532,19 +545,19 @@ d(Pe, {
532
545
  },
533
546
  canAcceptBlock: (e) => e === "Accordion"
534
547
  });
535
- const Ae = ({ children: e, blockProps: t, styles: l, blockState: o }) => {
536
- const s = w(
548
+ const Me = ({ children: e, blockProps: t, styles: l, blockState: o }) => {
549
+ const s = B(
537
550
  l,
538
551
  "hs-accordion " + (o && o != null && o.active ? "active" : "")
539
552
  );
540
553
  return /* @__PURE__ */ n.jsx("div", { ...t, ...s, children: e });
541
554
  };
542
- d(Ae, {
555
+ d(Me, {
543
556
  type: "Accordion",
544
557
  label: "Accordion",
545
558
  category: "core",
546
559
  group: "advanced",
547
- props: { styles: i({ default: "" }) },
560
+ props: { styles: c({ default: "" }) },
548
561
  //@ts-ignore
549
562
  customStylingStates: {
550
563
  "hs-accordion-active": "Accordion Active"
@@ -570,7 +583,7 @@ d(Ae, {
570
583
  }
571
584
  });
572
585
  const Ne = ({ children: e, blockProps: t, styles: l }) => {
573
- const o = w(l, "hs-accordion-toggle");
586
+ const o = B(l, "hs-accordion-toggle");
574
587
  return /* @__PURE__ */ n.jsx("button", { ...o, ...t, children: e });
575
588
  };
576
589
  d(Ne, {
@@ -580,7 +593,7 @@ d(Ne, {
580
593
  group: "advanced",
581
594
  hidden: !0,
582
595
  props: {
583
- styles: i({
596
+ styles: c({
584
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"
585
598
  })
586
599
  },
@@ -589,22 +602,22 @@ d(Ne, {
589
602
  canMove: () => !1,
590
603
  canDuplicate: () => !1
591
604
  });
592
- const Me = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
593
- const a = w(
605
+ const He = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
606
+ const a = B(
594
607
  l,
595
608
  "hs-accordion-content",
596
609
  s && o ? o != null && o.active ? "!block !opacity-100" : "!hidden !opacity-0" : ""
597
610
  );
598
611
  return /* @__PURE__ */ n.jsx("div", { ...a, ...t, children: e });
599
612
  };
600
- d(Me, {
613
+ d(He, {
601
614
  type: "AccordionContent",
602
615
  label: "Accordion Content",
603
616
  category: "core",
604
617
  group: "advanced",
605
618
  hidden: !0,
606
619
  props: {
607
- 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" })
608
621
  },
609
622
  //@ts-ignore
610
623
  getBlockStateFrom: (e) => [e._parent],
@@ -613,17 +626,17 @@ d(Me, {
613
626
  canMove: () => !1,
614
627
  canDuplicate: () => !1
615
628
  });
616
- const He = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
617
- 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);
618
631
  return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...t, children: e });
619
632
  };
620
- d(He, {
633
+ d(Re, {
621
634
  type: "CollapseToggle",
622
635
  label: "Collapse Toggle",
623
636
  category: "core",
624
637
  group: "advanced",
625
638
  hidden: !0,
626
- props: { styles: i({ default: "" }) },
639
+ props: { styles: c({ default: "" }) },
627
640
  canAcceptBlock: () => !0,
628
641
  //@ts-ignore
629
642
  customStylingStates: {
@@ -638,17 +651,17 @@ d(He, {
638
651
  return o ? [o == null ? void 0 : o._id] : [];
639
652
  }
640
653
  });
641
- const Re = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
642
- const a = s ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "hidden opacity-0": !(o != null && o.active) } : {}, r = Object.keys(a).filter((u) => a[u]).join(" "), c = w(l, "hs-collapse", r);
643
- 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 });
644
657
  };
645
- d(Re, {
658
+ d(Fe, {
646
659
  type: "Collapse",
647
660
  label: "Collapse",
648
661
  category: "core",
649
662
  group: "advanced",
650
663
  props: {
651
- styles: i({
664
+ styles: c({
652
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"
653
666
  })
654
667
  },
@@ -666,19 +679,19 @@ d(Re, {
666
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.
667
680
  </div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${g()}`))
668
681
  });
669
- const Fe = (e) => {
682
+ const De = (e) => {
670
683
  const { blockProps: t, backgroundImage: l, children: o, styles: s } = e;
671
684
  let a = {};
672
- 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);
673
686
  };
674
- d(Fe, {
687
+ d(De, {
675
688
  type: "Body",
676
689
  label: "Body",
677
690
  category: "core",
678
691
  group: "basic",
679
692
  hidden: !0,
680
693
  props: {
681
- styles: i({ default: "font-body antialiased" }),
694
+ styles: c({ default: "font-body antialiased" }),
682
695
  backgroundImage: C({ title: "Background Image" })
683
696
  },
684
697
  canAcceptBlock: () => !0,
@@ -686,11 +699,11 @@ d(Fe, {
686
699
  canMove: () => !1,
687
700
  canDuplicate: () => !1
688
701
  });
689
- const De = (e) => {
702
+ const $e = (e) => {
690
703
  const { blockProps: t, styles: l } = e;
691
- return p.createElement("br", { ...t, ...l });
704
+ return u.createElement("br", { ...t, ...l });
692
705
  };
693
- d(De, {
706
+ d($e, {
694
707
  type: "LineBreak",
695
708
  label: "Line Break",
696
709
  category: "core",
@@ -698,7 +711,7 @@ d(De, {
698
711
  hidden: !0,
699
712
  icon: F,
700
713
  props: {
701
- styles: i({ default: "" })
714
+ styles: c({ default: "" })
702
715
  }
703
716
  });
704
717
  const j = (e) => {
@@ -709,26 +722,26 @@ const j = (e) => {
709
722
  styles: "#styles:,",
710
723
  content: `${e === "TableHead" ? "Table Head" : "Table Cell " + r}`
711
724
  }), l = (a) => {
712
- const r = g(), c = {
725
+ const r = g(), i = {
713
726
  _type: "TableRow",
714
727
  _id: r,
715
728
  styles: "#styles:,border-b"
716
729
  };
717
- 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")];
718
731
  }, o = (a) => {
719
- const r = g(), c = {
732
+ const r = g(), i = {
720
733
  _id: r,
721
734
  _type: "TableHead",
722
735
  styles: "#styles:,font-medium"
723
736
  };
724
- return a && (c._parent = a), [c, ...l(r)];
737
+ return a && (i._parent = a), [i, ...l(r)];
725
738
  }, s = (a) => {
726
- const r = g(), c = {
739
+ const r = g(), i = {
727
740
  _id: r,
728
741
  _type: "TableBody",
729
742
  styles: "#styles:,"
730
743
  };
731
- return a && (c._parent = a), [c, ...l(r), ...l(r)];
744
+ return a && (i._parent = a), [i, ...l(r), ...l(r)];
732
745
  };
733
746
  if (e === "Table") {
734
747
  const a = g();
@@ -743,11 +756,11 @@ const j = (e) => {
743
756
  ];
744
757
  }
745
758
  return e === "TableRow" ? l() : e === "TableHead" ? o() : e === "TableBody" ? s() : [];
746
- }, $e = (e) => {
759
+ }, ze = (e) => {
747
760
  const { blockProps: t, children: l, styles: o } = e;
748
- 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" });
749
762
  };
750
- d($e, {
763
+ d(ze, {
751
764
  type: "Table",
752
765
  label: "Table",
753
766
  category: "core",
@@ -755,15 +768,15 @@ d($e, {
755
768
  hidden: !0,
756
769
  icon: ae,
757
770
  props: {
758
- styles: i({ default: "" })
771
+ styles: c({ default: "" })
759
772
  },
760
773
  blocks: j("Table")
761
774
  });
762
- const ze = (e) => {
775
+ const qe = (e) => {
763
776
  const { blockProps: t, children: l, styles: o } = e;
764
- 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" });
765
778
  };
766
- d(ze, {
779
+ d(qe, {
767
780
  type: "TableHead",
768
781
  label: "Table Head",
769
782
  category: "core",
@@ -771,15 +784,15 @@ d(ze, {
771
784
  hidden: !0,
772
785
  icon: ne,
773
786
  props: {
774
- styles: i({ default: "" })
787
+ styles: c({ default: "" })
775
788
  },
776
789
  blocks: j("TableHead")
777
790
  });
778
- const qe = (e) => {
791
+ const Oe = (e) => {
779
792
  const { blockProps: t, children: l, styles: o } = e;
780
- 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" });
781
794
  };
782
- d(qe, {
795
+ d(Oe, {
783
796
  type: "TableBody",
784
797
  label: "Table Body",
785
798
  category: "core",
@@ -787,15 +800,15 @@ d(qe, {
787
800
  hidden: !0,
788
801
  icon: re,
789
802
  props: {
790
- styles: i({ default: "" })
803
+ styles: c({ default: "" })
791
804
  },
792
805
  blocks: j("TableBody")
793
806
  });
794
- const Oe = (e) => {
807
+ const Ve = (e) => {
795
808
  const { blockProps: t, children: l, styles: o } = e;
796
- 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" });
797
810
  };
798
- d(Oe, {
811
+ d(Ve, {
799
812
  type: "TableRow",
800
813
  label: "Table Row",
801
814
  category: "core",
@@ -803,19 +816,19 @@ d(Oe, {
803
816
  hidden: !0,
804
817
  icon: ce,
805
818
  props: {
806
- styles: i({ default: "w-full" })
819
+ styles: c({ default: "w-full" })
807
820
  },
808
821
  blocks: j("TableRow")
809
822
  });
810
- const Ve = (e) => {
823
+ const Ue = (e) => {
811
824
  const { blockProps: t, children: l, content: o, styles: s } = e;
812
- 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", {
813
826
  ...t,
814
827
  ...s,
815
828
  dangerouslySetInnerHTML: { __html: o }
816
829
  });
817
830
  };
818
- d(Ve, {
831
+ d(Ue, {
819
832
  type: "TableCell",
820
833
  label: "Table Cell",
821
834
  category: "core",
@@ -823,14 +836,14 @@ d(Ve, {
823
836
  hidden: !0,
824
837
  icon: ie,
825
838
  props: {
826
- styles: i({ default: "" }),
839
+ styles: c({ default: "" }),
827
840
  content: L({ title: "Content", default: "Table cell item" })
828
841
  }
829
842
  });
830
- const Ue = (e) => {
831
- const { blockProps: t, errorMessage: l, name: o, _type: s, successMessage: a, action: r, styles: c, children: u } = e;
832
- let h = u;
833
- 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" }));
834
847
  const f = {
835
848
  "x-data": "useForm",
836
849
  "x-on:submit.prevent": "post"
@@ -847,7 +860,7 @@ const Ue = (e) => {
847
860
  method: "post",
848
861
  action: r,
849
862
  ...t,
850
- ...c,
863
+ ...i,
851
864
  children: [
852
865
  /* @__PURE__ */ n.jsx("div", { ...m }),
853
866
  /* @__PURE__ */ n.jsx("input", { name: "formname", type: "hidden", value: o || s }),
@@ -856,7 +869,7 @@ const Ue = (e) => {
856
869
  }
857
870
  );
858
871
  };
859
- d(Ue, {
872
+ d(Ge, {
860
873
  type: "Form",
861
874
  label: "Form",
862
875
  category: "core",
@@ -864,7 +877,7 @@ d(Ue, {
864
877
  group: "form",
865
878
  hidden: !0,
866
879
  props: {
867
- styles: i({ default: "" }),
880
+ styles: c({ default: "" }),
868
881
  action: y({
869
882
  title: "Submit URL",
870
883
  default: "/api/form/submit"
@@ -880,14 +893,14 @@ d(Ue, {
880
893
  },
881
894
  canAcceptBlock: () => !0
882
895
  });
883
- const Ge = (e) => {
896
+ const We = (e) => {
884
897
  const { blockProps: t, content: l, styles: o, children: s } = e, a = { ...o, ...t };
885
- return s ? p.createElement("label", a, s) : p.createElement("label", {
898
+ return s ? u.createElement("label", a, s) : u.createElement("label", {
886
899
  ...a,
887
900
  dangerouslySetInnerHTML: { __html: l }
888
901
  });
889
902
  };
890
- d(Ge, {
903
+ d(We, {
891
904
  type: "Label",
892
905
  label: "Label",
893
906
  category: "core",
@@ -895,12 +908,12 @@ d(Ge, {
895
908
  group: "form",
896
909
  hidden: !0,
897
910
  props: {
898
- styles: i({ default: "" }),
911
+ styles: c({ default: "" }),
899
912
  content: y({ title: "Content", default: "Label" })
900
913
  }
901
914
  });
902
- const We = (e) => {
903
- 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 = {
904
917
  "x-bind:disabled": "formLoading"
905
918
  };
906
919
  return /* @__PURE__ */ n.jsxs(
@@ -915,12 +928,12 @@ const We = (e) => {
915
928
  placeholder: s,
916
929
  children: [
917
930
  o,
918
- c && /* @__PURE__ */ n.jsx("span", { className: u, dangerouslySetInnerHTML: { __html: c } })
931
+ i && /* @__PURE__ */ n.jsx("span", { className: p, dangerouslySetInnerHTML: { __html: i } })
919
932
  ]
920
933
  }
921
934
  );
922
935
  };
923
- d(We, {
936
+ d(Ye, {
924
937
  type: "FormButton",
925
938
  label: "Submit Button",
926
939
  category: "core",
@@ -929,11 +942,11 @@ d(We, {
929
942
  hidden: !0,
930
943
  props: {
931
944
  label: y({ title: "Label", default: "Submit" }),
932
- styles: i({
945
+ styles: c({
933
946
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
934
947
  }),
935
948
  icon: P({ title: "Icon", default: "" }),
936
- iconPos: I({
949
+ iconPos: w({
937
950
  title: "Icon Position",
938
951
  default: "order-last",
939
952
  options: [
@@ -943,9 +956,9 @@ d(We, {
943
956
  })
944
957
  }
945
958
  });
946
- const Ye = (e) => {
947
- const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, required: r, checked: c, showLabel: u = !0 } = e, h = g();
948
- 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: [
949
962
  /* @__PURE__ */ n.jsx(
950
963
  "input",
951
964
  {
@@ -954,7 +967,7 @@ const Ye = (e) => {
954
967
  id: h,
955
968
  type: "checkbox",
956
969
  required: r,
957
- defaultChecked: c
970
+ defaultChecked: i
958
971
  }
959
972
  ),
960
973
  o && o !== "Label" && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
@@ -971,7 +984,7 @@ const Ye = (e) => {
971
984
  }
972
985
  );
973
986
  };
974
- d(Ye, {
987
+ d(Xe, {
975
988
  type: "Checkbox",
976
989
  label: "Checkbox",
977
990
  category: "core",
@@ -980,13 +993,13 @@ d(Ye, {
980
993
  hidden: !0,
981
994
  props: {
982
995
  fieldName: y({ title: "Field Name", default: "checkbox" }),
983
- styles: i({ default: "flex items-center gap-x-2" }),
996
+ styles: c({ default: "flex items-center gap-x-2" }),
984
997
  label: y({ title: "Label", default: "Label" }),
985
998
  checked: b({ title: "Checked", default: !1 }),
986
999
  required: b({ title: "Required", default: !1 })
987
1000
  }
988
1001
  });
989
- const Xe = (e) => {
1002
+ const Ze = (e) => {
990
1003
  const {
991
1004
  blockProps: t,
992
1005
  label: l,
@@ -994,12 +1007,12 @@ const Xe = (e) => {
994
1007
  styles: s,
995
1008
  inputStyles: a,
996
1009
  showLabel: r,
997
- required: c,
998
- inputType: u = "text",
1010
+ required: i,
1011
+ inputType: p = "text",
999
1012
  inBuilder: h,
1000
1013
  fieldName: f
1001
1014
  } = e, m = g();
1002
- 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(
1003
1016
  "input",
1004
1017
  {
1005
1018
  id: m,
@@ -1008,9 +1021,9 @@ const Xe = (e) => {
1008
1021
  ...t,
1009
1022
  ...a,
1010
1023
  ...s,
1011
- type: u,
1024
+ type: p,
1012
1025
  placeholder: o,
1013
- required: c
1026
+ required: i
1014
1027
  }
1015
1028
  )) : /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
1016
1029
  r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children: l }),
@@ -1021,14 +1034,14 @@ const Xe = (e) => {
1021
1034
  readOnly: h,
1022
1035
  ...a,
1023
1036
  id: m,
1024
- type: u,
1037
+ type: p,
1025
1038
  placeholder: o,
1026
- required: c
1039
+ required: i
1027
1040
  }
1028
1041
  )
1029
1042
  ] });
1030
1043
  };
1031
- d(Xe, {
1044
+ d(Ze, {
1032
1045
  type: "Input",
1033
1046
  label: "Input",
1034
1047
  category: "core",
@@ -1036,9 +1049,9 @@ d(Xe, {
1036
1049
  group: "form",
1037
1050
  hidden: !0,
1038
1051
  props: {
1039
- styles: i({ default: "" }),
1052
+ styles: c({ default: "" }),
1040
1053
  fieldName: y({ title: "Field Name", default: "input" }),
1041
- inputType: I({
1054
+ inputType: w({
1042
1055
  title: "Type",
1043
1056
  options: E(
1044
1057
  ["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
@@ -1051,7 +1064,7 @@ d(Xe, {
1051
1064
  }),
1052
1065
  value: y({ title: "Value", default: "" }),
1053
1066
  showLabel: b({ title: "Show label", default: !0 }),
1054
- inputStyles: i({ default: "w-full p-1" }),
1067
+ inputStyles: c({ default: "w-full p-1" }),
1055
1068
  label: y({ title: "Label", default: "Label" }),
1056
1069
  placeholder: y({
1057
1070
  title: "Placeholder",
@@ -1060,10 +1073,10 @@ d(Xe, {
1060
1073
  required: b({ title: "Required", default: !1 })
1061
1074
  }
1062
1075
  });
1063
- const Ze = (e) => {
1064
- const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, checked: r, required: c, showLabel: u = !0 } = e, h = g();
1065
- return u ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
1066
- /* @__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 }),
1067
1080
  o && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
1068
1081
  ] }) : /* @__PURE__ */ n.jsx(
1069
1082
  "input",
@@ -1073,13 +1086,13 @@ const Ze = (e) => {
1073
1086
  ...a,
1074
1087
  ...s,
1075
1088
  type: "radio",
1076
- required: c,
1089
+ required: i,
1077
1090
  checked: r,
1078
1091
  name: l
1079
1092
  }
1080
1093
  );
1081
1094
  };
1082
- d(Ze, {
1095
+ d(Je, {
1083
1096
  type: "Radio",
1084
1097
  label: "Radio",
1085
1098
  category: "core",
@@ -1087,14 +1100,14 @@ d(Ze, {
1087
1100
  group: "form",
1088
1101
  hidden: !0,
1089
1102
  props: {
1090
- styles: i({ default: "flex items-center w-max gap-x-2" }),
1103
+ styles: c({ default: "flex items-center w-max gap-x-2" }),
1091
1104
  fieldName: y({ title: "Field Name", default: "radio" }),
1092
1105
  label: y({ title: "Label", default: "Label" }),
1093
1106
  checked: b({ title: "Checked", default: !1 }),
1094
1107
  required: b({ title: "Required", default: !1 })
1095
1108
  }
1096
1109
  });
1097
- const Je = (e) => {
1110
+ const Ke = (e) => {
1098
1111
  const {
1099
1112
  blockProps: t,
1100
1113
  fieldName: l,
@@ -1102,19 +1115,19 @@ const Je = (e) => {
1102
1115
  placeholder: s,
1103
1116
  styles: a,
1104
1117
  inputStyles: r,
1105
- required: c,
1106
- showLabel: u,
1118
+ required: i,
1119
+ showLabel: p,
1107
1120
  _multiple: h = !1
1108
1121
  } = e, f = g();
1109
- return u ? /* @__PURE__ */ n.jsxs("div", { ...a, children: [
1110
- 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 }),
1111
1124
  /* @__PURE__ */ n.jsxs(
1112
1125
  "select",
1113
1126
  {
1114
1127
  ...r,
1115
1128
  id: f,
1116
1129
  placeholder: s,
1117
- required: c,
1130
+ required: i,
1118
1131
  multiple: h,
1119
1132
  name: l,
1120
1133
  children: [
@@ -1138,7 +1151,7 @@ const Je = (e) => {
1138
1151
  ...a,
1139
1152
  ...t,
1140
1153
  placeholder: s,
1141
- required: c,
1154
+ required: i,
1142
1155
  multiple: h,
1143
1156
  name: l,
1144
1157
  children: [
@@ -1156,7 +1169,7 @@ const Je = (e) => {
1156
1169
  }
1157
1170
  );
1158
1171
  };
1159
- d(Je, {
1172
+ d(Ke, {
1160
1173
  type: "Select",
1161
1174
  label: "Select",
1162
1175
  category: "core",
@@ -1164,10 +1177,10 @@ d(Je, {
1164
1177
  group: "form",
1165
1178
  hidden: !0,
1166
1179
  props: {
1167
- styles: i({ default: "" }),
1180
+ styles: c({ default: "" }),
1168
1181
  fieldName: y({ title: "Field Name", default: "select" }),
1169
1182
  showLabel: b({ title: "Show label", default: !0 }),
1170
- inputStyles: i({ default: "w-full p-1" }),
1183
+ inputStyles: c({ default: "w-full p-1" }),
1171
1184
  label: y({ title: "Label", default: "Label" }),
1172
1185
  placeholder: y({
1173
1186
  title: "Placeholder",
@@ -1184,11 +1197,11 @@ d(Je, {
1184
1197
  })
1185
1198
  }
1186
1199
  });
1187
- const Ke = (e) => {
1188
- const { blockProps: t, fieldName: l, label: o, placeholder: s, styles: a, inputStyles: r, _rows: c, showLabel: u } = e, h = g();
1189
- return u ? /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
1190
- u && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o }),
1191
- /* @__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 })
1192
1205
  ] }) : /* @__PURE__ */ n.jsx(
1193
1206
  "textarea",
1194
1207
  {
@@ -1198,11 +1211,11 @@ const Ke = (e) => {
1198
1211
  ...r,
1199
1212
  ...a,
1200
1213
  placeholder: s,
1201
- rows: c
1214
+ rows: i
1202
1215
  }
1203
1216
  );
1204
1217
  };
1205
- d(Ke, {
1218
+ d(Qe, {
1206
1219
  type: "TextArea",
1207
1220
  label: "TextArea",
1208
1221
  category: "core",
@@ -1212,8 +1225,8 @@ d(Ke, {
1212
1225
  props: {
1213
1226
  fieldName: y({ title: "Field Name", default: "textarea" }),
1214
1227
  showLabel: b({ title: "Show label", default: !0 }),
1215
- styles: i({ default: "" }),
1216
- inputStyles: i({ default: "w-full p-1" }),
1228
+ styles: c({ default: "" }),
1229
+ inputStyles: c({ default: "w-full p-1" }),
1217
1230
  label: y({ title: "Label", default: "Label" }),
1218
1231
  placeholder: y({
1219
1232
  title: "Placeholder",
@@ -1222,7 +1235,7 @@ d(Ke, {
1222
1235
  _rows: _({ title: "Rows", default: 3 })
1223
1236
  }
1224
1237
  });
1225
- const pt = V;
1238
+ const ht = V;
1226
1239
  export {
1227
- pt as loadWebBlocks
1240
+ ht as loadWebBlocks
1228
1241
  };