@chaibuilder/sdk 3.2.13 → 4.0.0-beta.10

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 (193) hide show
  1. package/README.md +88 -61
  2. package/dist/2SSKDMRQ-CfHqXEo6.cjs +1 -0
  3. package/dist/2SSKDMRQ-KxbQMSQF.js +42 -0
  4. package/dist/AP7HFJJL-B3bVbF4b.cjs +1228 -0
  5. package/dist/AP7HFJJL-DJe0zNfP.js +9214 -0
  6. package/dist/IconPicker-7YKi0cvf.cjs +1 -0
  7. package/dist/IconPicker-CaEjFuuU.js +60 -0
  8. package/dist/STRINGS-BExFecZW.js +8 -0
  9. package/dist/STRINGS-FNnfjF5H.cjs +1 -0
  10. package/dist/WDYDFRGG-4MvQxrrE.cjs +1 -0
  11. package/dist/WDYDFRGG-DesO-YVt.js +33 -0
  12. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  13. package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
  14. package/dist/actions-registery-BRgseJas.cjs +418 -0
  15. package/dist/actions-registery-DRV8xywr.js +15540 -0
  16. package/dist/actions.cjs +1 -0
  17. package/dist/actions.d.ts +3229 -0
  18. package/dist/actions.js +216 -0
  19. package/dist/active-in-another-tab-BraPCVHD.js +35 -0
  20. package/dist/active-in-another-tab-DmiLcoHl.cjs +1 -0
  21. package/dist/add-new-language-page-BiS0BJFh.cjs +1 -0
  22. package/dist/add-new-language-page-DaNJhujm.js +402 -0
  23. package/dist/add-new-page-BavGPTWz.js +31 -0
  24. package/dist/add-new-page-dbDUyekW.cjs +1 -0
  25. package/dist/ai-panel-content-4Cv-ufXL.js +62 -0
  26. package/dist/ai-panel-content-ClQ5alrF.cjs +1 -0
  27. package/dist/ai-panel-default-lang-BVgCW7Iu.cjs +3 -0
  28. package/dist/ai-panel-default-lang-CByGoNp5.js +341 -0
  29. package/dist/ai-panel-other-lang-BXuiVjMR.cjs +1 -0
  30. package/dist/ai-panel-other-lang-DznZUrL7.js +162 -0
  31. package/dist/ai-prompt-input--MqeAtTu.cjs +1 -0
  32. package/dist/ai-prompt-input-DbNqAJmK.js +656 -0
  33. package/dist/ai-translation-prompt-CqZE5xvG.js +28 -0
  34. package/dist/ai-translation-prompt-yU9T98gu.cjs +1 -0
  35. package/dist/{apply-binding-DLaiD20q.js → apply-binding-CLU6Xp4K.js} +251 -257
  36. package/dist/apply-binding-NvZX_rJe.cjs +1 -0
  37. package/dist/code-display-9Onx6RCq.cjs +1 -0
  38. package/dist/{code-display-DuH-UOhl.js → code-display-oa1j0ri7.js} +1 -1
  39. package/dist/code-editor-DI5chGQy.js +51 -0
  40. package/dist/code-editor-eJ-ha21X.cjs +1 -0
  41. package/dist/continue-editing-in-this-client-BIPyGnqp.cjs +1 -0
  42. package/dist/continue-editing-in-this-client-Bs9Q2ase.js +25 -0
  43. package/dist/core-8lkXy4lC.cjs +1 -0
  44. package/dist/core-BvsZwF26.js +52 -0
  45. package/dist/core.cjs +1 -1
  46. package/dist/core.d.ts +145 -565
  47. package/dist/core.js +24 -103
  48. package/dist/css-import-modal-Cwq__qKK.cjs +13 -0
  49. package/dist/{css-import-modal-CFB2YjDT.js → css-import-modal-D-_jby_w.js} +40 -38
  50. package/dist/{delete-design-token-BjMakV-b.js → delete-design-token-BowiWJOb.js} +3 -3
  51. package/dist/delete-design-token-DjHXH5dg.cjs +1 -0
  52. package/dist/delete-page-Cs0cenoN.js +71 -0
  53. package/dist/delete-page-DqBuzcBW.cjs +1 -0
  54. package/dist/design-token-usage-DDqd3J3T.cjs +1 -0
  55. package/dist/design-token-usage-cjJe9KUU.js +114 -0
  56. package/dist/digital-asset-manager-DjPTwqCP.cjs +1 -0
  57. package/dist/digital-asset-manager-rw_FW-e4.js +877 -0
  58. package/dist/duplicate-page-B19XZEEh.js +134 -0
  59. package/dist/duplicate-page-CpgDT34h.cjs +1 -0
  60. package/dist/dynamic-page-selector-CJXMaEu0.cjs +1 -0
  61. package/dist/dynamic-page-selector-D1pcyyIi.js +86 -0
  62. package/dist/fonts-B-Xt29pe.cjs +1 -0
  63. package/dist/fonts-DRly3Wzd.js +78 -0
  64. package/dist/get-chai-builder-tailwind-config-DNp8Vhme.cjs +1 -0
  65. package/dist/{get-chai-builder-tailwind-config-BqaIvg8p.js → get-chai-builder-tailwind-config-k8l5sdcw.js} +14 -11
  66. package/dist/get-chai-builder-theme-BApShjRz.cjs +1 -0
  67. package/dist/get-chai-builder-theme-DDVRJQ6Z.js +24 -0
  68. package/dist/get-seo-defaults-9zHebckY.js +65 -0
  69. package/dist/get-seo-defaults-Cw7vFt-B.cjs +1 -0
  70. package/dist/image-compression-DZ9WMmyn.cjs +1 -0
  71. package/dist/image-compression-DsZ1oqpb.js +37 -0
  72. package/dist/image-editor-BihtCpkn.cjs +1 -0
  73. package/dist/image-editor-lztBulYI.js +108 -0
  74. package/dist/index-BEldAI1n.cjs +160 -0
  75. package/dist/index-BqlDf5fg.js +18418 -0
  76. package/dist/index-CsChke2B.js +4741 -0
  77. package/dist/index-DTz1hNwi.cjs +5 -0
  78. package/dist/json-diff-viewer-BDbS64LG.cjs +8 -0
  79. package/dist/json-diff-viewer-DI6nPbs8.js +259 -0
  80. package/dist/lang-panel-B51V4-PX.js +216 -0
  81. package/dist/lang-panel-DFttT_MB.cjs +1 -0
  82. package/dist/manage-design-tokens-D8GDkdB2.cjs +1 -0
  83. package/dist/{manage-design-tokens-BHCCrWFS.js → manage-design-tokens-DCPswHMS.js} +24 -24
  84. package/dist/mark-as-template-DBF2r7aW.js +157 -0
  85. package/dist/mark-as-template-rI-cx5-B.cjs +1 -0
  86. package/dist/models-5gOsRC56.cjs +1 -0
  87. package/dist/models-D95ZYr_x.js +70 -0
  88. package/dist/nested-path-selector-content-BQhK20BE.js +88 -0
  89. package/dist/nested-path-selector-content-o7k86m-q.cjs +1 -0
  90. package/dist/no-language-page-content-C2hLFt7A.js +43 -0
  91. package/dist/no-language-page-content-DmgQLhac.cjs +1 -0
  92. package/dist/no-language-page-dialog-BmB5fz92.js +10 -0
  93. package/dist/no-language-page-dialog-D2Ijv2V4.cjs +1 -0
  94. package/dist/page-creator-CGxrkmut.js +796 -0
  95. package/dist/page-creator-jlPEOhfz.cjs +1 -0
  96. package/dist/page-lock-CnOS_qxc.js +30 -0
  97. package/dist/page-lock-CoAmLhTA.cjs +1 -0
  98. package/dist/page-locked-dialog-B2L9yqX1.js +136 -0
  99. package/dist/page-locked-dialog-BNHr0OAi.cjs +1 -0
  100. package/dist/page-manager-new-CkNowPYt.cjs +1 -0
  101. package/dist/page-manager-new-D_TxW1yk.js +395 -0
  102. package/dist/page-manager-search-and-filter-Bme84N1w.js +202 -0
  103. package/dist/page-manager-search-and-filter-CpjNOQqF.cjs +1 -0
  104. package/dist/page-revisions-content-B_EkI6eN.js +456 -0
  105. package/dist/page-revisions-content-DYt-0IJ3.cjs +1 -0
  106. package/dist/pages.cjs +1 -0
  107. package/dist/pages.d.ts +545 -0
  108. package/dist/pages.js +27 -0
  109. package/dist/plugin-BGlQf0iy.cjs +22 -0
  110. package/dist/{plugin-BOcGV_IY.js → plugin-C-ht41UZ.js} +31 -45
  111. package/dist/publish-pages-content-1_-8jO3C.cjs +1 -0
  112. package/dist/publish-pages-content-Ct-rYFXD.js +179 -0
  113. package/dist/register-chai-top-bar-CX_JkRJn.js +237 -0
  114. package/dist/register-chai-top-bar-DWTuRU53.cjs +1 -0
  115. package/dist/register-partial-type-BjtdfKHE.js +36 -0
  116. package/dist/register-partial-type-ig9fUWIJ.cjs +1 -0
  117. package/dist/render.cjs +2 -2
  118. package/dist/render.d.ts +25 -23
  119. package/dist/render.js +108 -103
  120. package/dist/rte-widget-modal-88x3Ag4b.cjs +1 -0
  121. package/dist/rte-widget-modal-BpjTwrAJ.js +39 -0
  122. package/dist/runtime-client.cjs +1 -0
  123. package/dist/runtime-client.d.ts +158 -0
  124. package/dist/runtime-client.js +32 -0
  125. package/dist/runtime.cjs +1 -1
  126. package/dist/runtime.d.ts +322 -7
  127. package/dist/runtime.js +74 -1
  128. package/dist/save-to-lib-B5ggugo6.js +423 -0
  129. package/dist/save-to-lib-BSCJSBw9.cjs +1 -0
  130. package/dist/sdk.css +1 -1
  131. package/dist/selected-block-display-DrMFz5_U.js +320 -0
  132. package/dist/selected-block-display-wHwP16Pz.cjs +16 -0
  133. package/dist/seo-panel-Bktda7aV.cjs +2 -0
  134. package/dist/seo-panel-Dzx-sUAi.js +799 -0
  135. package/dist/shared-json-ld-BMt3lSVf.js +566 -0
  136. package/dist/shared-json-ld-RDvoItXK.cjs +1 -0
  137. package/dist/slug-input-BtbW6w7B.cjs +1 -0
  138. package/dist/slug-input-CyKRaEV_.js +87 -0
  139. package/dist/supabase-actions.cjs +1 -0
  140. package/dist/supabase-actions.d.ts +289 -0
  141. package/dist/supabase-actions.js +524 -0
  142. package/dist/take-over-request-BA_e938L.js +64 -0
  143. package/dist/take-over-request-DsDWVplQ.cjs +1 -0
  144. package/dist/theme-panel-footer-6iHKSeON.cjs +1 -0
  145. package/dist/theme-panel-footer-v8PRUzwR.js +26 -0
  146. package/dist/translation-warning-modal-B1tAPMx7.js +27 -0
  147. package/dist/translation-warning-modal-DA7Vj_9F.cjs +1 -0
  148. package/dist/types.cjs +1 -0
  149. package/dist/types.d.ts +598 -0
  150. package/dist/types.js +1 -0
  151. package/dist/unmark-as-template-Bdg5nLBS.cjs +1 -0
  152. package/dist/unmark-as-template-C6pllRk5.js +40 -0
  153. package/dist/unpublish-page-BOrfamLs.cjs +1 -0
  154. package/dist/unpublish-page-C3Wub7gR.js +28 -0
  155. package/dist/use-page-expand-manager-B6XTvk0E.cjs +1 -0
  156. package/dist/use-page-expand-manager-Cf4MUEJw.js +85 -0
  157. package/dist/utils.cjs +1 -0
  158. package/dist/{tailwind.d.ts → utils.d.ts} +12 -12
  159. package/dist/utils.js +7 -0
  160. package/dist/web-blocks.cjs +1 -1
  161. package/dist/web-blocks.d.ts +0 -6
  162. package/dist/web-blocks.js +240 -239
  163. package/dist/web-preview-869kgvNU.cjs +1 -0
  164. package/dist/web-preview-CVAQ53g_.js +73 -0
  165. package/package.json +152 -76
  166. package/dist/IconPicker-6JSublJp.js +0 -64
  167. package/dist/IconPicker-DpQQDK_Q.cjs +0 -1
  168. package/dist/apply-binding-Bn1KC8uC.cjs +0 -1
  169. package/dist/code-display-Dw1tAwiJ.cjs +0 -1
  170. package/dist/code-editor-CEsA4Nlq.cjs +0 -1
  171. package/dist/code-editor-DPr4HDOV.js +0 -59
  172. package/dist/css-import-modal-bGWZSlqv.cjs +0 -13
  173. package/dist/delete-design-token-Bzxspf8D.cjs +0 -1
  174. package/dist/design-token-usage-DyQcFypc.cjs +0 -1
  175. package/dist/design-token-usage-_FBnvL92.js +0 -120
  176. package/dist/get-chai-builder-tailwind-config-C6MHaUM0.cjs +0 -1
  177. package/dist/get-chai-builder-theme-B1tr_NJB.cjs +0 -1
  178. package/dist/get-chai-builder-theme-BarMkcGH.js +0 -12
  179. package/dist/index-CIez6R-d.js +0 -18327
  180. package/dist/index-zLw6cVaV.cjs +0 -160
  181. package/dist/manage-design-tokens-Cfjg_at9.cjs +0 -1
  182. package/dist/mockServiceWorker.js +0 -349
  183. package/dist/plugin-CSgw-f78.cjs +0 -22
  184. package/dist/rte-widget-modal-CsBCpJSY.js +0 -41
  185. package/dist/rte-widget-modal-Dif3ZoFQ.cjs +0 -1
  186. package/dist/tailwind.cjs +0 -1
  187. package/dist/tailwind.js +0 -8
  188. package/dist/tooltip-Ba1-8jmj.cjs +0 -1
  189. package/dist/tooltip-DUosa-uC.js +0 -1067
  190. package/dist/ui.cjs +0 -1
  191. package/dist/ui.d.ts +0 -415
  192. package/dist/ui.js +0 -129
  193. package/dist/vite.svg +0 -1
@@ -1,25 +1,26 @@
1
- import { registerChaiBlockSchema as p, StylesProp as u, registerChaiBlock as d, getRegisteredChaiBlock as U, stylesProp as L, closestBlockProp as Z } from "@chaibuilder/runtime";
2
- import { jsx as i, jsxs as h, Fragment as N } from "react/jsx-runtime";
3
- 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";
4
5
  import * as b from "react";
5
6
  import { createElement as x } from "react";
6
- import { ButtonIcon as M, CodeIcon as H, FrameIcon as $, SketchLogoIcon as q, LayoutIcon as G, RowsIcon as j, DividerHorizontalIcon as W, CheckboxIcon as O, FileTextIcon as Y, InputIcon as D, LetterCaseToggleIcon as Q, RadiobuttonIcon as J, DropdownMenuIcon as X, HeadingIcon as K, TableIcon as ee, BorderTopIcon as te, BorderAllIcon as oe, ViewHorizontalIcon as le, DragHandleHorizontalIcon as re, ImageIcon as ne, Link1Icon as ie, ColumnsIcon as ae, TextIcon as se, CursorTextIcon as ce, SpaceBetweenVerticallyIcon as de, VideoIcon as pe, ChevronLeftIcon as ue, ChevronRightIcon as me, LoopIcon as V } from "@radix-ui/react-icons";
7
- import { isEmpty as w, get as k, map as R, isNull as ye, omit as z, pick as F } from "lodash-es";
8
- 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) => {
9
10
  const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
10
11
  let s = r;
11
12
  r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
12
13
  let c = {};
13
14
  return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...o, ...a, style: c }, s);
14
- }, be = {
15
+ }, ge = {
15
16
  type: "Box",
16
17
  description: "Similar to a div or section elements in HTML",
17
18
  label: "Box",
18
19
  category: "core",
19
20
  group: "basic",
20
- ...p({
21
+ ...u({
21
22
  properties: {
22
- styles: u(""),
23
+ styles: d(""),
23
24
  tag: {
24
25
  type: "string",
25
26
  default: "div",
@@ -48,13 +49,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
48
49
  type: "string",
49
50
  default: "",
50
51
  title: "Background Image",
51
- ui: { "ui:widget": "image" }
52
+ ui: { "ui:widget": "image", "ui:allowEmpty": !0 }
52
53
  }
53
54
  }
54
55
  }),
55
56
  canAcceptBlock: () => !0
56
- }, fe = (e) => {
57
- 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: [
58
59
  r && /* @__PURE__ */ i("span", { children: r }),
59
60
  g && /* @__PURE__ */ i(
60
61
  "div",
@@ -75,16 +76,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
75
76
  v
76
77
  );
77
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 });
78
- }, he = {
79
+ }, fe = {
79
80
  type: "Button",
80
81
  description: "similar to a button element in HTML",
81
82
  label: "Button",
82
83
  category: "core",
83
- icon: M,
84
+ icon: H,
84
85
  group: "basic",
85
- ...p({
86
+ ...u({
86
87
  properties: {
87
- 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"),
88
89
  content: {
89
90
  type: "string",
90
91
  title: "Button label",
@@ -131,7 +132,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
131
132
  }),
132
133
  i18nProps: ["content", "link"],
133
134
  aiProps: ["content"]
134
- }, ke = (e) => {
135
+ }, he = (e) => {
135
136
  const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
136
137
  return r ? /* @__PURE__ */ h("div", { className: "relative", ...o, children: [
137
138
  r ? /* @__PURE__ */ i("div", { ...t, className: "absolute z-20 h-full w-full" }) : null,
@@ -144,16 +145,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
144
145
  ...t,
145
146
  dangerouslySetInnerHTML: { __html: l }
146
147
  });
147
- }, xe = {
148
+ }, ke = {
148
149
  type: "CustomHTML",
149
150
  description: "similar to a div or section elements in HTML",
150
151
  label: "Custom HTML",
151
152
  category: "core",
152
- icon: H,
153
+ icon: $,
153
154
  group: "advanced",
154
- ...p({
155
+ ...u({
155
156
  properties: {
156
- styles: u(""),
157
+ styles: d(""),
157
158
  htmlCode: {
158
159
  type: "string",
159
160
  default: "<div><p>Enter your HTML code here...</p></div>",
@@ -162,18 +163,18 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
162
163
  }
163
164
  }),
164
165
  i18nProps: ["htmlCode"]
165
- }, we = (e) => {
166
+ }, xe = (e) => {
166
167
  const { scripts: o, inBuilder: t, blockProps: l } = e;
167
- 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 } });
168
- }, 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 = {
169
170
  type: "CustomScript",
170
171
  description: "similar to a script element in HTML",
171
172
  label: "Custom Script",
172
173
  category: "core",
173
- icon: H,
174
+ icon: $,
174
175
  hidden: !0,
175
176
  group: "advanced",
176
- ...p({
177
+ ...u({
177
178
  properties: {
178
179
  scripts: {
179
180
  type: "string",
@@ -184,7 +185,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
184
185
  }
185
186
  }
186
187
  })
187
- }, Ce = (e) => {
188
+ }, ve = (e) => {
188
189
  const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
189
190
  return t && !r ? /* @__PURE__ */ h(
190
191
  "div",
@@ -200,15 +201,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
200
201
  ]
201
202
  }
202
203
  ) : b.createElement("span", { ...o }, l);
203
- }, Ie = {
204
+ }, Ce = {
204
205
  type: "GlobalBlock",
205
206
  description: "A global block component",
206
207
  label: "Global Block",
207
- icon: $,
208
+ icon: j,
208
209
  category: "core",
209
210
  group: "basic",
210
211
  hidden: !0,
211
- ...p({
212
+ ...u({
212
213
  properties: {
213
214
  globalBlock: {
214
215
  type: "string",
@@ -218,11 +219,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
218
219
  }
219
220
  }
220
221
  })
221
- }, T = (e, ...o) => ({
222
+ }, _ = (e, ...o) => ({
222
223
  ...e,
223
- className: _(e.className, ...o)
224
- }), Pe = (e) => {
225
- 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, "");
226
227
  if (w(t))
227
228
  return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
228
229
  const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
@@ -235,16 +236,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
235
236
  },
236
237
  dangerouslySetInnerHTML: { __html: c }
237
238
  });
238
- }, Le = {
239
+ }, Pe = {
239
240
  type: "Icon",
240
241
  label: "web_blocks.icon",
241
242
  category: "core",
242
243
  description: "Icon block is used to display an icon/svg.",
243
- icon: q,
244
+ icon: U,
244
245
  group: "media",
245
- ...p({
246
+ ...u({
246
247
  properties: {
247
- styles: u(""),
248
+ styles: d(""),
248
249
  icon: {
249
250
  type: "string",
250
251
  title: "Icon",
@@ -263,7 +264,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
263
264
  }
264
265
  }
265
266
  })
266
- }, Be = (e) => {
267
+ }, Le = (e) => {
267
268
  const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
268
269
  return t && !r ? /* @__PURE__ */ h(
269
270
  "div",
@@ -279,15 +280,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
279
280
  ]
280
281
  }
281
282
  ) : b.createElement("span", { ...o }, l);
282
- }, Se = {
283
+ }, Be = {
283
284
  type: "PartialBlock",
284
285
  description: "A partial block component. Partial blocks are global blocks that can be used in multiple pages.",
285
286
  label: "Partial Block",
286
- icon: $,
287
+ icon: j,
287
288
  category: "core",
288
289
  group: "basic",
289
290
  hidden: !0,
290
- ...p({
291
+ ...u({
291
292
  properties: {
292
293
  partialBlockId: {
293
294
  type: "string",
@@ -297,7 +298,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
297
298
  }
298
299
  }
299
300
  })
300
- }, B = {
301
+ }, L = {
301
302
  SMALL: {
302
303
  1: "col-span-1",
303
304
  2: "col-span-2",
@@ -340,29 +341,29 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
340
341
  11: "lg:col-span-11",
341
342
  12: "lg:col-span-12"
342
343
  }
343
- }, Ne = (e) => {
344
+ }, Se = (e) => {
344
345
  const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
345
346
  k(l, "className", ""),
346
- k(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
347
- n ? k(B, ["MEDIUM", n || r], "") : "",
348
- 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], "") : ""
349
350
  ].join(" ") };
350
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" }) });
351
- }, _e = {
352
+ }, Ne = {
352
353
  type: "Column",
353
354
  description: "A column component",
354
355
  label: "Column",
355
356
  group: "basic",
356
357
  category: "core",
357
- icon: G,
358
+ icon: Z,
358
359
  wrapper: !0,
359
360
  hidden: !0,
360
361
  canDelete: () => !0,
361
362
  canAcceptBlock: () => !0,
362
363
  canBeNested: (e) => e === "Row",
363
- ...p({
364
+ ...u({
364
365
  properties: {
365
- styles: u(""),
366
+ styles: d(""),
366
367
  colSpan: {
367
368
  type: "number",
368
369
  title: "Column Span",
@@ -385,15 +386,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
385
386
  }
386
387
  }
387
388
  })
388
- }, Te = (e) => {
389
+ }, _e = (e) => {
389
390
  const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [k(l, "className", ""), " grid grid-cols-12"].join() };
390
- return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` : a.style = { gap: `${r}px` }, /* @__PURE__ */ i("div", { ...o, ...l, ...a, children: t });
391
- }, Re = {
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
+ }, Te = {
392
393
  type: "Row",
393
394
  description: "A row component",
394
395
  label: "Row",
395
396
  group: "basic",
396
- icon: j,
397
+ icon: D,
397
398
  hidden: !0,
398
399
  blocks: () => [
399
400
  { _type: "Row", _id: "row", styles: "#styles:,p-1" },
@@ -403,9 +404,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
403
404
  category: "core",
404
405
  wrapper: !0,
405
406
  canAcceptBlock: (e) => e === "Column",
406
- ...p({
407
+ ...u({
407
408
  properties: {
408
- styles: u(""),
409
+ styles: d(""),
409
410
  colCount: {
410
411
  type: "number",
411
412
  default: 2,
@@ -420,43 +421,43 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
420
421
  }
421
422
  }
422
423
  })
423
- }, Ae = (e) => {
424
+ }, Re = (e) => {
424
425
  const { blockProps: o, styles: t } = e;
425
426
  return x("hr", { ...t, ...o });
426
- }, Ee = {
427
+ }, Ae = {
427
428
  type: "Divider",
428
429
  description: "A horizontal line component",
429
430
  label: "Divider",
430
431
  category: "core",
431
- icon: W,
432
+ icon: q,
432
433
  group: "basic",
433
- ...p({
434
+ ...u({
434
435
  properties: {
435
- 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")
436
437
  }
437
438
  })
438
- }, Me = (e) => {
439
+ }, Ee = (e) => {
439
440
  const { blockProps: o, styles: t, backgroundImage: l } = e;
440
441
  let r = {};
441
442
  return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...o, ...t, style: r });
442
- }, He = {
443
+ }, Me = {
443
444
  type: "EmptyBox",
444
445
  description: "A box component with no children",
445
446
  label: "Empty Box",
446
447
  category: "core",
447
448
  group: "basic",
448
- ...p({
449
+ ...u({
449
450
  properties: {
450
- styles: u(""),
451
+ styles: d(""),
451
452
  backgroundImage: {
452
453
  type: "string",
453
454
  title: "Background Image",
454
455
  default: "",
455
- ui: { "ui:widget": "image" }
456
+ ui: { "ui:widget": "image", "ui:allowEmpty": !0 }
456
457
  }
457
458
  }
458
459
  })
459
- }, $e = (e) => {
460
+ }, He = (e) => {
460
461
  const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
461
462
  return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
462
463
  /* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
@@ -473,16 +474,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
473
474
  defaultChecked: s
474
475
  }
475
476
  );
476
- }, je = {
477
+ }, $e = {
477
478
  type: "Checkbox",
478
479
  label: "web_blocks.checkbox",
479
480
  category: "core",
480
- icon: O,
481
+ icon: G,
481
482
  group: "form",
482
- ...p({
483
+ ...u({
483
484
  properties: {
484
- styles: u("flex items-center gap-x-2"),
485
- inputStyles: u(""),
485
+ styles: d("flex items-center gap-x-2"),
486
+ inputStyles: d(""),
486
487
  fieldName: {
487
488
  type: "string",
488
489
  title: "Field Name",
@@ -512,7 +513,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
512
513
  }),
513
514
  aiProps: ["label"],
514
515
  i18nProps: ["label"]
515
- }, De = (e) => {
516
+ }, je = (e) => {
516
517
  const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
517
518
  let c = o;
518
519
  return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ h(
@@ -537,11 +538,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
537
538
  ]
538
539
  }
539
540
  );
540
- }, Ve = {
541
+ }, De = {
541
542
  type: "Form",
542
543
  label: "Form",
543
544
  category: "core",
544
- icon: Y,
545
+ icon: W,
545
546
  group: "form",
546
547
  blocks: () => [
547
548
  { _type: "Form", _id: "form", styles: "#styles:p-1 space-y-2," },
@@ -553,9 +554,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
553
554
  styles: "#styles:bg-black text-white rounded px-3 py-1,"
554
555
  }
555
556
  ],
556
- ...p({
557
+ ...u({
557
558
  properties: {
558
- styles: u(""),
559
+ styles: d(""),
559
560
  action: {
560
561
  type: "string",
561
562
  title: "Submit URL",
@@ -578,7 +579,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
578
579
  i18nProps: ["errorMessage", "successMessage"],
579
580
  aiProps: ["errorMessage", "successMessage"],
580
581
  canAcceptBlock: () => !0
581
- }, ze = (e) => {
582
+ }, Ve = (e) => {
582
583
  const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
583
584
  return /* @__PURE__ */ h("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
584
585
  l,
@@ -591,15 +592,15 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
591
592
  }
592
593
  )
593
594
  ] });
594
- }, Fe = {
595
+ }, ze = {
595
596
  type: "FormButton",
596
597
  label: "Submit Button",
597
598
  category: "core",
598
- icon: M,
599
+ icon: H,
599
600
  group: "form",
600
- ...p({
601
+ ...u({
601
602
  properties: {
602
- styles: u(
603
+ styles: d(
603
604
  "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
604
605
  ),
605
606
  label: {
@@ -630,7 +631,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
630
631
  }),
631
632
  i18nProps: ["label"],
632
633
  aiProps: ["label"]
633
- }, Ue = (e) => {
634
+ }, Fe = (e) => {
634
635
  const o = { type: "text", autocomplete: "on" };
635
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" } : {
636
637
  // Special cases
@@ -698,7 +699,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
698
699
  organization: { type: "text", autocomplete: "organization" },
699
700
  language: { type: "text", autocomplete: "language" }
700
701
  }[e] || o : o;
701
- }, Ze = (e) => {
702
+ }, Ue = (e) => {
702
703
  const {
703
704
  blockProps: o,
704
705
  fieldName: t,
@@ -710,7 +711,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
710
711
  required: c,
711
712
  inputType: y,
712
713
  defaultValue: g
713
- } = e, { type: v, autocomplete: f } = Ue(y);
714
+ } = e, { type: v, autocomplete: f } = Fe(y);
714
715
  return s ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
715
716
  s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
716
717
  /* @__PURE__ */ i(
@@ -739,16 +740,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
739
740
  defaultValue: g
740
741
  }
741
742
  );
742
- }, qe = {
743
+ }, Ze = {
743
744
  type: "Input",
744
745
  label: "web_blocks.input",
745
746
  category: "core",
746
- icon: D,
747
+ icon: V,
747
748
  group: "form",
748
- ...p({
749
+ ...u({
749
750
  properties: {
750
- styles: u(""),
751
- inputStyles: u("w-full p-1"),
751
+ styles: d(""),
752
+ inputStyles: d("w-full p-1"),
752
753
  fieldName: {
753
754
  type: "string",
754
755
  title: "Field Name",
@@ -854,21 +855,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
854
855
  }),
855
856
  aiProps: ["label", "placeholder"],
856
857
  i18nProps: ["label", "placeholder"]
857
- }, Ge = (e) => {
858
+ }, qe = (e) => {
858
859
  const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
859
860
  return r ? b.createElement("label", n, r) : b.createElement("label", {
860
861
  ...n,
861
862
  dangerouslySetInnerHTML: { __html: t }
862
863
  });
863
- }, We = {
864
+ }, Ge = {
864
865
  type: "Label",
865
866
  label: "Label",
866
867
  category: "core",
867
- icon: Q,
868
+ icon: O,
868
869
  group: "form",
869
- ...p({
870
+ ...u({
870
871
  properties: {
871
- styles: u(),
872
+ styles: d(),
872
873
  content: {
873
874
  type: "string",
874
875
  title: "Content",
@@ -878,7 +879,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
878
879
  }),
879
880
  aiProps: ["content"],
880
881
  i18nProps: ["content"]
881
- }, Oe = (e) => {
882
+ }, We = (e) => {
882
883
  const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
883
884
  return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
884
885
  /* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
@@ -895,16 +896,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
895
896
  checked: s
896
897
  }
897
898
  );
898
- }, Ye = {
899
+ }, Oe = {
899
900
  type: "Radio",
900
901
  label: "web_blocks.radio",
901
902
  category: "core",
902
- icon: J,
903
+ icon: Y,
903
904
  group: "form",
904
- ...p({
905
+ ...u({
905
906
  properties: {
906
- styles: u("flex items-center gap-x-2"),
907
- inputStyles: u(""),
907
+ styles: d("flex items-center gap-x-2"),
908
+ inputStyles: d(""),
908
909
  fieldName: {
909
910
  type: "string",
910
911
  title: "Field Name",
@@ -934,7 +935,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
934
935
  }),
935
936
  aiProps: ["label"],
936
937
  i18nProps: ["label"]
937
- }, Qe = (e) => {
938
+ }, Ye = (e) => {
938
939
  const {
939
940
  blockProps: o,
940
941
  fieldName: t,
@@ -960,7 +961,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
960
961
  defaultValue: f,
961
962
  children: [
962
963
  /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
963
- 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))
964
965
  ]
965
966
  }
966
967
  )
@@ -975,20 +976,20 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
975
976
  defaultValue: f,
976
977
  children: [
977
978
  /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: r }),
978
- 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))
979
980
  ]
980
981
  }
981
982
  );
982
- }, Je = {
983
+ }, Qe = {
983
984
  type: "Select",
984
985
  label: "web_blocks.select",
985
986
  category: "core",
986
- icon: X,
987
+ icon: Q,
987
988
  group: "form",
988
- ...p({
989
+ ...u({
989
990
  properties: {
990
- styles: u(""),
991
- inputStyles: u("w-full p-1"),
991
+ styles: d(""),
992
+ inputStyles: d("w-full p-1"),
992
993
  fieldName: {
993
994
  type: "string",
994
995
  title: "Field Name",
@@ -1048,7 +1049,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1048
1049
  }),
1049
1050
  aiProps: ["label", "placeholder"],
1050
1051
  i18nProps: ["label", "placeholder"]
1051
- }, Xe = (e) => {
1052
+ }, Je = (e) => {
1052
1053
  const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: y, defaultValue: g } = e;
1053
1054
  return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
1054
1055
  c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
@@ -1076,21 +1077,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1076
1077
  defaultValue: g
1077
1078
  }
1078
1079
  );
1079
- }, Ke = {
1080
+ }, Xe = {
1080
1081
  type: "TextArea",
1081
1082
  label: "web_blocks.textarea",
1082
1083
  category: "core",
1083
- icon: D,
1084
+ icon: V,
1084
1085
  group: "form",
1085
- ...p({
1086
+ ...u({
1086
1087
  properties: {
1087
1088
  fieldName: {
1088
1089
  type: "string",
1089
1090
  title: "Field Name",
1090
1091
  default: "fieldName"
1091
1092
  },
1092
- styles: u(""),
1093
- inputStyles: u("w-full p-1"),
1093
+ styles: d(""),
1094
+ inputStyles: d("w-full p-1"),
1094
1095
  showLabel: {
1095
1096
  type: "boolean",
1096
1097
  title: "Show Label",
@@ -1127,21 +1128,21 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1127
1128
  }),
1128
1129
  aiProps: ["label", "placeholder"],
1129
1130
  i18nProps: ["label", "placeholder"]
1130
- }, et = (e) => {
1131
+ }, Ke = (e) => {
1131
1132
  const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
1132
1133
  return n ? b.createElement(r, { ...t, ...o }, n) : b.createElement(r, {
1133
1134
  ...t,
1134
1135
  ...o,
1135
1136
  dangerouslySetInnerHTML: { __html: l }
1136
1137
  });
1137
- }, tt = {
1138
+ }, et = {
1138
1139
  type: "Heading",
1139
1140
  description: "A heading component similar to h1, h2, h3, h4, h5, h6 elements in HTML",
1140
1141
  label: "Heading",
1141
1142
  category: "core",
1142
- icon: K,
1143
+ icon: J,
1143
1144
  group: "typography",
1144
- ...p({
1145
+ ...u({
1145
1146
  properties: {
1146
1147
  tag: {
1147
1148
  type: "string",
@@ -1149,7 +1150,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1149
1150
  title: "Level",
1150
1151
  enum: ["h1", "h2", "h3", "h4", "h5", "h6"]
1151
1152
  },
1152
- styles: u("text-3xl"),
1153
+ styles: d("text-3xl"),
1153
1154
  content: {
1154
1155
  type: "string",
1155
1156
  default: "Heading goes here",
@@ -1161,37 +1162,37 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1161
1162
  aiProps: ["content"],
1162
1163
  i18nProps: ["content"],
1163
1164
  canAcceptBlock: () => !0
1164
- }, ot = (e) => {
1165
+ }, tt = (e) => {
1165
1166
  const { blockProps: o, styles: t } = e;
1166
1167
  return x("br", { ...o, ...t });
1167
- }, lt = {
1168
+ }, ot = {
1168
1169
  type: "LineBreak",
1169
1170
  label: "Line Break",
1170
1171
  category: "core",
1171
1172
  group: "basic",
1172
1173
  hidden: !0,
1173
- ...p({
1174
+ ...u({
1174
1175
  properties: {
1175
- styles: u("")
1176
+ styles: d("")
1176
1177
  }
1177
1178
  }),
1178
1179
  canAcceptBlock: () => !0,
1179
1180
  canDelete: () => !1,
1180
1181
  canMove: () => !1,
1181
1182
  canDuplicate: () => !1
1182
- }, rt = (e) => {
1183
+ }, lt = (e) => {
1183
1184
  const { blockProps: o, children: t, styles: l } = e;
1184
1185
  return t ? x("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1185
- }, nt = (e) => {
1186
+ }, rt = (e) => {
1186
1187
  const { blockProps: o, children: t, styles: l } = e;
1187
1188
  return t ? x("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1188
- }, it = (e) => {
1189
+ }, nt = (e) => {
1189
1190
  const { blockProps: o, children: t, styles: l } = e;
1190
1191
  return t ? x("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1191
- }, at = (e) => {
1192
+ }, it = (e) => {
1192
1193
  const { blockProps: o, children: t, styles: l } = e;
1193
1194
  return t ? x("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
1194
- }, st = (e) => {
1195
+ }, at = (e) => {
1195
1196
  const { blockProps: o, children: t, content: l, styles: r } = e;
1196
1197
  return !t && w(l) ? /* @__PURE__ */ i(C, {}) : t ? x("td", { ...o, ...r }, t) : x("td", {
1197
1198
  ...o,
@@ -1199,72 +1200,72 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ i("div",
1199
1200
  dangerouslySetInnerHTML: { __html: l }
1200
1201
  });
1201
1202
  };
1202
- d(rt, {
1203
+ p(lt, {
1203
1204
  type: "Table",
1204
1205
  label: "Table",
1205
1206
  category: "core",
1206
1207
  group: "table",
1207
1208
  hidden: !0,
1208
- icon: ee,
1209
- ...p({
1209
+ icon: X,
1210
+ ...u({
1210
1211
  properties: {
1211
- styles: u("")
1212
+ styles: d("")
1212
1213
  }
1213
1214
  }),
1214
1215
  blocks: P("Table")
1215
1216
  });
1216
- d(nt, {
1217
+ p(rt, {
1217
1218
  type: "TableHead",
1218
1219
  label: "Table Head",
1219
1220
  category: "core",
1220
1221
  group: "table",
1221
1222
  hidden: !0,
1222
- icon: te,
1223
- ...p({
1223
+ icon: K,
1224
+ ...u({
1224
1225
  properties: {
1225
- styles: u("")
1226
+ styles: d("")
1226
1227
  }
1227
1228
  }),
1228
1229
  blocks: P("TableHead")
1229
1230
  });
1230
- d(it, {
1231
+ p(nt, {
1231
1232
  type: "TableBody",
1232
1233
  label: "Table Body",
1233
1234
  category: "core",
1234
1235
  group: "table",
1235
1236
  hidden: !0,
1236
- icon: oe,
1237
- ...p({
1237
+ icon: ee,
1238
+ ...u({
1238
1239
  properties: {
1239
- styles: u("")
1240
+ styles: d("")
1240
1241
  }
1241
1242
  }),
1242
1243
  blocks: P("TableBody")
1243
1244
  });
1244
- d(at, {
1245
+ p(it, {
1245
1246
  type: "TableRow",
1246
1247
  label: "Table Row",
1247
1248
  category: "core",
1248
1249
  group: "table",
1249
1250
  hidden: !0,
1250
- icon: le,
1251
- ...p({
1251
+ icon: te,
1252
+ ...u({
1252
1253
  properties: {
1253
- styles: u("")
1254
+ styles: d("")
1254
1255
  }
1255
1256
  }),
1256
1257
  blocks: P("TableRow")
1257
1258
  });
1258
- d(st, {
1259
+ p(at, {
1259
1260
  type: "TableCell",
1260
1261
  label: "Table Cell",
1261
1262
  category: "core",
1262
1263
  group: "table",
1263
1264
  hidden: !0,
1264
- icon: re,
1265
- ...p({
1265
+ icon: oe,
1266
+ ...u({
1266
1267
  properties: {
1267
- styles: u(""),
1268
+ styles: d(""),
1268
1269
  content: {
1269
1270
  type: "string",
1270
1271
  default: "Heading goes here",
@@ -1320,7 +1321,7 @@ function P(e) {
1320
1321
  }
1321
1322
  return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
1322
1323
  }
1323
- const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", dt = (e) => {
1324
+ const st = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", ct = (e) => {
1324
1325
  const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: y, mobileHeight: g } = e;
1325
1326
  return w(t) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ h("picture", { children: [
1326
1327
  l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: y, height: g }),
@@ -1337,20 +1338,20 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1337
1338
  }
1338
1339
  )
1339
1340
  ] });
1340
- }, pt = {
1341
+ }, dt = {
1341
1342
  type: "Image",
1342
1343
  description: "A image component",
1343
1344
  label: "Image",
1344
1345
  category: "core",
1345
- icon: ne,
1346
+ icon: le,
1346
1347
  group: "media",
1347
- ...p({
1348
+ ...u({
1348
1349
  properties: {
1349
- styles: u("w-full h-full object-cover"),
1350
+ styles: d("w-full h-full object-cover"),
1350
1351
  image: {
1351
1352
  type: "string",
1352
1353
  title: "Image",
1353
- default: ct,
1354
+ default: st,
1354
1355
  ui: { "ui:widget": "image" }
1355
1356
  },
1356
1357
  width: {
@@ -1398,7 +1399,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1398
1399
  }),
1399
1400
  aiProps: ["alt"],
1400
1401
  i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
1401
- }, ut = (e) => {
1402
+ }, pt = (e) => {
1402
1403
  const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
1403
1404
  let s = {};
1404
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(
@@ -1421,16 +1422,16 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1421
1422
  },
1422
1423
  a
1423
1424
  );
1424
- }, mt = {
1425
+ }, ut = {
1425
1426
  type: "Link",
1426
1427
  description: "A link component",
1427
1428
  label: "Link",
1428
1429
  category: "core",
1429
- icon: ie,
1430
+ icon: re,
1430
1431
  group: "basic",
1431
- ...p({
1432
+ ...u({
1432
1433
  properties: {
1433
- styles: u("block"),
1434
+ styles: d("block"),
1434
1435
  content: {
1435
1436
  type: "string",
1436
1437
  default: "Link text goes here",
@@ -1462,19 +1463,19 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1462
1463
  aiProps: ["content"],
1463
1464
  i18nProps: ["content", "link"],
1464
1465
  canAcceptBlock: (e) => e !== "Link"
1465
- }, yt = (e) => {
1466
+ }, mt = (e) => {
1466
1467
  const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
1467
1468
  return !t && w(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : b.createElement(r || "ul", { ...o, ...l }, t);
1468
- }, gt = {
1469
+ }, yt = {
1469
1470
  type: "List",
1470
1471
  description: "A list component",
1471
1472
  label: "List",
1472
- icon: j,
1473
+ icon: D,
1473
1474
  category: "core",
1474
1475
  group: "basic",
1475
- ...p({
1476
+ ...u({
1476
1477
  properties: {
1477
- styles: u("")
1478
+ styles: d("")
1478
1479
  }
1479
1480
  }),
1480
1481
  canAcceptBlock: (e) => e === "ListItem",
@@ -1502,23 +1503,23 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1502
1503
  content: "Item 3"
1503
1504
  }
1504
1505
  ]
1505
- }, bt = (e) => {
1506
+ }, gt = (e) => {
1506
1507
  const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
1507
1508
  return r ? b.createElement(n || "li", { ...l, ...o }, r) : b.createElement(n || "li", {
1508
1509
  ...l,
1509
1510
  ...o,
1510
1511
  dangerouslySetInnerHTML: { __html: t }
1511
1512
  });
1512
- }, ft = {
1513
+ }, bt = {
1513
1514
  type: "ListItem",
1514
1515
  description: "A list item component",
1515
1516
  label: "List Item",
1516
- icon: ae,
1517
+ icon: ne,
1517
1518
  category: "core",
1518
1519
  group: "basic",
1519
- ...p({
1520
+ ...u({
1520
1521
  properties: {
1521
- styles: u(""),
1522
+ styles: d(""),
1522
1523
  content: {
1523
1524
  type: "string",
1524
1525
  default: "List item",
@@ -1533,25 +1534,25 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1533
1534
  aiProps: ["content"],
1534
1535
  canAcceptBlock: (e) => e !== "ListItem",
1535
1536
  canBeNested: (e) => e === "List" || e === "Repeater"
1536
- }, ht = (e) => {
1537
+ }, ft = (e) => {
1537
1538
  const { blockProps: o, styles: t, content: l } = e;
1538
- if (!ye(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
1539
- const r = T(t, "rte");
1539
+ if (!F(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
1540
+ const r = _(t, "rte");
1540
1541
  return b.createElement("div", {
1541
1542
  ...r,
1542
1543
  ...o,
1543
1544
  dangerouslySetInnerHTML: { __html: l }
1544
1545
  });
1545
- }, kt = {
1546
+ }, ht = {
1546
1547
  type: "Paragraph",
1547
1548
  description: "A paragraph component",
1548
1549
  label: "Paragraph",
1549
1550
  category: "core",
1550
- icon: se,
1551
+ icon: ie,
1551
1552
  group: "typography",
1552
- ...p({
1553
+ ...u({
1553
1554
  properties: {
1554
- styles: u(""),
1555
+ styles: d(""),
1555
1556
  content: {
1556
1557
  type: "string",
1557
1558
  title: "Content",
@@ -1563,20 +1564,20 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1563
1564
  i18nProps: ["content"],
1564
1565
  aiProps: ["content"],
1565
1566
  canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
1566
- }, xt = (e) => {
1567
- 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");
1568
1569
  return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
1569
- }, wt = {
1570
+ }, xt = {
1570
1571
  type: "RichText",
1571
1572
  description: "A rich text block",
1572
1573
  label: "Rich Text",
1573
1574
  hidden: !0,
1574
1575
  category: "core",
1575
- icon: ce,
1576
+ icon: ae,
1576
1577
  group: "typography",
1577
- ...p({
1578
+ ...u({
1578
1579
  properties: {
1579
- styles: u(""),
1580
+ styles: d(""),
1580
1581
  content: {
1581
1582
  type: "string",
1582
1583
  title: "Content",
@@ -1587,22 +1588,22 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1587
1588
  }),
1588
1589
  aiProps: ["content"],
1589
1590
  i18nProps: ["content"]
1590
- }, vt = (e) => {
1591
+ }, wt = (e) => {
1591
1592
  const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
1592
1593
  return r ? b.createElement("span", { ...t, ...o }, r) : b.createElement(n || "span", {
1593
1594
  ...t,
1594
1595
  ...o,
1595
1596
  dangerouslySetInnerHTML: { __html: l || "" }
1596
1597
  });
1597
- }, Ct = {
1598
+ }, vt = {
1598
1599
  type: "Span",
1599
1600
  description: "A span component",
1600
1601
  label: "Span",
1601
1602
  category: "core",
1602
1603
  group: "basic",
1603
- ...p({
1604
+ ...u({
1604
1605
  properties: {
1605
- styles: u(""),
1606
+ styles: d(""),
1606
1607
  content: {
1607
1608
  type: "string",
1608
1609
  title: "Content",
@@ -1614,17 +1615,17 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1614
1615
  aiProps: ["content"],
1615
1616
  i18nProps: ["content"],
1616
1617
  canAcceptBlock: () => !0
1617
- }, 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 = {
1618
1619
  type: "Text",
1619
1620
  description: "A text component with no styling",
1620
1621
  label: "Text",
1621
1622
  category: "core",
1622
1623
  group: "typography",
1623
1624
  blocks: () => [{ _id: "a", _type: "Text", _name: "Text", content: "" }],
1624
- icon: de,
1625
- ...p({
1625
+ icon: se,
1626
+ ...u({
1626
1627
  properties: {
1627
- styles: u("text-black"),
1628
+ styles: d("text-black"),
1628
1629
  content: {
1629
1630
  title: "Content",
1630
1631
  type: "string",
@@ -1634,7 +1635,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1634
1635
  }),
1635
1636
  aiProps: ["content"],
1636
1637
  i18nProps: ["content"]
1637
- }, S = {
1638
+ }, B = {
1638
1639
  type: "object",
1639
1640
  title: "Controls",
1640
1641
  default: {
@@ -1665,18 +1666,18 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1665
1666
  default: !1
1666
1667
  }
1667
1668
  }
1668
- }, 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) => {
1669
1670
  const t = k(o, "autoplay", !1), l = k(o, "controls", !1), r = k(o, "loop", !1), n = t || k(o, "muted", !0);
1670
- if (A.test(e)) {
1671
- const a = e.match(A);
1671
+ if (R.test(e)) {
1672
+ const a = e.match(R);
1672
1673
  if (a) {
1673
1674
  const s = a[4];
1674
1675
  let c = `https://www.youtube.com/embed/${s}`, y = t ? "autoplay=1" : "";
1675
1676
  return y += r ? `&loop=1&playlist=${s}` : "", y += n ? "&mute=1&muted=1" : "", y += l ? "&controls=1" : "&controls=0", `${c}?${y}`;
1676
1677
  }
1677
1678
  }
1678
- if (E.test(e)) {
1679
- const a = e.match(E);
1679
+ if (A.test(e)) {
1680
+ const a = e.match(A);
1680
1681
  if (a) {
1681
1682
  const s = a[1];
1682
1683
  let c = "";
@@ -1684,18 +1685,18 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1684
1685
  }
1685
1686
  }
1686
1687
  return null;
1687
- }, Bt = (e) => {
1688
- const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder: a, title: s } = e, c = Lt(o, r);
1689
- return /* @__PURE__ */ h("div", { ...z(l, "className"), className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
1690
- !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", ...F(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") }),
1691
1692
  a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
1692
1693
  ] });
1693
- }, St = (e) => {
1694
+ }, Bt = (e) => {
1694
1695
  const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a, title: s } = e;
1695
1696
  let c = n;
1696
1697
  const y = [...k(r, "srcsets", []) || []];
1697
- o && typeof o == "string" && y.push({ url: o, width: "9999" });
1698
- const g = y.sort((f, m) => parseInt(f.width) - parseInt(m.width)).filter((f) => !w(f.url) && !w(f.width));
1698
+ o && typeof o == "string" && y.push({ url: o, width: 9999 });
1699
+ const g = y.sort((f, m) => f.width - m.width).filter((f) => !w(f.url) && !w(f.width));
1699
1700
  g.length === 0 && !c && (c = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
1700
1701
  const v = k(l, "autoplay", !1) || k(l, "muted", !0);
1701
1702
  return (c || !w(g)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ x(
@@ -1718,21 +1719,21 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1718
1719
  }),
1719
1720
  "Your browser does not support the video tag."
1720
1721
  ) });
1721
- }, Nt = (e) => {
1722
+ }, St = (e) => {
1722
1723
  const { videoSource: o } = e;
1723
- 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: [
1724
1725
  "Invalid video source : ",
1725
1726
  o
1726
1727
  ] });
1727
- }, _t = {
1728
+ }, Nt = {
1728
1729
  type: "Video",
1729
1730
  label: "Video",
1730
1731
  category: "core",
1731
- icon: pe,
1732
+ icon: ce,
1732
1733
  group: "media",
1733
- ...p({
1734
+ ...u({
1734
1735
  properties: {
1735
- styles: u("absolute h-full w-full object-cover"),
1736
+ styles: d("absolute h-full w-full object-cover"),
1736
1737
  videoSource: {
1737
1738
  type: "string",
1738
1739
  default: "Custom",
@@ -1768,7 +1769,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1768
1769
  type: "object",
1769
1770
  default: { srcsets: [] }
1770
1771
  },
1771
- controls: { ...S }
1772
+ controls: { ...B }
1772
1773
  }
1773
1774
  }
1774
1775
  },
@@ -1785,7 +1786,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1785
1786
  title: "Youtube Video URL",
1786
1787
  default: ""
1787
1788
  },
1788
- controls: { ...S }
1789
+ controls: { ...B }
1789
1790
  }
1790
1791
  }
1791
1792
  },
@@ -1802,7 +1803,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1802
1803
  title: "Vimeo Video URL",
1803
1804
  default: ""
1804
1805
  },
1805
- controls: { ...S }
1806
+ controls: { ...B }
1806
1807
  }
1807
1808
  }
1808
1809
  }
@@ -1814,15 +1815,15 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1814
1815
  }
1815
1816
  }),
1816
1817
  i18nProps: ["url", "title"]
1817
- }, Tt = (e) => {
1818
- const { paginationStyles: o } = e, t = U("Pagination");
1819
- return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...z(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: [
1820
1821
  /* @__PURE__ */ i(
1821
1822
  "button",
1822
1823
  {
1823
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",
1824
1825
  disabled: !0,
1825
- children: /* @__PURE__ */ i(ue, { className: "h-4 w-4" })
1826
+ children: /* @__PURE__ */ i(de, { className: "h-4 w-4" })
1826
1827
  }
1827
1828
  ),
1828
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" }),
@@ -1830,15 +1831,15 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1830
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" }),
1831
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" }),
1832
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" }),
1833
- /* @__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(me, { 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" }) })
1834
1835
  ] }) });
1835
- }, Rt = (e) => {
1836
+ }, Tt = (e) => {
1836
1837
  const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
1837
1838
  let c = o;
1838
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: [
1839
1840
  /* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
1840
1841
  /* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
1841
- ] }, g)) : c : /* @__PURE__ */ h(N, { children: [
1842
+ ] }, g)) : c : /* @__PURE__ */ h(S, { children: [
1842
1843
  b.createElement(
1843
1844
  t,
1844
1845
  { ...r, ...l },
@@ -1848,9 +1849,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1848
1849
  ] }, g)) : c
1849
1850
  ),
1850
1851
  a && /* @__PURE__ */ i(
1851
- Tt,
1852
+ _t,
1852
1853
  {
1853
- ...F(e, [
1854
+ ...M(e, [
1854
1855
  "limit",
1855
1856
  "totalItems",
1856
1857
  "paginationStrategy",
@@ -1862,10 +1863,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1862
1863
  }
1863
1864
  )
1864
1865
  ] });
1865
- }, At = {
1866
+ }, Rt = {
1866
1867
  type: "Repeater",
1867
1868
  label: "Repeater",
1868
- icon: V,
1869
+ icon: z,
1869
1870
  group: "basic",
1870
1871
  description: "Repeater block is used to display a list of items based on data binding in repeaterItems",
1871
1872
  dataProviderMode: "live",
@@ -1874,10 +1875,10 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1874
1875
  { _id: "A", _type: "Repeater", tag: "ul" },
1875
1876
  { _id: "B", _name: "Repeater Item", _type: "RepeaterItem", parentTag: "ul", _parent: "A" }
1876
1877
  ],
1877
- ...p({
1878
+ ...u({
1878
1879
  properties: {
1879
- styles: L("grid gap-4 md:grid-cols-2 xl:grid-cols-3"),
1880
- 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"),
1881
1882
  repeaterItems: {
1882
1883
  title: "Collection",
1883
1884
  type: "string",
@@ -1957,7 +1958,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1957
1958
  ]
1958
1959
  }),
1959
1960
  canAcceptBlock: (e) => e === "Pagination"
1960
- }, Et = ({
1961
+ }, At = ({
1961
1962
  children: e,
1962
1963
  blockProps: o,
1963
1964
  styles: t,
@@ -1980,40 +1981,40 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
1980
1981
  { ...o, ...t },
1981
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" })
1982
1983
  ) : b.createElement(n, { ...o, ...t }, e);
1983
- }, Mt = {
1984
+ }, Et = {
1984
1985
  type: "RepeaterItem",
1985
1986
  label: "Repeater Item",
1986
- icon: V,
1987
+ icon: z,
1987
1988
  hidden: !0,
1988
1989
  group: "basic",
1989
- ...p({
1990
+ ...u({
1990
1991
  properties: {
1991
- styles: L(""),
1992
- parentTag: Z("Repeater", "tag")
1992
+ styles: d(""),
1993
+ parentTag: me("Repeater", "tag")
1993
1994
  }
1994
1995
  }),
1995
1996
  canAcceptBlock: (e) => e !== "RepeaterItem",
1996
1997
  canDelete: () => !1,
1997
1998
  canMove: () => !1,
1998
1999
  canDuplicate: () => !1
1999
- }, Ht = ({
2000
+ }, Mt = ({
2000
2001
  children: e,
2001
2002
  blockProps: o,
2002
2003
  styles: t
2003
- }) => b.createElement("div", { ...o, ...t }, e), $t = {
2004
+ }) => b.createElement("div", { ...o, ...t }, e), Ht = {
2004
2005
  type: "RepeaterEmptyState",
2005
2006
  label: "Empty State",
2006
2007
  hidden: !0,
2007
2008
  group: "basic",
2008
- ...p({
2009
- properties: { styles: L("p-5 flex items-center justify-center") }
2009
+ ...u({
2010
+ properties: { styles: d("p-5 flex items-center justify-center") }
2010
2011
  }),
2011
2012
  canAcceptBlock: () => !0,
2012
2013
  canDelete: () => !1,
2013
2014
  canMove: () => !1,
2014
2015
  canDuplicate: () => !1
2015
2016
  }, Zt = () => {
2016
- 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);
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);
2017
2018
  };
2018
2019
  export {
2019
2020
  Zt as loadWebBlocks