@chaibuilder/sdk 1.2.91 → 1.2.93-beta.1

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 (40) hide show
  1. package/dist/{CodeEditor-_Pim7pDO.js → CodeEditor-_pniWL9A.js} +20 -18
  2. package/dist/CodeEditor-hbpcHA6a.cjs +1 -0
  3. package/dist/GlobalBlockSettings-1Ix883dP.cjs +1 -0
  4. package/dist/GlobalBlockSettings-eytCBAHr.js +44 -0
  5. package/dist/Topbar-0dGbwmC_.cjs +1 -0
  6. package/dist/{Topbar-4ejjKoRn.js → Topbar-AzDg5F6n.js} +14 -12
  7. package/dist/{UnsplashImages-fpbR9Jbs.js → UnsplashImages-Gdm78EC5.js} +11 -9
  8. package/dist/UnsplashImages-etSQzJ6J.cjs +1 -0
  9. package/dist/{UploadImages-9hzL5Hu1.js → UploadImages-2XWy9JHd.js} +31 -56
  10. package/dist/UploadImages-lyC-Th50.cjs +1 -0
  11. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  12. package/dist/_commonjsHelpers-f52AuuUj.cjs +1 -0
  13. package/dist/core.cjs +1 -1
  14. package/dist/core.d.ts +34 -11
  15. package/dist/core.js +71 -67
  16. package/dist/{iconBase-zweRWSz0.js → iconBase-HBZkvN04.js} +29 -22
  17. package/dist/iconBase-kuD_VwQx.cjs +1 -0
  18. package/dist/index-lynOzeB3.cjs +223 -0
  19. package/dist/{index-ry3B_D93.js → index-zgy8mVKm.js} +9626 -10802
  20. package/dist/plugin-02QsHeBE.cjs +1 -0
  21. package/dist/{plugin-P0tpo_XZ.cjs → plugin-BXpjdQxx.cjs} +1 -1
  22. package/dist/{plugin-f5uJtdXY.js → plugin-DdKuAR7p.js} +1 -1
  23. package/dist/plugin-VDzc8jUO.js +52 -0
  24. package/dist/render.cjs +2 -2
  25. package/dist/render.js +7 -6
  26. package/dist/tailwind.cjs +1 -1
  27. package/dist/tailwind.js +7 -6
  28. package/dist/useGlobalBlocksStore-1wJUEOl4.cjs +1 -0
  29. package/dist/useGlobalBlocksStore-HlGhDxuV.js +1258 -0
  30. package/dist/web-blocks.cjs +1 -1
  31. package/dist/web-blocks.js +257 -229
  32. package/package.json +2 -2
  33. package/dist/CodeEditor-Imjgt7mh.cjs +0 -1
  34. package/dist/Topbar-irIirqy7.cjs +0 -1
  35. package/dist/UnsplashImages-NfwOtGHo.cjs +0 -1
  36. package/dist/UploadImages-OVHnYeiL.cjs +0 -1
  37. package/dist/iconBase-vJD0OXxU.cjs +0 -1
  38. package/dist/index-VBJLJ6fO.cjs +0 -223
  39. package/dist/plugin-_F-KZp1i.cjs +0 -1
  40. package/dist/plugin-sJ3Hzvpv.js +0 -57
@@ -1,25 +1,27 @@
1
1
  import { registerChaiBlock as u } from "@chaibuilder/runtime";
2
- import { j as a } from "./jsx-runtime-Sp0orL4X.js";
3
- import * as m from "react";
4
- import { c as j, o as p, f as v, v as C, b, T as N, y as B, u as T, r as L, d as S, q as R, e as k, h as F, G as O, g as I, S as U } from "./iconBase-zweRWSz0.js";
2
+ import { j as s } from "./jsx-runtime-Sp0orL4X.js";
3
+ import * as p from "react";
4
+ import { lazy as R } from "react";
5
+ import { c as j, T as m, f as v, o as C, b, q as E, y as I, l as T, d as L, m as S, v as F, r as k, e as G, G as O, g as B, S as U } from "./iconBase-HBZkvN04.js";
5
6
  import "i18next";
6
- import { ButtonIcon as H, CodeIcon as V, HeadingIcon as G, TextIcon as W, CursorTextIcon as X, Link1Icon as Y, ImageIcon as z, RowsIcon as Z, ColumnsIcon as J, SketchLogoIcon as K, VideoIcon as Q, DividerHorizontalIcon as ee, MoonIcon as te, SpaceBetweenVerticallyIcon as q, GroupIcon as le, InputIcon as A, RadiobuttonIcon as oe, DropdownMenuIcon as se, CheckboxIcon as ae } from "@radix-ui/react-icons";
7
- import { isNull as ne, isEmpty as g, get as x, pick as re, omit as ce, map as M } from "lodash-es";
7
+ import { ButtonIcon as H, CodeIcon as V, HeadingIcon as W, TextIcon as X, CursorTextIcon as Y, Link1Icon as Z, ImageIcon as z, RowsIcon as J, ColumnsIcon as K, SketchLogoIcon as Q, VideoIcon as ee, DividerHorizontalIcon as te, MoonIcon as le, SpaceBetweenVerticallyIcon as q, GroupIcon as oe, InputIcon as A, RadiobuttonIcon as se, DropdownMenuIcon as ae, CheckboxIcon as ne } from "@radix-ui/react-icons";
8
+ import { isNull as re, isEmpty as y, get as x, pick as ce, omit as ie, map as M } from "lodash-es";
9
+ import { GlobeIcon as de } from "lucide-react";
8
10
  import "clsx";
9
11
  import "tailwind-merge";
10
- const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("div", { className: j("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ a.jsx("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, _ = ie, de = (e) => {
11
- const { blockProps: l, inBuilder: t, backgroundImage: s, children: o, tag: n = "div", styles: r } = e;
12
+ const ue = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("div", { className: j("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ s.jsx("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ s.jsx("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, _ = ue, be = (e) => {
13
+ const { blockProps: l, inBuilder: t, backgroundImage: a, children: o, tag: n = "div", styles: r } = e;
12
14
  let i = o;
13
- o || (i = /* @__PURE__ */ a.jsx(_, { inBuilder: t }));
15
+ o || (i = /* @__PURE__ */ s.jsx(_, { inBuilder: t }));
14
16
  let c = {};
15
- return s && (c = { backgroundImage: `url(${s})` }), m.createElement(n, { ...l, ...r, style: c }, i);
16
- }, ue = {
17
+ return a && (c = { backgroundImage: `url(${a})` }), p.createElement(n, { ...l, ...r, style: c }, i);
18
+ }, pe = {
17
19
  type: "Box",
18
20
  label: "web_blocks.box",
19
21
  category: "core",
20
22
  group: "basic",
21
23
  props: {
22
- styles: p({ default: "" }),
24
+ styles: m({ default: "" }),
23
25
  tag: v({
24
26
  title: "web_blocks.tag",
25
27
  default: "div",
@@ -46,10 +48,10 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
46
48
  backgroundImage: C({ title: "web_blocks.background_image" })
47
49
  },
48
50
  canAcceptBlock: () => !0
49
- }, be = (e) => {
50
- const { blockProps: l, iconSize: t, icon: s, content: o, iconPos: n, styles: r, children: i } = e, c = s, d = i || /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
51
- /* @__PURE__ */ a.jsx("span", { "data-ai-key": "content", children: o }),
52
- c && /* @__PURE__ */ a.jsx(
51
+ }, me = (e) => {
52
+ const { blockProps: l, iconSize: t, icon: a, content: o, iconPos: n, styles: r, children: i } = e, c = a, d = i || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
53
+ /* @__PURE__ */ s.jsx("span", { "data-ai-key": "content", children: o }),
54
+ c && /* @__PURE__ */ s.jsx(
53
55
  "div",
54
56
  {
55
57
  style: { width: t + "px" },
@@ -58,7 +60,7 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
58
60
  }
59
61
  )
60
62
  ] });
61
- return m.createElement(
63
+ return p.createElement(
62
64
  "button",
63
65
  {
64
66
  ...l,
@@ -67,7 +69,7 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
67
69
  },
68
70
  d
69
71
  );
70
- }, pe = {
72
+ }, fe = {
71
73
  type: "Button",
72
74
  label: "web_blocks.button",
73
75
  category: "core",
@@ -75,9 +77,9 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
75
77
  group: "basic",
76
78
  props: {
77
79
  content: b({ title: "web_blocks.label", default: "Button" }),
78
- styles: p({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
79
- icon: N({ title: "web_blocks.icon", default: "" }),
80
- iconSize: B({ title: "web_blocks.icon_size", default: 24 }),
80
+ styles: m({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
81
+ icon: E({ title: "web_blocks.icon", default: "" }),
82
+ iconSize: I({ title: "web_blocks.icon_size", default: 24 }),
81
83
  iconPos: v({
82
84
  title: "web_blocks.icon_position",
83
85
  default: "order-last",
@@ -87,61 +89,61 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
87
89
  ]
88
90
  })
89
91
  }
90
- }, me = (e) => {
91
- const { blockProps: l, styles: t, htmlCode: s, inBuilder: o } = e;
92
- return o ? /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
93
- o ? /* @__PURE__ */ a.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
94
- m.createElement("div", {
92
+ }, he = (e) => {
93
+ const { blockProps: l, styles: t, htmlCode: a, inBuilder: o } = e;
94
+ return o ? /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
95
+ o ? /* @__PURE__ */ s.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
96
+ p.createElement("div", {
95
97
  ...t,
96
- dangerouslySetInnerHTML: { __html: s.replace(/<script.*?>.*?<\/script>/g, "") }
98
+ dangerouslySetInnerHTML: { __html: a.replace(/<script.*?>.*?<\/script>/g, "") }
97
99
  })
98
- ] }) : m.createElement("div", {
100
+ ] }) : p.createElement("div", {
99
101
  ...l,
100
102
  ...t,
101
- dangerouslySetInnerHTML: { __html: s }
103
+ dangerouslySetInnerHTML: { __html: a }
102
104
  });
103
- }, fe = {
105
+ }, ke = {
104
106
  type: "CustomHTML",
105
107
  label: "web_blocks.custom_html",
106
108
  category: "core",
107
109
  icon: V,
108
110
  group: "advanced",
109
111
  props: {
110
- styles: p({ default: "" }),
112
+ styles: m({ default: "" }),
111
113
  htmlCode: T({
112
114
  title: "web_blocks.html_code",
113
115
  default: "<div><p>Enter your HTML code here...</p></div>",
114
116
  placeholder: "web_blocks.placeholder"
115
117
  })
116
118
  }
117
- }, he = m.memo(
119
+ }, ge = p.memo(
118
120
  (e) => {
119
121
  const { blockProps: l, styles: t } = e;
120
- return m.createElement("div", { ...l, ...t });
122
+ return p.createElement("div", { ...l, ...t });
121
123
  }
122
- ), ke = {
124
+ ), ye = {
123
125
  type: "EmptyBox",
124
126
  label: "web_blocks.empty_box",
125
127
  category: "core",
126
128
  group: "basic",
127
129
  props: {
128
- styles: p({ default: "" }),
130
+ styles: m({ default: "" }),
129
131
  backgroundImage: C({ title: "web_blocks.background_image" })
130
132
  }
131
- }, ye = (e) => {
132
- const { blockProps: l, styles: t, content: s, level: o = "h1", children: n = null } = e;
133
- return n ? m.createElement(o, { ...t, ...l }, n) : m.createElement(o, {
133
+ }, _e = (e) => {
134
+ const { blockProps: l, styles: t, content: a, level: o = "h1", children: n = null } = e;
135
+ return n ? p.createElement(o, { ...t, ...l }, n) : p.createElement(o, {
134
136
  ...t,
135
137
  ...l,
136
138
  "data-ai-key": "content",
137
139
  "data-ai-type": "html",
138
- dangerouslySetInnerHTML: { __html: s }
140
+ dangerouslySetInnerHTML: { __html: a }
139
141
  });
140
- }, ge = {
142
+ }, we = {
141
143
  type: "Heading",
142
144
  label: "web_blocks.heading",
143
145
  category: "core",
144
- icon: G,
146
+ icon: W,
145
147
  group: "typography",
146
148
  props: {
147
149
  level: v({
@@ -157,83 +159,83 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
157
159
  { value: "h6", title: "h6" }
158
160
  ]
159
161
  }),
160
- styles: p({ default: "text-3xl" }),
162
+ styles: m({ default: "text-3xl" }),
161
163
  content: L({ title: "web_blocks.content", default: "Heading goes here" })
162
164
  },
163
165
  canAcceptBlock: (e) => e === "Span" || e === "Text"
164
- }, _e = (e) => {
165
- const { blockProps: l, styles: t, content: s } = e;
166
- return ne(e.children) ? m.createElement("p", {
166
+ }, xe = (e) => {
167
+ const { blockProps: l, styles: t, content: a } = e;
168
+ return re(e.children) ? p.createElement("p", {
167
169
  ...t,
168
170
  ...l,
169
171
  "data-ai-key": "content",
170
172
  "data-ai-type": "html",
171
- dangerouslySetInnerHTML: { __html: s }
172
- }) : m.createElement("p", { ...t, ...l }, e.children);
173
- }, we = {
173
+ dangerouslySetInnerHTML: { __html: a }
174
+ }) : p.createElement("p", { ...t, ...l }, e.children);
175
+ }, ve = {
174
176
  type: "Paragraph",
175
177
  label: "web_blocks.paragraph",
176
178
  category: "core",
177
- icon: W,
179
+ icon: X,
178
180
  group: "typography",
179
181
  props: {
180
- styles: p({ default: "" }),
182
+ styles: m({ default: "" }),
181
183
  content: L({
182
184
  title: "web_blocks.content",
183
185
  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."
184
186
  })
185
187
  },
186
188
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
187
- }, xe = (e) => {
188
- const { blockProps: l, styles: t, content: s, children: o = null, tag: n } = e;
189
- return o ? m.createElement("span", { ...t, ...l }, o) : m.createElement(n || "span", {
189
+ }, Be = (e) => {
190
+ const { blockProps: l, styles: t, content: a, children: o = null, tag: n } = e;
191
+ return o ? p.createElement("span", { ...t, ...l }, o) : p.createElement(n || "span", {
190
192
  ...t,
191
193
  ...l,
192
194
  "data-ai-key": "content",
193
- dangerouslySetInnerHTML: { __html: s }
195
+ dangerouslySetInnerHTML: { __html: a }
194
196
  });
195
- }, ve = {
197
+ }, Ie = {
196
198
  type: "Span",
197
199
  label: "web_blocks.span",
198
200
  category: "core",
199
201
  group: "typography",
200
202
  props: {
201
- styles: p({ default: "" }),
203
+ styles: m({ default: "" }),
202
204
  content: L({ title: "web_blocks.content", default: "" })
203
205
  },
204
206
  canAcceptBlock: () => !0
205
- }, Ie = (e) => {
206
- const { blockProps: l, content: t, styles: s } = e;
207
- return /* @__PURE__ */ a.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ a.jsx(
207
+ }, je = (e) => {
208
+ const { blockProps: l, content: t, styles: a } = e;
209
+ return /* @__PURE__ */ s.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ s.jsx(
208
210
  "div",
209
211
  {
210
212
  "data-ai-key": "content",
211
213
  "data-ai-type": "richtext",
212
214
  ...l,
213
- ...s,
215
+ ...a,
214
216
  dangerouslySetInnerHTML: { __html: t }
215
217
  }
216
218
  ) });
217
- }, Be = {
219
+ }, Le = {
218
220
  type: "RichText",
219
221
  label: "web_blocks.richtext",
220
222
  category: "core",
221
- icon: X,
223
+ icon: Y,
222
224
  group: "typography",
223
225
  props: {
224
- styles: p({ default: "" }),
226
+ styles: m({ default: "" }),
225
227
  content: S({
226
228
  title: "web_blocks.content",
227
229
  default: "<p>This is a rich text block. You can add text, and other content here.</p>"
228
230
  })
229
231
  }
230
- }, je = (e) => {
231
- const { blockProps: l, link: t, children: s, styles: o, inBuilder: n, content: r } = e;
232
- return !s && g(o == null ? void 0 : o.className) && g(r) ? /* @__PURE__ */ a.jsx(_, { inBuilder: n }) : n ? s ? /* @__PURE__ */ a.jsx("span", { ...l, ...o, children: s }) : m.createElement("span", {
232
+ }, Ce = (e) => {
233
+ const { blockProps: l, link: t, children: a, styles: o, inBuilder: n, content: r } = e;
234
+ return !a && y(o == null ? void 0 : o.className) && y(r) ? /* @__PURE__ */ s.jsx(_, { inBuilder: n }) : n ? a ? /* @__PURE__ */ s.jsx("span", { ...l, ...o, children: a }) : p.createElement("span", {
233
235
  ...l,
234
236
  ...o,
235
237
  dangerouslySetInnerHTML: { __html: r }
236
- }) : s ? /* @__PURE__ */ a.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...o, children: s }) : m.createElement("a", {
238
+ }) : a ? /* @__PURE__ */ s.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...o, children: a }) : p.createElement("a", {
237
239
  ...l,
238
240
  ...o,
239
241
  "data-ai-key": "content",
@@ -241,16 +243,16 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
241
243
  target: (t == null ? void 0 : t.target) || "_self",
242
244
  dangerouslySetInnerHTML: { __html: r }
243
245
  });
244
- }, Le = {
246
+ }, Se = {
245
247
  type: "Link",
246
248
  label: "web_blocks.link",
247
249
  category: "core",
248
- icon: Y,
250
+ icon: Z,
249
251
  group: "basic",
250
252
  props: {
251
- styles: p({ default: "" }),
253
+ styles: m({ default: "" }),
252
254
  content: b({ title: "web_blocks.content", default: "" }),
253
- link: R({
255
+ link: F({
254
256
  title: "web_blocks.link",
255
257
  default: { type: "page", target: "_self", href: "#" }
256
258
  })
@@ -259,32 +261,32 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
259
261
  }, D = (e, ...l) => ({
260
262
  ...e,
261
263
  className: j(e.className, ...l)
262
- }), Ce = (e) => {
263
- const { blockProps: l, children: t, styles: s, inBuilder: o, content: n, href: r } = e, { hrefType: i, autoplay: c, maxWidth: d, backdropColor: h, galleryName: f } = e, y = D(s, "cb-lightbox");
264
- if (!t && g(s == null ? void 0 : s.className) && g(n))
265
- return /* @__PURE__ */ a.jsx(_, { inBuilder: o });
264
+ }), Me = (e) => {
265
+ const { blockProps: l, children: t, styles: a, inBuilder: o, content: n, href: r } = e, { hrefType: i, autoplay: c, maxWidth: d, backdropColor: h, galleryName: f } = e, g = D(a, "cb-lightbox");
266
+ if (!t && y(a == null ? void 0 : a.className) && y(n))
267
+ return /* @__PURE__ */ s.jsx(_, { inBuilder: o });
266
268
  if (o)
267
- return t ? /* @__PURE__ */ a.jsx("span", { ...l, ...y, children: t }) : m.createElement("span", {
269
+ return t ? /* @__PURE__ */ s.jsx("span", { ...l, ...g, children: t }) : p.createElement("span", {
268
270
  ...l,
269
- ...y,
271
+ ...g,
270
272
  dangerouslySetInnerHTML: { __html: n }
271
273
  });
272
274
  const w = {};
273
- return w["data-vbtype"] = i, c && (w["data-autoplay"] = "true"), d && (w["data-maxwidth"] = d + "px"), h && (w["data-overlay"] = h), f && (w["data-gall"] = f), t ? /* @__PURE__ */ a.jsx("a", { ...w, href: r || "#/", ...l, ...y, children: t }) : m.createElement("a", {
275
+ return w["data-vbtype"] = i, c && (w["data-autoplay"] = "true"), d && (w["data-maxwidth"] = d + "px"), h && (w["data-overlay"] = h), f && (w["data-gall"] = f), t ? /* @__PURE__ */ s.jsx("a", { ...w, href: r || "#/", ...l, ...g, children: t }) : p.createElement("a", {
274
276
  ...l,
275
- ...y,
277
+ ...g,
276
278
  ...w,
277
279
  href: r || "#",
278
280
  dangerouslySetInnerHTML: { __html: n }
279
281
  });
280
- }, Se = {
282
+ }, Ee = {
281
283
  type: "LightBoxLink",
282
284
  label: "web_blocks.lightbox_link",
283
285
  category: "core",
284
286
  icon: z,
285
287
  group: "basic",
286
288
  props: {
287
- styles: p({ default: "" }),
289
+ styles: m({ default: "" }),
288
290
  content: b({ title: "web_blocks.content", default: "Link text or drop blocks inside" }),
289
291
  href: b({ title: "web_blocks.href", default: "" }),
290
292
  hrefType: v({
@@ -298,26 +300,26 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
298
300
  ]
299
301
  }),
300
302
  autoplay: k({ title: "web_blocks.autoplay", default: !1 }),
301
- maxWidth: B({ title: "web_blocks.max_width", default: "" }),
303
+ maxWidth: I({ title: "web_blocks.max_width", default: "" }),
302
304
  backdropColor: b({ title: "backdrop_color", default: "" }),
303
305
  galleryName: b({ title: "web_blocks.gallery_name", default: "" })
304
306
  },
305
307
  canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
306
- }, Me = (e) => {
307
- const { blockProps: l, children: t, listType: s, styles: o, tag: n, inBuilder: r } = e, i = j(x(o, "className", ""), s);
308
- return !t && g(o == null ? void 0 : o.className) ? /* @__PURE__ */ a.jsx(_, { inBuilder: r }) : m.createElement(
309
- n || (s === "list-decimal" ? "ol" : "ul"),
308
+ }, Ne = (e) => {
309
+ const { blockProps: l, children: t, listType: a, styles: o, tag: n, inBuilder: r } = e, i = j(x(o, "className", ""), a);
310
+ return !t && y(o == null ? void 0 : o.className) ? /* @__PURE__ */ s.jsx(_, { inBuilder: r }) : p.createElement(
311
+ n || (a === "list-decimal" ? "ol" : "ul"),
310
312
  { ...l, ...o, className: i },
311
313
  t
312
314
  );
313
- }, Ne = {
315
+ }, $e = {
314
316
  type: "List",
315
317
  label: "web_blocks.list",
316
- icon: Z,
318
+ icon: J,
317
319
  category: "core",
318
320
  group: "basic",
319
321
  props: {
320
- styles: p({ default: "" }),
322
+ styles: m({ default: "" }),
321
323
  listType: v({
322
324
  title: "web_blocks.list_type",
323
325
  default: "list-none",
@@ -353,70 +355,70 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
353
355
  content: "Item 3"
354
356
  }
355
357
  ]
356
- }, Ee = (e) => {
357
- const { blockProps: l, content: t, styles: s, children: o, tag: n } = e;
358
- return o ? m.createElement(n || "li", { ...s, ...l }, o) : m.createElement(n || "li", {
359
- ...s,
358
+ }, Pe = (e) => {
359
+ const { blockProps: l, content: t, styles: a, children: o, tag: n } = e;
360
+ return o ? p.createElement(n || "li", { ...a, ...l }, o) : p.createElement(n || "li", {
361
+ ...a,
360
362
  ...l,
361
363
  "data-ai-key": "content",
362
364
  dangerouslySetInnerHTML: { __html: t }
363
365
  });
364
- }, $e = {
366
+ }, Te = {
365
367
  type: "ListItem",
366
368
  label: "web_blocks.listitem",
367
- icon: J,
369
+ icon: K,
368
370
  category: "core",
369
371
  group: "basic",
370
372
  props: {
371
- styles: p({ default: "" }),
373
+ styles: m({ default: "" }),
372
374
  content: L({ title: "web_blocks.content", default: "List item" })
373
375
  },
374
376
  canAcceptBlock: (e) => e !== "ListItem",
375
377
  canBeNested: (e) => e === "List"
376
- }, Pe = (e) => {
377
- const { blockProps: l, icon: t, styles: s, width: o, inBuilder: n, height: r } = e, i = D(s, j(o ? `w-[${o}px]` : "", r ? `h-[${r}px]` : ""));
378
- if (g(t))
379
- return /* @__PURE__ */ a.jsx(_, { inBuilder: n, className: "h-8 w-14" });
378
+ }, He = (e) => {
379
+ const { blockProps: l, icon: t, styles: a, width: o, inBuilder: n, height: r } = e, i = D(a, j(o ? `w-[${o}px]` : "", r ? `h-[${r}px]` : ""));
380
+ if (y(t))
381
+ return /* @__PURE__ */ s.jsx(_, { inBuilder: n, className: "h-8 w-14" });
380
382
  const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
381
- return m.createElement("span", {
383
+ return p.createElement("span", {
382
384
  ...l,
383
385
  ...i,
384
386
  dangerouslySetInnerHTML: { __html: c }
385
387
  });
386
- }, Te = {
388
+ }, ze = {
387
389
  type: "Icon",
388
390
  label: "web_blocks.icon",
389
391
  category: "core",
390
- icon: K,
392
+ icon: Q,
391
393
  group: "media",
392
394
  props: {
393
- styles: p({ default: "text-black" }),
394
- icon: N({
395
+ styles: m({ default: "text-black" }),
396
+ icon: E({
395
397
  title: "web_blocks.icon",
396
398
  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>'
397
399
  }),
398
- width: B({ title: "web_blocks.width", default: "" }),
399
- height: B({ title: "web_blocks.height", default: "" })
400
+ width: I({ title: "web_blocks.width", default: "" }),
401
+ height: I({ title: "web_blocks.height", default: "" })
400
402
  }
401
- }, He = (e) => {
402
- const { blockProps: l, image: t, styles: s, alt: o, height: n, width: r } = e;
403
- return g(t) ? /* @__PURE__ */ a.jsx(_, { className: "h-36" }) : m.createElement("img", {
403
+ }, qe = (e) => {
404
+ const { blockProps: l, image: t, styles: a, alt: o, height: n, width: r } = e;
405
+ return y(t) ? /* @__PURE__ */ s.jsx(_, { className: "h-36" }) : p.createElement("img", {
404
406
  ...l,
405
- ...s,
407
+ ...a,
406
408
  src: t,
407
409
  alt: o,
408
410
  loading: "lazy",
409
411
  height: n,
410
412
  width: r
411
413
  });
412
- }, ze = {
414
+ }, Ae = {
413
415
  type: "Image",
414
416
  label: "web_blocks.image",
415
417
  category: "core",
416
418
  icon: z,
417
419
  group: "media",
418
420
  props: {
419
- styles: p({ default: "" }),
421
+ styles: m({ default: "" }),
420
422
  image: C({
421
423
  title: "Image",
422
424
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
@@ -425,9 +427,9 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
425
427
  width: b({ title: "web_blocks.width", default: "" }),
426
428
  height: b({ title: "web_blocks.height", default: "" })
427
429
  }
428
- }, E = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, $ = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, P = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, qe = (e) => {
429
- if (E.test(e)) {
430
- const l = e.match(E);
430
+ }, N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, $ = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, P = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, De = (e) => {
431
+ if (N.test(e)) {
432
+ const l = e.match(N);
431
433
  return l ? `https://www.youtube.com/embed/${l[4]}` : e;
432
434
  }
433
435
  if ($.test(e)) {
@@ -439,18 +441,18 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
439
441
  return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : e;
440
442
  }
441
443
  return null;
442
- }, Ae = m.memo(
444
+ }, Re = p.memo(
443
445
  (e) => {
444
- const { blockProps: l, inBuilder: t, styles: s, url: o, controls: n } = e, r = x(n, "autoPlay", !1), i = x(n, "controls", !1), c = r || x(n, "muted", !0), d = x(n, "loop", !1);
445
- if (g(o))
446
- return /* @__PURE__ */ a.jsx(_, { inBuilder: t, className: "h-36" });
447
- let h = qe(o), f = null;
446
+ const { blockProps: l, inBuilder: t, styles: a, url: o, controls: n } = e, r = x(n, "autoPlay", !1), i = x(n, "controls", !1), c = r || x(n, "muted", !0), d = x(n, "loop", !1);
447
+ if (y(o))
448
+ return /* @__PURE__ */ s.jsx(_, { inBuilder: t, className: "h-36" });
449
+ let h = De(o), f = null;
448
450
  if (h) {
449
- if (!g(h)) {
450
- const y = [];
451
- y.push(`autoplay=${r ? 1 : 0}`), y.push(`controls=${n ? 1 : 0}`), y.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), y.push(`loop=${d ? 1 : 0}`), h = `${h}?${y.join("&")}`;
451
+ if (!y(h)) {
452
+ const g = [];
453
+ g.push(`autoplay=${r ? 1 : 0}`), g.push(`controls=${n ? 1 : 0}`), g.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), g.push(`loop=${d ? 1 : 0}`), h = `${h}?${g.join("&")}`;
452
454
  }
453
- f = m.createElement("iframe", {
455
+ f = p.createElement("iframe", {
454
456
  ...l,
455
457
  className: "absolute inset-0 w-full h-full",
456
458
  src: h,
@@ -459,7 +461,7 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
459
461
  frameBorder: 0
460
462
  });
461
463
  } else
462
- f = m.createElement("video", {
464
+ f = p.createElement("video", {
463
465
  ...l,
464
466
  className: "absolute inset-0 w-full h-full",
465
467
  src: o,
@@ -468,24 +470,24 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
468
470
  autoPlay: t ? !1 : r,
469
471
  loop: d
470
472
  });
471
- return /* @__PURE__ */ a.jsx("div", { ...re(s, ["className"]), children: /* @__PURE__ */ a.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
472
- t ? /* @__PURE__ */ a.jsx("div", { ...l, ...ce(s, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
473
+ return /* @__PURE__ */ s.jsx("div", { ...ce(a, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
474
+ t ? /* @__PURE__ */ s.jsx("div", { ...l, ...ie(a, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
473
475
  f
474
476
  ] }) });
475
477
  }
476
- ), De = {
478
+ ), Fe = {
477
479
  type: "Video",
478
480
  label: "web_blocks.video",
479
481
  category: "core",
480
- icon: Q,
482
+ icon: ee,
481
483
  group: "media",
482
484
  props: {
483
- styles: p({ default: "" }),
485
+ styles: m({ default: "" }),
484
486
  url: b({
485
487
  title: "web_blocks.video_url",
486
488
  default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
487
489
  }),
488
- controls: F({
490
+ controls: G({
489
491
  title: "web_blocks.controls",
490
492
  properties: {
491
493
  autoPlay: k({ title: "web_blocks.autoplay", default: !0 }),
@@ -496,17 +498,17 @@ const ie = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ a.jsx("d
496
498
  })
497
499
  }
498
500
  };
499
- function Re(e) {
501
+ function Ge(e) {
500
502
  return O({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" }, child: [] }] })(e);
501
503
  }
502
- const Fe = (e) => {
503
- const { scripts: l, inBuilder: t, blockProps: s } = e;
504
- return t ? /* @__PURE__ */ a.jsx("div", { ...s, children: /* @__PURE__ */ a.jsx("div", { className: j("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ a.jsx("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ a.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
505
- }, Oe = {
504
+ const Oe = (e) => {
505
+ const { scripts: l, inBuilder: t, blockProps: a } = e;
506
+ return t ? /* @__PURE__ */ s.jsx("div", { ...a, children: /* @__PURE__ */ s.jsx("div", { className: j("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ s.jsx("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ s.jsx("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ s.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
507
+ }, Ue = {
506
508
  type: "CustomScript",
507
509
  label: "web_blocks.custom_script",
508
510
  category: "core",
509
- icon: Re,
511
+ icon: Ge,
510
512
  group: "advanced",
511
513
  props: {
512
514
  scripts: T({
@@ -515,23 +517,23 @@ const Fe = (e) => {
515
517
  placeholder: "<script>console.log('Hello, world!');<\/script>"
516
518
  })
517
519
  }
518
- }, Ue = (e) => {
520
+ }, Ve = (e) => {
519
521
  const { blockProps: l, styles: t } = e;
520
- return m.createElement("hr", { ...t, ...l });
521
- }, Ve = {
522
+ return p.createElement("hr", { ...t, ...l });
523
+ }, We = {
522
524
  type: "Divider",
523
525
  label: "web_blocks.divider",
524
526
  category: "core",
525
- icon: ee,
527
+ icon: te,
526
528
  group: "basic",
527
529
  props: {
528
- styles: p({ default: "bg-gray-900 h-0.5 py-2 my-1" })
530
+ styles: m({ default: "bg-gray-900 h-0.5 py-2 my-1" })
529
531
  }
530
- }, Ge = () => null, We = {
532
+ }, Xe = () => null, Ye = {
531
533
  type: "Dark Mode",
532
534
  label: "web_blocks.dark_mode",
533
535
  category: "core",
534
- icon: te,
536
+ icon: le,
535
537
  group: "advanced",
536
538
  props: {},
537
539
  blocks: () => [
@@ -583,7 +585,33 @@ const Fe = (e) => {
583
585
  icon: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'></circle><path d='M12 2v2'></path><path d='M12 20v2'></path><path d='m4.93 4.93 1.41 1.41'></path><path d='m17.66 17.66 1.41 1.41'></path><path d='M2 12h2'></path><path d='M20 12h2'></path><path d='m6.34 17.66-1.41 1.41'></path><path d='m19.07 4.93-1.41 1.41'></path></svg>"
584
586
  }
585
587
  ]
586
- }, Xe = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ a.jsx("span", { "data-ai-key": "content", ...e.blockProps, children: e.content }) : `${e.content}`, Ye = {
588
+ }, Ze = R(() => import("./GlobalBlockSettings-eytCBAHr.js")), Je = (e) => {
589
+ const { blockProps: l, inBuilder: t, children: a, globalBlock: o } = e;
590
+ return t && !o ? /* @__PURE__ */ s.jsxs(
591
+ "div",
592
+ {
593
+ className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
594
+ ...l,
595
+ children: [
596
+ /* @__PURE__ */ s.jsxs("h1", { children: [
597
+ "Global Block - ",
598
+ o
599
+ ] }),
600
+ /* @__PURE__ */ s.jsx("p", { children: "Choose a block from the sidebar to add it to this page." })
601
+ ]
602
+ }
603
+ ) : p.createElement("div", { ...l }, a);
604
+ }, Ke = {
605
+ type: "GlobalBlock",
606
+ label: "Global Block",
607
+ icon: de,
608
+ category: "core",
609
+ group: "advanced",
610
+ props: {
611
+ globalBlock: b({ title: "global block", default: "", hidden: !0 })
612
+ },
613
+ propsEditor: Ze
614
+ }, Qe = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ s.jsx("span", { "data-ai-key": "content", ...e.blockProps, children: e.content }) : `${e.content}`, et = {
587
615
  type: "Text",
588
616
  label: "web_blocks.text",
589
617
  hidden: !0,
@@ -593,28 +621,28 @@ const Fe = (e) => {
593
621
  props: {
594
622
  content: L({ title: "web_blocks.content", defaultValue: "" })
595
623
  }
596
- }, Ze = (e) => {
597
- const { blockProps: l, backgroundImage: t, children: s, styles: o } = e;
624
+ }, tt = (e) => {
625
+ const { blockProps: l, backgroundImage: t, children: a, styles: o } = e;
598
626
  let n = {};
599
- return t && (n = { backgroundImage: `url(${t})` }), m.createElement("div", { ...l, ...o, style: n }, s);
600
- }, Je = {
627
+ return t && (n = { backgroundImage: `url(${t})` }), p.createElement("div", { ...l, ...o, style: n }, a);
628
+ }, lt = {
601
629
  type: "Body",
602
630
  label: "Body",
603
631
  category: "core",
604
632
  group: "basic",
605
633
  hidden: !0,
606
634
  props: {
607
- styles: p({ default: "font-body antialiased" }),
635
+ styles: m({ default: "font-body antialiased" }),
608
636
  backgroundImage: C({ title: "Background Image" })
609
637
  },
610
638
  canAcceptBlock: () => !0,
611
639
  canDelete: () => !1,
612
640
  canMove: () => !1,
613
641
  canDuplicate: () => !1
614
- }, Ke = (e) => {
642
+ }, ot = (e) => {
615
643
  const { blockProps: l, styles: t } = e;
616
- return m.createElement("br", { ...l, ...t });
617
- }, Qe = {
644
+ return p.createElement("br", { ...l, ...t });
645
+ }, st = {
618
646
  type: "LineBreak",
619
647
  label: "Line Break",
620
648
  category: "core",
@@ -622,12 +650,12 @@ const Fe = (e) => {
622
650
  hidden: !0,
623
651
  icon: q,
624
652
  props: {
625
- styles: p({ default: "" })
653
+ styles: m({ default: "" })
626
654
  }
627
- }, et = (e) => {
628
- const { blockProps: l, errorMessage: t, name: s, _type: o, successMessage: n, action: r, styles: i, children: c } = e;
655
+ }, at = (e) => {
656
+ const { blockProps: l, errorMessage: t, name: a, _type: o, successMessage: n, action: r, styles: i, children: c } = e;
629
657
  let d = c;
630
- c || (d = /* @__PURE__ */ a.jsx(_, {}));
658
+ c || (d = /* @__PURE__ */ s.jsx(_, {}));
631
659
  const h = {
632
660
  "x-data": "{}",
633
661
  "x-on:submit.prevent": "post"
@@ -635,7 +663,7 @@ const Fe = (e) => {
635
663
  "x-html": "",
636
664
  ":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
637
665
  };
638
- return /* @__PURE__ */ a.jsxs(
666
+ return /* @__PURE__ */ s.jsxs(
639
667
  "form",
640
668
  {
641
669
  ...h,
@@ -646,20 +674,20 @@ const Fe = (e) => {
646
674
  ...l,
647
675
  ...i,
648
676
  children: [
649
- /* @__PURE__ */ a.jsx("div", { ...f }),
650
- /* @__PURE__ */ a.jsx("input", { name: "formname", type: "hidden", value: s || o }),
677
+ /* @__PURE__ */ s.jsx("div", { ...f }),
678
+ /* @__PURE__ */ s.jsx("input", { name: "formname", type: "hidden", value: a || o }),
651
679
  d
652
680
  ]
653
681
  }
654
682
  );
655
- }, tt = {
683
+ }, nt = {
656
684
  type: "Form",
657
685
  label: "web_blocks.form",
658
686
  category: "core",
659
- icon: le,
687
+ icon: oe,
660
688
  group: "form",
661
689
  props: {
662
- styles: p({ default: "" }),
690
+ styles: m({ default: "" }),
663
691
  action: b({
664
692
  title: "web_blocks.submit_url",
665
693
  default: "/api/form/submit"
@@ -674,11 +702,11 @@ const Fe = (e) => {
674
702
  })
675
703
  },
676
704
  canAcceptBlock: () => !0
677
- }, lt = (e) => {
678
- const { blockProps: l, inBuilder: t, label: s, styles: o, inputStyles: n, icon: r, iconPos: i } = e, c = I(), d = {
705
+ }, rt = (e) => {
706
+ const { blockProps: l, inBuilder: t, label: a, styles: o, inputStyles: n, icon: r, iconPos: i } = e, c = B(), d = {
679
707
  "x-bind:disabled": "formLoading"
680
708
  };
681
- return /* @__PURE__ */ a.jsxs(
709
+ return /* @__PURE__ */ s.jsxs(
682
710
  "button",
683
711
  {
684
712
  id: c,
@@ -688,12 +716,12 @@ const Fe = (e) => {
688
716
  ...l || {},
689
717
  type: t ? "button" : "submit",
690
718
  children: [
691
- s,
692
- r && /* @__PURE__ */ a.jsx("span", { className: i, dangerouslySetInnerHTML: { __html: r } })
719
+ a,
720
+ r && /* @__PURE__ */ s.jsx("span", { className: i, dangerouslySetInnerHTML: { __html: r } })
693
721
  ]
694
722
  }
695
723
  );
696
- }, ot = {
724
+ }, ct = {
697
725
  type: "FormButton",
698
726
  label: "web_blocks.submit_button",
699
727
  category: "core",
@@ -701,10 +729,10 @@ const Fe = (e) => {
701
729
  group: "form",
702
730
  props: {
703
731
  label: b({ title: "web_blocks.label", default: "Submit" }),
704
- styles: p({
732
+ styles: m({
705
733
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
706
734
  }),
707
- icon: N({ title: "Icon", default: "" }),
735
+ icon: E({ title: "Icon", default: "" }),
708
736
  iconPos: v({
709
737
  title: "web_blocks.icon_position",
710
738
  default: "order-last",
@@ -714,11 +742,11 @@ const Fe = (e) => {
714
742
  ]
715
743
  })
716
744
  }
717
- }, st = (e) => {
745
+ }, it = (e) => {
718
746
  const {
719
747
  blockProps: l,
720
748
  label: t,
721
- placeholder: s,
749
+ placeholder: a,
722
750
  styles: o,
723
751
  inputStyles: n,
724
752
  showLabel: r,
@@ -726,8 +754,8 @@ const Fe = (e) => {
726
754
  inputType: c = "text",
727
755
  inBuilder: d,
728
756
  fieldName: h
729
- } = e, f = I();
730
- return !r || c === "submit" ? (c === "submit" && (l.value = t), /* @__PURE__ */ a.jsx(
757
+ } = e, f = B();
758
+ return !r || c === "submit" ? (c === "submit" && (l.value = t), /* @__PURE__ */ s.jsx(
731
759
  "input",
732
760
  {
733
761
  id: f,
@@ -737,12 +765,12 @@ const Fe = (e) => {
737
765
  ...n,
738
766
  ...o,
739
767
  type: c,
740
- placeholder: s,
768
+ placeholder: a,
741
769
  required: i
742
770
  }
743
- )) : /* @__PURE__ */ a.jsxs("div", { ...o, ...l, children: [
744
- r && /* @__PURE__ */ a.jsx("label", { htmlFor: f, children: t }),
745
- /* @__PURE__ */ a.jsx(
771
+ )) : /* @__PURE__ */ s.jsxs("div", { ...o, ...l, children: [
772
+ r && /* @__PURE__ */ s.jsx("label", { htmlFor: f, children: t }),
773
+ /* @__PURE__ */ s.jsx(
746
774
  "input",
747
775
  {
748
776
  name: h,
@@ -750,19 +778,19 @@ const Fe = (e) => {
750
778
  ...n,
751
779
  id: f,
752
780
  type: c,
753
- placeholder: s,
781
+ placeholder: a,
754
782
  required: i
755
783
  }
756
784
  )
757
785
  ] });
758
- }, at = {
786
+ }, dt = {
759
787
  type: "Input",
760
788
  label: "web_blocks.input",
761
789
  category: "core",
762
790
  icon: A,
763
791
  group: "form",
764
792
  props: {
765
- styles: p({ default: "" }),
793
+ styles: m({ default: "" }),
766
794
  fieldName: b({ title: "Field Name", default: "input" }),
767
795
  inputType: v({
768
796
  title: "web_blocks.type",
@@ -777,7 +805,7 @@ const Fe = (e) => {
777
805
  }),
778
806
  value: b({ title: "web_blocks.value", default: "" }),
779
807
  showLabel: k({ title: "web_blocks.show_label", default: !0 }),
780
- inputStyles: p({ default: "w-full p-1" }),
808
+ inputStyles: m({ default: "w-full p-1" }),
781
809
  label: b({ title: "web_blocks.label", default: "Label" }),
782
810
  placeholder: b({
783
811
  title: "web_blocks.placeholder",
@@ -785,12 +813,12 @@ const Fe = (e) => {
785
813
  }),
786
814
  required: k({ title: "web_blocks.required", default: !1 })
787
815
  }
788
- }, nt = (e) => {
789
- const { blockProps: l, fieldName: t, label: s, styles: o, inputStyles: n, checked: r, required: i, showLabel: c = !0 } = e, d = I();
790
- return c ? /* @__PURE__ */ a.jsxs("div", { ...o, ...l, children: [
791
- /* @__PURE__ */ a.jsx("input", { ...n, name: t, id: d, type: "radio", required: i, defaultChecked: r }),
792
- s && /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: s })
793
- ] }) : /* @__PURE__ */ a.jsx(
816
+ }, ut = (e) => {
817
+ const { blockProps: l, fieldName: t, label: a, styles: o, inputStyles: n, checked: r, required: i, showLabel: c = !0 } = e, d = B();
818
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...o, ...l, children: [
819
+ /* @__PURE__ */ s.jsx("input", { ...n, name: t, id: d, type: "radio", required: i, defaultChecked: r }),
820
+ a && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: a })
821
+ ] }) : /* @__PURE__ */ s.jsx(
794
822
  "input",
795
823
  {
796
824
  id: d,
@@ -803,36 +831,36 @@ const Fe = (e) => {
803
831
  name: t
804
832
  }
805
833
  );
806
- }, rt = {
834
+ }, bt = {
807
835
  type: "Radio",
808
836
  label: "web_blocks.radio",
809
837
  category: "core",
810
- icon: oe,
838
+ icon: se,
811
839
  group: "form",
812
840
  props: {
813
- styles: p({ default: "flex items-center w-max gap-x-2" }),
841
+ styles: m({ default: "flex items-center w-max gap-x-2" }),
814
842
  fieldName: b({ title: "web_blocks.field_name", default: "radio" }),
815
843
  label: b({ title: "web_blocks.label", default: "Label" }),
816
844
  checked: k({ title: "web_blocks.checked", default: !1 }),
817
845
  required: k({ title: "web_blocks.required", default: !1 })
818
846
  }
819
- }, ct = (e) => {
847
+ }, pt = (e) => {
820
848
  const {
821
849
  blockProps: l,
822
850
  fieldName: t,
823
- label: s,
851
+ label: a,
824
852
  placeholder: o,
825
853
  styles: n,
826
854
  inputStyles: r,
827
855
  required: i,
828
856
  showLabel: c,
829
857
  _multiple: d = !1
830
- } = e, h = I();
831
- return c ? /* @__PURE__ */ a.jsxs("div", { ...n, children: [
832
- c && /* @__PURE__ */ a.jsx("label", { htmlFor: h, children: s }),
833
- /* @__PURE__ */ a.jsxs("select", { ...r, id: h, required: i, multiple: d, name: t, children: [
834
- /* @__PURE__ */ a.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
835
- M(e.options, (f) => /* @__PURE__ */ a.jsx(
858
+ } = e, h = B();
859
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...n, children: [
860
+ c && /* @__PURE__ */ s.jsx("label", { htmlFor: h, children: a }),
861
+ /* @__PURE__ */ s.jsxs("select", { ...r, id: h, required: i, multiple: d, name: t, children: [
862
+ /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
863
+ M(e.options, (f) => /* @__PURE__ */ s.jsx(
836
864
  "option",
837
865
  {
838
866
  selected: x(f, "selected", !1),
@@ -842,7 +870,7 @@ const Fe = (e) => {
842
870
  f.value
843
871
  ))
844
872
  ] })
845
- ] }) : /* @__PURE__ */ a.jsxs(
873
+ ] }) : /* @__PURE__ */ s.jsxs(
846
874
  "select",
847
875
  {
848
876
  id: h,
@@ -852,8 +880,8 @@ const Fe = (e) => {
852
880
  multiple: d,
853
881
  name: t,
854
882
  children: [
855
- /* @__PURE__ */ a.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
856
- M(e.options, (f) => /* @__PURE__ */ a.jsx(
883
+ /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
884
+ M(e.options, (f) => /* @__PURE__ */ s.jsx(
857
885
  "option",
858
886
  {
859
887
  selected: x(f, "selected", !1),
@@ -865,17 +893,17 @@ const Fe = (e) => {
865
893
  ]
866
894
  }
867
895
  );
868
- }, it = {
896
+ }, mt = {
869
897
  type: "Select",
870
898
  label: "web_blocks.select",
871
899
  category: "core",
872
- icon: se,
900
+ icon: ae,
873
901
  group: "form",
874
902
  props: {
875
- styles: p({ default: "" }),
903
+ styles: m({ default: "" }),
876
904
  fieldName: b({ title: "web_blocks.field_name", default: "select" }),
877
905
  showLabel: k({ title: "web_blocks.show_label", default: !0 }),
878
- inputStyles: p({ default: "w-full p-1" }),
906
+ inputStyles: m({ default: "w-full p-1" }),
879
907
  label: b({ title: "web_blocks.label", default: "Label" }),
880
908
  placeholder: b({
881
909
  title: "web_blocks.placeholder",
@@ -891,12 +919,12 @@ const Fe = (e) => {
891
919
  }
892
920
  })
893
921
  }
894
- }, dt = (e) => {
895
- const { blockProps: l, fieldName: t, label: s, placeholder: o, styles: n, inputStyles: r, _rows: i, showLabel: c } = e, d = I();
896
- return c ? /* @__PURE__ */ a.jsxs("div", { ...n, ...l, children: [
897
- c && /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: s }),
898
- /* @__PURE__ */ a.jsx("textarea", { name: t, ...r, id: d, placeholder: o, rows: i })
899
- ] }) : /* @__PURE__ */ a.jsx(
922
+ }, ft = (e) => {
923
+ const { blockProps: l, fieldName: t, label: a, placeholder: o, styles: n, inputStyles: r, _rows: i, showLabel: c } = e, d = B();
924
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...n, ...l, children: [
925
+ c && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: a }),
926
+ /* @__PURE__ */ s.jsx("textarea", { name: t, ...r, id: d, placeholder: o, rows: i })
927
+ ] }) : /* @__PURE__ */ s.jsx(
900
928
  "textarea",
901
929
  {
902
930
  id: d,
@@ -908,7 +936,7 @@ const Fe = (e) => {
908
936
  rows: i
909
937
  }
910
938
  );
911
- }, ut = {
939
+ }, ht = {
912
940
  type: "TextArea",
913
941
  label: "web_blocks.textarea",
914
942
  category: "core",
@@ -917,19 +945,19 @@ const Fe = (e) => {
917
945
  props: {
918
946
  fieldName: b({ title: "web_blocks.field_name", default: "textarea" }),
919
947
  showLabel: k({ title: "web_blocks.show_label", default: !0 }),
920
- styles: p({ default: "" }),
921
- inputStyles: p({ default: "w-full p-1" }),
948
+ styles: m({ default: "" }),
949
+ inputStyles: m({ default: "w-full p-1" }),
922
950
  label: b({ title: "web_blocks.label", default: "Label" }),
923
951
  placeholder: b({
924
952
  title: "web_blocks.placeholder",
925
953
  default: "Placeholder"
926
954
  }),
927
- _rows: B({ title: "web_blocks.rows", default: 3 })
955
+ _rows: I({ title: "web_blocks.rows", default: 3 })
928
956
  }
929
- }, bt = (e) => {
930
- const { blockProps: l, fieldName: t, label: s, styles: o, inputStyles: n, required: r, checked: i, showLabel: c = !0 } = e, d = I();
931
- return c ? /* @__PURE__ */ a.jsxs("div", { ...o, ...l, children: [
932
- /* @__PURE__ */ a.jsx(
957
+ }, kt = (e) => {
958
+ const { blockProps: l, fieldName: t, label: a, styles: o, inputStyles: n, required: r, checked: i, showLabel: c = !0 } = e, d = B();
959
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...o, ...l, children: [
960
+ /* @__PURE__ */ s.jsx(
933
961
  "input",
934
962
  {
935
963
  ...n,
@@ -940,8 +968,8 @@ const Fe = (e) => {
940
968
  defaultChecked: i
941
969
  }
942
970
  ),
943
- s && s !== "Label" && /* @__PURE__ */ a.jsx("label", { htmlFor: d, children: s })
944
- ] }) : /* @__PURE__ */ a.jsx(
971
+ a && a !== "Label" && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: a })
972
+ ] }) : /* @__PURE__ */ s.jsx(
945
973
  "input",
946
974
  {
947
975
  id: d,
@@ -953,22 +981,22 @@ const Fe = (e) => {
953
981
  name: t
954
982
  }
955
983
  );
956
- }, pt = {
984
+ }, gt = {
957
985
  type: "Checkbox",
958
986
  label: "web_blocks.checkbox",
959
987
  category: "core",
960
- icon: ae,
988
+ icon: ne,
961
989
  group: "form",
962
990
  props: {
963
991
  fieldName: b({ title: "Field Name", default: "checkbox" }),
964
- styles: p({ default: "flex items-center gap-x-2" }),
992
+ styles: m({ default: "flex items-center gap-x-2" }),
965
993
  label: b({ title: "web_blocks.label", default: "Label" }),
966
994
  checked: k({ title: "web_blocks.checked", default: !1 }),
967
995
  required: k({ title: "web_blocks.required", default: !1 })
968
996
  }
969
- }, xt = () => {
970
- u(de, ue), u(he, ke), u(be, pe), u(ye, ge), u(_e, we), u(xe, ve), u(Ie, Be), u(je, Le), u(Ce, Se), u(Me, Ne), u(Ee, $e), u(Pe, Te), u(He, ze), u(Ae, De), u(me, fe), u(Xe, Ye), u(et, tt), u(lt, ot), u(st, at), u(bt, pt), u(nt, rt), u(ct, it), u(dt, ut), u(Ke, Qe), u(Ze, Je), u(Fe, Oe), u(Ue, Ve), u(Ge, We);
997
+ }, St = () => {
998
+ u(be, pe), u(ge, ye), u(me, fe), u(_e, we), u(xe, ve), u(Be, Ie), u(je, Le), u(Ce, Se), u(Me, Ee), u(Ne, $e), u(Pe, Te), u(He, ze), u(qe, Ae), u(Re, Fe), u(he, ke), u(Qe, et), u(at, nt), u(rt, ct), u(it, dt), u(kt, gt), u(ut, bt), u(pt, mt), u(ft, ht), u(ot, st), u(tt, lt), u(Oe, Ue), u(Ve, We), u(Xe, Ye), u(Je, Ke);
971
999
  };
972
1000
  export {
973
- xt as loadWebBlocks
1001
+ St as loadWebBlocks
974
1002
  };