@chaibuilder/sdk 4.0.0-beta.1 → 4.0.0-beta.3
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.
- package/README.md +27 -20
- package/dist/2SSKDMRQ-BnsZi3K3.cjs +1 -0
- package/dist/2SSKDMRQ-CnSDkQcy.js +42 -0
- package/dist/AP7HFJJL-B31839PG.cjs +1228 -0
- package/dist/AP7HFJJL-CymCmW14.js +9214 -0
- package/dist/IconPicker-B1rWC-Ex.js +59 -0
- package/dist/IconPicker-DREyo007.cjs +1 -0
- package/dist/WDYDFRGG-BUVnbAci.js +33 -0
- package/dist/WDYDFRGG-BxhOCHc3.cjs +1 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/actions-registery-CZ1w0NKa.js +15545 -0
- package/dist/actions-registery-YnFmU21O.cjs +418 -0
- package/dist/actions.cjs +1 -0
- package/dist/actions.d.ts +3202 -0
- package/dist/actions.js +216 -0
- package/dist/active-in-another-tab-B47YjQGN.cjs +1 -0
- package/dist/active-in-another-tab-CyjngVA6.js +34 -0
- package/dist/add-new-language-page-88xzrUy8.cjs +1 -0
- package/dist/add-new-language-page-WmlCnytQ.js +401 -0
- package/dist/add-new-page-VW2wAYZp.js +31 -0
- package/dist/add-new-page-soZ8GAkN.cjs +1 -0
- package/dist/ai-panel-content-7zCil042.cjs +1 -0
- package/dist/ai-panel-content-D_o7Q_A-.js +61 -0
- package/dist/ai-panel-default-lang-COYaxNwn.cjs +3 -0
- package/dist/ai-panel-default-lang-DnElspF0.js +341 -0
- package/dist/ai-panel-other-lang-CkynNlAU.cjs +1 -0
- package/dist/ai-panel-other-lang-Dp0E9_Hx.js +162 -0
- package/dist/ai-prompt-input-Bhc0ds7X.js +655 -0
- package/dist/ai-prompt-input-CThbVp0_.cjs +1 -0
- package/dist/ai-translation-prompt-C2kJQFDX.cjs +1 -0
- package/dist/ai-translation-prompt-CZ55HQmo.js +28 -0
- package/dist/apply-binding-6iwlED02.js +833 -0
- package/dist/apply-binding-KKp5PnpZ.cjs +1 -0
- package/dist/code-display-BnqzqzoP.cjs +1 -0
- package/dist/{code-display-337R7Dev.js → code-display-DhD_RBcg.js} +1 -1
- package/dist/code-editor-DRIAnNbb.js +50 -0
- package/dist/code-editor-o3___nu2.cjs +1 -0
- package/dist/common-functions-B3a4xKt_.cjs +1 -0
- package/dist/common-functions-D2lMFR6K.js +13 -0
- package/dist/continue-editing-in-this-client-CS2aQ7yY.js +24 -0
- package/dist/continue-editing-in-this-client-CtMYsk-A.cjs +1 -0
- package/dist/core-BoRDjj4h.cjs +1 -0
- package/dist/core-yvI6kCyw.js +56 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +51 -383
- package/dist/core.js +39 -106
- package/dist/{css-import-modal-DA2L6kwP.js → css-import-modal-Byg6wV0O.js} +36 -36
- package/dist/css-import-modal-CyqkXWCO.cjs +13 -0
- package/dist/delete-design-token-BRZZiWtQ.js +40 -0
- package/dist/delete-design-token-DkVs1oBf.cjs +1 -0
- package/dist/delete-page-BzyX9TN-.js +70 -0
- package/dist/delete-page-DxX7PFIE.cjs +1 -0
- package/dist/design-token-usage-CAHzEGgJ.cjs +1 -0
- package/dist/design-token-usage-xQs6SlaJ.js +113 -0
- package/dist/digital-asset-manager--uO8Agia.cjs +1 -0
- package/dist/digital-asset-manager-DbtwzxRz.js +876 -0
- package/dist/duplicate-page-BR7Dlo9d.js +133 -0
- package/dist/duplicate-page-CaNAbXwV.cjs +1 -0
- package/dist/dynamic-page-selector-Cb5r_W8s.js +85 -0
- package/dist/dynamic-page-selector-Cxk_gjni.cjs +1 -0
- package/dist/fonts-B-Xt29pe.cjs +1 -0
- package/dist/fonts-DRly3Wzd.js +78 -0
- package/dist/{get-chai-builder-tailwind-config-C6MHaUM0.cjs → get-chai-builder-tailwind-config-B9rCyiQo.cjs} +1 -1
- package/dist/{get-chai-builder-tailwind-config-BqaIvg8p.js → get-chai-builder-tailwind-config-DjoVOuAf.js} +13 -10
- package/dist/{get-chai-builder-theme-D0IsUvK4.js → get-chai-builder-theme-BYtp20KD.js} +4 -4
- package/dist/get-chai-builder-theme-Dl72X7cz.cjs +1 -0
- package/dist/get-seo-defaults-9zHebckY.js +65 -0
- package/dist/get-seo-defaults-Cw7vFt-B.cjs +1 -0
- package/dist/image-compression-DZ9WMmyn.cjs +1 -0
- package/dist/image-compression-DsZ1oqpb.js +37 -0
- package/dist/image-editor-DV8kUKhl.js +108 -0
- package/dist/image-editor-G-K28aTS.cjs +1 -0
- package/dist/index-B-rSiAp_.cjs +1 -0
- package/dist/index-Ct7ElCGK.js +19069 -0
- package/dist/index-DF5DEvqb.cjs +160 -0
- package/dist/index-Dxfyt4d4.js +39 -0
- package/dist/index-WQwzsC7A.cjs +5 -0
- package/dist/index-ZuacEL1j.js +4732 -0
- package/dist/json-diff-viewer-D7z4zNvv.cjs +8 -0
- package/dist/json-diff-viewer-krslPepD.js +258 -0
- package/dist/lang-panel-BwIewMyw.js +215 -0
- package/dist/lang-panel-DT96k1xg.cjs +1 -0
- package/dist/manage-design-tokens-Caz_20VK.js +240 -0
- package/dist/manage-design-tokens-CrmLe7UT.cjs +1 -0
- package/dist/mark-as-template-D295ZQtU.js +156 -0
- package/dist/mark-as-template-W3LmpiqN.cjs +1 -0
- package/dist/models-5gOsRC56.cjs +1 -0
- package/dist/models-D95ZYr_x.js +70 -0
- package/dist/nested-path-selector-content-CKYYK-C5.js +87 -0
- package/dist/nested-path-selector-content-CoS_d3dc.cjs +1 -0
- package/dist/no-language-page-content-BvqRBP6y.js +42 -0
- package/dist/no-language-page-content-DkfeMl90.cjs +1 -0
- package/dist/no-language-page-dialog-BcEoqyQB.cjs +1 -0
- package/dist/no-language-page-dialog-PjNqTUpl.js +10 -0
- package/dist/page-creator-C4gc5NSC.cjs +1 -0
- package/dist/page-creator-DiOITEMw.js +795 -0
- package/dist/page-lock-BdYmCks0.cjs +1 -0
- package/dist/page-lock-Bfbs6RgL.js +30 -0
- package/dist/page-locked-dialog-B1FAtK92.cjs +1 -0
- package/dist/page-locked-dialog-B6MKTRfY.js +133 -0
- package/dist/page-manager-new-CHDueBDk.cjs +1 -0
- package/dist/page-manager-new-CzX22g2n.js +394 -0
- package/dist/page-manager-search-and-filter-CM0UMb6U.js +201 -0
- package/dist/page-manager-search-and-filter-DkkRIH86.cjs +1 -0
- package/dist/page-revisions-content-ChY-4f2V.cjs +1 -0
- package/dist/page-revisions-content-NH9JK4Ey.js +445 -0
- package/dist/pages.cjs +1 -0
- package/dist/pages.d.ts +491 -0
- package/dist/pages.js +27 -0
- package/dist/plugin-3ZKK6RXm.js +245 -0
- package/dist/plugin-C6rgJDNQ.cjs +22 -0
- package/dist/publish-pages-content-D9aixMN5.js +178 -0
- package/dist/publish-pages-content-x-JuSFJ9.cjs +1 -0
- package/dist/register-partial-type-BjtdfKHE.js +36 -0
- package/dist/register-partial-type-ig9fUWIJ.cjs +1 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +26 -13
- package/dist/render.js +130 -124
- package/dist/rte-widget-modal-BaHIuEjF.cjs +1 -0
- package/dist/rte-widget-modal-DOJEXLIf.js +38 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +306 -7
- package/dist/runtime.js +44 -1
- package/dist/save-to-lib-Cgpxw8-g.cjs +1 -0
- package/dist/save-to-lib-eiOc_SSN.js +422 -0
- package/dist/sdk.css +1 -1
- package/dist/selected-block-display-BgRY82CT.cjs +16 -0
- package/dist/selected-block-display-CBFePS19.js +319 -0
- package/dist/seo-panel-C1-iMOR1.js +798 -0
- package/dist/seo-panel-DfAb8U7W.cjs +2 -0
- package/dist/shared-json-ld-B4PxAM_0.js +565 -0
- package/dist/shared-json-ld-DzG398hr.cjs +1 -0
- package/dist/slug-input-AwNJs9im.js +86 -0
- package/dist/slug-input-C_ijLQ_X.cjs +1 -0
- package/dist/supabase-actions.cjs +1 -0
- package/dist/supabase-actions.d.ts +284 -0
- package/dist/supabase-actions.js +524 -0
- package/dist/take-over-request-BNxcjY2j.cjs +1 -0
- package/dist/take-over-request-C4FeDtN_.js +63 -0
- package/dist/theme-panel-footer-Cq9pljro.cjs +1 -0
- package/dist/theme-panel-footer-uBQqSJXm.js +25 -0
- package/dist/translation-warning-modal-B64YqlbI.js +26 -0
- package/dist/translation-warning-modal-BZAcwM2_.cjs +1 -0
- package/dist/unmark-as-template-CZ9sQp_P.js +39 -0
- package/dist/unmark-as-template-EVvk0vmp.cjs +1 -0
- package/dist/unpublish-page-D4VwOlxc.js +27 -0
- package/dist/unpublish-page-bdSmwAVQ.cjs +1 -0
- package/dist/use-page-expand-manager-B6XTvk0E.cjs +1 -0
- package/dist/use-page-expand-manager-Cf4MUEJw.js +85 -0
- package/dist/{tailwind.cjs → utils.cjs} +1 -1
- package/dist/{tailwind.d.ts → utils.d.ts} +12 -11
- package/dist/utils.js +7 -0
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.d.ts +0 -6
- package/dist/web-blocks.js +248 -241
- package/dist/web-preview-Cio70gk5.cjs +1 -0
- package/dist/web-preview-Djy6WIyj.js +73 -0
- package/package.json +175 -105
- package/dist/IconPicker-CGWn9C4u.cjs +0 -1
- package/dist/IconPicker-QvxJ-4Ez.js +0 -64
- package/dist/apply-binding-DCno1xQL.js +0 -711
- package/dist/apply-binding-DvHNFLQD.cjs +0 -1
- package/dist/code-display-BZ1x7SqI.cjs +0 -1
- package/dist/code-editor-B28LoECM.cjs +0 -1
- package/dist/code-editor-CfG2FhJ-.js +0 -58
- package/dist/common-functions-BGzDsf1z.js +0 -14
- package/dist/common-functions-BZmyleS1.cjs +0 -1
- package/dist/css-import-modal-CENUYvcl.cjs +0 -13
- package/dist/get-chai-builder-theme-Ck_Z4Q-M.cjs +0 -1
- package/dist/index-CaGNHF7f.js +0 -12209
- package/dist/index-Gn6pJt2v.cjs +0 -166
- package/dist/mockServiceWorker.js +0 -307
- package/dist/plugin-B5627hMN.js +0 -195
- package/dist/plugin-UxTRfDum.cjs +0 -22
- package/dist/rte-widget-modal-DL739qeQ.cjs +0 -1
- package/dist/rte-widget-modal-Dte0od04.js +0 -41
- package/dist/tailwind.js +0 -7
- package/dist/tooltip-A4qGk781.cjs +0 -1
- package/dist/tooltip-tLiIOgjq.js +0 -1067
- package/dist/ui.cjs +0 -1
- package/dist/ui.d.ts +0 -415
- package/dist/ui.js +0 -129
- package/dist/vite.svg +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { c as _, g as I } from "./common-functions-
|
|
4
|
-
import * as
|
|
5
|
-
import { createElement as
|
|
6
|
-
import { ButtonIcon as M, CodeIcon as H, FrameIcon as $, SketchLogoIcon as
|
|
7
|
-
import { isEmpty as
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as i, jsxs as h, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { r as p, S as u, s as L } from "./index-Dxfyt4d4.js";
|
|
3
|
+
import { c as _, g as I } from "./common-functions-D2lMFR6K.js";
|
|
4
|
+
import * as b from "react";
|
|
5
|
+
import { createElement as x } from "react";
|
|
6
|
+
import { ButtonIcon as M, CodeIcon as H, FrameIcon as $, SketchLogoIcon as U, RowsIcon as j, LayoutIcon as Z, DividerHorizontalIcon as q, CheckboxIcon as G, FileTextIcon as W, InputIcon as D, 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 V } from "@radix-ui/react-icons";
|
|
7
|
+
import { isEmpty as w, get as k, map as R, isNull as ue, omit as z, pick as F } from "lodash-es";
|
|
8
|
+
import { r as d, e as me, c as ye } from "./core-yvI6kCyw.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) => {
|
|
10
|
+
const { blockProps: o, inBuilder: t, backgroundImage: l, children: r, tag: n = "div", styles: a } = e;
|
|
10
11
|
let s = r;
|
|
11
|
-
r || (s = /* @__PURE__ */
|
|
12
|
+
r || (s = /* @__PURE__ */ i(C, { inBuilder: t }));
|
|
12
13
|
let c = {};
|
|
13
|
-
return l && (c = { backgroundImage: `url(${l})` }),
|
|
14
|
+
return l && (c = { backgroundImage: `url(${l})` }), b.createElement(n, { ...o, ...a, style: c }, s);
|
|
14
15
|
}, be = {
|
|
15
16
|
type: "Box",
|
|
16
17
|
description: "Similar to a div or section elements in HTML",
|
|
@@ -48,23 +49,23 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("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
57
|
}, fe = (e) => {
|
|
57
|
-
const { blockProps: o, iconSize: t, icon: l, content: r, styles: n, children:
|
|
58
|
-
r && /* @__PURE__ */
|
|
59
|
-
|
|
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: [
|
|
59
|
+
r && /* @__PURE__ */ i("span", { children: r }),
|
|
60
|
+
g && /* @__PURE__ */ i(
|
|
60
61
|
"div",
|
|
61
62
|
{
|
|
62
63
|
style: { width: t + "px" },
|
|
63
64
|
className: s + " " + (r ? s === "order-first" ? "mr-2" : "ml-2" : "") || "",
|
|
64
|
-
dangerouslySetInnerHTML: { __html:
|
|
65
|
+
dangerouslySetInnerHTML: { __html: g }
|
|
65
66
|
}
|
|
66
67
|
)
|
|
67
|
-
] }),
|
|
68
|
+
] }), f = x(
|
|
68
69
|
"button",
|
|
69
70
|
{
|
|
70
71
|
...o,
|
|
@@ -72,9 +73,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
72
73
|
type: "button",
|
|
73
74
|
"aria-label": r
|
|
74
75
|
},
|
|
75
|
-
|
|
76
|
+
v
|
|
76
77
|
);
|
|
77
|
-
return
|
|
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
79
|
}, he = {
|
|
79
80
|
type: "Button",
|
|
80
81
|
description: "similar to a button element in HTML",
|
|
@@ -133,13 +134,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
133
134
|
aiProps: ["content"]
|
|
134
135
|
}, ke = (e) => {
|
|
135
136
|
const { blockProps: o, styles: t, htmlCode: l, inBuilder: r } = e;
|
|
136
|
-
return r ? /* @__PURE__ */
|
|
137
|
-
r ? /* @__PURE__ */
|
|
138
|
-
|
|
137
|
+
return r ? /* @__PURE__ */ h("div", { className: "relative", ...o, children: [
|
|
138
|
+
r ? /* @__PURE__ */ i("div", { ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
139
|
+
b.createElement("div", {
|
|
139
140
|
...t,
|
|
140
141
|
dangerouslySetInnerHTML: { __html: l.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
141
142
|
})
|
|
142
|
-
] }) :
|
|
143
|
+
] }) : b.createElement("div", {
|
|
143
144
|
...o,
|
|
144
145
|
...t,
|
|
145
146
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -164,7 +165,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
164
165
|
i18nProps: ["htmlCode"]
|
|
165
166
|
}, we = (e) => {
|
|
166
167
|
const { scripts: o, inBuilder: t, blockProps: l } = e;
|
|
167
|
-
return t ? /* @__PURE__ */
|
|
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 } });
|
|
168
169
|
}, ve = {
|
|
169
170
|
type: "CustomScript",
|
|
170
171
|
description: "similar to a script element in HTML",
|
|
@@ -186,20 +187,20 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
186
187
|
})
|
|
187
188
|
}, Ce = (e) => {
|
|
188
189
|
const { blockProps: o, inBuilder: t, children: l, globalBlock: r } = e;
|
|
189
|
-
return t && !r ? /* @__PURE__ */
|
|
190
|
+
return t && !r ? /* @__PURE__ */ h(
|
|
190
191
|
"div",
|
|
191
192
|
{
|
|
192
193
|
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
193
194
|
...o,
|
|
194
195
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ h("h1", { children: [
|
|
196
197
|
"Global Block - ",
|
|
197
198
|
r
|
|
198
199
|
] }),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
200
201
|
]
|
|
201
202
|
}
|
|
202
|
-
) :
|
|
203
|
+
) : b.createElement("span", { ...o }, l);
|
|
203
204
|
}, Ie = {
|
|
204
205
|
type: "GlobalBlock",
|
|
205
206
|
description: "A global block component",
|
|
@@ -222,16 +223,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
222
223
|
...e,
|
|
223
224
|
className: _(e.className, ...o)
|
|
224
225
|
}), Pe = (e) => {
|
|
225
|
-
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height:
|
|
226
|
-
if (
|
|
227
|
-
return /* @__PURE__ */
|
|
226
|
+
const { blockProps: o, icon: t, styles: l, width: r, inBuilder: n, height: a } = e, s = T(l, "");
|
|
227
|
+
if (w(t))
|
|
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]" ');
|
|
229
|
-
return
|
|
230
|
+
return b.createElement("span", {
|
|
230
231
|
...o,
|
|
231
232
|
...s,
|
|
232
233
|
style: {
|
|
233
234
|
width: r ? `${r}px` : "auto",
|
|
234
|
-
height:
|
|
235
|
+
height: a ? `${a}px` : "auto"
|
|
235
236
|
},
|
|
236
237
|
dangerouslySetInnerHTML: { __html: c }
|
|
237
238
|
});
|
|
@@ -240,7 +241,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
240
241
|
label: "web_blocks.icon",
|
|
241
242
|
category: "core",
|
|
242
243
|
description: "Icon block is used to display an icon/svg.",
|
|
243
|
-
icon:
|
|
244
|
+
icon: U,
|
|
244
245
|
group: "media",
|
|
245
246
|
...p({
|
|
246
247
|
properties: {
|
|
@@ -265,20 +266,20 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
265
266
|
})
|
|
266
267
|
}, Be = (e) => {
|
|
267
268
|
const { blockProps: o, inBuilder: t, children: l, partialBlockId: r } = e;
|
|
268
|
-
return t && !r ? /* @__PURE__ */
|
|
269
|
+
return t && !r ? /* @__PURE__ */ h(
|
|
269
270
|
"div",
|
|
270
271
|
{
|
|
271
272
|
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
272
273
|
...o,
|
|
273
274
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ h("h1", { children: [
|
|
275
276
|
"Partial Block - ",
|
|
276
277
|
r
|
|
277
278
|
] }),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
279
280
|
]
|
|
280
281
|
}
|
|
281
|
-
) :
|
|
282
|
+
) : b.createElement("span", { ...o }, l);
|
|
282
283
|
}, Se = {
|
|
283
284
|
type: "PartialBlock",
|
|
284
285
|
description: "A partial block component. Partial blocks are global blocks that can be used in multiple pages.",
|
|
@@ -341,20 +342,20 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
341
342
|
12: "lg:col-span-12"
|
|
342
343
|
}
|
|
343
344
|
}, Ne = (e) => {
|
|
344
|
-
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan:
|
|
345
|
+
const { blockProps: o, children: t, styles: l, colSpan: r, tabletColSpan: n, desktopColSpan: a } = e, c = { className: [
|
|
345
346
|
k(l, "className", ""),
|
|
346
347
|
k(B, ["SMALL", isNaN(r) || !r ? 6 : r], ""),
|
|
347
348
|
n ? k(B, ["MEDIUM", n || r], "") : "",
|
|
348
|
-
|
|
349
|
+
a ? k(B, ["LARGE", n || r], "") : ""
|
|
349
350
|
].join(" ") };
|
|
350
|
-
return /* @__PURE__ */
|
|
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
352
|
}, _e = {
|
|
352
353
|
type: "Column",
|
|
353
354
|
description: "A column component",
|
|
354
355
|
label: "Column",
|
|
355
356
|
group: "basic",
|
|
356
357
|
category: "core",
|
|
357
|
-
icon:
|
|
358
|
+
icon: Z,
|
|
358
359
|
wrapper: !0,
|
|
359
360
|
hidden: !0,
|
|
360
361
|
canDelete: () => !0,
|
|
@@ -386,8 +387,8 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
386
387
|
}
|
|
387
388
|
})
|
|
388
389
|
}, Te = (e) => {
|
|
389
|
-
const { blockProps: o, children: t, styles: l, gutter: r } = e,
|
|
390
|
-
return typeof (l == null ? void 0 : l.style) == "object" ? l.style.gap = `${r}px` :
|
|
390
|
+
const { blockProps: o, children: t, styles: l, gutter: r } = e, a = { className: [k(l, "className", ""), " grid grid-cols-12"].join() };
|
|
391
|
+
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
392
|
}, Re = {
|
|
392
393
|
type: "Row",
|
|
393
394
|
description: "A row component",
|
|
@@ -422,13 +423,13 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
422
423
|
})
|
|
423
424
|
}, Ae = (e) => {
|
|
424
425
|
const { blockProps: o, styles: t } = e;
|
|
425
|
-
return
|
|
426
|
+
return x("hr", { ...t, ...o });
|
|
426
427
|
}, Ee = {
|
|
427
428
|
type: "Divider",
|
|
428
429
|
description: "A horizontal line component",
|
|
429
430
|
label: "Divider",
|
|
430
431
|
category: "core",
|
|
431
|
-
icon:
|
|
432
|
+
icon: q,
|
|
432
433
|
group: "basic",
|
|
433
434
|
...p({
|
|
434
435
|
properties: {
|
|
@@ -438,7 +439,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
438
439
|
}, Me = (e) => {
|
|
439
440
|
const { blockProps: o, styles: t, backgroundImage: l } = e;
|
|
440
441
|
let r = {};
|
|
441
|
-
return l && (r = { backgroundImage: `url(${l})` }),
|
|
442
|
+
return l && (r = { backgroundImage: `url(${l})` }), b.createElement("div", { ...o, ...t, style: r });
|
|
442
443
|
}, He = {
|
|
443
444
|
type: "EmptyBox",
|
|
444
445
|
description: "A box component with no children",
|
|
@@ -452,16 +453,16 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
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
460
|
}, $e = (e) => {
|
|
460
|
-
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required:
|
|
461
|
-
return c ? /* @__PURE__ */
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
l && /* @__PURE__ */
|
|
464
|
-
] }) : /* @__PURE__ */
|
|
461
|
+
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
462
|
+
return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
|
|
463
|
+
/* @__PURE__ */ i("input", { ...n, name: t, type: "checkbox", required: a, defaultChecked: s }),
|
|
464
|
+
l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
|
|
465
|
+
] }) : /* @__PURE__ */ i(
|
|
465
466
|
"input",
|
|
466
467
|
{
|
|
467
468
|
name: t,
|
|
@@ -469,7 +470,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
469
470
|
...n,
|
|
470
471
|
...r,
|
|
471
472
|
type: "checkbox",
|
|
472
|
-
required:
|
|
473
|
+
required: a,
|
|
473
474
|
defaultChecked: s
|
|
474
475
|
}
|
|
475
476
|
);
|
|
@@ -477,7 +478,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
477
478
|
type: "Checkbox",
|
|
478
479
|
label: "web_blocks.checkbox",
|
|
479
480
|
category: "core",
|
|
480
|
-
icon:
|
|
481
|
+
icon: G,
|
|
481
482
|
group: "form",
|
|
482
483
|
...p({
|
|
483
484
|
properties: {
|
|
@@ -513,9 +514,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
513
514
|
aiProps: ["label"],
|
|
514
515
|
i18nProps: ["label"]
|
|
515
516
|
}, De = (e) => {
|
|
516
|
-
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles:
|
|
517
|
+
const { children: o, blockProps: t, errorMessage: l, successMessage: r, action: n, styles: a, inBuilder: s } = e;
|
|
517
518
|
let c = o;
|
|
518
|
-
return o || (c = /* @__PURE__ */
|
|
519
|
+
return o || (c = /* @__PURE__ */ i(C, { inBuilder: s })), /* @__PURE__ */ h(
|
|
519
520
|
"form",
|
|
520
521
|
{
|
|
521
522
|
...{
|
|
@@ -527,9 +528,9 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
527
528
|
method: "post",
|
|
528
529
|
action: n,
|
|
529
530
|
...t,
|
|
530
|
-
...
|
|
531
|
+
...a,
|
|
531
532
|
children: [
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ i("div", { ...{
|
|
533
534
|
"x-html": "",
|
|
534
535
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
535
536
|
} }),
|
|
@@ -537,11 +538,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
537
538
|
]
|
|
538
539
|
}
|
|
539
540
|
);
|
|
540
|
-
},
|
|
541
|
+
}, Ve = {
|
|
541
542
|
type: "Form",
|
|
542
543
|
label: "Form",
|
|
543
544
|
category: "core",
|
|
544
|
-
icon:
|
|
545
|
+
icon: W,
|
|
545
546
|
group: "form",
|
|
546
547
|
blocks: () => [
|
|
547
548
|
{ _type: "Form", _id: "form", styles: "#styles:p-1 space-y-2," },
|
|
@@ -578,14 +579,14 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
578
579
|
i18nProps: ["errorMessage", "successMessage"],
|
|
579
580
|
aiProps: ["errorMessage", "successMessage"],
|
|
580
581
|
canAcceptBlock: () => !0
|
|
581
|
-
},
|
|
582
|
-
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize:
|
|
583
|
-
return /* @__PURE__ */
|
|
582
|
+
}, ze = (e) => {
|
|
583
|
+
const { blockProps: o, inBuilder: t, label: l, styles: r, icon: n, iconSize: a, iconPos: s } = e;
|
|
584
|
+
return /* @__PURE__ */ h("button", { ...r, ...o || {}, type: t ? "button" : "submit", "aria-label": l, children: [
|
|
584
585
|
l,
|
|
585
|
-
n && /* @__PURE__ */
|
|
586
|
+
n && /* @__PURE__ */ i(
|
|
586
587
|
"div",
|
|
587
588
|
{
|
|
588
|
-
style: { width:
|
|
589
|
+
style: { width: a + "px" },
|
|
589
590
|
className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
|
|
590
591
|
dangerouslySetInnerHTML: { __html: n }
|
|
591
592
|
}
|
|
@@ -705,38 +706,38 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
705
706
|
label: l,
|
|
706
707
|
placeholder: r,
|
|
707
708
|
styles: n,
|
|
708
|
-
inputStyles:
|
|
709
|
+
inputStyles: a,
|
|
709
710
|
showLabel: s,
|
|
710
711
|
required: c,
|
|
711
|
-
inputType:
|
|
712
|
-
defaultValue:
|
|
713
|
-
} = e, { type:
|
|
714
|
-
return s ? /* @__PURE__ */
|
|
715
|
-
s && /* @__PURE__ */
|
|
716
|
-
/* @__PURE__ */
|
|
712
|
+
inputType: y,
|
|
713
|
+
defaultValue: g
|
|
714
|
+
} = e, { type: v, autocomplete: f } = Ue(y);
|
|
715
|
+
return s ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
716
|
+
s && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
717
|
+
/* @__PURE__ */ i(
|
|
717
718
|
"input",
|
|
718
719
|
{
|
|
719
720
|
name: t,
|
|
720
|
-
defaultValue:
|
|
721
|
-
...
|
|
722
|
-
type:
|
|
721
|
+
defaultValue: g,
|
|
722
|
+
...a,
|
|
723
|
+
type: v,
|
|
723
724
|
placeholder: r,
|
|
724
725
|
required: c,
|
|
725
|
-
autoComplete:
|
|
726
|
+
autoComplete: f
|
|
726
727
|
}
|
|
727
728
|
)
|
|
728
|
-
] }) : /* @__PURE__ */
|
|
729
|
+
] }) : /* @__PURE__ */ i(
|
|
729
730
|
"input",
|
|
730
731
|
{
|
|
731
732
|
name: t,
|
|
732
733
|
...o,
|
|
733
|
-
...
|
|
734
|
+
...a,
|
|
734
735
|
...n,
|
|
735
|
-
type:
|
|
736
|
+
type: v,
|
|
736
737
|
placeholder: r,
|
|
737
738
|
required: c,
|
|
738
|
-
autoComplete:
|
|
739
|
-
defaultValue:
|
|
739
|
+
autoComplete: f,
|
|
740
|
+
defaultValue: g
|
|
740
741
|
}
|
|
741
742
|
);
|
|
742
743
|
}, qe = {
|
|
@@ -856,7 +857,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
856
857
|
i18nProps: ["label", "placeholder"]
|
|
857
858
|
}, Ge = (e) => {
|
|
858
859
|
const { blockProps: o, content: t, styles: l, children: r } = e, n = { ...l, ...o };
|
|
859
|
-
return r ?
|
|
860
|
+
return r ? b.createElement("label", n, r) : b.createElement("label", {
|
|
860
861
|
...n,
|
|
861
862
|
dangerouslySetInnerHTML: { __html: t }
|
|
862
863
|
});
|
|
@@ -864,7 +865,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
864
865
|
type: "Label",
|
|
865
866
|
label: "Label",
|
|
866
867
|
category: "core",
|
|
867
|
-
icon:
|
|
868
|
+
icon: O,
|
|
868
869
|
group: "form",
|
|
869
870
|
...p({
|
|
870
871
|
properties: {
|
|
@@ -879,11 +880,11 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
879
880
|
aiProps: ["content"],
|
|
880
881
|
i18nProps: ["content"]
|
|
881
882
|
}, Oe = (e) => {
|
|
882
|
-
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required:
|
|
883
|
-
return c ? /* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
-
l && /* @__PURE__ */
|
|
886
|
-
] }) : /* @__PURE__ */
|
|
883
|
+
const { blockProps: o, fieldName: t, label: l, styles: r, inputStyles: n, required: a, checked: s, showLabel: c = !0 } = e;
|
|
884
|
+
return c ? /* @__PURE__ */ h("div", { ...r, ...o, children: [
|
|
885
|
+
/* @__PURE__ */ i("input", { ...n, name: t, type: "radio", required: a, defaultChecked: s }),
|
|
886
|
+
l && /* @__PURE__ */ i("label", { htmlFor: t, children: l })
|
|
887
|
+
] }) : /* @__PURE__ */ i(
|
|
887
888
|
"input",
|
|
888
889
|
{
|
|
889
890
|
name: t,
|
|
@@ -891,7 +892,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
891
892
|
...n,
|
|
892
893
|
...r,
|
|
893
894
|
type: "radio",
|
|
894
|
-
required:
|
|
895
|
+
required: a,
|
|
895
896
|
checked: s
|
|
896
897
|
}
|
|
897
898
|
);
|
|
@@ -899,7 +900,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
899
900
|
type: "Radio",
|
|
900
901
|
label: "web_blocks.radio",
|
|
901
902
|
category: "core",
|
|
902
|
-
icon:
|
|
903
|
+
icon: Y,
|
|
903
904
|
group: "form",
|
|
904
905
|
...p({
|
|
905
906
|
properties: {
|
|
@@ -941,41 +942,41 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
941
942
|
label: l,
|
|
942
943
|
placeholder: r,
|
|
943
944
|
styles: n,
|
|
944
|
-
inputStyles:
|
|
945
|
+
inputStyles: a,
|
|
945
946
|
required: s,
|
|
946
947
|
showLabel: c,
|
|
947
|
-
_multiple:
|
|
948
|
-
options:
|
|
949
|
-
defaultValue:
|
|
950
|
-
} = e,
|
|
951
|
-
return c ? /* @__PURE__ */
|
|
952
|
-
c && /* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
948
|
+
_multiple: y,
|
|
949
|
+
options: g,
|
|
950
|
+
defaultValue: v
|
|
951
|
+
} = e, f = y && v ? v.split(",").map((m) => m.trim()) : v || "";
|
|
952
|
+
return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
953
|
+
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
954
|
+
/* @__PURE__ */ h(
|
|
954
955
|
"select",
|
|
955
956
|
{
|
|
956
|
-
...
|
|
957
|
+
...a,
|
|
957
958
|
required: s,
|
|
958
|
-
multiple:
|
|
959
|
+
multiple: y,
|
|
959
960
|
name: t,
|
|
960
|
-
defaultValue:
|
|
961
|
+
defaultValue: f,
|
|
961
962
|
children: [
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
R(
|
|
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
965
|
]
|
|
965
966
|
}
|
|
966
967
|
)
|
|
967
|
-
] }) : /* @__PURE__ */
|
|
968
|
+
] }) : /* @__PURE__ */ h(
|
|
968
969
|
"select",
|
|
969
970
|
{
|
|
970
971
|
...n,
|
|
971
972
|
...o,
|
|
972
973
|
required: s,
|
|
973
|
-
multiple:
|
|
974
|
+
multiple: y,
|
|
974
975
|
name: t,
|
|
975
|
-
defaultValue:
|
|
976
|
+
defaultValue: f,
|
|
976
977
|
children: [
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
R(
|
|
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
980
|
]
|
|
980
981
|
}
|
|
981
982
|
);
|
|
@@ -983,7 +984,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
983
984
|
type: "Select",
|
|
984
985
|
label: "web_blocks.select",
|
|
985
986
|
category: "core",
|
|
986
|
-
icon:
|
|
987
|
+
icon: Q,
|
|
987
988
|
group: "form",
|
|
988
989
|
...p({
|
|
989
990
|
properties: {
|
|
@@ -1049,31 +1050,31 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1049
1050
|
aiProps: ["label", "placeholder"],
|
|
1050
1051
|
i18nProps: ["label", "placeholder"]
|
|
1051
1052
|
}, Xe = (e) => {
|
|
1052
|
-
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles:
|
|
1053
|
-
return c ? /* @__PURE__ */
|
|
1054
|
-
c && /* @__PURE__ */
|
|
1055
|
-
/* @__PURE__ */
|
|
1053
|
+
const { blockProps: o, fieldName: t, label: l, placeholder: r, styles: n, inputStyles: a, rows: s, showLabel: c, required: y, defaultValue: g } = e;
|
|
1054
|
+
return c ? /* @__PURE__ */ h("div", { ...n, ...o, children: [
|
|
1055
|
+
c && /* @__PURE__ */ i("label", { htmlFor: t, children: l }),
|
|
1056
|
+
/* @__PURE__ */ i(
|
|
1056
1057
|
"textarea",
|
|
1057
1058
|
{
|
|
1058
1059
|
name: t,
|
|
1059
|
-
...
|
|
1060
|
+
...a,
|
|
1060
1061
|
placeholder: r,
|
|
1061
1062
|
rows: s,
|
|
1062
|
-
required:
|
|
1063
|
-
defaultValue:
|
|
1063
|
+
required: y,
|
|
1064
|
+
defaultValue: g
|
|
1064
1065
|
}
|
|
1065
1066
|
)
|
|
1066
|
-
] }) : /* @__PURE__ */
|
|
1067
|
+
] }) : /* @__PURE__ */ i(
|
|
1067
1068
|
"textarea",
|
|
1068
1069
|
{
|
|
1069
1070
|
name: t,
|
|
1070
1071
|
...o,
|
|
1071
|
-
...
|
|
1072
|
+
...a,
|
|
1072
1073
|
...n,
|
|
1073
1074
|
placeholder: r,
|
|
1074
1075
|
rows: s,
|
|
1075
|
-
required:
|
|
1076
|
-
defaultValue:
|
|
1076
|
+
required: y,
|
|
1077
|
+
defaultValue: g
|
|
1077
1078
|
}
|
|
1078
1079
|
);
|
|
1079
1080
|
}, Ke = {
|
|
@@ -1129,7 +1130,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1129
1130
|
i18nProps: ["label", "placeholder"]
|
|
1130
1131
|
}, et = (e) => {
|
|
1131
1132
|
const { blockProps: o, styles: t, content: l, tag: r = "h1", children: n = null } = e;
|
|
1132
|
-
return n ?
|
|
1133
|
+
return n ? b.createElement(r, { ...t, ...o }, n) : b.createElement(r, {
|
|
1133
1134
|
...t,
|
|
1134
1135
|
...o,
|
|
1135
1136
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -1139,7 +1140,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
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:
|
|
1143
|
+
icon: J,
|
|
1143
1144
|
group: "typography",
|
|
1144
1145
|
...p({
|
|
1145
1146
|
properties: {
|
|
@@ -1163,7 +1164,7 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1163
1164
|
canAcceptBlock: () => !0
|
|
1164
1165
|
}, ot = (e) => {
|
|
1165
1166
|
const { blockProps: o, styles: t } = e;
|
|
1166
|
-
return
|
|
1167
|
+
return x("br", { ...o, ...t });
|
|
1167
1168
|
}, lt = {
|
|
1168
1169
|
type: "LineBreak",
|
|
1169
1170
|
label: "Line Break",
|
|
@@ -1181,19 +1182,19 @@ const C = ({ className: e = "", inBuilder: o }) => o ? /* @__PURE__ */ a("div",
|
|
|
1181
1182
|
canDuplicate: () => !1
|
|
1182
1183
|
}, rt = (e) => {
|
|
1183
1184
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1184
|
-
return t ?
|
|
1185
|
+
return t ? x("table", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1185
1186
|
}, nt = (e) => {
|
|
1186
1187
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1187
|
-
return t ?
|
|
1188
|
-
}, at = (e) => {
|
|
1189
|
-
const { blockProps: o, children: t, styles: l } = e;
|
|
1190
|
-
return t ? w("tbody", { ...o, ...l }, t) : /* @__PURE__ */ a(C, {});
|
|
1188
|
+
return t ? x("thead", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1191
1189
|
}, it = (e) => {
|
|
1192
1190
|
const { blockProps: o, children: t, styles: l } = e;
|
|
1193
|
-
return t ?
|
|
1191
|
+
return t ? x("tbody", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1192
|
+
}, at = (e) => {
|
|
1193
|
+
const { blockProps: o, children: t, styles: l } = e;
|
|
1194
|
+
return t ? x("tr", { ...o, ...l }, t) : /* @__PURE__ */ i(C, {});
|
|
1194
1195
|
}, st = (e) => {
|
|
1195
1196
|
const { blockProps: o, children: t, content: l, styles: r } = e;
|
|
1196
|
-
return !t &&
|
|
1197
|
+
return !t && w(l) ? /* @__PURE__ */ i(C, {}) : t ? x("td", { ...o, ...r }, t) : x("td", {
|
|
1197
1198
|
...o,
|
|
1198
1199
|
...r,
|
|
1199
1200
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -1205,7 +1206,7 @@ d(rt, {
|
|
|
1205
1206
|
category: "core",
|
|
1206
1207
|
group: "table",
|
|
1207
1208
|
hidden: !0,
|
|
1208
|
-
icon:
|
|
1209
|
+
icon: X,
|
|
1209
1210
|
...p({
|
|
1210
1211
|
properties: {
|
|
1211
1212
|
styles: u("")
|
|
@@ -1219,7 +1220,7 @@ d(nt, {
|
|
|
1219
1220
|
category: "core",
|
|
1220
1221
|
group: "table",
|
|
1221
1222
|
hidden: !0,
|
|
1222
|
-
icon:
|
|
1223
|
+
icon: K,
|
|
1223
1224
|
...p({
|
|
1224
1225
|
properties: {
|
|
1225
1226
|
styles: u("")
|
|
@@ -1227,13 +1228,13 @@ d(nt, {
|
|
|
1227
1228
|
}),
|
|
1228
1229
|
blocks: P("TableHead")
|
|
1229
1230
|
});
|
|
1230
|
-
d(
|
|
1231
|
+
d(it, {
|
|
1231
1232
|
type: "TableBody",
|
|
1232
1233
|
label: "Table Body",
|
|
1233
1234
|
category: "core",
|
|
1234
1235
|
group: "table",
|
|
1235
1236
|
hidden: !0,
|
|
1236
|
-
icon:
|
|
1237
|
+
icon: ee,
|
|
1237
1238
|
...p({
|
|
1238
1239
|
properties: {
|
|
1239
1240
|
styles: u("")
|
|
@@ -1241,13 +1242,13 @@ d(at, {
|
|
|
1241
1242
|
}),
|
|
1242
1243
|
blocks: P("TableBody")
|
|
1243
1244
|
});
|
|
1244
|
-
d(
|
|
1245
|
+
d(at, {
|
|
1245
1246
|
type: "TableRow",
|
|
1246
1247
|
label: "Table Row",
|
|
1247
1248
|
category: "core",
|
|
1248
1249
|
group: "table",
|
|
1249
1250
|
hidden: !0,
|
|
1250
|
-
icon:
|
|
1251
|
+
icon: te,
|
|
1251
1252
|
...p({
|
|
1252
1253
|
properties: {
|
|
1253
1254
|
styles: u("")
|
|
@@ -1261,7 +1262,7 @@ d(st, {
|
|
|
1261
1262
|
category: "core",
|
|
1262
1263
|
group: "table",
|
|
1263
1264
|
hidden: !0,
|
|
1264
|
-
icon:
|
|
1265
|
+
icon: oe,
|
|
1265
1266
|
...p({
|
|
1266
1267
|
properties: {
|
|
1267
1268
|
styles: u(""),
|
|
@@ -1278,33 +1279,33 @@ d(st, {
|
|
|
1278
1279
|
aiProps: ["content"]
|
|
1279
1280
|
});
|
|
1280
1281
|
function P(e) {
|
|
1281
|
-
const o = (n,
|
|
1282
|
+
const o = (n, a) => ({
|
|
1282
1283
|
_id: I(),
|
|
1283
1284
|
_parent: n,
|
|
1284
1285
|
_type: "TableCell",
|
|
1285
1286
|
styles: "#styles:,",
|
|
1286
|
-
content: `${e === "TableHead" ? "Table Head" : "Table Cell " +
|
|
1287
|
+
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + a}`
|
|
1287
1288
|
}), t = (n) => {
|
|
1288
|
-
const
|
|
1289
|
+
const a = I(), s = {
|
|
1289
1290
|
_type: "TableRow",
|
|
1290
|
-
_id:
|
|
1291
|
+
_id: a,
|
|
1291
1292
|
styles: "#styles:,border-b"
|
|
1292
1293
|
};
|
|
1293
|
-
return n && (s._parent = n), [s, o(
|
|
1294
|
+
return n && (s._parent = n), [s, o(a, "1"), o(a, "2"), o(a, "3")];
|
|
1294
1295
|
}, l = (n) => {
|
|
1295
|
-
const
|
|
1296
|
-
_id:
|
|
1296
|
+
const a = I(), s = {
|
|
1297
|
+
_id: a,
|
|
1297
1298
|
_type: "TableHead",
|
|
1298
1299
|
styles: "#styles:,font-medium"
|
|
1299
1300
|
};
|
|
1300
|
-
return n && (s._parent = n), [s, ...t(
|
|
1301
|
+
return n && (s._parent = n), [s, ...t(a)];
|
|
1301
1302
|
}, r = (n) => {
|
|
1302
|
-
const
|
|
1303
|
-
_id:
|
|
1303
|
+
const a = I(), s = {
|
|
1304
|
+
_id: a,
|
|
1304
1305
|
_type: "TableBody",
|
|
1305
1306
|
styles: "#styles:,"
|
|
1306
1307
|
};
|
|
1307
|
-
return n && (s._parent = n), [s, ...t(
|
|
1308
|
+
return n && (s._parent = n), [s, ...t(a), ...t(a)];
|
|
1308
1309
|
};
|
|
1309
1310
|
if (e === "Table") {
|
|
1310
1311
|
const n = I();
|
|
@@ -1321,10 +1322,10 @@ function P(e) {
|
|
|
1321
1322
|
return e === "TableRow" ? t() : e === "TableHead" ? l() : e === "TableBody" ? r() : [];
|
|
1322
1323
|
}
|
|
1323
1324
|
const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZmlsbD0iI2Q1ZDdkYSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPkltYWdlIFBsYWNlaG9sZGVyPC90ZXh0Pjwvc3ZnPg==", dt = (e) => {
|
|
1324
|
-
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height:
|
|
1325
|
-
return
|
|
1326
|
-
l && /* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1325
|
+
const { blockProps: o, image: t, mobileImage: l, styles: r, alt: n, height: a, width: s, lazyLoading: c, mobileWidth: y, mobileHeight: g } = e;
|
|
1326
|
+
return w(t) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ h("picture", { children: [
|
|
1327
|
+
l && /* @__PURE__ */ i("source", { srcSet: l, media: "(max-width: 480px)", width: y, height: g }),
|
|
1328
|
+
/* @__PURE__ */ i(
|
|
1328
1329
|
"img",
|
|
1329
1330
|
{
|
|
1330
1331
|
...o,
|
|
@@ -1333,7 +1334,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1333
1334
|
alt: n,
|
|
1334
1335
|
loading: c ? "lazy" : "eager",
|
|
1335
1336
|
width: s,
|
|
1336
|
-
height:
|
|
1337
|
+
height: a
|
|
1337
1338
|
}
|
|
1338
1339
|
)
|
|
1339
1340
|
] });
|
|
@@ -1342,11 +1343,11 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1342
1343
|
description: "A image component",
|
|
1343
1344
|
label: "Image",
|
|
1344
1345
|
category: "core",
|
|
1345
|
-
icon:
|
|
1346
|
+
icon: le,
|
|
1346
1347
|
group: "media",
|
|
1347
1348
|
...p({
|
|
1348
1349
|
properties: {
|
|
1349
|
-
styles: u(""),
|
|
1350
|
+
styles: u("w-full h-full object-cover"),
|
|
1350
1351
|
image: {
|
|
1351
1352
|
type: "string",
|
|
1352
1353
|
title: "Image",
|
|
@@ -1399,9 +1400,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1399
1400
|
aiProps: ["alt"],
|
|
1400
1401
|
i18nProps: ["alt", "image", "_imageId", "mobileImage", "_mobileImageId"]
|
|
1401
1402
|
}, ut = (e) => {
|
|
1402
|
-
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content:
|
|
1403
|
+
const { blockProps: o, link: t, children: l, styles: r, inBuilder: n, content: a } = e;
|
|
1403
1404
|
let s = {};
|
|
1404
|
-
return !l &&
|
|
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(
|
|
1405
1406
|
"span",
|
|
1406
1407
|
{
|
|
1407
1408
|
...o,
|
|
@@ -1409,31 +1410,31 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1409
1410
|
style: s,
|
|
1410
1411
|
role: "link"
|
|
1411
1412
|
},
|
|
1412
|
-
|
|
1413
|
-
) : l ? /* @__PURE__ */
|
|
1413
|
+
a
|
|
1414
|
+
) : l ? /* @__PURE__ */ i("a", { "aria-label": a, href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...o, ...r, children: l }) : x(
|
|
1414
1415
|
"a",
|
|
1415
1416
|
{
|
|
1416
1417
|
...o,
|
|
1417
1418
|
...r,
|
|
1418
1419
|
href: (t == null ? void 0 : t.href) || "#",
|
|
1419
1420
|
target: (t == null ? void 0 : t.target) || "_self",
|
|
1420
|
-
"aria-label":
|
|
1421
|
+
"aria-label": a
|
|
1421
1422
|
},
|
|
1422
|
-
|
|
1423
|
+
a
|
|
1423
1424
|
);
|
|
1424
1425
|
}, mt = {
|
|
1425
1426
|
type: "Link",
|
|
1426
1427
|
description: "A link component",
|
|
1427
1428
|
label: "Link",
|
|
1428
1429
|
category: "core",
|
|
1429
|
-
icon:
|
|
1430
|
+
icon: re,
|
|
1430
1431
|
group: "basic",
|
|
1431
1432
|
...p({
|
|
1432
1433
|
properties: {
|
|
1433
|
-
styles: u(""),
|
|
1434
|
+
styles: u("block"),
|
|
1434
1435
|
content: {
|
|
1435
1436
|
type: "string",
|
|
1436
|
-
default: "Link goes here",
|
|
1437
|
+
default: "Link text goes here",
|
|
1437
1438
|
title: "Content"
|
|
1438
1439
|
},
|
|
1439
1440
|
link: {
|
|
@@ -1464,7 +1465,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1464
1465
|
canAcceptBlock: (e) => e !== "Link"
|
|
1465
1466
|
}, yt = (e) => {
|
|
1466
1467
|
const { blockProps: o, children: t, styles: l, tag: r, inBuilder: n } = e;
|
|
1467
|
-
return !t &&
|
|
1468
|
+
return !t && w(l == null ? void 0 : l.className) ? /* @__PURE__ */ i(C, { inBuilder: n }) : b.createElement(r || "ul", { ...o, ...l }, t);
|
|
1468
1469
|
}, gt = {
|
|
1469
1470
|
type: "List",
|
|
1470
1471
|
description: "A list component",
|
|
@@ -1504,7 +1505,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1504
1505
|
]
|
|
1505
1506
|
}, bt = (e) => {
|
|
1506
1507
|
const { blockProps: o, content: t, styles: l, children: r, tag: n } = e;
|
|
1507
|
-
return r ?
|
|
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 }
|
|
@@ -1513,7 +1514,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1513
1514
|
type: "ListItem",
|
|
1514
1515
|
description: "A list item component",
|
|
1515
1516
|
label: "List Item",
|
|
1516
|
-
icon:
|
|
1517
|
+
icon: ne,
|
|
1517
1518
|
category: "core",
|
|
1518
1519
|
group: "basic",
|
|
1519
1520
|
...p({
|
|
@@ -1535,9 +1536,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1535
1536
|
canBeNested: (e) => e === "List" || e === "Repeater"
|
|
1536
1537
|
}, ht = (e) => {
|
|
1537
1538
|
const { blockProps: o, styles: t, content: l } = e;
|
|
1538
|
-
if (!
|
|
1539
|
+
if (!ue(e.children)) return b.createElement("p", { ...t, ...o }, e.children);
|
|
1539
1540
|
const r = T(t, "rte");
|
|
1540
|
-
return
|
|
1541
|
+
return b.createElement("div", {
|
|
1541
1542
|
...r,
|
|
1542
1543
|
...o,
|
|
1543
1544
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -1547,7 +1548,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1547
1548
|
description: "A paragraph component",
|
|
1548
1549
|
label: "Paragraph",
|
|
1549
1550
|
category: "core",
|
|
1550
|
-
icon:
|
|
1551
|
+
icon: ie,
|
|
1551
1552
|
group: "typography",
|
|
1552
1553
|
...p({
|
|
1553
1554
|
properties: {
|
|
@@ -1565,14 +1566,14 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1565
1566
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
1566
1567
|
}, xt = (e) => {
|
|
1567
1568
|
const { blockProps: o, content: t, styles: l } = e, r = T(l, "rte");
|
|
1568
|
-
return /* @__PURE__ */
|
|
1569
|
+
return /* @__PURE__ */ i("div", { ...o, ...r, dangerouslySetInnerHTML: { __html: t } });
|
|
1569
1570
|
}, wt = {
|
|
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:
|
|
1576
|
+
icon: ae,
|
|
1576
1577
|
group: "typography",
|
|
1577
1578
|
...p({
|
|
1578
1579
|
properties: {
|
|
@@ -1589,7 +1590,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1589
1590
|
i18nProps: ["content"]
|
|
1590
1591
|
}, vt = (e) => {
|
|
1591
1592
|
const { blockProps: o, styles: t, content: l, children: r = null, tag: n } = e;
|
|
1592
|
-
return r ?
|
|
1593
|
+
return r ? b.createElement("span", { ...t, ...o }, r) : b.createElement(n || "span", {
|
|
1593
1594
|
...t,
|
|
1594
1595
|
...o,
|
|
1595
1596
|
dangerouslySetInnerHTML: { __html: l || "" }
|
|
@@ -1599,7 +1600,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1599
1600
|
description: "A span component",
|
|
1600
1601
|
label: "Span",
|
|
1601
1602
|
category: "core",
|
|
1602
|
-
group: "
|
|
1603
|
+
group: "basic",
|
|
1603
1604
|
...p({
|
|
1604
1605
|
properties: {
|
|
1605
1606
|
styles: u(""),
|
|
@@ -1614,14 +1615,14 @@ 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__ */
|
|
1618
|
+
}, It = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Pt = {
|
|
1618
1619
|
type: "Text",
|
|
1619
1620
|
description: "A text component with no styling",
|
|
1620
|
-
label: "
|
|
1621
|
+
label: "Text",
|
|
1621
1622
|
category: "core",
|
|
1622
1623
|
group: "typography",
|
|
1623
|
-
blocks: () => [{ _id: "a", _type: "Text", _name: "
|
|
1624
|
-
icon:
|
|
1624
|
+
blocks: () => [{ _id: "a", _type: "Text", _name: "Text", content: "" }],
|
|
1625
|
+
icon: se,
|
|
1625
1626
|
...p({
|
|
1626
1627
|
properties: {
|
|
1627
1628
|
styles: u("text-black"),
|
|
@@ -1668,58 +1669,59 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
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
1670
|
const t = k(o, "autoplay", !1), l = k(o, "controls", !1), r = k(o, "loop", !1), n = t || k(o, "muted", !0);
|
|
1670
1671
|
if (A.test(e)) {
|
|
1671
|
-
const
|
|
1672
|
-
if (
|
|
1673
|
-
const s =
|
|
1674
|
-
let c = `https://www.youtube.com/embed/${s}`,
|
|
1675
|
-
return
|
|
1672
|
+
const a = e.match(A);
|
|
1673
|
+
if (a) {
|
|
1674
|
+
const s = a[4];
|
|
1675
|
+
let c = `https://www.youtube.com/embed/${s}`, y = t ? "autoplay=1" : "";
|
|
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
1679
|
if (E.test(e)) {
|
|
1679
|
-
const
|
|
1680
|
-
if (
|
|
1681
|
-
const s =
|
|
1680
|
+
const a = e.match(E);
|
|
1681
|
+
if (a) {
|
|
1682
|
+
const s = a[1];
|
|
1682
1683
|
let c = "";
|
|
1683
1684
|
return c += t ? "autoplay=1" : "", c += l ? "&controls=1" : "&controls=0", c += n ? "&muted=1" : "", c += r ? "&loop=1" : "", `https://player.vimeo.com/video/${s}?${c}`;
|
|
1684
1685
|
}
|
|
1685
1686
|
}
|
|
1686
1687
|
return null;
|
|
1687
1688
|
}, Bt = (e) => {
|
|
1688
|
-
const { url: o, blockProps: t, styles: l, controls: r, videoSource: n, inBuilder:
|
|
1689
|
-
return /* @__PURE__ */
|
|
1690
|
-
!
|
|
1691
|
-
|
|
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", { ...z(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", ...F(l, "className") }),
|
|
1692
|
+
a && /* @__PURE__ */ i("div", { ...t, className: "absolute top-0 h-full w-full" })
|
|
1692
1693
|
] });
|
|
1693
1694
|
}, St = (e) => {
|
|
1694
|
-
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps:
|
|
1695
|
-
let
|
|
1696
|
-
const
|
|
1697
|
-
o && typeof o == "string" &&
|
|
1698
|
-
const
|
|
1699
|
-
|
|
1700
|
-
const
|
|
1701
|
-
return (
|
|
1695
|
+
const { url: o, styles: t, controls: l, sources: r, poster: n, blockProps: a, title: s } = e;
|
|
1696
|
+
let c = n;
|
|
1697
|
+
const y = [...k(r, "srcsets", []) || []];
|
|
1698
|
+
o && typeof o == "string" && y.push({ url: o, width: "9999" });
|
|
1699
|
+
const g = y.sort((f, m) => parseInt(f.width) - parseInt(m.width)).filter((f) => !w(f.url) && !w(f.width));
|
|
1700
|
+
g.length === 0 && !c && (c = "https://placehold.co/300x200/EEE/ccc?text=Choose%20Video");
|
|
1701
|
+
const v = k(l, "autoplay", !1) || k(l, "muted", !0);
|
|
1702
|
+
return (c || !w(g)) && /* @__PURE__ */ i("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: /* @__PURE__ */ x(
|
|
1702
1703
|
"video",
|
|
1703
1704
|
{
|
|
1704
1705
|
...t,
|
|
1705
|
-
...
|
|
1706
|
-
|
|
1706
|
+
...a,
|
|
1707
|
+
title: s || "Video player",
|
|
1708
|
+
key: JSON.stringify(g),
|
|
1707
1709
|
controls: k(l, "controls", !1),
|
|
1708
1710
|
autoPlay: k(l, "autoplay", !1),
|
|
1709
1711
|
loop: k(l, "loop", !1),
|
|
1710
|
-
poster:
|
|
1711
|
-
...
|
|
1712
|
+
poster: c,
|
|
1713
|
+
...v ? { muted: !0 } : {}
|
|
1712
1714
|
},
|
|
1713
|
-
|
|
1714
|
-
if (!
|
|
1715
|
-
const
|
|
1716
|
-
return /* @__PURE__ */
|
|
1715
|
+
g.map((f) => {
|
|
1716
|
+
if (!f.url || f.url.length < 4 || isNaN(f.width)) return null;
|
|
1717
|
+
const m = `(max-width: ${f.width}px)`;
|
|
1718
|
+
return /* @__PURE__ */ i("source", { src: f.url, media: m, type: f.type }, f.url);
|
|
1717
1719
|
}),
|
|
1718
1720
|
"Your browser does not support the video tag."
|
|
1719
1721
|
) });
|
|
1720
1722
|
}, Nt = (e) => {
|
|
1721
1723
|
const { videoSource: o } = e;
|
|
1722
|
-
return o === "Custom" ? /* @__PURE__ */
|
|
1724
|
+
return o === "Custom" ? /* @__PURE__ */ i(St, { ...e }) : o === "Youtube" || o === "Vimeo" ? /* @__PURE__ */ i(Bt, { ...e }) : /* @__PURE__ */ h("div", { children: [
|
|
1723
1725
|
"Invalid video source : ",
|
|
1724
1726
|
o
|
|
1725
1727
|
] });
|
|
@@ -1727,7 +1729,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1727
1729
|
type: "Video",
|
|
1728
1730
|
label: "Video",
|
|
1729
1731
|
category: "core",
|
|
1730
|
-
icon:
|
|
1732
|
+
icon: ce,
|
|
1731
1733
|
group: "media",
|
|
1732
1734
|
...p({
|
|
1733
1735
|
properties: {
|
|
@@ -1737,6 +1739,11 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1737
1739
|
default: "Custom",
|
|
1738
1740
|
enum: ["Custom", "Youtube", "Vimeo"],
|
|
1739
1741
|
title: "Video source"
|
|
1742
|
+
},
|
|
1743
|
+
title: {
|
|
1744
|
+
type: "string",
|
|
1745
|
+
title: "Video Title",
|
|
1746
|
+
default: "Video player"
|
|
1740
1747
|
}
|
|
1741
1748
|
},
|
|
1742
1749
|
allOf: [
|
|
@@ -1807,41 +1814,41 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1807
1814
|
poster: { "ui:placeholder": "Enter poster URL" }
|
|
1808
1815
|
}
|
|
1809
1816
|
}),
|
|
1810
|
-
i18nProps: ["url"]
|
|
1817
|
+
i18nProps: ["url", "title"]
|
|
1811
1818
|
}, Tt = (e) => {
|
|
1812
|
-
const { paginationStyles: o } = e, t =
|
|
1813
|
-
return /* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1819
|
+
const { paginationStyles: o } = e, t = me("Pagination");
|
|
1820
|
+
return /* @__PURE__ */ i("div", { ...o, children: t ? b.createElement(t.component, { ...z(e, ["paginationStyles"]), blockProps: {} }) : /* @__PURE__ */ h(N, { children: [
|
|
1821
|
+
/* @__PURE__ */ i(
|
|
1815
1822
|
"button",
|
|
1816
1823
|
{
|
|
1817
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",
|
|
1818
1825
|
disabled: !0,
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1826
|
+
children: /* @__PURE__ */ i(de, { className: "h-4 w-4" })
|
|
1820
1827
|
}
|
|
1821
1828
|
),
|
|
1822
|
-
/* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__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: "2" }),
|
|
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
|
+
/* @__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
|
+
/* @__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(pe, { className: "h-4 w-4" }) })
|
|
1828
1835
|
] }) });
|
|
1829
1836
|
}, Rt = (e) => {
|
|
1830
|
-
const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination:
|
|
1837
|
+
const { children: o, tag: t, styles: l, blockProps: r, $loading: n } = e, { pagination: a, inBuilder: s } = e;
|
|
1831
1838
|
let c = o;
|
|
1832
|
-
return
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
/* @__PURE__ */
|
|
1835
|
-
] },
|
|
1836
|
-
|
|
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
|
+
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1841
|
+
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1842
|
+
] }, g)) : c : /* @__PURE__ */ h(N, { children: [
|
|
1843
|
+
b.createElement(
|
|
1837
1844
|
t,
|
|
1838
1845
|
{ ...r, ...l },
|
|
1839
|
-
n && s ? Array.from({ length: 2 }).map((
|
|
1840
|
-
/* @__PURE__ */
|
|
1841
|
-
/* @__PURE__ */
|
|
1842
|
-
] },
|
|
1846
|
+
n && s ? Array.from({ length: 2 }).map((y, g) => /* @__PURE__ */ h("div", { className: "animate-pulse rounded-md bg-primary/10 p-5", children: [
|
|
1847
|
+
/* @__PURE__ */ i("div", { className: "h-6 w-1/2 rounded-md bg-primary/10" }),
|
|
1848
|
+
/* @__PURE__ */ i("div", { className: "mt-2 h-4 w-1/2 rounded-md bg-primary/10" })
|
|
1849
|
+
] }, g)) : c
|
|
1843
1850
|
),
|
|
1844
|
-
|
|
1851
|
+
a && /* @__PURE__ */ i(
|
|
1845
1852
|
Tt,
|
|
1846
1853
|
{
|
|
1847
1854
|
...F(e, [
|
|
@@ -1859,7 +1866,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1859
1866
|
}, At = {
|
|
1860
1867
|
type: "Repeater",
|
|
1861
1868
|
label: "Repeater",
|
|
1862
|
-
icon:
|
|
1869
|
+
icon: V,
|
|
1863
1870
|
group: "basic",
|
|
1864
1871
|
description: "Repeater block is used to display a list of items based on data binding in repeaterItems",
|
|
1865
1872
|
dataProviderMode: "live",
|
|
@@ -1969,21 +1976,21 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1969
1976
|
default:
|
|
1970
1977
|
n = "div";
|
|
1971
1978
|
}
|
|
1972
|
-
return !e && r ?
|
|
1979
|
+
return !e && r ? b.createElement(
|
|
1973
1980
|
n,
|
|
1974
1981
|
{ ...o, ...t },
|
|
1975
|
-
/* @__PURE__ */
|
|
1976
|
-
) :
|
|
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
|
+
) : b.createElement(n, { ...o, ...t }, e);
|
|
1977
1984
|
}, Mt = {
|
|
1978
1985
|
type: "RepeaterItem",
|
|
1979
1986
|
label: "Repeater Item",
|
|
1980
|
-
icon:
|
|
1987
|
+
icon: V,
|
|
1981
1988
|
hidden: !0,
|
|
1982
1989
|
group: "basic",
|
|
1983
1990
|
...p({
|
|
1984
1991
|
properties: {
|
|
1985
1992
|
styles: L(""),
|
|
1986
|
-
parentTag:
|
|
1993
|
+
parentTag: ye("Repeater", "tag")
|
|
1987
1994
|
}
|
|
1988
1995
|
}),
|
|
1989
1996
|
canAcceptBlock: (e) => e !== "RepeaterItem",
|
|
@@ -1994,7 +2001,7 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
1994
2001
|
children: e,
|
|
1995
2002
|
blockProps: o,
|
|
1996
2003
|
styles: t
|
|
1997
|
-
}) =>
|
|
2004
|
+
}) => b.createElement("div", { ...o, ...t }, e), $t = {
|
|
1998
2005
|
type: "RepeaterEmptyState",
|
|
1999
2006
|
label: "Empty State",
|
|
2000
2007
|
hidden: !0,
|
|
@@ -2006,9 +2013,9 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjQwMCIgeG
|
|
|
2006
2013
|
canDelete: () => !1,
|
|
2007
2014
|
canMove: () => !1,
|
|
2008
2015
|
canDuplicate: () => !1
|
|
2009
|
-
},
|
|
2010
|
-
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,
|
|
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);
|
|
2011
2018
|
};
|
|
2012
2019
|
export {
|
|
2013
|
-
|
|
2020
|
+
qt as loadWebBlocks
|
|
2014
2021
|
};
|