@chaibuilder/sdk 2.0.0-beta.108 → 2.0.0-beta.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/core.cjs +6 -6
- package/dist/core.d.ts +25 -24
- package/dist/core.js +1203 -995
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +213 -178
- package/package.json +1 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { registerChaiBlockSchema as m, StylesProp as u, registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
2
|
-
import { jsx as i, jsxs as b, Fragment as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsx as i, jsxs as b, Fragment as A } from "react/jsx-runtime";
|
|
3
|
+
import * as g from "react";
|
|
4
4
|
import { createElement as L } from "react";
|
|
5
|
-
import { c as C, G as
|
|
6
|
-
import { ButtonIcon as
|
|
7
|
-
import { isEmpty as w, get as h, isNull as
|
|
8
|
-
import { GlobeIcon as
|
|
9
|
-
const v = ({ className: e = "", inBuilder:
|
|
10
|
-
const { blockProps:
|
|
5
|
+
import { c as C, G as H, g as I } from "./iconBase-DHfFLkem.js";
|
|
6
|
+
import { ButtonIcon as $, CodeIcon as z, HeadingIcon as j, TextIcon as F, CursorTextIcon as D, DividerHorizontalIcon as q, SketchLogoIcon as G, ImageIcon as E, Link1Icon as U, RowsIcon as V, ColumnsIcon as O, SpaceBetweenVerticallyIcon as W, VideoIcon as X, CheckboxIcon as Y, InputIcon as T, LetterCaseToggleIcon as Z, RadiobuttonIcon as J, DropdownMenuIcon as K } from "@radix-ui/react-icons";
|
|
7
|
+
import { isEmpty as w, get as h, isNull as Q, pick as ee, omit as te, map as _ } from "lodash-es";
|
|
8
|
+
import { GlobeIcon as R, GroupIcon as le, Columns as oe, Rows as re } from "lucide-react";
|
|
9
|
+
const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div", { className: C("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ne = (e) => {
|
|
10
|
+
const { blockProps: t, inBuilder: l, backgroundImage: r, children: o, tag: n = "div", styles: s } = e;
|
|
11
11
|
let a = o;
|
|
12
|
-
o || (a = /* @__PURE__ */ i(v, { inBuilder:
|
|
12
|
+
o || (a = /* @__PURE__ */ i(v, { inBuilder: l }));
|
|
13
13
|
let c = {};
|
|
14
|
-
return r && (c = { backgroundImage: `url(${r})` }),
|
|
14
|
+
return r && (c = { backgroundImage: `url(${r})` }), g.createElement(n, { ...t, ...s, style: c }, a);
|
|
15
15
|
}, ie = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
label: "Box",
|
|
@@ -54,20 +54,20 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
54
54
|
}),
|
|
55
55
|
canAcceptBlock: () => !0
|
|
56
56
|
}, se = (e) => {
|
|
57
|
-
const { blockProps:
|
|
57
|
+
const { blockProps: t, iconSize: l, icon: r, content: o, styles: n, children: s, iconPos: a, link: c, inBuilder: y } = e, f = r, k = s || /* @__PURE__ */ b(A, { children: [
|
|
58
58
|
/* @__PURE__ */ i("span", { "data-ai-key": "content", children: o }),
|
|
59
|
-
|
|
59
|
+
f && /* @__PURE__ */ i(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
|
-
style: { width:
|
|
62
|
+
style: { width: l + "px" },
|
|
63
63
|
className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
|
|
64
|
-
dangerouslySetInnerHTML: { __html:
|
|
64
|
+
dangerouslySetInnerHTML: { __html: f }
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
67
|
] }), p = L(
|
|
68
68
|
"button",
|
|
69
69
|
{
|
|
70
|
-
...
|
|
70
|
+
...t,
|
|
71
71
|
...n,
|
|
72
72
|
type: "button",
|
|
73
73
|
"aria-label": o
|
|
@@ -79,7 +79,7 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
79
79
|
type: "Button",
|
|
80
80
|
label: "Button",
|
|
81
81
|
category: "core",
|
|
82
|
-
icon:
|
|
82
|
+
icon: $,
|
|
83
83
|
group: "basic",
|
|
84
84
|
...m({
|
|
85
85
|
properties: {
|
|
@@ -127,23 +127,23 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
127
127
|
i18nProps: ["content"],
|
|
128
128
|
aiProps: ["content"]
|
|
129
129
|
}, ce = (e) => {
|
|
130
|
-
const { blockProps:
|
|
130
|
+
const { blockProps: t, styles: l, htmlCode: r, inBuilder: o } = e;
|
|
131
131
|
return o ? /* @__PURE__ */ b("div", { className: "relative", children: [
|
|
132
|
-
o ? /* @__PURE__ */ i("div", { ...
|
|
133
|
-
|
|
134
|
-
...
|
|
132
|
+
o ? /* @__PURE__ */ i("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
|
|
133
|
+
g.createElement("div", {
|
|
134
|
+
...l,
|
|
135
135
|
dangerouslySetInnerHTML: { __html: r.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
136
136
|
})
|
|
137
|
-
] }) :
|
|
138
|
-
...l,
|
|
137
|
+
] }) : g.createElement("div", {
|
|
139
138
|
...t,
|
|
139
|
+
...l,
|
|
140
140
|
dangerouslySetInnerHTML: { __html: r }
|
|
141
141
|
});
|
|
142
142
|
}, pe = {
|
|
143
143
|
type: "CustomHTML",
|
|
144
144
|
label: "web_blocks.custom_html",
|
|
145
145
|
category: "core",
|
|
146
|
-
icon:
|
|
146
|
+
icon: z,
|
|
147
147
|
group: "advanced",
|
|
148
148
|
...m({
|
|
149
149
|
properties: {
|
|
@@ -156,9 +156,9 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
156
156
|
}
|
|
157
157
|
})
|
|
158
158
|
}, ue = (e) => {
|
|
159
|
-
const { blockProps:
|
|
159
|
+
const { blockProps: t, styles: l, backgroundImage: r } = e;
|
|
160
160
|
let o = {};
|
|
161
|
-
return r && (o = { backgroundImage: `url(${r})` }),
|
|
161
|
+
return r && (o = { backgroundImage: `url(${r})` }), g.createElement("div", { ...t, ...l, style: o });
|
|
162
162
|
}, de = {
|
|
163
163
|
type: "EmptyBox",
|
|
164
164
|
label: "Empty Box",
|
|
@@ -176,17 +176,17 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
176
176
|
}
|
|
177
177
|
})
|
|
178
178
|
}, me = (e) => {
|
|
179
|
-
const { blockProps:
|
|
180
|
-
return n ?
|
|
181
|
-
...t,
|
|
179
|
+
const { blockProps: t, styles: l, content: r, tag: o = "h1", children: n = null } = e;
|
|
180
|
+
return n ? g.createElement(o, { ...l, ...t }, n) : g.createElement(o, {
|
|
182
181
|
...l,
|
|
182
|
+
...t,
|
|
183
183
|
dangerouslySetInnerHTML: { __html: r }
|
|
184
184
|
});
|
|
185
185
|
}, ye = {
|
|
186
186
|
type: "Heading",
|
|
187
187
|
label: "web_blocks.heading",
|
|
188
188
|
category: "core",
|
|
189
|
-
icon:
|
|
189
|
+
icon: j,
|
|
190
190
|
group: "typography",
|
|
191
191
|
...m({
|
|
192
192
|
properties: {
|
|
@@ -209,12 +209,12 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
209
209
|
i18nProps: ["content"],
|
|
210
210
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
211
211
|
}, ge = (e) => {
|
|
212
|
-
const { blockProps:
|
|
213
|
-
return
|
|
214
|
-
...t,
|
|
212
|
+
const { blockProps: t, styles: l, content: r } = e;
|
|
213
|
+
return Q(e.children) ? g.createElement("p", {
|
|
215
214
|
...l,
|
|
215
|
+
...t,
|
|
216
216
|
dangerouslySetInnerHTML: { __html: r }
|
|
217
|
-
}) :
|
|
217
|
+
}) : g.createElement("p", { ...l, ...t }, e.children);
|
|
218
218
|
}, fe = {
|
|
219
219
|
type: "Paragraph",
|
|
220
220
|
label: "Paragraph",
|
|
@@ -237,21 +237,21 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
237
237
|
i18nProps: ["content"],
|
|
238
238
|
aiProps: ["content"],
|
|
239
239
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
240
|
-
},
|
|
240
|
+
}, P = (e, ...t) => ({
|
|
241
241
|
...e,
|
|
242
|
-
className: C(e.className, ...
|
|
242
|
+
className: C(e.className, ...t)
|
|
243
243
|
}), be = (e) => {
|
|
244
|
-
const { blockProps:
|
|
244
|
+
const { blockProps: t, content: l, styles: r } = e, o = P(
|
|
245
245
|
r,
|
|
246
246
|
"prose dark:prose-invert prose-p:m-0 prose-p:min-h-[1rem] prose-blockquote:m-2 prose-blockquote:ml-4 prose-ul:m-0 prose-ol:m-0 prose-li:m-0",
|
|
247
247
|
"max-w-full"
|
|
248
248
|
);
|
|
249
|
-
return /* @__PURE__ */ i("div", { ...
|
|
249
|
+
return /* @__PURE__ */ i("div", { ...t, ...o, dangerouslySetInnerHTML: { __html: l } });
|
|
250
250
|
}, he = {
|
|
251
251
|
type: "RichText",
|
|
252
252
|
label: "Rich Text",
|
|
253
253
|
category: "core",
|
|
254
|
-
icon:
|
|
254
|
+
icon: D,
|
|
255
255
|
group: "typography",
|
|
256
256
|
...m({
|
|
257
257
|
properties: {
|
|
@@ -267,10 +267,10 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
267
267
|
aiProps: ["content"],
|
|
268
268
|
i18nProps: ["content"]
|
|
269
269
|
}, ke = (e) => {
|
|
270
|
-
const { blockProps:
|
|
271
|
-
return o ?
|
|
272
|
-
...t,
|
|
270
|
+
const { blockProps: t, styles: l, content: r, children: o = null, tag: n } = e;
|
|
271
|
+
return o ? g.createElement("span", { ...l, ...t }, o) : g.createElement(n || "span", {
|
|
273
272
|
...l,
|
|
273
|
+
...t,
|
|
274
274
|
dangerouslySetInnerHTML: { __html: r || "" }
|
|
275
275
|
});
|
|
276
276
|
}, we = {
|
|
@@ -294,11 +294,11 @@ const v = ({ className: e = "", inBuilder: l }) => l ? /* @__PURE__ */ i("div",
|
|
|
294
294
|
canAcceptBlock: () => !0
|
|
295
295
|
};
|
|
296
296
|
function xe(e) {
|
|
297
|
-
return
|
|
297
|
+
return H({ 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);
|
|
298
298
|
}
|
|
299
299
|
const Le = (e) => {
|
|
300
|
-
const { scripts:
|
|
301
|
-
return
|
|
300
|
+
const { scripts: t, inBuilder: l, blockProps: r } = e;
|
|
301
|
+
return l ? /* @__PURE__ */ i("div", { ...r, children: /* @__PURE__ */ i("div", { className: C("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: { __html: t } });
|
|
302
302
|
}, ve = {
|
|
303
303
|
type: "CustomScript",
|
|
304
304
|
label: "web_blocks.custom_script",
|
|
@@ -317,13 +317,13 @@ const Le = (e) => {
|
|
|
317
317
|
}
|
|
318
318
|
})
|
|
319
319
|
}, Ie = (e) => {
|
|
320
|
-
const { blockProps:
|
|
321
|
-
return L("hr", { ...
|
|
320
|
+
const { blockProps: t, styles: l } = e;
|
|
321
|
+
return L("hr", { ...l, ...t });
|
|
322
322
|
}, Ce = {
|
|
323
323
|
type: "Divider",
|
|
324
324
|
label: "web_blocks.divider",
|
|
325
325
|
category: "core",
|
|
326
|
-
icon:
|
|
326
|
+
icon: q,
|
|
327
327
|
group: "basic",
|
|
328
328
|
...m({
|
|
329
329
|
properties: {
|
|
@@ -331,12 +331,12 @@ const Le = (e) => {
|
|
|
331
331
|
}
|
|
332
332
|
})
|
|
333
333
|
}, Be = (e) => {
|
|
334
|
-
const { blockProps:
|
|
335
|
-
return
|
|
334
|
+
const { blockProps: t, inBuilder: l, children: r, globalBlock: o } = e;
|
|
335
|
+
return l && !o ? /* @__PURE__ */ b(
|
|
336
336
|
"div",
|
|
337
337
|
{
|
|
338
338
|
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
339
|
-
...
|
|
339
|
+
...t,
|
|
340
340
|
children: [
|
|
341
341
|
/* @__PURE__ */ b("h1", { children: [
|
|
342
342
|
"Global Block - ",
|
|
@@ -345,13 +345,14 @@ const Le = (e) => {
|
|
|
345
345
|
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
|
-
) :
|
|
349
|
-
},
|
|
348
|
+
) : g.createElement("span", { ...t }, r);
|
|
349
|
+
}, Pe = {
|
|
350
350
|
type: "GlobalBlock",
|
|
351
351
|
label: "Global Block",
|
|
352
|
-
icon:
|
|
352
|
+
icon: R,
|
|
353
353
|
category: "core",
|
|
354
354
|
group: "basic",
|
|
355
|
+
hidden: !0,
|
|
355
356
|
...m({
|
|
356
357
|
properties: {
|
|
357
358
|
globalBlock: {
|
|
@@ -362,13 +363,13 @@ const Le = (e) => {
|
|
|
362
363
|
}
|
|
363
364
|
}
|
|
364
365
|
})
|
|
365
|
-
},
|
|
366
|
-
const { blockProps:
|
|
367
|
-
if (w(
|
|
366
|
+
}, _e = (e) => {
|
|
367
|
+
const { blockProps: t, icon: l, styles: r, width: o, inBuilder: n, height: s } = e, a = P(r, "");
|
|
368
|
+
if (w(l))
|
|
368
369
|
return /* @__PURE__ */ i(v, { inBuilder: n, className: "h-8 w-14" });
|
|
369
|
-
const c =
|
|
370
|
-
return
|
|
371
|
-
...
|
|
370
|
+
const c = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
371
|
+
return g.createElement("span", {
|
|
372
|
+
...t,
|
|
372
373
|
...a,
|
|
373
374
|
style: {
|
|
374
375
|
width: o ? `${o}px` : "auto",
|
|
@@ -380,7 +381,7 @@ const Le = (e) => {
|
|
|
380
381
|
type: "Icon",
|
|
381
382
|
label: "web_blocks.icon",
|
|
382
383
|
category: "core",
|
|
383
|
-
icon:
|
|
384
|
+
icon: G,
|
|
384
385
|
group: "media",
|
|
385
386
|
...m({
|
|
386
387
|
properties: {
|
|
@@ -404,15 +405,15 @@ const Le = (e) => {
|
|
|
404
405
|
}
|
|
405
406
|
})
|
|
406
407
|
}, Ne = (e) => {
|
|
407
|
-
const { blockProps:
|
|
408
|
-
return w(
|
|
408
|
+
const { blockProps: t, image: l, mobileImage: r, styles: o, alt: n, height: s, width: a, lazyLoading: c } = e;
|
|
409
|
+
return w(l) ? /* @__PURE__ */ i(v, { className: "h-36" }) : /* @__PURE__ */ b("picture", { children: [
|
|
409
410
|
r && /* @__PURE__ */ i("source", { srcSet: r, media: "(max-width: 480px)" }),
|
|
410
411
|
/* @__PURE__ */ i(
|
|
411
412
|
"img",
|
|
412
413
|
{
|
|
413
|
-
...
|
|
414
|
+
...t,
|
|
414
415
|
...o,
|
|
415
|
-
src:
|
|
416
|
+
src: l,
|
|
416
417
|
alt: n,
|
|
417
418
|
loading: c ? "lazy" : "eager",
|
|
418
419
|
width: a,
|
|
@@ -424,7 +425,7 @@ const Le = (e) => {
|
|
|
424
425
|
type: "Image",
|
|
425
426
|
label: "Image",
|
|
426
427
|
category: "core",
|
|
427
|
-
icon:
|
|
428
|
+
icon: E,
|
|
428
429
|
group: "media",
|
|
429
430
|
...m({
|
|
430
431
|
properties: {
|
|
@@ -468,30 +469,30 @@ const Le = (e) => {
|
|
|
468
469
|
}),
|
|
469
470
|
aiProps: ["alt"],
|
|
470
471
|
i18nProps: ["alt"]
|
|
471
|
-
},
|
|
472
|
-
const { blockProps:
|
|
473
|
-
if (!
|
|
472
|
+
}, $e = (e) => {
|
|
473
|
+
const { blockProps: t, children: l, styles: r, inBuilder: o, content: n, href: s } = e, { hrefType: a, autoplay: c, maxWidth: y, backdropColor: f, galleryName: k } = e, p = P(r, "cb-lightbox vbox-item");
|
|
474
|
+
if (!l && w(r == null ? void 0 : r.className) && w(n))
|
|
474
475
|
return /* @__PURE__ */ i(v, { inBuilder: o });
|
|
475
476
|
if (o)
|
|
476
|
-
return
|
|
477
|
-
...
|
|
477
|
+
return l ? /* @__PURE__ */ i("span", { ...t, ...p, children: l }) : L("span", {
|
|
478
|
+
...t,
|
|
478
479
|
...p,
|
|
479
480
|
dangerouslySetInnerHTML: { __html: n }
|
|
480
481
|
});
|
|
481
482
|
const x = {};
|
|
482
|
-
return a !== "image" && (x["data-vbtype"] = a), c && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"),
|
|
483
|
-
...
|
|
483
|
+
return a !== "image" && (x["data-vbtype"] = a), c && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"), f && (x["data-overlay"] = f), k && (x["data-gall"] = k), l ? /* @__PURE__ */ i("a", { "aria-label": n, ...x, href: s || "#/", ...t, ...p, children: l }) : L("a", {
|
|
484
|
+
...t,
|
|
484
485
|
...p,
|
|
485
486
|
...x,
|
|
486
487
|
href: s || "#",
|
|
487
488
|
dangerouslySetInnerHTML: { __html: n },
|
|
488
489
|
"aria-label": n
|
|
489
490
|
});
|
|
490
|
-
},
|
|
491
|
+
}, Ee = {
|
|
491
492
|
type: "LightBoxLink",
|
|
492
493
|
label: "Lightbox Link",
|
|
493
494
|
category: "core",
|
|
494
|
-
icon:
|
|
495
|
+
icon: E,
|
|
495
496
|
group: "basic",
|
|
496
497
|
...m({
|
|
497
498
|
properties: {
|
|
@@ -541,24 +542,24 @@ const Le = (e) => {
|
|
|
541
542
|
i18nProps: ["content"],
|
|
542
543
|
aiProps: ["content"],
|
|
543
544
|
canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
|
|
544
|
-
},
|
|
545
|
-
const { blockProps:
|
|
545
|
+
}, Te = (e) => {
|
|
546
|
+
const { blockProps: t, link: l, children: r, styles: o, inBuilder: n, content: s } = e;
|
|
546
547
|
let a = {};
|
|
547
|
-
return !r && w(s) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? r ? /* @__PURE__ */ i("span", { ...
|
|
548
|
+
return !r && w(s) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? r ? /* @__PURE__ */ i("span", { ...t, style: a, ...o, children: r }) : L(
|
|
548
549
|
"span",
|
|
549
550
|
{
|
|
550
|
-
...
|
|
551
|
+
...t,
|
|
551
552
|
...o,
|
|
552
553
|
style: a
|
|
553
554
|
},
|
|
554
555
|
s
|
|
555
|
-
) : r ? /* @__PURE__ */ i("a", { "aria-label": s, href: (
|
|
556
|
+
) : r ? /* @__PURE__ */ i("a", { "aria-label": s, href: (l == null ? void 0 : l.href) || "#/", target: l == null ? void 0 : l.target, ...t, ...o, children: r }) : L(
|
|
556
557
|
"a",
|
|
557
558
|
{
|
|
558
|
-
...
|
|
559
|
+
...t,
|
|
559
560
|
...o,
|
|
560
|
-
href: (
|
|
561
|
-
target: (
|
|
561
|
+
href: (l == null ? void 0 : l.href) || "#",
|
|
562
|
+
target: (l == null ? void 0 : l.target) || "_self",
|
|
562
563
|
"aria-label": s
|
|
563
564
|
},
|
|
564
565
|
s
|
|
@@ -567,7 +568,7 @@ const Le = (e) => {
|
|
|
567
568
|
type: "Link",
|
|
568
569
|
label: "Link",
|
|
569
570
|
category: "core",
|
|
570
|
-
icon:
|
|
571
|
+
icon: U,
|
|
571
572
|
group: "basic",
|
|
572
573
|
...m({
|
|
573
574
|
properties: {
|
|
@@ -599,16 +600,16 @@ const Le = (e) => {
|
|
|
599
600
|
i18nProps: ["content"],
|
|
600
601
|
canAcceptBlock: (e) => e !== "Link"
|
|
601
602
|
}, Ae = (e) => {
|
|
602
|
-
const { blockProps:
|
|
603
|
-
return !
|
|
603
|
+
const { blockProps: t, children: l, listType: r, styles: o, tag: n, inBuilder: s } = e, a = C(h(o, "className", ""), r);
|
|
604
|
+
return !l && w(o == null ? void 0 : o.className) ? /* @__PURE__ */ i(v, { inBuilder: s }) : g.createElement(
|
|
604
605
|
n || (r === "list-decimal" ? "ol" : "ul"),
|
|
605
|
-
{ ...
|
|
606
|
-
|
|
606
|
+
{ ...t, ...o, className: a },
|
|
607
|
+
l
|
|
607
608
|
);
|
|
608
609
|
}, He = {
|
|
609
610
|
type: "List",
|
|
610
611
|
label: "web_blocks.list",
|
|
611
|
-
icon:
|
|
612
|
+
icon: V,
|
|
612
613
|
category: "core",
|
|
613
614
|
group: "basic",
|
|
614
615
|
...m({
|
|
@@ -652,16 +653,16 @@ const Le = (e) => {
|
|
|
652
653
|
}
|
|
653
654
|
]
|
|
654
655
|
}, ze = (e) => {
|
|
655
|
-
const { blockProps:
|
|
656
|
-
return o ?
|
|
656
|
+
const { blockProps: t, content: l, styles: r, children: o, tag: n } = e;
|
|
657
|
+
return o ? g.createElement(n || "li", { ...r, ...t }, o) : g.createElement(n || "li", {
|
|
657
658
|
...r,
|
|
658
|
-
...
|
|
659
|
-
dangerouslySetInnerHTML: { __html:
|
|
659
|
+
...t,
|
|
660
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
660
661
|
});
|
|
661
|
-
},
|
|
662
|
+
}, je = {
|
|
662
663
|
type: "ListItem",
|
|
663
664
|
label: "List Item",
|
|
664
|
-
icon:
|
|
665
|
+
icon: O,
|
|
665
666
|
category: "core",
|
|
666
667
|
group: "basic",
|
|
667
668
|
...m({
|
|
@@ -681,17 +682,18 @@ const Le = (e) => {
|
|
|
681
682
|
aiProps: ["content"],
|
|
682
683
|
canAcceptBlock: (e) => e !== "ListItem",
|
|
683
684
|
canBeNested: (e) => e === "List"
|
|
684
|
-
},
|
|
685
|
+
}, Fe = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, De = {
|
|
685
686
|
type: "Text",
|
|
686
687
|
label: "Text",
|
|
687
688
|
hidden: !0,
|
|
688
689
|
category: "core",
|
|
689
690
|
group: "typography",
|
|
690
|
-
icon:
|
|
691
|
+
icon: W,
|
|
691
692
|
...m({
|
|
692
693
|
properties: {
|
|
693
694
|
styles: u("text-black"),
|
|
694
695
|
content: {
|
|
696
|
+
title: "Content",
|
|
695
697
|
type: "string",
|
|
696
698
|
default: ""
|
|
697
699
|
}
|
|
@@ -701,54 +703,54 @@ const Le = (e) => {
|
|
|
701
703
|
i18nProps: ["content"]
|
|
702
704
|
}, S = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, N = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, M = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, qe = (e) => {
|
|
703
705
|
if (S.test(e)) {
|
|
704
|
-
const
|
|
705
|
-
return
|
|
706
|
+
const t = e.match(S);
|
|
707
|
+
return t ? `https://www.youtube.com/embed/${t[4]}` : e;
|
|
706
708
|
}
|
|
707
709
|
if (N.test(e)) {
|
|
708
|
-
const
|
|
709
|
-
return
|
|
710
|
+
const t = e.match(N);
|
|
711
|
+
return t ? `https://player.vimeo.com/video/${t[3]}` : e;
|
|
710
712
|
}
|
|
711
713
|
if (M.test(e)) {
|
|
712
|
-
const
|
|
713
|
-
return
|
|
714
|
+
const t = e.match(M);
|
|
715
|
+
return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
|
|
714
716
|
}
|
|
715
717
|
return null;
|
|
716
|
-
}, Ge =
|
|
717
|
-
const { blockProps:
|
|
718
|
-
if (w(o)) return /* @__PURE__ */ i(v, { inBuilder:
|
|
719
|
-
let
|
|
720
|
-
if (
|
|
721
|
-
if (!w(
|
|
718
|
+
}, Ge = g.memo((e) => {
|
|
719
|
+
const { blockProps: t, inBuilder: l, styles: r, url: o, controls: n } = e, s = h(n, "autoPlay", !1), a = h(n, "controls", !1), c = s || h(n, "muted", !0), y = h(n, "loop", !1);
|
|
720
|
+
if (w(o)) return /* @__PURE__ */ i(v, { inBuilder: l, className: "h-36" });
|
|
721
|
+
let f = qe(o), k = null;
|
|
722
|
+
if (f) {
|
|
723
|
+
if (!w(f)) {
|
|
722
724
|
const p = [];
|
|
723
|
-
p.push(`autoplay=${s ? 1 : 0}`), p.push(`controls=${n ? 1 : 0}`), p.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), p.push(`loop=${y ? 1 : 0}`),
|
|
725
|
+
p.push(`autoplay=${s ? 1 : 0}`), p.push(`controls=${n ? 1 : 0}`), p.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), p.push(`loop=${y ? 1 : 0}`), f = `${f}?${p.join("&")}`;
|
|
724
726
|
}
|
|
725
|
-
k =
|
|
726
|
-
...
|
|
727
|
+
k = g.createElement("iframe", {
|
|
728
|
+
...t,
|
|
727
729
|
className: "absolute inset-0 w-full h-full",
|
|
728
|
-
src:
|
|
729
|
-
allow:
|
|
730
|
+
src: f,
|
|
731
|
+
allow: l ? "" : "autoplay *; fullscreen *",
|
|
730
732
|
allowFullScreen: !0,
|
|
731
733
|
frameBorder: 0
|
|
732
734
|
});
|
|
733
735
|
} else
|
|
734
|
-
k =
|
|
735
|
-
...
|
|
736
|
+
k = g.createElement("video", {
|
|
737
|
+
...t,
|
|
736
738
|
className: "absolute inset-0 w-full h-full",
|
|
737
739
|
src: o,
|
|
738
740
|
controls: a,
|
|
739
741
|
muted: c,
|
|
740
|
-
autoPlay:
|
|
742
|
+
autoPlay: l ? !1 : s,
|
|
741
743
|
loop: y
|
|
742
744
|
});
|
|
743
|
-
return /* @__PURE__ */ i("div", { ...
|
|
744
|
-
|
|
745
|
+
return /* @__PURE__ */ i("div", { ...ee(r, ["className"]), children: /* @__PURE__ */ b("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
746
|
+
l ? /* @__PURE__ */ i("div", { ...t, ...te(r, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
745
747
|
k
|
|
746
748
|
] }) });
|
|
747
749
|
}), Ue = {
|
|
748
750
|
type: "Video",
|
|
749
751
|
label: "Video",
|
|
750
752
|
category: "core",
|
|
751
|
-
icon:
|
|
753
|
+
icon: X,
|
|
752
754
|
group: "media",
|
|
753
755
|
...m({
|
|
754
756
|
properties: {
|
|
@@ -794,13 +796,13 @@ const Le = (e) => {
|
|
|
794
796
|
}),
|
|
795
797
|
i18nProps: ["url"]
|
|
796
798
|
}, Ve = (e) => {
|
|
797
|
-
const { blockProps:
|
|
798
|
-
return c ? /* @__PURE__ */ b("div", { ...o, ...
|
|
799
|
+
const { blockProps: t, fieldName: l, label: r, styles: o, inputStyles: n, required: s, checked: a, showLabel: c = !0 } = e, y = I();
|
|
800
|
+
return c ? /* @__PURE__ */ b("div", { ...o, ...t, children: [
|
|
799
801
|
/* @__PURE__ */ i(
|
|
800
802
|
"input",
|
|
801
803
|
{
|
|
802
804
|
...n,
|
|
803
|
-
name:
|
|
805
|
+
name: l,
|
|
804
806
|
id: y,
|
|
805
807
|
type: "checkbox",
|
|
806
808
|
required: s,
|
|
@@ -812,19 +814,19 @@ const Le = (e) => {
|
|
|
812
814
|
"input",
|
|
813
815
|
{
|
|
814
816
|
id: y,
|
|
815
|
-
...
|
|
817
|
+
...t,
|
|
816
818
|
...n,
|
|
817
819
|
...o,
|
|
818
820
|
type: "checkbox",
|
|
819
821
|
required: s,
|
|
820
|
-
name:
|
|
822
|
+
name: l
|
|
821
823
|
}
|
|
822
824
|
);
|
|
823
825
|
}, Oe = {
|
|
824
826
|
type: "Checkbox",
|
|
825
827
|
label: "web_blocks.checkbox",
|
|
826
828
|
category: "core",
|
|
827
|
-
icon:
|
|
829
|
+
icon: Y,
|
|
828
830
|
group: "form",
|
|
829
831
|
...m({
|
|
830
832
|
properties: {
|
|
@@ -860,9 +862,9 @@ const Le = (e) => {
|
|
|
860
862
|
aiProps: ["label"],
|
|
861
863
|
i18nProps: ["label"]
|
|
862
864
|
}, We = (e) => {
|
|
863
|
-
const { children:
|
|
864
|
-
let c =
|
|
865
|
-
return
|
|
865
|
+
const { children: t, blockProps: l, errorMessage: r, successMessage: o, action: n, styles: s, inBuilder: a } = e;
|
|
866
|
+
let c = t;
|
|
867
|
+
return t || (c = /* @__PURE__ */ i(v, { inBuilder: a })), /* @__PURE__ */ b(
|
|
866
868
|
"form",
|
|
867
869
|
{
|
|
868
870
|
...{
|
|
@@ -873,7 +875,7 @@ const Le = (e) => {
|
|
|
873
875
|
"data-success": o,
|
|
874
876
|
method: "post",
|
|
875
877
|
action: n,
|
|
876
|
-
...
|
|
878
|
+
...l,
|
|
877
879
|
...s,
|
|
878
880
|
children: [
|
|
879
881
|
/* @__PURE__ */ i("div", { ...{
|
|
@@ -926,7 +928,7 @@ const Le = (e) => {
|
|
|
926
928
|
aiProps: ["errorMessage", "successMessage"],
|
|
927
929
|
canAcceptBlock: () => !0
|
|
928
930
|
}, Ye = (e) => {
|
|
929
|
-
const { blockProps:
|
|
931
|
+
const { blockProps: t, inBuilder: l, label: r, styles: o, inputStyles: n, icon: s, iconSize: a, iconPos: c } = e, y = I();
|
|
930
932
|
return /* @__PURE__ */ b(
|
|
931
933
|
"button",
|
|
932
934
|
{
|
|
@@ -936,8 +938,8 @@ const Le = (e) => {
|
|
|
936
938
|
},
|
|
937
939
|
...n,
|
|
938
940
|
...o,
|
|
939
|
-
...
|
|
940
|
-
type:
|
|
941
|
+
...t || {},
|
|
942
|
+
type: l ? "button" : "submit",
|
|
941
943
|
"aria-label": r,
|
|
942
944
|
children: [
|
|
943
945
|
r,
|
|
@@ -956,7 +958,7 @@ const Le = (e) => {
|
|
|
956
958
|
type: "FormButton",
|
|
957
959
|
label: "Submit Button",
|
|
958
960
|
category: "core",
|
|
959
|
-
icon:
|
|
961
|
+
icon: $,
|
|
960
962
|
group: "form",
|
|
961
963
|
...m({
|
|
962
964
|
properties: {
|
|
@@ -993,15 +995,15 @@ const Le = (e) => {
|
|
|
993
995
|
i18nProps: ["label"],
|
|
994
996
|
aiProps: ["label"]
|
|
995
997
|
}, Je = (e) => {
|
|
996
|
-
const { blockProps:
|
|
997
|
-
return a ? /* @__PURE__ */ b("div", { ...n, ...
|
|
998
|
-
a && /* @__PURE__ */ i("label", { htmlFor:
|
|
998
|
+
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s, showLabel: a, required: c, inputType: y } = e, f = I();
|
|
999
|
+
return a ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
|
|
1000
|
+
a && /* @__PURE__ */ i("label", { htmlFor: f, children: r }),
|
|
999
1001
|
/* @__PURE__ */ i(
|
|
1000
1002
|
"input",
|
|
1001
1003
|
{
|
|
1002
|
-
name:
|
|
1004
|
+
name: l,
|
|
1003
1005
|
...s,
|
|
1004
|
-
id:
|
|
1006
|
+
id: f,
|
|
1005
1007
|
type: y,
|
|
1006
1008
|
placeholder: o,
|
|
1007
1009
|
required: c
|
|
@@ -1010,9 +1012,9 @@ const Le = (e) => {
|
|
|
1010
1012
|
] }) : /* @__PURE__ */ i(
|
|
1011
1013
|
"input",
|
|
1012
1014
|
{
|
|
1013
|
-
id:
|
|
1014
|
-
name:
|
|
1015
|
-
...
|
|
1015
|
+
id: f,
|
|
1016
|
+
name: l,
|
|
1017
|
+
...t,
|
|
1016
1018
|
...s,
|
|
1017
1019
|
...n,
|
|
1018
1020
|
type: y,
|
|
@@ -1024,7 +1026,7 @@ const Le = (e) => {
|
|
|
1024
1026
|
type: "Input",
|
|
1025
1027
|
label: "web_blocks.input",
|
|
1026
1028
|
category: "core",
|
|
1027
|
-
icon:
|
|
1029
|
+
icon: T,
|
|
1028
1030
|
group: "form",
|
|
1029
1031
|
...m({
|
|
1030
1032
|
properties: {
|
|
@@ -1081,16 +1083,16 @@ const Le = (e) => {
|
|
|
1081
1083
|
aiProps: ["label", "placeholder"],
|
|
1082
1084
|
i18nProps: ["label", "placeholder"]
|
|
1083
1085
|
}, Qe = (e) => {
|
|
1084
|
-
const { blockProps:
|
|
1085
|
-
return o ?
|
|
1086
|
+
const { blockProps: t, content: l, styles: r, children: o } = e, n = { ...r, ...t };
|
|
1087
|
+
return o ? g.createElement("label", n, o) : g.createElement("label", {
|
|
1086
1088
|
...n,
|
|
1087
|
-
dangerouslySetInnerHTML: { __html:
|
|
1089
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
1088
1090
|
});
|
|
1089
1091
|
}, et = {
|
|
1090
1092
|
type: "Label",
|
|
1091
1093
|
label: "Label",
|
|
1092
1094
|
category: "core",
|
|
1093
|
-
icon:
|
|
1095
|
+
icon: Z,
|
|
1094
1096
|
group: "form",
|
|
1095
1097
|
...m({
|
|
1096
1098
|
properties: {
|
|
@@ -1105,28 +1107,28 @@ const Le = (e) => {
|
|
|
1105
1107
|
aiProps: ["content"],
|
|
1106
1108
|
i18nProps: ["content"]
|
|
1107
1109
|
}, tt = (e) => {
|
|
1108
|
-
const { blockProps:
|
|
1109
|
-
return c ? /* @__PURE__ */ b("div", { ...o, ...
|
|
1110
|
-
/* @__PURE__ */ i("input", { ...n, name:
|
|
1110
|
+
const { blockProps: t, fieldName: l, label: r, styles: o, inputStyles: n, required: s, checked: a, showLabel: c = !0 } = e, y = I();
|
|
1111
|
+
return c ? /* @__PURE__ */ b("div", { ...o, ...t, children: [
|
|
1112
|
+
/* @__PURE__ */ i("input", { ...n, name: l, id: y, type: "radio", required: s, defaultChecked: a }),
|
|
1111
1113
|
r && /* @__PURE__ */ i("label", { htmlFor: y, children: r })
|
|
1112
1114
|
] }) : /* @__PURE__ */ i(
|
|
1113
1115
|
"input",
|
|
1114
1116
|
{
|
|
1115
1117
|
id: y,
|
|
1116
|
-
...
|
|
1118
|
+
...t,
|
|
1117
1119
|
...n,
|
|
1118
1120
|
...o,
|
|
1119
1121
|
type: "radio",
|
|
1120
1122
|
required: s,
|
|
1121
1123
|
checked: a,
|
|
1122
|
-
name:
|
|
1124
|
+
name: l
|
|
1123
1125
|
}
|
|
1124
1126
|
);
|
|
1125
1127
|
}, lt = {
|
|
1126
1128
|
type: "Radio",
|
|
1127
1129
|
label: "web_blocks.radio",
|
|
1128
1130
|
category: "core",
|
|
1129
|
-
icon:
|
|
1131
|
+
icon: J,
|
|
1130
1132
|
group: "form",
|
|
1131
1133
|
...m({
|
|
1132
1134
|
properties: {
|
|
@@ -1162,22 +1164,22 @@ const Le = (e) => {
|
|
|
1162
1164
|
aiProps: ["label"],
|
|
1163
1165
|
i18nProps: ["label"]
|
|
1164
1166
|
}, ot = (e) => {
|
|
1165
|
-
const { blockProps:
|
|
1166
|
-
return c ? /* @__PURE__ */ b("div", { ...n, ...
|
|
1167
|
+
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s, required: a, showLabel: c, _multiple: y, options: f } = e, k = I();
|
|
1168
|
+
return c ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
|
|
1167
1169
|
c && /* @__PURE__ */ i("label", { htmlFor: k, children: r }),
|
|
1168
|
-
/* @__PURE__ */ b("select", { ...s, id: k, required: a, multiple: y, name:
|
|
1170
|
+
/* @__PURE__ */ b("select", { ...s, id: k, required: a, multiple: y, name: l, children: [
|
|
1169
1171
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
1170
|
-
|
|
1172
|
+
_(f, (p) => /* @__PURE__ */ i("option", { value: p == null ? void 0 : p.value, children: p == null ? void 0 : p.label }, p == null ? void 0 : p.value))
|
|
1171
1173
|
] })
|
|
1172
|
-
] }) : /* @__PURE__ */ b("select", { id: k, ...n, ...
|
|
1174
|
+
] }) : /* @__PURE__ */ b("select", { id: k, ...n, ...t, required: a, multiple: y, name: l, children: [
|
|
1173
1175
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
1174
|
-
|
|
1176
|
+
_(f, (p) => /* @__PURE__ */ i("option", { value: p == null ? void 0 : p.value, children: p == null ? void 0 : p.label }, p == null ? void 0 : p.value))
|
|
1175
1177
|
] });
|
|
1176
1178
|
}, rt = {
|
|
1177
1179
|
type: "Select",
|
|
1178
1180
|
label: "web_blocks.select",
|
|
1179
1181
|
category: "core",
|
|
1180
|
-
icon:
|
|
1182
|
+
icon: K,
|
|
1181
1183
|
group: "form",
|
|
1182
1184
|
...m({
|
|
1183
1185
|
properties: {
|
|
@@ -1238,16 +1240,16 @@ const Le = (e) => {
|
|
|
1238
1240
|
aiProps: ["label", "placeholder"],
|
|
1239
1241
|
i18nProps: ["label", "placeholder"]
|
|
1240
1242
|
}, nt = (e) => {
|
|
1241
|
-
const { blockProps:
|
|
1242
|
-
return c ? /* @__PURE__ */ b("div", { ...n, ...
|
|
1243
|
+
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s, _rows: a, showLabel: c } = e, y = I();
|
|
1244
|
+
return c ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
|
|
1243
1245
|
c && /* @__PURE__ */ i("label", { htmlFor: y, children: r }),
|
|
1244
|
-
/* @__PURE__ */ i("textarea", { name:
|
|
1246
|
+
/* @__PURE__ */ i("textarea", { name: l, ...s, id: y, placeholder: o, rows: a })
|
|
1245
1247
|
] }) : /* @__PURE__ */ i(
|
|
1246
1248
|
"textarea",
|
|
1247
1249
|
{
|
|
1248
1250
|
id: y,
|
|
1249
|
-
name:
|
|
1250
|
-
...
|
|
1251
|
+
name: l,
|
|
1252
|
+
...t,
|
|
1251
1253
|
...s,
|
|
1252
1254
|
...n,
|
|
1253
1255
|
placeholder: o,
|
|
@@ -1258,7 +1260,7 @@ const Le = (e) => {
|
|
|
1258
1260
|
type: "TextArea",
|
|
1259
1261
|
label: "web_blocks.textarea",
|
|
1260
1262
|
category: "core",
|
|
1261
|
-
icon:
|
|
1263
|
+
icon: T,
|
|
1262
1264
|
group: "form",
|
|
1263
1265
|
...m({
|
|
1264
1266
|
properties: {
|
|
@@ -1295,8 +1297,8 @@ const Le = (e) => {
|
|
|
1295
1297
|
aiProps: ["label", "placeholder"],
|
|
1296
1298
|
i18nProps: ["label", "placeholder"]
|
|
1297
1299
|
}, st = (e) => {
|
|
1298
|
-
const { blockProps:
|
|
1299
|
-
return L("br", { ...
|
|
1300
|
+
const { blockProps: t, styles: l } = e;
|
|
1301
|
+
return L("br", { ...t, ...l });
|
|
1300
1302
|
}, at = {
|
|
1301
1303
|
type: "LineBreak",
|
|
1302
1304
|
label: "Line Break",
|
|
@@ -1312,6 +1314,39 @@ const Le = (e) => {
|
|
|
1312
1314
|
canDelete: () => !1,
|
|
1313
1315
|
canMove: () => !1,
|
|
1314
1316
|
canDuplicate: () => !1
|
|
1317
|
+
}, ct = (e) => {
|
|
1318
|
+
const { blockProps: t, inBuilder: l, children: r, partialBlockId: o } = e;
|
|
1319
|
+
return l && !o ? /* @__PURE__ */ b(
|
|
1320
|
+
"div",
|
|
1321
|
+
{
|
|
1322
|
+
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
1323
|
+
...t,
|
|
1324
|
+
children: [
|
|
1325
|
+
/* @__PURE__ */ b("h1", { children: [
|
|
1326
|
+
"Partial Block - ",
|
|
1327
|
+
o
|
|
1328
|
+
] }),
|
|
1329
|
+
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
1330
|
+
]
|
|
1331
|
+
}
|
|
1332
|
+
) : g.createElement("span", { ...t }, r);
|
|
1333
|
+
}, pt = {
|
|
1334
|
+
type: "PartialBlock",
|
|
1335
|
+
label: "Partial Block",
|
|
1336
|
+
icon: R,
|
|
1337
|
+
category: "core",
|
|
1338
|
+
group: "basic",
|
|
1339
|
+
hidden: !0,
|
|
1340
|
+
...m({
|
|
1341
|
+
properties: {
|
|
1342
|
+
partialBlockId: {
|
|
1343
|
+
type: "string",
|
|
1344
|
+
title: "Partial Block",
|
|
1345
|
+
default: "",
|
|
1346
|
+
ui: { "ui:widget": "hidden" }
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
})
|
|
1315
1350
|
}, B = {
|
|
1316
1351
|
SMALL: {
|
|
1317
1352
|
1: "col-span-1",
|
|
@@ -1355,15 +1390,15 @@ const Le = (e) => {
|
|
|
1355
1390
|
11: "lg:col-span-11",
|
|
1356
1391
|
12: "lg:col-span-12"
|
|
1357
1392
|
}
|
|
1358
|
-
},
|
|
1359
|
-
const { blockProps:
|
|
1393
|
+
}, ut = (e) => {
|
|
1394
|
+
const { blockProps: t, children: l, styles: r, colSpan: o, tabletColSpan: n, desktopColSpan: s } = e, c = { className: [
|
|
1360
1395
|
h(r, "className", ""),
|
|
1361
1396
|
h(B, ["SMALL", isNaN(o) || !o ? 6 : o], ""),
|
|
1362
1397
|
n ? h(B, ["MEDIUM", n || o], "") : "",
|
|
1363
1398
|
s ? h(B, ["LARGE", n || o], "") : ""
|
|
1364
1399
|
].join(" ") };
|
|
1365
|
-
return /* @__PURE__ */ i("div", { ...
|
|
1366
|
-
},
|
|
1400
|
+
return /* @__PURE__ */ i("div", { ...t, ...r, ...c, children: l || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
1401
|
+
}, dt = {
|
|
1367
1402
|
type: "Column",
|
|
1368
1403
|
label: "Column",
|
|
1369
1404
|
group: "basic",
|
|
@@ -1398,10 +1433,10 @@ const Le = (e) => {
|
|
|
1398
1433
|
}
|
|
1399
1434
|
}
|
|
1400
1435
|
})
|
|
1401
|
-
},
|
|
1402
|
-
const { blockProps:
|
|
1403
|
-
return typeof (r == null ? void 0 : r.style) == "object" ? r.style.gap = `${o}px` : s.style = { gap: `${o}px` }, /* @__PURE__ */ i("div", { ...
|
|
1404
|
-
},
|
|
1436
|
+
}, mt = (e) => {
|
|
1437
|
+
const { blockProps: t, children: l, styles: r, gutter: o } = e, s = { className: [h(r, "className", ""), " grid grid-cols-12"].join() };
|
|
1438
|
+
return typeof (r == null ? void 0 : r.style) == "object" ? r.style.gap = `${o}px` : s.style = { gap: `${o}px` }, /* @__PURE__ */ i("div", { ...t, ...r, ...s, children: l });
|
|
1439
|
+
}, yt = {
|
|
1405
1440
|
type: "Row",
|
|
1406
1441
|
label: "Row",
|
|
1407
1442
|
group: "basic",
|
|
@@ -1431,9 +1466,9 @@ const Le = (e) => {
|
|
|
1431
1466
|
}
|
|
1432
1467
|
}
|
|
1433
1468
|
})
|
|
1434
|
-
},
|
|
1435
|
-
d(ne, ie), d(ue, de), d(se, ae), d(me, ye), d(ge, fe), d(ke, we), d(be, he), d(
|
|
1469
|
+
}, Lt = () => {
|
|
1470
|
+
d(ne, ie), d(ue, de), d(se, ae), d(me, ye), d(ge, fe), d(ke, we), d(be, he), d(Te, Re), d($e, Ee), d(Ae, He), d(ze, je), d(_e, Se), d(Ne, Me), d(Ge, Ue), d(ce, pe), d(Le, ve), d(Fe, De), d(We, Xe), d(Ye, Ze), d(Je, Ke), d(Ve, Oe), d(tt, lt), d(ot, rt), d(nt, it), d(Qe, et), d(st, at), d(Ie, Ce), d(Be, Pe), d(ct, pt), d(mt, yt), d(ut, dt);
|
|
1436
1471
|
};
|
|
1437
1472
|
export {
|
|
1438
|
-
|
|
1473
|
+
Lt as loadWebBlocks
|
|
1439
1474
|
};
|