@chaibuilder/sdk 1.2.43 → 1.2.44
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/dist/AddBlocks-Bb-K6Y0Z.cjs +1 -0
- package/dist/{AddBlocks-9UM7zj57.js → AddBlocks-QCb-vIta.js} +47 -46
- package/dist/CanvasArea-Hqy_21xf.js +1215 -0
- package/dist/CanvasArea-xvT325mp.cjs +57 -0
- package/dist/{ChaiBuilderEditor--NV-B5az.cjs → ChaiBuilderEditor-AIXWnz29.cjs} +44 -44
- package/dist/{ChaiBuilderEditor-yf2LRjL1.js → ChaiBuilderEditor-NnMEdW3k.js} +6627 -6635
- package/dist/{CurrentPage-rgu6shCq.cjs → CurrentPage-n_oOiHx5.cjs} +1 -1
- package/dist/{CurrentPage-hKtVFDxU.js → CurrentPage-rkdt2mNr.js} +3 -3
- package/dist/{ListTree-ulr_sjdn.js → ListTree-PuZP9LQu.js} +3 -3
- package/dist/{ListTree-fwN6Y_EA.cjs → ListTree-z0FeSAsc.cjs} +1 -1
- package/dist/{PagesPanel-v6Nl5KWy.cjs → PagesPanel-4ftrFiS0.cjs} +1 -1
- package/dist/{PagesPanel-EHLY-cfj.js → PagesPanel-TYArrNU6.js} +4 -4
- package/dist/{ProjectPanel-ck-mOBEg.cjs → ProjectPanel-2scMInUn.cjs} +1 -1
- package/dist/{ProjectPanel-qiqyRbwH.js → ProjectPanel-qY_Bnqjm.js} +4 -4
- package/dist/{Settings-a7j3ihRx.js → Settings-k9Ll55Wc.js} +965 -892
- package/dist/Settings-kbUR5-xt.cjs +1 -0
- package/dist/{SidePanels-biCoYtzR.cjs → SidePanels-ZHxoiJ7y.cjs} +1 -1
- package/dist/{SidePanels-9XdRZ7rz.js → SidePanels-eOnxPSSw.js} +4 -4
- package/dist/{ThemeConfiguration-MaGPPza1.js → ThemeConfiguration-TINcg8VX.js} +5 -5
- package/dist/{ThemeConfiguration-f6AxqpmO.cjs → ThemeConfiguration-fRsktVs4.cjs} +1 -1
- package/dist/{Topbar-OpgHjdWn.js → Topbar--KrJ6nJg.js} +2 -2
- package/dist/{Topbar-cDxKWgN6.cjs → Topbar-tgFkKz7R.cjs} +1 -1
- package/dist/{UILibrariesPanel-d08F5Ri0.cjs → UILibrariesPanel-2HyAEVLE.cjs} +1 -1
- package/dist/{UILibrariesPanel-HVpapacm.js → UILibrariesPanel-sleogb55.js} +3 -3
- package/dist/{UnsplashImages-Gx7dy6mp.js → UnsplashImages-P7_2yEo-.js} +9 -9
- package/dist/{UnsplashImages-uyokFuF-.cjs → UnsplashImages-azP_HIqG.cjs} +1 -1
- package/dist/{UploadImages-kLPXfW7W.cjs → UploadImages-nnszHoZa.cjs} +1 -1
- package/dist/{UploadImages-aClrfKqQ.js → UploadImages-ovzzQW6b.js} +7 -7
- package/dist/{add-page-modal-kP7x8GYO.js → add-page-modal-SmBfx0LH.js} +4 -4
- package/dist/{add-page-modal-H5MTzKBT.cjs → add-page-modal-nDBqhemF.cjs} +1 -1
- package/dist/atoms-ZOWyNoiC.js +6 -0
- package/dist/atoms-a0H_593V.cjs +1 -0
- package/dist/{confirm-alert-zZAmXzx0.cjs → confirm-alert-75rfTsgE.cjs} +1 -1
- package/dist/{confirm-alert-gemzBTIt.js → confirm-alert-yipdBkkj.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-ER-TAzRL.js → delete-page-modal-HIul7JBc.js} +3 -3
- package/dist/{delete-page-modal-E8MFNVWF.cjs → delete-page-modal-lO-dULGW.cjs} +1 -1
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +30 -30
- package/dist/email.cjs +1 -1
- package/dist/email.d.ts +1 -1
- package/dist/email.js +2 -2
- package/dist/empty-slot-Lsxjts7Q.js +6 -0
- package/dist/empty-slot-Sy930lX6.cjs +1 -0
- package/dist/{form-UruaB3s_.js → form-cZPoXqTP.js} +5 -5
- package/dist/{form-l4PB76nt.cjs → form-yq_mbR58.cjs} +1 -1
- package/dist/{index-rKrjj7Vz.js → index-Vu40oRWp.js} +2 -2
- package/dist/{index-PXyps6Qc.cjs → index-q_bEEzdK.cjs} +1 -1
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +3 -3
- package/dist/{page-viewer-wQq2qD96.cjs → page-viewer-3ZqrDjrz.cjs} +1 -1
- package/dist/{page-viewer-bCH5PPSH.js → page-viewer-ZOVAaE9q.js} +4 -4
- package/dist/{project-general-setting-rdCQBkQZ.js → project-general-setting-2iNlm_kN.js} +8 -8
- package/dist/{project-general-setting-A5OelyCo.cjs → project-general-setting-IIxWGrU2.cjs} +1 -1
- package/dist/{project-seo-setting-Y_q0WJSy.cjs → project-seo-setting-46PdN9FR.cjs} +1 -1
- package/dist/{project-seo-setting-_SGBKl0c.js → project-seo-setting-FX0cbkrO.js} +3 -3
- package/dist/{single-page-detail-H3Rb5gkJ.js → single-page-detail-4v8ojQss.js} +5 -5
- package/dist/{single-page-detail-xAO7x8a1.cjs → single-page-detail-MsBTVx9h.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.d.ts +1 -1
- package/dist/studio.js +3 -3
- package/dist/style.css +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +50 -50
- package/dist/{useCanvasSettings-IalZcnSd.cjs → useCanvasSettings-A7Qj0z4L.cjs} +1 -1
- package/dist/{useCanvasSettings-tkzd9Qrw.js → useCanvasSettings-QH5zCmxD.js} +1 -1
- package/dist/utils-K3Zk762G.cjs +1 -0
- package/dist/{Class-6Hz2KzYb.js → utils-iMv3T4WT.js} +16 -15
- package/dist/web-blocks.cjs +4 -4
- package/dist/web-blocks.js +237 -238
- package/package.json +2 -2
- package/dist/AddBlocks-_6X3bnJZ.cjs +0 -1
- package/dist/CanvasArea-HmbcRpgP.cjs +0 -55
- package/dist/CanvasArea-a3WMBMi3.js +0 -1199
- package/dist/Class-Zc8hpE7f.cjs +0 -1
- package/dist/Settings-Rtk4HDKy.cjs +0 -1
- package/dist/empty-slot-ZBlsQi6m.js +0 -15
- package/dist/empty-slot-nzYOgZuS.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isNull as
|
|
1
|
+
import { isNull as D, isEmpty as k, get as x, pick as $, omit as q, find as V, map as C, noop as O } from "lodash-es";
|
|
2
2
|
import { j as n } from "./jsx-runtime-WbnYoNE9.js";
|
|
3
3
|
import * as u from "react";
|
|
4
|
-
import { S as c, y as
|
|
4
|
+
import { S as c, y as B, q as E, g as I, m as L, l as y, o as P, c as _, T as U, b as G, r as f, h as W } from "./controls-VTdJhdSz.js";
|
|
5
5
|
import { registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
6
|
-
import { E as v } from "./empty-slot-
|
|
7
|
-
import { HeadingIcon as
|
|
8
|
-
import { c as
|
|
9
|
-
import { g as
|
|
6
|
+
import { E as v } from "./empty-slot-Lsxjts7Q.js";
|
|
7
|
+
import { HeadingIcon as X, TextIcon as Y, CursorTextIcon as Z, ButtonIcon as R, Link1Icon as J, RowsIcon as K, ColumnsIcon as Q, SketchLogoIcon as ee, ImageIcon as te, VideoIcon as le, CodeIcon as oe, DividerHorizontalIcon as ae, SpaceBetweenVerticallyIcon as F, TableIcon as se, BorderTopIcon as ne, BorderAllIcon as re, ViewHorizontalIcon as ce, DragHandleHorizontalIcon as ie, GroupIcon as de, LetterCaseToggleIcon as ue, CheckboxIcon as pe, InputIcon as z, RadiobuttonIcon as he, DropdownMenuIcon as ye } from "@radix-ui/react-icons";
|
|
8
|
+
import { c as j, g as b } from "./Functions-7jnEwJyw.js";
|
|
9
|
+
import { g as N } from "./html-to-json-Z6R2o_fA.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "clsx";
|
|
12
12
|
import "tailwind-merge";
|
|
@@ -14,11 +14,11 @@ import "himalaya";
|
|
|
14
14
|
import "./STRINGS--j49GZJP.js";
|
|
15
15
|
const me = u.memo(
|
|
16
16
|
(e) => {
|
|
17
|
-
const { blockProps:
|
|
17
|
+
const { blockProps: l, inBuilder: t, backgroundImage: o, children: a, tag: s = "div", styles: r } = e;
|
|
18
18
|
let i = a;
|
|
19
|
-
a || (i = /* @__PURE__ */ n.jsx(v, {
|
|
19
|
+
a || (i = /* @__PURE__ */ n.jsx(v, { inBuilder: t }));
|
|
20
20
|
let p = {};
|
|
21
|
-
return o && (p = { backgroundImage: `url(${o})` }), u.createElement(s, { ...
|
|
21
|
+
return o && (p = { backgroundImage: `url(${o})` }), u.createElement(s, { ...l, ...r, style: p }, i);
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
d(me, {
|
|
@@ -28,7 +28,7 @@ d(me, {
|
|
|
28
28
|
group: "basic",
|
|
29
29
|
props: {
|
|
30
30
|
styles: c({ default: "" }),
|
|
31
|
-
tag:
|
|
31
|
+
tag: B({
|
|
32
32
|
title: "Tag",
|
|
33
33
|
default: "div",
|
|
34
34
|
options: [
|
|
@@ -51,14 +51,14 @@ d(me, {
|
|
|
51
51
|
{ value: "mark", title: "mark" }
|
|
52
52
|
]
|
|
53
53
|
}),
|
|
54
|
-
backgroundImage:
|
|
54
|
+
backgroundImage: E({ title: "Background Image" })
|
|
55
55
|
},
|
|
56
56
|
canAcceptBlock: () => !0
|
|
57
57
|
});
|
|
58
58
|
const fe = u.memo(
|
|
59
59
|
(e) => {
|
|
60
|
-
const { blockProps:
|
|
61
|
-
return u.createElement("div", { ...
|
|
60
|
+
const { blockProps: l, styles: t } = e;
|
|
61
|
+
return u.createElement("div", { ...l, ...t });
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
d(fe, {
|
|
@@ -71,24 +71,24 @@ d(fe, {
|
|
|
71
71
|
},
|
|
72
72
|
canAcceptBlock: () => !1
|
|
73
73
|
});
|
|
74
|
-
const
|
|
75
|
-
const { blockProps:
|
|
76
|
-
return s ? u.createElement(a, { ...
|
|
77
|
-
...l,
|
|
74
|
+
const ge = (e) => {
|
|
75
|
+
const { blockProps: l, styles: t, content: o, level: a = "h1", children: s = null } = e;
|
|
76
|
+
return s ? u.createElement(a, { ...t, ...l }, s) : u.createElement(a, {
|
|
78
77
|
...t,
|
|
78
|
+
...l,
|
|
79
79
|
"data-ai-key": "content",
|
|
80
80
|
"data-ai-type": "html",
|
|
81
81
|
dangerouslySetInnerHTML: { __html: o }
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
|
-
d(
|
|
84
|
+
d(ge, {
|
|
85
85
|
type: "Heading",
|
|
86
86
|
label: "Heading",
|
|
87
87
|
category: "core",
|
|
88
|
-
icon:
|
|
88
|
+
icon: X,
|
|
89
89
|
group: "typography",
|
|
90
90
|
props: {
|
|
91
|
-
level:
|
|
91
|
+
level: B({
|
|
92
92
|
title: "Level",
|
|
93
93
|
default: "h1",
|
|
94
94
|
binding: !1,
|
|
@@ -106,21 +106,21 @@ d(be, {
|
|
|
106
106
|
},
|
|
107
107
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
108
108
|
});
|
|
109
|
-
const
|
|
110
|
-
const { blockProps:
|
|
111
|
-
return
|
|
112
|
-
...l,
|
|
109
|
+
const be = (e) => {
|
|
110
|
+
const { blockProps: l, styles: t, content: o } = e;
|
|
111
|
+
return D(e.children) ? u.createElement("p", {
|
|
113
112
|
...t,
|
|
113
|
+
...l,
|
|
114
114
|
"data-ai-key": "content",
|
|
115
115
|
"data-ai-type": "html",
|
|
116
116
|
dangerouslySetInnerHTML: { __html: o }
|
|
117
|
-
}) : u.createElement("p", { ...
|
|
117
|
+
}) : u.createElement("p", { ...t, ...l }, e.children);
|
|
118
118
|
};
|
|
119
|
-
d(
|
|
119
|
+
d(be, {
|
|
120
120
|
type: "Paragraph",
|
|
121
121
|
label: "Paragraph",
|
|
122
122
|
category: "core",
|
|
123
|
-
icon:
|
|
123
|
+
icon: Y,
|
|
124
124
|
group: "typography",
|
|
125
125
|
props: {
|
|
126
126
|
styles: c({ default: "" }),
|
|
@@ -132,10 +132,10 @@ d(ge, {
|
|
|
132
132
|
canAcceptBlock: (e) => e === "Span" || e === "Link"
|
|
133
133
|
});
|
|
134
134
|
const ve = (e) => {
|
|
135
|
-
const { blockProps:
|
|
136
|
-
return a ? u.createElement("span", { ...
|
|
137
|
-
...l,
|
|
135
|
+
const { blockProps: l, styles: t, content: o, children: a = null, tag: s } = e;
|
|
136
|
+
return a ? u.createElement("span", { ...t, ...l }, a) : u.createElement(s || "span", {
|
|
138
137
|
...t,
|
|
138
|
+
...l,
|
|
139
139
|
"data-ai-key": "content",
|
|
140
140
|
dangerouslySetInnerHTML: { __html: o }
|
|
141
141
|
});
|
|
@@ -152,15 +152,15 @@ d(ve, {
|
|
|
152
152
|
canAcceptBlock: () => !0
|
|
153
153
|
});
|
|
154
154
|
const xe = (e) => {
|
|
155
|
-
const { blockProps:
|
|
155
|
+
const { blockProps: l, content: t, styles: o } = e;
|
|
156
156
|
return /* @__PURE__ */ n.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ n.jsx(
|
|
157
157
|
"div",
|
|
158
158
|
{
|
|
159
159
|
"data-ai-key": "content",
|
|
160
160
|
"data-ai-type": "richtext",
|
|
161
|
-
...
|
|
161
|
+
...l,
|
|
162
162
|
...o,
|
|
163
|
-
dangerouslySetInnerHTML: { __html:
|
|
163
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
164
164
|
}
|
|
165
165
|
) });
|
|
166
166
|
};
|
|
@@ -179,12 +179,12 @@ d(xe, {
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
const ke = (e) => {
|
|
182
|
-
const { blockProps:
|
|
182
|
+
const { blockProps: l, iconSize: t, icon: o, content: a, iconPos: s, styles: r, children: i } = e, p = o, h = i || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
183
183
|
/* @__PURE__ */ n.jsx("span", { "data-ai-key": "content", children: a }),
|
|
184
184
|
p && /* @__PURE__ */ n.jsx(
|
|
185
185
|
"div",
|
|
186
186
|
{
|
|
187
|
-
style: { width:
|
|
187
|
+
style: { width: t + "px" },
|
|
188
188
|
className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
|
|
189
189
|
dangerouslySetInnerHTML: { __html: p }
|
|
190
190
|
}
|
|
@@ -193,7 +193,7 @@ const ke = (e) => {
|
|
|
193
193
|
return u.createElement(
|
|
194
194
|
"button",
|
|
195
195
|
{
|
|
196
|
-
...
|
|
196
|
+
...l,
|
|
197
197
|
...r,
|
|
198
198
|
type: "button"
|
|
199
199
|
},
|
|
@@ -211,7 +211,7 @@ d(ke, {
|
|
|
211
211
|
styles: c({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
|
|
212
212
|
icon: P({ title: "Icon", default: "" }),
|
|
213
213
|
iconSize: _({ title: "Icon Size", default: 24 }),
|
|
214
|
-
iconPos:
|
|
214
|
+
iconPos: B({
|
|
215
215
|
title: "Icon Position",
|
|
216
216
|
default: "order-last",
|
|
217
217
|
options: [
|
|
@@ -221,23 +221,22 @@ d(ke, {
|
|
|
221
221
|
})
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
const
|
|
225
|
-
const { blockProps:
|
|
226
|
-
return !o && k(a == null ? void 0 : a.className) && k(r) ? /* @__PURE__ */ n.jsx(v, {
|
|
227
|
-
...
|
|
224
|
+
const we = (e) => {
|
|
225
|
+
const { blockProps: l, link: t, children: o, styles: a, inBuilder: s, content: r } = e;
|
|
226
|
+
return !o && k(a == null ? void 0 : a.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { inBuilder: s }) : s ? o ? /* @__PURE__ */ n.jsx("span", { ...l, ...a, children: o }) : u.createElement("span", {
|
|
227
|
+
...l,
|
|
228
228
|
...a,
|
|
229
|
-
dangerouslySetInnerHTML: { __html: r }
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
...t,
|
|
229
|
+
dangerouslySetInnerHTML: { __html: r }
|
|
230
|
+
}) : o ? /* @__PURE__ */ n.jsx("a", { href: t.href || "#/", target: t.target, ...l, ...a, children: o }) : u.createElement("a", {
|
|
231
|
+
...l,
|
|
233
232
|
...a,
|
|
234
233
|
"data-ai-key": "content",
|
|
235
|
-
href:
|
|
236
|
-
target:
|
|
234
|
+
href: t.href || "#",
|
|
235
|
+
target: t.target || "_self",
|
|
237
236
|
dangerouslySetInnerHTML: { __html: r }
|
|
238
237
|
});
|
|
239
238
|
};
|
|
240
|
-
d(
|
|
239
|
+
d(we, {
|
|
241
240
|
type: "Link",
|
|
242
241
|
label: "Link",
|
|
243
242
|
category: "core",
|
|
@@ -251,17 +250,17 @@ d(Be, {
|
|
|
251
250
|
default: { type: "page", target: "_self", href: "" }
|
|
252
251
|
})
|
|
253
252
|
},
|
|
254
|
-
canAcceptBlock: () =>
|
|
253
|
+
canAcceptBlock: (e) => e !== "Link"
|
|
255
254
|
});
|
|
256
|
-
const
|
|
257
|
-
const { blockProps:
|
|
258
|
-
return !
|
|
255
|
+
const Be = (e) => {
|
|
256
|
+
const { blockProps: l, children: t, listType: o, styles: a, tag: s, inBuilder: r } = e, i = j(x(a, "className", ""), o);
|
|
257
|
+
return !t && k(a == null ? void 0 : a.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r }) : u.createElement(
|
|
259
258
|
s || (o === "list-decimal" ? "ol" : "ul"),
|
|
260
|
-
{ ...
|
|
261
|
-
|
|
259
|
+
{ ...l, ...a, className: i },
|
|
260
|
+
t
|
|
262
261
|
);
|
|
263
262
|
};
|
|
264
|
-
d(
|
|
263
|
+
d(Be, {
|
|
265
264
|
type: "List",
|
|
266
265
|
label: "List",
|
|
267
266
|
icon: K,
|
|
@@ -269,7 +268,7 @@ d(we, {
|
|
|
269
268
|
group: "basic",
|
|
270
269
|
props: {
|
|
271
270
|
styles: c({ default: "" }),
|
|
272
|
-
listType:
|
|
271
|
+
listType: B({
|
|
273
272
|
title: "List type",
|
|
274
273
|
default: "list-disc",
|
|
275
274
|
options: [
|
|
@@ -306,12 +305,12 @@ d(we, {
|
|
|
306
305
|
]
|
|
307
306
|
});
|
|
308
307
|
const Ie = (e) => {
|
|
309
|
-
const { blockProps:
|
|
310
|
-
return a ? u.createElement(s || "li", { ...o, ...
|
|
308
|
+
const { blockProps: l, content: t, styles: o, children: a, tag: s } = e;
|
|
309
|
+
return a ? u.createElement(s || "li", { ...o, ...l }, a) : u.createElement(s || "li", {
|
|
311
310
|
...o,
|
|
312
|
-
...
|
|
311
|
+
...l,
|
|
313
312
|
"data-ai-key": "content",
|
|
314
|
-
dangerouslySetInnerHTML: { __html:
|
|
313
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
315
314
|
});
|
|
316
315
|
};
|
|
317
316
|
d(Ie, {
|
|
@@ -327,16 +326,16 @@ d(Ie, {
|
|
|
327
326
|
canAcceptBlock: () => !0,
|
|
328
327
|
canBeNested: (e) => e === "List"
|
|
329
328
|
});
|
|
330
|
-
const
|
|
329
|
+
const w = (e, ...l) => ({
|
|
331
330
|
...e,
|
|
332
|
-
className:
|
|
331
|
+
className: j(e.className, ...l)
|
|
333
332
|
}), Te = (e) => {
|
|
334
|
-
const { blockProps:
|
|
335
|
-
if (k(
|
|
336
|
-
return /* @__PURE__ */ n.jsx(v, {
|
|
337
|
-
const p =
|
|
333
|
+
const { blockProps: l, icon: t, styles: o, width: a, inBuilder: s, height: r } = e, i = w(o, j(a ? `w-[${a}px]` : "", r ? `h-[${r}px]` : ""));
|
|
334
|
+
if (k(t))
|
|
335
|
+
return /* @__PURE__ */ n.jsx(v, { inBuilder: s, className: "h-8 w-14" });
|
|
336
|
+
const p = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
338
337
|
return u.createElement("span", {
|
|
339
|
-
...
|
|
338
|
+
...l,
|
|
340
339
|
...i,
|
|
341
340
|
dangerouslySetInnerHTML: { __html: p }
|
|
342
341
|
});
|
|
@@ -358,11 +357,11 @@ d(Te, {
|
|
|
358
357
|
}
|
|
359
358
|
});
|
|
360
359
|
const Le = (e) => {
|
|
361
|
-
const { blockProps:
|
|
362
|
-
return k(
|
|
363
|
-
...
|
|
360
|
+
const { blockProps: l, image: t, styles: o, alt: a, height: s, width: r } = e;
|
|
361
|
+
return k(t) ? /* @__PURE__ */ n.jsx(v, { className: "h-36" }) : u.createElement("img", {
|
|
362
|
+
...l,
|
|
364
363
|
...o,
|
|
365
|
-
src:
|
|
364
|
+
src: t,
|
|
366
365
|
alt: a,
|
|
367
366
|
loading: "lazy",
|
|
368
367
|
height: s,
|
|
@@ -377,7 +376,7 @@ d(Le, {
|
|
|
377
376
|
group: "media",
|
|
378
377
|
props: {
|
|
379
378
|
styles: c({ default: "" }),
|
|
380
|
-
image:
|
|
379
|
+
image: E({
|
|
381
380
|
title: "Image",
|
|
382
381
|
default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
|
|
383
382
|
}),
|
|
@@ -388,13 +387,13 @@ d(Le, {
|
|
|
388
387
|
});
|
|
389
388
|
const _e = (e) => {
|
|
390
389
|
var r;
|
|
391
|
-
const { blockProps:
|
|
390
|
+
const { blockProps: l, inBuilder: t, styles: o, children: a } = e;
|
|
392
391
|
let s = null;
|
|
393
|
-
return !a &&
|
|
394
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
392
|
+
return !a && t && (s = // @ts-ignore
|
|
393
|
+
/* @__PURE__ */ n.jsx("div", { className: j("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ n.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ n.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
|
|
395
394
|
"Slot: ",
|
|
396
395
|
e.name
|
|
397
|
-
] }) }) })), u.createElement("div", { ...o, ...
|
|
396
|
+
] }) }) })), u.createElement("div", { ...o, ...l, droppable: "yes" }, a || s);
|
|
398
397
|
};
|
|
399
398
|
d(_e, {
|
|
400
399
|
type: "Slot",
|
|
@@ -408,56 +407,56 @@ d(_e, {
|
|
|
408
407
|
},
|
|
409
408
|
canAcceptBlock: () => !0
|
|
410
409
|
});
|
|
411
|
-
const
|
|
412
|
-
if (
|
|
413
|
-
const
|
|
414
|
-
return
|
|
410
|
+
const A = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, M = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, H = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, je = (e) => {
|
|
411
|
+
if (A.test(e)) {
|
|
412
|
+
const l = e.match(A);
|
|
413
|
+
return l ? `https://www.youtube.com/embed/${l[4]}` : e;
|
|
415
414
|
}
|
|
416
|
-
if (
|
|
417
|
-
const
|
|
418
|
-
return
|
|
415
|
+
if (M.test(e)) {
|
|
416
|
+
const l = e.match(M);
|
|
417
|
+
return l ? `https://player.vimeo.com/video/${l[3]}` : e;
|
|
419
418
|
}
|
|
420
419
|
if (H.test(e)) {
|
|
421
|
-
const
|
|
422
|
-
return
|
|
420
|
+
const l = e.match(H);
|
|
421
|
+
return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : e;
|
|
423
422
|
}
|
|
424
423
|
return null;
|
|
425
|
-
},
|
|
424
|
+
}, Se = u.memo(
|
|
426
425
|
(e) => {
|
|
427
|
-
const { blockProps:
|
|
426
|
+
const { blockProps: l, inBuilder: t, styles: o, url: a, controls: s } = e, r = x(s, "autoPlay", !1), i = x(s, "controls", !1), p = r || x(s, "muted", !0), h = x(s, "loop", !1);
|
|
428
427
|
if (k(a))
|
|
429
|
-
return /* @__PURE__ */ n.jsx(v, { inBuilder:
|
|
430
|
-
let
|
|
431
|
-
if (
|
|
432
|
-
if (!k(
|
|
428
|
+
return /* @__PURE__ */ n.jsx(v, { inBuilder: t, className: "h-36" });
|
|
429
|
+
let g = je(a), m = null;
|
|
430
|
+
if (g) {
|
|
431
|
+
if (!k(g)) {
|
|
433
432
|
const T = [];
|
|
434
|
-
T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${s ? 1 : 0}`), T.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`),
|
|
433
|
+
T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${s ? 1 : 0}`), T.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`), g = `${g}?${T.join("&")}`;
|
|
435
434
|
}
|
|
436
435
|
m = u.createElement("iframe", {
|
|
437
|
-
...
|
|
436
|
+
...l,
|
|
438
437
|
className: "absolute inset-0 w-full h-full",
|
|
439
|
-
src:
|
|
440
|
-
allow:
|
|
438
|
+
src: g,
|
|
439
|
+
allow: t ? "" : "autoplay *; fullscreen *",
|
|
441
440
|
allowFullScreen: !0,
|
|
442
441
|
frameBorder: 0
|
|
443
442
|
});
|
|
444
443
|
} else
|
|
445
444
|
m = u.createElement("video", {
|
|
446
|
-
...
|
|
445
|
+
...l,
|
|
447
446
|
className: "absolute inset-0 w-full h-full",
|
|
448
447
|
src: a,
|
|
449
448
|
controls: i,
|
|
450
449
|
muted: p,
|
|
451
|
-
autoPlay:
|
|
450
|
+
autoPlay: t ? !1 : r,
|
|
452
451
|
loop: h
|
|
453
452
|
});
|
|
454
453
|
return /* @__PURE__ */ n.jsx("div", { ...$(o, ["className"]), children: /* @__PURE__ */ n.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
455
|
-
|
|
454
|
+
t ? /* @__PURE__ */ n.jsx("div", { ...l, ...q(o, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
456
455
|
m
|
|
457
456
|
] }) });
|
|
458
457
|
}
|
|
459
458
|
);
|
|
460
|
-
d(
|
|
459
|
+
d(Se, {
|
|
461
460
|
type: "Video",
|
|
462
461
|
label: "Video",
|
|
463
462
|
category: "core",
|
|
@@ -480,19 +479,19 @@ d(je, {
|
|
|
480
479
|
})
|
|
481
480
|
}
|
|
482
481
|
});
|
|
483
|
-
const
|
|
482
|
+
const Ce = u.memo(
|
|
484
483
|
(e) => {
|
|
485
|
-
const { blockProps:
|
|
484
|
+
const { blockProps: l, styles: t, content: o, inBuilder: a } = e;
|
|
486
485
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
487
|
-
a ? /* @__PURE__ */ n.jsx("div", { ...
|
|
486
|
+
a ? /* @__PURE__ */ n.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
488
487
|
u.createElement("div", {
|
|
489
|
-
...
|
|
488
|
+
...t,
|
|
490
489
|
dangerouslySetInnerHTML: { __html: o }
|
|
491
490
|
})
|
|
492
491
|
] });
|
|
493
492
|
}
|
|
494
493
|
);
|
|
495
|
-
d(
|
|
494
|
+
d(Ce, {
|
|
496
495
|
type: "CustomHTML",
|
|
497
496
|
label: "Custom HTML",
|
|
498
497
|
category: "core",
|
|
@@ -507,11 +506,11 @@ d(Ee, {
|
|
|
507
506
|
})
|
|
508
507
|
}
|
|
509
508
|
});
|
|
510
|
-
const
|
|
511
|
-
const { blockProps:
|
|
512
|
-
return u.createElement("hr", { ...
|
|
509
|
+
const Ee = (e) => {
|
|
510
|
+
const { blockProps: l, styles: t } = e;
|
|
511
|
+
return u.createElement("hr", { ...t, ...l });
|
|
513
512
|
};
|
|
514
|
-
d(
|
|
513
|
+
d(Ee, {
|
|
515
514
|
type: "Divider",
|
|
516
515
|
label: "Divider",
|
|
517
516
|
category: "core",
|
|
@@ -533,11 +532,11 @@ d(Pe, {
|
|
|
533
532
|
content: I({ title: "Content", defaultValue: "" })
|
|
534
533
|
}
|
|
535
534
|
});
|
|
536
|
-
const
|
|
537
|
-
const o =
|
|
538
|
-
return /* @__PURE__ */ n.jsx("div", { ...
|
|
535
|
+
const Ne = ({ children: e, blockProps: l, styles: t }) => {
|
|
536
|
+
const o = w(t, "hs-accordion-group");
|
|
537
|
+
return /* @__PURE__ */ n.jsx("div", { ...l, ...o, children: e });
|
|
539
538
|
};
|
|
540
|
-
d(
|
|
539
|
+
d(Ne, {
|
|
541
540
|
type: "AccordionGroup",
|
|
542
541
|
label: "Accordion Group",
|
|
543
542
|
category: "core",
|
|
@@ -547,8 +546,8 @@ d(Ae, {
|
|
|
547
546
|
},
|
|
548
547
|
// @ts-ignore
|
|
549
548
|
blocks: () => {
|
|
550
|
-
const e = "dnd-accordion-" +
|
|
551
|
-
return
|
|
549
|
+
const e = "dnd-accordion-" + b();
|
|
550
|
+
return N(`<div class="hs-accordion-group">
|
|
552
551
|
<div class="hs-accordion active" id="hs-unstyled-heading-one">
|
|
553
552
|
<button class="hs-accordion-toggle" aria-controls="hs-unstyled-collapse-one">
|
|
554
553
|
Accordion #1
|
|
@@ -570,14 +569,14 @@ d(Ae, {
|
|
|
570
569
|
},
|
|
571
570
|
canAcceptBlock: (e) => e === "Accordion"
|
|
572
571
|
});
|
|
573
|
-
const
|
|
574
|
-
const a =
|
|
575
|
-
|
|
572
|
+
const Ae = ({ children: e, blockProps: l, styles: t, blockState: o }) => {
|
|
573
|
+
const a = w(
|
|
574
|
+
t,
|
|
576
575
|
"hs-accordion " + (o && o != null && o.active ? "active" : "")
|
|
577
576
|
);
|
|
578
|
-
return /* @__PURE__ */ n.jsx("div", { ...
|
|
577
|
+
return /* @__PURE__ */ n.jsx("div", { ...l, ...a, children: e });
|
|
579
578
|
};
|
|
580
|
-
d(
|
|
579
|
+
d(Ae, {
|
|
581
580
|
type: "Accordion",
|
|
582
581
|
label: "Accordion",
|
|
583
582
|
category: "core",
|
|
@@ -594,8 +593,8 @@ d(Me, {
|
|
|
594
593
|
getBlockStateFrom: (e) => [e._id],
|
|
595
594
|
// @ts-ignore
|
|
596
595
|
blocks: () => {
|
|
597
|
-
const e = "dnd-accordion-" +
|
|
598
|
-
return
|
|
596
|
+
const e = "dnd-accordion-" + b();
|
|
597
|
+
return N(`
|
|
599
598
|
<div class="hs-accordion active" id="hs-unstyled-heading-one">
|
|
600
599
|
<button class="hs-accordion-toggle" aria-controls="hs-unstyled-collapse-one">
|
|
601
600
|
Accordion #1
|
|
@@ -607,11 +606,11 @@ d(Me, {
|
|
|
607
606
|
`.replace(/hs-unstyled-heading/g, e).replace(/hs-unstyled-collapse/g, e));
|
|
608
607
|
}
|
|
609
608
|
});
|
|
610
|
-
const
|
|
611
|
-
const o =
|
|
612
|
-
return /* @__PURE__ */ n.jsx("button", { ...o, ...
|
|
609
|
+
const Me = ({ children: e, blockProps: l, styles: t }) => {
|
|
610
|
+
const o = w(t, "hs-accordion-toggle");
|
|
611
|
+
return /* @__PURE__ */ n.jsx("button", { ...o, ...l, children: e });
|
|
613
612
|
};
|
|
614
|
-
d(
|
|
613
|
+
d(Me, {
|
|
615
614
|
type: "AccordionToggle",
|
|
616
615
|
label: "Accordion Toggle",
|
|
617
616
|
category: "core",
|
|
@@ -627,13 +626,13 @@ d(Ne, {
|
|
|
627
626
|
canMove: () => !1,
|
|
628
627
|
canDuplicate: () => !1
|
|
629
628
|
});
|
|
630
|
-
const He = ({ children: e, blockProps:
|
|
631
|
-
const s =
|
|
632
|
-
|
|
629
|
+
const He = ({ children: e, blockProps: l, styles: t, blockState: o, inBuilder: a }) => {
|
|
630
|
+
const s = w(
|
|
631
|
+
t,
|
|
633
632
|
"hs-accordion-content",
|
|
634
633
|
a && o ? o != null && o.active ? "!block !opacity-100" : "!hidden !opacity-0" : ""
|
|
635
634
|
);
|
|
636
|
-
return /* @__PURE__ */ n.jsx("div", { ...s, ...
|
|
635
|
+
return /* @__PURE__ */ n.jsx("div", { ...s, ...l, children: e });
|
|
637
636
|
};
|
|
638
637
|
d(He, {
|
|
639
638
|
type: "AccordionContent",
|
|
@@ -651,9 +650,9 @@ d(He, {
|
|
|
651
650
|
canMove: () => !1,
|
|
652
651
|
canDuplicate: () => !1
|
|
653
652
|
});
|
|
654
|
-
const Re = ({ children: e, blockProps:
|
|
655
|
-
const s = a && (o != null && o.active) ? " open" : "", r =
|
|
656
|
-
return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...
|
|
653
|
+
const Re = ({ children: e, blockProps: l, styles: t, blockState: o, inBuilder: a }) => {
|
|
654
|
+
const s = a && (o != null && o.active) ? " open" : "", r = w(t, "hs-collapse-toggle", s);
|
|
655
|
+
return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...l, children: e });
|
|
657
656
|
};
|
|
658
657
|
d(Re, {
|
|
659
658
|
type: "CollapseToggle",
|
|
@@ -668,17 +667,17 @@ d(Re, {
|
|
|
668
667
|
"hs-collapse-open": "Collapse Open"
|
|
669
668
|
},
|
|
670
669
|
// @ts-ignore
|
|
671
|
-
getBlockStateFrom: (e,
|
|
672
|
-
const
|
|
673
|
-
if (!
|
|
670
|
+
getBlockStateFrom: (e, l) => {
|
|
671
|
+
const t = x(e, "styles_attrs.data-hs-collapse", "").replace("#", "");
|
|
672
|
+
if (!t)
|
|
674
673
|
return [];
|
|
675
|
-
const o =
|
|
674
|
+
const o = V(l, (a) => x(a, "styles_attrs.id") === t);
|
|
676
675
|
return o ? [o == null ? void 0 : o._id] : [];
|
|
677
676
|
}
|
|
678
677
|
});
|
|
679
|
-
const Fe = ({ children: e, blockProps:
|
|
680
|
-
const s = a ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(s).filter((p) => s[p]).join(" "), i =
|
|
681
|
-
return /* @__PURE__ */ n.jsx("div", { ...i, ...
|
|
678
|
+
const Fe = ({ children: e, blockProps: l, styles: t, blockState: o, inBuilder: a }) => {
|
|
679
|
+
const s = a ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(s).filter((p) => s[p]).join(" "), i = w(t, "hs-collapse", r);
|
|
680
|
+
return /* @__PURE__ */ n.jsx("div", { ...i, ...l, children: e });
|
|
682
681
|
};
|
|
683
682
|
d(Fe, {
|
|
684
683
|
type: "Collapse",
|
|
@@ -697,19 +696,19 @@ d(Fe, {
|
|
|
697
696
|
},
|
|
698
697
|
getBlockStateFrom: (e) => [e._id],
|
|
699
698
|
// @ts-ignore
|
|
700
|
-
blocks: () =>
|
|
699
|
+
blocks: () => N(`<button type="button" class="hs-collapse-toggle" id="hs-unstyled-collapse" data-hs-collapse="#hs-unstyled-collapse-content">
|
|
701
700
|
Collapse
|
|
702
701
|
</button>
|
|
703
702
|
<div id="hs-unstyled-collapse-content" class="hs-collapse hidden w-full overflow-hidden transition-[height] duration-300" aria-labelledby="hs-unstyled-collapse">
|
|
704
703
|
This is a collapse body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions.
|
|
705
|
-
</div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${
|
|
704
|
+
</div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${b()}`))
|
|
706
705
|
});
|
|
707
|
-
const
|
|
708
|
-
const { blockProps:
|
|
706
|
+
const ze = (e) => {
|
|
707
|
+
const { blockProps: l, backgroundImage: t, children: o, styles: a } = e;
|
|
709
708
|
let s = {};
|
|
710
|
-
return
|
|
709
|
+
return t && (s = { backgroundImage: `url(${t})` }), u.createElement("div", { ...l, ...a, style: s }, o);
|
|
711
710
|
};
|
|
712
|
-
d(
|
|
711
|
+
d(ze, {
|
|
713
712
|
type: "Body",
|
|
714
713
|
label: "Body",
|
|
715
714
|
category: "core",
|
|
@@ -717,18 +716,18 @@ d(De, {
|
|
|
717
716
|
hidden: !0,
|
|
718
717
|
props: {
|
|
719
718
|
styles: c({ default: "font-body antialiased" }),
|
|
720
|
-
backgroundImage:
|
|
719
|
+
backgroundImage: E({ title: "Background Image" })
|
|
721
720
|
},
|
|
722
721
|
canAcceptBlock: () => !0,
|
|
723
722
|
canDelete: () => !1,
|
|
724
723
|
canMove: () => !1,
|
|
725
724
|
canDuplicate: () => !1
|
|
726
725
|
});
|
|
727
|
-
const
|
|
728
|
-
const { blockProps:
|
|
729
|
-
return u.createElement("br", { ...
|
|
726
|
+
const De = (e) => {
|
|
727
|
+
const { blockProps: l, styles: t } = e;
|
|
728
|
+
return u.createElement("br", { ...l, ...t });
|
|
730
729
|
};
|
|
731
|
-
d(
|
|
730
|
+
d(De, {
|
|
732
731
|
type: "LineBreak",
|
|
733
732
|
label: "Line Break",
|
|
734
733
|
category: "core",
|
|
@@ -739,37 +738,37 @@ d(ze, {
|
|
|
739
738
|
styles: c({ default: "" })
|
|
740
739
|
}
|
|
741
740
|
});
|
|
742
|
-
const
|
|
743
|
-
const
|
|
744
|
-
_id:
|
|
741
|
+
const S = (e) => {
|
|
742
|
+
const l = (s, r) => ({
|
|
743
|
+
_id: b(),
|
|
745
744
|
_parent: s,
|
|
746
745
|
_type: "TableCell",
|
|
747
746
|
styles: "#styles:,",
|
|
748
747
|
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + r}`
|
|
749
|
-
}),
|
|
750
|
-
const r =
|
|
748
|
+
}), t = (s) => {
|
|
749
|
+
const r = b(), i = {
|
|
751
750
|
_type: "TableRow",
|
|
752
751
|
_id: r,
|
|
753
752
|
styles: "#styles:,border-b"
|
|
754
753
|
};
|
|
755
|
-
return s && (i._parent = s), [i,
|
|
754
|
+
return s && (i._parent = s), [i, l(r, "1"), l(r, "2"), l(r, "3")];
|
|
756
755
|
}, o = (s) => {
|
|
757
|
-
const r =
|
|
756
|
+
const r = b(), i = {
|
|
758
757
|
_id: r,
|
|
759
758
|
_type: "TableHead",
|
|
760
759
|
styles: "#styles:,font-medium"
|
|
761
760
|
};
|
|
762
|
-
return s && (i._parent = s), [i, ...
|
|
761
|
+
return s && (i._parent = s), [i, ...t(r)];
|
|
763
762
|
}, a = (s) => {
|
|
764
|
-
const r =
|
|
763
|
+
const r = b(), i = {
|
|
765
764
|
_id: r,
|
|
766
765
|
_type: "TableBody",
|
|
767
766
|
styles: "#styles:,"
|
|
768
767
|
};
|
|
769
|
-
return s && (i._parent = s), [i, ...
|
|
768
|
+
return s && (i._parent = s), [i, ...t(r), ...t(r)];
|
|
770
769
|
};
|
|
771
770
|
if (e === "Table") {
|
|
772
|
-
const s =
|
|
771
|
+
const s = b();
|
|
773
772
|
return [
|
|
774
773
|
{
|
|
775
774
|
_id: s,
|
|
@@ -780,10 +779,10 @@ const j = (e) => {
|
|
|
780
779
|
...a(s)
|
|
781
780
|
];
|
|
782
781
|
}
|
|
783
|
-
return e === "TableRow" ?
|
|
782
|
+
return e === "TableRow" ? t() : e === "TableHead" ? o() : e === "TableBody" ? a() : [];
|
|
784
783
|
}, $e = (e) => {
|
|
785
|
-
const { blockProps:
|
|
786
|
-
return
|
|
784
|
+
const { blockProps: l, children: t, styles: o } = e;
|
|
785
|
+
return t ? u.createElement("table", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
|
|
787
786
|
};
|
|
788
787
|
d($e, {
|
|
789
788
|
type: "Table",
|
|
@@ -795,11 +794,11 @@ d($e, {
|
|
|
795
794
|
props: {
|
|
796
795
|
styles: c({ default: "" })
|
|
797
796
|
},
|
|
798
|
-
blocks:
|
|
797
|
+
blocks: S("Table")
|
|
799
798
|
});
|
|
800
799
|
const qe = (e) => {
|
|
801
|
-
const { blockProps:
|
|
802
|
-
return
|
|
800
|
+
const { blockProps: l, children: t, styles: o } = e;
|
|
801
|
+
return t ? u.createElement("thead", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
|
|
803
802
|
};
|
|
804
803
|
d(qe, {
|
|
805
804
|
type: "TableHead",
|
|
@@ -811,13 +810,13 @@ d(qe, {
|
|
|
811
810
|
props: {
|
|
812
811
|
styles: c({ default: "" })
|
|
813
812
|
},
|
|
814
|
-
blocks:
|
|
813
|
+
blocks: S("TableHead")
|
|
815
814
|
});
|
|
816
|
-
const
|
|
817
|
-
const { blockProps:
|
|
818
|
-
return
|
|
815
|
+
const Ve = (e) => {
|
|
816
|
+
const { blockProps: l, children: t, styles: o } = e;
|
|
817
|
+
return t ? u.createElement("tbody", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
|
|
819
818
|
};
|
|
820
|
-
d(
|
|
819
|
+
d(Ve, {
|
|
821
820
|
type: "TableBody",
|
|
822
821
|
label: "Table Body",
|
|
823
822
|
category: "core",
|
|
@@ -827,13 +826,13 @@ d(Oe, {
|
|
|
827
826
|
props: {
|
|
828
827
|
styles: c({ default: "" })
|
|
829
828
|
},
|
|
830
|
-
blocks:
|
|
829
|
+
blocks: S("TableBody")
|
|
831
830
|
});
|
|
832
|
-
const
|
|
833
|
-
const { blockProps:
|
|
834
|
-
return
|
|
831
|
+
const Oe = (e) => {
|
|
832
|
+
const { blockProps: l, children: t, styles: o } = e;
|
|
833
|
+
return t ? u.createElement("tr", { ...l, ...o }, t) : /* @__PURE__ */ n.jsx(v, {});
|
|
835
834
|
};
|
|
836
|
-
d(
|
|
835
|
+
d(Oe, {
|
|
837
836
|
type: "TableRow",
|
|
838
837
|
label: "Table Row",
|
|
839
838
|
category: "core",
|
|
@@ -843,12 +842,12 @@ d(Ve, {
|
|
|
843
842
|
props: {
|
|
844
843
|
styles: c({ default: "w-full" })
|
|
845
844
|
},
|
|
846
|
-
blocks:
|
|
845
|
+
blocks: S("TableRow")
|
|
847
846
|
});
|
|
848
847
|
const Ue = (e) => {
|
|
849
|
-
const { blockProps:
|
|
850
|
-
return !
|
|
851
|
-
...
|
|
848
|
+
const { blockProps: l, children: t, content: o, styles: a } = e;
|
|
849
|
+
return !t && k(o) ? /* @__PURE__ */ n.jsx(v, {}) : t ? u.createElement("td", { ...l, ...a }, t) : u.createElement("td", {
|
|
850
|
+
...l,
|
|
852
851
|
...a,
|
|
853
852
|
dangerouslySetInnerHTML: { __html: o }
|
|
854
853
|
});
|
|
@@ -866,10 +865,10 @@ d(Ue, {
|
|
|
866
865
|
}
|
|
867
866
|
});
|
|
868
867
|
const Ge = (e) => {
|
|
869
|
-
const { blockProps:
|
|
868
|
+
const { blockProps: l, errorMessage: t, name: o, _type: a, successMessage: s, action: r, styles: i, children: p } = e;
|
|
870
869
|
let h = p;
|
|
871
|
-
p || (h = /* @__PURE__ */ n.jsx(v, {
|
|
872
|
-
const
|
|
870
|
+
p || (h = /* @__PURE__ */ n.jsx(v, {}));
|
|
871
|
+
const g = {
|
|
873
872
|
"x-data": "useForm",
|
|
874
873
|
"x-on:submit.prevent": "post"
|
|
875
874
|
}, m = {
|
|
@@ -879,12 +878,12 @@ const Ge = (e) => {
|
|
|
879
878
|
return /* @__PURE__ */ n.jsxs(
|
|
880
879
|
"form",
|
|
881
880
|
{
|
|
882
|
-
...
|
|
883
|
-
"data-error":
|
|
881
|
+
...g,
|
|
882
|
+
"data-error": t,
|
|
884
883
|
"data-success": s,
|
|
885
884
|
method: "post",
|
|
886
885
|
action: r,
|
|
887
|
-
...
|
|
886
|
+
...l,
|
|
888
887
|
...i,
|
|
889
888
|
children: [
|
|
890
889
|
/* @__PURE__ */ n.jsx("div", { ...m }),
|
|
@@ -919,10 +918,10 @@ d(Ge, {
|
|
|
919
918
|
canAcceptBlock: () => !0
|
|
920
919
|
});
|
|
921
920
|
const We = (e) => {
|
|
922
|
-
const { blockProps:
|
|
921
|
+
const { blockProps: l, content: t, styles: o, children: a } = e, s = { ...o, ...l };
|
|
923
922
|
return a ? u.createElement("label", s, a) : u.createElement("label", {
|
|
924
923
|
...s,
|
|
925
|
-
dangerouslySetInnerHTML: { __html:
|
|
924
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
926
925
|
});
|
|
927
926
|
};
|
|
928
927
|
d(We, {
|
|
@@ -937,8 +936,8 @@ d(We, {
|
|
|
937
936
|
content: y({ title: "Content", default: "Label", ai: { html: !1 } })
|
|
938
937
|
}
|
|
939
938
|
});
|
|
940
|
-
const
|
|
941
|
-
const { blockProps:
|
|
939
|
+
const Xe = (e) => {
|
|
940
|
+
const { blockProps: l, inBuilder: t, label: o, styles: a, inputStyles: s, icon: r, iconPos: i } = e, p = b(), h = {
|
|
942
941
|
"x-bind:disabled": "formLoading"
|
|
943
942
|
};
|
|
944
943
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -948,8 +947,8 @@ const Ye = (e) => {
|
|
|
948
947
|
...h,
|
|
949
948
|
...s,
|
|
950
949
|
...a,
|
|
951
|
-
...
|
|
952
|
-
type:
|
|
950
|
+
...l || {},
|
|
951
|
+
type: t ? "button" : "submit",
|
|
953
952
|
children: [
|
|
954
953
|
o,
|
|
955
954
|
r && /* @__PURE__ */ n.jsx("span", { className: i, dangerouslySetInnerHTML: { __html: r } })
|
|
@@ -957,7 +956,7 @@ const Ye = (e) => {
|
|
|
957
956
|
}
|
|
958
957
|
);
|
|
959
958
|
};
|
|
960
|
-
d(
|
|
959
|
+
d(Xe, {
|
|
961
960
|
type: "FormButton",
|
|
962
961
|
label: "Submit Button",
|
|
963
962
|
category: "core",
|
|
@@ -970,7 +969,7 @@ d(Ye, {
|
|
|
970
969
|
default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
971
970
|
}),
|
|
972
971
|
icon: P({ title: "Icon", default: "" }),
|
|
973
|
-
iconPos:
|
|
972
|
+
iconPos: B({
|
|
974
973
|
title: "Icon Position",
|
|
975
974
|
default: "order-last",
|
|
976
975
|
options: [
|
|
@@ -980,14 +979,14 @@ d(Ye, {
|
|
|
980
979
|
})
|
|
981
980
|
}
|
|
982
981
|
});
|
|
983
|
-
const
|
|
984
|
-
const { blockProps:
|
|
985
|
-
return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...
|
|
982
|
+
const Ye = (e) => {
|
|
983
|
+
const { blockProps: l, fieldName: t, label: o, styles: a, inputStyles: s, required: r, checked: i, showLabel: p = !0 } = e, h = b();
|
|
984
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...l, children: [
|
|
986
985
|
/* @__PURE__ */ n.jsx(
|
|
987
986
|
"input",
|
|
988
987
|
{
|
|
989
988
|
...s,
|
|
990
|
-
name:
|
|
989
|
+
name: t,
|
|
991
990
|
id: h,
|
|
992
991
|
type: "checkbox",
|
|
993
992
|
required: r,
|
|
@@ -999,16 +998,16 @@ const Xe = (e) => {
|
|
|
999
998
|
"input",
|
|
1000
999
|
{
|
|
1001
1000
|
id: h,
|
|
1002
|
-
...
|
|
1001
|
+
...l,
|
|
1003
1002
|
...s,
|
|
1004
1003
|
...a,
|
|
1005
1004
|
type: "checkbox",
|
|
1006
1005
|
required: r,
|
|
1007
|
-
name:
|
|
1006
|
+
name: t
|
|
1008
1007
|
}
|
|
1009
1008
|
);
|
|
1010
1009
|
};
|
|
1011
|
-
d(
|
|
1010
|
+
d(Ye, {
|
|
1012
1011
|
type: "Checkbox",
|
|
1013
1012
|
label: "Checkbox",
|
|
1014
1013
|
category: "core",
|
|
@@ -1025,8 +1024,8 @@ d(Xe, {
|
|
|
1025
1024
|
});
|
|
1026
1025
|
const Ze = (e) => {
|
|
1027
1026
|
const {
|
|
1028
|
-
blockProps:
|
|
1029
|
-
label:
|
|
1027
|
+
blockProps: l,
|
|
1028
|
+
label: t,
|
|
1030
1029
|
placeholder: o,
|
|
1031
1030
|
styles: a,
|
|
1032
1031
|
inputStyles: s,
|
|
@@ -1034,27 +1033,27 @@ const Ze = (e) => {
|
|
|
1034
1033
|
required: i,
|
|
1035
1034
|
inputType: p = "text",
|
|
1036
1035
|
inBuilder: h,
|
|
1037
|
-
fieldName:
|
|
1038
|
-
} = e, m =
|
|
1039
|
-
return !r || p === "submit" ? (p === "submit" && (
|
|
1036
|
+
fieldName: g
|
|
1037
|
+
} = e, m = b();
|
|
1038
|
+
return !r || p === "submit" ? (p === "submit" && (l.value = t), /* @__PURE__ */ n.jsx(
|
|
1040
1039
|
"input",
|
|
1041
1040
|
{
|
|
1042
1041
|
id: m,
|
|
1043
|
-
name:
|
|
1042
|
+
name: g,
|
|
1044
1043
|
readOnly: h,
|
|
1045
|
-
...
|
|
1044
|
+
...l,
|
|
1046
1045
|
...s,
|
|
1047
1046
|
...a,
|
|
1048
1047
|
type: p,
|
|
1049
1048
|
placeholder: o,
|
|
1050
1049
|
required: i
|
|
1051
1050
|
}
|
|
1052
|
-
)) : /* @__PURE__ */ n.jsxs("div", { ...a, ...
|
|
1053
|
-
r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children:
|
|
1051
|
+
)) : /* @__PURE__ */ n.jsxs("div", { ...a, ...l, children: [
|
|
1052
|
+
r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children: t }),
|
|
1054
1053
|
/* @__PURE__ */ n.jsx(
|
|
1055
1054
|
"input",
|
|
1056
1055
|
{
|
|
1057
|
-
name:
|
|
1056
|
+
name: g,
|
|
1058
1057
|
readOnly: h,
|
|
1059
1058
|
...s,
|
|
1060
1059
|
id: m,
|
|
@@ -1069,15 +1068,15 @@ d(Ze, {
|
|
|
1069
1068
|
type: "Input",
|
|
1070
1069
|
label: "Input",
|
|
1071
1070
|
category: "core",
|
|
1072
|
-
icon:
|
|
1071
|
+
icon: z,
|
|
1073
1072
|
group: "form",
|
|
1074
1073
|
hidden: !0,
|
|
1075
1074
|
props: {
|
|
1076
1075
|
styles: c({ default: "" }),
|
|
1077
1076
|
fieldName: y({ title: "Field Name", default: "input" }),
|
|
1078
|
-
inputType:
|
|
1077
|
+
inputType: B({
|
|
1079
1078
|
title: "Type",
|
|
1080
|
-
options:
|
|
1079
|
+
options: C(
|
|
1081
1080
|
["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
|
|
1082
1081
|
(e) => ({
|
|
1083
1082
|
value: e,
|
|
@@ -1098,21 +1097,21 @@ d(Ze, {
|
|
|
1098
1097
|
}
|
|
1099
1098
|
});
|
|
1100
1099
|
const Je = (e) => {
|
|
1101
|
-
const { blockProps:
|
|
1102
|
-
return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...
|
|
1103
|
-
/* @__PURE__ */ n.jsx("input", { ...s, name:
|
|
1100
|
+
const { blockProps: l, fieldName: t, label: o, styles: a, inputStyles: s, checked: r, required: i, showLabel: p = !0 } = e, h = b();
|
|
1101
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...l, children: [
|
|
1102
|
+
/* @__PURE__ */ n.jsx("input", { ...s, name: t, id: h, type: "radio", required: i, defaultChecked: r }),
|
|
1104
1103
|
o && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
|
|
1105
1104
|
] }) : /* @__PURE__ */ n.jsx(
|
|
1106
1105
|
"input",
|
|
1107
1106
|
{
|
|
1108
1107
|
id: h,
|
|
1109
|
-
...
|
|
1108
|
+
...l,
|
|
1110
1109
|
...s,
|
|
1111
1110
|
...a,
|
|
1112
1111
|
type: "radio",
|
|
1113
1112
|
required: i,
|
|
1114
1113
|
checked: r,
|
|
1115
|
-
name:
|
|
1114
|
+
name: t
|
|
1116
1115
|
}
|
|
1117
1116
|
);
|
|
1118
1117
|
};
|
|
@@ -1133,8 +1132,8 @@ d(Je, {
|
|
|
1133
1132
|
});
|
|
1134
1133
|
const Ke = (e) => {
|
|
1135
1134
|
const {
|
|
1136
|
-
blockProps:
|
|
1137
|
-
fieldName:
|
|
1135
|
+
blockProps: l,
|
|
1136
|
+
fieldName: t,
|
|
1138
1137
|
label: o,
|
|
1139
1138
|
placeholder: a,
|
|
1140
1139
|
styles: s,
|
|
@@ -1142,20 +1141,20 @@ const Ke = (e) => {
|
|
|
1142
1141
|
required: i,
|
|
1143
1142
|
showLabel: p,
|
|
1144
1143
|
_multiple: h = !1
|
|
1145
|
-
} = e,
|
|
1144
|
+
} = e, g = b();
|
|
1146
1145
|
return p ? /* @__PURE__ */ n.jsxs("div", { ...s, children: [
|
|
1147
|
-
p && /* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
1146
|
+
p && /* @__PURE__ */ n.jsx("label", { htmlFor: g, children: o }),
|
|
1148
1147
|
/* @__PURE__ */ n.jsxs(
|
|
1149
1148
|
"select",
|
|
1150
1149
|
{
|
|
1151
1150
|
...r,
|
|
1152
|
-
id:
|
|
1151
|
+
id: g,
|
|
1153
1152
|
required: i,
|
|
1154
1153
|
multiple: h,
|
|
1155
|
-
name:
|
|
1154
|
+
name: t,
|
|
1156
1155
|
children: [
|
|
1157
1156
|
/* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
|
|
1158
|
-
|
|
1157
|
+
C(e.options, (m) => /* @__PURE__ */ n.jsx(
|
|
1159
1158
|
"option",
|
|
1160
1159
|
{
|
|
1161
1160
|
selected: x(m, "selected", !1),
|
|
@@ -1170,15 +1169,15 @@ const Ke = (e) => {
|
|
|
1170
1169
|
] }) : /* @__PURE__ */ n.jsxs(
|
|
1171
1170
|
"select",
|
|
1172
1171
|
{
|
|
1173
|
-
id:
|
|
1172
|
+
id: g,
|
|
1174
1173
|
...s,
|
|
1175
|
-
...
|
|
1174
|
+
...l,
|
|
1176
1175
|
required: i,
|
|
1177
1176
|
multiple: h,
|
|
1178
|
-
name:
|
|
1177
|
+
name: t,
|
|
1179
1178
|
children: [
|
|
1180
1179
|
/* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
|
|
1181
|
-
|
|
1180
|
+
C(e.options, (m) => /* @__PURE__ */ n.jsx(
|
|
1182
1181
|
"option",
|
|
1183
1182
|
{
|
|
1184
1183
|
selected: x(m, "selected", !1),
|
|
@@ -1220,16 +1219,16 @@ d(Ke, {
|
|
|
1220
1219
|
}
|
|
1221
1220
|
});
|
|
1222
1221
|
const Qe = (e) => {
|
|
1223
|
-
const { blockProps:
|
|
1224
|
-
return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...
|
|
1222
|
+
const { blockProps: l, fieldName: t, label: o, placeholder: a, styles: s, inputStyles: r, _rows: i, showLabel: p } = e, h = b();
|
|
1223
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...l, children: [
|
|
1225
1224
|
p && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o }),
|
|
1226
|
-
/* @__PURE__ */ n.jsx("textarea", { name:
|
|
1225
|
+
/* @__PURE__ */ n.jsx("textarea", { name: t, ...r, id: h, placeholder: a, rows: i })
|
|
1227
1226
|
] }) : /* @__PURE__ */ n.jsx(
|
|
1228
1227
|
"textarea",
|
|
1229
1228
|
{
|
|
1230
1229
|
id: h,
|
|
1231
|
-
name:
|
|
1232
|
-
...
|
|
1230
|
+
name: t,
|
|
1231
|
+
...l,
|
|
1233
1232
|
...r,
|
|
1234
1233
|
...s,
|
|
1235
1234
|
placeholder: a,
|
|
@@ -1241,7 +1240,7 @@ d(Qe, {
|
|
|
1241
1240
|
type: "TextArea",
|
|
1242
1241
|
label: "TextArea",
|
|
1243
1242
|
category: "core",
|
|
1244
|
-
icon:
|
|
1243
|
+
icon: z,
|
|
1245
1244
|
group: "form",
|
|
1246
1245
|
hidden: !0,
|
|
1247
1246
|
props: {
|
|
@@ -1257,7 +1256,7 @@ d(Qe, {
|
|
|
1257
1256
|
_rows: _({ title: "Rows", default: 3 })
|
|
1258
1257
|
}
|
|
1259
1258
|
});
|
|
1260
|
-
const ht =
|
|
1259
|
+
const ht = O;
|
|
1261
1260
|
export {
|
|
1262
1261
|
ht as loadWebBlocks
|
|
1263
1262
|
};
|