@chaibuilder/sdk 2.0.0-beta.74 → 2.0.0-beta.76
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/core.cjs +4 -4
- package/dist/core.d.ts +7 -0
- package/dist/core.js +1273 -1256
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +6 -0
- package/dist/render.js +118 -101
- package/dist/runtime.d.ts +6 -0
- package/dist/tailwind.d.ts +6 -0
- package/dist/ui.d.ts +6 -0
- package/dist/web-blocks.cjs +2 -29
- package/dist/web-blocks.d.ts +6 -0
- package/dist/web-blocks.js +397 -929
- package/package.json +4 -3
package/dist/web-blocks.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { registerChaiBlockSchema as
|
|
2
|
-
import { jsx as i, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { createElement as
|
|
5
|
-
import { c as
|
|
6
|
-
import { ButtonIcon as
|
|
7
|
-
import { isEmpty as
|
|
8
|
-
import { GlobeIcon as
|
|
9
|
-
const
|
|
10
|
-
const { blockProps:
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
return n && (
|
|
15
|
-
},
|
|
1
|
+
import { registerChaiBlockSchema as m, StylesProp as u, registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
2
|
+
import { jsx as i, jsxs as b, Fragment as R } from "react/jsx-runtime";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { createElement as L } from "react";
|
|
5
|
+
import { c as C, G as A, g as I } from "./iconBase-DHfFLkem.js";
|
|
6
|
+
import { ButtonIcon as T, CodeIcon as H, HeadingIcon as z, TextIcon as F, CursorTextIcon as j, DividerHorizontalIcon as D, SketchLogoIcon as q, ImageIcon as $, Link1Icon as G, RowsIcon as U, ColumnsIcon as V, SpaceBetweenVerticallyIcon as O, VideoIcon as W, CheckboxIcon as X, InputIcon as E, LetterCaseToggleIcon as Y, RadiobuttonIcon as Z, DropdownMenuIcon as J } from "@radix-ui/react-icons";
|
|
7
|
+
import { isEmpty as w, get as h, isNull as K, pick as Q, omit as ee, map as P } from "lodash-es";
|
|
8
|
+
import { GlobeIcon as te, GroupIcon as le, Columns as oe, Rows as ne } from "lucide-react";
|
|
9
|
+
const v = ({ className: e = "", inBuilder: l }) => l ? /* @__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, re = (e) => {
|
|
10
|
+
const { blockProps: l, inBuilder: t, backgroundImage: n, children: o, tag: r = "div", styles: s } = e;
|
|
11
|
+
let a = o;
|
|
12
|
+
o || (a = /* @__PURE__ */ i(v, { inBuilder: t }));
|
|
13
|
+
let c = {};
|
|
14
|
+
return n && (c = { backgroundImage: `url(${n})` }), f.createElement(r, { ...l, ...s, style: c }, a);
|
|
15
|
+
}, ie = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
label: "Box",
|
|
18
18
|
category: "core",
|
|
19
19
|
group: "basic",
|
|
20
|
-
...
|
|
20
|
+
...m({
|
|
21
21
|
properties: {
|
|
22
|
-
styles:
|
|
22
|
+
styles: u(""),
|
|
23
23
|
backgroundImage: {
|
|
24
24
|
type: "string",
|
|
25
25
|
default: "",
|
|
@@ -53,37 +53,37 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
53
53
|
}
|
|
54
54
|
}),
|
|
55
55
|
canAcceptBlock: () => !0
|
|
56
|
-
},
|
|
57
|
-
const { blockProps:
|
|
58
|
-
/* @__PURE__ */ i("span", { "data-ai-key": "content", children:
|
|
59
|
-
|
|
56
|
+
}, se = (e) => {
|
|
57
|
+
const { blockProps: l, iconSize: t, icon: n, content: o, styles: r, children: s, iconPos: a, link: c, inBuilder: y } = e, g = n, k = s || /* @__PURE__ */ b(R, { children: [
|
|
58
|
+
/* @__PURE__ */ i("span", { "data-ai-key": "content", children: o }),
|
|
59
|
+
g && /* @__PURE__ */ i(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
|
-
style: { width:
|
|
63
|
-
className:
|
|
64
|
-
dangerouslySetInnerHTML: { __html:
|
|
62
|
+
style: { width: t + "px" },
|
|
63
|
+
className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
|
|
64
|
+
dangerouslySetInnerHTML: { __html: g }
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
|
-
] }),
|
|
67
|
+
] }), p = L(
|
|
68
68
|
"button",
|
|
69
69
|
{
|
|
70
|
-
...
|
|
71
|
-
...
|
|
70
|
+
...l,
|
|
71
|
+
...r,
|
|
72
72
|
type: "button",
|
|
73
|
-
"aria-label":
|
|
73
|
+
"aria-label": o
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
k
|
|
76
76
|
);
|
|
77
|
-
return
|
|
78
|
-
},
|
|
77
|
+
return w(h(c, "href")) ? p : y ? /* @__PURE__ */ i("span", { children: p }) : /* @__PURE__ */ i("a", { "aria-label": o, href: h(c, "href") || "/", target: h(c, "target", "_self"), children: p });
|
|
78
|
+
}, ae = {
|
|
79
79
|
type: "Button",
|
|
80
80
|
label: "Button",
|
|
81
81
|
category: "core",
|
|
82
|
-
icon:
|
|
82
|
+
icon: T,
|
|
83
83
|
group: "basic",
|
|
84
|
-
...
|
|
84
|
+
...m({
|
|
85
85
|
properties: {
|
|
86
|
-
styles:
|
|
86
|
+
styles: u("text-primary-foreground bg-primary px-4 py-2 rounded-lg flex items-center"),
|
|
87
87
|
content: {
|
|
88
88
|
type: "string",
|
|
89
89
|
title: "Button label",
|
|
@@ -126,28 +126,28 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
126
126
|
}),
|
|
127
127
|
i18nProps: ["content"],
|
|
128
128
|
aiProps: ["content"]
|
|
129
|
-
},
|
|
130
|
-
const { blockProps:
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
...
|
|
129
|
+
}, ce = (e) => {
|
|
130
|
+
const { blockProps: l, styles: t, htmlCode: n, inBuilder: o } = e;
|
|
131
|
+
return o ? /* @__PURE__ */ b("div", { className: "relative", children: [
|
|
132
|
+
o ? /* @__PURE__ */ i("div", { ...l, ...t, className: "absolute z-20 h-full w-full" }) : null,
|
|
133
|
+
f.createElement("div", {
|
|
134
|
+
...t,
|
|
135
135
|
dangerouslySetInnerHTML: { __html: n.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
136
136
|
})
|
|
137
|
-
] }) :
|
|
138
|
-
...t,
|
|
137
|
+
] }) : f.createElement("div", {
|
|
139
138
|
...l,
|
|
139
|
+
...t,
|
|
140
140
|
dangerouslySetInnerHTML: { __html: n }
|
|
141
141
|
});
|
|
142
|
-
},
|
|
142
|
+
}, pe = {
|
|
143
143
|
type: "CustomHTML",
|
|
144
144
|
label: "web_blocks.custom_html",
|
|
145
145
|
category: "core",
|
|
146
|
-
icon:
|
|
146
|
+
icon: H,
|
|
147
147
|
group: "advanced",
|
|
148
|
-
...
|
|
148
|
+
...m({
|
|
149
149
|
properties: {
|
|
150
|
-
styles:
|
|
150
|
+
styles: u(""),
|
|
151
151
|
htmlCode: {
|
|
152
152
|
type: "string",
|
|
153
153
|
default: "<div><p>Enter your HTML code here...</p></div>",
|
|
@@ -155,18 +155,18 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
})
|
|
158
|
-
},
|
|
159
|
-
const { blockProps:
|
|
160
|
-
let
|
|
161
|
-
return n && (
|
|
162
|
-
},
|
|
158
|
+
}, ue = (e) => {
|
|
159
|
+
const { blockProps: l, styles: t, backgroundImage: n } = e;
|
|
160
|
+
let o = {};
|
|
161
|
+
return n && (o = { backgroundImage: `url(${n})` }), f.createElement("div", { ...l, ...t, style: o });
|
|
162
|
+
}, de = {
|
|
163
163
|
type: "EmptyBox",
|
|
164
164
|
label: "Empty Box",
|
|
165
165
|
category: "core",
|
|
166
166
|
group: "basic",
|
|
167
|
-
...
|
|
167
|
+
...m({
|
|
168
168
|
properties: {
|
|
169
|
-
styles:
|
|
169
|
+
styles: u(""),
|
|
170
170
|
backgroundImage: {
|
|
171
171
|
type: "string",
|
|
172
172
|
title: "Background Image",
|
|
@@ -175,20 +175,20 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
})
|
|
178
|
-
},
|
|
179
|
-
const { blockProps:
|
|
180
|
-
return
|
|
181
|
-
...l,
|
|
178
|
+
}, me = (e) => {
|
|
179
|
+
const { blockProps: l, styles: t, content: n, tag: o = "h1", children: r = null } = e;
|
|
180
|
+
return r ? f.createElement(o, { ...t, ...l }, r) : f.createElement(o, {
|
|
182
181
|
...t,
|
|
182
|
+
...l,
|
|
183
183
|
dangerouslySetInnerHTML: { __html: n }
|
|
184
184
|
});
|
|
185
|
-
},
|
|
185
|
+
}, ye = {
|
|
186
186
|
type: "Heading",
|
|
187
187
|
label: "web_blocks.heading",
|
|
188
188
|
category: "core",
|
|
189
|
-
icon:
|
|
189
|
+
icon: z,
|
|
190
190
|
group: "typography",
|
|
191
|
-
...
|
|
191
|
+
...m({
|
|
192
192
|
properties: {
|
|
193
193
|
tag: {
|
|
194
194
|
type: "string",
|
|
@@ -196,7 +196,7 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
196
196
|
title: "Level",
|
|
197
197
|
enum: ["h1", "h2", "h3", "h4", "h5", "h6"]
|
|
198
198
|
},
|
|
199
|
-
styles:
|
|
199
|
+
styles: u("text-3xl"),
|
|
200
200
|
content: {
|
|
201
201
|
type: "string",
|
|
202
202
|
default: "Heading goes here",
|
|
@@ -208,22 +208,22 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
208
208
|
aiProps: ["content"],
|
|
209
209
|
i18nProps: ["content"],
|
|
210
210
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
211
|
-
},
|
|
212
|
-
const { blockProps:
|
|
213
|
-
return
|
|
214
|
-
...l,
|
|
211
|
+
}, ge = (e) => {
|
|
212
|
+
const { blockProps: l, styles: t, content: n } = e;
|
|
213
|
+
return K(e.children) ? f.createElement("p", {
|
|
215
214
|
...t,
|
|
215
|
+
...l,
|
|
216
216
|
dangerouslySetInnerHTML: { __html: n }
|
|
217
|
-
}) :
|
|
218
|
-
},
|
|
217
|
+
}) : f.createElement("p", { ...t, ...l }, e.children);
|
|
218
|
+
}, fe = {
|
|
219
219
|
type: "Paragraph",
|
|
220
220
|
label: "Paragraph",
|
|
221
221
|
category: "core",
|
|
222
|
-
icon:
|
|
222
|
+
icon: F,
|
|
223
223
|
group: "typography",
|
|
224
|
-
...
|
|
224
|
+
...m({
|
|
225
225
|
properties: {
|
|
226
|
-
styles:
|
|
226
|
+
styles: u(""),
|
|
227
227
|
content: {
|
|
228
228
|
type: "string",
|
|
229
229
|
title: "Content",
|
|
@@ -237,21 +237,21 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
237
237
|
i18nProps: ["content"],
|
|
238
238
|
aiProps: ["content"],
|
|
239
239
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
240
|
-
},
|
|
240
|
+
}, _ = (e, ...l) => ({
|
|
241
241
|
...e,
|
|
242
|
-
className:
|
|
243
|
-
}),
|
|
244
|
-
const { blockProps:
|
|
245
|
-
return /* @__PURE__ */ i("div", { ...
|
|
246
|
-
},
|
|
242
|
+
className: C(e.className, ...l)
|
|
243
|
+
}), be = (e) => {
|
|
244
|
+
const { blockProps: l, content: t, styles: n } = e, o = _(n, "prose", "max-w-full");
|
|
245
|
+
return /* @__PURE__ */ i("div", { ...l, ...o, dangerouslySetInnerHTML: { __html: t } });
|
|
246
|
+
}, he = {
|
|
247
247
|
type: "RichText",
|
|
248
248
|
label: "Rich Text",
|
|
249
249
|
category: "core",
|
|
250
|
-
icon:
|
|
250
|
+
icon: j,
|
|
251
251
|
group: "typography",
|
|
252
|
-
...
|
|
252
|
+
...m({
|
|
253
253
|
properties: {
|
|
254
|
-
styles:
|
|
254
|
+
styles: u(""),
|
|
255
255
|
content: {
|
|
256
256
|
type: "string",
|
|
257
257
|
title: "Content",
|
|
@@ -262,21 +262,21 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
262
262
|
}),
|
|
263
263
|
aiProps: ["content"],
|
|
264
264
|
i18nProps: ["content"]
|
|
265
|
-
},
|
|
266
|
-
const { blockProps:
|
|
267
|
-
return
|
|
268
|
-
...l,
|
|
265
|
+
}, ke = (e) => {
|
|
266
|
+
const { blockProps: l, styles: t, content: n, children: o = null, tag: r } = e;
|
|
267
|
+
return o ? f.createElement("span", { ...t, ...l }, o) : f.createElement(r || "span", {
|
|
269
268
|
...t,
|
|
269
|
+
...l,
|
|
270
270
|
dangerouslySetInnerHTML: { __html: n || "" }
|
|
271
271
|
});
|
|
272
|
-
},
|
|
272
|
+
}, we = {
|
|
273
273
|
type: "Span",
|
|
274
274
|
label: "Span",
|
|
275
275
|
category: "core",
|
|
276
276
|
group: "typography",
|
|
277
|
-
...
|
|
277
|
+
...m({
|
|
278
278
|
properties: {
|
|
279
|
-
styles:
|
|
279
|
+
styles: u(""),
|
|
280
280
|
content: {
|
|
281
281
|
type: "string",
|
|
282
282
|
title: "Content",
|
|
@@ -289,19 +289,19 @@ const B = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
289
289
|
i18nProps: ["content"],
|
|
290
290
|
canAcceptBlock: () => !0
|
|
291
291
|
};
|
|
292
|
-
function
|
|
293
|
-
return
|
|
292
|
+
function xe(e) {
|
|
293
|
+
return A({ 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);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
const { scripts:
|
|
297
|
-
return
|
|
298
|
-
},
|
|
295
|
+
const Le = (e) => {
|
|
296
|
+
const { scripts: l, inBuilder: t, blockProps: n } = e;
|
|
297
|
+
return t ? /* @__PURE__ */ i("div", { ...n, 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: l } });
|
|
298
|
+
}, ve = {
|
|
299
299
|
type: "CustomScript",
|
|
300
300
|
label: "web_blocks.custom_script",
|
|
301
301
|
category: "core",
|
|
302
|
-
icon:
|
|
302
|
+
icon: xe,
|
|
303
303
|
group: "advanced",
|
|
304
|
-
...
|
|
304
|
+
...m({
|
|
305
305
|
properties: {
|
|
306
306
|
scripts: {
|
|
307
307
|
type: "string",
|
|
@@ -312,133 +312,43 @@ const ze = (e) => {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
})
|
|
315
|
-
},
|
|
316
|
-
e
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
u(Fe, {
|
|
320
|
-
type: "DarkModeButton",
|
|
321
|
-
label: "Dark Mode Button",
|
|
322
|
-
category: "core",
|
|
323
|
-
icon: G,
|
|
324
|
-
group: "advanced",
|
|
325
|
-
hidden: !0,
|
|
326
|
-
...p({
|
|
327
|
-
properties: {
|
|
328
|
-
mode: _("DarkModeSwitcher", "mode"),
|
|
329
|
-
styles: $("")
|
|
330
|
-
}
|
|
331
|
-
})
|
|
332
|
-
});
|
|
333
|
-
const qe = (e) => e.mode === "light" ? null : /* @__PURE__ */ i("button", { "aria-label": "light mode button", ...e.blockProps, ...e.styles, children: e.children });
|
|
334
|
-
u(qe, {
|
|
335
|
-
type: "LightModeButton",
|
|
336
|
-
label: "Light Mode Button",
|
|
337
|
-
category: "core",
|
|
338
|
-
icon: Q,
|
|
339
|
-
group: "advanced",
|
|
340
|
-
hidden: !0,
|
|
341
|
-
...p({
|
|
342
|
-
properties: {
|
|
343
|
-
mode: _("DarkModeSwitcher", "mode"),
|
|
344
|
-
styles: $(""),
|
|
345
|
-
fake: {
|
|
346
|
-
type: "string",
|
|
347
|
-
default: ""
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
})
|
|
351
|
-
});
|
|
352
|
-
const Ge = {
|
|
353
|
-
type: "DarkModeSwitcher",
|
|
354
|
-
label: "web_blocks.dark_mode",
|
|
355
|
-
category: "core",
|
|
356
|
-
icon: G,
|
|
357
|
-
group: "advanced",
|
|
358
|
-
wrapper: !0,
|
|
359
|
-
...p({
|
|
360
|
-
properties: {
|
|
361
|
-
mode: {
|
|
362
|
-
title: "Mode",
|
|
363
|
-
type: "string",
|
|
364
|
-
enum: ["dark", "light"],
|
|
365
|
-
default: "light"
|
|
366
|
-
},
|
|
367
|
-
styles: $("")
|
|
368
|
-
}
|
|
369
|
-
}),
|
|
370
|
-
blocks: () => [
|
|
371
|
-
{ _id: "ultqCh", _type: "DarkModeSwitcher", mode: "light", styles: "#styles:,", _name: "Dark Mode Theme" },
|
|
372
|
-
{
|
|
373
|
-
_id: "vroabi",
|
|
374
|
-
_parent: "ultqCh",
|
|
375
|
-
_type: "LightModeButton",
|
|
376
|
-
// @ts-ignore
|
|
377
|
-
styles_attrs: { type: "button", "x-on:click": "darkMode = 'dark'", "x-show": "darkMode === 'light'" },
|
|
378
|
-
styles: "#styles:,bg-white dark:bg-black font-medium text-gray-800 rounded-full hover:bg-gray-200 focus:outline-none focus:bg-gray-200 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
|
379
|
-
_name: "Dark Mode Btn"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
_id: "nltBrv",
|
|
383
|
-
_parent: "vroabi",
|
|
384
|
-
_type: "Icon",
|
|
385
|
-
styles: "#styles:, shrink-0 size-4",
|
|
386
|
-
icon: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'></path></svg>"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
_id: "gesydi",
|
|
390
|
-
_parent: "ultqCh",
|
|
391
|
-
_type: "DarkModeButton",
|
|
392
|
-
// @ts-ignore
|
|
393
|
-
styles_attrs: { type: "button", "x-on:click": "darkMode = 'light'", "x-show": "darkMode === 'dark'" },
|
|
394
|
-
styles: "#styles:,bg-white hidden dark:bg-black font-medium text-gray-800 rounded-full hover:bg-gray-200 focus:outline-none focus:bg-gray-200 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
|
395
|
-
_name: "Light Mode Btn"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
_id: "AdDwBC",
|
|
399
|
-
_parent: "gesydi",
|
|
400
|
-
_type: "Icon",
|
|
401
|
-
styles: "#styles:, shrink-0 size-4",
|
|
402
|
-
icon: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'></circle><path d='M12 2v2'></path><path d='M12 20v2'></path><path d='m4.93 4.93 1.41 1.41'></path><path d='m17.66 17.66 1.41 1.41'></path><path d='M2 12h2'></path><path d='M20 12h2'></path><path d='m6.34 17.66-1.41 1.41'></path><path d='m19.07 4.93-1.41 1.41'></path></svg>"
|
|
403
|
-
}
|
|
404
|
-
]
|
|
405
|
-
}, Ue = (e) => {
|
|
406
|
-
const { blockProps: t, styles: l } = e;
|
|
407
|
-
return I("hr", { ...l, ...t });
|
|
408
|
-
}, Oe = {
|
|
315
|
+
}, Ie = (e) => {
|
|
316
|
+
const { blockProps: l, styles: t } = e;
|
|
317
|
+
return L("hr", { ...t, ...l });
|
|
318
|
+
}, Ce = {
|
|
409
319
|
type: "Divider",
|
|
410
320
|
label: "web_blocks.divider",
|
|
411
321
|
category: "core",
|
|
412
|
-
icon:
|
|
322
|
+
icon: D,
|
|
413
323
|
group: "basic",
|
|
414
|
-
...
|
|
324
|
+
...m({
|
|
415
325
|
properties: {
|
|
416
|
-
styles:
|
|
326
|
+
styles: u("bg-gray-900 h-0.5 py-2 my-1")
|
|
417
327
|
}
|
|
418
328
|
})
|
|
419
|
-
},
|
|
420
|
-
const { blockProps:
|
|
421
|
-
return
|
|
329
|
+
}, Be = (e) => {
|
|
330
|
+
const { blockProps: l, inBuilder: t, children: n, globalBlock: o } = e;
|
|
331
|
+
return t && !o ? /* @__PURE__ */ b(
|
|
422
332
|
"div",
|
|
423
333
|
{
|
|
424
|
-
className: "flex flex-col items-center justify-center
|
|
425
|
-
...
|
|
334
|
+
className: "flex flex-col items-center justify-center gap-y-1 rounded-lg bg-gray-100 py-4 dark:bg-gray-800",
|
|
335
|
+
...l,
|
|
426
336
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ b("h1", { children: [
|
|
428
338
|
"Global Block - ",
|
|
429
|
-
|
|
339
|
+
o
|
|
430
340
|
] }),
|
|
431
341
|
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
432
342
|
]
|
|
433
343
|
}
|
|
434
|
-
) :
|
|
435
|
-
},
|
|
344
|
+
) : f.createElement("span", { ...l }, n);
|
|
345
|
+
}, _e = {
|
|
436
346
|
type: "GlobalBlock",
|
|
437
347
|
label: "Global Block",
|
|
438
|
-
icon:
|
|
348
|
+
icon: te,
|
|
439
349
|
category: "core",
|
|
440
|
-
group: "
|
|
441
|
-
...
|
|
350
|
+
group: "basic",
|
|
351
|
+
...m({
|
|
442
352
|
properties: {
|
|
443
353
|
globalBlock: {
|
|
444
354
|
type: "string",
|
|
@@ -450,29 +360,29 @@ const Ge = {
|
|
|
450
360
|
}
|
|
451
361
|
}
|
|
452
362
|
})
|
|
453
|
-
},
|
|
454
|
-
const { blockProps:
|
|
455
|
-
if (
|
|
456
|
-
return /* @__PURE__ */ i(
|
|
457
|
-
const
|
|
458
|
-
return
|
|
459
|
-
...
|
|
460
|
-
...
|
|
363
|
+
}, Pe = (e) => {
|
|
364
|
+
const { blockProps: l, icon: t, styles: n, width: o, inBuilder: r, height: s } = e, a = _(n, "");
|
|
365
|
+
if (w(t))
|
|
366
|
+
return /* @__PURE__ */ i(v, { inBuilder: r, className: "h-8 w-14" });
|
|
367
|
+
const c = t.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
368
|
+
return f.createElement("span", {
|
|
369
|
+
...l,
|
|
370
|
+
...a,
|
|
461
371
|
style: {
|
|
462
|
-
width:
|
|
463
|
-
height:
|
|
372
|
+
width: o ? `${o}px` : "auto",
|
|
373
|
+
height: s ? `${s}px` : "auto"
|
|
464
374
|
},
|
|
465
|
-
dangerouslySetInnerHTML: { __html:
|
|
375
|
+
dangerouslySetInnerHTML: { __html: c }
|
|
466
376
|
});
|
|
467
|
-
},
|
|
377
|
+
}, Se = {
|
|
468
378
|
type: "Icon",
|
|
469
379
|
label: "web_blocks.icon",
|
|
470
380
|
category: "core",
|
|
471
|
-
icon:
|
|
381
|
+
icon: q,
|
|
472
382
|
group: "media",
|
|
473
|
-
...
|
|
383
|
+
...m({
|
|
474
384
|
properties: {
|
|
475
|
-
styles:
|
|
385
|
+
styles: u(""),
|
|
476
386
|
icon: {
|
|
477
387
|
type: "string",
|
|
478
388
|
title: "Icon",
|
|
@@ -491,32 +401,32 @@ const Ge = {
|
|
|
491
401
|
}
|
|
492
402
|
}
|
|
493
403
|
})
|
|
494
|
-
},
|
|
495
|
-
const { blockProps:
|
|
496
|
-
return
|
|
404
|
+
}, Ne = (e) => {
|
|
405
|
+
const { blockProps: l, image: t, mobileImage: n, styles: o, alt: r, height: s, width: a, lazyLoading: c } = e;
|
|
406
|
+
return w(t) ? /* @__PURE__ */ i(v, { className: "h-36" }) : /* @__PURE__ */ b("picture", { children: [
|
|
497
407
|
n && /* @__PURE__ */ i("source", { srcSet: n, media: "(max-width: 480px)" }),
|
|
498
408
|
/* @__PURE__ */ i(
|
|
499
409
|
"img",
|
|
500
410
|
{
|
|
501
|
-
...
|
|
502
|
-
...
|
|
503
|
-
src:
|
|
504
|
-
alt:
|
|
505
|
-
loading:
|
|
506
|
-
width:
|
|
507
|
-
height:
|
|
411
|
+
...l,
|
|
412
|
+
...o,
|
|
413
|
+
src: t,
|
|
414
|
+
alt: r,
|
|
415
|
+
loading: c ? "lazy" : "eager",
|
|
416
|
+
width: a,
|
|
417
|
+
height: s
|
|
508
418
|
}
|
|
509
419
|
)
|
|
510
420
|
] });
|
|
511
|
-
},
|
|
421
|
+
}, Me = {
|
|
512
422
|
type: "Image",
|
|
513
423
|
label: "Image",
|
|
514
424
|
category: "core",
|
|
515
|
-
icon:
|
|
425
|
+
icon: $,
|
|
516
426
|
group: "media",
|
|
517
|
-
...
|
|
427
|
+
...m({
|
|
518
428
|
properties: {
|
|
519
|
-
styles:
|
|
429
|
+
styles: u(""),
|
|
520
430
|
image: {
|
|
521
431
|
type: "string",
|
|
522
432
|
title: "Image",
|
|
@@ -556,34 +466,34 @@ const Ge = {
|
|
|
556
466
|
}),
|
|
557
467
|
aiProps: ["alt"],
|
|
558
468
|
i18nProps: ["alt"]
|
|
559
|
-
},
|
|
560
|
-
const { blockProps:
|
|
561
|
-
if (!
|
|
562
|
-
return /* @__PURE__ */ i(
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
565
|
-
...
|
|
566
|
-
...
|
|
567
|
-
dangerouslySetInnerHTML: { __html:
|
|
469
|
+
}, Te = (e) => {
|
|
470
|
+
const { blockProps: l, children: t, styles: n, inBuilder: o, content: r, href: s } = e, { hrefType: a, autoplay: c, maxWidth: y, backdropColor: g, galleryName: k } = e, p = _(n, "cb-lightbox vbox-item");
|
|
471
|
+
if (!t && w(n == null ? void 0 : n.className) && w(r))
|
|
472
|
+
return /* @__PURE__ */ i(v, { inBuilder: o });
|
|
473
|
+
if (o)
|
|
474
|
+
return t ? /* @__PURE__ */ i("span", { ...l, ...p, children: t }) : L("span", {
|
|
475
|
+
...l,
|
|
476
|
+
...p,
|
|
477
|
+
dangerouslySetInnerHTML: { __html: r }
|
|
568
478
|
});
|
|
569
|
-
const
|
|
570
|
-
return
|
|
571
|
-
...
|
|
572
|
-
...
|
|
573
|
-
...
|
|
574
|
-
href:
|
|
575
|
-
dangerouslySetInnerHTML: { __html:
|
|
576
|
-
"aria-label":
|
|
479
|
+
const x = {};
|
|
480
|
+
return a !== "image" && (x["data-vbtype"] = a), c && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"), g && (x["data-overlay"] = g), k && (x["data-gall"] = k), t ? /* @__PURE__ */ i("a", { "aria-label": r, ...x, href: s || "#/", ...l, ...p, children: t }) : L("a", {
|
|
481
|
+
...l,
|
|
482
|
+
...p,
|
|
483
|
+
...x,
|
|
484
|
+
href: s || "#",
|
|
485
|
+
dangerouslySetInnerHTML: { __html: r },
|
|
486
|
+
"aria-label": r
|
|
577
487
|
});
|
|
578
|
-
},
|
|
488
|
+
}, $e = {
|
|
579
489
|
type: "LightBoxLink",
|
|
580
490
|
label: "Lightbox Link",
|
|
581
491
|
category: "core",
|
|
582
|
-
icon:
|
|
492
|
+
icon: $,
|
|
583
493
|
group: "basic",
|
|
584
|
-
...
|
|
494
|
+
...m({
|
|
585
495
|
properties: {
|
|
586
|
-
styles:
|
|
496
|
+
styles: u(""),
|
|
587
497
|
content: {
|
|
588
498
|
type: "string",
|
|
589
499
|
title: "Content",
|
|
@@ -629,37 +539,37 @@ const Ge = {
|
|
|
629
539
|
i18nProps: ["content"],
|
|
630
540
|
aiProps: ["content"],
|
|
631
541
|
canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
|
|
632
|
-
},
|
|
633
|
-
const { blockProps:
|
|
634
|
-
let
|
|
635
|
-
return !n &&
|
|
542
|
+
}, Ee = (e) => {
|
|
543
|
+
const { blockProps: l, link: t, children: n, styles: o, inBuilder: r, content: s } = e;
|
|
544
|
+
let a = {};
|
|
545
|
+
return !n && w(s) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), r ? n ? /* @__PURE__ */ i("span", { ...l, style: a, ...o, children: n }) : L(
|
|
636
546
|
"span",
|
|
637
547
|
{
|
|
638
|
-
...
|
|
639
|
-
...
|
|
640
|
-
style:
|
|
548
|
+
...l,
|
|
549
|
+
...o,
|
|
550
|
+
style: a
|
|
641
551
|
},
|
|
642
|
-
|
|
643
|
-
) : n ? /* @__PURE__ */ i("a", { "aria-label":
|
|
552
|
+
s
|
|
553
|
+
) : n ? /* @__PURE__ */ i("a", { "aria-label": s, href: (t == null ? void 0 : t.href) || "#/", target: t == null ? void 0 : t.target, ...l, ...o, children: n }) : L(
|
|
644
554
|
"a",
|
|
645
555
|
{
|
|
646
|
-
...
|
|
647
|
-
...
|
|
648
|
-
href: (
|
|
649
|
-
target: (
|
|
650
|
-
"aria-label":
|
|
556
|
+
...l,
|
|
557
|
+
...o,
|
|
558
|
+
href: (t == null ? void 0 : t.href) || "#",
|
|
559
|
+
target: (t == null ? void 0 : t.target) || "_self",
|
|
560
|
+
"aria-label": s
|
|
651
561
|
},
|
|
652
|
-
|
|
562
|
+
s
|
|
653
563
|
);
|
|
654
|
-
},
|
|
564
|
+
}, Re = {
|
|
655
565
|
type: "Link",
|
|
656
566
|
label: "Link",
|
|
657
567
|
category: "core",
|
|
658
|
-
icon:
|
|
568
|
+
icon: G,
|
|
659
569
|
group: "basic",
|
|
660
|
-
...
|
|
570
|
+
...m({
|
|
661
571
|
properties: {
|
|
662
|
-
styles:
|
|
572
|
+
styles: u(""),
|
|
663
573
|
content: {
|
|
664
574
|
type: "string",
|
|
665
575
|
default: "Link goes here",
|
|
@@ -686,22 +596,22 @@ const Ge = {
|
|
|
686
596
|
aiProps: ["content"],
|
|
687
597
|
i18nProps: ["content"],
|
|
688
598
|
canAcceptBlock: (e) => e !== "Link"
|
|
689
|
-
},
|
|
690
|
-
const { blockProps:
|
|
691
|
-
return !
|
|
692
|
-
|
|
693
|
-
{ ...
|
|
694
|
-
|
|
599
|
+
}, Ae = (e) => {
|
|
600
|
+
const { blockProps: l, children: t, listType: n, styles: o, tag: r, inBuilder: s } = e, a = C(h(o, "className", ""), n);
|
|
601
|
+
return !t && w(o == null ? void 0 : o.className) ? /* @__PURE__ */ i(v, { inBuilder: s }) : f.createElement(
|
|
602
|
+
r || (n === "list-decimal" ? "ol" : "ul"),
|
|
603
|
+
{ ...l, ...o, className: a },
|
|
604
|
+
t
|
|
695
605
|
);
|
|
696
|
-
},
|
|
606
|
+
}, He = {
|
|
697
607
|
type: "List",
|
|
698
608
|
label: "web_blocks.list",
|
|
699
|
-
icon:
|
|
609
|
+
icon: U,
|
|
700
610
|
category: "core",
|
|
701
611
|
group: "basic",
|
|
702
|
-
...
|
|
612
|
+
...m({
|
|
703
613
|
properties: {
|
|
704
|
-
styles:
|
|
614
|
+
styles: u(""),
|
|
705
615
|
listType: {
|
|
706
616
|
type: "string",
|
|
707
617
|
title: "List Type",
|
|
@@ -739,22 +649,22 @@ const Ge = {
|
|
|
739
649
|
content: "Item 3"
|
|
740
650
|
}
|
|
741
651
|
]
|
|
742
|
-
},
|
|
743
|
-
const { blockProps:
|
|
744
|
-
return
|
|
652
|
+
}, ze = (e) => {
|
|
653
|
+
const { blockProps: l, content: t, styles: n, children: o, tag: r } = e;
|
|
654
|
+
return o ? f.createElement(r || "li", { ...n, ...l }, o) : f.createElement(r || "li", {
|
|
745
655
|
...n,
|
|
746
|
-
...
|
|
747
|
-
dangerouslySetInnerHTML: { __html:
|
|
656
|
+
...l,
|
|
657
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
748
658
|
});
|
|
749
|
-
},
|
|
659
|
+
}, Fe = {
|
|
750
660
|
type: "ListItem",
|
|
751
661
|
label: "List Item",
|
|
752
|
-
icon:
|
|
662
|
+
icon: V,
|
|
753
663
|
category: "core",
|
|
754
664
|
group: "basic",
|
|
755
|
-
...
|
|
665
|
+
...m({
|
|
756
666
|
properties: {
|
|
757
|
-
styles:
|
|
667
|
+
styles: u(""),
|
|
758
668
|
content: {
|
|
759
669
|
type: "string",
|
|
760
670
|
default: "List item",
|
|
@@ -769,16 +679,16 @@ const Ge = {
|
|
|
769
679
|
aiProps: ["content"],
|
|
770
680
|
canAcceptBlock: (e) => e !== "ListItem",
|
|
771
681
|
canBeNested: (e) => e === "List"
|
|
772
|
-
},
|
|
682
|
+
}, je = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, De = {
|
|
773
683
|
type: "Text",
|
|
774
684
|
label: "Text",
|
|
775
685
|
hidden: !0,
|
|
776
686
|
category: "core",
|
|
777
687
|
group: "typography",
|
|
778
|
-
icon:
|
|
779
|
-
...
|
|
688
|
+
icon: O,
|
|
689
|
+
...m({
|
|
780
690
|
properties: {
|
|
781
|
-
styles:
|
|
691
|
+
styles: u("text-black"),
|
|
782
692
|
content: {
|
|
783
693
|
type: "string",
|
|
784
694
|
default: ""
|
|
@@ -787,60 +697,60 @@ const Ge = {
|
|
|
787
697
|
}),
|
|
788
698
|
aiProps: ["content"],
|
|
789
699
|
i18nProps: ["content"]
|
|
790
|
-
},
|
|
791
|
-
if (
|
|
792
|
-
const
|
|
793
|
-
return
|
|
700
|
+
}, 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) => {
|
|
701
|
+
if (S.test(e)) {
|
|
702
|
+
const l = e.match(S);
|
|
703
|
+
return l ? `https://www.youtube.com/embed/${l[4]}` : e;
|
|
794
704
|
}
|
|
795
|
-
if (
|
|
796
|
-
const
|
|
797
|
-
return
|
|
705
|
+
if (N.test(e)) {
|
|
706
|
+
const l = e.match(N);
|
|
707
|
+
return l ? `https://player.vimeo.com/video/${l[3]}` : e;
|
|
798
708
|
}
|
|
799
|
-
if (
|
|
800
|
-
const
|
|
801
|
-
return
|
|
709
|
+
if (M.test(e)) {
|
|
710
|
+
const l = e.match(M);
|
|
711
|
+
return l ? `https://www.dailymotion.com/embed/video/${l[4]}` : e;
|
|
802
712
|
}
|
|
803
713
|
return null;
|
|
804
|
-
},
|
|
805
|
-
const { blockProps:
|
|
806
|
-
if (
|
|
807
|
-
let
|
|
808
|
-
if (
|
|
809
|
-
if (!
|
|
810
|
-
const
|
|
811
|
-
|
|
714
|
+
}, Ge = f.memo((e) => {
|
|
715
|
+
const { blockProps: l, inBuilder: t, styles: n, url: o, controls: r } = e, s = h(r, "autoPlay", !1), a = h(r, "controls", !1), c = s || h(r, "muted", !0), y = h(r, "loop", !1);
|
|
716
|
+
if (w(o)) return /* @__PURE__ */ i(v, { inBuilder: t, className: "h-36" });
|
|
717
|
+
let g = qe(o), k = null;
|
|
718
|
+
if (g) {
|
|
719
|
+
if (!w(g)) {
|
|
720
|
+
const p = [];
|
|
721
|
+
p.push(`autoplay=${s ? 1 : 0}`), p.push(`controls=${r ? 1 : 0}`), p.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), p.push(`loop=${y ? 1 : 0}`), g = `${g}?${p.join("&")}`;
|
|
812
722
|
}
|
|
813
|
-
|
|
814
|
-
...
|
|
723
|
+
k = f.createElement("iframe", {
|
|
724
|
+
...l,
|
|
815
725
|
className: "absolute inset-0 w-full h-full",
|
|
816
|
-
src:
|
|
817
|
-
allow:
|
|
726
|
+
src: g,
|
|
727
|
+
allow: t ? "" : "autoplay *; fullscreen *",
|
|
818
728
|
allowFullScreen: !0,
|
|
819
729
|
frameBorder: 0
|
|
820
730
|
});
|
|
821
731
|
} else
|
|
822
|
-
|
|
823
|
-
...
|
|
732
|
+
k = f.createElement("video", {
|
|
733
|
+
...l,
|
|
824
734
|
className: "absolute inset-0 w-full h-full",
|
|
825
|
-
src:
|
|
826
|
-
controls:
|
|
827
|
-
muted:
|
|
828
|
-
autoPlay:
|
|
829
|
-
loop:
|
|
735
|
+
src: o,
|
|
736
|
+
controls: a,
|
|
737
|
+
muted: c,
|
|
738
|
+
autoPlay: t ? !1 : s,
|
|
739
|
+
loop: y
|
|
830
740
|
});
|
|
831
|
-
return /* @__PURE__ */ i("div", { ...
|
|
832
|
-
|
|
833
|
-
|
|
741
|
+
return /* @__PURE__ */ i("div", { ...Q(n, ["className"]), children: /* @__PURE__ */ b("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
742
|
+
t ? /* @__PURE__ */ i("div", { ...l, ...ee(n, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
743
|
+
k
|
|
834
744
|
] }) });
|
|
835
|
-
}),
|
|
745
|
+
}), Ue = {
|
|
836
746
|
type: "Video",
|
|
837
747
|
label: "Video",
|
|
838
748
|
category: "core",
|
|
839
|
-
icon:
|
|
749
|
+
icon: W,
|
|
840
750
|
group: "media",
|
|
841
|
-
...
|
|
751
|
+
...m({
|
|
842
752
|
properties: {
|
|
843
|
-
styles:
|
|
753
|
+
styles: u(""),
|
|
844
754
|
url: {
|
|
845
755
|
type: "string",
|
|
846
756
|
title: "Video URL",
|
|
@@ -881,152 +791,43 @@ const Ge = {
|
|
|
881
791
|
}
|
|
882
792
|
}),
|
|
883
793
|
i18nProps: ["url"]
|
|
884
|
-
},
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
menu: {
|
|
888
|
-
"x-show": "open",
|
|
889
|
-
"x-on:click": "open = false",
|
|
890
|
-
"x-on:click.away": "open = false",
|
|
891
|
-
"x-cloak": "",
|
|
892
|
-
"x-transition": ""
|
|
893
|
-
}
|
|
894
|
-
}, ut = (e) => {
|
|
895
|
-
const { blockProps: t, content: l, icon: n, iconWidth: r, iconHeight: o, styles: a, show: c } = e;
|
|
896
|
-
return /* @__PURE__ */ k("button", { "aria-label": l, ...t, ...a, ...A.button, children: [
|
|
897
|
-
l,
|
|
898
|
-
/* @__PURE__ */ i(
|
|
899
|
-
"span",
|
|
900
|
-
{
|
|
901
|
-
className: c ? "rotate-180" : "",
|
|
902
|
-
dangerouslySetInnerHTML: { __html: n },
|
|
903
|
-
style: { width: r, height: o }
|
|
904
|
-
}
|
|
905
|
-
)
|
|
906
|
-
] });
|
|
907
|
-
};
|
|
908
|
-
u(ut, {
|
|
909
|
-
type: "DropdownButton",
|
|
910
|
-
label: "Dropdown Button",
|
|
911
|
-
group: "advanced",
|
|
912
|
-
category: "core",
|
|
913
|
-
hidden: !0,
|
|
914
|
-
canMove: () => !1,
|
|
915
|
-
canDelete: () => !1,
|
|
916
|
-
...p({
|
|
917
|
-
properties: {
|
|
918
|
-
show: _("Dropdown", "showDropdown"),
|
|
919
|
-
content: { type: "string", title: "Title", default: "Menu Item" },
|
|
920
|
-
icon: { type: "string", title: "Icon", default: "", ui: { "ui:widget": "icon" } },
|
|
921
|
-
iconWidth: { type: "string", title: "Icon Width", default: "16px" },
|
|
922
|
-
iconHeight: { type: "string", title: "Icon Height", default: "16px" },
|
|
923
|
-
styles: d("flex items-center gap-2 px-4 py-1")
|
|
924
|
-
}
|
|
925
|
-
}),
|
|
926
|
-
i18nProps: ["content"],
|
|
927
|
-
aiProps: ["content"]
|
|
928
|
-
});
|
|
929
|
-
const pt = (e) => {
|
|
930
|
-
const { blockProps: t, children: l, styles: n, show: r, inBuilder: o } = e;
|
|
931
|
-
return o && !r ? null : /* @__PURE__ */ i("div", { ...t, ...A.menu, ...n, children: l });
|
|
932
|
-
};
|
|
933
|
-
u(pt, {
|
|
934
|
-
type: "DropdownContent",
|
|
935
|
-
label: "Dropdown Content",
|
|
936
|
-
group: "basic",
|
|
937
|
-
hidden: !0,
|
|
938
|
-
canMove: () => !1,
|
|
939
|
-
canDelete: () => !1,
|
|
940
|
-
canAcceptBlock: () => !0,
|
|
941
|
-
...p({
|
|
942
|
-
properties: {
|
|
943
|
-
show: _("Dropdown", "showDropdown"),
|
|
944
|
-
styles: d("absolute left-0 p-2 w-80 mt-2 bg-white rounded-lg shadow-lg z-50")
|
|
945
|
-
}
|
|
946
|
-
})
|
|
947
|
-
});
|
|
948
|
-
const yt = (e) => {
|
|
949
|
-
const { blockProps: t, children: l, styles: n } = e;
|
|
950
|
-
return /* @__PURE__ */ i("div", { ...t, ...n, ...A.wrapper, children: l });
|
|
951
|
-
}, gt = {
|
|
952
|
-
type: "Dropdown",
|
|
953
|
-
label: "Dropdown",
|
|
954
|
-
group: "basic",
|
|
955
|
-
icon: O,
|
|
956
|
-
blocks: () => [
|
|
957
|
-
{ _type: "Dropdown", _id: "dropdown" },
|
|
958
|
-
{
|
|
959
|
-
_type: "DropdownButton",
|
|
960
|
-
_id: "button",
|
|
961
|
-
_parent: "dropdown",
|
|
962
|
-
title: "Menu Item",
|
|
963
|
-
icon: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24"> <path d="M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z"/> </svg>',
|
|
964
|
-
styles: "#styles:,flex items-center gap-2 px-4 py-1"
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
_type: "DropdownContent",
|
|
968
|
-
_id: "content",
|
|
969
|
-
_parent: "dropdown",
|
|
970
|
-
styles: "#styles:,absolute left-0 w-80 mt-0.5 bg-white rounded-lg shadow-lg z-50"
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
_type: "Link",
|
|
974
|
-
_id: "link",
|
|
975
|
-
_parent: "content",
|
|
976
|
-
content: "Link",
|
|
977
|
-
styles: "#styles:,flex items-center gap-2 px-4 py-1",
|
|
978
|
-
link: { href: "https://www.google.com", type: "url", target: "_self" }
|
|
979
|
-
}
|
|
980
|
-
],
|
|
981
|
-
category: "core",
|
|
982
|
-
wrapper: !0,
|
|
983
|
-
...p({
|
|
984
|
-
properties: {
|
|
985
|
-
showDropdown: F({
|
|
986
|
-
type: "boolean",
|
|
987
|
-
title: "Show Dropdown",
|
|
988
|
-
default: !1
|
|
989
|
-
}),
|
|
990
|
-
styles: d("relative w-max")
|
|
991
|
-
}
|
|
992
|
-
})
|
|
993
|
-
}, mt = (e) => {
|
|
994
|
-
const { blockProps: t, fieldName: l, label: n, styles: r, inputStyles: o, required: a, checked: c, showLabel: s = !0 } = e, g = C();
|
|
995
|
-
return s ? /* @__PURE__ */ k("div", { ...r, ...t, children: [
|
|
794
|
+
}, Ve = (e) => {
|
|
795
|
+
const { blockProps: l, fieldName: t, label: n, styles: o, inputStyles: r, required: s, checked: a, showLabel: c = !0 } = e, y = I();
|
|
796
|
+
return c ? /* @__PURE__ */ b("div", { ...o, ...l, children: [
|
|
996
797
|
/* @__PURE__ */ i(
|
|
997
798
|
"input",
|
|
998
799
|
{
|
|
999
|
-
...
|
|
1000
|
-
name:
|
|
1001
|
-
id:
|
|
800
|
+
...r,
|
|
801
|
+
name: t,
|
|
802
|
+
id: y,
|
|
1002
803
|
type: "checkbox",
|
|
1003
|
-
required:
|
|
1004
|
-
defaultChecked:
|
|
804
|
+
required: s,
|
|
805
|
+
defaultChecked: a
|
|
1005
806
|
}
|
|
1006
807
|
),
|
|
1007
|
-
n && /* @__PURE__ */ i("label", { htmlFor:
|
|
808
|
+
n && /* @__PURE__ */ i("label", { htmlFor: y, children: n })
|
|
1008
809
|
] }) : /* @__PURE__ */ i(
|
|
1009
810
|
"input",
|
|
1010
811
|
{
|
|
1011
|
-
id:
|
|
1012
|
-
...
|
|
1013
|
-
...o,
|
|
812
|
+
id: y,
|
|
813
|
+
...l,
|
|
1014
814
|
...r,
|
|
815
|
+
...o,
|
|
1015
816
|
type: "checkbox",
|
|
1016
|
-
required:
|
|
1017
|
-
name:
|
|
817
|
+
required: s,
|
|
818
|
+
name: t
|
|
1018
819
|
}
|
|
1019
820
|
);
|
|
1020
|
-
},
|
|
821
|
+
}, Oe = {
|
|
1021
822
|
type: "Checkbox",
|
|
1022
823
|
label: "web_blocks.checkbox",
|
|
1023
824
|
category: "core",
|
|
1024
|
-
icon:
|
|
825
|
+
icon: X,
|
|
1025
826
|
group: "form",
|
|
1026
|
-
...
|
|
827
|
+
...m({
|
|
1027
828
|
properties: {
|
|
1028
|
-
styles:
|
|
1029
|
-
inputStyles:
|
|
829
|
+
styles: u("flex items-center gap-x-2"),
|
|
830
|
+
inputStyles: u(""),
|
|
1030
831
|
fieldName: {
|
|
1031
832
|
type: "string",
|
|
1032
833
|
title: "Field Name",
|
|
@@ -1056,10 +857,10 @@ const yt = (e) => {
|
|
|
1056
857
|
}),
|
|
1057
858
|
aiProps: ["label"],
|
|
1058
859
|
i18nProps: ["label"]
|
|
1059
|
-
},
|
|
1060
|
-
const { children:
|
|
1061
|
-
let
|
|
1062
|
-
return
|
|
860
|
+
}, We = (e) => {
|
|
861
|
+
const { children: l, blockProps: t, errorMessage: n, successMessage: o, action: r, styles: s, inBuilder: a } = e;
|
|
862
|
+
let c = l;
|
|
863
|
+
return l || (c = /* @__PURE__ */ i(v, { inBuilder: a })), /* @__PURE__ */ b(
|
|
1063
864
|
"form",
|
|
1064
865
|
{
|
|
1065
866
|
...{
|
|
@@ -1067,25 +868,25 @@ const yt = (e) => {
|
|
|
1067
868
|
"x-on:submit.prevent": "post"
|
|
1068
869
|
},
|
|
1069
870
|
"data-error": n,
|
|
1070
|
-
"data-success":
|
|
871
|
+
"data-success": o,
|
|
1071
872
|
method: "post",
|
|
1072
|
-
action:
|
|
1073
|
-
...
|
|
1074
|
-
...
|
|
873
|
+
action: r,
|
|
874
|
+
...t,
|
|
875
|
+
...s,
|
|
1075
876
|
children: [
|
|
1076
877
|
/* @__PURE__ */ i("div", { ...{
|
|
1077
878
|
"x-html": "",
|
|
1078
879
|
":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
|
|
1079
880
|
} }),
|
|
1080
|
-
|
|
881
|
+
c
|
|
1081
882
|
]
|
|
1082
883
|
}
|
|
1083
884
|
);
|
|
1084
|
-
},
|
|
885
|
+
}, Xe = {
|
|
1085
886
|
type: "Form",
|
|
1086
887
|
label: "Form",
|
|
1087
888
|
category: "core",
|
|
1088
|
-
icon:
|
|
889
|
+
icon: le,
|
|
1089
890
|
group: "form",
|
|
1090
891
|
blocks: () => [
|
|
1091
892
|
{ _type: "Form", _id: "form", styles: "#styles:p-1 space-y-2," },
|
|
@@ -1097,9 +898,9 @@ const yt = (e) => {
|
|
|
1097
898
|
styles: "#styles:bg-black text-white rounded px-3 py-1,"
|
|
1098
899
|
}
|
|
1099
900
|
],
|
|
1100
|
-
...
|
|
901
|
+
...m({
|
|
1101
902
|
properties: {
|
|
1102
|
-
styles:
|
|
903
|
+
styles: u(""),
|
|
1103
904
|
action: {
|
|
1104
905
|
type: "string",
|
|
1105
906
|
title: "Submit URL",
|
|
@@ -1122,45 +923,45 @@ const yt = (e) => {
|
|
|
1122
923
|
i18nProps: ["errorMessage", "successMessage"],
|
|
1123
924
|
aiProps: ["errorMessage", "successMessage"],
|
|
1124
925
|
canAcceptBlock: () => !0
|
|
1125
|
-
},
|
|
1126
|
-
const { blockProps:
|
|
1127
|
-
return /* @__PURE__ */
|
|
926
|
+
}, Ye = (e) => {
|
|
927
|
+
const { blockProps: l, inBuilder: t, label: n, styles: o, inputStyles: r, icon: s, iconSize: a, iconPos: c } = e, y = I();
|
|
928
|
+
return /* @__PURE__ */ b(
|
|
1128
929
|
"button",
|
|
1129
930
|
{
|
|
1130
|
-
id:
|
|
931
|
+
id: y,
|
|
1131
932
|
...{
|
|
1132
933
|
"x-bind:disabled": "formLoading"
|
|
1133
934
|
},
|
|
1134
|
-
...o,
|
|
1135
935
|
...r,
|
|
1136
|
-
...
|
|
1137
|
-
|
|
936
|
+
...o,
|
|
937
|
+
...l || {},
|
|
938
|
+
type: t ? "button" : "submit",
|
|
1138
939
|
"aria-label": n,
|
|
1139
940
|
children: [
|
|
1140
941
|
n,
|
|
1141
|
-
|
|
942
|
+
s && /* @__PURE__ */ i(
|
|
1142
943
|
"div",
|
|
1143
944
|
{
|
|
1144
|
-
style: { width:
|
|
1145
|
-
className:
|
|
1146
|
-
dangerouslySetInnerHTML: { __html:
|
|
945
|
+
style: { width: a + "px" },
|
|
946
|
+
className: c + " " + (c === "order-first" ? "mr-2" : "ml-2") || "",
|
|
947
|
+
dangerouslySetInnerHTML: { __html: s }
|
|
1147
948
|
}
|
|
1148
949
|
)
|
|
1149
950
|
]
|
|
1150
951
|
}
|
|
1151
952
|
);
|
|
1152
|
-
},
|
|
953
|
+
}, Ze = {
|
|
1153
954
|
type: "FormButton",
|
|
1154
955
|
label: "Submit Button",
|
|
1155
956
|
category: "core",
|
|
1156
|
-
icon:
|
|
957
|
+
icon: T,
|
|
1157
958
|
group: "form",
|
|
1158
|
-
...
|
|
959
|
+
...m({
|
|
1159
960
|
properties: {
|
|
1160
|
-
styles:
|
|
961
|
+
styles: u(
|
|
1161
962
|
"text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
1162
963
|
),
|
|
1163
|
-
inputStyles:
|
|
964
|
+
inputStyles: u(""),
|
|
1164
965
|
label: {
|
|
1165
966
|
type: "string",
|
|
1166
967
|
title: "Label",
|
|
@@ -1189,44 +990,44 @@ const yt = (e) => {
|
|
|
1189
990
|
}),
|
|
1190
991
|
i18nProps: ["label"],
|
|
1191
992
|
aiProps: ["label"]
|
|
1192
|
-
},
|
|
1193
|
-
const { blockProps:
|
|
1194
|
-
return
|
|
1195
|
-
|
|
993
|
+
}, Je = (e) => {
|
|
994
|
+
const { blockProps: l, fieldName: t, label: n, placeholder: o, styles: r, inputStyles: s, showLabel: a, required: c, inputType: y } = e, g = I();
|
|
995
|
+
return a ? /* @__PURE__ */ b("div", { ...r, ...l, children: [
|
|
996
|
+
a && /* @__PURE__ */ i("label", { htmlFor: g, children: n }),
|
|
1196
997
|
/* @__PURE__ */ i(
|
|
1197
998
|
"input",
|
|
1198
999
|
{
|
|
1199
|
-
name:
|
|
1200
|
-
...
|
|
1201
|
-
id:
|
|
1202
|
-
type:
|
|
1203
|
-
placeholder:
|
|
1204
|
-
required:
|
|
1000
|
+
name: t,
|
|
1001
|
+
...s,
|
|
1002
|
+
id: g,
|
|
1003
|
+
type: y,
|
|
1004
|
+
placeholder: o,
|
|
1005
|
+
required: c
|
|
1205
1006
|
}
|
|
1206
1007
|
)
|
|
1207
1008
|
] }) : /* @__PURE__ */ i(
|
|
1208
1009
|
"input",
|
|
1209
1010
|
{
|
|
1210
|
-
id:
|
|
1211
|
-
name:
|
|
1212
|
-
...
|
|
1213
|
-
...
|
|
1214
|
-
...
|
|
1215
|
-
type:
|
|
1216
|
-
placeholder:
|
|
1217
|
-
required:
|
|
1011
|
+
id: g,
|
|
1012
|
+
name: t,
|
|
1013
|
+
...l,
|
|
1014
|
+
...s,
|
|
1015
|
+
...r,
|
|
1016
|
+
type: y,
|
|
1017
|
+
placeholder: o,
|
|
1018
|
+
required: c
|
|
1218
1019
|
}
|
|
1219
1020
|
);
|
|
1220
|
-
},
|
|
1021
|
+
}, Ke = {
|
|
1221
1022
|
type: "Input",
|
|
1222
1023
|
label: "web_blocks.input",
|
|
1223
1024
|
category: "core",
|
|
1224
|
-
icon:
|
|
1025
|
+
icon: E,
|
|
1225
1026
|
group: "form",
|
|
1226
|
-
...
|
|
1027
|
+
...m({
|
|
1227
1028
|
properties: {
|
|
1228
|
-
styles:
|
|
1229
|
-
inputStyles:
|
|
1029
|
+
styles: u(""),
|
|
1030
|
+
inputStyles: u("w-full p-1"),
|
|
1230
1031
|
fieldName: {
|
|
1231
1032
|
type: "string",
|
|
1232
1033
|
title: "Field Name",
|
|
@@ -1277,21 +1078,21 @@ const yt = (e) => {
|
|
|
1277
1078
|
}),
|
|
1278
1079
|
aiProps: ["label", "placeholder"],
|
|
1279
1080
|
i18nProps: ["label", "placeholder"]
|
|
1280
|
-
},
|
|
1281
|
-
const { blockProps:
|
|
1282
|
-
return
|
|
1283
|
-
...
|
|
1284
|
-
dangerouslySetInnerHTML: { __html:
|
|
1081
|
+
}, Qe = (e) => {
|
|
1082
|
+
const { blockProps: l, content: t, styles: n, children: o } = e, r = { ...n, ...l };
|
|
1083
|
+
return o ? f.createElement("label", r, o) : f.createElement("label", {
|
|
1084
|
+
...r,
|
|
1085
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1285
1086
|
});
|
|
1286
|
-
},
|
|
1087
|
+
}, et = {
|
|
1287
1088
|
type: "Label",
|
|
1288
1089
|
label: "Label",
|
|
1289
1090
|
category: "core",
|
|
1290
|
-
icon:
|
|
1091
|
+
icon: Y,
|
|
1291
1092
|
group: "form",
|
|
1292
|
-
...
|
|
1093
|
+
...m({
|
|
1293
1094
|
properties: {
|
|
1294
|
-
styles:
|
|
1095
|
+
styles: u(),
|
|
1295
1096
|
content: {
|
|
1296
1097
|
type: "string",
|
|
1297
1098
|
title: "Content",
|
|
@@ -1301,34 +1102,34 @@ const yt = (e) => {
|
|
|
1301
1102
|
}),
|
|
1302
1103
|
aiProps: ["content"],
|
|
1303
1104
|
i18nProps: ["content"]
|
|
1304
|
-
},
|
|
1305
|
-
const { blockProps:
|
|
1306
|
-
return
|
|
1307
|
-
/* @__PURE__ */ i("input", { ...
|
|
1308
|
-
n && /* @__PURE__ */ i("label", { htmlFor:
|
|
1105
|
+
}, tt = (e) => {
|
|
1106
|
+
const { blockProps: l, fieldName: t, label: n, styles: o, inputStyles: r, required: s, checked: a, showLabel: c = !0 } = e, y = I();
|
|
1107
|
+
return c ? /* @__PURE__ */ b("div", { ...o, ...l, children: [
|
|
1108
|
+
/* @__PURE__ */ i("input", { ...r, name: t, id: y, type: "radio", required: s, defaultChecked: a }),
|
|
1109
|
+
n && /* @__PURE__ */ i("label", { htmlFor: y, children: n })
|
|
1309
1110
|
] }) : /* @__PURE__ */ i(
|
|
1310
1111
|
"input",
|
|
1311
1112
|
{
|
|
1312
|
-
id:
|
|
1313
|
-
...
|
|
1314
|
-
...o,
|
|
1113
|
+
id: y,
|
|
1114
|
+
...l,
|
|
1315
1115
|
...r,
|
|
1116
|
+
...o,
|
|
1316
1117
|
type: "radio",
|
|
1317
|
-
required:
|
|
1318
|
-
checked:
|
|
1319
|
-
name:
|
|
1118
|
+
required: s,
|
|
1119
|
+
checked: a,
|
|
1120
|
+
name: t
|
|
1320
1121
|
}
|
|
1321
1122
|
);
|
|
1322
|
-
},
|
|
1123
|
+
}, lt = {
|
|
1323
1124
|
type: "Radio",
|
|
1324
1125
|
label: "web_blocks.radio",
|
|
1325
1126
|
category: "core",
|
|
1326
|
-
icon:
|
|
1127
|
+
icon: Z,
|
|
1327
1128
|
group: "form",
|
|
1328
|
-
...
|
|
1129
|
+
...m({
|
|
1329
1130
|
properties: {
|
|
1330
|
-
styles:
|
|
1331
|
-
inputStyles:
|
|
1131
|
+
styles: u("flex items-center gap-x-2"),
|
|
1132
|
+
inputStyles: u(""),
|
|
1332
1133
|
fieldName: {
|
|
1333
1134
|
type: "string",
|
|
1334
1135
|
title: "Field Name",
|
|
@@ -1358,28 +1159,28 @@ const yt = (e) => {
|
|
|
1358
1159
|
}),
|
|
1359
1160
|
aiProps: ["label"],
|
|
1360
1161
|
i18nProps: ["label"]
|
|
1361
|
-
},
|
|
1362
|
-
const { blockProps:
|
|
1363
|
-
return
|
|
1364
|
-
|
|
1365
|
-
/* @__PURE__ */
|
|
1366
|
-
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children:
|
|
1367
|
-
|
|
1162
|
+
}, ot = (e) => {
|
|
1163
|
+
const { blockProps: l, fieldName: t, label: n, placeholder: o, styles: r, inputStyles: s, required: a, showLabel: c, _multiple: y, options: g } = e, k = I();
|
|
1164
|
+
return c ? /* @__PURE__ */ b("div", { ...r, ...l, children: [
|
|
1165
|
+
c && /* @__PURE__ */ i("label", { htmlFor: k, children: n }),
|
|
1166
|
+
/* @__PURE__ */ b("select", { ...s, id: k, required: a, multiple: y, name: t, children: [
|
|
1167
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
1168
|
+
P(g, (p) => /* @__PURE__ */ i("option", { value: p == null ? void 0 : p.value, children: p == null ? void 0 : p.label }, p == null ? void 0 : p.value))
|
|
1368
1169
|
] })
|
|
1369
|
-
] }) : /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children:
|
|
1371
|
-
|
|
1170
|
+
] }) : /* @__PURE__ */ b("select", { id: k, ...r, ...l, required: a, multiple: y, name: t, children: [
|
|
1171
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
1172
|
+
P(g, (p) => /* @__PURE__ */ i("option", { value: p == null ? void 0 : p.value, children: p == null ? void 0 : p.label }, p == null ? void 0 : p.value))
|
|
1372
1173
|
] });
|
|
1373
|
-
},
|
|
1174
|
+
}, nt = {
|
|
1374
1175
|
type: "Select",
|
|
1375
1176
|
label: "web_blocks.select",
|
|
1376
1177
|
category: "core",
|
|
1377
|
-
icon:
|
|
1178
|
+
icon: J,
|
|
1378
1179
|
group: "form",
|
|
1379
|
-
...
|
|
1180
|
+
...m({
|
|
1380
1181
|
properties: {
|
|
1381
|
-
styles:
|
|
1382
|
-
inputStyles:
|
|
1182
|
+
styles: u(""),
|
|
1183
|
+
inputStyles: u("w-full p-1"),
|
|
1383
1184
|
fieldName: {
|
|
1384
1185
|
type: "string",
|
|
1385
1186
|
title: "Field Name",
|
|
@@ -1434,38 +1235,38 @@ const yt = (e) => {
|
|
|
1434
1235
|
}),
|
|
1435
1236
|
aiProps: ["label", "placeholder"],
|
|
1436
1237
|
i18nProps: ["label", "placeholder"]
|
|
1437
|
-
},
|
|
1438
|
-
const { blockProps:
|
|
1439
|
-
return
|
|
1440
|
-
|
|
1441
|
-
/* @__PURE__ */ i("textarea", { name:
|
|
1238
|
+
}, rt = (e) => {
|
|
1239
|
+
const { blockProps: l, fieldName: t, label: n, placeholder: o, styles: r, inputStyles: s, _rows: a, showLabel: c } = e, y = I();
|
|
1240
|
+
return c ? /* @__PURE__ */ b("div", { ...r, ...l, children: [
|
|
1241
|
+
c && /* @__PURE__ */ i("label", { htmlFor: y, children: n }),
|
|
1242
|
+
/* @__PURE__ */ i("textarea", { name: t, ...s, id: y, placeholder: o, rows: a })
|
|
1442
1243
|
] }) : /* @__PURE__ */ i(
|
|
1443
1244
|
"textarea",
|
|
1444
1245
|
{
|
|
1445
|
-
id:
|
|
1446
|
-
name:
|
|
1447
|
-
...
|
|
1448
|
-
...
|
|
1449
|
-
...
|
|
1450
|
-
placeholder:
|
|
1451
|
-
rows:
|
|
1246
|
+
id: y,
|
|
1247
|
+
name: t,
|
|
1248
|
+
...l,
|
|
1249
|
+
...s,
|
|
1250
|
+
...r,
|
|
1251
|
+
placeholder: o,
|
|
1252
|
+
rows: a
|
|
1452
1253
|
}
|
|
1453
1254
|
);
|
|
1454
|
-
},
|
|
1255
|
+
}, it = {
|
|
1455
1256
|
type: "TextArea",
|
|
1456
1257
|
label: "web_blocks.textarea",
|
|
1457
1258
|
category: "core",
|
|
1458
|
-
icon:
|
|
1259
|
+
icon: E,
|
|
1459
1260
|
group: "form",
|
|
1460
|
-
...
|
|
1261
|
+
...m({
|
|
1461
1262
|
properties: {
|
|
1462
1263
|
fieldName: {
|
|
1463
1264
|
type: "string",
|
|
1464
1265
|
title: "Field Name",
|
|
1465
1266
|
default: "fieldName"
|
|
1466
1267
|
},
|
|
1467
|
-
styles:
|
|
1468
|
-
inputStyles:
|
|
1268
|
+
styles: u(""),
|
|
1269
|
+
inputStyles: u("w-full p-1"),
|
|
1469
1270
|
showLabel: {
|
|
1470
1271
|
type: "boolean",
|
|
1471
1272
|
title: "Show Label",
|
|
@@ -1491,74 +1292,25 @@ const yt = (e) => {
|
|
|
1491
1292
|
}),
|
|
1492
1293
|
aiProps: ["label", "placeholder"],
|
|
1493
1294
|
i18nProps: ["label", "placeholder"]
|
|
1494
|
-
},
|
|
1495
|
-
const { blockProps:
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
}, $t = {
|
|
1499
|
-
type: "Body",
|
|
1500
|
-
label: "Body",
|
|
1501
|
-
category: "core",
|
|
1502
|
-
group: "basic",
|
|
1503
|
-
hidden: !0,
|
|
1504
|
-
...p({
|
|
1505
|
-
properties: {
|
|
1506
|
-
styles: d("font-body antialiased"),
|
|
1507
|
-
backgroundImage: {
|
|
1508
|
-
type: "string",
|
|
1509
|
-
title: "Image",
|
|
1510
|
-
default: "",
|
|
1511
|
-
ui: { "ui:widget": "image" }
|
|
1512
|
-
},
|
|
1513
|
-
tag: {
|
|
1514
|
-
type: "string",
|
|
1515
|
-
default: "div",
|
|
1516
|
-
title: "Tag",
|
|
1517
|
-
oneOf: [
|
|
1518
|
-
{ const: "div", title: "div" },
|
|
1519
|
-
{ const: "header", title: "header" },
|
|
1520
|
-
{ const: "footer", title: "footer" },
|
|
1521
|
-
{ const: "section", title: "section" },
|
|
1522
|
-
{ const: "article", title: "article" },
|
|
1523
|
-
{ const: "aside", title: "aside" },
|
|
1524
|
-
{ const: "main", title: "main" },
|
|
1525
|
-
{ const: "nav", title: "nav" },
|
|
1526
|
-
{ const: "figure", title: "figure" },
|
|
1527
|
-
{ const: "details", title: "details" },
|
|
1528
|
-
{ const: "summary", title: "summary" },
|
|
1529
|
-
{ const: "dialog", title: "dialog" },
|
|
1530
|
-
{ const: "strike", title: "strike" },
|
|
1531
|
-
{ const: "caption", title: "caption" },
|
|
1532
|
-
{ const: "legend", title: "legend" },
|
|
1533
|
-
{ const: "figcaption", title: "figcaption" },
|
|
1534
|
-
{ const: "mark", title: "mark" }
|
|
1535
|
-
]
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
}),
|
|
1539
|
-
canAcceptBlock: () => !0,
|
|
1540
|
-
canDelete: () => !1,
|
|
1541
|
-
canMove: () => !1,
|
|
1542
|
-
canDuplicate: () => !1
|
|
1543
|
-
}, Dt = (e) => {
|
|
1544
|
-
const { blockProps: t, styles: l } = e;
|
|
1545
|
-
return I("br", { ...t, ...l });
|
|
1546
|
-
}, Tt = {
|
|
1295
|
+
}, st = (e) => {
|
|
1296
|
+
const { blockProps: l, styles: t } = e;
|
|
1297
|
+
return L("br", { ...l, ...t });
|
|
1298
|
+
}, at = {
|
|
1547
1299
|
type: "LineBreak",
|
|
1548
1300
|
label: "Line Break",
|
|
1549
1301
|
category: "core",
|
|
1550
1302
|
group: "basic",
|
|
1551
1303
|
hidden: !0,
|
|
1552
|
-
...
|
|
1304
|
+
...m({
|
|
1553
1305
|
properties: {
|
|
1554
|
-
styles:
|
|
1306
|
+
styles: u("")
|
|
1555
1307
|
}
|
|
1556
1308
|
}),
|
|
1557
1309
|
canAcceptBlock: () => !0,
|
|
1558
1310
|
canDelete: () => !1,
|
|
1559
1311
|
canMove: () => !1,
|
|
1560
1312
|
canDuplicate: () => !1
|
|
1561
|
-
},
|
|
1313
|
+
}, B = {
|
|
1562
1314
|
SMALL: {
|
|
1563
1315
|
1: "col-span-1",
|
|
1564
1316
|
2: "col-span-2",
|
|
@@ -1601,27 +1353,27 @@ const yt = (e) => {
|
|
|
1601
1353
|
11: "lg:col-span-11",
|
|
1602
1354
|
12: "lg:col-span-12"
|
|
1603
1355
|
}
|
|
1604
|
-
},
|
|
1605
|
-
const { blockProps:
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1356
|
+
}, ct = (e) => {
|
|
1357
|
+
const { blockProps: l, children: t, styles: n, colSpan: o, tabletColSpan: r, desktopColSpan: s } = e, c = { className: [
|
|
1358
|
+
h(n, "className", ""),
|
|
1359
|
+
h(B, ["SMALL", isNaN(o) || !o ? 6 : o], ""),
|
|
1360
|
+
r ? h(B, ["MEDIUM", r || o], "") : "",
|
|
1361
|
+
s ? h(B, ["LARGE", r || o], "") : ""
|
|
1610
1362
|
].join(" ") };
|
|
1611
|
-
return /* @__PURE__ */ i("div", { ...
|
|
1612
|
-
},
|
|
1363
|
+
return /* @__PURE__ */ i("div", { ...l, ...n, ...c, children: t || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
1364
|
+
}, pt = {
|
|
1613
1365
|
type: "Column",
|
|
1614
1366
|
label: "Column",
|
|
1615
1367
|
group: "basic",
|
|
1616
1368
|
category: "core",
|
|
1617
|
-
icon:
|
|
1369
|
+
icon: oe,
|
|
1618
1370
|
wrapper: !0,
|
|
1619
1371
|
canDelete: () => !0,
|
|
1620
1372
|
canAcceptBlock: () => !0,
|
|
1621
1373
|
canBeNested: (e) => e === "Row",
|
|
1622
|
-
...
|
|
1374
|
+
...m({
|
|
1623
1375
|
properties: {
|
|
1624
|
-
styles:
|
|
1376
|
+
styles: u(""),
|
|
1625
1377
|
colSpan: {
|
|
1626
1378
|
type: "number",
|
|
1627
1379
|
title: "Column Span",
|
|
@@ -1644,14 +1396,14 @@ const yt = (e) => {
|
|
|
1644
1396
|
}
|
|
1645
1397
|
}
|
|
1646
1398
|
})
|
|
1647
|
-
},
|
|
1648
|
-
const { blockProps:
|
|
1649
|
-
return typeof (n == null ? void 0 : n.style) == "object" ? n.style.gap = `${
|
|
1650
|
-
},
|
|
1399
|
+
}, ut = (e) => {
|
|
1400
|
+
const { blockProps: l, children: t, styles: n, gutter: o } = e, s = { className: [h(n, "className", ""), " grid grid-cols-12"].join() };
|
|
1401
|
+
return typeof (n == null ? void 0 : n.style) == "object" ? n.style.gap = `${o}px` : s.style = { gap: `${o}px` }, /* @__PURE__ */ i("div", { ...l, ...n, ...s, children: t });
|
|
1402
|
+
}, dt = {
|
|
1651
1403
|
type: "Row",
|
|
1652
1404
|
label: "Row",
|
|
1653
1405
|
group: "basic",
|
|
1654
|
-
icon:
|
|
1406
|
+
icon: ne,
|
|
1655
1407
|
blocks: () => [
|
|
1656
1408
|
{ _type: "Row", _id: "row", styles: "#styles:,p-1" },
|
|
1657
1409
|
{ _type: "Column", id: "column", _parent: "row", styles: "#styles:," },
|
|
@@ -1660,9 +1412,9 @@ const yt = (e) => {
|
|
|
1660
1412
|
category: "core",
|
|
1661
1413
|
wrapper: !0,
|
|
1662
1414
|
canAcceptBlock: (e) => e === "Column",
|
|
1663
|
-
...
|
|
1415
|
+
...m({
|
|
1664
1416
|
properties: {
|
|
1665
|
-
styles:
|
|
1417
|
+
styles: u(""),
|
|
1666
1418
|
colCount: {
|
|
1667
1419
|
type: "number",
|
|
1668
1420
|
default: 2,
|
|
@@ -1677,293 +1429,9 @@ const yt = (e) => {
|
|
|
1677
1429
|
}
|
|
1678
1430
|
}
|
|
1679
1431
|
})
|
|
1680
|
-
},
|
|
1681
|
-
|
|
1682
|
-
"x-data": `{
|
|
1683
|
-
currentSlide: 0,
|
|
1684
|
-
totalSlides: ${(t == null ? void 0 : t.totalSlides) || 0},
|
|
1685
|
-
autoplay: ${!!(t != null && t.autoplay)},
|
|
1686
|
-
autoplayInterval: null,
|
|
1687
|
-
init() {
|
|
1688
|
-
if (this.autoplay) {
|
|
1689
|
-
this.startAutoplay();
|
|
1690
|
-
}
|
|
1691
|
-
},
|
|
1692
|
-
startAutoplay() {
|
|
1693
|
-
this.autoplayInterval = setInterval(() => {
|
|
1694
|
-
this.nextSlide();
|
|
1695
|
-
}, ${isNaN(t == null ? void 0 : t.autoplayInterval) ? 3e3 : (t == null ? void 0 : t.autoplayInterval) * 1e3});
|
|
1696
|
-
},
|
|
1697
|
-
stopAutoplay() {
|
|
1698
|
-
clearInterval(this.autoplayInterval);
|
|
1699
|
-
},
|
|
1700
|
-
nextSlide() {
|
|
1701
|
-
this.currentSlide = (this.currentSlide + 1) % this.totalSlides;
|
|
1702
|
-
},
|
|
1703
|
-
prevSlide() {
|
|
1704
|
-
this.currentSlide = (this.currentSlide - 1 + this.totalSlides) %this.totalSlides;
|
|
1705
|
-
},
|
|
1706
|
-
updateCurrentSlide(slide) {
|
|
1707
|
-
this.currentSlide = slide;
|
|
1708
|
-
},
|
|
1709
|
-
}`
|
|
1710
|
-
},
|
|
1711
|
-
slides: {
|
|
1712
|
-
":style": "'transform: translateX(-' + currentSlide * 100 + '%)'"
|
|
1713
|
-
},
|
|
1714
|
-
prevButton: {
|
|
1715
|
-
"x-on:click": "stopAutoplay(); prevSlide();"
|
|
1716
|
-
},
|
|
1717
|
-
nextButton: {
|
|
1718
|
-
"x-on:click": "stopAutoplay(); nextSlide();"
|
|
1719
|
-
},
|
|
1720
|
-
sliderNav: {
|
|
1721
|
-
":class": `currentSlide === ${t == null ? void 0 : t.slide} ? '${t == null ? void 0 : t.activeDotClassName}' : '${t == null ? void 0 : t.className}'`,
|
|
1722
|
-
"x-on:click": `stopAutoplay(); updateCurrentSlide(${t == null ? void 0 : t.slide});`
|
|
1723
|
-
}
|
|
1724
|
-
})[e] || {}, Ht = (e) => {
|
|
1725
|
-
const { blockProps: t, styles: l, children: n, slider: r } = e;
|
|
1726
|
-
return !(r != null && r.showSlideButton) && typeof (r == null ? void 0 : r.showSlideButton) == "boolean" ? null : /* @__PURE__ */ i("div", { ...t, ...l, ...L("prevButton"), children: n });
|
|
1727
|
-
};
|
|
1728
|
-
u(Ht, {
|
|
1729
|
-
type: "SlidePreviousButton",
|
|
1730
|
-
label: "Slide Previous",
|
|
1731
|
-
group: "basic",
|
|
1732
|
-
category: "core",
|
|
1733
|
-
icon: D,
|
|
1734
|
-
canDelete: () => !1,
|
|
1735
|
-
canAcceptBlock: () => !0,
|
|
1736
|
-
canBeNested: (e) => e === "Slider",
|
|
1737
|
-
...p({
|
|
1738
|
-
properties: {
|
|
1739
|
-
styles: d(
|
|
1740
|
-
"h-max w-max absolute left-0 top-1/2 -translate-y-1/2 flex items-center justify-center p-2 cursor-pointer"
|
|
1741
|
-
),
|
|
1742
|
-
slider: _("Slider", "slider")
|
|
1743
|
-
}
|
|
1744
|
-
})
|
|
1745
|
-
});
|
|
1746
|
-
const jt = (e) => {
|
|
1747
|
-
const { blockProps: t, styles: l, children: n, slider: r } = e;
|
|
1748
|
-
return !(r != null && r.showSlideButton) && typeof (r == null ? void 0 : r.showSlideButton) == "boolean" ? null : /* @__PURE__ */ i("div", { ...t, ...l, ...L("nextButton"), children: n });
|
|
1749
|
-
};
|
|
1750
|
-
u(jt, {
|
|
1751
|
-
type: "SlideNextButton",
|
|
1752
|
-
label: "Slide Next",
|
|
1753
|
-
group: "basic",
|
|
1754
|
-
category: "core",
|
|
1755
|
-
icon: fe,
|
|
1756
|
-
canDelete: () => !1,
|
|
1757
|
-
canAcceptBlock: () => !0,
|
|
1758
|
-
canBeNested: (e) => e === "Slider",
|
|
1759
|
-
...p({
|
|
1760
|
-
properties: {
|
|
1761
|
-
styles: d(
|
|
1762
|
-
"h-max w-max absolute right-0 top-1/2 -translate-y-1/2 flex items-center justify-center p-2 cursor-pointer"
|
|
1763
|
-
),
|
|
1764
|
-
slider: _("Slider", "slider")
|
|
1765
|
-
}
|
|
1766
|
-
})
|
|
1767
|
-
});
|
|
1768
|
-
const Ft = (e) => {
|
|
1769
|
-
var a, c, s, g, m;
|
|
1770
|
-
const { blockProps: t, styles: l, children: n = null, inBuilder: r, slider: o } = e;
|
|
1771
|
-
if (r) {
|
|
1772
|
-
const h = ((c = (a = e == null ? void 0 : e.children) == null ? void 0 : a.props) == null ? void 0 : c.allBlocks) || ((g = (s = e == null ? void 0 : e.children) == null ? void 0 : s.props) == null ? void 0 : g.blocks) || [], y = o == null ? void 0 : o.currentSlide, f = (m = h == null ? void 0 : h.filter((x) => (x == null ? void 0 : x._parent) === (e == null ? void 0 : e._id))) == null ? void 0 : m.findIndex((x) => (x == null ? void 0 : x._id) === y);
|
|
1773
|
-
return /* @__PURE__ */ i("div", { ...t, ...l, style: { transform: `translateX(-${Math.max(0, f) * 100}%)` }, children: n || /* @__PURE__ */ i("div", { className: "h-full p-2", children: /* @__PURE__ */ i("div", { className: "h-full border-2 border-dashed" }) }) });
|
|
1774
|
-
}
|
|
1775
|
-
return /* @__PURE__ */ i("div", { ...t, ...l, ...L("slides"), children: n || /* @__PURE__ */ i("div", { className: "h-full p-2", children: /* @__PURE__ */ i("div", { className: "h-full border-2 border-dashed" }) }) });
|
|
1776
|
-
};
|
|
1777
|
-
u(Ft, {
|
|
1778
|
-
type: "Slides",
|
|
1779
|
-
label: "Slides",
|
|
1780
|
-
group: "basic",
|
|
1781
|
-
category: "core",
|
|
1782
|
-
icon: be,
|
|
1783
|
-
canDelete: () => !1,
|
|
1784
|
-
canAcceptBlock: (e) => e === "Slide",
|
|
1785
|
-
canBeNested: (e) => e === "Slider",
|
|
1786
|
-
...p({
|
|
1787
|
-
properties: {
|
|
1788
|
-
slider: _("Slider", "slider"),
|
|
1789
|
-
styles: d("h-full flex transition-transform duration-500 ease-in-out")
|
|
1790
|
-
}
|
|
1791
|
-
})
|
|
1792
|
-
});
|
|
1793
|
-
const qt = (e) => {
|
|
1794
|
-
const { blockProps: t, styles: l, children: n = null } = e;
|
|
1795
|
-
return /* @__PURE__ */ i("div", { ...t, ...l, children: n || /* @__PURE__ */ k("div", { className: "flex h-full min-w-full items-center justify-center", children: [
|
|
1796
|
-
"Slide ",
|
|
1797
|
-
(e == null ? void 0 : e.index) + 1
|
|
1798
|
-
] }) });
|
|
1799
|
-
};
|
|
1800
|
-
u(qt, {
|
|
1801
|
-
type: "Slide",
|
|
1802
|
-
label: "Slide",
|
|
1803
|
-
group: "basic",
|
|
1804
|
-
category: "core",
|
|
1805
|
-
icon: we,
|
|
1806
|
-
canDelete: () => !0,
|
|
1807
|
-
canAcceptBlock: () => !0,
|
|
1808
|
-
canBeNested: (e) => e === "Slides",
|
|
1809
|
-
...p({
|
|
1810
|
-
properties: {
|
|
1811
|
-
styles: d("min-w-full h-full")
|
|
1812
|
-
}
|
|
1813
|
-
})
|
|
1814
|
-
});
|
|
1815
|
-
const Gt = (e) => {
|
|
1816
|
-
var y, f, x, E;
|
|
1817
|
-
const { blockProps: t, styles: l, dotStyles: n, activeDotStyles: r, slider: o, inBuilder: a, children: c } = e;
|
|
1818
|
-
if (!(o != null && o.showSlideNavbar) && typeof (o == null ? void 0 : o.showSlideNavbar) == "boolean") return null;
|
|
1819
|
-
const s = ((f = (y = e == null ? void 0 : e.children) == null ? void 0 : y.props) == null ? void 0 : f.allBlocks) || ((E = (x = e == null ? void 0 : e.children) == null ? void 0 : x.props) == null ? void 0 : E.blocks) || [], g = s == null ? void 0 : s.find((b) => (b == null ? void 0 : b._id) === (e == null ? void 0 : e._id)), m = s == null ? void 0 : s.find((b) => (b == null ? void 0 : b._parent) === (g == null ? void 0 : g._parent) && (b == null ? void 0 : b._type) === "Slides"), h = s == null ? void 0 : s.filter((b) => (b == null ? void 0 : b._parent) === (m == null ? void 0 : m._id));
|
|
1820
|
-
return a ? /* @__PURE__ */ i("div", { ...t, ...l, children: h == null ? void 0 : h.map((b, N) => /* @__PURE__ */ i(
|
|
1821
|
-
"div",
|
|
1822
|
-
{
|
|
1823
|
-
...n,
|
|
1824
|
-
...o != null && o.currentSlide ? (b == null ? void 0 : b._id) === (o == null ? void 0 : o.currentSlide) ? r : {} : N === 0 ? r : {},
|
|
1825
|
-
children: c
|
|
1826
|
-
}
|
|
1827
|
-
)) }) : /* @__PURE__ */ i("div", { ...t, ...l, children: h == null ? void 0 : h.map((b, N) => /* @__PURE__ */ i(
|
|
1828
|
-
"div",
|
|
1829
|
-
{
|
|
1830
|
-
...L("sliderNav", {
|
|
1831
|
-
slide: N,
|
|
1832
|
-
className: n == null ? void 0 : n.className,
|
|
1833
|
-
activeDotClassName: (r == null ? void 0 : r.className) ?? ""
|
|
1834
|
-
})
|
|
1835
|
-
},
|
|
1836
|
-
b == null ? void 0 : b._id
|
|
1837
|
-
)) });
|
|
1838
|
-
};
|
|
1839
|
-
u(Gt, {
|
|
1840
|
-
type: "SliderNav",
|
|
1841
|
-
label: "Slider Navigation",
|
|
1842
|
-
group: "basic",
|
|
1843
|
-
category: "core",
|
|
1844
|
-
icon: D,
|
|
1845
|
-
canDelete: () => !1,
|
|
1846
|
-
canAcceptBlock: () => !1,
|
|
1847
|
-
canBeNested: (e) => e === "Slider",
|
|
1848
|
-
...p({
|
|
1849
|
-
properties: {
|
|
1850
|
-
styles: d("w-full absolute left-0 bottom-0 flex items-center justify-center gap-x-2 p-2"),
|
|
1851
|
-
dotStyles: d("w-4 h-4 border border-gray-500 rounded-full cursor-pointer"),
|
|
1852
|
-
activeDotStyles: d("w-4 h-4 rounded-full bg-blue-500"),
|
|
1853
|
-
slider: _("Slider", "slider")
|
|
1854
|
-
}
|
|
1855
|
-
})
|
|
1856
|
-
});
|
|
1857
|
-
const Ut = () => null;
|
|
1858
|
-
u(Ut, {
|
|
1859
|
-
type: "SliderNavItem",
|
|
1860
|
-
label: "Slider Nav Item",
|
|
1861
|
-
group: "basic",
|
|
1862
|
-
category: "core",
|
|
1863
|
-
hidden: !0,
|
|
1864
|
-
icon: D,
|
|
1865
|
-
canDelete: () => !1,
|
|
1866
|
-
canDuplicate: () => !1,
|
|
1867
|
-
canAcceptBlock: () => !1,
|
|
1868
|
-
canBeNested: (e) => e === "SliderNav",
|
|
1869
|
-
...p({
|
|
1870
|
-
properties: {}
|
|
1871
|
-
})
|
|
1872
|
-
});
|
|
1873
|
-
const Ot = (e) => {
|
|
1874
|
-
var s, g, m, h, y;
|
|
1875
|
-
const { blockProps: t, styles: l, children: n = null } = e, r = ((g = (s = e == null ? void 0 : e.children) == null ? void 0 : s.props) == null ? void 0 : g.allBlocks) || ((h = (m = e == null ? void 0 : e.children) == null ? void 0 : m.props) == null ? void 0 : h.blocks) || [], o = r == null ? void 0 : r.find((f) => (f == null ? void 0 : f._parent) === (e == null ? void 0 : e._id) && (f == null ? void 0 : f._type) === "Slides"), c = {
|
|
1876
|
-
totalSlides: ((y = r == null ? void 0 : r.filter((f) => (f == null ? void 0 : f._parent) === (o == null ? void 0 : o._id))) == null ? void 0 : y.length) || 0,
|
|
1877
|
-
...typeof e.slider == "object" ? e.slider : {}
|
|
1878
|
-
};
|
|
1879
|
-
return /* @__PURE__ */ i("div", { ...t, ...l, ...L("slider", c), children: n || /* @__PURE__ */ i("div", { className: "h-[60vh] p-2", children: /* @__PURE__ */ i("div", { className: "h-full border-2 border-dashed" }) }) });
|
|
1880
|
-
}, Vt = {
|
|
1881
|
-
type: "Slider",
|
|
1882
|
-
label: "Slider",
|
|
1883
|
-
category: "core",
|
|
1884
|
-
icon: ke,
|
|
1885
|
-
group: "basic",
|
|
1886
|
-
wrapper: !0,
|
|
1887
|
-
blocks: () => [
|
|
1888
|
-
{
|
|
1889
|
-
_type: "Slider",
|
|
1890
|
-
_id: "slider"
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
_type: "Slides",
|
|
1894
|
-
_id: "slider-slides",
|
|
1895
|
-
_parent: "slider"
|
|
1896
|
-
},
|
|
1897
|
-
{
|
|
1898
|
-
_type: "Slide",
|
|
1899
|
-
_id: "slider-slides-slide-1",
|
|
1900
|
-
_parent: "slider-slides"
|
|
1901
|
-
},
|
|
1902
|
-
{
|
|
1903
|
-
_type: "Slide",
|
|
1904
|
-
_id: "slider-slides-slide-2",
|
|
1905
|
-
_parent: "slider-slides"
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
_type: "Slide",
|
|
1909
|
-
_id: "slider-slides-slide-3",
|
|
1910
|
-
_parent: "slider-slides"
|
|
1911
|
-
},
|
|
1912
|
-
{
|
|
1913
|
-
_type: "SlidePreviousButton",
|
|
1914
|
-
_parent: "slider",
|
|
1915
|
-
_id: "slider-left-arrow"
|
|
1916
|
-
},
|
|
1917
|
-
{
|
|
1918
|
-
_type: "Icon",
|
|
1919
|
-
_id: "slider-left-arrow-content",
|
|
1920
|
-
icon: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 320 512"><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"/></svg>',
|
|
1921
|
-
_parent: "slider-left-arrow"
|
|
1922
|
-
},
|
|
1923
|
-
{
|
|
1924
|
-
_type: "SlideNextButton",
|
|
1925
|
-
_parent: "slider",
|
|
1926
|
-
_id: "slider-right-arrow"
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
_type: "Icon",
|
|
1930
|
-
_id: "slider-right-arrow-content",
|
|
1931
|
-
icon: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 320 512"><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/></svg>',
|
|
1932
|
-
_parent: "slider-right-arrow"
|
|
1933
|
-
},
|
|
1934
|
-
{
|
|
1935
|
-
_type: "SliderNav",
|
|
1936
|
-
_parent: "slider",
|
|
1937
|
-
_id: "slider-nav"
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
_type: "SliderNavItem",
|
|
1941
|
-
_parent: "slider-nav",
|
|
1942
|
-
_id: "slider-nav-item"
|
|
1943
|
-
}
|
|
1944
|
-
],
|
|
1945
|
-
...p({
|
|
1946
|
-
properties: {
|
|
1947
|
-
styles: d("w-full h-[60vh] relative overflow-x-hidden"),
|
|
1948
|
-
slider: F({
|
|
1949
|
-
type: "object",
|
|
1950
|
-
properties: {},
|
|
1951
|
-
default: {
|
|
1952
|
-
currentSlide: null,
|
|
1953
|
-
autoplay: !1,
|
|
1954
|
-
autoplayInterval: 2,
|
|
1955
|
-
showSlideButton: !0,
|
|
1956
|
-
showSlideNavbar: !0
|
|
1957
|
-
},
|
|
1958
|
-
ui: {
|
|
1959
|
-
"ui:field": "slider"
|
|
1960
|
-
}
|
|
1961
|
-
})
|
|
1962
|
-
}
|
|
1963
|
-
})
|
|
1964
|
-
}, el = () => {
|
|
1965
|
-
u(ve, xe), u(Ce, Le), u(Se, _e), u(Pe, Ne), u(Me, $e), u(Ae, Ee), u(De, Te), u(et, tt), u(Ke, Qe), u(lt, rt), u(nt, ot), u(Xe, Ye), u(Ze, Je), u(ct, dt), u(Be, Ie), u(ze, He), u(it, at), u(ft, bt), u(wt, kt), u(vt, xt), u(mt, ht), u(Bt, It), u(Ct, Lt), u(Pt, Nt), u(St, _t), u(Dt, Tt), u(Mt, $t), u(Ue, Oe), u(je, Ge), u(Ve, We), u(yt, gt), u(Rt, zt), u(At, Et), u(Ot, Vt);
|
|
1432
|
+
}, wt = () => {
|
|
1433
|
+
d(re, ie), d(ue, de), d(se, ae), d(me, ye), d(ge, fe), d(ke, we), d(be, he), d(Ee, Re), d(Te, $e), d(Ae, He), d(ze, Fe), d(Pe, Se), d(Ne, Me), d(Ge, Ue), d(ce, pe), d(Le, ve), d(je, De), d(We, Xe), d(Ye, Ze), d(Je, Ke), d(Ve, Oe), d(tt, lt), d(ot, nt), d(rt, it), d(Qe, et), d(st, at), d(Ie, Ce), d(Be, _e), d(ut, dt), d(ct, pt);
|
|
1966
1434
|
};
|
|
1967
1435
|
export {
|
|
1968
|
-
|
|
1436
|
+
wt as loadWebBlocks
|
|
1969
1437
|
};
|