@chaibuilder/sdk 4.0.0-beta.8 → 4.0.0-beta.9

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 (139) hide show
  1. package/README.md +4 -5
  2. package/dist/{2SSKDMRQ-DewwiCoQ.js → 2SSKDMRQ-CdFBQR2o.js} +2 -2
  3. package/dist/{2SSKDMRQ-DHv4u_0i.cjs → 2SSKDMRQ-CuQ42ST6.cjs} +1 -1
  4. package/dist/{AP7HFJJL-cz754qhG.cjs → AP7HFJJL-DcnEb4BE.cjs} +1 -1
  5. package/dist/{AP7HFJJL-ComnZw7J.js → AP7HFJJL-bDlWX5Yx.js} +1 -1
  6. package/dist/{IconPicker-2H9IGKMS.js → IconPicker-CNwplOGy.js} +1 -1
  7. package/dist/{IconPicker-U0Z2dWeR.cjs → IconPicker-FpyYsxOf.cjs} +1 -1
  8. package/dist/STRINGS-BExFecZW.js +8 -0
  9. package/dist/STRINGS-FNnfjF5H.cjs +1 -0
  10. package/dist/{WDYDFRGG-BfRX3M58.cjs → WDYDFRGG-BxLmjulP.cjs} +1 -1
  11. package/dist/{WDYDFRGG-vy7nMYD4.js → WDYDFRGG-CWq7H6Qk.js} +2 -2
  12. package/dist/{actions-registery-CtQSSexG.cjs → actions-registery-BRgseJas.cjs} +16 -16
  13. package/dist/{actions-registery-DqrFhSMp.js → actions-registery-DRV8xywr.js} +180 -181
  14. package/dist/actions.cjs +1 -1
  15. package/dist/actions.d.ts +112 -51
  16. package/dist/actions.js +2 -2
  17. package/dist/{active-in-another-tab-5hn17Jeq.js → active-in-another-tab-C392ZWQc.js} +2 -2
  18. package/dist/{active-in-another-tab-ijahI5qu.cjs → active-in-another-tab-DEWOFgY5.cjs} +1 -1
  19. package/dist/{add-new-language-page-DmOyPy0u.js → add-new-language-page-BL2F_Cu7.js} +3 -3
  20. package/dist/{add-new-language-page-vmNKNx-e.cjs → add-new-language-page-DBWd0wDY.cjs} +1 -1
  21. package/dist/{add-new-page-XDuCkOyb.cjs → add-new-page-DYrQeKCi.cjs} +1 -1
  22. package/dist/{add-new-page-NHScAQn8.js → add-new-page-QVlyJhn9.js} +2 -2
  23. package/dist/{ai-panel-content-CHJ0JcQI.js → ai-panel-content-CCOluPtK.js} +3 -3
  24. package/dist/{ai-panel-content-BDqW16AW.cjs → ai-panel-content-DCZRBa6s.cjs} +1 -1
  25. package/dist/{ai-panel-default-lang-HeYWpbMu.cjs → ai-panel-default-lang-C3t0elrO.cjs} +2 -2
  26. package/dist/{ai-panel-default-lang-BIomgsN0.js → ai-panel-default-lang-Crz7QAxl.js} +4 -4
  27. package/dist/{ai-panel-other-lang-BMelEs3p.cjs → ai-panel-other-lang-BRkr4Te3.cjs} +1 -1
  28. package/dist/{ai-panel-other-lang-CbAgG-qX.js → ai-panel-other-lang-DIF8PYLh.js} +4 -4
  29. package/dist/{ai-prompt-input-BH8LOVT4.js → ai-prompt-input-D4dqy8L2.js} +1 -1
  30. package/dist/{ai-prompt-input-C_GG6nwq.cjs → ai-prompt-input-Ybgvrvd6.cjs} +1 -1
  31. package/dist/{ai-translation-prompt-CkHaFv5I.cjs → ai-translation-prompt-Ck12Bfl6.cjs} +1 -1
  32. package/dist/{ai-translation-prompt-DxsNw8YR.js → ai-translation-prompt-eZ4Sllva.js} +1 -1
  33. package/dist/{apply-binding-BvWfJCSZ.js → apply-binding-CLU6Xp4K.js} +77 -81
  34. package/dist/apply-binding-NvZX_rJe.cjs +1 -0
  35. package/dist/{code-editor-CGBAc-A6.js → code-editor-D45h29W1.js} +1 -1
  36. package/dist/{code-editor-GV8ibQ4h.cjs → code-editor-DH8eU4WL.cjs} +1 -1
  37. package/dist/{continue-editing-in-this-client-Da8ab_9d.js → continue-editing-in-this-client-BRrIvSrl.js} +2 -2
  38. package/dist/{continue-editing-in-this-client-DKHP0pq8.cjs → continue-editing-in-this-client-DgZ9Q18G.cjs} +1 -1
  39. package/dist/core-8lkXy4lC.cjs +1 -0
  40. package/dist/core-BvsZwF26.js +52 -0
  41. package/dist/core.cjs +1 -1
  42. package/dist/core.d.ts +147 -87
  43. package/dist/core.js +2 -2
  44. package/dist/{css-import-modal-CcZVLsF9.js → css-import-modal-BhLPzQH8.js} +1 -1
  45. package/dist/{css-import-modal-B4j26_cO.cjs → css-import-modal-C2-oVwFv.cjs} +1 -1
  46. package/dist/{delete-design-token-DzINIVtO.js → delete-design-token-D4Q5-Xql.js} +1 -1
  47. package/dist/{delete-design-token-3-WwqXMO.cjs → delete-design-token-DJSQluQ6.cjs} +1 -1
  48. package/dist/{delete-page-B7ODELqM.cjs → delete-page-BxbsKhY5.cjs} +1 -1
  49. package/dist/{delete-page-DwZDMwfI.js → delete-page-xHdZT-7c.js} +2 -2
  50. package/dist/{design-token-usage-DQf180Lg.js → design-token-usage-7wgmVSWI.js} +1 -1
  51. package/dist/{design-token-usage-Dy08kcIc.cjs → design-token-usage-KZ4pilLm.cjs} +1 -1
  52. package/dist/{digital-asset-manager-CDy9kHZO.js → digital-asset-manager-BmbVU7fX.js} +3 -3
  53. package/dist/{digital-asset-manager-C7subULa.cjs → digital-asset-manager-a1fqrQVH.cjs} +1 -1
  54. package/dist/{duplicate-page-DTnSztlr.js → duplicate-page-5uIno9Yh.js} +3 -3
  55. package/dist/{duplicate-page-CWQ9aMd9.cjs → duplicate-page-BBTxn_o1.cjs} +1 -1
  56. package/dist/{dynamic-page-selector-DJuxLcsM.cjs → dynamic-page-selector-C1ef0i2I.cjs} +1 -1
  57. package/dist/{dynamic-page-selector-DYW3ov_u.js → dynamic-page-selector-rhvhg7ol.js} +2 -2
  58. package/dist/{image-editor-DLeSST0K.js → image-editor-BXYZDa0s.js} +1 -1
  59. package/dist/{image-editor-C4H3AkZK.cjs → image-editor-rqUgAO8V.cjs} +1 -1
  60. package/dist/{index-D5d4QDq7.js → index-Be9lAaD7.js} +420 -422
  61. package/dist/index-BhqugjzS.cjs +160 -0
  62. package/dist/index-CNEEEgTV.cjs +5 -0
  63. package/dist/{index-BK0xWO1z.js → index-mjuSGlPU.js} +440 -447
  64. package/dist/{json-diff-viewer-g6SY62bl.cjs → json-diff-viewer-C9qmLiaq.cjs} +1 -1
  65. package/dist/{json-diff-viewer-BYHieVod.js → json-diff-viewer-aVwY7_hZ.js} +2 -2
  66. package/dist/{lang-panel-BG1GMn-1.js → lang-panel-BTWk23Mw.js} +3 -3
  67. package/dist/{lang-panel-Dm1eOO2J.cjs → lang-panel-Bo1ZWYfu.cjs} +1 -1
  68. package/dist/{manage-design-tokens-BdWQUHhw.js → manage-design-tokens-id8bylgO.js} +3 -3
  69. package/dist/manage-design-tokens-lUMCgjdS.cjs +1 -0
  70. package/dist/{mark-as-template-DUFnfVM3.cjs → mark-as-template-BYXBDXMv.cjs} +1 -1
  71. package/dist/{mark-as-template-D2XxagVO.js → mark-as-template-hv3WD852.js} +2 -2
  72. package/dist/{nested-path-selector-content-Wd6-Eql0.js → nested-path-selector-content-B8z90MFF.js} +1 -1
  73. package/dist/{nested-path-selector-content-CQOx2L9C.cjs → nested-path-selector-content-DgFFXcTD.cjs} +1 -1
  74. package/dist/{no-language-page-content-C11uF6hs.cjs → no-language-page-content-6Kk8UjFX.cjs} +1 -1
  75. package/dist/{no-language-page-content-BOv6TZIk.js → no-language-page-content-DMACzysm.js} +2 -2
  76. package/dist/{no-language-page-dialog-DIXyKRJq.js → no-language-page-dialog-D4n_XYUq.js} +2 -2
  77. package/dist/{no-language-page-dialog-CY5XhXsC.cjs → no-language-page-dialog-mBH-fthh.cjs} +1 -1
  78. package/dist/{page-creator-zSUFF4eT.cjs → page-creator-CGglYnYg.cjs} +1 -1
  79. package/dist/{page-creator-WX9lMrJY.js → page-creator-CgsOF0Eg.js} +3 -3
  80. package/dist/{page-lock-D9miLZjm.js → page-lock-CUCEBnJb.js} +2 -2
  81. package/dist/{page-lock-DGhR_url.cjs → page-lock-Hsi61Mk5.cjs} +1 -1
  82. package/dist/{page-locked-dialog-DTLnbfuP.cjs → page-locked-dialog-DSxbAMpt.cjs} +1 -1
  83. package/dist/{page-locked-dialog-CNCUCcvH.js → page-locked-dialog-bHvbFllT.js} +2 -2
  84. package/dist/{page-manager-new-Dd2c-Q_O.cjs → page-manager-new-CBfFl5rL.cjs} +1 -1
  85. package/dist/{page-manager-new-BFFOLh-l.js → page-manager-new-Cifc526h.js} +7 -7
  86. package/dist/{page-manager-search-and-filter-C1IWF_4d.js → page-manager-search-and-filter-CLJss6pV.js} +2 -2
  87. package/dist/{page-manager-search-and-filter-BKdQUJ2W.cjs → page-manager-search-and-filter-mEKl-UKh.cjs} +1 -1
  88. package/dist/{page-revisions-content-D0cflnj1.cjs → page-revisions-content-C95dQJyx.cjs} +1 -1
  89. package/dist/{page-revisions-content-DHapiLck.js → page-revisions-content-DvL4ya9g.js} +3 -3
  90. package/dist/pages.cjs +1 -1
  91. package/dist/pages.d.ts +146 -93
  92. package/dist/pages.js +1 -1
  93. package/dist/{publish-pages-content-BqLcnKry.cjs → publish-pages-content-B-6vSkql.cjs} +1 -1
  94. package/dist/{publish-pages-content-Bd2zJHtK.js → publish-pages-content-B8-IZW_U.js} +3 -3
  95. package/dist/render.cjs +1 -1
  96. package/dist/render.d.ts +12 -14
  97. package/dist/render.js +3 -3
  98. package/dist/{rte-widget-modal-RS8PMKOn.js → rte-widget-modal-1SbY5bcQ.js} +1 -1
  99. package/dist/{rte-widget-modal-DiB5BjH1.cjs → rte-widget-modal-CyKwtbOG.cjs} +1 -1
  100. package/dist/runtime.cjs +1 -1
  101. package/dist/runtime.d.ts +91 -77
  102. package/dist/runtime.js +57 -56
  103. package/dist/{save-to-lib--6ZXHEbC.js → save-to-lib-BKcBfjfi.js} +2 -2
  104. package/dist/{save-to-lib-BXJvaC1N.cjs → save-to-lib-BmPh_Vns.cjs} +1 -1
  105. package/dist/{selected-block-display-CUnCqXQw.js → selected-block-display-B3hHlcLA.js} +2 -2
  106. package/dist/{selected-block-display-BfpJda4h.cjs → selected-block-display-BCvTNcp2.cjs} +1 -1
  107. package/dist/{seo-panel-Bs-FcY1A.js → seo-panel-D3EyOYij.js} +2 -2
  108. package/dist/{seo-panel-CQITMfZ6.cjs → seo-panel-DVClgzX9.cjs} +1 -1
  109. package/dist/{shared-json-ld-DDXXi-Mj.cjs → shared-json-ld-BRgJTv0m.cjs} +1 -1
  110. package/dist/{shared-json-ld-7EujD341.js → shared-json-ld-DSPadwbY.js} +2 -2
  111. package/dist/{slug-input-CsVJAr7r.cjs → slug-input-B39SPBdP.cjs} +1 -1
  112. package/dist/{slug-input-DoEIq5rs.js → slug-input-C3UrwSkt.js} +1 -1
  113. package/dist/supabase-actions.cjs +1 -1
  114. package/dist/supabase-actions.js +1 -1
  115. package/dist/{take-over-request-C14kJ356.js → take-over-request-DfAlPvpE.js} +2 -2
  116. package/dist/{take-over-request-D5Oo3MPo.cjs → take-over-request-Tq9-gOCV.cjs} +1 -1
  117. package/dist/{theme-panel-footer-Dvknelm8.js → theme-panel-footer-DIy4baYU.js} +2 -2
  118. package/dist/{theme-panel-footer-Eeibz2JA.cjs → theme-panel-footer-DQzjVBBP.cjs} +1 -1
  119. package/dist/{translation-warning-modal-YlzP2XoO.js → translation-warning-modal-BHwLZZOw.js} +1 -1
  120. package/dist/{translation-warning-modal-CPzdHzqq.cjs → translation-warning-modal-Ckwt5Skc.cjs} +1 -1
  121. package/dist/types.cjs +1 -0
  122. package/dist/types.d.ts +598 -0
  123. package/dist/types.js +1 -0
  124. package/dist/{unmark-as-template-BGDwuCnv.cjs → unmark-as-template-BKA-sNZr.cjs} +1 -1
  125. package/dist/{unmark-as-template-CPJvQk7L.js → unmark-as-template-CbgifSbI.js} +2 -2
  126. package/dist/{unpublish-page-BMowW5wT.cjs → unpublish-page-BqzvOD76.cjs} +1 -1
  127. package/dist/{unpublish-page-DlFHLlmI.js → unpublish-page-DXQpAkvc.js} +2 -2
  128. package/dist/utils.d.ts +5 -5
  129. package/dist/web-blocks.cjs +1 -1
  130. package/dist/web-blocks.js +237 -237
  131. package/dist/{web-preview-BUnv3jIc.js → web-preview-DH7Yv-jg.js} +1 -1
  132. package/dist/{web-preview-D8GQHCjs.cjs → web-preview-DShy13AM.cjs} +1 -1
  133. package/package.json +6 -1
  134. package/dist/apply-binding-IsUf6UWJ.cjs +0 -1
  135. package/dist/core-Dr7QYemB.js +0 -56
  136. package/dist/core-Y0lXLwkq.cjs +0 -1
  137. package/dist/index-BRJCj7c_.cjs +0 -5
  138. package/dist/index-Bm8iS2OH.cjs +0 -160
  139. package/dist/manage-design-tokens-XWs_B6jo.cjs +0 -1
@@ -1,26 +1,26 @@
1
- import { isEmpty as w, get as k, map as R, isNull as U, omit as M, pick as H } from "lodash-es";
2
- import { jsx as i, jsxs as h, Fragment as N } from "react/jsx-runtime";
3
- import { registerChaiBlockSchema as p, StylesProp as u, stylesProp as L } from "./runtime.js";
4
- import { c as _, g as I } from "./common-functions-D2lMFR6K.js";
1
+ import { isEmpty as w, get as k, map as T, isNull as F, omit as E, pick as M } from "lodash-es";
2
+ import { jsx as i, jsxs as h, Fragment as S } from "react/jsx-runtime";
3
+ import { registerChaiBlockSchema as u, stylesProp as d } from "./runtime.js";
4
+ import { c as N, g as I } from "./common-functions-D2lMFR6K.js";
5
5
  import * as b from "react";
6
6
  import { createElement as x } from "react";
7
- import { ButtonIcon as $, CodeIcon as j, FrameIcon as D, SketchLogoIcon as Z, RowsIcon as V, LayoutIcon as q, DividerHorizontalIcon as G, CheckboxIcon as W, FileTextIcon as O, InputIcon as z, LetterCaseToggleIcon as Y, RadiobuttonIcon as Q, DropdownMenuIcon as J, HeadingIcon as X, TableIcon as K, BorderTopIcon as ee, BorderAllIcon as te, ViewHorizontalIcon as oe, DragHandleHorizontalIcon as le, ImageIcon as re, Link1Icon as ne, ColumnsIcon as ie, TextIcon as ae, CursorTextIcon as se, SpaceBetweenVerticallyIcon as ce, VideoIcon as de, ChevronLeftIcon as pe, ChevronRightIcon as ue, LoopIcon as F } from "@radix-ui/react-icons";
8
- import { r as d, e as me, c as ye } from "./core-Dr7QYemB.js";
9
- const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: _("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("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, ge = (e) => {
7
+ import { ButtonIcon as H, CodeIcon as $, FrameIcon as j, SketchLogoIcon as U, RowsIcon as D, LayoutIcon as Z, DividerHorizontalIcon as q, CheckboxIcon as G, FileTextIcon as W, InputIcon as V, LetterCaseToggleIcon as O, RadiobuttonIcon as Y, DropdownMenuIcon as Q, HeadingIcon as J, TableIcon as X, BorderTopIcon as K, BorderAllIcon as ee, ViewHorizontalIcon as te, DragHandleHorizontalIcon as oe, ImageIcon as le, Link1Icon as re, ColumnsIcon as ne, TextIcon as ie, CursorTextIcon as ae, SpaceBetweenVerticallyIcon as se, VideoIcon as ce, ChevronLeftIcon as de, ChevronRightIcon as pe, LoopIcon as z } from "@radix-ui/react-icons";
8
+ import { r as p, e as ue, c as me } from "./core-BvsZwF26.js";
9
+ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div", { className: N("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("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, ye = (e) => {
10
10
  const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
11
11
  let s = r;
12
12
  r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
13
13
  let c = {};
14
14
  return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...o, ...a, style: c }, s);
15
- }, be = {
15
+ }, ge = {
16
16
  type: "Box",
17
17
  description: "Similar to a div or section elements in HTML",
18
18
  label: "Box",
19
19
  category: "core",
20
20
  group: "basic",
21
- ...p({
21
+ ...u({
22
22
  properties: {
23
- styles: u(""),
23
+ styles: d(""),
24
24
  tag: {
25
25
  type: "string",
26
26
  default: "div",
@@ -54,8 +54,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
54
54
  }
55
55
  }),
56
56
  canAcceptBlock: () => !0
57
- }, fe = (e) => {
58
- const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: y } = e, g = l, v = a || /* @__PURE__ */ h(N, { children: [
57
+ }, be = (e) => {
58
+ const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children: a, iconPos: s, link: c, inBuilder: y } = e, g = l, v = a || /* @__PURE__ */ h(S, { children: [
59
59
  r && /* @__PURE__ */ i("span", { children: r }),
60
60
  g && /* @__PURE__ */ i(
61
61
  "div",
@@ -76,16 +76,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
76
76
  v
77
77
  );
78
78
  return w(k(c, "href")) ? f : y ? /* @__PURE__ */ i("span", { children: f }) : /* @__PURE__ */ i("a", { "aria-label": r, href: k(c, "href") || "/", target: k(c, "target", "_self"), children: f });
79
- }, he = {
79
+ }, fe = {
80
80
  type: "Button",
81
81
  description: "similar to a button element in HTML",
82
82
  label: "Button",
83
83
  category: "core",
84
- icon: $,
84
+ icon: H,
85
85
  group: "basic",
86
- ...p({
86
+ ...u({
87
87
  properties: {
88
- styles: u("text-primary-foreground bg-primary px-4 py-2 rounded-lg flex items-center"),
88
+ styles: d("text-primary-foreground bg-primary px-4 py-2 rounded-lg flex items-center"),
89
89
  content: {
90
90
  type: "string",
91
91
  title: "Button label",
@@ -132,7 +132,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
132
132
  }),
133
133
  i18nProps: ["content", "link"],
134
134
  aiProps: ["content"]
135
- }, ke = (e) => {
135
+ }, he = (e) => {
136
136
  const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
137
137
  return r ? /* @__PURE__ */ h("div", { className: "relative", ...o, children: [
138
138
  r ? /* @__PURE__ */ i("div", { ...t, className: "absolute z-20 h-full w-full" }) : null,
@@ -145,16 +145,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
145
145
  ...t,
146
146
  dangerouslySetInnerHTML: { __html: l }
147
147
  });
148
- }, xe = {
148
+ }, ke = {
149
149
  type: "CustomHTML",
150
150
  description: "similar to a div or section elements in HTML",
151
151
  label: "Custom HTML",
152
152
  category: "core",
153
- icon: j,
153
+ icon: $,
154
154
  group: "advanced",
155
- ...p({
155
+ ...u({
156
156
  properties: {
157
- styles: u(""),
157
+ styles: d(""),
158
158
  htmlCode: {
159
159
  type: "string",
160
160
  default: "<div><p>Enter your HTML code here...</p></div>",
@@ -163,18 +163,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
163
163
  }
164
164
  }),
165
165
  i18nProps: ["htmlCode"]
166
- }, we = (e) => {
166
+ }, xe = (e) => {
167
167
  const { scripts: o, inBuilder: t, blockProps: l } = e;
168
- return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: _("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("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__ */ i("div", { dangerouslySetInnerHTML: { __html: o } });
169
- }, ve = {
168
+ return t ? /* @__PURE__ */ i("div", { ...l, children: /* @__PURE__ */ i("div", { className: N("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("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__ */ i("div", { dangerouslySetInnerHTML: { __html: o } });
169
+ }, we = {
170
170
  type: "CustomScript",
171
171
  description: "similar to a script element in HTML",
172
172
  label: "Custom Script",
173
173
  category: "core",
174
- icon: j,
174
+ icon: $,
175
175
  hidden: !0,
176
176
  group: "advanced",
177
- ...p({
177
+ ...u({
178
178
  properties: {
179
179
  scripts: {
180
180
  type: "string",
@@ -185,7 +185,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
185
185
  }
186
186
  }
187
187
  })
188
- }, Ce = (e) => {
188
+ }, ve = (e) => {
189
189
  const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
190
190
  return t && !r ? /* @__PURE__ */ h(
191
191
  "div",
@@ -201,15 +201,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
201
201
  ]
202
202
  }
203
203
  ) : b.createElement("span", { ...o }, l);
204
- }, Ie = {
204
+ }, Ce = {
205
205
  type: "GlobalBlock",
206
206
  description: "A global block component",
207
207
  label: "Global Block",
208
- icon: D,
208
+ icon: j,
209
209
  category: "core",
210
210
  group: "basic",
211
211
  hidden: !0,
212
- ...p({
212
+ ...u({
213
213
  properties: {
214
214
  globalBlock: {
215
215
  type: "string",
@@ -219,11 +219,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
219
219
  }
220
220
  }
221
221
  })
222
- }, T = (e, ...o) => ({
222
+ }, _ = (e, ...o) => ({
223
223
  ...e,
224
- className: _(e.className, ...o)
225
- }), Pe = (e) => {
226
- const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = T(l, "");
224
+ className: N(e.className, ...o)
225
+ }), Ie = (e) => {
226
+ const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = _(l, "");
227
227
  if (w(t))
228
228
  return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
229
229
  const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
@@ -236,16 +236,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
236
236
  },
237
237
  dangerouslySetInnerHTML: { __html: c }
238
238
  });
239
- }, Le = {
239
+ }, Pe = {
240
240
  type: "Icon",
241
241
  label: "web_blocks.icon",
242
242
  category: "core",
243
243
  description: "Icon block is used to display an icon/svg.",
244
- icon: Z,
244
+ icon: U,
245
245
  group: "media",
246
- ...p({
246
+ ...u({
247
247
  properties: {
248
- styles: u(""),
248
+ styles: d(""),
249
249
  icon: {
250
250
  type: "string",
251
251
  title: "Icon",
@@ -264,7 +264,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
264
264
  }
265
265
  }
266
266
  })
267
- }, Be = (e) => {
267
+ }, Le = (e) => {
268
268
  const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
269
269
  return t && !r ? /* @__PURE__ */ h(
270
270
  "div",
@@ -280,15 +280,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
280
280
  ]
281
281
  }
282
282
  ) : b.createElement("span", { ...o }, l);
283
- }, Se = {
283
+ }, Be = {
284
284
  type: "PartialBlock",
285
285
  description: "A partial block component. Partial blocks are global blocks that can be used in multiple pages.",
286
286
  label: "Partial Block",
287
- icon: D,
287
+ icon: j,
288
288
  category: "core",
289
289
  group: "basic",
290
290
  hidden: !0,
291
- ...p({
291
+ ...u({
292
292
  properties: {
293
293
  partialBlockId: {
294
294
  type: "string",
@@ -298,7 +298,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
298
298
  }
299
299
  }
300
300
  })
301
- }, B = {
301
+ }, L = {
302
302
  SMALL: {
303
303
  1: "col-span-1",
304
304
  2: "col-span-2",
@@ -341,29 +341,29 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
341
341
  11: "lg:col-span-11",
342
342
  12: "lg:col-span-12"
343
343
  }
344
- }, Ne = (e) => {
344
+ }, Se = (e) => {
345
345
  const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
346
346
  k(l, "className", ""),
347
- k(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
348
- n ? k(B, ["MEDIUM", n || r], "") : "",
349
- a ? k(B, ["LARGE", n || r], "") : ""
347
+ k(L, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
348
+ n ? k(L, ["MEDIUM", n || r], "") : "",
349
+ a ? k(L, ["LARGE", n || r], "") : ""
350
350
  ].join(" ") };
351
351
  return /* @__PURE__ */ i("div", { ...o, ...l, ...c, children: t || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
352
- }, _e = {
352
+ }, Ne = {
353
353
  type: "Column",
354
354
  description: "A column component",
355
355
  label: "Column",
356
356
  group: "basic",
357
357
  category: "core",
358
- icon: q,
358
+ icon: Z,
359
359
  wrapper: !0,
360
360
  hidden: !0,
361
361
  canDelete: () => !0,
362
362
  canAcceptBlock: () => !0,
363
363
  canBeNested: (e) => e === "Row",
364
- ...p({
364
+ ...u({
365
365
  properties: {
366
- styles: u(""),
366
+ styles: d(""),
367
367
  colSpan: {
368
368
  type: "number",
369
369
  title: "Column Span",
@@ -386,15 +386,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
386
386
  }
387
387
  }
388
388
  })
389
- }, Te = (e) => {
389
+ }, _e = (e) => {
390
390
  const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [k(l, "className", ""), " grid grid-cols-12"].join() };
391
391
  return typeof (l == null ? void 0 : l.style) == "object" && l.style !== null ? a.style = { ...l.style, gap: `${r}px` } : a.style = { gap: `${r}px` }, /* @__PURE__ */ i("div", { ...o, ...l, ...a, children: t });
392
- }, Re = {
392
+ }, Te = {
393
393
  type: "Row",
394
394
  description: "A row component",
395
395
  label: "Row",
396
396
  group: "basic",
397
- icon: V,
397
+ icon: D,
398
398
  hidden: !0,
399
399
  blocks: () => [
400
400
  { _type: "Row", _id: "row", styles: "#styles:,p-1" },
@@ -404,9 +404,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
404
404
  category: "core",
405
405
  wrapper: !0,
406
406
  canAcceptBlock: (e) => e === "Column",
407
- ...p({
407
+ ...u({
408
408
  properties: {
409
- styles: u(""),
409
+ styles: d(""),
410
410
  colCount: {
411
411
  type: "number",
412
412
  default: 2,
@@ -421,34 +421,34 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
421
421
  }
422
422
  }
423
423
  })
424
- }, Ae = (e) => {
424
+ }, Re = (e) => {
425
425
  const { blockProps: o, styles: t } = e;
426
426
  return x("hr", { ...t, ...o });
427
- }, Ee = {
427
+ }, Ae = {
428
428
  type: "Divider",
429
429
  description: "A horizontal line component",
430
430
  label: "Divider",
431
431
  category: "core",
432
- icon: G,
432
+ icon: q,
433
433
  group: "basic",
434
- ...p({
434
+ ...u({
435
435
  properties: {
436
- styles: u("bg-gray-900 h-0.5 py-2 my-1")
436
+ styles: d("bg-gray-900 h-0.5 py-2 my-1")
437
437
  }
438
438
  })
439
- }, Me = (e) => {
439
+ }, Ee = (e) => {
440
440
  const { blockProps: o, styles: t, backgroundImage: l } = e;
441
441
  let r = {};
442
442
  return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...o, ...t, style: r });
443
- }, He = {
443
+ }, Me = {
444
444
  type: "EmptyBox",
445
445
  description: "A box component with no children",
446
446
  label: "Empty Box",
447
447
  category: "core",
448
448
  group: "basic",
449
- ...p({
449
+ ...u({
450
450
  properties: {
451
- styles: u(""),
451
+ styles: d(""),
452
452
  backgroundImage: {
453
453
  type: "string",
454
454
  title: "Background Image",
@@ -457,7 +457,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
457
457
  }
458
458
  }
459
459
  })
460
- }, $e = (e) => {
460
+ }, He = (e) => {
461
461
  const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
462
462
  return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
463
463
  /* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
@@ -474,16 +474,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
474
474
  defaultChecked: s
475
475
  }
476
476
  );
477
- }, je = {
477
+ }, $e = {
478
478
  type: "Checkbox",
479
479
  label: "web_blocks.checkbox",
480
480
  category: "core",
481
- icon: W,
481
+ icon: G,
482
482
  group: "form",
483
- ...p({
483
+ ...u({
484
484
  properties: {
485
- styles: u("flex items-center gap-x-2"),
486
- inputStyles: u(""),
485
+ styles: d("flex items-center gap-x-2"),
486
+ inputStyles: d(""),
487
487
  fieldName: {
488
488
  type: "string",
489
489
  title: "Field Name",
@@ -513,7 +513,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
513
513
  }),
514
514
  aiProps: ["label"],
515
515
  i18nProps: ["label"]
516
- }, De = (e) => {
516
+ }, je = (e) => {
517
517
  const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
518
518
  let c = o;
519
519
  return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ h(
@@ -538,11 +538,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
538
538
  ]
539
539
  }
540
540
  );
541
- }, Ve = {
541
+ }, De = {
542
542
  type: "Form",
543
543
  label: "Form",
544
544
  category: "core",
545
- icon: O,
545
+ icon: W,
546
546
  group: "form",
547
547
  blocks: () => [
548
548
  { _type: "Form", _id: "form", styles: "#styles:p-1 space-y-2," },
@@ -554,9 +554,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
554
554
  styles: "#styles:bg-black text-white rounded px-3 py-1,"
555
555
  }
556
556
  ],
557
- ...p({
557
+ ...u({
558
558
  properties: {
559
- styles: u(""),
559
+ styles: d(""),
560
560
  action: {
561
561
  type: "string",
562
562
  title: "Submit URL",
@@ -579,7 +579,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
579
579
  i18nProps: ["errorMessage", "successMessage"],
580
580
  aiProps: ["errorMessage", "successMessage"],
581
581
  canAcceptBlock: () => !0
582
- }, ze = (e) => {
582
+ }, Ve = (e) => {
583
583
  const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
584
584
  return /* @__PURE__ */ h("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
585
585
  l,
@@ -592,15 +592,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
592
592
  }
593
593
  )
594
594
  ] });
595
- }, Fe = {
595
+ }, ze = {
596
596
  type: "FormButton",
597
597
  label: "Submit Button",
598
598
  category: "core",
599
- icon: $,
599
+ icon: H,
600
600
  group: "form",
601
- ...p({
601
+ ...u({
602
602
  properties: {
603
- styles: u(
603
+ styles: d(
604
604
  "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
605
605
  ),
606
606
  label: {
@@ -631,7 +631,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
631
631
  }),
632
632
  i18nProps: ["label"],
633
633
  aiProps: ["label"]
634
- }, Ue = (e) => {
634
+ }, Fe = (e) => {
635
635
  const o = { type: "text", autocomplete: "on" };
636
636
  return e ? ["text", "password", "number", "hidden", "range", "color", "date", "time"].includes(e) ? { type: e, autocomplete: "on" } : e === "email" ? { type: "email", autocomplete: "email" } : e === "tel" ? { type: "tel", autocomplete: "tel" } : e === "url" ? { type: "url", autocomplete: "url" } : {
637
637
  // Special cases
@@ -699,7 +699,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
699
699
  organization: { type: "text", autocomplete: "organization" },
700
700
  language: { type: "text", autocomplete: "language" }
701
701
  }[e] || o : o;
702
- }, Ze = (e) => {
702
+ }, Ue = (e) => {
703
703
  const {
704
704
  blockProps: o,
705
705
  fieldName: t,
@@ -711,7 +711,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
711
711
  required: c,
712
712
  inputType: y,
713
713
  defaultValue: g
714
- } = e, { type: v, autocomplete: f } = Ue(y);
714
+ } = e, { type: v, autocomplete: f } = Fe(y);
715
715
  return s ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
716
716
  s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
717
717
  /* @__PURE__ */ i(
@@ -740,16 +740,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
740
740
  defaultValue: g
741
741
  }
742
742
  );
743
- }, qe = {
743
+ }, Ze = {
744
744
  type: "Input",
745
745
  label: "web_blocks.input",
746
746
  category: "core",
747
- icon: z,
747
+ icon: V,
748
748
  group: "form",
749
- ...p({
749
+ ...u({
750
750
  properties: {
751
- styles: u(""),
752
- inputStyles: u("w-full p-1"),
751
+ styles: d(""),
752
+ inputStyles: d("w-full p-1"),
753
753
  fieldName: {
754
754
  type: "string",
755
755
  title: "Field Name",
@@ -855,21 +855,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
855
855
  }),
856
856
  aiProps: ["label", "placeholder"],
857
857
  i18nProps: ["label", "placeholder"]
858
- }, Ge = (e) => {
858
+ }, qe = (e) => {
859
859
  const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
860
860
  return r ? b.createElement("label", n, r) : b.createElement("label", {
861
861
  ...n,
862
862
  dangerouslySetInnerHTML: { __html: t }
863
863
  });
864
- }, We = {
864
+ }, Ge = {
865
865
  type: "Label",
866
866
  label: "Label",
867
867
  category: "core",
868
- icon: Y,
868
+ icon: O,
869
869
  group: "form",
870
- ...p({
870
+ ...u({
871
871
  properties: {
872
- styles: u(),
872
+ styles: d(),
873
873
  content: {
874
874
  type: "string",
875
875
  title: "Content",
@@ -879,7 +879,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
879
879
  }),
880
880
  aiProps: ["content"],
881
881
  i18nProps: ["content"]
882
- }, Oe = (e) => {
882
+ }, We = (e) => {
883
883
  const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
884
884
  return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
885
885
  /* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
@@ -896,16 +896,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
896
896
  checked: s
897
897
  }
898
898
  );
899
- }, Ye = {
899
+ }, Oe = {
900
900
  type: "Radio",
901
901
  label: "web_blocks.radio",
902
902
  category: "core",
903
- icon: Q,
903
+ icon: Y,
904
904
  group: "form",
905
- ...p({
905
+ ...u({
906
906
  properties: {
907
- styles: u("flex items-center gap-x-2"),
908
- inputStyles: u(""),
907
+ styles: d("flex items-center gap-x-2"),
908
+ inputStyles: d(""),
909
909
  fieldName: {
910
910
  type: "string",
911
911
  title: "Field Name",
@@ -935,7 +935,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
935
935
  }),
936
936
  aiProps: ["label"],
937
937
  i18nProps: ["label"]
938
- }, Qe = (e) => {
938
+ }, Ye = (e) => {
939
939
  const {
940
940
  blockProps: o,
941
941
  fieldName: t,
@@ -961,7 +961,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
961
961
  defaultValue: f,
962
962
  children: [
963
963
  /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
964
- R(g, (m) => /* @__PURE__ */ i("option", { value: m == null ? void 0 : m.value, children: m == null ? void 0 : m.label }, m == null ? void 0 : m.value))
964
+ T(g, (m) => /* @__PURE__ */ i("option", { value: m == null ? void 0 : m.value, children: m == null ? void 0 : m.label }, m == null ? void 0 : m.value))
965
965
  ]
966
966
  }
967
967
  )
@@ -976,20 +976,20 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
976
976
  defaultValue: f,
977
977
  children: [
978
978
  /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
979
- R(g, (m) => /* @__PURE__ */ i("option", { value: m == null ? void 0 : m.value, children: m == null ? void 0 : m.label }, m == null ? void 0 : m.value))
979
+ T(g, (m) => /* @__PURE__ */ i("option", { value: m == null ? void 0 : m.value, children: m == null ? void 0 : m.label }, m == null ? void 0 : m.value))
980
980
  ]
981
981
  }
982
982
  );
983
- }, Je = {
983
+ }, Qe = {
984
984
  type: "Select",
985
985
  label: "web_blocks.select",
986
986
  category: "core",
987
- icon: J,
987
+ icon: Q,
988
988
  group: "form",
989
- ...p({
989
+ ...u({
990
990
  properties: {
991
- styles: u(""),
992
- inputStyles: u("w-full p-1"),
991
+ styles: d(""),
992
+ inputStyles: d("w-full p-1"),
993
993
  fieldName: {
994
994
  type: "string",
995
995
  title: "Field Name",
@@ -1049,7 +1049,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1049
1049
  }),
1050
1050
  aiProps: ["label", "placeholder"],
1051
1051
  i18nProps: ["label", "placeholder"]
1052
- }, Xe = (e) => {
1052
+ }, Je = (e) => {
1053
1053
  const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: y, defaultValue: g } = e;
1054
1054
  return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
1055
1055
  c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
@@ -1077,21 +1077,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1077
1077
  defaultValue: g
1078
1078
  }
1079
1079
  );
1080
- }, Ke = {
1080
+ }, Xe = {
1081
1081
  type: "TextArea",
1082
1082
  label: "web_blocks.textarea",
1083
1083
  category: "core",
1084
- icon: z,
1084
+ icon: V,
1085
1085
  group: "form",
1086
- ...p({
1086
+ ...u({
1087
1087
  properties: {
1088
1088
  fieldName: {
1089
1089
  type: "string",
1090
1090
  title: "Field Name",
1091
1091
  default: "fieldName"
1092
1092
  },
1093
- styles: u(""),
1094
- inputStyles: u("w-full p-1"),
1093
+ styles: d(""),
1094
+ inputStyles: d("w-full p-1"),
1095
1095
  showLabel: {
1096
1096
  type: "boolean",
1097
1097
  title: "Show Label",
@@ -1128,21 +1128,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1128
1128
  }),
1129
1129
  aiProps: ["label", "placeholder"],
1130
1130
  i18nProps: ["label", "placeholder"]
1131
- }, et = (e) => {
1131
+ }, Ke = (e) => {
1132
1132
  const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
1133
1133
  return n ? b.createElement(r, { ...t, ...o }, n) : b.createElement(r, {
1134
1134
  ...t,
1135
1135
  ...o,
1136
1136
  dangerouslySetInnerHTML: { __html: l }
1137
1137
  });
1138
- }, tt = {
1138
+ }, et = {
1139
1139
  type: "Heading",
1140
1140
  description: "A heading component similar to h1, h2, h3, h4, h5, h6 elements in HTML",
1141
1141
  label: "Heading",
1142
1142
  category: "core",
1143
- icon: X,
1143
+ icon: J,
1144
1144
  group: "typography",
1145
- ...p({
1145
+ ...u({
1146
1146
  properties: {
1147
1147
  tag: {
1148
1148
  type: "string",
@@ -1150,7 +1150,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1150
1150
  title: "Level",
1151
1151
  enum: ["h1", "h2", "h3", "h4", "h5", "h6"]
1152
1152
  },
1153
- styles: u("text-3xl"),
1153
+ styles: d("text-3xl"),
1154
1154
  content: {
1155
1155
  type: "string",
1156
1156
  default: "Heading goes here",
@@ -1162,37 +1162,37 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1162
1162
  aiProps: ["content"],
1163
1163
  i18nProps: ["content"],
1164
1164
  canAcceptBlock: () => !0
1165
- }, ot = (e) => {
1165
+ }, tt = (e) => {
1166
1166
  const { blockProps: o, styles: t } = e;
1167
1167
  return x("br", { ...o, ...t });
1168
- }, lt = {
1168
+ }, ot = {
1169
1169
  type: "LineBreak",
1170
1170
  label: "Line Break",
1171
1171
  category: "core",
1172
1172
  group: "basic",
1173
1173
  hidden: !0,
1174
- ...p({
1174
+ ...u({
1175
1175
  properties: {
1176
- styles: u("")
1176
+ styles: d("")
1177
1177
  }
1178
1178
  }),
1179
1179
  canAcceptBlock: () => !0,
1180
1180
  canDelete: () => !1,
1181
1181
  canMove: () => !1,
1182
1182
  canDuplicate: () => !1
1183
- }, rt = (e) => {
1183
+ }, lt = (e) => {
1184
1184
  const { blockProps: o, children: t, styles: l } = e;
1185
1185
  return t ? x("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1186
- }, nt = (e) => {
1186
+ }, rt = (e) => {
1187
1187
  const { blockProps: o, children: t, styles: l } = e;
1188
1188
  return t ? x("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1189
- }, it = (e) => {
1189
+ }, nt = (e) => {
1190
1190
  const { blockProps: o, children: t, styles: l } = e;
1191
1191
  return t ? x("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1192
- }, at = (e) => {
1192
+ }, it = (e) => {
1193
1193
  const { blockProps: o, children: t, styles: l } = e;
1194
1194
  return t ? x("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1195
- }, st = (e) => {
1195
+ }, at = (e) => {
1196
1196
  const { blockProps: o, children: t, content: l, styles: r } = e;
1197
1197
  return !t && w(l) ? /* @__PURE__ */ i(C, {}) : t ? x("td", { ...o, ...r }, t) : x("td", {
1198
1198
  ...o,
@@ -1200,72 +1200,72 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1200
1200
  dangerouslySetInnerHTML: { __html: l }
1201
1201
  });
1202
1202
  };
1203
- d(rt, {
1203
+ p(lt, {
1204
1204
  type: "Table",
1205
1205
  label: "Table",
1206
1206
  category: "core",
1207
1207
  group: "table",
1208
1208
  hidden: !0,
1209
- icon: K,
1210
- ...p({
1209
+ icon: X,
1210
+ ...u({
1211
1211
  properties: {
1212
- styles: u("")
1212
+ styles: d("")
1213
1213
  }
1214
1214
  }),
1215
1215
  blocks: P("Table")
1216
1216
  });
1217
- d(nt, {
1217
+ p(rt, {
1218
1218
  type: "TableHead",
1219
1219
  label: "Table Head",
1220
1220
  category: "core",
1221
1221
  group: "table",
1222
1222
  hidden: !0,
1223
- icon: ee,
1224
- ...p({
1223
+ icon: K,
1224
+ ...u({
1225
1225
  properties: {
1226
- styles: u("")
1226
+ styles: d("")
1227
1227
  }
1228
1228
  }),
1229
1229
  blocks: P("TableHead")
1230
1230
  });
1231
- d(it, {
1231
+ p(nt, {
1232
1232
  type: "TableBody",
1233
1233
  label: "Table Body",
1234
1234
  category: "core",
1235
1235
  group: "table",
1236
1236
  hidden: !0,
1237
- icon: te,
1238
- ...p({
1237
+ icon: ee,
1238
+ ...u({
1239
1239
  properties: {
1240
- styles: u("")
1240
+ styles: d("")
1241
1241
  }
1242
1242
  }),
1243
1243
  blocks: P("TableBody")
1244
1244
  });
1245
- d(at, {
1245
+ p(it, {
1246
1246
  type: "TableRow",
1247
1247
  label: "Table Row",
1248
1248
  category: "core",
1249
1249
  group: "table",
1250
1250
  hidden: !0,
1251
- icon: oe,
1252
- ...p({
1251
+ icon: te,
1252
+ ...u({
1253
1253
  properties: {
1254
- styles: u("")
1254
+ styles: d("")
1255
1255
  }
1256
1256
  }),
1257
1257
  blocks: P("TableRow")
1258
1258
  });
1259
- d(st, {
1259
+ p(at, {
1260
1260
  type: "TableCell",
1261
1261
  label: "Table Cell",
1262
1262
  category: "core",
1263
1263
  group: "table",
1264
1264
  hidden: !0,
1265
- icon: le,
1266
- ...p({
1265
+ icon: oe,
1266
+ ...u({
1267
1267
  properties: {
1268
- styles: u(""),
1268
+ styles: d(""),
1269
1269
  content: {
1270
1270
  type: "string",
1271
1271
  default: "Heading goes here",
@@ -1321,7 +1321,7 @@ function P(e) {
1321
1321
  }
1322
1322
  return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1323
1323
  }
1324
- const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", dt = (e) => {
1324
+ const st = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", ct = (e) => {
1325
1325
  const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: y, mobileHeight: g } = e;
1326
1326
  return w(t) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ h("picture", { children: [
1327
1327
  l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: y, height: g }),
@@ -1338,20 +1338,20 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1338
1338
  }
1339
1339
  )
1340
1340
  ] });
1341
- }, pt = {
1341
+ }, dt = {
1342
1342
  type: "Image",
1343
1343
  description: "A image component",
1344
1344
  label: "Image",
1345
1345
  category: "core",
1346
- icon: re,
1346
+ icon: le,
1347
1347
  group: "media",
1348
- ...p({
1348
+ ...u({
1349
1349
  properties: {
1350
- styles: u("w-full h-full object-cover"),
1350
+ styles: d("w-full h-full object-cover"),
1351
1351
  image: {
1352
1352
  type: "string",
1353
1353
  title: "Image",
1354
- default: ct,
1354
+ default: st,
1355
1355
  ui: { "ui:widget": "image" }
1356
1356
  },
1357
1357
  width: {
@@ -1399,7 +1399,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1399
1399
  }),
1400
1400
  aiProps: ["alt"],
1401
1401
  i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
1402
- }, ut = (e) => {
1402
+ }, pt = (e) => {
1403
1403
  const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
1404
1404
  let s = {};
1405
1405
  return !l && w(a) && (s = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? l ? /* @__PURE__ */ i("span", { role: "link", ...o, style: s, ...r, children: l }) : x(
@@ -1422,16 +1422,16 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1422
1422
  },
1423
1423
  a
1424
1424
  );
1425
- }, mt = {
1425
+ }, ut = {
1426
1426
  type: "Link",
1427
1427
  description: "A link component",
1428
1428
  label: "Link",
1429
1429
  category: "core",
1430
- icon: ne,
1430
+ icon: re,
1431
1431
  group: "basic",
1432
- ...p({
1432
+ ...u({
1433
1433
  properties: {
1434
- styles: u("block"),
1434
+ styles: d("block"),
1435
1435
  content: {
1436
1436
  type: "string",
1437
1437
  default: "Link text goes here",
@@ -1463,19 +1463,19 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1463
1463
  aiProps: ["content"],
1464
1464
  i18nProps: ["content", "link"],
1465
1465
  canAcceptBlock: (e) => e !== "Link"
1466
- }, yt = (e) => {
1466
+ }, mt = (e) => {
1467
1467
  const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
1468
1468
  return !t && w(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : b.createElement(r || "ul", { ...o, ...l }, t);
1469
- }, gt = {
1469
+ }, yt = {
1470
1470
  type: "List",
1471
1471
  description: "A list component",
1472
1472
  label: "List",
1473
- icon: V,
1473
+ icon: D,
1474
1474
  category: "core",
1475
1475
  group: "basic",
1476
- ...p({
1476
+ ...u({
1477
1477
  properties: {
1478
- styles: u("")
1478
+ styles: d("")
1479
1479
  }
1480
1480
  }),
1481
1481
  canAcceptBlock: (e) => e === "ListItem",
@@ -1503,23 +1503,23 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1503
1503
  content: "Item 3"
1504
1504
  }
1505
1505
  ]
1506
- }, bt = (e) => {
1506
+ }, gt = (e) => {
1507
1507
  const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
1508
1508
  return r ? b.createElement(n || "li", { ...l, ...o }, r) : b.createElement(n || "li", {
1509
1509
  ...l,
1510
1510
  ...o,
1511
1511
  dangerouslySetInnerHTML: { __html: t }
1512
1512
  });
1513
- }, ft = {
1513
+ }, bt = {
1514
1514
  type: "ListItem",
1515
1515
  description: "A list item component",
1516
1516
  label: "List Item",
1517
- icon: ie,
1517
+ icon: ne,
1518
1518
  category: "core",
1519
1519
  group: "basic",
1520
- ...p({
1520
+ ...u({
1521
1521
  properties: {
1522
- styles: u(""),
1522
+ styles: d(""),
1523
1523
  content: {
1524
1524
  type: "string",
1525
1525
  default: "List item",
@@ -1534,25 +1534,25 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1534
1534
  aiProps: ["content"],
1535
1535
  canAcceptBlock: (e) => e !== "ListItem",
1536
1536
  canBeNested: (e) => e === "List" || e === "Repeater"
1537
- }, ht = (e) => {
1537
+ }, ft = (e) => {
1538
1538
  const { blockProps: o, styles: t, content: l } = e;
1539
- if (!U(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
1540
- const r = T(t, "rte");
1539
+ if (!F(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
1540
+ const r = _(t, "rte");
1541
1541
  return b.createElement("div", {
1542
1542
  ...r,
1543
1543
  ...o,
1544
1544
  dangerouslySetInnerHTML: { __html: l }
1545
1545
  });
1546
- }, kt = {
1546
+ }, ht = {
1547
1547
  type: "Paragraph",
1548
1548
  description: "A paragraph component",
1549
1549
  label: "Paragraph",
1550
1550
  category: "core",
1551
- icon: ae,
1551
+ icon: ie,
1552
1552
  group: "typography",
1553
- ...p({
1553
+ ...u({
1554
1554
  properties: {
1555
- styles: u(""),
1555
+ styles: d(""),
1556
1556
  content: {
1557
1557
  type: "string",
1558
1558
  title: "Content",
@@ -1564,20 +1564,20 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1564
1564
  i18nProps: ["content"],
1565
1565
  aiProps: ["content"],
1566
1566
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
1567
- }, xt = (e) => {
1568
- const { blockProps: o, content: t, styles: l } = e, r = T(l, "rte");
1567
+ }, kt = (e) => {
1568
+ const { blockProps: o, content: t, styles: l } = e, r = _(l, "rte");
1569
1569
  return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1570
- }, wt = {
1570
+ }, xt = {
1571
1571
  type: "RichText",
1572
1572
  description: "A rich text block",
1573
1573
  label: "Rich Text",
1574
1574
  hidden: !0,
1575
1575
  category: "core",
1576
- icon: se,
1576
+ icon: ae,
1577
1577
  group: "typography",
1578
- ...p({
1578
+ ...u({
1579
1579
  properties: {
1580
- styles: u(""),
1580
+ styles: d(""),
1581
1581
  content: {
1582
1582
  type: "string",
1583
1583
  title: "Content",
@@ -1588,22 +1588,22 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1588
1588
  }),
1589
1589
  aiProps: ["content"],
1590
1590
  i18nProps: ["content"]
1591
- }, vt = (e) => {
1591
+ }, wt = (e) => {
1592
1592
  const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
1593
1593
  return r ? b.createElement("span", { ...t, ...o }, r) : b.createElement(n || "span", {
1594
1594
  ...t,
1595
1595
  ...o,
1596
1596
  dangerouslySetInnerHTML: { __html: l || "" }
1597
1597
  });
1598
- }, Ct = {
1598
+ }, vt = {
1599
1599
  type: "Span",
1600
1600
  description: "A span component",
1601
1601
  label: "Span",
1602
1602
  category: "core",
1603
1603
  group: "basic",
1604
- ...p({
1604
+ ...u({
1605
1605
  properties: {
1606
- styles: u(""),
1606
+ styles: d(""),
1607
1607
  content: {
1608
1608
  type: "string",
1609
1609
  title: "Content",
@@ -1615,17 +1615,17 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1615
1615
  aiProps: ["content"],
1616
1616
  i18nProps: ["content"],
1617
1617
  canAcceptBlock: () => !0
1618
- }, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
1618
+ }, Ct = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, It = {
1619
1619
  type: "Text",
1620
1620
  description: "A text component with no styling",
1621
1621
  label: "Text",
1622
1622
  category: "core",
1623
1623
  group: "typography",
1624
1624
  blocks: () => [{ _id: "a", _type: "Text", _name: "Text", content: "" }],
1625
- icon: ce,
1626
- ...p({
1625
+ icon: se,
1626
+ ...u({
1627
1627
  properties: {
1628
- styles: u("text-black"),
1628
+ styles: d("text-black"),
1629
1629
  content: {
1630
1630
  title: "Content",
1631
1631
  type: "string",
@@ -1635,7 +1635,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1635
1635
  }),
1636
1636
  aiProps: ["content"],
1637
1637
  i18nProps: ["content"]
1638
- }, S = {
1638
+ }, B = {
1639
1639
  type: "object",
1640
1640
  title: "Controls",
1641
1641
  default: {
@@ -1666,18 +1666,18 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1666
1666
  default: !1
1667
1667
  }
1668
1668
  }
1669
- }, A = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, E = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Lt = (e, o) => {
1669
+ }, R = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, A = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/(?:channels\/[\w]+\/|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/)?|player\.vimeo\.com\/video\/)(\d+)/, Pt = (e, o) => {
1670
1670
  const t = k(o, "autoplay", !1), l = k(o, "controls", !1), r = k(o, "loop", !1), n = t || k(o, "muted", !0);
1671
- if (A.test(e)) {
1672
- const a = e.match(A);
1671
+ if (R.test(e)) {
1672
+ const a = e.match(R);
1673
1673
  if (a) {
1674
1674
  const s = a[4];
1675
1675
  let c = `https://www.youtube.com/embed/${s}`, y = t ? "autoplay=1" : "";
1676
1676
  return y += r ? `&loop=1&playlist=${s}` : "", y += n ? "&mute=1&muted=1" : "", y += l ? "&controls=1" : "&controls=0", `${c}?${y}`;
1677
1677
  }
1678
1678
  }
1679
- if (E.test(e)) {
1680
- const a = e.match(E);
1679
+ if (A.test(e)) {
1680
+ const a = e.match(A);
1681
1681
  if (a) {
1682
1682
  const s = a[1];
1683
1683
  let c = "";
@@ -1685,13 +1685,13 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1685
1685
  }
1686
1686
  }
1687
1687
  return null;
1688
- }, Bt = (e) => {
1689
- const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c = Lt(o, r);
1690
- return /* @__PURE__ */ h("div", { ...M(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1691
- !c && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: w(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i("iframe", { width: "100%", src: c ?? "", title: s || "Video player", ...H(l, "className") }),
1688
+ }, Lt = (e) => {
1689
+ const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c = Pt(o, r);
1690
+ return /* @__PURE__ */ h("div", { ...E(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1691
+ !c && a ? /* @__PURE__ */ i("div", { className: "absolute flex h-full w-full items-center justify-center bg-gray-300 text-center", children: w(o) ? `Provided ${n} video link in settings Video URL.` : `Provided ${n} video link is invalid.` }) : /* @__PURE__ */ i("iframe", { width: "100%", src: c ?? "", title: s || "Video player", ...M(l, "className") }),
1692
1692
  a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
1693
1693
  ] });
1694
- }, St = (e) => {
1694
+ }, Bt = (e) => {
1695
1695
  const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a, title: s } = e;
1696
1696
  let c = n;
1697
1697
  const y = [...k(r, "srcsets", []) || []];
@@ -1719,21 +1719,21 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1719
1719
  }),
1720
1720
  "Your browser does not support the video tag."
1721
1721
  ) });
1722
- }, Nt = (e) => {
1722
+ }, St = (e) => {
1723
1723
  const { videoSource: o } = e;
1724
- return o === "Custom" ? /* @__PURE__ */ i(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Bt, { ...e }) : /* @__PURE__ */ h("div", { children: [
1724
+ return o === "Custom" ? /* @__PURE__ */ i(Bt, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Lt, { ...e }) : /* @__PURE__ */ h("div", { children: [
1725
1725
  "Invalid video source : ",
1726
1726
  o
1727
1727
  ] });
1728
- }, _t = {
1728
+ }, Nt = {
1729
1729
  type: "Video",
1730
1730
  label: "Video",
1731
1731
  category: "core",
1732
- icon: de,
1732
+ icon: ce,
1733
1733
  group: "media",
1734
- ...p({
1734
+ ...u({
1735
1735
  properties: {
1736
- styles: u("absolute h-full w-full object-cover"),
1736
+ styles: d("absolute h-full w-full object-cover"),
1737
1737
  videoSource: {
1738
1738
  type: "string",
1739
1739
  default: "Custom",
@@ -1769,7 +1769,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1769
1769
  type: "object",
1770
1770
  default: { srcsets: [] }
1771
1771
  },
1772
- controls: { ...S }
1772
+ controls: { ...B }
1773
1773
  }
1774
1774
  }
1775
1775
  },
@@ -1786,7 +1786,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1786
1786
  title: "Youtube Video URL",
1787
1787
  default: ""
1788
1788
  },
1789
- controls: { ...S }
1789
+ controls: { ...B }
1790
1790
  }
1791
1791
  }
1792
1792
  },
@@ -1803,7 +1803,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1803
1803
  title: "Vimeo Video URL",
1804
1804
  default: ""
1805
1805
  },
1806
- controls: { ...S }
1806
+ controls: { ...B }
1807
1807
  }
1808
1808
  }
1809
1809
  }
@@ -1815,15 +1815,15 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1815
1815
  }
1816
1816
  }),
1817
1817
  i18nProps: ["url", "title"]
1818
- }, Tt = (e) => {
1819
- const { paginationStyles: o } = e, t = me("Pagination");
1820
- return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...M(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ h(N, { children: [
1818
+ }, _t = (e) => {
1819
+ const { paginationStyles: o } = e, t = ue("Pagination");
1820
+ return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...E(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ h(S, { children: [
1821
1821
  /* @__PURE__ */ i(
1822
1822
  "button",
1823
1823
  {
1824
1824
  className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",
1825
1825
  disabled: !0,
1826
- children: /* @__PURE__ */ i(pe, { className: "h-4 w-4" })
1826
+ children: /* @__PURE__ */ i(de, { className: "h-4 w-4" })
1827
1827
  }
1828
1828
  ),
1829
1829
  /* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-blue-500 bg-blue-500 font-medium text-white", children: "1" }),
@@ -1831,15 +1831,15 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1831
1831
  /* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "3" }),
1832
1832
  /* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "4" }),
1833
1833
  /* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white font-medium text-gray-700 hover:bg-gray-50", children: "5" }),
1834
- /* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50", children: /* @__PURE__ */ i(ue, { className: "h-4 w-4" }) })
1834
+ /* @__PURE__ */ i("button", { className: "flex h-9 w-9 items-center justify-center rounded-md border border-gray-300 bg-white hover:bg-gray-50", children: /* @__PURE__ */ i(pe, { className: "h-4 w-4" }) })
1835
1835
  ] }) });
1836
- }, Rt = (e) => {
1836
+ }, Tt = (e) => {
1837
1837
  const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
1838
1838
  let c = o;
1839
1839
  return w(c) && s && (c = /* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Choose a collection to display items" })), t === "none" ? n && s ? Array.from({ length: 2 }).map((y, g) => /* @__PURE__ */ h("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
1840
1840
  /* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1841
1841
  /* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1842
- ] }, g)) : c : /* @__PURE__ */ h(N, { children: [
1842
+ ] }, g)) : c : /* @__PURE__ */ h(S, { children: [
1843
1843
  b.createElement(
1844
1844
  t,
1845
1845
  { ...r, ...l },
@@ -1849,9 +1849,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1849
1849
  ] }, g)) : c
1850
1850
  ),
1851
1851
  a && /* @__PURE__ */ i(
1852
- Tt,
1852
+ _t,
1853
1853
  {
1854
- ...H(e, [
1854
+ ...M(e, [
1855
1855
  "limit",
1856
1856
  "totalItems",
1857
1857
  "paginationStrategy",
@@ -1863,10 +1863,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1863
1863
  }
1864
1864
  )
1865
1865
  ] });
1866
- }, At = {
1866
+ }, Rt = {
1867
1867
  type: "Repeater",
1868
1868
  label: "Repeater",
1869
- icon: F,
1869
+ icon: z,
1870
1870
  group: "basic",
1871
1871
  description: "Repeater block is used to display a list of items based on data binding in repeaterItems",
1872
1872
  dataProviderMode: "live",
@@ -1875,10 +1875,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1875
1875
  { _id: "A", _type: "Repeater", tag: "ul" },
1876
1876
  { _id: "B", _name: "Repeater Item", _type: "RepeaterItem", parentTag: "ul", _parent: "A" }
1877
1877
  ],
1878
- ...p({
1878
+ ...u({
1879
1879
  properties: {
1880
- styles: L("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
1881
- paginationStyles: L("flex items-center justify-center gap-2 p-4"),
1880
+ styles: d("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
1881
+ paginationStyles: d("flex items-center justify-center gap-2 p-4"),
1882
1882
  repeaterItems: {
1883
1883
  title: "Collection",
1884
1884
  type: "string",
@@ -1958,7 +1958,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1958
1958
  ]
1959
1959
  }),
1960
1960
  canAcceptBlock: (e) => e === "Pagination"
1961
- }, Et = ({
1961
+ }, At = ({
1962
1962
  children: e,
1963
1963
  blockProps: o,
1964
1964
  styles: t,
@@ -1981,41 +1981,41 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1981
1981
  { ...o, ...t },
1982
1982
  /* @__PURE__ */ i("div", { className: "col-span-3 flex items-center justify-center bg-orange-50 p-5 text-sm text-muted-foreground", children: "Add children to repeater item" })
1983
1983
  ) : b.createElement(n, { ...o, ...t }, e);
1984
- }, Mt = {
1984
+ }, Et = {
1985
1985
  type: "RepeaterItem",
1986
1986
  label: "Repeater Item",
1987
- icon: F,
1987
+ icon: z,
1988
1988
  hidden: !0,
1989
1989
  group: "basic",
1990
- ...p({
1990
+ ...u({
1991
1991
  properties: {
1992
- styles: L(""),
1993
- parentTag: ye("Repeater", "tag")
1992
+ styles: d(""),
1993
+ parentTag: me("Repeater", "tag")
1994
1994
  }
1995
1995
  }),
1996
1996
  canAcceptBlock: (e) => e !== "RepeaterItem",
1997
1997
  canDelete: () => !1,
1998
1998
  canMove: () => !1,
1999
1999
  canDuplicate: () => !1
2000
- }, Ht = ({
2000
+ }, Mt = ({
2001
2001
  children: e,
2002
2002
  blockProps: o,
2003
2003
  styles: t
2004
- }) => b.createElement("div", { ...o, ...t }, e), $t = {
2004
+ }) => b.createElement("div", { ...o, ...t }, e), Ht = {
2005
2005
  type: "RepeaterEmptyState",
2006
2006
  label: "Empty State",
2007
2007
  hidden: !0,
2008
2008
  group: "basic",
2009
- ...p({
2010
- properties: { styles: L("p-5 flex items-center justify-center") }
2009
+ ...u({
2010
+ properties: { styles: d("p-5 flex items-center justify-center") }
2011
2011
  }),
2012
2012
  canAcceptBlock: () => !0,
2013
2013
  canDelete: () => !1,
2014
2014
  canMove: () => !1,
2015
2015
  canDuplicate: () => !1
2016
- }, qt = () => {
2017
- d(ge, be), d(Me, He), d(fe, he), d(et, tt), d(ht, kt), d(vt, Ct), d(xt, wt), d(ut, mt), d(yt, gt), d(bt, ft), d(Pe, Le), d(dt, pt), d(Nt, _t), d(ke, xe), d(we, ve), d(It, Pt), d(De, Ve), d(ze, Fe), d(Ze, qe), d($e, je), d(Oe, Ye), d(Qe, Je), d(Xe, Ke), d(Ge, We), d(ot, lt), d(Ae, Ee), d(Ce, Ie), d(Be, Se), d(Te, Re), d(Ne, _e), d(Rt, At), d(Et, Mt), d(Ht, $t);
2016
+ }, Zt = () => {
2017
+ p(ye, ge), p(Ee, Me), p(be, fe), p(Ke, et), p(ft, ht), p(wt, vt), p(kt, xt), p(pt, ut), p(mt, yt), p(gt, bt), p(Ie, Pe), p(ct, dt), p(St, Nt), p(he, ke), p(xe, we), p(Ct, It), p(je, De), p(Ve, ze), p(Ue, Ze), p(He, $e), p(We, Oe), p(Ye, Qe), p(Je, Xe), p(qe, Ge), p(tt, ot), p(Re, Ae), p(ve, Ce), p(Le, Be), p(_e, Te), p(Se, Ne), p(Tt, Rt), p(At, Et), p(Mt, Ht);
2018
2018
  };
2019
2019
  export {
2020
- qt as loadWebBlocks
2020
+ Zt as loadWebBlocks
2021
2021
  };