@chaibuilder/sdk 1.2.51 → 1.2.53
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-hOFqmmXZ.cjs → AddBlocks-7OJEZC2D.cjs} +1 -1
- package/dist/{AddBlocks-LyEjf6h0.js → AddBlocks-kJNH96eQ.js} +17 -17
- package/dist/{CanvasArea-mhINqS0c.js → CanvasArea-ZxrQurg_.js} +57 -57
- package/dist/CanvasArea-nWHWl6zD.cjs +56 -0
- package/dist/{ChaiBuilderEditor-KEwDa8Bl.js → ChaiBuilderEditor-4xhn_QlL.js} +14537 -14536
- package/dist/{ChaiBuilderEditor-H173PF4T.cjs → ChaiBuilderEditor-Rqlg194T.cjs} +55 -55
- package/dist/CodeEditor-C6p5CZfl.cjs +1 -0
- package/dist/CodeEditor-vTWgHJei.js +115 -0
- package/dist/{CurrentPage-UzajS1xZ.js → CurrentPage-KPr8MnO0.js} +7 -7
- package/dist/{CurrentPage-RUx7wvBt.cjs → CurrentPage-bfY5xyr7.cjs} +1 -1
- package/dist/ListTree-4J0SUudU.cjs +1 -0
- package/dist/ListTree-5s7iNbKT.js +25724 -0
- package/dist/{PagesPanel-p-h6o26u.js → PagesPanel-aZBPSLS7.js} +4 -4
- package/dist/{PagesPanel-LBW-4mVM.cjs → PagesPanel-re4w2009.cjs} +1 -1
- package/dist/{ProjectPanel-o0OWWnYQ.js → ProjectPanel-bWZtA_mw.js} +4 -4
- package/dist/{ProjectPanel-PQv2uVj2.cjs → ProjectPanel-uo19SCtW.cjs} +1 -1
- package/dist/Settings-AcK9rEs3.cjs +1 -0
- package/dist/{Settings-zm-cF9rZ.js → Settings-SK2ONoi0.js} +859 -862
- package/dist/{SidePanels-0w036NaZ.cjs → SidePanels-YAKKqxIi.cjs} +1 -1
- package/dist/{SidePanels-TOHaLWC6.js → SidePanels-ezU-hGki.js} +38 -38
- package/dist/{ThemeConfiguration-wJA_aBly.js → ThemeConfiguration-q5rLYmXB.js} +9 -9
- package/dist/{ThemeConfiguration-MBuJmbDn.cjs → ThemeConfiguration-qUXsJBBZ.cjs} +1 -1
- package/dist/{Topbar-u5HAh7Mg.cjs → Topbar-9mJ6dJn-.cjs} +1 -1
- package/dist/{Topbar-Rh7dWuJD.js → Topbar-YhJ6xVs-.js} +4 -4
- package/dist/{UILibrariesPanel-3-cWabRt.js → UILibrariesPanel-N7acP7aA.js} +6 -6
- package/dist/{UILibrariesPanel-xOys8g8A.cjs → UILibrariesPanel-uNt8spPr.cjs} +1 -1
- package/dist/{UnsplashImages-Kymq8i6b.cjs → UnsplashImages-5IlwWgRv.cjs} +1 -1
- package/dist/{UnsplashImages-dhU2-pHY.js → UnsplashImages-iY__3dsJ.js} +4 -4
- package/dist/{UploadImages-dr_gpAea.js → UploadImages-KHk-jx9-.js} +2 -2
- package/dist/{UploadImages-WpaiIEbj.cjs → UploadImages-UjtFHUqM.cjs} +1 -1
- package/dist/{add-page-modal-vmUMNu7F.cjs → add-page-modal-8GuYgZa-.cjs} +1 -1
- package/dist/{add-page-modal-zwq1hL_o.js → add-page-modal-HmfsbbCH.js} +8 -8
- package/dist/{confirm-alert-73tjkqtD.js → confirm-alert-AoUx_ZEf.js} +2 -2
- package/dist/{confirm-alert-fK62IiTF.cjs → confirm-alert-qdryZAvd.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +9 -0
- package/dist/core.js +32 -31
- package/dist/{delete-page-modal-G_aMq7K4.cjs → delete-page-modal-8qEY88SK.cjs} +1 -1
- package/dist/{delete-page-modal-DPNxHWfi.js → delete-page-modal-KCPx8Ako.js} +3 -3
- package/dist/email.cjs +1 -1
- package/dist/email.js +2 -2
- package/dist/{form-_tKI6ugY.js → form-LHHE25z8.js} +5 -5
- package/dist/{form-YMuxx9Ju.cjs → form-zHGQEmOp.cjs} +1 -1
- package/dist/functions--tdNWQDW.js +30 -0
- package/dist/functions-EVUeSwX1.cjs +1 -0
- package/dist/index--mLLy7QQ.cjs +1 -0
- package/dist/index-VBXQixVm.js +117 -0
- package/dist/index-swYRuZtl.cjs +1 -0
- package/dist/index-tGVTszX2.js +2201 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +10 -10
- package/dist/{page-viewer-UZMtWQDj.js → page-viewer-P5yNaWy1.js} +9 -9
- package/dist/{page-viewer-WQgFhgp5.cjs → page-viewer-t9AFrRlP.cjs} +1 -1
- package/dist/{project-general-setting-Yh4fQsQH.cjs → project-general-setting-Ojhf6Nl6.cjs} +1 -1
- package/dist/{project-general-setting-Zz7qcIW7.js → project-general-setting-Qm8odisi.js} +6 -6
- package/dist/{project-seo-setting-_gNPOTsp.cjs → project-seo-setting-4E1mqV3j.cjs} +1 -1
- package/dist/{project-seo-setting-wFOVAoC2.js → project-seo-setting-j8EdSO40.js} +3 -3
- package/dist/render.cjs +1 -1
- package/dist/render.js +2 -2
- package/dist/{single-page-detail-EMxzuAe1.cjs → single-page-detail-bv-XFGOD.cjs} +1 -1
- package/dist/{single-page-detail-1Vveonuh.js → single-page-detail-mQfFVaou.js} +5 -5
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +3 -3
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +98 -98
- package/dist/useCanvasSettings-4WtrDzCu.cjs +1 -0
- package/dist/useCanvasSettings-Rvn5rRB8.js +6 -0
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +483 -437
- package/package.json +3 -2
- package/dist/CanvasArea-luy5nUGR.cjs +0 -56
- package/dist/CodeEditor-XaHQMfpT.js +0 -97
- package/dist/CodeEditor-jh9xwRXT.cjs +0 -1
- package/dist/ListTree-BWBPjCzR.js +0 -409
- package/dist/ListTree-S6pMJlmj.cjs +0 -1
- package/dist/Settings-DclX-cDC.cjs +0 -1
- package/dist/functions-JO0EW8GX.js +0 -30
- package/dist/functions-ZZVUnIjD.cjs +0 -1
- package/dist/index-9gfJqJ6E.cjs +0 -1
- package/dist/index-YpnaudSM.js +0 -63
- package/dist/index-ecnGWzh9.cjs +0 -1
- package/dist/index-vpfLlP7N.js +0 -2201
- package/dist/useCodeEditor-2KOfsFsx.js +0 -7
- package/dist/useCodeEditor-gE1NWoNH.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { isNull as
|
|
2
|
-
import { j as
|
|
3
|
-
import * as
|
|
4
|
-
import { o
|
|
5
|
-
import { registerChaiBlock as
|
|
1
|
+
import { isNull as F, isEmpty as B, get as w, pick as $, omit as V, map as T, noop as O } from "lodash-es";
|
|
2
|
+
import { j as i } from "./jsx-runtime-WbnYoNE9.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { o, f as b, v as j, r as k, b as I, g as z, T as C, y as D, q as U, c as p, h as W, u as N, S as J } from "./controls-yjgoZzB6.js";
|
|
5
|
+
import { registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
6
6
|
import { E as f } from "./empty-slot-Lsxjts7Q.js";
|
|
7
|
-
import { HeadingIcon as
|
|
8
|
-
import { c as
|
|
9
|
-
import { G as
|
|
7
|
+
import { HeadingIcon as Y, TextIcon as K, CursorTextIcon as X, ButtonIcon as H, Link1Icon as Z, ImageIcon as R, RowsIcon as Q, ColumnsIcon as c0, SketchLogoIcon as t0, VideoIcon as l0, CodeIcon as e0, DividerHorizontalIcon as s0, SpaceBetweenVerticallyIcon as A, TableIcon as a0, BorderTopIcon as i0, BorderAllIcon as r0, ViewHorizontalIcon as h0, DragHandleHorizontalIcon as n0, GroupIcon as o0, LetterCaseToggleIcon as d0, CheckboxIcon as v0, InputIcon as G, RadiobuttonIcon as M0, DropdownMenuIcon as z0 } from "@radix-ui/react-icons";
|
|
8
|
+
import { c as S, g as m } from "./Functions-7jnEwJyw.js";
|
|
9
|
+
import { G as u0 } from "./index-VBXQixVm.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "clsx";
|
|
12
12
|
import "tailwind-merge";
|
|
13
|
-
const
|
|
13
|
+
const g0 = n.memo(
|
|
14
14
|
(c) => {
|
|
15
|
-
const { blockProps: l, inBuilder: t, backgroundImage: e, children:
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
return e && (
|
|
15
|
+
const { blockProps: l, inBuilder: t, backgroundImage: e, children: s, tag: a = "div", styles: r } = c;
|
|
16
|
+
let h = s;
|
|
17
|
+
s || (h = /* @__PURE__ */ i.jsx(f, { inBuilder: t }));
|
|
18
|
+
let v = {};
|
|
19
|
+
return e && (v = { backgroundImage: `url(${e})` }), n.createElement(a, { ...l, ...r, style: v }, h);
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
d(g0, {
|
|
23
23
|
type: "Box",
|
|
24
24
|
label: "Box",
|
|
25
25
|
category: "core",
|
|
26
26
|
group: "basic",
|
|
27
27
|
props: {
|
|
28
|
-
styles:
|
|
29
|
-
tag:
|
|
28
|
+
styles: o({ default: "" }),
|
|
29
|
+
tag: b({
|
|
30
30
|
title: "Tag",
|
|
31
31
|
default: "div",
|
|
32
32
|
options: [
|
|
@@ -49,29 +49,29 @@ h(d0, {
|
|
|
49
49
|
{ value: "mark", title: "mark" }
|
|
50
50
|
]
|
|
51
51
|
}),
|
|
52
|
-
backgroundImage:
|
|
52
|
+
backgroundImage: j({ title: "Background Image" })
|
|
53
53
|
},
|
|
54
54
|
canAcceptBlock: () => !0
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const p0 = n.memo(
|
|
57
57
|
(c) => {
|
|
58
58
|
const { blockProps: l, styles: t } = c;
|
|
59
|
-
return
|
|
59
|
+
return n.createElement("div", { ...l, ...t });
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
|
|
62
|
+
d(p0, {
|
|
63
63
|
type: "EmptyBox",
|
|
64
64
|
label: "Empty Box",
|
|
65
65
|
category: "core",
|
|
66
66
|
group: "basic",
|
|
67
67
|
props: {
|
|
68
|
-
styles:
|
|
68
|
+
styles: o({ default: "" })
|
|
69
69
|
},
|
|
70
70
|
canAcceptBlock: () => !1
|
|
71
71
|
});
|
|
72
|
-
const
|
|
73
|
-
const { blockProps: l, styles: t, content: e, level:
|
|
74
|
-
return
|
|
72
|
+
const f0 = (c) => {
|
|
73
|
+
const { blockProps: l, styles: t, content: e, level: s = "h1", children: a = null } = c;
|
|
74
|
+
return a ? n.createElement(s, { ...t, ...l }, a) : n.createElement(s, {
|
|
75
75
|
...t,
|
|
76
76
|
...l,
|
|
77
77
|
"data-ai-key": "content",
|
|
@@ -79,14 +79,14 @@ const u0 = (c) => {
|
|
|
79
79
|
dangerouslySetInnerHTML: { __html: e }
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
d(f0, {
|
|
83
83
|
type: "Heading",
|
|
84
84
|
label: "Heading",
|
|
85
85
|
category: "core",
|
|
86
|
-
icon:
|
|
86
|
+
icon: Y,
|
|
87
87
|
group: "typography",
|
|
88
88
|
props: {
|
|
89
|
-
level:
|
|
89
|
+
level: b({
|
|
90
90
|
title: "Level",
|
|
91
91
|
default: "h1",
|
|
92
92
|
binding: !1,
|
|
@@ -99,59 +99,59 @@ h(u0, {
|
|
|
99
99
|
{ value: "h6", title: "h6" }
|
|
100
100
|
]
|
|
101
101
|
}),
|
|
102
|
-
styles:
|
|
103
|
-
content:
|
|
102
|
+
styles: o({ default: "text-3xl" }),
|
|
103
|
+
content: k({ title: "Content", default: "Heading goes here" })
|
|
104
104
|
},
|
|
105
105
|
canAcceptBlock: (c) => c === "Span" || c === "Text"
|
|
106
106
|
});
|
|
107
|
-
const
|
|
107
|
+
const m0 = (c) => {
|
|
108
108
|
const { blockProps: l, styles: t, content: e } = c;
|
|
109
|
-
return
|
|
109
|
+
return F(c.children) ? n.createElement("p", {
|
|
110
110
|
...t,
|
|
111
111
|
...l,
|
|
112
112
|
"data-ai-key": "content",
|
|
113
113
|
"data-ai-type": "html",
|
|
114
114
|
dangerouslySetInnerHTML: { __html: e }
|
|
115
|
-
}) :
|
|
115
|
+
}) : n.createElement("p", { ...t, ...l }, c.children);
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
d(m0, {
|
|
118
118
|
type: "Paragraph",
|
|
119
119
|
label: "Paragraph",
|
|
120
120
|
category: "core",
|
|
121
|
-
icon:
|
|
121
|
+
icon: K,
|
|
122
122
|
group: "typography",
|
|
123
123
|
props: {
|
|
124
|
-
styles:
|
|
125
|
-
content:
|
|
124
|
+
styles: o({ default: "" }),
|
|
125
|
+
content: k({
|
|
126
126
|
title: "Content",
|
|
127
127
|
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
128
|
})
|
|
129
129
|
},
|
|
130
130
|
canAcceptBlock: (c) => c === "Span" || c === "Link"
|
|
131
131
|
});
|
|
132
|
-
const
|
|
133
|
-
const { blockProps: l, styles: t, content: e, children:
|
|
134
|
-
return
|
|
132
|
+
const x0 = (c) => {
|
|
133
|
+
const { blockProps: l, styles: t, content: e, children: s = null, tag: a } = c;
|
|
134
|
+
return s ? n.createElement("span", { ...t, ...l }, s) : n.createElement(a || "span", {
|
|
135
135
|
...t,
|
|
136
136
|
...l,
|
|
137
137
|
"data-ai-key": "content",
|
|
138
138
|
dangerouslySetInnerHTML: { __html: e }
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
d(x0, {
|
|
142
142
|
type: "Span",
|
|
143
143
|
label: "Span",
|
|
144
144
|
category: "core",
|
|
145
145
|
group: "typography",
|
|
146
146
|
props: {
|
|
147
|
-
styles:
|
|
148
|
-
content:
|
|
147
|
+
styles: o({ default: "" }),
|
|
148
|
+
content: k({ title: "Content", default: "" })
|
|
149
149
|
},
|
|
150
150
|
canAcceptBlock: () => !0
|
|
151
151
|
});
|
|
152
|
-
const
|
|
152
|
+
const B0 = (c) => {
|
|
153
153
|
const { blockProps: l, content: t, styles: e } = c;
|
|
154
|
-
return /* @__PURE__ */
|
|
154
|
+
return /* @__PURE__ */ i.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ i.jsx(
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
157
157
|
"data-ai-key": "content",
|
|
@@ -162,54 +162,54 @@ const m0 = (c) => {
|
|
|
162
162
|
}
|
|
163
163
|
) });
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
d(B0, {
|
|
166
166
|
type: "RichText",
|
|
167
167
|
label: "Rich Text",
|
|
168
168
|
category: "core",
|
|
169
|
-
icon:
|
|
169
|
+
icon: X,
|
|
170
170
|
group: "typography",
|
|
171
171
|
props: {
|
|
172
|
-
styles:
|
|
173
|
-
content:
|
|
172
|
+
styles: o({ default: "" }),
|
|
173
|
+
content: I({
|
|
174
174
|
title: "Content",
|
|
175
175
|
default: "<p>This is a rich text block. You can add text, and other content here.</p>"
|
|
176
176
|
})
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const
|
|
180
|
-
const { blockProps: l, iconSize: t, icon: e, content:
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
|
|
179
|
+
const y0 = (c) => {
|
|
180
|
+
const { blockProps: l, iconSize: t, icon: e, content: s, iconPos: a, styles: r, children: h } = c, v = e, M = h || /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
181
|
+
/* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", children: s }),
|
|
182
|
+
v && /* @__PURE__ */ i.jsx(
|
|
183
183
|
"div",
|
|
184
184
|
{
|
|
185
185
|
style: { width: t + "px" },
|
|
186
|
-
className:
|
|
187
|
-
dangerouslySetInnerHTML: { __html:
|
|
186
|
+
className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
|
|
187
|
+
dangerouslySetInnerHTML: { __html: v }
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
] });
|
|
191
|
-
return
|
|
191
|
+
return n.createElement(
|
|
192
192
|
"button",
|
|
193
193
|
{
|
|
194
194
|
...l,
|
|
195
|
-
...
|
|
195
|
+
...r,
|
|
196
196
|
type: "button"
|
|
197
197
|
},
|
|
198
|
-
|
|
198
|
+
M
|
|
199
199
|
);
|
|
200
200
|
};
|
|
201
|
-
|
|
201
|
+
d(y0, {
|
|
202
202
|
type: "Button",
|
|
203
203
|
label: "Button",
|
|
204
204
|
category: "core",
|
|
205
|
-
icon:
|
|
205
|
+
icon: H,
|
|
206
206
|
group: "basic",
|
|
207
207
|
props: {
|
|
208
|
-
content:
|
|
209
|
-
styles:
|
|
210
|
-
icon:
|
|
211
|
-
iconSize:
|
|
212
|
-
iconPos:
|
|
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: C({ title: "Icon", default: "" }),
|
|
211
|
+
iconSize: D({ title: "Icon Size", default: 24 }),
|
|
212
|
+
iconPos: b({
|
|
213
213
|
title: "Icon Position",
|
|
214
214
|
default: "order-last",
|
|
215
215
|
options: [
|
|
@@ -219,54 +219,103 @@ h(x0, {
|
|
|
219
219
|
})
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
|
-
const
|
|
223
|
-
const { blockProps: l, link: t, children: e, styles:
|
|
224
|
-
return !e &&
|
|
222
|
+
const w0 = (c) => {
|
|
223
|
+
const { blockProps: l, link: t, children: e, styles: s, inBuilder: a, content: r } = c;
|
|
224
|
+
return !e && B(s == null ? void 0 : s.className) && B(r) ? /* @__PURE__ */ i.jsx(f, { inBuilder: a }) : a ? e ? /* @__PURE__ */ i.jsx("span", { ...l, ...s, children: e }) : n.createElement("span", {
|
|
225
225
|
...l,
|
|
226
|
-
...
|
|
227
|
-
dangerouslySetInnerHTML: { __html:
|
|
228
|
-
}) : e ? /* @__PURE__ */
|
|
226
|
+
...s,
|
|
227
|
+
dangerouslySetInnerHTML: { __html: r }
|
|
228
|
+
}) : e ? /* @__PURE__ */ i.jsx("a", { href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...s, children: e }) : n.createElement("a", {
|
|
229
229
|
...l,
|
|
230
|
-
...
|
|
230
|
+
...s,
|
|
231
231
|
"data-ai-key": "content",
|
|
232
232
|
href: (t == null ? void 0 : t.href) || "#",
|
|
233
233
|
target: (t == null ? void 0 : t.target) || "_self",
|
|
234
|
-
dangerouslySetInnerHTML: { __html:
|
|
234
|
+
dangerouslySetInnerHTML: { __html: r }
|
|
235
235
|
});
|
|
236
236
|
};
|
|
237
|
-
|
|
237
|
+
d(w0, {
|
|
238
238
|
type: "Link",
|
|
239
239
|
label: "Link",
|
|
240
240
|
category: "core",
|
|
241
|
-
icon:
|
|
241
|
+
icon: Z,
|
|
242
242
|
group: "basic",
|
|
243
243
|
props: {
|
|
244
|
-
styles:
|
|
245
|
-
content:
|
|
246
|
-
link:
|
|
244
|
+
styles: o({ default: "" }),
|
|
245
|
+
content: z({ title: "Content", default: "" }),
|
|
246
|
+
link: U({
|
|
247
247
|
title: "Link",
|
|
248
248
|
default: { type: "page", target: "_self", href: "#" }
|
|
249
249
|
})
|
|
250
250
|
},
|
|
251
251
|
canAcceptBlock: (c) => c !== "Link"
|
|
252
252
|
});
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
253
|
+
const q = (c, ...l) => ({
|
|
254
|
+
...c,
|
|
255
|
+
className: S(c.className, ...l)
|
|
256
|
+
}), b0 = (c) => {
|
|
257
|
+
const { blockProps: l, children: t, styles: e, inBuilder: s, content: a, href: r } = c, { hrefType: h, autoplay: v, maxWidth: M, backdropColor: g, galleryName: u } = c, x = q(e, "cb-lightbox");
|
|
258
|
+
if (!t && B(e == null ? void 0 : e.className) && B(a))
|
|
259
|
+
return /* @__PURE__ */ i.jsx(f, { inBuilder: s });
|
|
260
|
+
if (s)
|
|
261
|
+
return t ? /* @__PURE__ */ i.jsx("span", { ...l, ...x, children: t }) : n.createElement("span", {
|
|
262
|
+
...l,
|
|
263
|
+
...x,
|
|
264
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
265
|
+
});
|
|
266
|
+
const y = {};
|
|
267
|
+
return y["data-vbtype"] = h, v && (y["data-autoplay"] = "true"), M && (y["data-maxwidth"] = M + "px"), g && (y["data-overlay"] = g), u && (y["data-gall"] = u), t ? /* @__PURE__ */ i.jsx("a", { ...y, href: r || "#/", ...l, ...x, children: t }) : n.createElement("a", {
|
|
268
|
+
...l,
|
|
269
|
+
...x,
|
|
270
|
+
...y,
|
|
271
|
+
href: r || "#",
|
|
272
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
d(b0, {
|
|
276
|
+
type: "LightBoxLink",
|
|
277
|
+
label: "LightBox Link",
|
|
278
|
+
category: "core",
|
|
279
|
+
icon: R,
|
|
280
|
+
group: "basic",
|
|
281
|
+
props: {
|
|
282
|
+
styles: o({ default: "" }),
|
|
283
|
+
content: z({ title: "Content", default: "Link text or drop blocks inside" }),
|
|
284
|
+
href: z({ title: "Href", default: "" }),
|
|
285
|
+
hrefType: b({
|
|
286
|
+
title: "Type",
|
|
287
|
+
default: "video",
|
|
288
|
+
options: [
|
|
289
|
+
{ value: "video", title: "video " },
|
|
290
|
+
{ value: "iframe", title: "iframe" },
|
|
291
|
+
{ value: "inline", title: "inline" },
|
|
292
|
+
{ value: "ajax", title: "ajax" }
|
|
293
|
+
]
|
|
294
|
+
}),
|
|
295
|
+
autoplay: p({ title: "Autoplay video", default: !1 }),
|
|
296
|
+
maxWidth: D({ title: "Max Width", default: 800 }),
|
|
297
|
+
backdropColor: z({ title: "Backdrop Color", default: "rgba(95,164,255,0.8)" }),
|
|
298
|
+
galleryName: D({ title: "Max Width", default: 800 })
|
|
299
|
+
},
|
|
300
|
+
canAcceptBlock: (c) => c !== "Link"
|
|
301
|
+
});
|
|
302
|
+
const D0 = (c) => {
|
|
303
|
+
const { blockProps: l, children: t, listType: e, styles: s, tag: a, inBuilder: r } = c, h = S(w(s, "className", ""), e);
|
|
304
|
+
return !t && B(s == null ? void 0 : s.className) ? /* @__PURE__ */ i.jsx(f, { inBuilder: r }) : n.createElement(
|
|
305
|
+
a || (e === "list-decimal" ? "ol" : "ul"),
|
|
306
|
+
{ ...l, ...s, className: h },
|
|
258
307
|
t
|
|
259
308
|
);
|
|
260
309
|
};
|
|
261
|
-
|
|
310
|
+
d(D0, {
|
|
262
311
|
type: "List",
|
|
263
312
|
label: "List",
|
|
264
|
-
icon:
|
|
313
|
+
icon: Q,
|
|
265
314
|
category: "core",
|
|
266
315
|
group: "basic",
|
|
267
316
|
props: {
|
|
268
|
-
styles:
|
|
269
|
-
listType:
|
|
317
|
+
styles: o({ default: "" }),
|
|
318
|
+
listType: b({
|
|
270
319
|
title: "List type",
|
|
271
320
|
default: "list-none",
|
|
272
321
|
options: [
|
|
@@ -302,171 +351,168 @@ h(y0, {
|
|
|
302
351
|
}
|
|
303
352
|
]
|
|
304
353
|
});
|
|
305
|
-
const
|
|
306
|
-
const { blockProps: l, content: t, styles: e, children:
|
|
307
|
-
return
|
|
354
|
+
const k0 = (c) => {
|
|
355
|
+
const { blockProps: l, content: t, styles: e, children: s, tag: a } = c;
|
|
356
|
+
return s ? n.createElement(a || "li", { ...e, ...l }, s) : n.createElement(a || "li", {
|
|
308
357
|
...e,
|
|
309
358
|
...l,
|
|
310
359
|
"data-ai-key": "content",
|
|
311
360
|
dangerouslySetInnerHTML: { __html: t }
|
|
312
361
|
});
|
|
313
362
|
};
|
|
314
|
-
|
|
363
|
+
d(k0, {
|
|
315
364
|
type: "ListItem",
|
|
316
365
|
label: "List Item",
|
|
317
|
-
icon:
|
|
366
|
+
icon: c0,
|
|
318
367
|
category: "core",
|
|
319
368
|
group: "basic",
|
|
320
369
|
props: {
|
|
321
|
-
styles:
|
|
322
|
-
content:
|
|
370
|
+
styles: o({ default: "" }),
|
|
371
|
+
content: k({ title: "Content", default: "List item" })
|
|
323
372
|
},
|
|
324
373
|
canAcceptBlock: (c) => c !== "ListItem",
|
|
325
374
|
canBeNested: (c) => c === "List"
|
|
326
375
|
});
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
return /* @__PURE__ */ r.jsx(f, { inBuilder: s, className: "h-8 w-14" });
|
|
334
|
-
const M = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
335
|
-
return o.createElement("span", {
|
|
376
|
+
const I0 = (c) => {
|
|
377
|
+
const { blockProps: l, icon: t, styles: e, width: s, inBuilder: a, height: r } = c, h = q(e, S(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
|
|
378
|
+
if (B(t))
|
|
379
|
+
return /* @__PURE__ */ i.jsx(f, { inBuilder: a, className: "h-8 w-14" });
|
|
380
|
+
const v = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
381
|
+
return n.createElement("span", {
|
|
336
382
|
...l,
|
|
337
|
-
...
|
|
338
|
-
dangerouslySetInnerHTML: { __html:
|
|
383
|
+
...h,
|
|
384
|
+
dangerouslySetInnerHTML: { __html: v }
|
|
339
385
|
});
|
|
340
386
|
};
|
|
341
|
-
|
|
387
|
+
d(I0, {
|
|
342
388
|
type: "Icon",
|
|
343
389
|
label: "Icon",
|
|
344
390
|
category: "core",
|
|
345
|
-
icon:
|
|
391
|
+
icon: t0,
|
|
346
392
|
group: "media",
|
|
347
393
|
props: {
|
|
348
|
-
styles:
|
|
349
|
-
icon:
|
|
394
|
+
styles: o({ default: "text-black" }),
|
|
395
|
+
icon: C({
|
|
350
396
|
title: "Icon",
|
|
351
397
|
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>'
|
|
352
398
|
}),
|
|
353
|
-
width:
|
|
354
|
-
height:
|
|
399
|
+
width: D({ title: "Width", default: "" }),
|
|
400
|
+
height: D({ title: "Height", default: "" })
|
|
355
401
|
}
|
|
356
402
|
});
|
|
357
|
-
const
|
|
358
|
-
const { blockProps: l, image: t, styles: e, alt:
|
|
359
|
-
return
|
|
403
|
+
const S0 = (c) => {
|
|
404
|
+
const { blockProps: l, image: t, styles: e, alt: s, height: a, width: r } = c;
|
|
405
|
+
return B(t) ? /* @__PURE__ */ i.jsx(f, { className: "h-36" }) : n.createElement("img", {
|
|
360
406
|
...l,
|
|
361
407
|
...e,
|
|
362
408
|
src: t,
|
|
363
|
-
alt:
|
|
409
|
+
alt: s,
|
|
364
410
|
loading: "lazy",
|
|
365
|
-
height:
|
|
366
|
-
width:
|
|
411
|
+
height: a,
|
|
412
|
+
width: r
|
|
367
413
|
});
|
|
368
414
|
};
|
|
369
|
-
|
|
415
|
+
d(S0, {
|
|
370
416
|
type: "Image",
|
|
371
417
|
label: "Image",
|
|
372
418
|
category: "core",
|
|
373
|
-
icon:
|
|
419
|
+
icon: R,
|
|
374
420
|
group: "media",
|
|
375
421
|
props: {
|
|
376
|
-
styles:
|
|
377
|
-
image:
|
|
422
|
+
styles: o({ default: "" }),
|
|
423
|
+
image: j({
|
|
378
424
|
title: "Image",
|
|
379
425
|
default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
|
|
380
426
|
}),
|
|
381
|
-
alt:
|
|
382
|
-
width:
|
|
383
|
-
height:
|
|
427
|
+
alt: z({ title: "Alt", default: "" }),
|
|
428
|
+
width: z({ title: "Width", default: "" }),
|
|
429
|
+
height: z({ title: "Height", default: "" })
|
|
384
430
|
}
|
|
385
431
|
});
|
|
386
|
-
const
|
|
387
|
-
var
|
|
388
|
-
const { blockProps: l, inBuilder: t, styles: e, children:
|
|
389
|
-
let
|
|
390
|
-
return !
|
|
391
|
-
/* @__PURE__ */
|
|
432
|
+
const L0 = (c) => {
|
|
433
|
+
var r;
|
|
434
|
+
const { blockProps: l, inBuilder: t, styles: e, children: s } = c;
|
|
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: [
|
|
392
438
|
"Slot: ",
|
|
393
439
|
c.name
|
|
394
|
-
] }) }) })),
|
|
440
|
+
] }) }) })), n.createElement("div", { ...e, ...l, droppable: "yes" }, s || a);
|
|
395
441
|
};
|
|
396
|
-
|
|
442
|
+
d(L0, {
|
|
397
443
|
type: "Slot",
|
|
398
444
|
label: "Slot",
|
|
399
445
|
group: "basic",
|
|
400
446
|
category: "core",
|
|
401
447
|
hidden: !0,
|
|
402
448
|
props: {
|
|
403
|
-
styles:
|
|
404
|
-
emptyStyles:
|
|
449
|
+
styles: o({ default: "" }),
|
|
450
|
+
emptyStyles: o({ default: "" })
|
|
405
451
|
},
|
|
406
452
|
canAcceptBlock: () => !0
|
|
407
453
|
});
|
|
408
|
-
const
|
|
409
|
-
if (C.test(c)) {
|
|
410
|
-
const l = c.match(C);
|
|
411
|
-
return l ? `https://www.youtube.com/embed/${l[4]}` : c;
|
|
412
|
-
}
|
|
454
|
+
const _ = /^(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) => {
|
|
413
455
|
if (_.test(c)) {
|
|
414
456
|
const l = c.match(_);
|
|
415
|
-
return l ? `https://
|
|
457
|
+
return l ? `https://www.youtube.com/embed/${l[4]}` : c;
|
|
416
458
|
}
|
|
417
459
|
if (P.test(c)) {
|
|
418
460
|
const l = c.match(P);
|
|
461
|
+
return l ? `https://player.vimeo.com/video/${l[3]}` : c;
|
|
462
|
+
}
|
|
463
|
+
if (E.test(c)) {
|
|
464
|
+
const l = c.match(E);
|
|
419
465
|
return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : c;
|
|
420
466
|
}
|
|
421
467
|
return null;
|
|
422
|
-
},
|
|
468
|
+
}, j0 = n.memo(
|
|
423
469
|
(c) => {
|
|
424
|
-
const { blockProps: l, inBuilder: t, styles: e, url:
|
|
425
|
-
if (
|
|
426
|
-
return /* @__PURE__ */
|
|
427
|
-
let
|
|
428
|
-
if (
|
|
429
|
-
if (!
|
|
430
|
-
const
|
|
431
|
-
|
|
470
|
+
const { blockProps: l, inBuilder: t, styles: e, url: s, controls: a } = c, r = w(a, "autoPlay", !1), h = w(a, "controls", !1), v = r || w(a, "muted", !0), M = w(a, "loop", !1);
|
|
471
|
+
if (B(s))
|
|
472
|
+
return /* @__PURE__ */ i.jsx(f, { inBuilder: t, className: "h-36" });
|
|
473
|
+
let g = T0(s), u = null;
|
|
474
|
+
if (g) {
|
|
475
|
+
if (!B(g)) {
|
|
476
|
+
const x = [];
|
|
477
|
+
x.push(`autoplay=${r ? 1 : 0}`), x.push(`controls=${a ? 1 : 0}`), x.push(`mute=${v ? 1 : 0}&muted=${v ? 1 : 0}`), x.push(`loop=${M ? 1 : 0}`), g = `${g}?${x.join("&")}`;
|
|
432
478
|
}
|
|
433
|
-
|
|
479
|
+
u = n.createElement("iframe", {
|
|
434
480
|
...l,
|
|
435
481
|
className: "absolute inset-0 w-full h-full",
|
|
436
|
-
src:
|
|
482
|
+
src: g,
|
|
437
483
|
allow: t ? "" : "autoplay *; fullscreen *",
|
|
438
484
|
allowFullScreen: !0,
|
|
439
485
|
frameBorder: 0
|
|
440
486
|
});
|
|
441
487
|
} else
|
|
442
|
-
|
|
488
|
+
u = n.createElement("video", {
|
|
443
489
|
...l,
|
|
444
490
|
className: "absolute inset-0 w-full h-full",
|
|
445
|
-
src:
|
|
446
|
-
controls:
|
|
447
|
-
muted:
|
|
448
|
-
autoPlay: t ? !1 :
|
|
449
|
-
loop:
|
|
491
|
+
src: s,
|
|
492
|
+
controls: h,
|
|
493
|
+
muted: v,
|
|
494
|
+
autoPlay: t ? !1 : r,
|
|
495
|
+
loop: M
|
|
450
496
|
});
|
|
451
|
-
return /* @__PURE__ */
|
|
452
|
-
t ? /* @__PURE__ */
|
|
453
|
-
|
|
497
|
+
return /* @__PURE__ */ i.jsx("div", { ...$(e, ["className"]), children: /* @__PURE__ */ i.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
498
|
+
t ? /* @__PURE__ */ i.jsx("div", { ...l, ...V(e, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
499
|
+
u
|
|
454
500
|
] }) });
|
|
455
501
|
}
|
|
456
502
|
);
|
|
457
|
-
|
|
503
|
+
d(j0, {
|
|
458
504
|
type: "Video",
|
|
459
505
|
label: "Video",
|
|
460
506
|
category: "core",
|
|
461
|
-
icon:
|
|
507
|
+
icon: l0,
|
|
462
508
|
group: "media",
|
|
463
509
|
props: {
|
|
464
|
-
styles:
|
|
465
|
-
url:
|
|
510
|
+
styles: o({ default: "" }),
|
|
511
|
+
url: z({
|
|
466
512
|
title: "Video URL",
|
|
467
513
|
default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
|
|
468
514
|
}),
|
|
469
|
-
controls:
|
|
515
|
+
controls: W({
|
|
470
516
|
title: "Controls",
|
|
471
517
|
properties: {
|
|
472
518
|
autoPlay: p({ title: "Autoplay", default: !0 }),
|
|
@@ -477,27 +523,29 @@ h(L0, {
|
|
|
477
523
|
})
|
|
478
524
|
}
|
|
479
525
|
});
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
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
|
+
};
|
|
540
|
+
d(C0, {
|
|
493
541
|
type: "CustomHTML",
|
|
494
542
|
label: "Custom HTML",
|
|
495
543
|
category: "core",
|
|
496
|
-
icon:
|
|
544
|
+
icon: e0,
|
|
497
545
|
group: "advanced",
|
|
498
546
|
props: {
|
|
499
|
-
styles:
|
|
500
|
-
htmlCode:
|
|
547
|
+
styles: o({ default: "" }),
|
|
548
|
+
htmlCode: N({
|
|
501
549
|
title: "HTML Code",
|
|
502
550
|
default: "<div><p>HTML Snippet goes here...</p></div>",
|
|
503
551
|
placeholder: "Enter custom HTML code here"
|
|
@@ -505,23 +553,21 @@ h(T0, {
|
|
|
505
553
|
},
|
|
506
554
|
canAcceptBlock: () => !1
|
|
507
555
|
});
|
|
508
|
-
function
|
|
509
|
-
return
|
|
556
|
+
function _0(c) {
|
|
557
|
+
return u0({ 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);
|
|
510
558
|
}
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
);
|
|
517
|
-
h(C0, {
|
|
559
|
+
const P0 = (c) => {
|
|
560
|
+
const { scripts: l, inBuilder: t, blockProps: e } = c;
|
|
561
|
+
return t ? /* @__PURE__ */ i.jsx("div", { ...e }) : /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: l } });
|
|
562
|
+
};
|
|
563
|
+
d(P0, {
|
|
518
564
|
type: "CustomScript",
|
|
519
565
|
label: "Custom Script",
|
|
520
566
|
category: "core",
|
|
521
|
-
icon:
|
|
567
|
+
icon: _0,
|
|
522
568
|
group: "advanced",
|
|
523
569
|
props: {
|
|
524
|
-
|
|
570
|
+
scripts: N({
|
|
525
571
|
title: "Script",
|
|
526
572
|
default: "",
|
|
527
573
|
placeholder: "<script>console.log('Hello, world!');<\/script>"
|
|
@@ -529,299 +575,299 @@ h(C0, {
|
|
|
529
575
|
},
|
|
530
576
|
canAcceptBlock: () => !1
|
|
531
577
|
});
|
|
532
|
-
const
|
|
578
|
+
const E0 = (c) => {
|
|
533
579
|
const { blockProps: l, styles: t } = c;
|
|
534
|
-
return
|
|
580
|
+
return n.createElement("hr", { ...t, ...l });
|
|
535
581
|
};
|
|
536
|
-
|
|
582
|
+
d(E0, {
|
|
537
583
|
type: "Divider",
|
|
538
584
|
label: "Divider",
|
|
539
585
|
category: "core",
|
|
540
|
-
icon:
|
|
586
|
+
icon: s0,
|
|
541
587
|
group: "basic",
|
|
542
588
|
props: {
|
|
543
|
-
styles:
|
|
589
|
+
styles: o({ default: "bg-gray-900 h-0.5 py-2 my-1" })
|
|
544
590
|
}
|
|
545
591
|
});
|
|
546
|
-
const
|
|
547
|
-
|
|
592
|
+
const N0 = (c) => c.inBuilder || c.forceWrapper ? /* @__PURE__ */ i.jsx("span", { "data-ai-key": "content", ...c.blockProps, children: c.content }) : `${c.content}`;
|
|
593
|
+
d(N0, {
|
|
548
594
|
type: "Text",
|
|
549
595
|
label: "Text",
|
|
550
596
|
hidden: !0,
|
|
551
597
|
category: "core",
|
|
552
598
|
group: "typography",
|
|
553
|
-
icon:
|
|
599
|
+
icon: A,
|
|
554
600
|
props: {
|
|
555
|
-
content:
|
|
601
|
+
content: k({ title: "Content", defaultValue: "" })
|
|
556
602
|
}
|
|
557
603
|
});
|
|
558
|
-
const
|
|
559
|
-
const { blockProps: l, backgroundImage: t, children: e, styles:
|
|
560
|
-
let
|
|
561
|
-
return t && (
|
|
604
|
+
const H0 = (c) => {
|
|
605
|
+
const { blockProps: l, backgroundImage: t, children: e, styles: s } = c;
|
|
606
|
+
let a = {};
|
|
607
|
+
return t && (a = { backgroundImage: `url(${t})` }), n.createElement("div", { ...l, ...s, style: a }, e);
|
|
562
608
|
};
|
|
563
|
-
|
|
609
|
+
d(H0, {
|
|
564
610
|
type: "Body",
|
|
565
611
|
label: "Body",
|
|
566
612
|
category: "core",
|
|
567
613
|
group: "basic",
|
|
568
614
|
hidden: !0,
|
|
569
615
|
props: {
|
|
570
|
-
styles:
|
|
571
|
-
backgroundImage:
|
|
616
|
+
styles: o({ default: "font-body antialiased" }),
|
|
617
|
+
backgroundImage: j({ title: "Background Image" })
|
|
572
618
|
},
|
|
573
619
|
canAcceptBlock: () => !0,
|
|
574
620
|
canDelete: () => !1,
|
|
575
621
|
canMove: () => !1,
|
|
576
622
|
canDuplicate: () => !1
|
|
577
623
|
});
|
|
578
|
-
const
|
|
624
|
+
const R0 = (c) => {
|
|
579
625
|
const { blockProps: l, styles: t } = c;
|
|
580
|
-
return
|
|
626
|
+
return n.createElement("br", { ...l, ...t });
|
|
581
627
|
};
|
|
582
|
-
|
|
628
|
+
d(R0, {
|
|
583
629
|
type: "LineBreak",
|
|
584
630
|
label: "Line Break",
|
|
585
631
|
category: "core",
|
|
586
632
|
group: "basic",
|
|
587
633
|
hidden: !0,
|
|
588
|
-
icon:
|
|
634
|
+
icon: A,
|
|
589
635
|
props: {
|
|
590
|
-
styles:
|
|
636
|
+
styles: o({ default: "" })
|
|
591
637
|
}
|
|
592
638
|
});
|
|
593
|
-
const
|
|
594
|
-
const l = (
|
|
639
|
+
const L = (c) => {
|
|
640
|
+
const l = (a, r) => ({
|
|
595
641
|
_id: m(),
|
|
596
|
-
_parent:
|
|
642
|
+
_parent: a,
|
|
597
643
|
_type: "TableCell",
|
|
598
644
|
styles: "#styles:,",
|
|
599
|
-
content: `${c === "TableHead" ? "Table Head" : "Table Cell " +
|
|
600
|
-
}), t = (
|
|
601
|
-
const
|
|
645
|
+
content: `${c === "TableHead" ? "Table Head" : "Table Cell " + r}`
|
|
646
|
+
}), t = (a) => {
|
|
647
|
+
const r = m(), h = {
|
|
602
648
|
_type: "TableRow",
|
|
603
|
-
_id:
|
|
649
|
+
_id: r,
|
|
604
650
|
styles: "#styles:,border-b"
|
|
605
651
|
};
|
|
606
|
-
return
|
|
607
|
-
}, e = (
|
|
608
|
-
const
|
|
609
|
-
_id:
|
|
652
|
+
return a && (h._parent = a), [h, l(r, "1"), l(r, "2"), l(r, "3")];
|
|
653
|
+
}, e = (a) => {
|
|
654
|
+
const r = m(), h = {
|
|
655
|
+
_id: r,
|
|
610
656
|
_type: "TableHead",
|
|
611
657
|
styles: "#styles:,font-medium"
|
|
612
658
|
};
|
|
613
|
-
return
|
|
614
|
-
},
|
|
615
|
-
const
|
|
616
|
-
_id:
|
|
659
|
+
return a && (h._parent = a), [h, ...t(r)];
|
|
660
|
+
}, s = (a) => {
|
|
661
|
+
const r = m(), h = {
|
|
662
|
+
_id: r,
|
|
617
663
|
_type: "TableBody",
|
|
618
664
|
styles: "#styles:,"
|
|
619
665
|
};
|
|
620
|
-
return
|
|
666
|
+
return a && (h._parent = a), [h, ...t(r), ...t(r)];
|
|
621
667
|
};
|
|
622
668
|
if (c === "Table") {
|
|
623
|
-
const
|
|
669
|
+
const a = m();
|
|
624
670
|
return [
|
|
625
671
|
{
|
|
626
|
-
_id:
|
|
672
|
+
_id: a,
|
|
627
673
|
_type: "Table",
|
|
628
674
|
styles: "#styles:,w-full text-left text-gray-500 dark:text-gray-400"
|
|
629
675
|
},
|
|
630
|
-
...e(
|
|
631
|
-
...a
|
|
676
|
+
...e(a),
|
|
677
|
+
...s(a)
|
|
632
678
|
];
|
|
633
679
|
}
|
|
634
|
-
return c === "TableRow" ? t() : c === "TableHead" ? e() : c === "TableBody" ?
|
|
635
|
-
},
|
|
680
|
+
return c === "TableRow" ? t() : c === "TableHead" ? e() : c === "TableBody" ? s() : [];
|
|
681
|
+
}, A0 = (c) => {
|
|
636
682
|
const { blockProps: l, children: t, styles: e } = c;
|
|
637
|
-
return t ?
|
|
683
|
+
return t ? n.createElement("table", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
638
684
|
};
|
|
639
|
-
|
|
685
|
+
d(A0, {
|
|
640
686
|
type: "Table",
|
|
641
687
|
label: "Table",
|
|
642
688
|
category: "core",
|
|
643
689
|
group: "table",
|
|
644
690
|
hidden: !0,
|
|
645
|
-
icon:
|
|
691
|
+
icon: a0,
|
|
646
692
|
props: {
|
|
647
|
-
styles:
|
|
693
|
+
styles: o({ default: "" })
|
|
648
694
|
},
|
|
649
|
-
blocks:
|
|
695
|
+
blocks: L("Table")
|
|
650
696
|
});
|
|
651
|
-
const
|
|
697
|
+
const G0 = (c) => {
|
|
652
698
|
const { blockProps: l, children: t, styles: e } = c;
|
|
653
|
-
return t ?
|
|
699
|
+
return t ? n.createElement("thead", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
654
700
|
};
|
|
655
|
-
|
|
701
|
+
d(G0, {
|
|
656
702
|
type: "TableHead",
|
|
657
703
|
label: "Table Head",
|
|
658
704
|
category: "core",
|
|
659
705
|
group: "table",
|
|
660
706
|
hidden: !0,
|
|
661
|
-
icon:
|
|
707
|
+
icon: i0,
|
|
662
708
|
props: {
|
|
663
|
-
styles:
|
|
709
|
+
styles: o({ default: "" })
|
|
664
710
|
},
|
|
665
|
-
blocks:
|
|
711
|
+
blocks: L("TableHead")
|
|
666
712
|
});
|
|
667
|
-
const
|
|
713
|
+
const q0 = (c) => {
|
|
668
714
|
const { blockProps: l, children: t, styles: e } = c;
|
|
669
|
-
return t ?
|
|
715
|
+
return t ? n.createElement("tbody", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
670
716
|
};
|
|
671
|
-
|
|
717
|
+
d(q0, {
|
|
672
718
|
type: "TableBody",
|
|
673
719
|
label: "Table Body",
|
|
674
720
|
category: "core",
|
|
675
721
|
group: "table",
|
|
676
722
|
hidden: !0,
|
|
677
|
-
icon:
|
|
723
|
+
icon: r0,
|
|
678
724
|
props: {
|
|
679
|
-
styles:
|
|
725
|
+
styles: o({ default: "" })
|
|
680
726
|
},
|
|
681
|
-
blocks:
|
|
727
|
+
blocks: L("TableBody")
|
|
682
728
|
});
|
|
683
|
-
const
|
|
729
|
+
const F0 = (c) => {
|
|
684
730
|
const { blockProps: l, children: t, styles: e } = c;
|
|
685
|
-
return t ?
|
|
731
|
+
return t ? n.createElement("tr", { ...l, ...e }, t) : /* @__PURE__ */ i.jsx(f, {});
|
|
686
732
|
};
|
|
687
|
-
|
|
733
|
+
d(F0, {
|
|
688
734
|
type: "TableRow",
|
|
689
735
|
label: "Table Row",
|
|
690
736
|
category: "core",
|
|
691
737
|
group: "table",
|
|
692
738
|
hidden: !0,
|
|
693
|
-
icon:
|
|
739
|
+
icon: h0,
|
|
694
740
|
props: {
|
|
695
|
-
styles:
|
|
741
|
+
styles: o({ default: "w-full" })
|
|
696
742
|
},
|
|
697
|
-
blocks:
|
|
743
|
+
blocks: L("TableRow")
|
|
698
744
|
});
|
|
699
|
-
const
|
|
700
|
-
const { blockProps: l, children: t, content: e, styles:
|
|
701
|
-
return !t &&
|
|
745
|
+
const $0 = (c) => {
|
|
746
|
+
const { blockProps: l, children: t, content: e, styles: s } = c;
|
|
747
|
+
return !t && B(e) ? /* @__PURE__ */ i.jsx(f, {}) : t ? n.createElement("td", { ...l, ...s }, t) : n.createElement("td", {
|
|
702
748
|
...l,
|
|
703
|
-
...
|
|
749
|
+
...s,
|
|
704
750
|
dangerouslySetInnerHTML: { __html: e }
|
|
705
751
|
});
|
|
706
752
|
};
|
|
707
|
-
|
|
753
|
+
d($0, {
|
|
708
754
|
type: "TableCell",
|
|
709
755
|
label: "Table Cell",
|
|
710
756
|
category: "core",
|
|
711
757
|
group: "table",
|
|
712
758
|
hidden: !0,
|
|
713
|
-
icon:
|
|
759
|
+
icon: n0,
|
|
714
760
|
props: {
|
|
715
|
-
styles:
|
|
716
|
-
content:
|
|
761
|
+
styles: o({ default: "" }),
|
|
762
|
+
content: I({ title: "Content", default: "Table cell item", ai: { html: !0 } })
|
|
717
763
|
}
|
|
718
764
|
});
|
|
719
|
-
const
|
|
720
|
-
const { blockProps: l, errorMessage: t, name: e, _type:
|
|
721
|
-
let
|
|
722
|
-
|
|
723
|
-
const
|
|
765
|
+
const V0 = (c) => {
|
|
766
|
+
const { blockProps: l, errorMessage: t, name: e, _type: s, successMessage: a, action: r, styles: h, children: v } = c;
|
|
767
|
+
let M = v;
|
|
768
|
+
v || (M = /* @__PURE__ */ i.jsx(f, {}));
|
|
769
|
+
const g = {
|
|
724
770
|
"x-data": "useForm",
|
|
725
771
|
"x-on:submit.prevent": "post"
|
|
726
|
-
},
|
|
772
|
+
}, u = {
|
|
727
773
|
"x-html": "formResponse",
|
|
728
774
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
729
775
|
};
|
|
730
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ i.jsxs(
|
|
731
777
|
"form",
|
|
732
778
|
{
|
|
733
|
-
...
|
|
779
|
+
...g,
|
|
734
780
|
"data-error": t,
|
|
735
|
-
"data-success":
|
|
781
|
+
"data-success": a,
|
|
736
782
|
method: "post",
|
|
737
|
-
action:
|
|
783
|
+
action: r,
|
|
738
784
|
...l,
|
|
739
|
-
...
|
|
785
|
+
...h,
|
|
740
786
|
children: [
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
|
|
787
|
+
/* @__PURE__ */ i.jsx("div", { ...u }),
|
|
788
|
+
/* @__PURE__ */ i.jsx("input", { name: "formname", type: "hidden", value: e || s }),
|
|
789
|
+
M
|
|
744
790
|
]
|
|
745
791
|
}
|
|
746
792
|
);
|
|
747
793
|
};
|
|
748
|
-
|
|
794
|
+
d(V0, {
|
|
749
795
|
type: "Form",
|
|
750
796
|
label: "Form",
|
|
751
797
|
category: "core",
|
|
752
|
-
icon:
|
|
798
|
+
icon: o0,
|
|
753
799
|
group: "form",
|
|
754
800
|
hidden: !0,
|
|
755
801
|
props: {
|
|
756
|
-
styles:
|
|
757
|
-
action:
|
|
802
|
+
styles: o({ default: "" }),
|
|
803
|
+
action: z({
|
|
758
804
|
title: "Submit URL",
|
|
759
805
|
default: "/api/form/submit"
|
|
760
806
|
}),
|
|
761
|
-
errorMessage:
|
|
807
|
+
errorMessage: I({
|
|
762
808
|
title: "Error Message",
|
|
763
809
|
default: "Something went wrong. Please try again"
|
|
764
810
|
}),
|
|
765
|
-
successMessage:
|
|
811
|
+
successMessage: I({
|
|
766
812
|
title: "Success Message",
|
|
767
813
|
default: "Thank you for your submission."
|
|
768
814
|
})
|
|
769
815
|
},
|
|
770
816
|
canAcceptBlock: () => !0
|
|
771
817
|
});
|
|
772
|
-
const
|
|
773
|
-
const { blockProps: l, content: t, styles: e, children:
|
|
774
|
-
return
|
|
775
|
-
...
|
|
818
|
+
const O0 = (c) => {
|
|
819
|
+
const { blockProps: l, content: t, styles: e, children: s } = c, a = { ...e, ...l };
|
|
820
|
+
return s ? n.createElement("label", a, s) : n.createElement("label", {
|
|
821
|
+
...a,
|
|
776
822
|
dangerouslySetInnerHTML: { __html: t }
|
|
777
823
|
});
|
|
778
824
|
};
|
|
779
|
-
|
|
825
|
+
d(O0, {
|
|
780
826
|
type: "Label",
|
|
781
827
|
label: "Label",
|
|
782
828
|
category: "core",
|
|
783
|
-
icon:
|
|
829
|
+
icon: d0,
|
|
784
830
|
group: "form",
|
|
785
831
|
hidden: !0,
|
|
786
832
|
props: {
|
|
787
|
-
styles:
|
|
788
|
-
content:
|
|
833
|
+
styles: o({ default: "" }),
|
|
834
|
+
content: z({ title: "Content", default: "Label", ai: { html: !1 } })
|
|
789
835
|
}
|
|
790
836
|
});
|
|
791
|
-
const
|
|
792
|
-
const { blockProps: l, inBuilder: t, label: e, styles:
|
|
837
|
+
const U0 = (c) => {
|
|
838
|
+
const { blockProps: l, inBuilder: t, label: e, styles: s, inputStyles: a, icon: r, iconPos: h } = c, v = m(), M = {
|
|
793
839
|
"x-bind:disabled": "formLoading"
|
|
794
840
|
};
|
|
795
|
-
return /* @__PURE__ */
|
|
841
|
+
return /* @__PURE__ */ i.jsxs(
|
|
796
842
|
"button",
|
|
797
843
|
{
|
|
798
|
-
id:
|
|
799
|
-
...
|
|
800
|
-
...s,
|
|
844
|
+
id: v,
|
|
845
|
+
...M,
|
|
801
846
|
...a,
|
|
847
|
+
...s,
|
|
802
848
|
...l || {},
|
|
803
849
|
type: t ? "button" : "submit",
|
|
804
850
|
children: [
|
|
805
851
|
e,
|
|
806
|
-
|
|
852
|
+
r && /* @__PURE__ */ i.jsx("span", { className: h, dangerouslySetInnerHTML: { __html: r } })
|
|
807
853
|
]
|
|
808
854
|
}
|
|
809
855
|
);
|
|
810
856
|
};
|
|
811
|
-
|
|
857
|
+
d(U0, {
|
|
812
858
|
type: "FormButton",
|
|
813
859
|
label: "Submit Button",
|
|
814
860
|
category: "core",
|
|
815
|
-
icon:
|
|
861
|
+
icon: H,
|
|
816
862
|
group: "form",
|
|
817
863
|
hidden: !0,
|
|
818
864
|
props: {
|
|
819
|
-
label:
|
|
820
|
-
styles:
|
|
865
|
+
label: z({ title: "Label", default: "Submit" }),
|
|
866
|
+
styles: o({
|
|
821
867
|
default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
822
868
|
}),
|
|
823
|
-
icon:
|
|
824
|
-
iconPos:
|
|
869
|
+
icon: C({ title: "Icon", default: "" }),
|
|
870
|
+
iconPos: b({
|
|
825
871
|
title: "Icon Position",
|
|
826
872
|
default: "order-last",
|
|
827
873
|
options: [
|
|
@@ -831,35 +877,35 @@ h(V0, {
|
|
|
831
877
|
})
|
|
832
878
|
}
|
|
833
879
|
});
|
|
834
|
-
const
|
|
835
|
-
const { blockProps: l, fieldName: t, label: e, styles:
|
|
836
|
-
return
|
|
837
|
-
/* @__PURE__ */
|
|
880
|
+
const W0 = (c) => {
|
|
881
|
+
const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, required: r, checked: h, showLabel: v = !0 } = c, M = m();
|
|
882
|
+
return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
883
|
+
/* @__PURE__ */ i.jsx(
|
|
838
884
|
"input",
|
|
839
885
|
{
|
|
840
|
-
...
|
|
886
|
+
...a,
|
|
841
887
|
name: t,
|
|
842
|
-
id:
|
|
888
|
+
id: M,
|
|
843
889
|
type: "checkbox",
|
|
844
|
-
required:
|
|
845
|
-
defaultChecked:
|
|
890
|
+
required: r,
|
|
891
|
+
defaultChecked: h
|
|
846
892
|
}
|
|
847
893
|
),
|
|
848
|
-
e && e !== "Label" && /* @__PURE__ */
|
|
849
|
-
] }) : /* @__PURE__ */
|
|
894
|
+
e && e !== "Label" && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e })
|
|
895
|
+
] }) : /* @__PURE__ */ i.jsx(
|
|
850
896
|
"input",
|
|
851
897
|
{
|
|
852
|
-
id:
|
|
898
|
+
id: M,
|
|
853
899
|
...l,
|
|
854
|
-
...s,
|
|
855
900
|
...a,
|
|
901
|
+
...s,
|
|
856
902
|
type: "checkbox",
|
|
857
|
-
required:
|
|
903
|
+
required: r,
|
|
858
904
|
name: t
|
|
859
905
|
}
|
|
860
906
|
);
|
|
861
907
|
};
|
|
862
|
-
|
|
908
|
+
d(W0, {
|
|
863
909
|
type: "Checkbox",
|
|
864
910
|
label: "Checkbox",
|
|
865
911
|
category: "core",
|
|
@@ -867,68 +913,68 @@ h(O0, {
|
|
|
867
913
|
group: "form",
|
|
868
914
|
hidden: !0,
|
|
869
915
|
props: {
|
|
870
|
-
fieldName:
|
|
871
|
-
styles:
|
|
872
|
-
label:
|
|
916
|
+
fieldName: z({ title: "Field Name", default: "checkbox" }),
|
|
917
|
+
styles: o({ default: "flex items-center gap-x-2" }),
|
|
918
|
+
label: z({ title: "Label", default: "Label" }),
|
|
873
919
|
checked: p({ title: "Checked", default: !1 }),
|
|
874
920
|
required: p({ title: "Required", default: !1 })
|
|
875
921
|
}
|
|
876
922
|
});
|
|
877
|
-
const
|
|
923
|
+
const J0 = (c) => {
|
|
878
924
|
const {
|
|
879
925
|
blockProps: l,
|
|
880
926
|
label: t,
|
|
881
927
|
placeholder: e,
|
|
882
|
-
styles:
|
|
883
|
-
inputStyles:
|
|
884
|
-
showLabel:
|
|
885
|
-
required:
|
|
886
|
-
inputType:
|
|
887
|
-
inBuilder:
|
|
888
|
-
fieldName:
|
|
889
|
-
} = c,
|
|
890
|
-
return !
|
|
928
|
+
styles: s,
|
|
929
|
+
inputStyles: a,
|
|
930
|
+
showLabel: r,
|
|
931
|
+
required: h,
|
|
932
|
+
inputType: v = "text",
|
|
933
|
+
inBuilder: M,
|
|
934
|
+
fieldName: g
|
|
935
|
+
} = c, u = m();
|
|
936
|
+
return !r || v === "submit" ? (v === "submit" && (l.value = t), /* @__PURE__ */ i.jsx(
|
|
891
937
|
"input",
|
|
892
938
|
{
|
|
893
|
-
id:
|
|
894
|
-
name:
|
|
895
|
-
readOnly:
|
|
939
|
+
id: u,
|
|
940
|
+
name: g,
|
|
941
|
+
readOnly: M,
|
|
896
942
|
...l,
|
|
897
|
-
...s,
|
|
898
943
|
...a,
|
|
899
|
-
|
|
944
|
+
...s,
|
|
945
|
+
type: v,
|
|
900
946
|
placeholder: e,
|
|
901
|
-
required:
|
|
947
|
+
required: h
|
|
902
948
|
}
|
|
903
|
-
)) : /* @__PURE__ */
|
|
904
|
-
|
|
905
|
-
/* @__PURE__ */
|
|
949
|
+
)) : /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
950
|
+
r && /* @__PURE__ */ i.jsx("label", { htmlFor: u, children: t }),
|
|
951
|
+
/* @__PURE__ */ i.jsx(
|
|
906
952
|
"input",
|
|
907
953
|
{
|
|
908
|
-
name:
|
|
909
|
-
readOnly:
|
|
910
|
-
...
|
|
911
|
-
id:
|
|
912
|
-
type:
|
|
954
|
+
name: g,
|
|
955
|
+
readOnly: M,
|
|
956
|
+
...a,
|
|
957
|
+
id: u,
|
|
958
|
+
type: v,
|
|
913
959
|
placeholder: e,
|
|
914
|
-
required:
|
|
960
|
+
required: h
|
|
915
961
|
}
|
|
916
962
|
)
|
|
917
963
|
] });
|
|
918
964
|
};
|
|
919
|
-
|
|
965
|
+
d(J0, {
|
|
920
966
|
type: "Input",
|
|
921
967
|
label: "Input",
|
|
922
968
|
category: "core",
|
|
923
|
-
icon:
|
|
969
|
+
icon: G,
|
|
924
970
|
group: "form",
|
|
925
971
|
hidden: !0,
|
|
926
972
|
props: {
|
|
927
|
-
styles:
|
|
928
|
-
fieldName:
|
|
929
|
-
inputType:
|
|
973
|
+
styles: o({ default: "" }),
|
|
974
|
+
fieldName: z({ title: "Field Name", default: "input" }),
|
|
975
|
+
inputType: b({
|
|
930
976
|
title: "Type",
|
|
931
|
-
options:
|
|
977
|
+
options: T(
|
|
932
978
|
["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
|
|
933
979
|
(c) => ({
|
|
934
980
|
value: c,
|
|
@@ -937,178 +983,178 @@ h(U0, {
|
|
|
937
983
|
),
|
|
938
984
|
default: "text"
|
|
939
985
|
}),
|
|
940
|
-
value:
|
|
986
|
+
value: z({ title: "Value", default: "" }),
|
|
941
987
|
showLabel: p({ title: "Show label", default: !0 }),
|
|
942
|
-
inputStyles:
|
|
943
|
-
label:
|
|
944
|
-
placeholder:
|
|
988
|
+
inputStyles: o({ default: "w-full p-1" }),
|
|
989
|
+
label: z({ title: "Label", default: "Label" }),
|
|
990
|
+
placeholder: z({
|
|
945
991
|
title: "Placeholder",
|
|
946
992
|
default: "Placeholder"
|
|
947
993
|
}),
|
|
948
994
|
required: p({ title: "Required", default: !1 })
|
|
949
995
|
}
|
|
950
996
|
});
|
|
951
|
-
const
|
|
952
|
-
const { blockProps: l, fieldName: t, label: e, styles:
|
|
953
|
-
return
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
e && /* @__PURE__ */
|
|
956
|
-
] }) : /* @__PURE__ */
|
|
997
|
+
const Y0 = (c) => {
|
|
998
|
+
const { blockProps: l, fieldName: t, label: e, styles: s, inputStyles: a, checked: r, required: h, showLabel: v = !0 } = c, M = m();
|
|
999
|
+
return v ? /* @__PURE__ */ i.jsxs("div", { ...s, ...l, children: [
|
|
1000
|
+
/* @__PURE__ */ i.jsx("input", { ...a, name: t, id: M, type: "radio", required: h, defaultChecked: r }),
|
|
1001
|
+
e && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e })
|
|
1002
|
+
] }) : /* @__PURE__ */ i.jsx(
|
|
957
1003
|
"input",
|
|
958
1004
|
{
|
|
959
|
-
id:
|
|
1005
|
+
id: M,
|
|
960
1006
|
...l,
|
|
961
|
-
...s,
|
|
962
1007
|
...a,
|
|
1008
|
+
...s,
|
|
963
1009
|
type: "radio",
|
|
964
|
-
required:
|
|
965
|
-
checked:
|
|
1010
|
+
required: h,
|
|
1011
|
+
checked: r,
|
|
966
1012
|
name: t
|
|
967
1013
|
}
|
|
968
1014
|
);
|
|
969
1015
|
};
|
|
970
|
-
|
|
1016
|
+
d(Y0, {
|
|
971
1017
|
type: "Radio",
|
|
972
1018
|
label: "Radio",
|
|
973
1019
|
category: "core",
|
|
974
|
-
icon:
|
|
1020
|
+
icon: M0,
|
|
975
1021
|
group: "form",
|
|
976
1022
|
hidden: !0,
|
|
977
1023
|
props: {
|
|
978
|
-
styles:
|
|
979
|
-
fieldName:
|
|
980
|
-
label:
|
|
1024
|
+
styles: o({ default: "flex items-center w-max gap-x-2" }),
|
|
1025
|
+
fieldName: z({ title: "Field Name", default: "radio" }),
|
|
1026
|
+
label: z({ title: "Label", default: "Label" }),
|
|
981
1027
|
checked: p({ title: "Checked", default: !1 }),
|
|
982
1028
|
required: p({ title: "Required", default: !1 })
|
|
983
1029
|
}
|
|
984
1030
|
});
|
|
985
|
-
const
|
|
1031
|
+
const K0 = (c) => {
|
|
986
1032
|
const {
|
|
987
1033
|
blockProps: l,
|
|
988
1034
|
fieldName: t,
|
|
989
1035
|
label: e,
|
|
990
|
-
placeholder:
|
|
991
|
-
styles:
|
|
992
|
-
inputStyles:
|
|
993
|
-
required:
|
|
994
|
-
showLabel:
|
|
995
|
-
_multiple:
|
|
996
|
-
} = c,
|
|
997
|
-
return
|
|
998
|
-
|
|
999
|
-
/* @__PURE__ */
|
|
1036
|
+
placeholder: s,
|
|
1037
|
+
styles: a,
|
|
1038
|
+
inputStyles: r,
|
|
1039
|
+
required: h,
|
|
1040
|
+
showLabel: v,
|
|
1041
|
+
_multiple: M = !1
|
|
1042
|
+
} = c, g = m();
|
|
1043
|
+
return v ? /* @__PURE__ */ i.jsxs("div", { ...a, children: [
|
|
1044
|
+
v && /* @__PURE__ */ i.jsx("label", { htmlFor: g, children: e }),
|
|
1045
|
+
/* @__PURE__ */ i.jsxs(
|
|
1000
1046
|
"select",
|
|
1001
1047
|
{
|
|
1002
|
-
...
|
|
1003
|
-
id:
|
|
1004
|
-
required:
|
|
1005
|
-
multiple:
|
|
1048
|
+
...r,
|
|
1049
|
+
id: g,
|
|
1050
|
+
required: h,
|
|
1051
|
+
multiple: M,
|
|
1006
1052
|
name: t,
|
|
1007
1053
|
children: [
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
|
|
1054
|
+
/* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
|
|
1055
|
+
T(c.options, (u) => /* @__PURE__ */ i.jsx(
|
|
1010
1056
|
"option",
|
|
1011
1057
|
{
|
|
1012
|
-
selected:
|
|
1013
|
-
value:
|
|
1014
|
-
dangerouslySetInnerHTML: { __html:
|
|
1058
|
+
selected: w(u, "selected", !1),
|
|
1059
|
+
value: u.value,
|
|
1060
|
+
dangerouslySetInnerHTML: { __html: u.label }
|
|
1015
1061
|
},
|
|
1016
|
-
|
|
1062
|
+
u.value
|
|
1017
1063
|
))
|
|
1018
1064
|
]
|
|
1019
1065
|
}
|
|
1020
1066
|
)
|
|
1021
|
-
] }) : /* @__PURE__ */
|
|
1067
|
+
] }) : /* @__PURE__ */ i.jsxs(
|
|
1022
1068
|
"select",
|
|
1023
1069
|
{
|
|
1024
|
-
id:
|
|
1025
|
-
...
|
|
1070
|
+
id: g,
|
|
1071
|
+
...a,
|
|
1026
1072
|
...l,
|
|
1027
|
-
required:
|
|
1028
|
-
multiple:
|
|
1073
|
+
required: h,
|
|
1074
|
+
multiple: M,
|
|
1029
1075
|
name: t,
|
|
1030
1076
|
children: [
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
|
|
1077
|
+
/* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
|
|
1078
|
+
T(c.options, (u) => /* @__PURE__ */ i.jsx(
|
|
1033
1079
|
"option",
|
|
1034
1080
|
{
|
|
1035
|
-
selected:
|
|
1036
|
-
value:
|
|
1037
|
-
dangerouslySetInnerHTML: { __html:
|
|
1081
|
+
selected: w(u, "selected", !1),
|
|
1082
|
+
value: u.value,
|
|
1083
|
+
dangerouslySetInnerHTML: { __html: u.label }
|
|
1038
1084
|
},
|
|
1039
|
-
|
|
1085
|
+
u.value
|
|
1040
1086
|
))
|
|
1041
1087
|
]
|
|
1042
1088
|
}
|
|
1043
1089
|
);
|
|
1044
1090
|
};
|
|
1045
|
-
|
|
1091
|
+
d(K0, {
|
|
1046
1092
|
type: "Select",
|
|
1047
1093
|
label: "Select",
|
|
1048
1094
|
category: "core",
|
|
1049
|
-
icon:
|
|
1095
|
+
icon: z0,
|
|
1050
1096
|
group: "form",
|
|
1051
1097
|
hidden: !0,
|
|
1052
1098
|
props: {
|
|
1053
|
-
styles:
|
|
1054
|
-
fieldName:
|
|
1099
|
+
styles: o({ default: "" }),
|
|
1100
|
+
fieldName: z({ title: "Field Name", default: "select" }),
|
|
1055
1101
|
showLabel: p({ title: "Show label", default: !0 }),
|
|
1056
|
-
inputStyles:
|
|
1057
|
-
label:
|
|
1058
|
-
placeholder:
|
|
1102
|
+
inputStyles: o({ default: "w-full p-1" }),
|
|
1103
|
+
label: z({ title: "Label", default: "Label" }),
|
|
1104
|
+
placeholder: z({
|
|
1059
1105
|
title: "Placeholder",
|
|
1060
1106
|
default: "Placeholder"
|
|
1061
1107
|
}),
|
|
1062
1108
|
required: p({ title: "Required", default: !1 }),
|
|
1063
1109
|
_multiple: p({ title: "Multiple Choice", default: !1 }),
|
|
1064
|
-
options:
|
|
1110
|
+
options: J({
|
|
1065
1111
|
title: "Options",
|
|
1066
1112
|
itemProperties: {
|
|
1067
|
-
label:
|
|
1068
|
-
value:
|
|
1113
|
+
label: z({ title: "Label", default: "" }),
|
|
1114
|
+
value: z({ title: "Value", default: "" })
|
|
1069
1115
|
}
|
|
1070
1116
|
})
|
|
1071
1117
|
}
|
|
1072
1118
|
});
|
|
1073
|
-
const
|
|
1074
|
-
const { blockProps: l, fieldName: t, label: e, placeholder:
|
|
1075
|
-
return
|
|
1076
|
-
|
|
1077
|
-
/* @__PURE__ */
|
|
1078
|
-
] }) : /* @__PURE__ */
|
|
1119
|
+
const X0 = (c) => {
|
|
1120
|
+
const { blockProps: l, fieldName: t, label: e, placeholder: s, styles: a, inputStyles: r, _rows: h, showLabel: v } = c, M = m();
|
|
1121
|
+
return v ? /* @__PURE__ */ i.jsxs("div", { ...a, ...l, children: [
|
|
1122
|
+
v && /* @__PURE__ */ i.jsx("label", { htmlFor: M, children: e }),
|
|
1123
|
+
/* @__PURE__ */ i.jsx("textarea", { name: t, ...r, id: M, placeholder: s, rows: h })
|
|
1124
|
+
] }) : /* @__PURE__ */ i.jsx(
|
|
1079
1125
|
"textarea",
|
|
1080
1126
|
{
|
|
1081
|
-
id:
|
|
1127
|
+
id: M,
|
|
1082
1128
|
name: t,
|
|
1083
1129
|
...l,
|
|
1084
|
-
...
|
|
1085
|
-
...
|
|
1086
|
-
placeholder:
|
|
1087
|
-
rows:
|
|
1130
|
+
...r,
|
|
1131
|
+
...a,
|
|
1132
|
+
placeholder: s,
|
|
1133
|
+
rows: h
|
|
1088
1134
|
}
|
|
1089
1135
|
);
|
|
1090
1136
|
};
|
|
1091
|
-
|
|
1137
|
+
d(X0, {
|
|
1092
1138
|
type: "TextArea",
|
|
1093
1139
|
label: "TextArea",
|
|
1094
1140
|
category: "core",
|
|
1095
|
-
icon:
|
|
1141
|
+
icon: G,
|
|
1096
1142
|
group: "form",
|
|
1097
1143
|
hidden: !0,
|
|
1098
1144
|
props: {
|
|
1099
|
-
fieldName:
|
|
1145
|
+
fieldName: z({ title: "Field Name", default: "textarea" }),
|
|
1100
1146
|
showLabel: p({ title: "Show label", default: !0 }),
|
|
1101
|
-
styles:
|
|
1102
|
-
inputStyles:
|
|
1103
|
-
label:
|
|
1104
|
-
placeholder:
|
|
1147
|
+
styles: o({ default: "" }),
|
|
1148
|
+
inputStyles: o({ default: "w-full p-1" }),
|
|
1149
|
+
label: z({ title: "Label", default: "Label" }),
|
|
1150
|
+
placeholder: z({
|
|
1105
1151
|
title: "Placeholder",
|
|
1106
1152
|
default: "Placeholder"
|
|
1107
1153
|
}),
|
|
1108
|
-
_rows:
|
|
1154
|
+
_rows: D({ title: "Rows", default: 3 })
|
|
1109
1155
|
}
|
|
1110
1156
|
});
|
|
1111
|
-
const
|
|
1157
|
+
const n1 = O;
|
|
1112
1158
|
export {
|
|
1113
|
-
|
|
1159
|
+
n1 as loadWebBlocks
|
|
1114
1160
|
};
|