@chaibuilder/sdk 1.2.65 → 1.2.66
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-Mm5byzEC.js +124 -0
- package/dist/AddBlocks-jaxiAG4L.cjs +1 -0
- package/dist/CanvasArea-8NXGRRYC.js +137 -0
- package/dist/CanvasArea-SkeoJz9W.cjs +1 -0
- package/dist/{CodeEditor-Qff4q7sx.js → CodeEditor-3l-mFvg4.js} +61 -46
- package/dist/CodeEditor-o-CkvDnY.cjs +1 -0
- package/dist/STRINGS--j49GZJP.js +7 -0
- package/dist/STRINGS-gPz7CUOk.cjs +1 -0
- package/dist/SettingsPanel-2uYGx-MQ.cjs +1 -0
- package/dist/SettingsPanel-Q3xQQm81.js +82 -0
- package/dist/{SidePanels-ijaUKSek.js → SidePanels-JyziIpDA.js} +87 -92
- package/dist/SidePanels-d04PONzN.cjs +1 -0
- package/dist/{Topbar-vHlnfxPs.js → Topbar-Xgd6YI66.js} +47 -51
- package/dist/Topbar-eIenyfZu.cjs +1 -0
- package/dist/UILibrariesPanel-ADjJse3_.cjs +1 -0
- package/dist/{UILibrariesPanel-NVUMUPUj.js → UILibrariesPanel-a7TrMuAU.js} +82 -90
- package/dist/{UnsplashImages-UkHihhA5.js → UnsplashImages-6Bj8nQ8n.js} +73 -57
- package/dist/UnsplashImages-hLdMtY12.cjs +1 -0
- package/dist/{UploadImages-HtuJZJlo.js → UploadImages-4PxhlZMB.js} +58 -44
- package/dist/UploadImages-uL2R7fju.cjs +1 -0
- package/dist/badge-7BVT3zxN.cjs +1 -0
- package/dist/badge-pJqQSA13.js +23 -0
- package/dist/context-menu-_8TFbFEJ.cjs +1 -0
- package/dist/context-menu-sks9vdzC.js +906 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +45 -20
- package/dist/core.js +85 -86
- package/dist/iconBase-vJD0OXxU.cjs +1 -0
- package/dist/iconBase-zweRWSz0.js +323 -0
- package/dist/index-Dgo2PNEV.js +33210 -0
- package/dist/index-jhNzBWrV.cjs +223 -0
- package/dist/jsx-runtime-JYMCiFoE.cjs +27 -0
- package/dist/{jsx-runtime-WbnYoNE9.js → jsx-runtime-Sp0orL4X.js} +106 -109
- package/dist/plugin-P0tpo_XZ.cjs +1 -0
- package/dist/plugin-_F-KZp1i.cjs +1 -0
- package/dist/plugin-f5uJtdXY.js +43 -0
- package/dist/plugin-sJ3Hzvpv.js +57 -0
- package/dist/render.cjs +3 -1
- package/dist/render.d.ts +19 -52
- package/dist/render.js +136 -183
- package/dist/select-JW3OMYm-.js +75 -0
- package/dist/select-fXj5tdMX.cjs +1 -0
- package/dist/separator-hT24N-xp.cjs +1 -0
- package/dist/separator-sgwOa1FE.js +18 -0
- package/dist/style.css +1 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +41 -1
- package/dist/tailwind.js +16 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +0 -10
- package/dist/ui.js +345 -163
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.d.ts +1 -1
- package/dist/web-blocks.js +489 -724
- package/package.json +15 -45
- package/dist/CanvasArea-fSdH_RiN.cjs +0 -1
- package/dist/CanvasArea-ut5yknzX.js +0 -168
- package/dist/CodeEditor-ypUx3RAV.cjs +0 -1
- package/dist/CurrentPage-jHSVy3hq.js +0 -120
- package/dist/CurrentPage-p_AM4lrF.cjs +0 -1
- package/dist/Functions-7jnEwJyw.js +0 -15
- package/dist/Functions-N3yhPYKY.cjs +0 -1
- package/dist/MODIFIERS-fd5XOmum.js +0 -60
- package/dist/MODIFIERS-mVmfEGgo.cjs +0 -1
- package/dist/PagesPanel-U3InJ9Db.js +0 -78
- package/dist/PagesPanel-wqDb4D-x.cjs +0 -1
- package/dist/ProjectPanel-XODJTO4J.js +0 -99
- package/dist/ProjectPanel-fWESzHr6.cjs +0 -1
- package/dist/SidePanels-lrMQqc0h.cjs +0 -1
- package/dist/Topbar-RrCDxd0i.cjs +0 -1
- package/dist/UILibrariesPanel-7btHgBD0.cjs +0 -1
- package/dist/UnsplashImages-6UjgojvF.cjs +0 -1
- package/dist/UploadImages-3h0cRsvr.cjs +0 -1
- package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
- package/dist/add-page-modal-RwIj1FxH.cjs +0 -1
- package/dist/add-page-modal-TOfMfmPA.js +0 -115
- package/dist/confirm-alert-eIp2cAkc.js +0 -60
- package/dist/confirm-alert-v1lG8ex4.cjs +0 -1
- package/dist/controls-rRZhz0vu.cjs +0 -1
- package/dist/controls-yjgoZzB6.js +0 -199
- package/dist/delete-page-modal-4bxjpVBD.js +0 -97
- package/dist/delete-page-modal-qYDZmpgT.cjs +0 -1
- package/dist/email-blocks.cjs +0 -1
- package/dist/email-blocks.d.ts +0 -3
- package/dist/email-blocks.js +0 -294
- package/dist/email.cjs +0 -1
- package/dist/email.d.ts +0 -171
- package/dist/email.js +0 -90
- package/dist/empty-slot-Lsxjts7Q.js +0 -6
- package/dist/empty-slot-Sy930lX6.cjs +0 -1
- package/dist/form-4jTocVbZ.cjs +0 -1
- package/dist/form-NAzFjGs0.js +0 -125
- package/dist/functions--tdNWQDW.js +0 -30
- package/dist/functions-EVUeSwX1.cjs +0 -1
- package/dist/html-to-json-NqRjgFqp.cjs +0 -1
- package/dist/html-to-json-l_mw5y-e.js +0 -243
- package/dist/index--k2M8kzI.cjs +0 -1
- package/dist/index--mLLy7QQ.cjs +0 -1
- package/dist/index-5XyNUAjc.cjs +0 -290
- package/dist/index-C7mB4XFm.js +0 -3141
- package/dist/index-VBXQixVm.js +0 -117
- package/dist/index-YZhtVcj_.js +0 -2201
- package/dist/index-aeDphKpP.cjs +0 -1
- package/dist/index-lFgDm1oa.js +0 -83780
- package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
- package/dist/lib.cjs +0 -3
- package/dist/lib.d.ts +0 -80
- package/dist/lib.js +0 -1350
- package/dist/page-viewer-4wrnWnK0.js +0 -124
- package/dist/page-viewer-ra0GLx1p.cjs +0 -1
- package/dist/project-general-setting-IwZUkYF3.js +0 -90
- package/dist/project-general-setting-lFjTUhHD.cjs +0 -1
- package/dist/project-seo-setting-e1fTqVsd.js +0 -83
- package/dist/project-seo-setting-o0V9acCV.cjs +0 -1
- package/dist/server.cjs +0 -1
- package/dist/server.d.ts +0 -299
- package/dist/server.js +0 -216
- package/dist/single-page-detail-ZNWFKqLW.js +0 -229
- package/dist/single-page-detail-g55Anu7R.cjs +0 -1
- package/dist/studio.cjs +0 -1
- package/dist/studio.d.ts +0 -176
- package/dist/studio.js +0 -67
- package/dist/utils-D_vtk3zK.cjs +0 -1
- package/dist/utils-VpVqnC9m.js +0 -1075
package/dist/web-blocks.js
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { j as
|
|
3
|
-
import * as
|
|
4
|
-
import { o, f as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { HeadingIcon as Y, TextIcon as Z, CursorTextIcon as K, ButtonIcon as H, Link1Icon as X, ImageIcon as R, RowsIcon as Q, ColumnsIcon as c0, SketchLogoIcon as t0, VideoIcon as l0, CodeIcon as e0, DividerHorizontalIcon as s0, SpaceBetweenVerticallyIcon as A, MoonIcon as a0, TableIcon as i0, BorderTopIcon as r0, BorderAllIcon as h0, ViewHorizontalIcon as n0, DragHandleHorizontalIcon as o0, GroupIcon as d0, LetterCaseToggleIcon as v0, CheckboxIcon as M0, InputIcon as G, RadiobuttonIcon as z0, DropdownMenuIcon as u0 } from "@radix-ui/react-icons";
|
|
8
|
-
import { c as S, g as m } from "./Functions-7jnEwJyw.js";
|
|
9
|
-
import { G as g0 } from "./index-VBXQixVm.js";
|
|
10
|
-
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
1
|
+
import { registerChaiBlock as u } from "@chaibuilder/runtime";
|
|
2
|
+
import { j as n } from "./jsx-runtime-Sp0orL4X.js";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { c as C, o as f, f as I, v as M, b as p, T, y as B, u as $, r as _, d as S, q, e as g, h as F, G as V, g as L, S as U } from "./iconBase-zweRWSz0.js";
|
|
5
|
+
import { ButtonIcon as H, CodeIcon as O, HeadingIcon as G, TextIcon as W, CursorTextIcon as X, Link1Icon as Y, ImageIcon as R, RowsIcon as Z, ColumnsIcon as J, SketchLogoIcon as K, VideoIcon as Q, DividerHorizontalIcon as ee, MoonIcon as te, SpaceBetweenVerticallyIcon as A, GroupIcon as le, InputIcon as z, RadiobuttonIcon as oe, DropdownMenuIcon as ae, CheckboxIcon as ne } from "@radix-ui/react-icons";
|
|
6
|
+
import { isNull as se, isEmpty as k, get as w, pick as re, omit as ie, map as j } from "lodash-es";
|
|
11
7
|
import "clsx";
|
|
12
8
|
import "tailwind-merge";
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
d(p0, {
|
|
9
|
+
const ce = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ n.jsx("div", { className: C("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ n.jsx("div", { className: "h-full w-full rounded bg-gray-200 p-2", children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300" }) }) }) : null, x = ce, de = (e) => {
|
|
10
|
+
const { blockProps: l, inBuilder: t, backgroundImage: a, children: o, tag: s = "div", styles: r } = e;
|
|
11
|
+
let c = o;
|
|
12
|
+
o || (c = /* @__PURE__ */ n.jsx(x, { inBuilder: t }));
|
|
13
|
+
let i = {};
|
|
14
|
+
return a && (i = { backgroundImage: `url(${a})` }), m.createElement(s, { ...l, ...r, style: i }, c);
|
|
15
|
+
}, ue = {
|
|
23
16
|
type: "Box",
|
|
24
17
|
label: "Box",
|
|
25
18
|
category: "core",
|
|
26
19
|
group: "basic",
|
|
27
20
|
props: {
|
|
28
|
-
styles:
|
|
29
|
-
tag:
|
|
21
|
+
styles: f({ default: "" }),
|
|
22
|
+
tag: I({
|
|
30
23
|
title: "Tag",
|
|
31
24
|
default: "div",
|
|
32
25
|
options: [
|
|
@@ -49,44 +42,109 @@ d(p0, {
|
|
|
49
42
|
{ value: "mark", title: "mark" }
|
|
50
43
|
]
|
|
51
44
|
}),
|
|
52
|
-
backgroundImage:
|
|
45
|
+
backgroundImage: M({ title: "Background Image" })
|
|
53
46
|
},
|
|
54
47
|
canAcceptBlock: () => !0
|
|
55
|
-
})
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
48
|
+
}, pe = (e) => {
|
|
49
|
+
const { blockProps: l, iconSize: t, icon: a, content: o, iconPos: s, styles: r, children: c } = e, i = a, d = c || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
50
|
+
/* @__PURE__ */ n.jsx("span", { "data-ai-key": "content", children: o }),
|
|
51
|
+
i && /* @__PURE__ */ n.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
style: { width: t + "px" },
|
|
55
|
+
className: s + " " + (s === "order-first" ? "mr-2" : "ml-2") || "",
|
|
56
|
+
dangerouslySetInnerHTML: { __html: i }
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] });
|
|
60
|
+
return m.createElement(
|
|
61
|
+
"button",
|
|
62
|
+
{
|
|
63
|
+
...l,
|
|
64
|
+
...r,
|
|
65
|
+
type: "button"
|
|
66
|
+
},
|
|
67
|
+
d
|
|
68
|
+
);
|
|
69
|
+
}, fe = {
|
|
70
|
+
type: "Button",
|
|
71
|
+
label: "Button",
|
|
72
|
+
category: "core",
|
|
73
|
+
icon: H,
|
|
74
|
+
group: "basic",
|
|
75
|
+
props: {
|
|
76
|
+
content: p({ title: "Label", default: "Button" }),
|
|
77
|
+
styles: f({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
|
|
78
|
+
icon: T({ title: "Icon", default: "" }),
|
|
79
|
+
iconSize: B({ title: "Icon Size", default: 24 }),
|
|
80
|
+
iconPos: I({
|
|
81
|
+
title: "Icon Position",
|
|
82
|
+
default: "order-last",
|
|
83
|
+
options: [
|
|
84
|
+
{ title: "Start", value: "order-first" },
|
|
85
|
+
{ title: "End", value: "order-last" }
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
}, me = (e) => {
|
|
90
|
+
const { blockProps: l, styles: t, htmlCode: a, inBuilder: o } = e;
|
|
91
|
+
return o ? /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
92
|
+
o ? /* @__PURE__ */ n.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
93
|
+
m.createElement("div", {
|
|
94
|
+
...t,
|
|
95
|
+
dangerouslySetInnerHTML: { __html: a.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
96
|
+
})
|
|
97
|
+
] }) : m.createElement("div", {
|
|
98
|
+
...l,
|
|
99
|
+
...t,
|
|
100
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
101
|
+
});
|
|
102
|
+
}, he = {
|
|
103
|
+
type: "CustomHTML",
|
|
104
|
+
label: "Custom HTML",
|
|
105
|
+
category: "core",
|
|
106
|
+
icon: O,
|
|
107
|
+
group: "advanced",
|
|
108
|
+
props: {
|
|
109
|
+
styles: f({ default: "" }),
|
|
110
|
+
htmlCode: $({
|
|
111
|
+
title: "HTML Code",
|
|
112
|
+
default: "<div><p>HTML Snippet goes here...</p></div>",
|
|
113
|
+
placeholder: "Enter custom HTML code here"
|
|
114
|
+
})
|
|
115
|
+
},
|
|
116
|
+
canAcceptBlock: () => !1
|
|
117
|
+
}, ye = m.memo(
|
|
118
|
+
(e) => {
|
|
119
|
+
const { blockProps: l, styles: t } = e;
|
|
120
|
+
return m.createElement("div", { ...l, ...t });
|
|
60
121
|
}
|
|
61
|
-
)
|
|
62
|
-
d(f0, {
|
|
122
|
+
), ge = {
|
|
63
123
|
type: "EmptyBox",
|
|
64
124
|
label: "Empty Box",
|
|
65
125
|
category: "core",
|
|
66
126
|
group: "basic",
|
|
67
127
|
props: {
|
|
68
|
-
styles:
|
|
128
|
+
styles: f({ default: "" })
|
|
69
129
|
},
|
|
70
130
|
canAcceptBlock: () => !1
|
|
71
|
-
})
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
return a ? n.createElement(s, { ...t, ...l }, a) : n.createElement(s, {
|
|
131
|
+
}, be = (e) => {
|
|
132
|
+
const { blockProps: l, styles: t, content: a, level: o = "h1", children: s = null } = e;
|
|
133
|
+
return s ? m.createElement(o, { ...t, ...l }, s) : m.createElement(o, {
|
|
75
134
|
...t,
|
|
76
135
|
...l,
|
|
77
136
|
"data-ai-key": "content",
|
|
78
137
|
"data-ai-type": "html",
|
|
79
|
-
dangerouslySetInnerHTML: { __html:
|
|
138
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
80
139
|
});
|
|
81
|
-
}
|
|
82
|
-
d(m0, {
|
|
140
|
+
}, ke = {
|
|
83
141
|
type: "Heading",
|
|
84
142
|
label: "Heading",
|
|
85
143
|
category: "core",
|
|
86
|
-
icon:
|
|
144
|
+
icon: G,
|
|
87
145
|
group: "typography",
|
|
88
146
|
props: {
|
|
89
|
-
level:
|
|
147
|
+
level: I({
|
|
90
148
|
title: "Level",
|
|
91
149
|
default: "h1",
|
|
92
150
|
binding: !1,
|
|
@@ -99,190 +157,137 @@ d(m0, {
|
|
|
99
157
|
{ value: "h6", title: "h6" }
|
|
100
158
|
]
|
|
101
159
|
}),
|
|
102
|
-
styles:
|
|
103
|
-
content:
|
|
160
|
+
styles: f({ default: "text-3xl" }),
|
|
161
|
+
content: _({ title: "Content", default: "Heading goes here" })
|
|
104
162
|
},
|
|
105
|
-
canAcceptBlock: (
|
|
106
|
-
})
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
return F(c.children) ? n.createElement("p", {
|
|
163
|
+
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
164
|
+
}, xe = (e) => {
|
|
165
|
+
const { blockProps: l, styles: t, content: a } = e;
|
|
166
|
+
return se(e.children) ? m.createElement("p", {
|
|
110
167
|
...t,
|
|
111
168
|
...l,
|
|
112
169
|
"data-ai-key": "content",
|
|
113
170
|
"data-ai-type": "html",
|
|
114
|
-
dangerouslySetInnerHTML: { __html:
|
|
115
|
-
}) :
|
|
116
|
-
}
|
|
117
|
-
d(x0, {
|
|
171
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
172
|
+
}) : m.createElement("p", { ...t, ...l }, e.children);
|
|
173
|
+
}, ve = {
|
|
118
174
|
type: "Paragraph",
|
|
119
175
|
label: "Paragraph",
|
|
120
176
|
category: "core",
|
|
121
|
-
icon:
|
|
177
|
+
icon: W,
|
|
122
178
|
group: "typography",
|
|
123
179
|
props: {
|
|
124
|
-
styles:
|
|
125
|
-
content:
|
|
180
|
+
styles: f({ default: "" }),
|
|
181
|
+
content: _({
|
|
126
182
|
title: "Content",
|
|
127
183
|
default: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere."
|
|
128
184
|
})
|
|
129
185
|
},
|
|
130
|
-
canAcceptBlock: (
|
|
131
|
-
})
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
return s ? n.createElement("span", { ...t, ...l }, s) : n.createElement(a || "span", {
|
|
186
|
+
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
187
|
+
}, we = (e) => {
|
|
188
|
+
const { blockProps: l, styles: t, content: a, children: o = null, tag: s } = e;
|
|
189
|
+
return o ? m.createElement("span", { ...t, ...l }, o) : m.createElement(s || "span", {
|
|
135
190
|
...t,
|
|
136
191
|
...l,
|
|
137
192
|
"data-ai-key": "content",
|
|
138
|
-
dangerouslySetInnerHTML: { __html:
|
|
193
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
139
194
|
});
|
|
140
|
-
}
|
|
141
|
-
d(y0, {
|
|
195
|
+
}, Ie = {
|
|
142
196
|
type: "Span",
|
|
143
197
|
label: "Span",
|
|
144
198
|
category: "core",
|
|
145
199
|
group: "typography",
|
|
146
200
|
props: {
|
|
147
|
-
styles:
|
|
148
|
-
content:
|
|
201
|
+
styles: f({ default: "" }),
|
|
202
|
+
content: _({ title: "Content", default: "" })
|
|
149
203
|
},
|
|
150
204
|
canAcceptBlock: () => !0
|
|
151
|
-
})
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
return /* @__PURE__ */ i.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ i.jsx(
|
|
205
|
+
}, Le = (e) => {
|
|
206
|
+
const { blockProps: l, content: t, styles: a } = e;
|
|
207
|
+
return /* @__PURE__ */ n.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ n.jsx(
|
|
155
208
|
"div",
|
|
156
209
|
{
|
|
157
210
|
"data-ai-key": "content",
|
|
158
211
|
"data-ai-type": "richtext",
|
|
159
212
|
...l,
|
|
160
|
-
...
|
|
213
|
+
...a,
|
|
161
214
|
dangerouslySetInnerHTML: { __html: t }
|
|
162
215
|
}
|
|
163
216
|
) });
|
|
164
|
-
}
|
|
165
|
-
d(B0, {
|
|
217
|
+
}, Be = {
|
|
166
218
|
type: "RichText",
|
|
167
219
|
label: "Rich Text",
|
|
168
220
|
category: "core",
|
|
169
|
-
icon:
|
|
221
|
+
icon: X,
|
|
170
222
|
group: "typography",
|
|
171
223
|
props: {
|
|
172
|
-
styles:
|
|
173
|
-
content:
|
|
224
|
+
styles: f({ default: "" }),
|
|
225
|
+
content: S({
|
|
174
226
|
title: "Content",
|
|
175
227
|
default: "<p>This is a rich text block. You can add text, and other content here.</p>"
|
|
176
228
|
})
|
|
177
229
|
}
|
|
178
|
-
})
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
/* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", children: s }),
|
|
182
|
-
v && /* @__PURE__ */ i.jsx(
|
|
183
|
-
"div",
|
|
184
|
-
{
|
|
185
|
-
style: { width: t + "px" },
|
|
186
|
-
className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
|
|
187
|
-
dangerouslySetInnerHTML: { __html: v }
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] });
|
|
191
|
-
return n.createElement(
|
|
192
|
-
"button",
|
|
193
|
-
{
|
|
194
|
-
...l,
|
|
195
|
-
...r,
|
|
196
|
-
type: "button"
|
|
197
|
-
},
|
|
198
|
-
M
|
|
199
|
-
);
|
|
200
|
-
};
|
|
201
|
-
d(w0, {
|
|
202
|
-
type: "Button",
|
|
203
|
-
label: "Button",
|
|
204
|
-
category: "core",
|
|
205
|
-
icon: H,
|
|
206
|
-
group: "basic",
|
|
207
|
-
props: {
|
|
208
|
-
content: z({ title: "Label", default: "Button" }),
|
|
209
|
-
styles: o({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
|
|
210
|
-
icon: j({ title: "Icon", default: "" }),
|
|
211
|
-
iconSize: D({ title: "Icon Size", default: 24 }),
|
|
212
|
-
iconPos: b({
|
|
213
|
-
title: "Icon Position",
|
|
214
|
-
default: "order-last",
|
|
215
|
-
options: [
|
|
216
|
-
{ title: "Start", value: "order-first" },
|
|
217
|
-
{ title: "End", value: "order-last" }
|
|
218
|
-
]
|
|
219
|
-
})
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
const b0 = (c) => {
|
|
223
|
-
const { blockProps: l, link: t, children: e, styles: s, inBuilder: a, content: r } = c;
|
|
224
|
-
return !e && y(s == null ? void 0 : s.className) && y(r) ? /* @__PURE__ */ i.jsx(f, { inBuilder: a }) : a ? e ? /* @__PURE__ */ i.jsx("span", { ...l, ...s, children: e }) : n.createElement("span", {
|
|
230
|
+
}, _e = (e) => {
|
|
231
|
+
const { blockProps: l, link: t, children: a, styles: o, inBuilder: s, content: r } = e;
|
|
232
|
+
return !a && k(o == null ? void 0 : o.className) && k(r) ? /* @__PURE__ */ n.jsx(x, { inBuilder: s }) : s ? a ? /* @__PURE__ */ n.jsx("span", { ...l, ...o, children: a }) : m.createElement("span", {
|
|
225
233
|
...l,
|
|
226
|
-
...
|
|
234
|
+
...o,
|
|
227
235
|
dangerouslySetInnerHTML: { __html: r }
|
|
228
|
-
}) :
|
|
236
|
+
}) : a ? /* @__PURE__ */ n.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...o, children: a }) : m.createElement("a", {
|
|
229
237
|
...l,
|
|
230
|
-
...
|
|
238
|
+
...o,
|
|
231
239
|
"data-ai-key": "content",
|
|
232
240
|
href: (t == null ? void 0 : t.href) || "#",
|
|
233
241
|
target: (t == null ? void 0 : t.target) || "_self",
|
|
234
242
|
dangerouslySetInnerHTML: { __html: r }
|
|
235
243
|
});
|
|
236
|
-
}
|
|
237
|
-
d(b0, {
|
|
244
|
+
}, Ce = {
|
|
238
245
|
type: "Link",
|
|
239
246
|
label: "Link",
|
|
240
247
|
category: "core",
|
|
241
|
-
icon:
|
|
248
|
+
icon: Y,
|
|
242
249
|
group: "basic",
|
|
243
250
|
props: {
|
|
244
|
-
styles:
|
|
245
|
-
content:
|
|
246
|
-
link:
|
|
251
|
+
styles: f({ default: "" }),
|
|
252
|
+
content: p({ title: "Content", default: "" }),
|
|
253
|
+
link: q({
|
|
247
254
|
title: "Link",
|
|
248
255
|
default: { type: "page", target: "_self", href: "#" }
|
|
249
256
|
})
|
|
250
257
|
},
|
|
251
|
-
canAcceptBlock: (
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
...
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return t ? /* @__PURE__ */ i.jsx("span", { ...l, ...x, children: t }) : n.createElement("span", {
|
|
258
|
+
canAcceptBlock: (e) => e !== "Link"
|
|
259
|
+
}, D = (e, ...l) => ({
|
|
260
|
+
...e,
|
|
261
|
+
className: C(e.className, ...l)
|
|
262
|
+
}), Se = (e) => {
|
|
263
|
+
const { blockProps: l, children: t, styles: a, inBuilder: o, content: s, href: r } = e, { hrefType: c, autoplay: i, maxWidth: d, backdropColor: y, galleryName: h } = e, b = D(a, "cb-lightbox");
|
|
264
|
+
if (!t && k(a == null ? void 0 : a.className) && k(s))
|
|
265
|
+
return /* @__PURE__ */ n.jsx(x, { inBuilder: o });
|
|
266
|
+
if (o)
|
|
267
|
+
return t ? /* @__PURE__ */ n.jsx("span", { ...l, ...b, children: t }) : m.createElement("span", {
|
|
262
268
|
...l,
|
|
263
|
-
...
|
|
264
|
-
dangerouslySetInnerHTML: { __html:
|
|
269
|
+
...b,
|
|
270
|
+
dangerouslySetInnerHTML: { __html: s }
|
|
265
271
|
});
|
|
266
|
-
const
|
|
267
|
-
return
|
|
272
|
+
const v = {};
|
|
273
|
+
return v["data-vbtype"] = c, i && (v["data-autoplay"] = "true"), d && (v["data-maxwidth"] = d + "px"), y && (v["data-overlay"] = y), h && (v["data-gall"] = h), t ? /* @__PURE__ */ n.jsx("a", { ...v, href: r || "#/", ...l, ...b, children: t }) : m.createElement("a", {
|
|
268
274
|
...l,
|
|
269
|
-
...
|
|
270
|
-
...
|
|
275
|
+
...b,
|
|
276
|
+
...v,
|
|
271
277
|
href: r || "#",
|
|
272
|
-
dangerouslySetInnerHTML: { __html:
|
|
278
|
+
dangerouslySetInnerHTML: { __html: s }
|
|
273
279
|
});
|
|
274
|
-
}
|
|
275
|
-
d(D0, {
|
|
280
|
+
}, je = {
|
|
276
281
|
type: "LightBoxLink",
|
|
277
282
|
label: "LightBox Link",
|
|
278
283
|
category: "core",
|
|
279
284
|
icon: R,
|
|
280
285
|
group: "basic",
|
|
281
286
|
props: {
|
|
282
|
-
styles:
|
|
283
|
-
content:
|
|
284
|
-
href:
|
|
285
|
-
hrefType:
|
|
287
|
+
styles: f({ default: "" }),
|
|
288
|
+
content: p({ title: "Content", default: "Link text or drop blocks inside" }),
|
|
289
|
+
href: p({ title: "Href", default: "" }),
|
|
290
|
+
hrefType: I({
|
|
286
291
|
title: "Type",
|
|
287
292
|
default: "video",
|
|
288
293
|
options: [
|
|
@@ -292,30 +297,28 @@ d(D0, {
|
|
|
292
297
|
{ value: "ajax", title: "ajax" }
|
|
293
298
|
]
|
|
294
299
|
}),
|
|
295
|
-
autoplay:
|
|
296
|
-
maxWidth:
|
|
297
|
-
backdropColor:
|
|
298
|
-
galleryName:
|
|
300
|
+
autoplay: g({ title: "Autoplay video", default: !1 }),
|
|
301
|
+
maxWidth: B({ title: "Max Width", default: "" }),
|
|
302
|
+
backdropColor: p({ title: "Backdrop Color", default: "" }),
|
|
303
|
+
galleryName: p({ title: "Gallery name", default: "" })
|
|
299
304
|
},
|
|
300
|
-
canAcceptBlock: (
|
|
301
|
-
})
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
{ ...l, ...s, className: h },
|
|
305
|
+
canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
|
|
306
|
+
}, Me = (e) => {
|
|
307
|
+
const { blockProps: l, children: t, listType: a, styles: o, tag: s, inBuilder: r } = e, c = C(w(o, "className", ""), a);
|
|
308
|
+
return !t && k(o == null ? void 0 : o.className) ? /* @__PURE__ */ n.jsx(x, { inBuilder: r }) : m.createElement(
|
|
309
|
+
s || (a === "list-decimal" ? "ol" : "ul"),
|
|
310
|
+
{ ...l, ...o, className: c },
|
|
307
311
|
t
|
|
308
312
|
);
|
|
309
|
-
}
|
|
310
|
-
d(k0, {
|
|
313
|
+
}, Te = {
|
|
311
314
|
type: "List",
|
|
312
315
|
label: "List",
|
|
313
|
-
icon:
|
|
316
|
+
icon: Z,
|
|
314
317
|
category: "core",
|
|
315
318
|
group: "basic",
|
|
316
319
|
props: {
|
|
317
|
-
styles:
|
|
318
|
-
listType:
|
|
320
|
+
styles: f({ default: "" }),
|
|
321
|
+
listType: I({
|
|
319
322
|
title: "List type",
|
|
320
323
|
default: "list-none",
|
|
321
324
|
options: [
|
|
@@ -325,7 +328,7 @@ d(k0, {
|
|
|
325
328
|
]
|
|
326
329
|
})
|
|
327
330
|
},
|
|
328
|
-
canAcceptBlock: (
|
|
331
|
+
canAcceptBlock: (e) => e === "ListItem",
|
|
329
332
|
blocks: [
|
|
330
333
|
{ _type: "List", _id: "a", listType: "list-none", styles: "#styles:," },
|
|
331
334
|
{
|
|
@@ -350,265 +353,189 @@ d(k0, {
|
|
|
350
353
|
content: "Item 3"
|
|
351
354
|
}
|
|
352
355
|
]
|
|
353
|
-
})
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
...e,
|
|
356
|
+
}, Ee = (e) => {
|
|
357
|
+
const { blockProps: l, content: t, styles: a, children: o, tag: s } = e;
|
|
358
|
+
return o ? m.createElement(s || "li", { ...a, ...l }, o) : m.createElement(s || "li", {
|
|
359
|
+
...a,
|
|
358
360
|
...l,
|
|
359
361
|
"data-ai-key": "content",
|
|
360
362
|
dangerouslySetInnerHTML: { __html: t }
|
|
361
363
|
});
|
|
362
|
-
}
|
|
363
|
-
d(I0, {
|
|
364
|
+
}, Ne = {
|
|
364
365
|
type: "ListItem",
|
|
365
366
|
label: "List Item",
|
|
366
|
-
icon:
|
|
367
|
+
icon: J,
|
|
367
368
|
category: "core",
|
|
368
369
|
group: "basic",
|
|
369
370
|
props: {
|
|
370
|
-
styles:
|
|
371
|
-
content:
|
|
371
|
+
styles: f({ default: "" }),
|
|
372
|
+
content: _({ title: "Content", default: "List item" })
|
|
372
373
|
},
|
|
373
|
-
canAcceptBlock: (
|
|
374
|
-
canBeNested: (
|
|
375
|
-
})
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
return n.createElement("span", {
|
|
374
|
+
canAcceptBlock: (e) => e !== "ListItem",
|
|
375
|
+
canBeNested: (e) => e === "List"
|
|
376
|
+
}, Pe = (e) => {
|
|
377
|
+
const { blockProps: l, icon: t, styles: a, width: o, inBuilder: s, height: r } = e, c = D(a, C(o ? `w-[${o}px]` : "", r ? `h-[${r}px]` : ""));
|
|
378
|
+
if (k(t))
|
|
379
|
+
return /* @__PURE__ */ n.jsx(x, { inBuilder: s, className: "h-8 w-14" });
|
|
380
|
+
const i = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
381
|
+
return m.createElement("span", {
|
|
382
382
|
...l,
|
|
383
|
-
...
|
|
384
|
-
dangerouslySetInnerHTML: { __html:
|
|
383
|
+
...c,
|
|
384
|
+
dangerouslySetInnerHTML: { __html: i }
|
|
385
385
|
});
|
|
386
|
-
}
|
|
387
|
-
d(S0, {
|
|
386
|
+
}, $e = {
|
|
388
387
|
type: "Icon",
|
|
389
388
|
label: "Icon",
|
|
390
389
|
category: "core",
|
|
391
|
-
icon:
|
|
390
|
+
icon: K,
|
|
392
391
|
group: "media",
|
|
393
392
|
props: {
|
|
394
|
-
styles:
|
|
395
|
-
icon:
|
|
393
|
+
styles: f({ default: "text-black" }),
|
|
394
|
+
icon: T({
|
|
396
395
|
title: "Icon",
|
|
397
396
|
default: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8 9.356c1.812 0 3.535-0.481 5-1.327-0.228 2.788-2.393 4.971-5 4.971s-4.772-2.186-5-4.973c1.465 0.845 3.188 1.329 5 1.329zM4 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5zM10 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5z"></path></svg>'
|
|
398
397
|
}),
|
|
399
|
-
width:
|
|
400
|
-
height:
|
|
398
|
+
width: B({ title: "Width", default: "" }),
|
|
399
|
+
height: B({ title: "Height", default: "" })
|
|
401
400
|
}
|
|
402
|
-
})
|
|
403
|
-
const
|
|
404
|
-
|
|
405
|
-
return y(t) ? /* @__PURE__ */ i.jsx(f, { className: "h-36" }) : n.createElement("img", {
|
|
401
|
+
}, He = (e) => {
|
|
402
|
+
const { blockProps: l, image: t, styles: a, alt: o, height: s, width: r } = e;
|
|
403
|
+
return k(t) ? /* @__PURE__ */ n.jsx(x, { className: "h-36" }) : m.createElement("img", {
|
|
406
404
|
...l,
|
|
407
|
-
...
|
|
405
|
+
...a,
|
|
408
406
|
src: t,
|
|
409
|
-
alt:
|
|
407
|
+
alt: o,
|
|
410
408
|
loading: "lazy",
|
|
411
|
-
height:
|
|
409
|
+
height: s,
|
|
412
410
|
width: r
|
|
413
411
|
});
|
|
414
|
-
}
|
|
415
|
-
d(L0, {
|
|
412
|
+
}, Re = {
|
|
416
413
|
type: "Image",
|
|
417
414
|
label: "Image",
|
|
418
415
|
category: "core",
|
|
419
416
|
icon: R,
|
|
420
417
|
group: "media",
|
|
421
418
|
props: {
|
|
422
|
-
styles:
|
|
423
|
-
image:
|
|
419
|
+
styles: f({ default: "" }),
|
|
420
|
+
image: M({
|
|
424
421
|
title: "Image",
|
|
425
422
|
default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
|
|
426
423
|
}),
|
|
427
|
-
alt:
|
|
428
|
-
width:
|
|
429
|
-
height:
|
|
424
|
+
alt: p({ title: "Alt", default: "" }),
|
|
425
|
+
width: p({ title: "Width", default: "" }),
|
|
426
|
+
height: p({ title: "Height", default: "" })
|
|
430
427
|
}
|
|
431
|
-
})
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
let a = null;
|
|
436
|
-
return !s && t && (a = // @ts-ignore
|
|
437
|
-
/* @__PURE__ */ i.jsx("div", { className: S("flex flex-col items-center justify-center", (r = c.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ i.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ i.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
|
|
438
|
-
"Slot: ",
|
|
439
|
-
c.name
|
|
440
|
-
] }) }) })), n.createElement("div", { ...e, ...l, droppable: "yes" }, s || a);
|
|
441
|
-
};
|
|
442
|
-
d(_0, {
|
|
443
|
-
type: "Slot",
|
|
444
|
-
label: "Slot",
|
|
445
|
-
group: "basic",
|
|
446
|
-
category: "core",
|
|
447
|
-
hidden: !0,
|
|
448
|
-
props: {
|
|
449
|
-
styles: o({ default: "" }),
|
|
450
|
-
emptyStyles: o({ default: "" })
|
|
451
|
-
},
|
|
452
|
-
canAcceptBlock: () => !0
|
|
453
|
-
});
|
|
454
|
-
const C = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, P = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, E = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, T0 = (c) => {
|
|
455
|
-
if (C.test(c)) {
|
|
456
|
-
const l = c.match(C);
|
|
457
|
-
return l ? `https://www.youtube.com/embed/${l[4]}` : c;
|
|
428
|
+
}, E = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, N = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, P = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Ae = (e) => {
|
|
429
|
+
if (E.test(e)) {
|
|
430
|
+
const l = e.match(E);
|
|
431
|
+
return l ? `https://www.youtube.com/embed/${l[4]}` : e;
|
|
458
432
|
}
|
|
459
|
-
if (
|
|
460
|
-
const l =
|
|
461
|
-
return l ? `https://player.vimeo.com/video/${l[3]}` :
|
|
433
|
+
if (N.test(e)) {
|
|
434
|
+
const l = e.match(N);
|
|
435
|
+
return l ? `https://player.vimeo.com/video/${l[3]}` : e;
|
|
462
436
|
}
|
|
463
|
-
if (
|
|
464
|
-
const l =
|
|
465
|
-
return l ? `https://www.dailymotion.com/embed/video/${l[4]}` :
|
|
437
|
+
if (P.test(e)) {
|
|
438
|
+
const l = e.match(P);
|
|
439
|
+
return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : e;
|
|
466
440
|
}
|
|
467
441
|
return null;
|
|
468
|
-
},
|
|
469
|
-
(
|
|
470
|
-
const { blockProps: l, inBuilder: t, styles:
|
|
471
|
-
if (
|
|
472
|
-
return /* @__PURE__ */
|
|
473
|
-
let
|
|
474
|
-
if (
|
|
475
|
-
if (!y
|
|
476
|
-
const
|
|
477
|
-
|
|
442
|
+
}, ze = m.memo(
|
|
443
|
+
(e) => {
|
|
444
|
+
const { blockProps: l, inBuilder: t, styles: a, url: o, controls: s } = e, r = w(s, "autoPlay", !1), c = w(s, "controls", !1), i = r || w(s, "muted", !0), d = w(s, "loop", !1);
|
|
445
|
+
if (k(o))
|
|
446
|
+
return /* @__PURE__ */ n.jsx(x, { inBuilder: t, className: "h-36" });
|
|
447
|
+
let y = Ae(o), h = null;
|
|
448
|
+
if (y) {
|
|
449
|
+
if (!k(y)) {
|
|
450
|
+
const b = [];
|
|
451
|
+
b.push(`autoplay=${r ? 1 : 0}`), b.push(`controls=${s ? 1 : 0}`), b.push(`mute=${i ? 1 : 0}&muted=${i ? 1 : 0}`), b.push(`loop=${d ? 1 : 0}`), y = `${y}?${b.join("&")}`;
|
|
478
452
|
}
|
|
479
|
-
|
|
453
|
+
h = m.createElement("iframe", {
|
|
480
454
|
...l,
|
|
481
455
|
className: "absolute inset-0 w-full h-full",
|
|
482
|
-
src:
|
|
456
|
+
src: y,
|
|
483
457
|
allow: t ? "" : "autoplay *; fullscreen *",
|
|
484
458
|
allowFullScreen: !0,
|
|
485
459
|
frameBorder: 0
|
|
486
460
|
});
|
|
487
461
|
} else
|
|
488
|
-
|
|
462
|
+
h = m.createElement("video", {
|
|
489
463
|
...l,
|
|
490
464
|
className: "absolute inset-0 w-full h-full",
|
|
491
|
-
src:
|
|
492
|
-
controls:
|
|
493
|
-
muted:
|
|
465
|
+
src: o,
|
|
466
|
+
controls: c,
|
|
467
|
+
muted: i,
|
|
494
468
|
autoPlay: t ? !1 : r,
|
|
495
|
-
loop:
|
|
469
|
+
loop: d
|
|
496
470
|
});
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
t ? /* @__PURE__ */
|
|
499
|
-
|
|
471
|
+
return /* @__PURE__ */ n.jsx("div", { ...re(a, ["className"]), children: /* @__PURE__ */ n.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
472
|
+
t ? /* @__PURE__ */ n.jsx("div", { ...l, ...ie(a, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
473
|
+
h
|
|
500
474
|
] }) });
|
|
501
475
|
}
|
|
502
|
-
)
|
|
503
|
-
d(j0, {
|
|
476
|
+
), De = {
|
|
504
477
|
type: "Video",
|
|
505
478
|
label: "Video",
|
|
506
479
|
category: "core",
|
|
507
|
-
icon:
|
|
480
|
+
icon: Q,
|
|
508
481
|
group: "media",
|
|
509
482
|
props: {
|
|
510
|
-
styles:
|
|
511
|
-
url:
|
|
483
|
+
styles: f({ default: "" }),
|
|
484
|
+
url: p({
|
|
512
485
|
title: "Video URL",
|
|
513
486
|
default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
|
|
514
487
|
}),
|
|
515
|
-
controls:
|
|
488
|
+
controls: F({
|
|
516
489
|
title: "Controls",
|
|
517
490
|
properties: {
|
|
518
|
-
autoPlay:
|
|
519
|
-
controls:
|
|
520
|
-
loop:
|
|
521
|
-
muted:
|
|
491
|
+
autoPlay: g({ title: "Autoplay", default: !0 }),
|
|
492
|
+
controls: g({ title: "Show controls", default: !1 }),
|
|
493
|
+
loop: g({ title: "Loop", default: !1 }),
|
|
494
|
+
muted: g({ title: "Muted", default: !0 })
|
|
522
495
|
}
|
|
523
496
|
})
|
|
524
497
|
}
|
|
525
|
-
});
|
|
526
|
-
const C0 = (c) => {
|
|
527
|
-
const { blockProps: l, styles: t, htmlCode: e, inBuilder: s } = c;
|
|
528
|
-
return s ? /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
|
|
529
|
-
s ? /* @__PURE__ */ i.jsx("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
530
|
-
n.createElement("div", {
|
|
531
|
-
...t,
|
|
532
|
-
dangerouslySetInnerHTML: { __html: e.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
533
|
-
})
|
|
534
|
-
] }) : n.createElement("div", {
|
|
535
|
-
...l,
|
|
536
|
-
...t,
|
|
537
|
-
dangerouslySetInnerHTML: { __html: e }
|
|
538
|
-
});
|
|
539
498
|
};
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
label: "Custom HTML",
|
|
543
|
-
category: "core",
|
|
544
|
-
icon: e0,
|
|
545
|
-
group: "advanced",
|
|
546
|
-
props: {
|
|
547
|
-
styles: o({ default: "" }),
|
|
548
|
-
htmlCode: N({
|
|
549
|
-
title: "HTML Code",
|
|
550
|
-
default: "<div><p>HTML Snippet goes here...</p></div>",
|
|
551
|
-
placeholder: "Enter custom HTML code here"
|
|
552
|
-
})
|
|
553
|
-
},
|
|
554
|
-
canAcceptBlock: () => !1
|
|
555
|
-
});
|
|
556
|
-
function P0(c) {
|
|
557
|
-
return g0({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" }, child: [] }] })(c);
|
|
499
|
+
function qe(e) {
|
|
500
|
+
return V({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" }, child: [] }] })(e);
|
|
558
501
|
}
|
|
559
|
-
const
|
|
560
|
-
const { scripts: l, inBuilder: t, blockProps:
|
|
561
|
-
return t ? /* @__PURE__ */
|
|
562
|
-
}
|
|
563
|
-
d(E0, {
|
|
502
|
+
const Fe = (e) => {
|
|
503
|
+
const { scripts: l, inBuilder: t, blockProps: a } = e;
|
|
504
|
+
return t ? /* @__PURE__ */ n.jsx("div", { ...a }) : /* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
|
|
505
|
+
}, Ve = {
|
|
564
506
|
type: "CustomScript",
|
|
565
507
|
label: "Custom Script",
|
|
566
508
|
category: "core",
|
|
567
|
-
icon:
|
|
509
|
+
icon: qe,
|
|
568
510
|
group: "advanced",
|
|
569
511
|
props: {
|
|
570
|
-
scripts:
|
|
512
|
+
scripts: $({
|
|
571
513
|
title: "Script",
|
|
572
514
|
default: "",
|
|
573
515
|
placeholder: "<script>console.log('Hello, world!');<\/script>"
|
|
574
516
|
})
|
|
575
517
|
},
|
|
576
518
|
canAcceptBlock: () => !1
|
|
577
|
-
})
|
|
578
|
-
const
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
};
|
|
582
|
-
d(N0, {
|
|
519
|
+
}, Ue = (e) => {
|
|
520
|
+
const { blockProps: l, styles: t } = e;
|
|
521
|
+
return m.createElement("hr", { ...t, ...l });
|
|
522
|
+
}, Oe = {
|
|
583
523
|
type: "Divider",
|
|
584
524
|
label: "Divider",
|
|
585
525
|
category: "core",
|
|
586
|
-
icon:
|
|
526
|
+
icon: ee,
|
|
587
527
|
group: "basic",
|
|
588
528
|
props: {
|
|
589
|
-
styles:
|
|
590
|
-
}
|
|
591
|
-
});
|
|
592
|
-
const H0 = (c) => c.inBuilder || c.forceWrapper ? /* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", ...c.blockProps, children: c.content }) : `${c.content}`;
|
|
593
|
-
d(H0, {
|
|
594
|
-
type: "Text",
|
|
595
|
-
label: "Text",
|
|
596
|
-
hidden: !0,
|
|
597
|
-
category: "core",
|
|
598
|
-
group: "typography",
|
|
599
|
-
icon: A,
|
|
600
|
-
props: {
|
|
601
|
-
content: k({ title: "Content", defaultValue: "" })
|
|
529
|
+
styles: f({ default: "bg-gray-900 h-0.5 py-2 my-1" })
|
|
602
530
|
}
|
|
603
|
-
})
|
|
604
|
-
const R0 = () => null;
|
|
605
|
-
d(R0, {
|
|
531
|
+
}, Ge = () => null, We = {
|
|
606
532
|
type: "Dark Mode",
|
|
607
533
|
label: "Dark Mode",
|
|
608
534
|
category: "core",
|
|
609
|
-
icon:
|
|
535
|
+
icon: te,
|
|
610
536
|
group: "advanced",
|
|
611
|
-
|
|
537
|
+
props: {},
|
|
538
|
+
blocks: () => [
|
|
612
539
|
{ _id: "ultqCh", _type: "Span", tag: "span", styles: "#styles:,", _name: "Dark Mode Switcher" },
|
|
613
540
|
{
|
|
614
541
|
_id: "vroabi",
|
|
@@ -657,32 +584,38 @@ d(R0, {
|
|
|
657
584
|
icon: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'></circle><path d='M12 2v2'></path><path d='M12 20v2'></path><path d='m4.93 4.93 1.41 1.41'></path><path d='m17.66 17.66 1.41 1.41'></path><path d='M2 12h2'></path><path d='M20 12h2'></path><path d='m6.34 17.66-1.41 1.41'></path><path d='m19.07 4.93-1.41 1.41'></path></svg>"
|
|
658
585
|
}
|
|
659
586
|
]
|
|
660
|
-
})
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
587
|
+
}, Xe = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ n.jsx("span", { "data-ai-key": "content", ...e.blockProps, children: e.content }) : `${e.content}`, Ye = {
|
|
588
|
+
type: "Text",
|
|
589
|
+
label: "Text",
|
|
590
|
+
hidden: !0,
|
|
591
|
+
category: "core",
|
|
592
|
+
group: "typography",
|
|
593
|
+
icon: A,
|
|
594
|
+
props: {
|
|
595
|
+
content: _({ title: "Content", defaultValue: "" })
|
|
596
|
+
}
|
|
597
|
+
}, Ze = (e) => {
|
|
598
|
+
const { blockProps: l, backgroundImage: t, children: a, styles: o } = e;
|
|
599
|
+
let s = {};
|
|
600
|
+
return t && (s = { backgroundImage: `url(${t})` }), m.createElement("div", { ...l, ...o, style: s }, a);
|
|
601
|
+
}, Je = {
|
|
667
602
|
type: "Body",
|
|
668
603
|
label: "Body",
|
|
669
604
|
category: "core",
|
|
670
605
|
group: "basic",
|
|
671
606
|
hidden: !0,
|
|
672
607
|
props: {
|
|
673
|
-
styles:
|
|
674
|
-
backgroundImage:
|
|
608
|
+
styles: f({ default: "font-body antialiased" }),
|
|
609
|
+
backgroundImage: M({ title: "Background Image" })
|
|
675
610
|
},
|
|
676
611
|
canAcceptBlock: () => !0,
|
|
677
612
|
canDelete: () => !1,
|
|
678
613
|
canMove: () => !1,
|
|
679
614
|
canDuplicate: () => !1
|
|
680
|
-
})
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
};
|
|
685
|
-
d(G0, {
|
|
615
|
+
}, Ke = (e) => {
|
|
616
|
+
const { blockProps: l, styles: t } = e;
|
|
617
|
+
return m.createElement("br", { ...l, ...t });
|
|
618
|
+
}, Qe = {
|
|
686
619
|
type: "LineBreak",
|
|
687
620
|
label: "Line Break",
|
|
688
621
|
category: "core",
|
|
@@ -690,228 +623,79 @@ d(G0, {
|
|
|
690
623
|
hidden: !0,
|
|
691
624
|
icon: A,
|
|
692
625
|
props: {
|
|
693
|
-
styles:
|
|
694
|
-
}
|
|
695
|
-
});
|
|
696
|
-
const L = (c) => {
|
|
697
|
-
const l = (a, r) => ({
|
|
698
|
-
_id: m(),
|
|
699
|
-
_parent: a,
|
|
700
|
-
_type: "TableCell",
|
|
701
|
-
styles: "#styles:,",
|
|
702
|
-
content: `${c === "TableHead" ? "Table Head" : "Table Cell " + r}`
|
|
703
|
-
}), t = (a) => {
|
|
704
|
-
const r = m(), h = {
|
|
705
|
-
_type: "TableRow",
|
|
706
|
-
_id: r,
|
|
707
|
-
styles: "#styles:,border-b"
|
|
708
|
-
};
|
|
709
|
-
return a && (h._parent = a), [h, l(r, "1"), l(r, "2"), l(r, "3")];
|
|
710
|
-
}, e = (a) => {
|
|
711
|
-
const r = m(), h = {
|
|
712
|
-
_id: r,
|
|
713
|
-
_type: "TableHead",
|
|
714
|
-
styles: "#styles:,font-medium"
|
|
715
|
-
};
|
|
716
|
-
return a && (h._parent = a), [h, ...t(r)];
|
|
717
|
-
}, s = (a) => {
|
|
718
|
-
const r = m(), h = {
|
|
719
|
-
_id: r,
|
|
720
|
-
_type: "TableBody",
|
|
721
|
-
styles: "#styles:,"
|
|
722
|
-
};
|
|
723
|
-
return a && (h._parent = a), [h, ...t(r), ...t(r)];
|
|
724
|
-
};
|
|
725
|
-
if (c === "Table") {
|
|
726
|
-
const a = m();
|
|
727
|
-
return [
|
|
728
|
-
{
|
|
729
|
-
_id: a,
|
|
730
|
-
_type: "Table",
|
|
731
|
-
styles: "#styles:,w-full text-left text-gray-500 dark:text-gray-400"
|
|
732
|
-
},
|
|
733
|
-
...e(a),
|
|
734
|
-
...s(a)
|
|
735
|
-
];
|
|
736
|
-
}
|
|
737
|
-
return c === "TableRow" ? t() : c === "TableHead" ? e() : c === "TableBody" ? s() : [];
|
|
738
|
-
}, q0 = (c) => {
|
|
739
|
-
const { blockProps: l, children: t, styles: e } = c;
|
|
740
|
-
return t ? n.createElement("table", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
741
|
-
};
|
|
742
|
-
d(q0, {
|
|
743
|
-
type: "Table",
|
|
744
|
-
label: "Table",
|
|
745
|
-
category: "core",
|
|
746
|
-
group: "table",
|
|
747
|
-
hidden: !0,
|
|
748
|
-
icon: i0,
|
|
749
|
-
props: {
|
|
750
|
-
styles: o({ default: "" })
|
|
751
|
-
},
|
|
752
|
-
blocks: L("Table")
|
|
753
|
-
});
|
|
754
|
-
const F0 = (c) => {
|
|
755
|
-
const { blockProps: l, children: t, styles: e } = c;
|
|
756
|
-
return t ? n.createElement("thead", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
757
|
-
};
|
|
758
|
-
d(F0, {
|
|
759
|
-
type: "TableHead",
|
|
760
|
-
label: "Table Head",
|
|
761
|
-
category: "core",
|
|
762
|
-
group: "table",
|
|
763
|
-
hidden: !0,
|
|
764
|
-
icon: r0,
|
|
765
|
-
props: {
|
|
766
|
-
styles: o({ default: "" })
|
|
767
|
-
},
|
|
768
|
-
blocks: L("TableHead")
|
|
769
|
-
});
|
|
770
|
-
const $0 = (c) => {
|
|
771
|
-
const { blockProps: l, children: t, styles: e } = c;
|
|
772
|
-
return t ? n.createElement("tbody", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
773
|
-
};
|
|
774
|
-
d($0, {
|
|
775
|
-
type: "TableBody",
|
|
776
|
-
label: "Table Body",
|
|
777
|
-
category: "core",
|
|
778
|
-
group: "table",
|
|
779
|
-
hidden: !0,
|
|
780
|
-
icon: h0,
|
|
781
|
-
props: {
|
|
782
|
-
styles: o({ default: "" })
|
|
783
|
-
},
|
|
784
|
-
blocks: L("TableBody")
|
|
785
|
-
});
|
|
786
|
-
const V0 = (c) => {
|
|
787
|
-
const { blockProps: l, children: t, styles: e } = c;
|
|
788
|
-
return t ? n.createElement("tr", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
789
|
-
};
|
|
790
|
-
d(V0, {
|
|
791
|
-
type: "TableRow",
|
|
792
|
-
label: "Table Row",
|
|
793
|
-
category: "core",
|
|
794
|
-
group: "table",
|
|
795
|
-
hidden: !0,
|
|
796
|
-
icon: n0,
|
|
797
|
-
props: {
|
|
798
|
-
styles: o({ default: "w-full" })
|
|
799
|
-
},
|
|
800
|
-
blocks: L("TableRow")
|
|
801
|
-
});
|
|
802
|
-
const O0 = (c) => {
|
|
803
|
-
const { blockProps: l, children: t, content: e, styles: s } = c;
|
|
804
|
-
return !t && y(e) ? /* @__PURE__ */ i.jsx(f, {}) : t ? n.createElement("td", { ...l, ...s }, t) : n.createElement("td", {
|
|
805
|
-
...l,
|
|
806
|
-
...s,
|
|
807
|
-
dangerouslySetInnerHTML: { __html: e }
|
|
808
|
-
});
|
|
809
|
-
};
|
|
810
|
-
d(O0, {
|
|
811
|
-
type: "TableCell",
|
|
812
|
-
label: "Table Cell",
|
|
813
|
-
category: "core",
|
|
814
|
-
group: "table",
|
|
815
|
-
hidden: !0,
|
|
816
|
-
icon: o0,
|
|
817
|
-
props: {
|
|
818
|
-
styles: o({ default: "" }),
|
|
819
|
-
content: I({ title: "Content", default: "Table cell item", ai: { html: !0 } })
|
|
626
|
+
styles: f({ default: "" })
|
|
820
627
|
}
|
|
821
|
-
})
|
|
822
|
-
const
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
const g = {
|
|
628
|
+
}, et = (e) => {
|
|
629
|
+
const { blockProps: l, errorMessage: t, name: a, _type: o, successMessage: s, action: r, styles: c, children: i } = e;
|
|
630
|
+
let d = i;
|
|
631
|
+
i || (d = /* @__PURE__ */ n.jsx(x, {}));
|
|
632
|
+
const y = {
|
|
827
633
|
"x-data": "useForm",
|
|
828
634
|
"x-on:submit.prevent": "post"
|
|
829
|
-
},
|
|
635
|
+
}, h = {
|
|
830
636
|
"x-html": "formResponse",
|
|
831
637
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
832
638
|
};
|
|
833
|
-
return /* @__PURE__ */
|
|
639
|
+
return /* @__PURE__ */ n.jsxs(
|
|
834
640
|
"form",
|
|
835
641
|
{
|
|
836
|
-
...
|
|
642
|
+
...y,
|
|
837
643
|
"data-error": t,
|
|
838
|
-
"data-success":
|
|
644
|
+
"data-success": s,
|
|
839
645
|
method: "post",
|
|
840
646
|
action: r,
|
|
841
647
|
...l,
|
|
842
|
-
...
|
|
648
|
+
...c,
|
|
843
649
|
children: [
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
|
|
650
|
+
/* @__PURE__ */ n.jsx("div", { ...h }),
|
|
651
|
+
/* @__PURE__ */ n.jsx("input", { name: "formname", type: "hidden", value: a || o }),
|
|
652
|
+
d
|
|
847
653
|
]
|
|
848
654
|
}
|
|
849
655
|
);
|
|
850
|
-
}
|
|
851
|
-
d(U0, {
|
|
656
|
+
}, tt = {
|
|
852
657
|
type: "Form",
|
|
853
658
|
label: "Form",
|
|
854
659
|
category: "core",
|
|
855
|
-
icon:
|
|
660
|
+
icon: le,
|
|
856
661
|
group: "form",
|
|
857
662
|
hidden: !0,
|
|
858
663
|
props: {
|
|
859
|
-
styles:
|
|
860
|
-
action:
|
|
664
|
+
styles: f({ default: "" }),
|
|
665
|
+
action: p({
|
|
861
666
|
title: "Submit URL",
|
|
862
667
|
default: "/api/form/submit"
|
|
863
668
|
}),
|
|
864
|
-
errorMessage:
|
|
669
|
+
errorMessage: S({
|
|
865
670
|
title: "Error Message",
|
|
866
671
|
default: "Something went wrong. Please try again"
|
|
867
672
|
}),
|
|
868
|
-
successMessage:
|
|
673
|
+
successMessage: S({
|
|
869
674
|
title: "Success Message",
|
|
870
675
|
default: "Thank you for your submission."
|
|
871
676
|
})
|
|
872
677
|
},
|
|
873
678
|
canAcceptBlock: () => !0
|
|
874
|
-
})
|
|
875
|
-
const
|
|
876
|
-
const { blockProps: l, content: t, styles: e, children: s } = c, a = { ...e, ...l };
|
|
877
|
-
return s ? n.createElement("label", a, s) : n.createElement("label", {
|
|
878
|
-
...a,
|
|
879
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
880
|
-
});
|
|
881
|
-
};
|
|
882
|
-
d(W0, {
|
|
883
|
-
type: "Label",
|
|
884
|
-
label: "Label",
|
|
885
|
-
category: "core",
|
|
886
|
-
icon: v0,
|
|
887
|
-
group: "form",
|
|
888
|
-
hidden: !0,
|
|
889
|
-
props: {
|
|
890
|
-
styles: o({ default: "" }),
|
|
891
|
-
content: z({ title: "Content", default: "Label", ai: { html: !1 } })
|
|
892
|
-
}
|
|
893
|
-
});
|
|
894
|
-
const J0 = (c) => {
|
|
895
|
-
const { blockProps: l, inBuilder: t, label: e, styles: s, inputStyles: a, icon: r, iconPos: h } = c, v = m(), M = {
|
|
679
|
+
}, lt = (e) => {
|
|
680
|
+
const { blockProps: l, inBuilder: t, label: a, styles: o, inputStyles: s, icon: r, iconPos: c } = e, i = L(), d = {
|
|
896
681
|
"x-bind:disabled": "formLoading"
|
|
897
682
|
};
|
|
898
|
-
return /* @__PURE__ */
|
|
683
|
+
return /* @__PURE__ */ n.jsxs(
|
|
899
684
|
"button",
|
|
900
685
|
{
|
|
901
|
-
id:
|
|
902
|
-
...
|
|
903
|
-
...a,
|
|
686
|
+
id: i,
|
|
687
|
+
...d,
|
|
904
688
|
...s,
|
|
689
|
+
...o,
|
|
905
690
|
...l || {},
|
|
906
691
|
type: t ? "button" : "submit",
|
|
907
692
|
children: [
|
|
908
|
-
|
|
909
|
-
r && /* @__PURE__ */
|
|
693
|
+
a,
|
|
694
|
+
r && /* @__PURE__ */ n.jsx("span", { className: c, dangerouslySetInnerHTML: { __html: r } })
|
|
910
695
|
]
|
|
911
696
|
}
|
|
912
697
|
);
|
|
913
|
-
}
|
|
914
|
-
d(J0, {
|
|
698
|
+
}, ot = {
|
|
915
699
|
type: "FormButton",
|
|
916
700
|
label: "Submit Button",
|
|
917
701
|
category: "core",
|
|
@@ -919,12 +703,12 @@ d(J0, {
|
|
|
919
703
|
group: "form",
|
|
920
704
|
hidden: !0,
|
|
921
705
|
props: {
|
|
922
|
-
label:
|
|
923
|
-
styles:
|
|
706
|
+
label: p({ title: "Label", default: "Submit" }),
|
|
707
|
+
styles: f({
|
|
924
708
|
default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
925
709
|
}),
|
|
926
|
-
icon:
|
|
927
|
-
iconPos:
|
|
710
|
+
icon: T({ title: "Icon", default: "" }),
|
|
711
|
+
iconPos: I({
|
|
928
712
|
title: "Icon Position",
|
|
929
713
|
default: "order-last",
|
|
930
714
|
options: [
|
|
@@ -933,285 +717,266 @@ d(J0, {
|
|
|
933
717
|
]
|
|
934
718
|
})
|
|
935
719
|
}
|
|
936
|
-
})
|
|
937
|
-
const Y0 = (c) => {
|
|
938
|
-
const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, required: r, checked: h, showLabel: v = !0 } = c, M = m();
|
|
939
|
-
return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
940
|
-
/* @__PURE__ */ i.jsx(
|
|
941
|
-
"input",
|
|
942
|
-
{
|
|
943
|
-
...a,
|
|
944
|
-
name: t,
|
|
945
|
-
id: M,
|
|
946
|
-
type: "checkbox",
|
|
947
|
-
required: r,
|
|
948
|
-
defaultChecked: h
|
|
949
|
-
}
|
|
950
|
-
),
|
|
951
|
-
e && e !== "Label" && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e })
|
|
952
|
-
] }) : /* @__PURE__ */ i.jsx(
|
|
953
|
-
"input",
|
|
954
|
-
{
|
|
955
|
-
id: M,
|
|
956
|
-
...l,
|
|
957
|
-
...a,
|
|
958
|
-
...s,
|
|
959
|
-
type: "checkbox",
|
|
960
|
-
required: r,
|
|
961
|
-
name: t
|
|
962
|
-
}
|
|
963
|
-
);
|
|
964
|
-
};
|
|
965
|
-
d(Y0, {
|
|
966
|
-
type: "Checkbox",
|
|
967
|
-
label: "Checkbox",
|
|
968
|
-
category: "core",
|
|
969
|
-
icon: M0,
|
|
970
|
-
group: "form",
|
|
971
|
-
hidden: !0,
|
|
972
|
-
props: {
|
|
973
|
-
fieldName: z({ title: "Field Name", default: "checkbox" }),
|
|
974
|
-
styles: o({ default: "flex items-center gap-x-2" }),
|
|
975
|
-
label: z({ title: "Label", default: "Label" }),
|
|
976
|
-
checked: p({ title: "Checked", default: !1 }),
|
|
977
|
-
required: p({ title: "Required", default: !1 })
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
const Z0 = (c) => {
|
|
720
|
+
}, at = (e) => {
|
|
981
721
|
const {
|
|
982
722
|
blockProps: l,
|
|
983
723
|
label: t,
|
|
984
|
-
placeholder:
|
|
985
|
-
styles:
|
|
986
|
-
inputStyles:
|
|
724
|
+
placeholder: a,
|
|
725
|
+
styles: o,
|
|
726
|
+
inputStyles: s,
|
|
987
727
|
showLabel: r,
|
|
988
|
-
required:
|
|
989
|
-
inputType:
|
|
990
|
-
inBuilder:
|
|
991
|
-
fieldName:
|
|
992
|
-
} =
|
|
993
|
-
return !r ||
|
|
728
|
+
required: c,
|
|
729
|
+
inputType: i = "text",
|
|
730
|
+
inBuilder: d,
|
|
731
|
+
fieldName: y
|
|
732
|
+
} = e, h = L();
|
|
733
|
+
return !r || i === "submit" ? (i === "submit" && (l.value = t), /* @__PURE__ */ n.jsx(
|
|
994
734
|
"input",
|
|
995
735
|
{
|
|
996
|
-
id:
|
|
997
|
-
name:
|
|
998
|
-
readOnly:
|
|
736
|
+
id: h,
|
|
737
|
+
name: y,
|
|
738
|
+
readOnly: d,
|
|
999
739
|
...l,
|
|
1000
|
-
...a,
|
|
1001
740
|
...s,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
741
|
+
...o,
|
|
742
|
+
type: i,
|
|
743
|
+
placeholder: a,
|
|
744
|
+
required: c
|
|
1005
745
|
}
|
|
1006
|
-
)) : /* @__PURE__ */
|
|
1007
|
-
r && /* @__PURE__ */
|
|
1008
|
-
/* @__PURE__ */
|
|
746
|
+
)) : /* @__PURE__ */ n.jsxs("div", { ...o, ...l, children: [
|
|
747
|
+
r && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: t }),
|
|
748
|
+
/* @__PURE__ */ n.jsx(
|
|
1009
749
|
"input",
|
|
1010
750
|
{
|
|
1011
|
-
name:
|
|
1012
|
-
readOnly:
|
|
1013
|
-
...
|
|
1014
|
-
id:
|
|
1015
|
-
type:
|
|
1016
|
-
placeholder:
|
|
1017
|
-
required:
|
|
751
|
+
name: y,
|
|
752
|
+
readOnly: d,
|
|
753
|
+
...s,
|
|
754
|
+
id: h,
|
|
755
|
+
type: i,
|
|
756
|
+
placeholder: a,
|
|
757
|
+
required: c
|
|
1018
758
|
}
|
|
1019
759
|
)
|
|
1020
760
|
] });
|
|
1021
|
-
}
|
|
1022
|
-
d(Z0, {
|
|
761
|
+
}, nt = {
|
|
1023
762
|
type: "Input",
|
|
1024
763
|
label: "Input",
|
|
1025
764
|
category: "core",
|
|
1026
|
-
icon:
|
|
765
|
+
icon: z,
|
|
1027
766
|
group: "form",
|
|
1028
767
|
hidden: !0,
|
|
1029
768
|
props: {
|
|
1030
|
-
styles:
|
|
1031
|
-
fieldName:
|
|
1032
|
-
inputType:
|
|
769
|
+
styles: f({ default: "" }),
|
|
770
|
+
fieldName: p({ title: "Field Name", default: "input" }),
|
|
771
|
+
inputType: I({
|
|
1033
772
|
title: "Type",
|
|
1034
|
-
options:
|
|
773
|
+
options: j(
|
|
1035
774
|
["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
|
|
1036
|
-
(
|
|
1037
|
-
value:
|
|
1038
|
-
title:
|
|
775
|
+
(e) => ({
|
|
776
|
+
value: e,
|
|
777
|
+
title: e
|
|
1039
778
|
})
|
|
1040
779
|
),
|
|
1041
780
|
default: "text"
|
|
1042
781
|
}),
|
|
1043
|
-
value:
|
|
1044
|
-
showLabel:
|
|
1045
|
-
inputStyles:
|
|
1046
|
-
label:
|
|
1047
|
-
placeholder:
|
|
782
|
+
value: p({ title: "Value", default: "" }),
|
|
783
|
+
showLabel: g({ title: "Show label", default: !0 }),
|
|
784
|
+
inputStyles: f({ default: "w-full p-1" }),
|
|
785
|
+
label: p({ title: "Label", default: "Label" }),
|
|
786
|
+
placeholder: p({
|
|
1048
787
|
title: "Placeholder",
|
|
1049
788
|
default: "Placeholder"
|
|
1050
789
|
}),
|
|
1051
|
-
required:
|
|
790
|
+
required: g({ title: "Required", default: !1 })
|
|
1052
791
|
}
|
|
1053
|
-
})
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
|
|
1059
|
-
] }) : /* @__PURE__ */ i.jsx(
|
|
792
|
+
}, st = (e) => {
|
|
793
|
+
const { blockProps: l, fieldName: t, label: a, styles: o, inputStyles: s, checked: r, required: c, showLabel: i = !0 } = e, d = L();
|
|
794
|
+
return i ? /* @__PURE__ */ n.jsxs("div", { ...o, ...l, children: [
|
|
795
|
+
/* @__PURE__ */ n.jsx("input", { ...s, name: t, id: d, type: "radio", required: c, defaultChecked: r }),
|
|
796
|
+
a && /* @__PURE__ */ n.jsx("label", { htmlFor: d, children: a })
|
|
797
|
+
] }) : /* @__PURE__ */ n.jsx(
|
|
1060
798
|
"input",
|
|
1061
799
|
{
|
|
1062
|
-
id:
|
|
800
|
+
id: d,
|
|
1063
801
|
...l,
|
|
1064
|
-
...a,
|
|
1065
802
|
...s,
|
|
803
|
+
...o,
|
|
1066
804
|
type: "radio",
|
|
1067
|
-
required:
|
|
805
|
+
required: c,
|
|
1068
806
|
checked: r,
|
|
1069
807
|
name: t
|
|
1070
808
|
}
|
|
1071
809
|
);
|
|
1072
|
-
}
|
|
1073
|
-
d(K0, {
|
|
810
|
+
}, rt = {
|
|
1074
811
|
type: "Radio",
|
|
1075
812
|
label: "Radio",
|
|
1076
813
|
category: "core",
|
|
1077
|
-
icon:
|
|
814
|
+
icon: oe,
|
|
1078
815
|
group: "form",
|
|
1079
816
|
hidden: !0,
|
|
1080
817
|
props: {
|
|
1081
|
-
styles:
|
|
1082
|
-
fieldName:
|
|
1083
|
-
label:
|
|
1084
|
-
checked:
|
|
1085
|
-
required:
|
|
818
|
+
styles: f({ default: "flex items-center w-max gap-x-2" }),
|
|
819
|
+
fieldName: p({ title: "Field Name", default: "radio" }),
|
|
820
|
+
label: p({ title: "Label", default: "Label" }),
|
|
821
|
+
checked: g({ title: "Checked", default: !1 }),
|
|
822
|
+
required: g({ title: "Required", default: !1 })
|
|
1086
823
|
}
|
|
1087
|
-
})
|
|
1088
|
-
const X0 = (c) => {
|
|
824
|
+
}, it = (e) => {
|
|
1089
825
|
const {
|
|
1090
826
|
blockProps: l,
|
|
1091
827
|
fieldName: t,
|
|
1092
|
-
label:
|
|
1093
|
-
placeholder:
|
|
1094
|
-
styles:
|
|
828
|
+
label: a,
|
|
829
|
+
placeholder: o,
|
|
830
|
+
styles: s,
|
|
1095
831
|
inputStyles: r,
|
|
1096
|
-
required:
|
|
1097
|
-
showLabel:
|
|
1098
|
-
_multiple:
|
|
1099
|
-
} =
|
|
1100
|
-
return
|
|
1101
|
-
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
"
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
selected: w(u, "selected", !1),
|
|
1116
|
-
value: u.value,
|
|
1117
|
-
dangerouslySetInnerHTML: { __html: u.label }
|
|
1118
|
-
},
|
|
1119
|
-
u.value
|
|
1120
|
-
))
|
|
1121
|
-
]
|
|
1122
|
-
}
|
|
1123
|
-
)
|
|
1124
|
-
] }) : /* @__PURE__ */ i.jsxs(
|
|
832
|
+
required: c,
|
|
833
|
+
showLabel: i,
|
|
834
|
+
_multiple: d = !1
|
|
835
|
+
} = e, y = L();
|
|
836
|
+
return i ? /* @__PURE__ */ n.jsxs("div", { ...s, children: [
|
|
837
|
+
i && /* @__PURE__ */ n.jsx("label", { htmlFor: y, children: a }),
|
|
838
|
+
/* @__PURE__ */ n.jsxs("select", { ...r, id: y, required: c, multiple: d, name: t, children: [
|
|
839
|
+
/* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
840
|
+
j(e.options, (h) => /* @__PURE__ */ n.jsx(
|
|
841
|
+
"option",
|
|
842
|
+
{
|
|
843
|
+
selected: w(h, "selected", !1),
|
|
844
|
+
value: h.value,
|
|
845
|
+
dangerouslySetInnerHTML: { __html: h.label }
|
|
846
|
+
},
|
|
847
|
+
h.value
|
|
848
|
+
))
|
|
849
|
+
] })
|
|
850
|
+
] }) : /* @__PURE__ */ n.jsxs(
|
|
1125
851
|
"select",
|
|
1126
852
|
{
|
|
1127
|
-
id:
|
|
1128
|
-
...
|
|
853
|
+
id: y,
|
|
854
|
+
...s,
|
|
1129
855
|
...l,
|
|
1130
|
-
required:
|
|
1131
|
-
multiple:
|
|
856
|
+
required: c,
|
|
857
|
+
multiple: d,
|
|
1132
858
|
name: t,
|
|
1133
859
|
children: [
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
|
|
860
|
+
/* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
861
|
+
j(e.options, (h) => /* @__PURE__ */ n.jsx(
|
|
1136
862
|
"option",
|
|
1137
863
|
{
|
|
1138
|
-
selected: w(
|
|
1139
|
-
value:
|
|
1140
|
-
dangerouslySetInnerHTML: { __html:
|
|
864
|
+
selected: w(h, "selected", !1),
|
|
865
|
+
value: h.value,
|
|
866
|
+
dangerouslySetInnerHTML: { __html: h.label }
|
|
1141
867
|
},
|
|
1142
|
-
|
|
868
|
+
h.value
|
|
1143
869
|
))
|
|
1144
870
|
]
|
|
1145
871
|
}
|
|
1146
872
|
);
|
|
1147
|
-
}
|
|
1148
|
-
d(X0, {
|
|
873
|
+
}, ct = {
|
|
1149
874
|
type: "Select",
|
|
1150
875
|
label: "Select",
|
|
1151
876
|
category: "core",
|
|
1152
|
-
icon:
|
|
877
|
+
icon: ae,
|
|
1153
878
|
group: "form",
|
|
1154
879
|
hidden: !0,
|
|
1155
880
|
props: {
|
|
1156
|
-
styles:
|
|
1157
|
-
fieldName:
|
|
1158
|
-
showLabel:
|
|
1159
|
-
inputStyles:
|
|
1160
|
-
label:
|
|
1161
|
-
placeholder:
|
|
881
|
+
styles: f({ default: "" }),
|
|
882
|
+
fieldName: p({ title: "Field Name", default: "select" }),
|
|
883
|
+
showLabel: g({ title: "Show label", default: !0 }),
|
|
884
|
+
inputStyles: f({ default: "w-full p-1" }),
|
|
885
|
+
label: p({ title: "Label", default: "Label" }),
|
|
886
|
+
placeholder: p({
|
|
1162
887
|
title: "Placeholder",
|
|
1163
888
|
default: "Placeholder"
|
|
1164
889
|
}),
|
|
1165
|
-
required:
|
|
1166
|
-
_multiple:
|
|
1167
|
-
options:
|
|
890
|
+
required: g({ title: "Required", default: !1 }),
|
|
891
|
+
_multiple: g({ title: "Multiple Choice", default: !1 }),
|
|
892
|
+
options: U({
|
|
1168
893
|
title: "Options",
|
|
1169
894
|
itemProperties: {
|
|
1170
|
-
label:
|
|
1171
|
-
value:
|
|
895
|
+
label: p({ title: "Label", default: "" }),
|
|
896
|
+
value: p({ title: "Value", default: "" })
|
|
1172
897
|
}
|
|
1173
898
|
})
|
|
1174
899
|
}
|
|
1175
|
-
})
|
|
1176
|
-
const
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
] }) : /* @__PURE__ */ i.jsx(
|
|
900
|
+
}, dt = (e) => {
|
|
901
|
+
const { blockProps: l, fieldName: t, label: a, placeholder: o, styles: s, inputStyles: r, _rows: c, showLabel: i } = e, d = L();
|
|
902
|
+
return i ? /* @__PURE__ */ n.jsxs("div", { ...s, ...l, children: [
|
|
903
|
+
i && /* @__PURE__ */ n.jsx("label", { htmlFor: d, children: a }),
|
|
904
|
+
/* @__PURE__ */ n.jsx("textarea", { name: t, ...r, id: d, placeholder: o, rows: c })
|
|
905
|
+
] }) : /* @__PURE__ */ n.jsx(
|
|
1182
906
|
"textarea",
|
|
1183
907
|
{
|
|
1184
|
-
id:
|
|
908
|
+
id: d,
|
|
1185
909
|
name: t,
|
|
1186
910
|
...l,
|
|
1187
911
|
...r,
|
|
1188
|
-
...
|
|
1189
|
-
placeholder:
|
|
1190
|
-
rows:
|
|
912
|
+
...s,
|
|
913
|
+
placeholder: o,
|
|
914
|
+
rows: c
|
|
1191
915
|
}
|
|
1192
916
|
);
|
|
1193
|
-
}
|
|
1194
|
-
d(Q0, {
|
|
917
|
+
}, ut = {
|
|
1195
918
|
type: "TextArea",
|
|
1196
919
|
label: "TextArea",
|
|
1197
920
|
category: "core",
|
|
1198
|
-
icon:
|
|
921
|
+
icon: z,
|
|
1199
922
|
group: "form",
|
|
1200
923
|
hidden: !0,
|
|
1201
924
|
props: {
|
|
1202
|
-
fieldName:
|
|
1203
|
-
showLabel:
|
|
1204
|
-
styles:
|
|
1205
|
-
inputStyles:
|
|
1206
|
-
label:
|
|
1207
|
-
placeholder:
|
|
925
|
+
fieldName: p({ title: "Field Name", default: "textarea" }),
|
|
926
|
+
showLabel: g({ title: "Show label", default: !0 }),
|
|
927
|
+
styles: f({ default: "" }),
|
|
928
|
+
inputStyles: f({ default: "w-full p-1" }),
|
|
929
|
+
label: p({ title: "Label", default: "Label" }),
|
|
930
|
+
placeholder: p({
|
|
1208
931
|
title: "Placeholder",
|
|
1209
932
|
default: "Placeholder"
|
|
1210
933
|
}),
|
|
1211
|
-
_rows:
|
|
934
|
+
_rows: B({ title: "Rows", default: 3 })
|
|
1212
935
|
}
|
|
1213
|
-
})
|
|
1214
|
-
const
|
|
936
|
+
}, pt = (e) => {
|
|
937
|
+
const { blockProps: l, fieldName: t, label: a, styles: o, inputStyles: s, required: r, checked: c, showLabel: i = !0 } = e, d = L();
|
|
938
|
+
return i ? /* @__PURE__ */ n.jsxs("div", { ...o, ...l, children: [
|
|
939
|
+
/* @__PURE__ */ n.jsx(
|
|
940
|
+
"input",
|
|
941
|
+
{
|
|
942
|
+
...s,
|
|
943
|
+
name: t,
|
|
944
|
+
id: d,
|
|
945
|
+
type: "checkbox",
|
|
946
|
+
required: r,
|
|
947
|
+
defaultChecked: c
|
|
948
|
+
}
|
|
949
|
+
),
|
|
950
|
+
a && a !== "Label" && /* @__PURE__ */ n.jsx("label", { htmlFor: d, children: a })
|
|
951
|
+
] }) : /* @__PURE__ */ n.jsx(
|
|
952
|
+
"input",
|
|
953
|
+
{
|
|
954
|
+
id: d,
|
|
955
|
+
...l,
|
|
956
|
+
...s,
|
|
957
|
+
...o,
|
|
958
|
+
type: "checkbox",
|
|
959
|
+
required: r,
|
|
960
|
+
name: t
|
|
961
|
+
}
|
|
962
|
+
);
|
|
963
|
+
}, ft = {
|
|
964
|
+
type: "Checkbox",
|
|
965
|
+
label: "Checkbox",
|
|
966
|
+
category: "core",
|
|
967
|
+
icon: ne,
|
|
968
|
+
group: "form",
|
|
969
|
+
hidden: !0,
|
|
970
|
+
props: {
|
|
971
|
+
fieldName: p({ title: "Field Name", default: "checkbox" }),
|
|
972
|
+
styles: f({ default: "flex items-center gap-x-2" }),
|
|
973
|
+
label: p({ title: "Label", default: "Label" }),
|
|
974
|
+
checked: g({ title: "Checked", default: !1 }),
|
|
975
|
+
required: g({ title: "Required", default: !1 })
|
|
976
|
+
}
|
|
977
|
+
}, vt = () => {
|
|
978
|
+
u(de, ue), u(ye, ge), u(pe, fe), u(be, ke), u(xe, ve), u(we, Ie), u(Le, Be), u(_e, Ce), u(Se, je), u(Me, Te), u(Ee, Ne), u(Pe, $e), u(He, Re), u(ze, De), u(me, he), u(Xe, Ye), u(et, tt), u(lt, ot), u(at, nt), u(pt, ft), u(st, rt), u(it, ct), u(dt, ut), u(Ke, Qe), u(Ze, Je), u(Fe, Ve), u(Ue, Oe), u(Ge, We);
|
|
979
|
+
};
|
|
1215
980
|
export {
|
|
1216
|
-
|
|
981
|
+
vt as loadWebBlocks
|
|
1217
982
|
};
|