@builder.io/sdk-react 2.0.31 → 3.0.1
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/lib/browser/blocks-exports.cjs +31 -31
- package/lib/browser/blocks-exports.mjs +743 -696
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-77f4513c.js → server-entry-017b8439.js} +24 -26
- package/lib/browser/server-entry-9f80066e.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-d1213549.js → accordion-1572cb0d.js} +1 -1
- package/lib/edge/{accordion-696fad97.cjs → accordion-decb24cf.cjs} +1 -1
- package/lib/edge/{blocks-9ef79098.js → blocks-9c35be74.js} +314 -268
- package/lib/edge/blocks-d3823063.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +8 -7
- package/lib/edge/{button-b41f1129.js → button-0709893d.js} +2 -2
- package/lib/edge/{button-2ed05d22.cjs → button-cf66cf8d.cjs} +1 -1
- package/lib/edge/{columns-ca9ac444.cjs → columns-2fdf0656.cjs} +1 -1
- package/lib/edge/{columns-5f8497fb.js → columns-e234acc6.js} +4 -4
- package/lib/edge/{content-variants-9c4db669.js → content-variants-3ab9230f.js} +323 -323
- package/lib/edge/content-variants-616a6c0f.cjs +134 -0
- package/lib/edge/{evaluate-8453ffc0.cjs → evaluate-ccf1ad96.cjs} +1 -1
- package/lib/edge/{evaluate-f626f584.js → evaluate-f0b82ede.js} +1 -1
- package/lib/edge/{form-a5407307.js → form-27bcc23a.js} +4 -4
- package/lib/edge/{form-b0c5418b.cjs → form-7c61693d.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-86f0330a.cjs → get-class-prop-name-0b3d48a4.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-40d6defb.js → get-class-prop-name-a3bd113c.js} +1 -1
- package/lib/edge/{image-6970c193.js → image-5c9e156f.js} +28 -28
- package/lib/edge/image-94922c87.cjs +17 -0
- package/lib/edge/{img-fa36f926.js → img-80be6914.js} +1 -1
- package/lib/edge/{img-83ed868e.cjs → img-e0c8f7f9.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-93e42e28.js → input-920922d5.js} +1 -1
- package/lib/edge/{input-3106b577.cjs → input-f5ba6b1e.cjs} +1 -1
- package/lib/edge/{select-29495824.cjs → select-2ced1aca.cjs} +1 -1
- package/lib/edge/{select-4cf4356a.js → select-673864b7.js} +1 -1
- package/lib/edge/{server-entry-ea35faa6.js → server-entry-6c0047ea.js} +24 -26
- package/lib/edge/server-entry-de142ee8.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-6ad4152e.js → slot-68f2b177.js} +4 -4
- package/lib/edge/{slot-c8ab71b6.cjs → slot-cc8b4e5b.cjs} +1 -1
- package/lib/edge/{symbol-d2b48e54.js → symbol-7e260a70.js} +2 -2
- package/lib/edge/{symbol-74313a4b.cjs → symbol-ded9dba9.cjs} +1 -1
- package/lib/edge/{tabs-6d924c90.js → tabs-5156494d.js} +4 -4
- package/lib/edge/{tabs-f699b318.cjs → tabs-d422921f.cjs} +1 -1
- package/lib/edge/{text-7137a306.js → text-27a917c0.js} +2 -2
- package/lib/edge/{text-7120ee0c.cjs → text-5796f488.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +30 -30
- package/lib/node/blocks-exports.mjs +710 -663
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-e91e06a3.cjs +2 -0
- package/lib/node/{server-entry-32ef60c0.js → server-entry-fdedc1aa.js} +24 -26
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-26e65816.js → setIvm-8b303d4e.js} +1 -1
- package/lib/node/{setIvm-bf1ad328.cjs → setIvm-aba1bed8.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-343fd6c7.js → should-force-browser-runtime-in-node-0a037bde.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-000957e3.cjs → should-force-browser-runtime-in-node-491a9b55.cjs} +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +6 -3
- package/types/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/types/constants/file-types.d.ts +2 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -0
- package/types/functions/extract-localized-values.d.ts +2 -0
- package/types/functions/traverse.d.ts +34 -0
- package/types/types/components.d.ts +3 -0
- package/lib/browser/server-entry-d7a13b14.cjs +0 -2
- package/lib/edge/blocks-aa67fee8.cjs +0 -12
- package/lib/edge/content-variants-2f5a6ccd.cjs +0 -134
- package/lib/edge/image-54d2f755.cjs +0 -17
- package/lib/edge/server-entry-4cd5389e.cjs +0 -2
- package/lib/node/server-entry-9c026e49.cjs +0 -2
|
@@ -1,29 +1,70 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
1
|
+
import { jsx as c, Fragment as h, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as J, useEffect as B, useState as W, useRef as Q, useContext as T } from "react";
|
|
3
3
|
import { BuilderContext as _ } from "./blocks-exports.mjs";
|
|
4
|
-
import { TARGET as
|
|
5
|
-
import { evaluate as
|
|
6
|
-
import { getClassPropName as
|
|
7
|
-
import { DynamicRenderer as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
4
|
+
import { TARGET as b, checkIsDefined as A, isPreviewing as G, isEditing as L } from "./server-entry-6c0047ea.js";
|
|
5
|
+
import { evaluate as E } from "./evaluate-f0b82ede.js";
|
|
6
|
+
import { getClassPropName as X } from "./get-class-prop-name-a3bd113c.js";
|
|
7
|
+
import { DynamicRenderer as Y } from "./dynamic-renderer-8b343325.js";
|
|
8
|
+
const ee = J({ registeredComponents: {} });
|
|
9
|
+
function te(e) {
|
|
10
10
|
var t;
|
|
11
11
|
return {
|
|
12
12
|
...(t = e.component) == null ? void 0 : t.options,
|
|
13
13
|
...e.options
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function ne(e, ...t) {
|
|
17
17
|
const n = Object.assign({}, e);
|
|
18
18
|
for (const r of t)
|
|
19
19
|
delete n[r];
|
|
20
20
|
return n;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
function v(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
23
|
+
if (e == null || typeof e != "object") {
|
|
24
|
+
t(e, (i) => {
|
|
25
|
+
n !== null && r !== null && (n[r] = i);
|
|
26
|
+
});
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
30
|
+
t(i, (d) => {
|
|
31
|
+
e[s] = d;
|
|
32
|
+
}), v(i, t, e, s, o);
|
|
33
|
+
}) : Object.entries(e).forEach(([i, s]) => {
|
|
34
|
+
t(s, (d) => {
|
|
35
|
+
e[i] = d;
|
|
36
|
+
}), v(s, t, e, i, o);
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
function H(e) {
|
|
40
|
+
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
41
|
+
}
|
|
42
|
+
function oe(e) {
|
|
43
|
+
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
44
|
+
return !1;
|
|
45
|
+
let t = !1;
|
|
46
|
+
return v(e, (n) => {
|
|
47
|
+
if (H(n)) {
|
|
48
|
+
t = !0;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}), t;
|
|
52
|
+
}
|
|
53
|
+
function re(e, t) {
|
|
54
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (v(e, (n, r) => {
|
|
55
|
+
var o;
|
|
56
|
+
H(n) && r((o = n[t]) != null ? o : void 0);
|
|
57
|
+
}), e);
|
|
58
|
+
}
|
|
59
|
+
function ie(e, t) {
|
|
60
|
+
var n, r;
|
|
61
|
+
return (n = e.component) != null && n.options && oe((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = re(e.component.options, t != null ? t : "Default")), e;
|
|
62
|
+
}
|
|
63
|
+
const U = (e) => JSON.parse(JSON.stringify(e)), se = (e, t, n) => {
|
|
23
64
|
if (Object(e) !== e)
|
|
24
65
|
return e;
|
|
25
66
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
26
|
-
return r.slice(0, -1).reduce((o,
|
|
67
|
+
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
27
68
|
};
|
|
28
69
|
function I(e) {
|
|
29
70
|
if (e === null || typeof e != "object")
|
|
@@ -37,9 +78,9 @@ function I(e) {
|
|
|
37
78
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = I(e[n]));
|
|
38
79
|
return t;
|
|
39
80
|
}
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
const t =
|
|
81
|
+
const le = ["svelte", "vue", "angular", "qwik", "solid"].includes(b), ce = (e) => {
|
|
82
|
+
if (le) {
|
|
83
|
+
const t = U(e);
|
|
43
84
|
return {
|
|
44
85
|
...t,
|
|
45
86
|
properties: {
|
|
@@ -50,7 +91,7 @@ const te = ["svelte", "vue", "angular", "qwik", "solid"].includes(v), ne = (e) =
|
|
|
50
91
|
}
|
|
51
92
|
};
|
|
52
93
|
} else {
|
|
53
|
-
const t = I(
|
|
94
|
+
const t = I(ne(e, "children", "meta"));
|
|
54
95
|
return {
|
|
55
96
|
...t,
|
|
56
97
|
properties: {
|
|
@@ -63,7 +104,7 @@ const te = ["svelte", "vue", "angular", "qwik", "solid"].includes(v), ne = (e) =
|
|
|
63
104
|
meta: e.meta
|
|
64
105
|
};
|
|
65
106
|
}
|
|
66
|
-
},
|
|
107
|
+
}, ae = ({
|
|
67
108
|
block: e,
|
|
68
109
|
context: t,
|
|
69
110
|
localState: n,
|
|
@@ -72,47 +113,47 @@ const te = ["svelte", "vue", "angular", "qwik", "solid"].includes(v), ne = (e) =
|
|
|
72
113
|
}) => {
|
|
73
114
|
if (!e.bindings)
|
|
74
115
|
return e;
|
|
75
|
-
const
|
|
76
|
-
for (const
|
|
77
|
-
const u = e.bindings[
|
|
116
|
+
const i = ce(e);
|
|
117
|
+
for (const s in e.bindings) {
|
|
118
|
+
const u = e.bindings[s], d = E({
|
|
78
119
|
code: u,
|
|
79
120
|
localState: n,
|
|
80
121
|
rootState: r,
|
|
81
122
|
rootSetState: o,
|
|
82
123
|
context: t
|
|
83
124
|
});
|
|
84
|
-
|
|
125
|
+
se(i, s, d);
|
|
85
126
|
}
|
|
86
|
-
return
|
|
127
|
+
return i;
|
|
87
128
|
};
|
|
88
|
-
function
|
|
129
|
+
function ue({
|
|
89
130
|
block: e,
|
|
90
131
|
context: t,
|
|
91
132
|
shouldEvaluateBindings: n,
|
|
92
133
|
localState: r,
|
|
93
134
|
rootState: o,
|
|
94
|
-
rootSetState:
|
|
135
|
+
rootSetState: i
|
|
95
136
|
}) {
|
|
96
|
-
|
|
97
|
-
return n ?
|
|
98
|
-
block:
|
|
137
|
+
let s = ie(e, o.locale);
|
|
138
|
+
return s = s, n ? ae({
|
|
139
|
+
block: s,
|
|
99
140
|
localState: r,
|
|
100
141
|
rootState: o,
|
|
101
|
-
rootSetState:
|
|
142
|
+
rootSetState: i,
|
|
102
143
|
context: t
|
|
103
|
-
}) :
|
|
144
|
+
}) : s;
|
|
104
145
|
}
|
|
105
|
-
const
|
|
106
|
-
function
|
|
107
|
-
let r, o,
|
|
108
|
-
const
|
|
109
|
-
u = n.leading === !1 ? 0 : Date.now(),
|
|
146
|
+
const P = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
147
|
+
function de(e, t, n = {}) {
|
|
148
|
+
let r, o, i, s = null, u = 0;
|
|
149
|
+
const d = function() {
|
|
150
|
+
u = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(r, o), s || (r = o = null);
|
|
110
151
|
};
|
|
111
152
|
return function() {
|
|
112
153
|
const a = Date.now();
|
|
113
154
|
!u && n.leading === !1 && (u = a);
|
|
114
155
|
const m = t - (a - u);
|
|
115
|
-
return r = this, o = arguments, m <= 0 || m > t ? (
|
|
156
|
+
return r = this, o = arguments, m <= 0 || m > t ? (s && (clearTimeout(s), s = null), u = a, i = e.apply(r, o), s || (r = o = null)) : !s && n.trailing !== !1 && (s = setTimeout(d, m)), i;
|
|
116
157
|
};
|
|
117
158
|
}
|
|
118
159
|
function C(e, ...t) {
|
|
@@ -120,123 +161,123 @@ function C(e, ...t) {
|
|
|
120
161
|
for (let r = 1; r < arguments.length; r++) {
|
|
121
162
|
const o = arguments[r];
|
|
122
163
|
if (o != null)
|
|
123
|
-
for (const
|
|
124
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
164
|
+
for (const i in o)
|
|
165
|
+
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
125
166
|
}
|
|
126
167
|
return n;
|
|
127
168
|
}
|
|
128
|
-
function
|
|
169
|
+
function fe(e) {
|
|
129
170
|
for (const t of e)
|
|
130
171
|
switch (t.trigger) {
|
|
131
172
|
case "pageLoad":
|
|
132
|
-
|
|
173
|
+
he(t);
|
|
133
174
|
break;
|
|
134
175
|
case "scrollInView":
|
|
135
|
-
|
|
176
|
+
pe(t);
|
|
136
177
|
break;
|
|
137
178
|
}
|
|
138
179
|
}
|
|
139
|
-
function
|
|
180
|
+
function V(e) {
|
|
140
181
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
141
182
|
}
|
|
142
183
|
function j(e, t) {
|
|
143
|
-
const n =
|
|
144
|
-
for (const u of
|
|
145
|
-
for (const
|
|
146
|
-
|
|
184
|
+
const n = me(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
185
|
+
for (const u of s)
|
|
186
|
+
for (const d of n)
|
|
187
|
+
d in u || (u[d] = r[d]);
|
|
147
188
|
}
|
|
148
|
-
function
|
|
189
|
+
function me(e) {
|
|
149
190
|
const t = [];
|
|
150
191
|
for (const n of e.steps)
|
|
151
192
|
for (const r in n.styles)
|
|
152
193
|
t.indexOf(r) === -1 && t.push(r);
|
|
153
194
|
return t;
|
|
154
195
|
}
|
|
155
|
-
function
|
|
196
|
+
function he(e) {
|
|
156
197
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
157
198
|
if (!t.length) {
|
|
158
|
-
|
|
199
|
+
V(e.elementId || e.id || "");
|
|
159
200
|
return;
|
|
160
201
|
}
|
|
161
202
|
Array.from(t).forEach((n) => {
|
|
162
203
|
j(e, n), n.style.transition = "none", n.style.transitionDelay = "0", C(n.style, e.steps[0].styles), setTimeout(() => {
|
|
163
|
-
n.style.transition = `all ${e.duration}s ${
|
|
204
|
+
n.style.transition = `all ${e.duration}s ${P(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), C(n.style, e.steps[1].styles), setTimeout(() => {
|
|
164
205
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
165
206
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
166
207
|
});
|
|
167
208
|
});
|
|
168
209
|
}
|
|
169
|
-
function
|
|
210
|
+
function pe(e) {
|
|
170
211
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
171
212
|
if (!t.length) {
|
|
172
|
-
|
|
213
|
+
V(e.elementId || e.id || "");
|
|
173
214
|
return;
|
|
174
215
|
}
|
|
175
216
|
Array.from(t).forEach((n) => {
|
|
176
217
|
j(e, n);
|
|
177
218
|
let r = !1, o = !1;
|
|
178
|
-
function
|
|
219
|
+
function i() {
|
|
179
220
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
180
|
-
C(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
221
|
+
C(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
181
222
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
182
223
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
183
224
|
})) : e.repeat && r && !o && !u(n) && (r = !1, C(n.style, e.steps[0].styles));
|
|
184
225
|
}
|
|
185
|
-
const
|
|
226
|
+
const s = de(i, 200, {
|
|
186
227
|
leading: !1
|
|
187
228
|
});
|
|
188
229
|
function u(m) {
|
|
189
|
-
const g = m.getBoundingClientRect(), k = window.innerHeight,
|
|
190
|
-
return g.bottom >
|
|
230
|
+
const g = m.getBoundingClientRect(), k = window.innerHeight, l = (e.thresholdPercent || 0) / 100 * k;
|
|
231
|
+
return g.bottom > l && g.top < k - l;
|
|
191
232
|
}
|
|
192
|
-
const
|
|
233
|
+
const d = e.steps[0].styles;
|
|
193
234
|
function a() {
|
|
194
|
-
C(n.style,
|
|
235
|
+
C(n.style, d);
|
|
195
236
|
}
|
|
196
237
|
a(), setTimeout(() => {
|
|
197
|
-
n.style.transition = `all ${e.duration}s ${
|
|
198
|
-
}), document.addEventListener("scroll",
|
|
238
|
+
n.style.transition = `all ${e.duration}s ${P(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
239
|
+
}), document.addEventListener("scroll", s, {
|
|
199
240
|
capture: !0,
|
|
200
241
|
passive: !0
|
|
201
|
-
}),
|
|
242
|
+
}), i();
|
|
202
243
|
});
|
|
203
244
|
}
|
|
204
|
-
const
|
|
245
|
+
const F = (e) => Object.entries(e).map(([n, r]) => {
|
|
205
246
|
if (typeof r == "string")
|
|
206
|
-
return `${
|
|
207
|
-
}).filter(A),
|
|
247
|
+
return `${P(n)}: ${r};`;
|
|
248
|
+
}).filter(A), ye = (e) => F(e).join(`
|
|
208
249
|
`), x = ({
|
|
209
250
|
mediaQuery: e,
|
|
210
251
|
className: t,
|
|
211
252
|
styles: n
|
|
212
253
|
}) => {
|
|
213
254
|
const r = `.${t} {
|
|
214
|
-
${
|
|
255
|
+
${ye(n)}
|
|
215
256
|
}`;
|
|
216
257
|
return e ? `${e} {
|
|
217
258
|
${r}
|
|
218
259
|
}` : r;
|
|
219
260
|
};
|
|
220
|
-
function
|
|
261
|
+
function ge({
|
|
221
262
|
style: e
|
|
222
263
|
}) {
|
|
223
264
|
return e;
|
|
224
265
|
}
|
|
225
|
-
const
|
|
266
|
+
const ke = ({
|
|
226
267
|
block: e,
|
|
227
268
|
context: t
|
|
228
|
-
}) =>
|
|
269
|
+
}) => Se(ge({
|
|
229
270
|
style: e.style || {},
|
|
230
271
|
context: t,
|
|
231
272
|
block: e
|
|
232
273
|
}));
|
|
233
|
-
function
|
|
234
|
-
switch (
|
|
274
|
+
function Se(e) {
|
|
275
|
+
switch (b) {
|
|
235
276
|
case "svelte":
|
|
236
277
|
case "vue":
|
|
237
278
|
case "solid":
|
|
238
279
|
case "angular":
|
|
239
|
-
return
|
|
280
|
+
return F(e).join(" ");
|
|
240
281
|
case "qwik":
|
|
241
282
|
case "reactNative":
|
|
242
283
|
case "react":
|
|
@@ -244,21 +285,24 @@ function me(e) {
|
|
|
244
285
|
return e;
|
|
245
286
|
}
|
|
246
287
|
}
|
|
247
|
-
const
|
|
288
|
+
const K = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ce = ({
|
|
248
289
|
block: e,
|
|
249
|
-
registeredComponents: t
|
|
290
|
+
registeredComponents: t,
|
|
291
|
+
model: n
|
|
250
292
|
}) => {
|
|
251
|
-
var
|
|
252
|
-
const
|
|
253
|
-
if (!
|
|
293
|
+
var i;
|
|
294
|
+
const r = (i = e.component) == null ? void 0 : i.name;
|
|
295
|
+
if (!r)
|
|
254
296
|
return null;
|
|
255
|
-
const
|
|
256
|
-
if (
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
Could not find a registered component named "${n}".
|
|
297
|
+
const o = t[r];
|
|
298
|
+
if (!o || K(o, n)) {
|
|
299
|
+
console.warn(`
|
|
300
|
+
Could not find a registered component named "${r}".
|
|
260
301
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
261
|
-
|
|
302
|
+
return;
|
|
303
|
+
} else
|
|
304
|
+
return o;
|
|
305
|
+
}, xe = ({
|
|
262
306
|
block: e,
|
|
263
307
|
context: t
|
|
264
308
|
}) => {
|
|
@@ -268,7 +312,7 @@ const he = ({
|
|
|
268
312
|
} = e;
|
|
269
313
|
if (!(n != null && n.collection))
|
|
270
314
|
return;
|
|
271
|
-
const o =
|
|
315
|
+
const o = E({
|
|
272
316
|
code: n.collection,
|
|
273
317
|
localState: t.localState,
|
|
274
318
|
rootState: t.rootState,
|
|
@@ -277,41 +321,41 @@ const he = ({
|
|
|
277
321
|
});
|
|
278
322
|
if (!Array.isArray(o))
|
|
279
323
|
return;
|
|
280
|
-
const
|
|
281
|
-
return o.map((
|
|
324
|
+
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
325
|
+
return o.map((d, a) => ({
|
|
282
326
|
context: {
|
|
283
327
|
...t,
|
|
284
328
|
localState: {
|
|
285
329
|
...t.localState,
|
|
286
330
|
$index: a,
|
|
287
|
-
$item:
|
|
288
|
-
[
|
|
289
|
-
[`$${
|
|
331
|
+
$item: d,
|
|
332
|
+
[s]: d,
|
|
333
|
+
[`$${s}Index`]: a
|
|
290
334
|
}
|
|
291
335
|
},
|
|
292
336
|
block: r
|
|
293
337
|
}));
|
|
294
|
-
},
|
|
338
|
+
}, Be = (e, t) => {
|
|
295
339
|
var n;
|
|
296
340
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
297
341
|
builderLinkComponent: t
|
|
298
342
|
} : {};
|
|
299
|
-
},
|
|
300
|
-
var
|
|
301
|
-
return (
|
|
302
|
-
builderComponents: t
|
|
343
|
+
}, ve = (e, t, n) => {
|
|
344
|
+
var r;
|
|
345
|
+
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
346
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !K(s, n)))
|
|
303
347
|
} : {};
|
|
304
|
-
},
|
|
348
|
+
}, be = (e, t) => {
|
|
305
349
|
var n;
|
|
306
350
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
307
351
|
builderBlock: t
|
|
308
352
|
} : {};
|
|
309
|
-
},
|
|
353
|
+
}, Pe = (e, t) => {
|
|
310
354
|
var n;
|
|
311
355
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
312
356
|
builderContext: t
|
|
313
357
|
} : {};
|
|
314
|
-
},
|
|
358
|
+
}, Z = {
|
|
315
359
|
small: {
|
|
316
360
|
min: 320,
|
|
317
361
|
default: 321,
|
|
@@ -327,11 +371,11 @@ const he = ({
|
|
|
327
371
|
default: 991,
|
|
328
372
|
max: 1200
|
|
329
373
|
}
|
|
330
|
-
},
|
|
374
|
+
}, z = (e, t = Z) => `@media (max-width: ${t[e].max}px)`, we = ({
|
|
331
375
|
small: e,
|
|
332
376
|
medium: t
|
|
333
377
|
}) => {
|
|
334
|
-
const n =
|
|
378
|
+
const n = U(Z);
|
|
335
379
|
if (!e || !t)
|
|
336
380
|
return n;
|
|
337
381
|
const r = Math.floor(e / 2);
|
|
@@ -346,16 +390,16 @@ const he = ({
|
|
|
346
390
|
min: o,
|
|
347
391
|
default: o + 1
|
|
348
392
|
};
|
|
349
|
-
const
|
|
393
|
+
const i = n.medium.max + 1;
|
|
350
394
|
return n.large = {
|
|
351
395
|
max: 2e3,
|
|
352
396
|
// TODO: decide upper limit
|
|
353
|
-
min:
|
|
354
|
-
default:
|
|
397
|
+
min: i,
|
|
398
|
+
default: i + 1
|
|
355
399
|
}, n;
|
|
356
400
|
};
|
|
357
|
-
function
|
|
358
|
-
return /* @__PURE__ */
|
|
401
|
+
function Oe(e) {
|
|
402
|
+
return /* @__PURE__ */ c(
|
|
359
403
|
"style",
|
|
360
404
|
{
|
|
361
405
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -364,47 +408,47 @@ function xe(e) {
|
|
|
364
408
|
}
|
|
365
409
|
);
|
|
366
410
|
}
|
|
367
|
-
function
|
|
411
|
+
function Re(e) {
|
|
368
412
|
function t() {
|
|
369
413
|
const r = e.block;
|
|
370
414
|
return A(r.hide) ? !r.hide : A(r.show) ? r.show : !0;
|
|
371
415
|
}
|
|
372
416
|
function n() {
|
|
373
|
-
var p, y,
|
|
374
|
-
const r = e.block, o = r.responsiveStyles,
|
|
375
|
-
((p =
|
|
376
|
-
), u = o == null ? void 0 : o.large,
|
|
417
|
+
var p, y, $;
|
|
418
|
+
const r = e.block, o = r.responsiveStyles, i = e.context.content, s = we(
|
|
419
|
+
((p = i == null ? void 0 : i.meta) == null ? void 0 : p.breakpoints) || {}
|
|
420
|
+
), u = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, a = o == null ? void 0 : o.small, m = r.id;
|
|
377
421
|
if (!m)
|
|
378
422
|
return "";
|
|
379
423
|
const g = u ? x({
|
|
380
424
|
className: m,
|
|
381
425
|
styles: u
|
|
382
|
-
}) : "", k =
|
|
426
|
+
}) : "", k = d ? x({
|
|
383
427
|
className: m,
|
|
384
|
-
styles:
|
|
385
|
-
mediaQuery:
|
|
428
|
+
styles: d,
|
|
429
|
+
mediaQuery: z(
|
|
386
430
|
"medium",
|
|
387
|
-
|
|
431
|
+
s
|
|
388
432
|
)
|
|
389
433
|
}) : "", S = a ? x({
|
|
390
434
|
className: m,
|
|
391
435
|
styles: a,
|
|
392
|
-
mediaQuery:
|
|
436
|
+
mediaQuery: z(
|
|
393
437
|
"small",
|
|
394
|
-
|
|
438
|
+
s
|
|
395
439
|
)
|
|
396
|
-
}) : "",
|
|
397
|
-
let
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
|
|
440
|
+
}) : "", l = r.animations && r.animations.find((O) => O.trigger === "hover");
|
|
441
|
+
let f = "";
|
|
442
|
+
if (l) {
|
|
443
|
+
const O = (($ = (y = l.steps) == null ? void 0 : y[1]) == null ? void 0 : $.styles) || {};
|
|
444
|
+
f = x({
|
|
401
445
|
className: `${m}:hover`,
|
|
402
446
|
styles: {
|
|
403
|
-
...
|
|
404
|
-
transition: `all ${
|
|
405
|
-
|
|
447
|
+
...O,
|
|
448
|
+
transition: `all ${l.duration}s ${P(
|
|
449
|
+
l.easing
|
|
406
450
|
)}`,
|
|
407
|
-
transitionDelay:
|
|
451
|
+
transitionDelay: l.delay ? `${l.delay}s` : "0s"
|
|
408
452
|
}
|
|
409
453
|
}) || "";
|
|
410
454
|
}
|
|
@@ -412,11 +456,11 @@ function be(e) {
|
|
|
412
456
|
g,
|
|
413
457
|
k,
|
|
414
458
|
S,
|
|
415
|
-
|
|
459
|
+
f
|
|
416
460
|
].join(" ");
|
|
417
461
|
}
|
|
418
|
-
return /* @__PURE__ */
|
|
419
|
-
|
|
462
|
+
return /* @__PURE__ */ c(h, { children: n() && t() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
463
|
+
Oe,
|
|
420
464
|
{
|
|
421
465
|
id: "builderio-block",
|
|
422
466
|
styles: n(),
|
|
@@ -424,10 +468,10 @@ function be(e) {
|
|
|
424
468
|
}
|
|
425
469
|
) }) : null });
|
|
426
470
|
}
|
|
427
|
-
function
|
|
471
|
+
function Ae(e) {
|
|
428
472
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
429
473
|
}
|
|
430
|
-
const
|
|
474
|
+
const Ie = (e) => `on${Ae(e)}`, We = (e, t) => (n) => E({
|
|
431
475
|
code: e,
|
|
432
476
|
context: t.context,
|
|
433
477
|
localState: t.localState,
|
|
@@ -436,66 +480,66 @@ const Be = (e) => `on${ve(e)}`, Pe = (e, t) => (n) => W({
|
|
|
436
480
|
event: n,
|
|
437
481
|
isExpression: !1
|
|
438
482
|
});
|
|
439
|
-
function
|
|
483
|
+
function q(e) {
|
|
440
484
|
var r;
|
|
441
485
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
442
486
|
for (const o in n) {
|
|
443
487
|
if (!n.hasOwnProperty(o))
|
|
444
488
|
continue;
|
|
445
|
-
const
|
|
446
|
-
let
|
|
489
|
+
const i = n[o];
|
|
490
|
+
let s = Ie(o);
|
|
447
491
|
if (e.stripPrefix)
|
|
448
|
-
switch (
|
|
492
|
+
switch (b) {
|
|
449
493
|
case "vue":
|
|
450
|
-
|
|
494
|
+
s = s.replace("v-on:", "");
|
|
451
495
|
break;
|
|
452
496
|
case "svelte":
|
|
453
|
-
|
|
497
|
+
s = s.replace("on:", "");
|
|
454
498
|
break;
|
|
455
499
|
}
|
|
456
|
-
t[
|
|
500
|
+
t[s] = We(i, e);
|
|
457
501
|
}
|
|
458
502
|
return t;
|
|
459
503
|
}
|
|
460
|
-
function
|
|
504
|
+
function Ee({
|
|
461
505
|
properties: e
|
|
462
506
|
}) {
|
|
463
507
|
return e;
|
|
464
508
|
}
|
|
465
|
-
const
|
|
509
|
+
const Ne = (e) => ({
|
|
466
510
|
href: e.href
|
|
467
511
|
});
|
|
468
|
-
function
|
|
512
|
+
function N({
|
|
469
513
|
block: e,
|
|
470
514
|
context: t
|
|
471
515
|
}) {
|
|
472
516
|
var r;
|
|
473
517
|
const n = {
|
|
474
|
-
...
|
|
518
|
+
...Ne(e),
|
|
475
519
|
...e.properties,
|
|
476
520
|
"builder-id": e.id,
|
|
477
|
-
style:
|
|
521
|
+
style: ke({
|
|
478
522
|
block: e,
|
|
479
523
|
context: t
|
|
480
524
|
}),
|
|
481
|
-
[
|
|
525
|
+
[X()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
482
526
|
};
|
|
483
|
-
return
|
|
527
|
+
return Ee({
|
|
484
528
|
properties: n,
|
|
485
529
|
context: t,
|
|
486
530
|
block: e
|
|
487
531
|
});
|
|
488
532
|
}
|
|
489
|
-
function
|
|
490
|
-
return /* @__PURE__ */
|
|
491
|
-
|
|
533
|
+
function $e(e) {
|
|
534
|
+
return /* @__PURE__ */ c(
|
|
535
|
+
Y,
|
|
492
536
|
{
|
|
493
537
|
TagName: e.Wrapper,
|
|
494
|
-
attributes:
|
|
538
|
+
attributes: N({
|
|
495
539
|
block: e.block,
|
|
496
540
|
context: e.context
|
|
497
541
|
}),
|
|
498
|
-
actionAttributes:
|
|
542
|
+
actionAttributes: q({
|
|
499
543
|
block: e.block,
|
|
500
544
|
rootState: e.context.rootState,
|
|
501
545
|
rootSetState: e.context.rootSetState,
|
|
@@ -507,18 +551,18 @@ function Ae(e) {
|
|
|
507
551
|
}
|
|
508
552
|
);
|
|
509
553
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
512
|
-
}, []), /* @__PURE__ */
|
|
554
|
+
function Te(e) {
|
|
555
|
+
return B(() => {
|
|
556
|
+
}, []), /* @__PURE__ */ c(h, { children: e.children });
|
|
513
557
|
}
|
|
514
|
-
function
|
|
558
|
+
function Le(e) {
|
|
515
559
|
function t() {
|
|
516
560
|
return e.includeBlockProps ? {
|
|
517
|
-
...
|
|
561
|
+
...N({
|
|
518
562
|
block: e.block,
|
|
519
563
|
context: e.context
|
|
520
564
|
}),
|
|
521
|
-
...
|
|
565
|
+
...q({
|
|
522
566
|
block: e.block,
|
|
523
567
|
rootState: e.context.rootState,
|
|
524
568
|
rootSetState: e.context.rootSetState,
|
|
@@ -527,8 +571,8 @@ function Oe(e) {
|
|
|
527
571
|
})
|
|
528
572
|
} : {};
|
|
529
573
|
}
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
|
|
574
|
+
return /* @__PURE__ */ c(h, { children: e.Wrapper.load ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
575
|
+
Te,
|
|
532
576
|
{
|
|
533
577
|
load: e.Wrapper.load,
|
|
534
578
|
fallback: e.Wrapper.fallback,
|
|
@@ -536,16 +580,16 @@ function Oe(e) {
|
|
|
536
580
|
attributes: t(),
|
|
537
581
|
children: e.children
|
|
538
582
|
}
|
|
539
|
-
) }) : /* @__PURE__ */
|
|
583
|
+
) }) : /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
540
584
|
}
|
|
541
|
-
const
|
|
585
|
+
const ze = ({
|
|
542
586
|
componentOptions: e,
|
|
543
587
|
builderBlock: t,
|
|
544
588
|
context: n,
|
|
545
589
|
componentRef: r,
|
|
546
590
|
includeBlockProps: o,
|
|
547
|
-
isInteractive:
|
|
548
|
-
contextValue:
|
|
591
|
+
isInteractive: i,
|
|
592
|
+
contextValue: s
|
|
549
593
|
}) => {
|
|
550
594
|
const u = {
|
|
551
595
|
...e,
|
|
@@ -554,13 +598,13 @@ const We = ({
|
|
|
554
598
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
555
599
|
*/
|
|
556
600
|
...o ? {
|
|
557
|
-
attributes:
|
|
601
|
+
attributes: N({
|
|
558
602
|
block: t,
|
|
559
|
-
context:
|
|
603
|
+
context: s
|
|
560
604
|
})
|
|
561
605
|
} : {}
|
|
562
606
|
};
|
|
563
|
-
return
|
|
607
|
+
return i ? {
|
|
564
608
|
Wrapper: r,
|
|
565
609
|
block: t,
|
|
566
610
|
context: n,
|
|
@@ -568,15 +612,15 @@ const We = ({
|
|
|
568
612
|
includeBlockProps: o
|
|
569
613
|
} : u;
|
|
570
614
|
};
|
|
571
|
-
function
|
|
615
|
+
function D(e) {
|
|
572
616
|
var r;
|
|
573
|
-
const [t, n] =
|
|
574
|
-
() => e.isInteractive ?
|
|
617
|
+
const [t, n] = W(
|
|
618
|
+
() => e.isInteractive ? Le : e.componentRef
|
|
575
619
|
);
|
|
576
|
-
return /* @__PURE__ */
|
|
620
|
+
return /* @__PURE__ */ c(h, { children: e.componentRef ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
577
621
|
t,
|
|
578
622
|
{
|
|
579
|
-
...
|
|
623
|
+
...ze({
|
|
580
624
|
componentOptions: e.componentOptions,
|
|
581
625
|
builderBlock: e.builderBlock,
|
|
582
626
|
context: e.context,
|
|
@@ -586,8 +630,8 @@ function M(e) {
|
|
|
586
630
|
isInteractive: e.isInteractive,
|
|
587
631
|
contextValue: e.context
|
|
588
632
|
}),
|
|
589
|
-
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */
|
|
590
|
-
|
|
633
|
+
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ c(
|
|
634
|
+
w,
|
|
591
635
|
{
|
|
592
636
|
block: o,
|
|
593
637
|
context: e.context,
|
|
@@ -599,10 +643,10 @@ function M(e) {
|
|
|
599
643
|
}
|
|
600
644
|
) }) : null });
|
|
601
645
|
}
|
|
602
|
-
function
|
|
603
|
-
const [t, n] =
|
|
604
|
-
return /* @__PURE__ */
|
|
605
|
-
|
|
646
|
+
function M(e) {
|
|
647
|
+
const [t, n] = W(() => e.repeatContext);
|
|
648
|
+
return /* @__PURE__ */ c(_.Provider, { value: t, children: /* @__PURE__ */ c(
|
|
649
|
+
w,
|
|
606
650
|
{
|
|
607
651
|
block: e.block,
|
|
608
652
|
context: t,
|
|
@@ -611,23 +655,23 @@ function L(e) {
|
|
|
611
655
|
}
|
|
612
656
|
) });
|
|
613
657
|
}
|
|
614
|
-
function
|
|
658
|
+
function w(e) {
|
|
615
659
|
var m, g, k, S;
|
|
616
660
|
function t() {
|
|
617
|
-
return
|
|
661
|
+
return xe({
|
|
618
662
|
block: e.block,
|
|
619
663
|
context: e.context
|
|
620
664
|
});
|
|
621
665
|
}
|
|
622
|
-
const [n, r] =
|
|
666
|
+
const [n, r] = W(() => ({
|
|
623
667
|
value: null,
|
|
624
668
|
update: !1
|
|
625
669
|
}));
|
|
626
670
|
function o() {
|
|
627
|
-
var
|
|
628
|
-
if (n.value && !n.update && !
|
|
671
|
+
var f;
|
|
672
|
+
if (n.value && !n.update && !G())
|
|
629
673
|
return n.value;
|
|
630
|
-
const
|
|
674
|
+
const l = (f = e.block.repeat) != null && f.collection ? e.block : ue({
|
|
631
675
|
block: e.block,
|
|
632
676
|
localState: e.context.localState,
|
|
633
677
|
rootState: e.context.rootState,
|
|
@@ -635,75 +679,77 @@ function P(e) {
|
|
|
635
679
|
context: e.context.context,
|
|
636
680
|
shouldEvaluateBindings: !0
|
|
637
681
|
});
|
|
638
|
-
return n.value =
|
|
682
|
+
return n.value = l, n.update = !1, l;
|
|
639
683
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
684
|
+
function i() {
|
|
685
|
+
return Ce({
|
|
642
686
|
block: o(),
|
|
643
|
-
registeredComponents: e.registeredComponents
|
|
687
|
+
registeredComponents: e.registeredComponents,
|
|
688
|
+
model: e.context.model
|
|
644
689
|
});
|
|
645
690
|
}
|
|
646
|
-
function
|
|
647
|
-
var
|
|
648
|
-
return e.block.tagName === "a" || ((
|
|
691
|
+
function s() {
|
|
692
|
+
var f;
|
|
693
|
+
return e.block.tagName === "a" || ((f = o().properties) == null ? void 0 : f.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
649
694
|
}
|
|
650
695
|
function u() {
|
|
651
696
|
var p, y;
|
|
652
697
|
if ((p = e.block.repeat) != null && p.collection)
|
|
653
698
|
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
654
|
-
const
|
|
655
|
-
return ("show" in o() ? o().show : !0) && !
|
|
699
|
+
const l = "hide" in o() ? o().hide : !1;
|
|
700
|
+
return ("show" in o() ? o().show : !0) && !l;
|
|
656
701
|
}
|
|
657
|
-
function
|
|
658
|
-
var
|
|
659
|
-
return !((
|
|
702
|
+
function d() {
|
|
703
|
+
var f, p;
|
|
704
|
+
return !((f = i == null ? void 0 : i()) != null && f.component) && !t() ? (p = o().children) != null ? p : [] : [];
|
|
660
705
|
}
|
|
661
706
|
function a() {
|
|
662
|
-
var
|
|
707
|
+
var l, f, p, y;
|
|
663
708
|
return {
|
|
664
|
-
blockChildren: (
|
|
665
|
-
componentRef: (
|
|
709
|
+
blockChildren: (l = o().children) != null ? l : [],
|
|
710
|
+
componentRef: (f = i == null ? void 0 : i()) == null ? void 0 : f.component,
|
|
666
711
|
componentOptions: {
|
|
667
|
-
...
|
|
668
|
-
...
|
|
669
|
-
...
|
|
670
|
-
...
|
|
671
|
-
...
|
|
672
|
-
|
|
673
|
-
e.registeredComponents
|
|
712
|
+
...te(o()),
|
|
713
|
+
...be(i(), o()),
|
|
714
|
+
...Pe(i(), e.context),
|
|
715
|
+
...Be(i(), e.linkComponent),
|
|
716
|
+
...ve(
|
|
717
|
+
i(),
|
|
718
|
+
e.registeredComponents,
|
|
719
|
+
e.context.model
|
|
674
720
|
)
|
|
675
721
|
},
|
|
676
722
|
context: e.context,
|
|
677
723
|
linkComponent: e.linkComponent,
|
|
678
724
|
registeredComponents: e.registeredComponents,
|
|
679
725
|
builderBlock: o(),
|
|
680
|
-
includeBlockProps: ((p =
|
|
681
|
-
isInteractive: !((y =
|
|
726
|
+
includeBlockProps: ((p = i == null ? void 0 : i()) == null ? void 0 : p.noWrap) === !0,
|
|
727
|
+
isInteractive: !((y = i == null ? void 0 : i()) != null && y.isRSC && b === "rsc")
|
|
682
728
|
};
|
|
683
729
|
}
|
|
684
|
-
return
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
730
|
+
return B(() => {
|
|
731
|
+
const l = o().id, f = o().animations;
|
|
732
|
+
f && l && fe(
|
|
733
|
+
f.map((p) => ({
|
|
688
734
|
...p,
|
|
689
|
-
elementId:
|
|
735
|
+
elementId: l
|
|
690
736
|
}))
|
|
691
737
|
);
|
|
692
|
-
}, []),
|
|
738
|
+
}, []), B(() => {
|
|
693
739
|
n.update = !0;
|
|
694
|
-
}), /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
(m =
|
|
697
|
-
|
|
740
|
+
}), /* @__PURE__ */ c(h, { children: u() ? /* @__PURE__ */ R(h, { children: [
|
|
741
|
+
/* @__PURE__ */ c(Re, { block: o(), context: e.context }),
|
|
742
|
+
(m = i == null ? void 0 : i()) != null && m.noWrap ? t() ? /* @__PURE__ */ c(h, { children: (S = t()) == null ? void 0 : S.map((l, f) => /* @__PURE__ */ c(
|
|
743
|
+
M,
|
|
698
744
|
{
|
|
699
|
-
repeatContext:
|
|
700
|
-
block:
|
|
745
|
+
repeatContext: l.context,
|
|
746
|
+
block: l.block,
|
|
701
747
|
registeredComponents: e.registeredComponents,
|
|
702
748
|
linkComponent: e.linkComponent
|
|
703
749
|
},
|
|
704
|
-
|
|
705
|
-
)) }) : /* @__PURE__ */
|
|
706
|
-
|
|
750
|
+
f
|
|
751
|
+
)) }) : /* @__PURE__ */ c(
|
|
752
|
+
D,
|
|
707
753
|
{
|
|
708
754
|
componentRef: a().componentRef,
|
|
709
755
|
componentOptions: a().componentOptions,
|
|
@@ -715,24 +761,24 @@ function P(e) {
|
|
|
715
761
|
includeBlockProps: a().includeBlockProps,
|
|
716
762
|
isInteractive: a().isInteractive
|
|
717
763
|
}
|
|
718
|
-
) : /* @__PURE__ */
|
|
719
|
-
|
|
764
|
+
) : /* @__PURE__ */ c(h, { children: t() ? /* @__PURE__ */ c(h, { children: (k = t()) == null ? void 0 : k.map((l, f) => /* @__PURE__ */ c(
|
|
765
|
+
M,
|
|
720
766
|
{
|
|
721
|
-
repeatContext:
|
|
722
|
-
block:
|
|
767
|
+
repeatContext: l.context,
|
|
768
|
+
block: l.block,
|
|
723
769
|
registeredComponents: e.registeredComponents,
|
|
724
770
|
linkComponent: e.linkComponent
|
|
725
771
|
},
|
|
726
|
-
|
|
772
|
+
f
|
|
727
773
|
)) }) : /* @__PURE__ */ R(
|
|
728
|
-
|
|
774
|
+
$e,
|
|
729
775
|
{
|
|
730
|
-
Wrapper:
|
|
776
|
+
Wrapper: s(),
|
|
731
777
|
block: o(),
|
|
732
778
|
context: e.context,
|
|
733
779
|
children: [
|
|
734
|
-
/* @__PURE__ */
|
|
735
|
-
|
|
780
|
+
/* @__PURE__ */ c(
|
|
781
|
+
D,
|
|
736
782
|
{
|
|
737
783
|
componentRef: a().componentRef,
|
|
738
784
|
componentOptions: a().componentOptions,
|
|
@@ -745,40 +791,40 @@ function P(e) {
|
|
|
745
791
|
isInteractive: a().isInteractive
|
|
746
792
|
}
|
|
747
793
|
),
|
|
748
|
-
(g =
|
|
749
|
-
|
|
794
|
+
(g = d()) == null ? void 0 : g.map((l) => /* @__PURE__ */ c(
|
|
795
|
+
w,
|
|
750
796
|
{
|
|
751
|
-
block:
|
|
797
|
+
block: l,
|
|
752
798
|
registeredComponents: e.registeredComponents,
|
|
753
799
|
linkComponent: e.linkComponent,
|
|
754
800
|
context: e.context
|
|
755
801
|
},
|
|
756
|
-
|
|
802
|
+
l.id
|
|
757
803
|
))
|
|
758
804
|
]
|
|
759
805
|
}
|
|
760
806
|
) })
|
|
761
807
|
] }) : null });
|
|
762
808
|
}
|
|
763
|
-
function
|
|
764
|
-
const t =
|
|
809
|
+
function De(e) {
|
|
810
|
+
const t = Q(null);
|
|
765
811
|
function n() {
|
|
766
|
-
var
|
|
812
|
+
var s;
|
|
767
813
|
return [
|
|
768
814
|
"builder-blocks",
|
|
769
|
-
(
|
|
815
|
+
(s = e.blocks) != null && s.length ? "" : "no-blocks",
|
|
770
816
|
e.classNameProp
|
|
771
817
|
].filter(Boolean).join(" ");
|
|
772
818
|
}
|
|
773
819
|
function r() {
|
|
774
820
|
if (!e.path)
|
|
775
821
|
return;
|
|
776
|
-
const
|
|
777
|
-
return e.path.startsWith(
|
|
822
|
+
const s = "component.options.";
|
|
823
|
+
return e.path.startsWith(s) ? e.path : `${s}${e.path || ""}`;
|
|
778
824
|
}
|
|
779
825
|
function o() {
|
|
780
|
-
var
|
|
781
|
-
|
|
826
|
+
var s, u;
|
|
827
|
+
L() && !((s = e.blocks) != null && s.length) && ((u = window.parent) == null || u.postMessage(
|
|
782
828
|
{
|
|
783
829
|
type: "builder.clickEmptyBlocks",
|
|
784
830
|
data: {
|
|
@@ -789,9 +835,9 @@ function Ee(e) {
|
|
|
789
835
|
"*"
|
|
790
836
|
));
|
|
791
837
|
}
|
|
792
|
-
function
|
|
793
|
-
var
|
|
794
|
-
|
|
838
|
+
function i() {
|
|
839
|
+
var s, u;
|
|
840
|
+
L() && !((s = e.blocks) != null && s.length) && ((u = window.parent) == null || u.postMessage(
|
|
795
841
|
{
|
|
796
842
|
type: "builder.hoverEmptyBlocks",
|
|
797
843
|
data: {
|
|
@@ -802,9 +848,9 @@ function Ee(e) {
|
|
|
802
848
|
"*"
|
|
803
849
|
));
|
|
804
850
|
}
|
|
805
|
-
return
|
|
851
|
+
return B(() => {
|
|
806
852
|
}, []), /* @__PURE__ */ R(h, { children: [
|
|
807
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ c(
|
|
808
854
|
e.BlocksWrapper,
|
|
809
855
|
{
|
|
810
856
|
ref: t,
|
|
@@ -812,25 +858,25 @@ function Ee(e) {
|
|
|
812
858
|
"builder-path": r(),
|
|
813
859
|
"builder-parent-id": e.parent,
|
|
814
860
|
style: e.styleProp,
|
|
815
|
-
onClick: (
|
|
816
|
-
onMouseEnter: (
|
|
817
|
-
onKeyPress: (
|
|
861
|
+
onClick: (s) => o(),
|
|
862
|
+
onMouseEnter: (s) => i(),
|
|
863
|
+
onKeyPress: (s) => o(),
|
|
818
864
|
...e.BlocksWrapperProps,
|
|
819
865
|
children: e.children
|
|
820
866
|
}
|
|
821
867
|
),
|
|
822
|
-
/* @__PURE__ */
|
|
868
|
+
/* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
823
869
|
display: flex;
|
|
824
870
|
flex-direction: column;
|
|
825
871
|
align-items: stretch;
|
|
826
872
|
}` })
|
|
827
873
|
] });
|
|
828
874
|
}
|
|
829
|
-
function
|
|
830
|
-
var r, o,
|
|
831
|
-
const t =
|
|
832
|
-
return /* @__PURE__ */
|
|
833
|
-
|
|
875
|
+
function Me(e) {
|
|
876
|
+
var r, o, i;
|
|
877
|
+
const t = T(_), n = T(ee);
|
|
878
|
+
return /* @__PURE__ */ c(
|
|
879
|
+
De,
|
|
834
880
|
{
|
|
835
881
|
blocks: e.blocks,
|
|
836
882
|
parent: e.parent,
|
|
@@ -839,32 +885,32 @@ function Ne(e) {
|
|
|
839
885
|
classNameProp: e.className,
|
|
840
886
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
841
887
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
842
|
-
children: e.blocks ? /* @__PURE__ */
|
|
843
|
-
|
|
888
|
+
children: e.blocks ? /* @__PURE__ */ c(h, { children: (i = e.blocks) == null ? void 0 : i.map((s) => /* @__PURE__ */ c(
|
|
889
|
+
w,
|
|
844
890
|
{
|
|
845
|
-
block:
|
|
891
|
+
block: s,
|
|
846
892
|
linkComponent: e.linkComponent,
|
|
847
893
|
context: e.context || t,
|
|
848
894
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
849
895
|
},
|
|
850
|
-
|
|
896
|
+
s.id
|
|
851
897
|
)) }) : null
|
|
852
898
|
}
|
|
853
899
|
);
|
|
854
900
|
}
|
|
855
|
-
const
|
|
901
|
+
const Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
856
902
|
__proto__: null,
|
|
857
|
-
default:
|
|
903
|
+
default: Me
|
|
858
904
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
859
905
|
export {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
906
|
+
w as Block,
|
|
907
|
+
Me as Blocks,
|
|
908
|
+
ee as ComponentsContext,
|
|
909
|
+
Oe as InlinedStyles,
|
|
910
|
+
Ze as blocks,
|
|
911
|
+
U as fastClone,
|
|
912
|
+
we as getSizesForBreakpoints,
|
|
913
|
+
Se as mapStyleObjToStrIfNeeded,
|
|
914
|
+
se as set,
|
|
915
|
+
he as triggerAnimation
|
|
870
916
|
};
|