@chaibuilder/sdk 2.0.0-beta.37 → 2.0.0-beta.39

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,17 +1,17 @@
1
- import { registerChaiBlockSchema as u, StylesProp as c, registerChaiBlock as d, closestBlockProp as S, runtimeProp as D } from "@chaibuilder/runtime";
1
+ import { registerChaiBlockSchema as u, StylesProp as c, registerChaiBlock as p, closestBlockProp as B, stylesProp as I, runtimeProp as R } from "@chaibuilder/runtime";
2
2
  import { j as s } from "./jsx-runtime-DGlMoOmv.js";
3
3
  import * as m from "react";
4
- import { c as _, G as A, g as v } from "./iconBase-DHfFLkem.js";
5
- import { ButtonIcon as M, CodeIcon as R, HeadingIcon as z, TextIcon as H, CursorTextIcon as q, Link1Icon as F, ImageIcon as N, RowsIcon as G, ColumnsIcon as U, SketchLogoIcon as V, VideoIcon as O, DividerHorizontalIcon as W, MoonIcon as X, SpaceBetweenVerticallyIcon as Y, InputIcon as E, RadiobuttonIcon as Z, DropdownMenuIcon as $, CheckboxIcon as J, LetterCaseToggleIcon as K } from "@radix-ui/react-icons";
6
- import { isEmpty as k, get as f, isNull as Q, pick as ee, omit as te, map as I } from "lodash-es";
7
- import { GlobeIcon as oe, GroupIcon as le, Columns as ne, Rows as se } from "lucide-react";
8
- const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("div", { className: _("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, re = (e) => {
4
+ import { c as _, G as z, g as v } from "./iconBase-DHfFLkem.js";
5
+ import { ButtonIcon as N, CodeIcon as H, HeadingIcon as q, TextIcon as F, CursorTextIcon as G, Link1Icon as U, ImageIcon as E, RowsIcon as V, ColumnsIcon as O, SketchLogoIcon as W, VideoIcon as X, DividerHorizontalIcon as Y, MoonIcon as $, SunIcon as Z, SpaceBetweenVerticallyIcon as J, InputIcon as D, RadiobuttonIcon as K, DropdownMenuIcon as T, CheckboxIcon as Q, LetterCaseToggleIcon as ee } from "@radix-ui/react-icons";
6
+ import { isEmpty as k, get as f, isNull as te, pick as oe, omit as le, map as j } from "lodash-es";
7
+ import { GlobeIcon as ne, GroupIcon as se, Columns as re, Rows as ie } from "lucide-react";
8
+ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("div", { className: _("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, ae = (e) => {
9
9
  const { blockProps: o, inBuilder: t, backgroundImage: l, children: n, tag: r = "div", styles: i } = e;
10
10
  let a = n;
11
11
  n || (a = /* @__PURE__ */ s.jsx(w, { inBuilder: t }));
12
- let p = {};
13
- return l && (p = { backgroundImage: `url(${l})` }), m.createElement(r, { ...o, ...i, style: p }, a);
14
- }, ie = {
12
+ let d = {};
13
+ return l && (d = { backgroundImage: `url(${l})` }), m.createElement(r, { ...o, ...i, style: d }, a);
14
+ }, ce = {
15
15
  type: "Box",
16
16
  label: "Box",
17
17
  category: "core",
@@ -52,8 +52,8 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
52
52
  }
53
53
  }),
54
54
  canAcceptBlock: () => !0
55
- }, ae = (e) => {
56
- const { blockProps: o, iconSize: t, icon: l, content: n, styles: r, children: i, iconPos: a, link: p, inBuilder: y } = e, h = l, b = i || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
55
+ }, de = (e) => {
56
+ const { blockProps: o, iconSize: t, icon: l, content: n, styles: r, children: i, iconPos: a, link: d, inBuilder: y } = e, h = l, b = i || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
57
57
  /* @__PURE__ */ s.jsx("span", { "data-ai-key": "content", children: n }),
58
58
  h && /* @__PURE__ */ s.jsx(
59
59
  "div",
@@ -72,12 +72,12 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
72
72
  },
73
73
  b
74
74
  );
75
- return k(f(p, "href")) ? g : y ? /* @__PURE__ */ s.jsx("span", { children: g }) : /* @__PURE__ */ s.jsx("a", { href: f(p, "href") || "/", target: f(p, "target", "_self"), children: g });
76
- }, ce = {
75
+ return k(f(d, "href")) ? g : y ? /* @__PURE__ */ s.jsx("span", { children: g }) : /* @__PURE__ */ s.jsx("a", { href: f(d, "href") || "/", target: f(d, "target", "_self"), children: g });
76
+ }, pe = {
77
77
  type: "Button",
78
78
  label: "Button",
79
79
  category: "core",
80
- icon: M,
80
+ icon: N,
81
81
  group: "basic",
82
82
  ...u({
83
83
  properties: {
@@ -124,7 +124,7 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
124
124
  }),
125
125
  i18nProps: ["content"],
126
126
  aiProps: ["content"]
127
- }, pe = (e) => {
127
+ }, ue = (e) => {
128
128
  const { blockProps: o, styles: t, htmlCode: l, inBuilder: n } = e;
129
129
  return n ? /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
130
130
  n ? /* @__PURE__ */ s.jsx("div", { ...o, ...t, className: "absolute z-20 h-full w-full" }) : null,
@@ -137,11 +137,11 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
137
137
  ...t,
138
138
  dangerouslySetInnerHTML: { __html: l }
139
139
  });
140
- }, de = {
140
+ }, ge = {
141
141
  type: "CustomHTML",
142
142
  label: "web_blocks.custom_html",
143
143
  category: "core",
144
- icon: R,
144
+ icon: H,
145
145
  group: "advanced",
146
146
  ...u({
147
147
  properties: {
@@ -153,11 +153,11 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
153
153
  }
154
154
  }
155
155
  })
156
- }, ue = (e) => {
156
+ }, ye = (e) => {
157
157
  const { blockProps: o, styles: t, backgroundImage: l } = e;
158
158
  let n = {};
159
159
  return l && (n = { backgroundImage: `url(${l})` }), m.createElement("div", { ...o, ...t, style: n });
160
- }, ge = {
160
+ }, me = {
161
161
  type: "EmptyBox",
162
162
  label: "Empty Box",
163
163
  category: "core",
@@ -173,18 +173,18 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
173
173
  }
174
174
  }
175
175
  })
176
- }, ye = (e) => {
176
+ }, he = (e) => {
177
177
  const { blockProps: o, styles: t, content: l, tag: n = "h1", children: r = null } = e;
178
178
  return r ? m.createElement(n, { ...t, ...o }, r) : m.createElement(n, {
179
179
  ...t,
180
180
  ...o,
181
181
  dangerouslySetInnerHTML: { __html: l }
182
182
  });
183
- }, me = {
183
+ }, fe = {
184
184
  type: "Heading",
185
185
  label: "web_blocks.heading",
186
186
  category: "core",
187
- icon: z,
187
+ icon: q,
188
188
  group: "typography",
189
189
  ...u({
190
190
  properties: {
@@ -206,18 +206,18 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
206
206
  aiProps: ["content"],
207
207
  i18nProps: ["content"],
208
208
  canAcceptBlock: (e) => e === "Span" || e === "Text"
209
- }, he = (e) => {
209
+ }, be = (e) => {
210
210
  const { blockProps: o, styles: t, content: l } = e;
211
- return Q(e.children) ? m.createElement("p", {
211
+ return te(e.children) ? m.createElement("p", {
212
212
  ...t,
213
213
  ...o,
214
214
  dangerouslySetInnerHTML: { __html: l }
215
215
  }) : m.createElement("p", { ...t, ...o }, e.children);
216
- }, fe = {
216
+ }, ke = {
217
217
  type: "Paragraph",
218
218
  label: "Paragraph",
219
219
  category: "core",
220
- icon: H,
220
+ icon: F,
221
221
  group: "typography",
222
222
  ...u({
223
223
  properties: {
@@ -235,14 +235,14 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
235
235
  i18nProps: ["content"],
236
236
  aiProps: ["content"],
237
237
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
238
- }, be = (e) => {
238
+ }, xe = (e) => {
239
239
  const { blockProps: o, styles: t, content: l, children: n = null, tag: r } = e;
240
240
  return n ? m.createElement("span", { ...t, ...o }, n) : m.createElement(r || "span", {
241
241
  ...t,
242
242
  ...o,
243
243
  dangerouslySetInnerHTML: { __html: l || "" }
244
244
  });
245
- }, ke = {
245
+ }, we = {
246
246
  type: "Span",
247
247
  label: "Span",
248
248
  category: "core",
@@ -253,7 +253,7 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
253
253
  content: {
254
254
  type: "string",
255
255
  title: "Content",
256
- default: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
256
+ default: "",
257
257
  ui: { "ui:widget": "textarea", "ui:autosize": !0, "ui:rows": 3 }
258
258
  }
259
259
  }
@@ -261,14 +261,14 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
261
261
  aiProps: ["content"],
262
262
  i18nProps: ["content"],
263
263
  canAcceptBlock: () => !0
264
- }, xe = (e) => {
264
+ }, ve = (e) => {
265
265
  const { blockProps: o, content: t, styles: l } = e;
266
266
  return /* @__PURE__ */ s.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ s.jsx("div", { ...o, ...l, dangerouslySetInnerHTML: { __html: t } }) });
267
- }, we = {
267
+ }, Be = {
268
268
  type: "RichText",
269
269
  label: "Rich Text",
270
270
  category: "core",
271
- icon: q,
271
+ icon: G,
272
272
  group: "typography",
273
273
  ...u({
274
274
  properties: {
@@ -283,7 +283,7 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
283
283
  }),
284
284
  aiProps: ["content"],
285
285
  i18nProps: ["content"]
286
- }, ve = (e) => {
286
+ }, _e = (e) => {
287
287
  const { blockProps: o, link: t, children: l, styles: n, inBuilder: r, content: i } = e;
288
288
  let a = {};
289
289
  return !l && k(i) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), r ? l ? /* @__PURE__ */ s.jsx("span", { ...o, style: a, ...n, children: l }) : m.createElement(
@@ -304,11 +304,11 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
304
304
  },
305
305
  i
306
306
  );
307
- }, _e = {
307
+ }, Le = {
308
308
  type: "Link",
309
309
  label: "Link",
310
310
  category: "core",
311
- icon: F,
311
+ icon: U,
312
312
  group: "basic",
313
313
  ...u({
314
314
  properties: {
@@ -339,11 +339,11 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
339
339
  aiProps: ["content"],
340
340
  i18nProps: ["content"],
341
341
  canAcceptBlock: (e) => e !== "Link"
342
- }, T = (e, ...o) => ({
342
+ }, A = (e, ...o) => ({
343
343
  ...e,
344
344
  className: _(e.className, ...o)
345
- }), Be = (e) => {
346
- const { blockProps: o, children: t, styles: l, inBuilder: n, content: r, href: i } = e, { hrefType: a, autoplay: p, maxWidth: y, backdropColor: h, galleryName: b } = e, g = T(l, "cb-lightbox");
345
+ }), Ie = (e) => {
346
+ const { blockProps: o, children: t, styles: l, inBuilder: n, content: r, href: i } = e, { hrefType: a, autoplay: d, maxWidth: y, backdropColor: h, galleryName: b } = e, g = A(l, "cb-lightbox");
347
347
  if (!t && k(l == null ? void 0 : l.className) && k(r))
348
348
  return /* @__PURE__ */ s.jsx(w, { inBuilder: n });
349
349
  if (n)
@@ -353,7 +353,7 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
353
353
  dangerouslySetInnerHTML: { __html: r }
354
354
  });
355
355
  const x = {};
356
- return a !== "image" && (x["data-vbtype"] = a), p && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"), h && (x["data-overlay"] = h), b && (x["data-gall"] = b), t ? /* @__PURE__ */ s.jsx("a", { ...x, href: i || "#/", ...o, ...g, children: t }) : m.createElement("a", {
356
+ return a !== "image" && (x["data-vbtype"] = a), d && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"), h && (x["data-overlay"] = h), b && (x["data-gall"] = b), t ? /* @__PURE__ */ s.jsx("a", { ...x, href: i || "#/", ...o, ...g, children: t }) : m.createElement("a", {
357
357
  ...o,
358
358
  ...g,
359
359
  ...x,
@@ -364,7 +364,7 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
364
364
  type: "LightBoxLink",
365
365
  label: "Lightbox Link",
366
366
  category: "core",
367
- icon: N,
367
+ icon: E,
368
368
  group: "basic",
369
369
  ...u({
370
370
  properties: {
@@ -414,17 +414,17 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
414
414
  i18nProps: ["content"],
415
415
  aiProps: ["content"],
416
416
  canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
417
- }, Ie = (e) => {
417
+ }, je = (e) => {
418
418
  const { blockProps: o, children: t, listType: l, styles: n, tag: r, inBuilder: i } = e, a = _(f(n, "className", ""), l);
419
419
  return !t && k(n == null ? void 0 : n.className) ? /* @__PURE__ */ s.jsx(w, { inBuilder: i }) : m.createElement(
420
420
  r || (l === "list-decimal" ? "ol" : "ul"),
421
421
  { ...o, ...n, className: a },
422
422
  t
423
423
  );
424
- }, Le = {
424
+ }, Pe = {
425
425
  type: "List",
426
426
  label: "web_blocks.list",
427
- icon: G,
427
+ icon: V,
428
428
  category: "core",
429
429
  group: "basic",
430
430
  ...u({
@@ -467,17 +467,17 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
467
467
  content: "Item 3"
468
468
  }
469
469
  ]
470
- }, je = (e) => {
470
+ }, Se = (e) => {
471
471
  const { blockProps: o, content: t, styles: l, children: n, tag: r } = e;
472
472
  return n ? m.createElement(r || "li", { ...l, ...o }, n) : m.createElement(r || "li", {
473
473
  ...l,
474
474
  ...o,
475
475
  dangerouslySetInnerHTML: { __html: t }
476
476
  });
477
- }, Pe = {
477
+ }, Me = {
478
478
  type: "ListItem",
479
479
  label: "List Item",
480
- icon: U,
480
+ icon: O,
481
481
  category: "core",
482
482
  group: "basic",
483
483
  ...u({
@@ -497,25 +497,29 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
497
497
  aiProps: ["content"],
498
498
  canAcceptBlock: (e) => e !== "ListItem",
499
499
  canBeNested: (e) => e === "List"
500
- }, Se = (e) => {
501
- const { blockProps: o, icon: t, styles: l, width: n, inBuilder: r, height: i } = e, a = T(l, _(n ? `w-[${n}px]` : "", i ? `h-[${i}px]` : ""));
500
+ }, Ne = (e) => {
501
+ const { blockProps: o, icon: t, styles: l, width: n, inBuilder: r, height: i } = e, a = A(l, "");
502
502
  if (k(t))
503
503
  return /* @__PURE__ */ s.jsx(w, { inBuilder: r, className: "h-8 w-14" });
504
- const p = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
504
+ const d = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
505
505
  return m.createElement("span", {
506
506
  ...o,
507
507
  ...a,
508
- dangerouslySetInnerHTML: { __html: p }
508
+ style: {
509
+ width: n ? `${n}px` : "auto",
510
+ height: i ? `${i}px` : "auto"
511
+ },
512
+ dangerouslySetInnerHTML: { __html: d }
509
513
  });
510
- }, Me = {
514
+ }, Ee = {
511
515
  type: "Icon",
512
516
  label: "web_blocks.icon",
513
517
  category: "core",
514
- icon: V,
518
+ icon: W,
515
519
  group: "media",
516
520
  ...u({
517
521
  properties: {
518
- styles: c("text-black"),
522
+ styles: c(""),
519
523
  icon: {
520
524
  type: "string",
521
525
  title: "Icon",
@@ -534,8 +538,8 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
534
538
  }
535
539
  }
536
540
  })
537
- }, Ne = (e) => {
538
- const { blockProps: o, image: t, mobileImage: l, styles: n, alt: r, height: i, width: a, lazyLoading: p } = e;
541
+ }, $e = (e) => {
542
+ const { blockProps: o, image: t, mobileImage: l, styles: n, alt: r, height: i, width: a, lazyLoading: d } = e;
539
543
  return k(t) ? /* @__PURE__ */ s.jsx(w, { className: "h-36" }) : /* @__PURE__ */ s.jsxs("picture", { children: [
540
544
  l && /* @__PURE__ */ s.jsx("source", { srcSet: l, media: "(max-width: 480px)" }),
541
545
  /* @__PURE__ */ s.jsx(
@@ -545,17 +549,17 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
545
549
  ...n,
546
550
  src: t,
547
551
  alt: r,
548
- loading: p ? "lazy" : "eager",
552
+ loading: d ? "lazy" : "eager",
549
553
  width: a,
550
554
  height: i
551
555
  }
552
556
  )
553
557
  ] });
554
- }, Ee = {
558
+ }, De = {
555
559
  type: "Image",
556
560
  label: "Image",
557
561
  category: "core",
558
- icon: N,
562
+ icon: E,
559
563
  group: "media",
560
564
  ...u({
561
565
  properties: {
@@ -599,28 +603,28 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
599
603
  }),
600
604
  aiProps: ["alt"],
601
605
  i18nProps: ["alt"]
602
- }, L = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, j = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, P = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, $e = (e) => {
603
- if (L.test(e)) {
604
- const o = e.match(L);
606
+ }, P = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, S = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, M = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Te = (e) => {
607
+ if (P.test(e)) {
608
+ const o = e.match(P);
605
609
  return o ? `https://www.youtube.com/embed/${o[4]}` : e;
606
610
  }
607
- if (j.test(e)) {
608
- const o = e.match(j);
611
+ if (S.test(e)) {
612
+ const o = e.match(S);
609
613
  return o ? `https://player.vimeo.com/video/${o[3]}` : e;
610
614
  }
611
- if (P.test(e)) {
612
- const o = e.match(P);
615
+ if (M.test(e)) {
616
+ const o = e.match(M);
613
617
  return o ? `https://www.dailymotion.com/embed/video/${o[4]}` : e;
614
618
  }
615
619
  return null;
616
- }, Te = m.memo((e) => {
617
- const { blockProps: o, inBuilder: t, styles: l, url: n, controls: r } = e, i = f(r, "autoPlay", !1), a = f(r, "controls", !1), p = i || f(r, "muted", !0), y = f(r, "loop", !1);
620
+ }, Ae = m.memo((e) => {
621
+ const { blockProps: o, inBuilder: t, styles: l, url: n, controls: r } = e, i = f(r, "autoPlay", !1), a = f(r, "controls", !1), d = i || f(r, "muted", !0), y = f(r, "loop", !1);
618
622
  if (k(n)) return /* @__PURE__ */ s.jsx(w, { inBuilder: t, className: "h-36" });
619
- let h = $e(n), b = null;
623
+ let h = Te(n), b = null;
620
624
  if (h) {
621
625
  if (!k(h)) {
622
626
  const g = [];
623
- g.push(`autoplay=${i ? 1 : 0}`), g.push(`controls=${r ? 1 : 0}`), g.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), g.push(`loop=${y ? 1 : 0}`), h = `${h}?${g.join("&")}`;
627
+ g.push(`autoplay=${i ? 1 : 0}`), g.push(`controls=${r ? 1 : 0}`), g.push(`mute=${d ? 1 : 0}&muted=${d ? 1 : 0}`), g.push(`loop=${y ? 1 : 0}`), h = `${h}?${g.join("&")}`;
624
628
  }
625
629
  b = m.createElement("iframe", {
626
630
  ...o,
@@ -636,19 +640,19 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
636
640
  className: "absolute inset-0 w-full h-full",
637
641
  src: n,
638
642
  controls: a,
639
- muted: p,
643
+ muted: d,
640
644
  autoPlay: t ? !1 : i,
641
645
  loop: y
642
646
  });
643
- return /* @__PURE__ */ s.jsx("div", { ...ee(l, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
644
- t ? /* @__PURE__ */ s.jsx("div", { ...o, ...te(l, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
647
+ return /* @__PURE__ */ s.jsx("div", { ...oe(l, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
648
+ t ? /* @__PURE__ */ s.jsx("div", { ...o, ...le(l, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
645
649
  b
646
650
  ] }) });
647
- }), De = {
651
+ }), Re = {
648
652
  type: "Video",
649
653
  label: "Video",
650
654
  category: "core",
651
- icon: O,
655
+ icon: X,
652
656
  group: "media",
653
657
  ...u({
654
658
  properties: {
@@ -693,14 +697,14 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
693
697
  }
694
698
  }),
695
699
  i18nProps: ["url"]
696
- }, Ae = (e) => {
700
+ }, ze = (e) => {
697
701
  const { blockProps: o, styles: t } = e;
698
702
  return m.createElement("hr", { ...t, ...o });
699
- }, Re = {
703
+ }, He = {
700
704
  type: "Divider",
701
705
  label: "web_blocks.divider",
702
706
  category: "core",
703
- icon: W,
707
+ icon: Y,
704
708
  group: "basic",
705
709
  ...u({
706
710
  properties: {
@@ -708,17 +712,17 @@ const w = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ s.jsx("di
708
712
  }
709
713
  })
710
714
  };
711
- function ze(e) {
712
- return A({ 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);
715
+ function qe(e) {
716
+ return z({ 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);
713
717
  }
714
- const He = (e) => {
718
+ const Fe = (e) => {
715
719
  const { scripts: o, inBuilder: t, blockProps: l } = e;
716
720
  return t ? /* @__PURE__ */ s.jsx("div", { ...l, children: /* @__PURE__ */ s.jsx("div", { className: _("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: o } });
717
- }, qe = {
721
+ }, Ge = {
718
722
  type: "CustomScript",
719
723
  label: "web_blocks.custom_script",
720
724
  category: "core",
721
- icon: ze,
725
+ icon: qe,
722
726
  group: "advanced",
723
727
  ...u({
724
728
  properties: {
@@ -731,36 +735,71 @@ const He = (e) => {
731
735
  }
732
736
  }
733
737
  })
734
- }, Fe = (e) => null, Ge = {
735
- type: "Dark Mode",
738
+ }, Ue = (e) => /* @__PURE__ */ s.jsxs("div", { ...e.blockProps, ...e.styles, children: [
739
+ e.mode,
740
+ e.children
741
+ ] }), Ve = (e) => e.mode === "dark" ? null : /* @__PURE__ */ s.jsx("button", { ...e.blockProps, ...e.styles, children: e.children });
742
+ p(Ve, {
743
+ type: "DarkModeButton",
744
+ label: "Dark Mode Button",
745
+ category: "core",
746
+ icon: $,
747
+ group: "advanced",
748
+ hidden: !0,
749
+ ...u({
750
+ properties: {
751
+ mode: B("DarkModeSwitcher", "mode"),
752
+ styles: I("")
753
+ }
754
+ })
755
+ });
756
+ const Oe = (e) => e.mode === "light" ? null : /* @__PURE__ */ s.jsx("button", { ...e.blockProps, ...e.styles, children: e.children });
757
+ p(Oe, {
758
+ type: "LightModeButton",
759
+ label: "Light Mode Button",
760
+ category: "core",
761
+ icon: Z,
762
+ group: "advanced",
763
+ hidden: !0,
764
+ ...u({
765
+ properties: {
766
+ mode: B("DarkModeSwitcher", "mode"),
767
+ styles: I("")
768
+ }
769
+ })
770
+ });
771
+ const We = {
772
+ type: "DarkModeSwitcher",
736
773
  label: "web_blocks.dark_mode",
737
774
  category: "core",
738
- icon: X,
775
+ icon: $,
739
776
  group: "advanced",
777
+ wrapper: !0,
740
778
  ...u({
741
- properties: {}
779
+ properties: {
780
+ mode: {
781
+ title: "Mode",
782
+ type: "string",
783
+ enum: ["dark", "light"],
784
+ default: "light"
785
+ },
786
+ styles: I("")
787
+ }
742
788
  }),
743
789
  blocks: () => [
744
- { _id: "ultqCh", _type: "Span", tag: "span", styles: "#styles:,", _name: "Dark Mode Switcher" },
790
+ { _id: "ultqCh", _type: "DarkModeSwitcher", mode: "light", styles: "#styles:,", _name: "Dark Mode Theme" },
745
791
  {
746
792
  _id: "vroabi",
747
793
  _parent: "ultqCh",
748
- _type: "Button",
794
+ _type: "LightModeButton",
749
795
  // @ts-ignore
750
796
  styles_attrs: { type: "button", "x-on:click": "darkMode = 'dark'", "x-show": "darkMode === 'light'" },
751
797
  styles: "#styles:,bg-white dark:bg-black font-medium text-gray-800 rounded-full hover:bg-gray-200 focus:outline-none focus:bg-gray-200 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
752
798
  _name: "Dark Mode Btn"
753
799
  },
754
- {
755
- _id: "eweibk",
756
- _parent: "vroabi",
757
- _type: "Span",
758
- tag: "span",
759
- styles: "#styles:,group inline-flex shrink-0 justify-center items-center size-9"
760
- },
761
800
  {
762
801
  _id: "nltBrv",
763
- _parent: "eweibk",
802
+ _parent: "vroabi",
764
803
  _type: "Icon",
765
804
  styles: "#styles:, shrink-0 size-4",
766
805
  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'><path d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'></path></svg>"
@@ -768,28 +807,21 @@ const He = (e) => {
768
807
  {
769
808
  _id: "gesydi",
770
809
  _parent: "ultqCh",
771
- _type: "Button",
810
+ _type: "DarkModeButton",
772
811
  // @ts-ignore
773
812
  styles_attrs: { type: "button", "x-on:click": "darkMode = 'light'", "x-show": "darkMode === 'dark'" },
774
- styles: "#styles:,bg-white dark:bg-black font-medium text-gray-800 rounded-full hover:bg-gray-200 focus:outline-none focus:bg-gray-200 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
813
+ styles: "#styles:,bg-white hidden dark:bg-black font-medium text-gray-800 rounded-full hover:bg-gray-200 focus:outline-none focus:bg-gray-200 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
775
814
  _name: "Light Mode Btn"
776
815
  },
777
- {
778
- _id: "sgbhDo",
779
- _parent: "gesydi",
780
- _type: "Span",
781
- tag: "span",
782
- styles: "#styles:,group inline-flex shrink-0 justify-center items-center size-9"
783
- },
784
816
  {
785
817
  _id: "AdDwBC",
786
- _parent: "sgbhDo",
818
+ _parent: "gesydi",
787
819
  _type: "Icon",
788
820
  styles: "#styles:, shrink-0 size-4",
789
821
  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>"
790
822
  }
791
823
  ]
792
- }, Ue = (e) => {
824
+ }, Xe = (e) => {
793
825
  const { blockProps: o, inBuilder: t, children: l, globalBlock: n } = e;
794
826
  return t && !n ? /* @__PURE__ */ s.jsxs(
795
827
  "div",
@@ -805,10 +837,10 @@ const He = (e) => {
805
837
  ]
806
838
  }
807
839
  ) : m.createElement("div", { ...o }, l);
808
- }, Ve = {
840
+ }, Ye = {
809
841
  type: "GlobalBlock",
810
842
  label: "Global Block",
811
- icon: oe,
843
+ icon: ne,
812
844
  category: "core",
813
845
  group: "advanced",
814
846
  ...u({
@@ -823,13 +855,13 @@ const He = (e) => {
823
855
  }
824
856
  }
825
857
  })
826
- }, Oe = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ s.jsx("span", { ...e.blockProps, children: e.content }) : `${e.content}`, We = {
858
+ }, Ze = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ s.jsx("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Je = {
827
859
  type: "Text",
828
860
  label: "Text",
829
861
  hidden: !0,
830
862
  category: "core",
831
863
  group: "typography",
832
- icon: Y,
864
+ icon: J,
833
865
  ...u({
834
866
  properties: {
835
867
  styles: c("text-black"),
@@ -841,11 +873,11 @@ const He = (e) => {
841
873
  }),
842
874
  aiProps: ["content"],
843
875
  i18nProps: ["content"]
844
- }, Xe = (e) => {
876
+ }, Ke = (e) => {
845
877
  const { blockProps: o, backgroundImage: t, children: l, styles: n, tag: r } = e;
846
878
  let i = {};
847
879
  return t && (i = { backgroundImage: `url(${t})` }), m.createElement(r || "div", { ...o, ...n, style: i }, l);
848
- }, Ye = {
880
+ }, Qe = {
849
881
  type: "Body",
850
882
  label: "Body",
851
883
  category: "core",
@@ -890,10 +922,10 @@ const He = (e) => {
890
922
  canDelete: () => !1,
891
923
  canMove: () => !1,
892
924
  canDuplicate: () => !1
893
- }, Ze = (e) => {
925
+ }, et = (e) => {
894
926
  const { blockProps: o, styles: t } = e;
895
927
  return m.createElement("br", { ...o, ...t });
896
- }, Je = {
928
+ }, tt = {
897
929
  type: "LineBreak",
898
930
  label: "Line Break",
899
931
  category: "core",
@@ -908,10 +940,10 @@ const He = (e) => {
908
940
  canDelete: () => !1,
909
941
  canMove: () => !1,
910
942
  canDuplicate: () => !1
911
- }, Ke = (e) => {
943
+ }, ot = (e) => {
912
944
  const { children: o, blockProps: t, errorMessage: l, successMessage: n, action: r, styles: i, inBuilder: a } = e;
913
- let p = o;
914
- o || (p = /* @__PURE__ */ s.jsx(w, { inBuilder: a }));
945
+ let d = o;
946
+ o || (d = /* @__PURE__ */ s.jsx(w, { inBuilder: a }));
915
947
  const y = {
916
948
  "x-data": "{}",
917
949
  "x-on:submit.prevent": "post"
@@ -931,15 +963,15 @@ const He = (e) => {
931
963
  ...i,
932
964
  children: [
933
965
  /* @__PURE__ */ s.jsx("div", { ...h }),
934
- p
966
+ d
935
967
  ]
936
968
  }
937
969
  );
938
- }, Qe = {
970
+ }, lt = {
939
971
  type: "Form",
940
972
  label: "Form",
941
973
  category: "core",
942
- icon: le,
974
+ icon: se,
943
975
  group: "form",
944
976
  blocks: () => [
945
977
  { _type: "Form", _id: "form", styles: "#styles:p-1 space-y-2," },
@@ -976,8 +1008,8 @@ const He = (e) => {
976
1008
  i18nProps: ["errorMessage", "successMessage"],
977
1009
  aiProps: ["errorMessage", "successMessage"],
978
1010
  canAcceptBlock: () => !0
979
- }, et = (e) => {
980
- const { blockProps: o, inBuilder: t, label: l, styles: n, inputStyles: r, icon: i, iconSize: a, iconPos: p } = e, y = v(), h = {
1011
+ }, nt = (e) => {
1012
+ const { blockProps: o, inBuilder: t, label: l, styles: n, inputStyles: r, icon: i, iconSize: a, iconPos: d } = e, y = v(), h = {
981
1013
  "x-bind:disabled": "formLoading"
982
1014
  };
983
1015
  return /* @__PURE__ */ s.jsxs(
@@ -995,18 +1027,18 @@ const He = (e) => {
995
1027
  "div",
996
1028
  {
997
1029
  style: { width: a + "px" },
998
- className: p + " " + (p === "order-first" ? "mr-2" : "ml-2") || "",
1030
+ className: d + " " + (d === "order-first" ? "mr-2" : "ml-2") || "",
999
1031
  dangerouslySetInnerHTML: { __html: i }
1000
1032
  }
1001
1033
  )
1002
1034
  ]
1003
1035
  }
1004
1036
  );
1005
- }, tt = {
1037
+ }, st = {
1006
1038
  type: "FormButton",
1007
1039
  label: "Submit Button",
1008
1040
  category: "core",
1009
- icon: M,
1041
+ icon: N,
1010
1042
  group: "form",
1011
1043
  ...u({
1012
1044
  properties: {
@@ -1042,8 +1074,8 @@ const He = (e) => {
1042
1074
  }),
1043
1075
  i18nProps: ["label"],
1044
1076
  aiProps: ["label"]
1045
- }, ot = (e) => {
1046
- const { blockProps: o, fieldName: t, label: l, placeholder: n, styles: r, inputStyles: i, showLabel: a, required: p, inputType: y } = e, h = v();
1077
+ }, rt = (e) => {
1078
+ const { blockProps: o, fieldName: t, label: l, placeholder: n, styles: r, inputStyles: i, showLabel: a, required: d, inputType: y } = e, h = v();
1047
1079
  return a ? /* @__PURE__ */ s.jsxs("div", { ...r, ...o, children: [
1048
1080
  a && /* @__PURE__ */ s.jsx("label", { htmlFor: h, children: l }),
1049
1081
  /* @__PURE__ */ s.jsx(
@@ -1054,7 +1086,7 @@ const He = (e) => {
1054
1086
  id: h,
1055
1087
  type: y,
1056
1088
  placeholder: n,
1057
- required: p
1089
+ required: d
1058
1090
  }
1059
1091
  )
1060
1092
  ] }) : /* @__PURE__ */ s.jsx(
@@ -1067,14 +1099,14 @@ const He = (e) => {
1067
1099
  ...r,
1068
1100
  type: y,
1069
1101
  placeholder: n,
1070
- required: p
1102
+ required: d
1071
1103
  }
1072
1104
  );
1073
- }, lt = {
1105
+ }, it = {
1074
1106
  type: "Input",
1075
1107
  label: "web_blocks.input",
1076
1108
  category: "core",
1077
- icon: E,
1109
+ icon: D,
1078
1110
  group: "form",
1079
1111
  ...u({
1080
1112
  properties: {
@@ -1125,9 +1157,9 @@ const He = (e) => {
1125
1157
  }),
1126
1158
  aiProps: ["label", "placeholder"],
1127
1159
  i18nProps: ["label", "placeholder"]
1128
- }, nt = (e) => {
1129
- const { blockProps: o, fieldName: t, label: l, styles: n, inputStyles: r, required: i, checked: a, showLabel: p = !0 } = e, y = v();
1130
- return p ? /* @__PURE__ */ s.jsxs("div", { ...n, ...o, children: [
1160
+ }, at = (e) => {
1161
+ const { blockProps: o, fieldName: t, label: l, styles: n, inputStyles: r, required: i, checked: a, showLabel: d = !0 } = e, y = v();
1162
+ return d ? /* @__PURE__ */ s.jsxs("div", { ...n, ...o, children: [
1131
1163
  /* @__PURE__ */ s.jsx("input", { ...r, name: t, id: y, type: "radio", required: i, defaultChecked: a }),
1132
1164
  l && /* @__PURE__ */ s.jsx("label", { htmlFor: y, children: l })
1133
1165
  ] }) : /* @__PURE__ */ s.jsx(
@@ -1143,11 +1175,11 @@ const He = (e) => {
1143
1175
  name: t
1144
1176
  }
1145
1177
  );
1146
- }, st = {
1178
+ }, ct = {
1147
1179
  type: "Radio",
1148
1180
  label: "web_blocks.radio",
1149
1181
  category: "core",
1150
- icon: Z,
1182
+ icon: K,
1151
1183
  group: "form",
1152
1184
  ...u({
1153
1185
  properties: {
@@ -1177,23 +1209,23 @@ const He = (e) => {
1177
1209
  }),
1178
1210
  aiProps: ["label"],
1179
1211
  i18nProps: ["label"]
1180
- }, rt = (e) => {
1181
- const { blockProps: o, fieldName: t, label: l, placeholder: n, styles: r, inputStyles: i, required: a, showLabel: p, _multiple: y, options: h } = e, b = v();
1182
- return p ? /* @__PURE__ */ s.jsxs("div", { ...r, ...o, children: [
1183
- p && /* @__PURE__ */ s.jsx("label", { htmlFor: b, children: l }),
1212
+ }, dt = (e) => {
1213
+ const { blockProps: o, fieldName: t, label: l, placeholder: n, styles: r, inputStyles: i, required: a, showLabel: d, _multiple: y, options: h } = e, b = v();
1214
+ return d ? /* @__PURE__ */ s.jsxs("div", { ...r, ...o, children: [
1215
+ d && /* @__PURE__ */ s.jsx("label", { htmlFor: b, children: l }),
1184
1216
  /* @__PURE__ */ s.jsxs("select", { ...i, id: b, required: a, multiple: y, name: t, children: [
1185
1217
  /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: n }),
1186
- I(h, (g) => /* @__PURE__ */ s.jsx("option", { value: g == null ? void 0 : g.value, children: g == null ? void 0 : g.label }, g == null ? void 0 : g.value))
1218
+ j(h, (g) => /* @__PURE__ */ s.jsx("option", { value: g == null ? void 0 : g.value, children: g == null ? void 0 : g.label }, g == null ? void 0 : g.value))
1187
1219
  ] })
1188
1220
  ] }) : /* @__PURE__ */ s.jsxs("select", { id: b, ...r, ...o, required: a, multiple: y, name: t, children: [
1189
1221
  /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: n }),
1190
- I(h, (g) => /* @__PURE__ */ s.jsx("option", { value: g == null ? void 0 : g.value, children: g == null ? void 0 : g.label }, g == null ? void 0 : g.value))
1222
+ j(h, (g) => /* @__PURE__ */ s.jsx("option", { value: g == null ? void 0 : g.value, children: g == null ? void 0 : g.label }, g == null ? void 0 : g.value))
1191
1223
  ] });
1192
- }, it = {
1224
+ }, pt = {
1193
1225
  type: "Select",
1194
1226
  label: "web_blocks.select",
1195
1227
  category: "core",
1196
- icon: $,
1228
+ icon: T,
1197
1229
  group: "form",
1198
1230
  ...u({
1199
1231
  properties: {
@@ -1248,10 +1280,10 @@ const He = (e) => {
1248
1280
  }),
1249
1281
  aiProps: ["label", "placeholder"],
1250
1282
  i18nProps: ["label", "placeholder"]
1251
- }, at = (e) => {
1252
- const { blockProps: o, fieldName: t, label: l, placeholder: n, styles: r, inputStyles: i, _rows: a, showLabel: p } = e, y = v();
1253
- return p ? /* @__PURE__ */ s.jsxs("div", { ...r, ...o, children: [
1254
- p && /* @__PURE__ */ s.jsx("label", { htmlFor: y, children: l }),
1283
+ }, ut = (e) => {
1284
+ const { blockProps: o, fieldName: t, label: l, placeholder: n, styles: r, inputStyles: i, _rows: a, showLabel: d } = e, y = v();
1285
+ return d ? /* @__PURE__ */ s.jsxs("div", { ...r, ...o, children: [
1286
+ d && /* @__PURE__ */ s.jsx("label", { htmlFor: y, children: l }),
1255
1287
  /* @__PURE__ */ s.jsx("textarea", { name: t, ...i, id: y, placeholder: n, rows: a })
1256
1288
  ] }) : /* @__PURE__ */ s.jsx(
1257
1289
  "textarea",
@@ -1265,11 +1297,11 @@ const He = (e) => {
1265
1297
  rows: a
1266
1298
  }
1267
1299
  );
1268
- }, ct = {
1300
+ }, gt = {
1269
1301
  type: "TextArea",
1270
1302
  label: "web_blocks.textarea",
1271
1303
  category: "core",
1272
- icon: E,
1304
+ icon: D,
1273
1305
  group: "form",
1274
1306
  ...u({
1275
1307
  properties: {
@@ -1300,9 +1332,9 @@ const He = (e) => {
1300
1332
  }),
1301
1333
  aiProps: ["label", "placeholder"],
1302
1334
  i18nProps: ["label", "placeholder"]
1303
- }, pt = (e) => {
1304
- const { blockProps: o, fieldName: t, label: l, styles: n, inputStyles: r, required: i, checked: a, showLabel: p = !0 } = e, y = v();
1305
- return p ? /* @__PURE__ */ s.jsxs("div", { ...n, ...o, children: [
1335
+ }, yt = (e) => {
1336
+ const { blockProps: o, fieldName: t, label: l, styles: n, inputStyles: r, required: i, checked: a, showLabel: d = !0 } = e, y = v();
1337
+ return d ? /* @__PURE__ */ s.jsxs("div", { ...n, ...o, children: [
1306
1338
  /* @__PURE__ */ s.jsx(
1307
1339
  "input",
1308
1340
  {
@@ -1327,11 +1359,11 @@ const He = (e) => {
1327
1359
  name: t
1328
1360
  }
1329
1361
  );
1330
- }, dt = {
1362
+ }, mt = {
1331
1363
  type: "Checkbox",
1332
1364
  label: "web_blocks.checkbox",
1333
1365
  category: "core",
1334
- icon: J,
1366
+ icon: Q,
1335
1367
  group: "form",
1336
1368
  ...u({
1337
1369
  properties: {
@@ -1361,17 +1393,17 @@ const He = (e) => {
1361
1393
  }),
1362
1394
  aiProps: ["label"],
1363
1395
  i18nProps: ["label"]
1364
- }, ut = (e) => {
1396
+ }, ht = (e) => {
1365
1397
  const { blockProps: o, content: t, styles: l, children: n } = e, r = { ...l, ...o };
1366
1398
  return n ? m.createElement("label", r, n) : m.createElement("label", {
1367
1399
  ...r,
1368
1400
  dangerouslySetInnerHTML: { __html: t }
1369
1401
  });
1370
- }, gt = {
1402
+ }, ft = {
1371
1403
  type: "Label",
1372
1404
  label: "Label",
1373
1405
  category: "core",
1374
- icon: K,
1406
+ icon: ee,
1375
1407
  group: "form",
1376
1408
  ...u({
1377
1409
  properties: {
@@ -1386,10 +1418,10 @@ const He = (e) => {
1386
1418
  }, C = {
1387
1419
  wrapper: { "x-data": "{ open: false }" },
1388
1420
  button: { "x-on:click": "open = !open" },
1389
- menu: { "x-show": "open", "x-on:click.away": "open = false" }
1390
- }, yt = (e) => {
1421
+ menu: { "x-show": "open", "x-on:click.away": "open = false", "x-cloak": "", "x-transition": "" }
1422
+ }, bt = (e) => {
1391
1423
  const { blockProps: o, content: t, icon: l, iconWidth: n, iconHeight: r, styles: i, show: a } = e;
1392
- return /* @__PURE__ */ s.jsxs("button", { ...o, ...C.button, ...i, children: [
1424
+ return /* @__PURE__ */ s.jsxs("button", { ...o, ...i, ...C.button, children: [
1393
1425
  t,
1394
1426
  /* @__PURE__ */ s.jsx(
1395
1427
  "span",
@@ -1401,7 +1433,7 @@ const He = (e) => {
1401
1433
  )
1402
1434
  ] });
1403
1435
  };
1404
- d(yt, {
1436
+ p(bt, {
1405
1437
  type: "DropdownButton",
1406
1438
  label: "Dropdown Button",
1407
1439
  group: "advanced",
@@ -1411,7 +1443,7 @@ d(yt, {
1411
1443
  canDelete: () => !1,
1412
1444
  ...u({
1413
1445
  properties: {
1414
- show: S("Dropdown", "showDropdown"),
1446
+ show: B("Dropdown", "showDropdown"),
1415
1447
  content: { type: "string", title: "Title", default: "Menu Item" },
1416
1448
  icon: { type: "string", title: "Icon", default: "", ui: { "ui:widget": "icon" } },
1417
1449
  iconWidth: { type: "string", title: "Icon Width", default: "16px" },
@@ -1420,11 +1452,11 @@ d(yt, {
1420
1452
  }
1421
1453
  })
1422
1454
  });
1423
- const mt = (e) => {
1455
+ const kt = (e) => {
1424
1456
  const { blockProps: o, children: t, styles: l, show: n, inBuilder: r } = e;
1425
1457
  return r && !n ? null : /* @__PURE__ */ s.jsx("div", { ...o, ...C.menu, ...l, children: t });
1426
1458
  };
1427
- d(mt, {
1459
+ p(kt, {
1428
1460
  type: "DropdownContent",
1429
1461
  label: "Dropdown Content",
1430
1462
  hidden: !0,
@@ -1433,19 +1465,19 @@ d(mt, {
1433
1465
  canAcceptBlock: () => !0,
1434
1466
  ...u({
1435
1467
  properties: {
1436
- show: S("Dropdown", "showDropdown"),
1468
+ show: B("Dropdown", "showDropdown"),
1437
1469
  styles: c("absolute left-0 p-2 w-80 mt-2 bg-white rounded-lg shadow-lg z-50")
1438
1470
  }
1439
1471
  })
1440
1472
  });
1441
- const ht = (e) => {
1473
+ const xt = (e) => {
1442
1474
  const { blockProps: o, children: t, styles: l } = e;
1443
1475
  return /* @__PURE__ */ s.jsx("div", { ...o, ...l, ...C.wrapper, children: t });
1444
- }, ft = {
1476
+ }, wt = {
1445
1477
  type: "Dropdown",
1446
1478
  label: "Dropdown",
1447
1479
  group: "basic",
1448
- icon: $,
1480
+ icon: T,
1449
1481
  blocks: () => [
1450
1482
  { _type: "Dropdown", _id: "dropdown" },
1451
1483
  {
@@ -1475,7 +1507,7 @@ const ht = (e) => {
1475
1507
  wrapper: !0,
1476
1508
  ...u({
1477
1509
  properties: {
1478
- showDropdown: D({
1510
+ showDropdown: R({
1479
1511
  type: "boolean",
1480
1512
  title: "Show Dropdown",
1481
1513
  default: !1
@@ -1483,7 +1515,7 @@ const ht = (e) => {
1483
1515
  styles: c("relative w-max")
1484
1516
  }
1485
1517
  })
1486
- }, B = {
1518
+ }, L = {
1487
1519
  SMALL: {
1488
1520
  1: "col-span-1",
1489
1521
  2: "col-span-2",
@@ -1526,20 +1558,20 @@ const ht = (e) => {
1526
1558
  11: "lg:col-span-11",
1527
1559
  12: "lg:col-span-12"
1528
1560
  }
1529
- }, bt = (e) => {
1530
- const { blockProps: o, children: t, styles: l, colSpan: n, tabletColSpan: r, desktopColSpan: i } = e, p = { className: [
1561
+ }, vt = (e) => {
1562
+ const { blockProps: o, children: t, styles: l, colSpan: n, tabletColSpan: r, desktopColSpan: i } = e, d = { className: [
1531
1563
  f(l, "className", ""),
1532
- f(B, ["SMALL", isNaN(n) || !n ? 6 : n], ""),
1533
- r ? f(B, ["MEDIUM", r || n], "") : "",
1534
- i ? f(B, ["LARGE", r || n], "") : ""
1564
+ f(L, ["SMALL", isNaN(n) || !n ? 6 : n], ""),
1565
+ r ? f(L, ["MEDIUM", r || n], "") : "",
1566
+ i ? f(L, ["LARGE", r || n], "") : ""
1535
1567
  ].join(" ") };
1536
- return /* @__PURE__ */ s.jsx("div", { ...o, ...l, ...p, children: t || /* @__PURE__ */ s.jsx("div", { className: "min-h-12 h-full w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
1537
- }, kt = {
1568
+ return /* @__PURE__ */ s.jsx("div", { ...o, ...l, ...d, children: t || /* @__PURE__ */ s.jsx("div", { className: "min-h-12 h-full w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
1569
+ }, Bt = {
1538
1570
  type: "Column",
1539
1571
  label: "Column",
1540
1572
  group: "basic",
1541
1573
  category: "core",
1542
- icon: ne,
1574
+ icon: re,
1543
1575
  wrapper: !0,
1544
1576
  canDelete: () => !0,
1545
1577
  canAcceptBlock: () => !0,
@@ -1569,14 +1601,14 @@ const ht = (e) => {
1569
1601
  }
1570
1602
  }
1571
1603
  })
1572
- }, xt = (e) => {
1604
+ }, _t = (e) => {
1573
1605
  const { blockProps: o, children: t, styles: l, gutter: n } = e, i = { className: [f(l, "className", ""), " grid grid-cols-12"].join() };
1574
1606
  return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${n}px` : i.style = { gap: `${n}px` }, /* @__PURE__ */ s.jsx("div", { ...o, ...l, ...i, children: t });
1575
- }, wt = {
1607
+ }, Lt = {
1576
1608
  type: "Row",
1577
1609
  label: "Row",
1578
1610
  group: "basic",
1579
- icon: se,
1611
+ icon: ie,
1580
1612
  blocks: () => [
1581
1613
  { _type: "Row", _id: "row", styles: "#styles:,p-1" },
1582
1614
  { _type: "Column", id: "column", _parent: "row", styles: "#styles:," },
@@ -1602,9 +1634,9 @@ const ht = (e) => {
1602
1634
  }
1603
1635
  }
1604
1636
  })
1605
- }, jt = () => {
1606
- d(re, ie), d(ue, ge), d(ae, ce), d(ye, me), d(he, fe), d(be, ke), d(xe, we), d(ve, _e), d(Be, Ce), d(Ie, Le), d(je, Pe), d(Se, Me), d(Ne, Ee), d(Te, De), d(pe, de), d(He, qe), d(Oe, We), d(Ke, Qe), d(et, tt), d(ot, lt), d(pt, dt), d(nt, st), d(rt, it), d(at, ct), d(ut, gt), d(Ze, Je), d(Xe, Ye), d(Ae, Re), d(Fe, Ge), d(Ue, Ve), d(ht, ft), d(xt, wt), d(bt, kt);
1637
+ }, Nt = () => {
1638
+ p(ae, ce), p(ye, me), p(de, pe), p(he, fe), p(be, ke), p(xe, we), p(ve, Be), p(_e, Le), p(Ie, Ce), p(je, Pe), p(Se, Me), p(Ne, Ee), p($e, De), p(Ae, Re), p(ue, ge), p(Fe, Ge), p(Ze, Je), p(ot, lt), p(nt, st), p(rt, it), p(yt, mt), p(at, ct), p(dt, pt), p(ut, gt), p(ht, ft), p(et, tt), p(Ke, Qe), p(ze, He), p(Ue, We), p(Xe, Ye), p(xt, wt), p(_t, Lt), p(vt, Bt);
1607
1639
  };
1608
1640
  export {
1609
- jt as loadWebBlocks
1641
+ Nt as loadWebBlocks
1610
1642
  };