@chaibuilder/sdk 1.2.113 → 1.2.114

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.
@@ -1,19 +1,19 @@
1
1
  import { registerChaiBlock as u } from "@chaibuilder/runtime";
2
2
  import { j as s } from "./jsx-runtime-Sp0orL4X.js";
3
3
  import * as b from "react";
4
- import { T as m, y as _, x as C, g as p, q as N, s as L, l as T, f as B, m as S, w as D, c as g, b as F, S as G } from "./controls-lEwMTdPQ.js";
4
+ import { T as m, y as v, x as C, g as p, q as N, s as B, l as T, f as L, m as S, w as D, c as y, b as F, S as G } from "./controls-lEwMTdPQ.js";
5
5
  import { c as j, G as V, g as I } from "./iconBase-Ief2hJUZ.js";
6
6
  import { ButtonIcon as H, CodeIcon as U, HeadingIcon as O, 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 A, GroupIcon as le, InputIcon as R, RadiobuttonIcon as oe, DropdownMenuIcon as ae, CheckboxIcon as se } from "@radix-ui/react-icons";
7
- import { isNull as re, isEmpty as k, get as v, pick as ne, omit as ie, map as M } from "lodash-es";
7
+ import { isNull as re, isEmpty as k, get as w, pick as ne, omit as ie, map as M } from "lodash-es";
8
8
  import { GlobeIcon as ce } from "lucide-react";
9
9
  import "clsx";
10
10
  import "tailwind-merge";
11
- const de = ({ 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, x = de, ue = (e) => {
12
- const { blockProps: l, inBuilder: t, backgroundImage: a, children: o, tag: r = "div", styles: n } = e;
13
- let c = o;
14
- o || (c = /* @__PURE__ */ s.jsx(x, { inBuilder: t }));
15
- let i = {};
16
- return a && (i = { backgroundImage: `url(${a})` }), b.createElement(r, { ...l, ...n, style: i }, c);
11
+ const de = ({ 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, _ = de, ue = (e) => {
12
+ const { blockProps: l, inBuilder: t, backgroundImage: o, children: a, tag: r = "div", styles: n } = e;
13
+ let i = a;
14
+ a || (i = /* @__PURE__ */ s.jsx(_, { inBuilder: t }));
15
+ let c = {};
16
+ return o && (c = { backgroundImage: `url(${o})` }), b.createElement(r, { ...l, ...n, style: c }, i);
17
17
  }, pe = {
18
18
  type: "Box",
19
19
  label: "web_blocks.box",
@@ -21,7 +21,7 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
21
21
  group: "basic",
22
22
  props: {
23
23
  styles: m({ default: "" }),
24
- tag: _({
24
+ tag: v({
25
25
  title: "web_blocks.tag",
26
26
  default: "div",
27
27
  options: [
@@ -48,14 +48,14 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
48
48
  },
49
49
  canAcceptBlock: () => !0
50
50
  }, be = (e) => {
51
- const { blockProps: l, iconSize: t, icon: a, content: o, iconPos: r, styles: n, children: c } = e, i = a, d = c || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
52
- /* @__PURE__ */ s.jsx("span", { "data-ai-key": "content", children: o }),
53
- i && /* @__PURE__ */ s.jsx(
51
+ const { blockProps: l, iconSize: t, icon: o, content: a, iconPos: r, styles: n, children: i } = e, c = o, d = i || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
52
+ /* @__PURE__ */ s.jsx("span", { "data-ai-key": "content", children: a }),
53
+ c && /* @__PURE__ */ s.jsx(
54
54
  "div",
55
55
  {
56
56
  style: { width: t + "px" },
57
57
  className: r + " " + (r === "order-first" ? "mr-2" : "ml-2") || "",
58
- dangerouslySetInnerHTML: { __html: i }
58
+ dangerouslySetInnerHTML: { __html: c }
59
59
  }
60
60
  )
61
61
  ] });
@@ -78,8 +78,8 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
78
78
  content: p({ title: "web_blocks.label", default: "Button", ai: !0, i18n: !0 }),
79
79
  styles: m({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
80
80
  icon: N({ title: "web_blocks.icon", default: "" }),
81
- iconSize: L({ title: "web_blocks.icon_size", default: 24 }),
82
- iconPos: _({
81
+ iconSize: B({ title: "web_blocks.icon_size", default: 24 }),
82
+ iconPos: v({
83
83
  title: "web_blocks.icon_position",
84
84
  default: "order-last",
85
85
  options: [
@@ -89,17 +89,17 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
89
89
  })
90
90
  }
91
91
  }, fe = (e) => {
92
- const { blockProps: l, styles: t, htmlCode: a, inBuilder: o } = e;
93
- return o ? /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
94
- o ? /* @__PURE__ */ s.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
92
+ const { blockProps: l, styles: t, htmlCode: o, inBuilder: a } = e;
93
+ return a ? /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
94
+ a ? /* @__PURE__ */ s.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
95
95
  b.createElement("div", {
96
96
  ...t,
97
- dangerouslySetInnerHTML: { __html: a.replace(/<script.*?>.*?<\/script>/g, "") }
97
+ dangerouslySetInnerHTML: { __html: o.replace(/<script.*?>.*?<\/script>/g, "") }
98
98
  })
99
99
  ] }) : b.createElement("div", {
100
100
  ...l,
101
101
  ...t,
102
- dangerouslySetInnerHTML: { __html: a }
102
+ dangerouslySetInnerHTML: { __html: o }
103
103
  });
104
104
  }, he = {
105
105
  type: "CustomHTML",
@@ -115,13 +115,13 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
115
115
  placeholder: "web_blocks.placeholder"
116
116
  })
117
117
  }
118
- }, ge = b.memo(
118
+ }, ye = b.memo(
119
119
  (e) => {
120
- const { blockProps: l, styles: t, backgroundImage: a } = e;
121
- let o = {};
122
- return a && (o = { backgroundImage: `url(${a})` }), b.createElement("div", { ...l, ...t, style: o });
120
+ const { blockProps: l, styles: t, backgroundImage: o } = e;
121
+ let a = {};
122
+ return o && (a = { backgroundImage: `url(${o})` }), b.createElement("div", { ...l, ...t, style: a });
123
123
  }
124
- ), ye = {
124
+ ), ge = {
125
125
  type: "EmptyBox",
126
126
  label: "web_blocks.empty_box",
127
127
  category: "core",
@@ -131,13 +131,13 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
131
131
  backgroundImage: C({ title: "Background Image" })
132
132
  }
133
133
  }, ke = (e) => {
134
- const { blockProps: l, styles: t, content: a, level: o = "h1", children: r = null } = e;
135
- return r ? b.createElement(o, { ...t, ...l }, r) : b.createElement(o, {
134
+ const { blockProps: l, styles: t, content: o, level: a = "h1", children: r = null } = e;
135
+ return r ? b.createElement(a, { ...t, ...l }, r) : b.createElement(a, {
136
136
  ...t,
137
137
  ...l,
138
138
  "data-ai-key": "content",
139
139
  "data-ai-type": "html",
140
- dangerouslySetInnerHTML: { __html: a }
140
+ dangerouslySetInnerHTML: { __html: o }
141
141
  });
142
142
  }, xe = {
143
143
  type: "Heading",
@@ -146,7 +146,7 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
146
146
  icon: O,
147
147
  group: "typography",
148
148
  props: {
149
- level: _({
149
+ level: v({
150
150
  title: "web_blocks.level",
151
151
  default: "h2",
152
152
  binding: !1,
@@ -160,17 +160,17 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
160
160
  ]
161
161
  }),
162
162
  styles: m({ default: "text-3xl" }),
163
- content: B({ title: "Content", default: "Heading goes here", ai: !0, i18n: !0 })
163
+ content: L({ title: "Content", default: "Heading goes here", ai: !0, i18n: !0 })
164
164
  },
165
165
  canAcceptBlock: (e) => e === "Span" || e === "Text"
166
166
  }, we = (e) => {
167
- const { blockProps: l, styles: t, content: a } = e;
167
+ const { blockProps: l, styles: t, content: o } = e;
168
168
  return re(e.children) ? b.createElement("p", {
169
169
  ...t,
170
170
  ...l,
171
171
  "data-ai-key": "content",
172
172
  "data-ai-type": "html",
173
- dangerouslySetInnerHTML: { __html: a }
173
+ dangerouslySetInnerHTML: { __html: o }
174
174
  }) : b.createElement("p", { ...t, ...l }, e.children);
175
175
  }, ve = {
176
176
  type: "Paragraph",
@@ -180,7 +180,7 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
180
180
  group: "typography",
181
181
  props: {
182
182
  styles: m({ default: "" }),
183
- content: B({
183
+ content: L({
184
184
  title: "Content",
185
185
  default: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.
186
186
  Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus
@@ -191,12 +191,12 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
191
191
  },
192
192
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
193
193
  }, _e = (e) => {
194
- const { blockProps: l, styles: t, content: a, children: o = null, tag: r } = e;
195
- return o ? b.createElement("span", { ...t, ...l }, o) : b.createElement(r || "span", {
194
+ const { blockProps: l, styles: t, content: o, children: a = null, tag: r } = e;
195
+ return a ? b.createElement("span", { ...t, ...l }, a) : b.createElement(r || "span", {
196
196
  ...t,
197
197
  ...l,
198
198
  "data-ai-key": "content",
199
- dangerouslySetInnerHTML: { __html: a || "" }
199
+ dangerouslySetInnerHTML: { __html: o || "" }
200
200
  });
201
201
  }, Ie = {
202
202
  type: "Span",
@@ -205,22 +205,22 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
205
205
  group: "typography",
206
206
  props: {
207
207
  styles: m({ default: "" }),
208
- content: B({ title: "Content", default: "", ai: !0, i18n: !0 })
208
+ content: L({ title: "Content", default: "", ai: !0, i18n: !0 })
209
209
  },
210
210
  canAcceptBlock: () => !0
211
- }, Le = (e) => {
212
- const { blockProps: l, content: t, styles: a } = e;
211
+ }, Be = (e) => {
212
+ const { blockProps: l, content: t, styles: o } = e;
213
213
  return /* @__PURE__ */ s.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ s.jsx(
214
214
  "div",
215
215
  {
216
216
  "data-ai-key": "content",
217
217
  "data-ai-type": "richtext",
218
218
  ...l,
219
- ...a,
219
+ ...o,
220
220
  dangerouslySetInnerHTML: { __html: t }
221
221
  }
222
222
  ) });
223
- }, Be = {
223
+ }, Le = {
224
224
  type: "RichText",
225
225
  label: "Rich Text",
226
226
  category: "core",
@@ -236,19 +236,28 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
236
236
  })
237
237
  }
238
238
  }, je = (e) => {
239
- const { blockProps: l, link: t, children: a, styles: o, inBuilder: r, content: n } = e;
240
- return !a && k(o == null ? void 0 : o.className) && k(n) ? /* @__PURE__ */ s.jsx(x, { inBuilder: r }) : r ? a ? /* @__PURE__ */ s.jsx("span", { ...l, ...o, children: a }) : b.createElement("span", {
241
- ...l,
242
- ...o,
243
- dangerouslySetInnerHTML: { __html: n }
244
- }) : a ? /* @__PURE__ */ s.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...o, children: a }) : b.createElement("a", {
245
- ...l,
246
- ...o,
247
- "data-ai-key": "content",
248
- href: (t == null ? void 0 : t.href) || "#",
249
- target: (t == null ? void 0 : t.target) || "_self",
250
- dangerouslySetInnerHTML: { __html: n }
251
- });
239
+ const { blockProps: l, link: t, children: o, styles: a, inBuilder: r, content: n } = e;
240
+ let i = {};
241
+ return !o && k(n) && (i = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), r ? o ? /* @__PURE__ */ s.jsx("span", { ...l, style: i, ...a, children: o }) : b.createElement(
242
+ "span",
243
+ {
244
+ ...l,
245
+ ...a,
246
+ style: i,
247
+ "data-ai-key": "content"
248
+ },
249
+ n
250
+ ) : o ? /* @__PURE__ */ s.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...a, children: o }) : b.createElement(
251
+ "a",
252
+ {
253
+ ...l,
254
+ ...a,
255
+ "data-ai-key": "content",
256
+ href: (t == null ? void 0 : t.href) || "#",
257
+ target: (t == null ? void 0 : t.target) || "_self"
258
+ },
259
+ n
260
+ );
252
261
  }, Ce = {
253
262
  type: "Link",
254
263
  label: "Link",
@@ -268,20 +277,20 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
268
277
  ...e,
269
278
  className: j(e.className, ...l)
270
279
  }), Se = (e) => {
271
- const { blockProps: l, children: t, styles: a, inBuilder: o, content: r, href: n } = e, { hrefType: c, autoplay: i, maxWidth: d, backdropColor: h, galleryName: f } = e, y = q(a, "cb-lightbox");
272
- if (!t && k(a == null ? void 0 : a.className) && k(r))
273
- return /* @__PURE__ */ s.jsx(x, { inBuilder: o });
274
- if (o)
275
- return t ? /* @__PURE__ */ s.jsx("span", { ...l, ...y, children: t }) : b.createElement("span", {
280
+ const { blockProps: l, children: t, styles: o, inBuilder: a, content: r, href: n } = e, { hrefType: i, autoplay: c, maxWidth: d, backdropColor: h, galleryName: f } = e, g = q(o, "cb-lightbox");
281
+ if (!t && k(o == null ? void 0 : o.className) && k(r))
282
+ return /* @__PURE__ */ s.jsx(_, { inBuilder: a });
283
+ if (a)
284
+ return t ? /* @__PURE__ */ s.jsx("span", { ...l, ...g, children: t }) : b.createElement("span", {
276
285
  ...l,
277
- ...y,
286
+ ...g,
278
287
  dangerouslySetInnerHTML: { __html: r }
279
288
  });
280
- const w = {};
281
- return w["data-vbtype"] = c, i && (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: n || "#/", ...l, ...y, children: t }) : b.createElement("a", {
289
+ const x = {};
290
+ return x["data-vbtype"] = i, c && (x["data-autoplay"] = "true"), d && (x["data-maxwidth"] = d + "px"), h && (x["data-overlay"] = h), f && (x["data-gall"] = f), t ? /* @__PURE__ */ s.jsx("a", { ...x, href: n || "#/", ...l, ...g, children: t }) : b.createElement("a", {
282
291
  ...l,
283
- ...y,
284
- ...w,
292
+ ...g,
293
+ ...x,
285
294
  href: n || "#",
286
295
  dangerouslySetInnerHTML: { __html: r }
287
296
  });
@@ -295,7 +304,7 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
295
304
  styles: m({ default: "" }),
296
305
  content: p({ title: "Content", default: "Link text or drop blocks inside", ai: !0, i18n: !0 }),
297
306
  href: p({ title: "Href", default: "" }),
298
- hrefType: _({
307
+ hrefType: v({
299
308
  title: "Type",
300
309
  default: "video",
301
310
  options: [
@@ -305,17 +314,17 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
305
314
  { value: "ajax", title: "Ajax" }
306
315
  ]
307
316
  }),
308
- autoplay: g({ title: "Autoplay", default: !1 }),
309
- maxWidth: L({ title: "Max Width", default: "" }),
317
+ autoplay: y({ title: "Autoplay", default: !1 }),
318
+ maxWidth: B({ title: "Max Width", default: "" }),
310
319
  backdropColor: p({ title: "Backdrop Color", default: "" }),
311
320
  galleryName: p({ title: "Gallery Name", default: "" })
312
321
  },
313
322
  canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
314
323
  }, Ne = (e) => {
315
- const { blockProps: l, children: t, listType: a, styles: o, tag: r, inBuilder: n } = e, c = j(v(o, "className", ""), a);
316
- return !t && k(o == null ? void 0 : o.className) ? /* @__PURE__ */ s.jsx(x, { inBuilder: n }) : b.createElement(
317
- r || (a === "list-decimal" ? "ol" : "ul"),
318
- { ...l, ...o, className: c },
324
+ const { blockProps: l, children: t, listType: o, styles: a, tag: r, inBuilder: n } = e, i = j(w(a, "className", ""), o);
325
+ return !t && k(a == null ? void 0 : a.className) ? /* @__PURE__ */ s.jsx(_, { inBuilder: n }) : b.createElement(
326
+ r || (o === "list-decimal" ? "ol" : "ul"),
327
+ { ...l, ...a, className: i },
319
328
  t
320
329
  );
321
330
  }, Pe = {
@@ -326,7 +335,7 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
326
335
  group: "basic",
327
336
  props: {
328
337
  styles: m({ default: "" }),
329
- listType: _({
338
+ listType: v({
330
339
  title: "web_blocks.list_type",
331
340
  default: "list-none",
332
341
  options: [
@@ -362,9 +371,9 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
362
371
  }
363
372
  ]
364
373
  }, Ee = (e) => {
365
- const { blockProps: l, content: t, styles: a, children: o, tag: r } = e;
366
- return o ? b.createElement(r || "li", { ...a, ...l }, o) : b.createElement(r || "li", {
367
- ...a,
374
+ const { blockProps: l, content: t, styles: o, children: a, tag: r } = e;
375
+ return a ? b.createElement(r || "li", { ...o, ...l }, a) : b.createElement(r || "li", {
376
+ ...o,
368
377
  ...l,
369
378
  "data-ai-key": "content",
370
379
  dangerouslySetInnerHTML: { __html: t }
@@ -377,19 +386,19 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
377
386
  group: "basic",
378
387
  props: {
379
388
  styles: m({ default: "" }),
380
- content: B({ title: "Content", default: "List item", ai: !0, i18n: !0 })
389
+ content: L({ title: "Content", default: "List item", ai: !0, i18n: !0 })
381
390
  },
382
391
  canAcceptBlock: (e) => e !== "ListItem",
383
392
  canBeNested: (e) => e === "List"
384
393
  }, Te = (e) => {
385
- const { blockProps: l, icon: t, styles: a, width: o, inBuilder: r, height: n } = e, c = q(a, j(o ? `w-[${o}px]` : "", n ? `h-[${n}px]` : ""));
394
+ const { blockProps: l, icon: t, styles: o, width: a, inBuilder: r, height: n } = e, i = q(o, j(a ? `w-[${a}px]` : "", n ? `h-[${n}px]` : ""));
386
395
  if (k(t))
387
- return /* @__PURE__ */ s.jsx(x, { inBuilder: r, className: "h-8 w-14" });
388
- const i = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
396
+ return /* @__PURE__ */ s.jsx(_, { inBuilder: r, className: "h-8 w-14" });
397
+ const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
389
398
  return b.createElement("span", {
390
399
  ...l,
391
- ...c,
392
- dangerouslySetInnerHTML: { __html: i }
400
+ ...i,
401
+ dangerouslySetInnerHTML: { __html: c }
393
402
  });
394
403
  }, He = {
395
404
  type: "Icon",
@@ -403,17 +412,17 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
403
412
  title: "web_blocks.icon",
404
413
  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>'
405
414
  }),
406
- width: L({ title: "web_blocks.width", default: "" }),
407
- height: L({ title: "web_blocks.height", default: "" })
415
+ width: B({ title: "web_blocks.width", default: "" }),
416
+ height: B({ title: "web_blocks.height", default: "" })
408
417
  }
409
418
  }, ze = (e) => {
410
- const { blockProps: l, image: t, styles: a, alt: o, height: r, width: n, lazyLoading: c } = e;
411
- return k(t) ? /* @__PURE__ */ s.jsx(x, { className: "h-36" }) : b.createElement("img", {
419
+ const { blockProps: l, image: t, styles: o, alt: a, height: r, width: n, lazyLoading: i } = e;
420
+ return k(t) ? /* @__PURE__ */ s.jsx(_, { className: "h-36" }) : b.createElement("img", {
412
421
  ...l,
413
- ...a,
422
+ ...o,
414
423
  src: t,
415
- alt: o,
416
- loading: c ? "lazy" : "eager",
424
+ alt: a,
425
+ loading: i ? "lazy" : "eager",
417
426
  height: r,
418
427
  width: n
419
428
  });
@@ -432,7 +441,7 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
432
441
  alt: p({ title: "Alt text", default: "", ai: !0, i18n: !0 }),
433
442
  width: p({ title: "Width", default: "" }),
434
443
  height: p({ title: "Height", default: "" }),
435
- lazyLoading: g({ title: "Lazy Load", default: !0 })
444
+ lazyLoading: y({ title: "Lazy Load", default: !0 })
436
445
  }
437
446
  }, P = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, E = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, $ = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Re = (e) => {
438
447
  if (P.test(e)) {
@@ -450,14 +459,14 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
450
459
  return null;
451
460
  }, qe = b.memo(
452
461
  (e) => {
453
- const { blockProps: l, inBuilder: t, styles: a, url: o, controls: r } = e, n = v(r, "autoPlay", !1), c = v(r, "controls", !1), i = n || v(r, "muted", !0), d = v(r, "loop", !1);
454
- if (k(o))
455
- return /* @__PURE__ */ s.jsx(x, { inBuilder: t, className: "h-36" });
456
- let h = Re(o), f = null;
462
+ const { blockProps: l, inBuilder: t, styles: o, url: a, controls: r } = e, n = w(r, "autoPlay", !1), i = w(r, "controls", !1), c = n || w(r, "muted", !0), d = w(r, "loop", !1);
463
+ if (k(a))
464
+ return /* @__PURE__ */ s.jsx(_, { inBuilder: t, className: "h-36" });
465
+ let h = Re(a), f = null;
457
466
  if (h) {
458
467
  if (!k(h)) {
459
- const y = [];
460
- y.push(`autoplay=${n ? 1 : 0}`), y.push(`controls=${r ? 1 : 0}`), y.push(`mute=${i ? 1 : 0}&muted=${i ? 1 : 0}`), y.push(`loop=${d ? 1 : 0}`), h = `${h}?${y.join("&")}`;
468
+ const g = [];
469
+ g.push(`autoplay=${n ? 1 : 0}`), g.push(`controls=${r ? 1 : 0}`), g.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), g.push(`loop=${d ? 1 : 0}`), h = `${h}?${g.join("&")}`;
461
470
  }
462
471
  f = b.createElement("iframe", {
463
472
  ...l,
@@ -471,14 +480,14 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
471
480
  f = b.createElement("video", {
472
481
  ...l,
473
482
  className: "absolute inset-0 w-full h-full",
474
- src: o,
475
- controls: c,
476
- muted: i,
483
+ src: a,
484
+ controls: i,
485
+ muted: c,
477
486
  autoPlay: t ? !1 : n,
478
487
  loop: d
479
488
  });
480
- return /* @__PURE__ */ s.jsx("div", { ...ne(a, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
481
- t ? /* @__PURE__ */ s.jsx("div", { ...l, ...ie(a, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
489
+ return /* @__PURE__ */ s.jsx("div", { ...ne(o, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
490
+ t ? /* @__PURE__ */ s.jsx("div", { ...l, ...ie(o, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
482
491
  f
483
492
  ] }) });
484
493
  }
@@ -498,10 +507,10 @@ const de = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ s.jsx("d
498
507
  controls: F({
499
508
  title: "Controls",
500
509
  properties: {
501
- autoPlay: g({ title: "Autoplay", default: !0 }),
502
- controls: g({ title: "Controls", default: !1 }),
503
- loop: g({ title: "Loop", default: !1 }),
504
- muted: g({ title: "Muted", default: !0 })
510
+ autoPlay: y({ title: "Autoplay", default: !0 }),
511
+ controls: y({ title: "Controls", default: !1 }),
512
+ loop: y({ title: "Loop", default: !1 }),
513
+ muted: y({ title: "Muted", default: !0 })
505
514
  }
506
515
  })
507
516
  }
@@ -510,8 +519,8 @@ function Fe(e) {
510
519
  return V({ 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);
511
520
  }
512
521
  const Ge = (e) => {
513
- const { scripts: l, inBuilder: t, blockProps: a } = e;
514
- 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 } });
522
+ const { scripts: l, inBuilder: t, blockProps: o } = e;
523
+ return t ? /* @__PURE__ */ s.jsx("div", { ...o, 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 } });
515
524
  }, Ve = {
516
525
  type: "CustomScript",
517
526
  label: "web_blocks.custom_script",
@@ -594,8 +603,8 @@ const Ge = (e) => {
594
603
  }
595
604
  ]
596
605
  }, Ye = (e) => {
597
- const { blockProps: l, inBuilder: t, children: a, globalBlock: o } = e;
598
- return t && !o ? /* @__PURE__ */ s.jsxs(
606
+ const { blockProps: l, inBuilder: t, children: o, globalBlock: a } = e;
607
+ return t && !a ? /* @__PURE__ */ s.jsxs(
599
608
  "div",
600
609
  {
601
610
  className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
@@ -603,12 +612,12 @@ const Ge = (e) => {
603
612
  children: [
604
613
  /* @__PURE__ */ s.jsxs("h1", { children: [
605
614
  "Global Block - ",
606
- o
615
+ a
607
616
  ] }),
608
617
  /* @__PURE__ */ s.jsx("p", { children: "Choose a block from the sidebar to add it to this page." })
609
618
  ]
610
619
  }
611
- ) : b.createElement("div", { ...l }, a);
620
+ ) : b.createElement("div", { ...l }, o);
612
621
  }, Ze = {
613
622
  type: "GlobalBlock",
614
623
  label: "Global Block",
@@ -626,12 +635,12 @@ const Ge = (e) => {
626
635
  group: "typography",
627
636
  icon: A,
628
637
  props: {
629
- content: B({ title: "Content", default: "", ai: !0, i18n: !0 })
638
+ content: L({ title: "Content", default: "", ai: !0, i18n: !0 })
630
639
  }
631
640
  }, Qe = (e) => {
632
- const { blockProps: l, backgroundImage: t, children: a, styles: o } = e;
641
+ const { blockProps: l, backgroundImage: t, children: o, styles: a } = e;
633
642
  let r = {};
634
- return t && (r = { backgroundImage: `url(${t})` }), b.createElement("div", { ...l, ...o, style: r }, a);
643
+ return t && (r = { backgroundImage: `url(${t})` }), b.createElement("div", { ...l, ...a, style: r }, o);
635
644
  }, et = {
636
645
  type: "Body",
637
646
  label: "Body",
@@ -660,9 +669,9 @@ const Ge = (e) => {
660
669
  styles: m({ default: "" })
661
670
  }
662
671
  }, ot = (e) => {
663
- const { blockProps: l, errorMessage: t, name: a, _type: o, successMessage: r, action: n, styles: c, children: i } = e;
664
- let d = i;
665
- i || (d = /* @__PURE__ */ s.jsx(x, {}));
672
+ const { blockProps: l, errorMessage: t, name: o, _type: a, successMessage: r, action: n, styles: i, children: c } = e;
673
+ let d = c;
674
+ c || (d = /* @__PURE__ */ s.jsx(_, {}));
666
675
  const h = {
667
676
  "x-data": "{}",
668
677
  "x-on:submit.prevent": "post"
@@ -679,10 +688,10 @@ const Ge = (e) => {
679
688
  method: "post",
680
689
  action: n,
681
690
  ...l,
682
- ...c,
691
+ ...i,
683
692
  children: [
684
693
  /* @__PURE__ */ s.jsx("div", { ...f }),
685
- /* @__PURE__ */ s.jsx("input", { name: "formname", type: "hidden", value: a || o }),
694
+ /* @__PURE__ */ s.jsx("input", { name: "formname", type: "hidden", value: o || a }),
686
695
  d
687
696
  ]
688
697
  }
@@ -710,21 +719,21 @@ const Ge = (e) => {
710
719
  },
711
720
  canAcceptBlock: () => !0
712
721
  }, st = (e) => {
713
- const { blockProps: l, inBuilder: t, label: a, styles: o, inputStyles: r, icon: n, iconPos: c } = e, i = I(), d = {
722
+ const { blockProps: l, inBuilder: t, label: o, styles: a, inputStyles: r, icon: n, iconPos: i } = e, c = I(), d = {
714
723
  "x-bind:disabled": "formLoading"
715
724
  };
716
725
  return /* @__PURE__ */ s.jsxs(
717
726
  "button",
718
727
  {
719
- id: i,
728
+ id: c,
720
729
  ...d,
721
730
  ...r,
722
- ...o,
731
+ ...a,
723
732
  ...l || {},
724
733
  type: t ? "button" : "submit",
725
734
  children: [
726
- a,
727
- n && /* @__PURE__ */ s.jsx("span", { className: c, dangerouslySetInnerHTML: { __html: n } })
735
+ o,
736
+ n && /* @__PURE__ */ s.jsx("span", { className: i, dangerouslySetInnerHTML: { __html: n } })
728
737
  ]
729
738
  }
730
739
  );
@@ -740,7 +749,7 @@ const Ge = (e) => {
740
749
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
741
750
  }),
742
751
  icon: N({ title: "Icon", default: "" }),
743
- iconPos: _({
752
+ iconPos: v({
744
753
  title: "Icon Position",
745
754
  default: "order-last",
746
755
  options: [
@@ -753,16 +762,16 @@ const Ge = (e) => {
753
762
  const {
754
763
  blockProps: l,
755
764
  label: t,
756
- placeholder: a,
757
- styles: o,
765
+ placeholder: o,
766
+ styles: a,
758
767
  inputStyles: r,
759
768
  showLabel: n,
760
- required: c,
761
- inputType: i = "text",
769
+ required: i,
770
+ inputType: c = "text",
762
771
  inBuilder: d,
763
772
  fieldName: h
764
773
  } = e, f = I();
765
- return !n || i === "submit" ? (i === "submit" && (l.value = t), /* @__PURE__ */ s.jsx(
774
+ return !n || c === "submit" ? (c === "submit" && (l.value = t), /* @__PURE__ */ s.jsx(
766
775
  "input",
767
776
  {
768
777
  id: f,
@@ -770,12 +779,12 @@ const Ge = (e) => {
770
779
  readOnly: d,
771
780
  ...l,
772
781
  ...r,
773
- ...o,
774
- type: i,
775
- placeholder: a,
776
- required: c
782
+ ...a,
783
+ type: c,
784
+ placeholder: o,
785
+ required: i
777
786
  }
778
- )) : /* @__PURE__ */ s.jsxs("div", { ...o, ...l, children: [
787
+ )) : /* @__PURE__ */ s.jsxs("div", { ...a, ...l, children: [
779
788
  n && /* @__PURE__ */ s.jsx("label", { htmlFor: f, children: t }),
780
789
  /* @__PURE__ */ s.jsx(
781
790
  "input",
@@ -784,9 +793,9 @@ const Ge = (e) => {
784
793
  readOnly: d,
785
794
  ...r,
786
795
  id: f,
787
- type: i,
788
- placeholder: a,
789
- required: c
796
+ type: c,
797
+ placeholder: o,
798
+ required: i
790
799
  }
791
800
  )
792
801
  ] });
@@ -799,7 +808,7 @@ const Ge = (e) => {
799
808
  props: {
800
809
  styles: m({ default: "" }),
801
810
  fieldName: p({ title: "Field Name", default: "input" }),
802
- inputType: _({
811
+ inputType: v({
803
812
  title: "Type",
804
813
  options: M(
805
814
  ["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
@@ -811,29 +820,29 @@ const Ge = (e) => {
811
820
  default: "text"
812
821
  }),
813
822
  value: p({ title: "Value", default: "", ai: !0, i18n: !0 }),
814
- showLabel: g({ title: "Show Label", default: !0 }),
823
+ showLabel: y({ title: "Show Label", default: !0 }),
815
824
  inputStyles: m({ default: "w-full p-1" }),
816
825
  label: p({ title: "Label", default: "Label", ai: !0, i18n: !0 }),
817
826
  placeholder: p({
818
827
  title: "Placeholder",
819
828
  default: "Placeholder"
820
829
  }),
821
- required: g({ title: "Required", default: !1 })
830
+ required: y({ title: "Required", default: !1 })
822
831
  }
823
832
  }, ct = (e) => {
824
- const { blockProps: l, fieldName: t, label: a, styles: o, inputStyles: r, checked: n, required: c, showLabel: i = !0 } = e, d = I();
825
- return i ? /* @__PURE__ */ s.jsxs("div", { ...o, ...l, children: [
826
- /* @__PURE__ */ s.jsx("input", { ...r, name: t, id: d, type: "radio", required: c, defaultChecked: n }),
827
- a && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: a })
833
+ const { blockProps: l, fieldName: t, label: o, styles: a, inputStyles: r, checked: n, required: i, showLabel: c = !0 } = e, d = I();
834
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...a, ...l, children: [
835
+ /* @__PURE__ */ s.jsx("input", { ...r, name: t, id: d, type: "radio", required: i, defaultChecked: n }),
836
+ o && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: o })
828
837
  ] }) : /* @__PURE__ */ s.jsx(
829
838
  "input",
830
839
  {
831
840
  id: d,
832
841
  ...l,
833
842
  ...r,
834
- ...o,
843
+ ...a,
835
844
  type: "radio",
836
- required: c,
845
+ required: i,
837
846
  checked: n,
838
847
  name: t
839
848
  }
@@ -848,29 +857,29 @@ const Ge = (e) => {
848
857
  styles: m({ default: "flex items-center w-max gap-x-2" }),
849
858
  fieldName: p({ title: "web_blocks.field_name", default: "radio" }),
850
859
  label: p({ title: "web_blocks.label", default: "Label" }),
851
- checked: g({ title: "web_blocks.checked", default: !1 }),
852
- required: g({ title: "web_blocks.required", default: !1 })
860
+ checked: y({ title: "web_blocks.checked", default: !1 }),
861
+ required: y({ title: "web_blocks.required", default: !1 })
853
862
  }
854
863
  }, ut = (e) => {
855
864
  const {
856
865
  blockProps: l,
857
866
  fieldName: t,
858
- label: a,
859
- placeholder: o,
867
+ label: o,
868
+ placeholder: a,
860
869
  styles: r,
861
870
  inputStyles: n,
862
- required: c,
863
- showLabel: i,
871
+ required: i,
872
+ showLabel: c,
864
873
  _multiple: d = !1
865
874
  } = e, h = I();
866
- return i ? /* @__PURE__ */ s.jsxs("div", { ...r, children: [
867
- i && /* @__PURE__ */ s.jsx("label", { htmlFor: h, children: a }),
868
- /* @__PURE__ */ s.jsxs("select", { ...n, id: h, required: c, multiple: d, name: t, children: [
869
- /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
875
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...r, children: [
876
+ c && /* @__PURE__ */ s.jsx("label", { htmlFor: h, children: o }),
877
+ /* @__PURE__ */ s.jsxs("select", { ...n, id: h, required: i, multiple: d, name: t, children: [
878
+ /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
870
879
  M(e.options, (f) => /* @__PURE__ */ s.jsx(
871
880
  "option",
872
881
  {
873
- selected: v(f, "selected", !1),
882
+ selected: w(f, "selected", !1),
874
883
  value: f.value,
875
884
  dangerouslySetInnerHTML: { __html: f.label }
876
885
  },
@@ -883,15 +892,15 @@ const Ge = (e) => {
883
892
  id: h,
884
893
  ...r,
885
894
  ...l,
886
- required: c,
895
+ required: i,
887
896
  multiple: d,
888
897
  name: t,
889
898
  children: [
890
- /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
899
+ /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
891
900
  M(e.options, (f) => /* @__PURE__ */ s.jsx(
892
901
  "option",
893
902
  {
894
- selected: v(f, "selected", !1),
903
+ selected: w(f, "selected", !1),
895
904
  value: f.value,
896
905
  dangerouslySetInnerHTML: { __html: f.label }
897
906
  },
@@ -909,15 +918,15 @@ const Ge = (e) => {
909
918
  props: {
910
919
  styles: m({ default: "" }),
911
920
  fieldName: p({ title: "Field Name", default: "select" }),
912
- showLabel: g({ title: "Show Label", default: !0 }),
921
+ showLabel: y({ title: "Show Label", default: !0 }),
913
922
  inputStyles: m({ default: "w-full p-1" }),
914
923
  label: p({ title: "Label", default: "Label", ai: !0, i18n: !0 }),
915
924
  placeholder: p({
916
925
  title: "Placeholder",
917
926
  default: "Placeholder"
918
927
  }),
919
- required: g({ title: "Required", default: !1 }),
920
- _multiple: g({ title: "Multiple", default: !1 }),
928
+ required: y({ title: "Required", default: !1 }),
929
+ _multiple: y({ title: "Multiple", default: !1 }),
921
930
  options: G({
922
931
  title: "Options",
923
932
  itemProperties: {
@@ -927,10 +936,10 @@ const Ge = (e) => {
927
936
  })
928
937
  }
929
938
  }, bt = (e) => {
930
- const { blockProps: l, fieldName: t, label: a, placeholder: o, styles: r, inputStyles: n, _rows: c, showLabel: i } = e, d = I();
931
- return i ? /* @__PURE__ */ s.jsxs("div", { ...r, ...l, children: [
932
- i && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: a }),
933
- /* @__PURE__ */ s.jsx("textarea", { name: t, ...n, id: d, placeholder: o, rows: c })
939
+ const { blockProps: l, fieldName: t, label: o, placeholder: a, styles: r, inputStyles: n, _rows: i, showLabel: c } = e, d = I();
940
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...r, ...l, children: [
941
+ c && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: o }),
942
+ /* @__PURE__ */ s.jsx("textarea", { name: t, ...n, id: d, placeholder: a, rows: i })
934
943
  ] }) : /* @__PURE__ */ s.jsx(
935
944
  "textarea",
936
945
  {
@@ -939,8 +948,8 @@ const Ge = (e) => {
939
948
  ...l,
940
949
  ...n,
941
950
  ...r,
942
- placeholder: o,
943
- rows: c
951
+ placeholder: a,
952
+ rows: i
944
953
  }
945
954
  );
946
955
  }, mt = {
@@ -951,7 +960,7 @@ const Ge = (e) => {
951
960
  group: "form",
952
961
  props: {
953
962
  fieldName: p({ title: "Field Name", default: "textarea" }),
954
- showLabel: g({ title: "Show Label", default: !0 }),
963
+ showLabel: y({ title: "Show Label", default: !0 }),
955
964
  styles: m({ default: "" }),
956
965
  inputStyles: m({ default: "w-full p-1" }),
957
966
  label: p({ title: "Label", default: "Label", ai: !0, i18n: !0 }),
@@ -959,11 +968,11 @@ const Ge = (e) => {
959
968
  title: "Placeholder",
960
969
  default: "Placeholder"
961
970
  }),
962
- _rows: L({ title: "Rows", default: 3 })
971
+ _rows: B({ title: "Rows", default: 3 })
963
972
  }
964
973
  }, ft = (e) => {
965
- const { blockProps: l, fieldName: t, label: a, styles: o, inputStyles: r, required: n, checked: c, showLabel: i = !0 } = e, d = I();
966
- return i ? /* @__PURE__ */ s.jsxs("div", { ...o, ...l, children: [
974
+ const { blockProps: l, fieldName: t, label: o, styles: a, inputStyles: r, required: n, checked: i, showLabel: c = !0 } = e, d = I();
975
+ return c ? /* @__PURE__ */ s.jsxs("div", { ...a, ...l, children: [
967
976
  /* @__PURE__ */ s.jsx(
968
977
  "input",
969
978
  {
@@ -972,17 +981,17 @@ const Ge = (e) => {
972
981
  id: d,
973
982
  type: "checkbox",
974
983
  required: n,
975
- defaultChecked: c
984
+ defaultChecked: i
976
985
  }
977
986
  ),
978
- a && a !== "Label" && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: a })
987
+ o && o !== "Label" && /* @__PURE__ */ s.jsx("label", { htmlFor: d, children: o })
979
988
  ] }) : /* @__PURE__ */ s.jsx(
980
989
  "input",
981
990
  {
982
991
  id: d,
983
992
  ...l,
984
993
  ...r,
985
- ...o,
994
+ ...a,
986
995
  type: "checkbox",
987
996
  required: n,
988
997
  name: t
@@ -998,12 +1007,12 @@ const Ge = (e) => {
998
1007
  fieldName: p({ title: "Field Name", default: "checkbox" }),
999
1008
  styles: m({ default: "flex items-center gap-x-2" }),
1000
1009
  label: p({ title: "web_blocks.label", default: "Label" }),
1001
- checked: g({ title: "web_blocks.checked", default: !1 }),
1002
- required: g({ title: "web_blocks.required", default: !1 })
1010
+ checked: y({ title: "web_blocks.checked", default: !1 }),
1011
+ required: y({ title: "web_blocks.required", default: !1 })
1003
1012
  }
1004
- }, Bt = () => {
1005
- u(ue, pe), u(ge, ye), u(be, me), u(ke, xe), u(we, ve), u(_e, Ie), u(Le, Be), u(je, Ce), u(Se, Me), u(Ne, Pe), u(Ee, $e), u(Te, He), u(ze, Ae), u(qe, De), u(fe, he), u(Je, Ke), u(ot, at), u(st, rt), u(nt, it), u(ft, ht), u(ct, dt), u(ut, pt), u(bt, mt), u(tt, lt), u(Qe, et), u(Ge, Ve), u(Ue, Oe), u(We, Xe), u(Ye, Ze);
1013
+ }, Lt = () => {
1014
+ u(ue, pe), u(ye, ge), u(be, me), u(ke, xe), u(we, ve), u(_e, Ie), u(Be, Le), u(je, Ce), u(Se, Me), u(Ne, Pe), u(Ee, $e), u(Te, He), u(ze, Ae), u(qe, De), u(fe, he), u(Je, Ke), u(ot, at), u(st, rt), u(nt, it), u(ft, ht), u(ct, dt), u(ut, pt), u(bt, mt), u(tt, lt), u(Qe, et), u(Ge, Ve), u(Ue, Oe), u(We, Xe), u(Ye, Ze);
1006
1015
  };
1007
1016
  export {
1008
- Bt as loadWebBlocks
1017
+ Lt as loadWebBlocks
1009
1018
  };