@builder.io/sdk-react-nextjs 0.15.2 → 0.16.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 +26 -26
- package/lib/browser/blocks-exports.mjs +576 -583
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-f64a4c2d.cjs → server-entry-555ce264.cjs} +1 -1
- package/lib/browser/{server-entry-7f981733.js → server-entry-8a4d2728.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +36 -36
- package/lib/edge/blocks-exports.mjs +811 -818
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-f64a4c2d.cjs → server-entry-555ce264.cjs} +1 -1
- package/lib/edge/{server-entry-7f981733.js → server-entry-8a4d2728.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +26 -26
- package/lib/node/blocks-exports.mjs +555 -562
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-6f522a33.cjs → node-runtime-1e70fe16.cjs} +1 -1
- package/lib/node/{node-runtime-3f0a39c5.js → node-runtime-753c71f6.js} +1 -1
- package/lib/node/{server-entry-68c26de0.cjs → server-entry-61a8c25a.cjs} +1 -1
- package/lib/node/{server-entry-46bde4f0.js → server-entry-e47775d7.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/components/content/components/styles.d.ts +2 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/cjs/components/inlined-script.d.ts +2 -1
- package/types/cjs/components/inlined-styles.d.ts +2 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/context/types.d.ts +1 -0
- package/types/cjs/types/builder-props.d.ts +3 -0
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/components/content/components/styles.d.ts +2 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/esm/components/inlined-script.d.ts +2 -1
- package/types/esm/components/inlined-styles.d.ts +2 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/context/types.d.ts +1 -0
- package/types/esm/types/builder-props.d.ts +3 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as M, isEditing as V, isBrowser as
|
|
7
|
-
import { useRef as
|
|
8
|
-
import { useRouter as
|
|
2
|
+
var Ae = Object.defineProperty;
|
|
3
|
+
var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ee = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as w, jsxs as E } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as M, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, fastClone as ie, init as Fe, getDefaultCanTrack as q, _track as ue, isPreviewing as Le, createEditorListener as Oe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as ke, serializeComponentInfo as me, handleABTestingSync as Ue } from "./server-entry-8a4d2728.js";
|
|
7
|
+
import { useRef as oe, useState as N, useEffect as R, createContext as _e } from "react";
|
|
8
|
+
import { useRouter as Ke } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
10
|
+
const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qe = (e) => typeof e == "string" && ze.has(e.toLowerCase());
|
|
11
|
+
function ae(e) {
|
|
12
|
+
return /* @__PURE__ */ l(w, { children: qe(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
14
|
const j = () => {
|
|
15
15
|
switch (M) {
|
|
@@ -25,7 +25,7 @@ const j = () => {
|
|
|
25
25
|
return "class";
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function Ye(e) {
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
@@ -39,8 +39,8 @@ function Je(e) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
42
|
+
return /* @__PURE__ */ l(
|
|
43
|
+
ae,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
46
46
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -49,14 +49,14 @@ function Je(e) {
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Je(e) {
|
|
53
53
|
var t;
|
|
54
54
|
return {
|
|
55
55
|
...(t = e.component) == null ? void 0 : t.options,
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const Qe = ({
|
|
60
60
|
builder: e,
|
|
61
61
|
context: t,
|
|
62
62
|
event: n,
|
|
@@ -68,14 +68,14 @@ const Ge = ({
|
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n
|
|
71
|
-
}),
|
|
71
|
+
}), Ge = () => ({
|
|
72
72
|
isEditing: V(),
|
|
73
|
-
isBrowser:
|
|
74
|
-
isServer: !
|
|
75
|
-
getUserAttributes: () =>
|
|
76
|
-
}),
|
|
73
|
+
isBrowser: L(),
|
|
74
|
+
isServer: !L(),
|
|
75
|
+
getUserAttributes: () => $e()
|
|
76
|
+
}), Xe = (e, {
|
|
77
77
|
isExpression: t = !0
|
|
78
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
78
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
|
|
79
79
|
code: e,
|
|
80
80
|
builder: t,
|
|
81
81
|
context: n,
|
|
@@ -84,19 +84,19 @@ const Ge = ({
|
|
|
84
84
|
rootSetState: a,
|
|
85
85
|
rootState: r
|
|
86
86
|
}) => {
|
|
87
|
-
const
|
|
87
|
+
const c = Qe({
|
|
88
88
|
builder: t,
|
|
89
89
|
context: n,
|
|
90
90
|
event: i,
|
|
91
|
-
state:
|
|
91
|
+
state: Ce({
|
|
92
92
|
rootState: r,
|
|
93
93
|
localState: o,
|
|
94
94
|
rootSetState: a
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
|
-
return new Function(...
|
|
97
|
+
return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function Ce({
|
|
100
100
|
rootState: e,
|
|
101
101
|
localState: t,
|
|
102
102
|
rootSetState: n
|
|
@@ -106,7 +106,7 @@ function Ie({
|
|
|
106
106
|
if (t && o in t)
|
|
107
107
|
return t[o];
|
|
108
108
|
const a = i[o];
|
|
109
|
-
return typeof a == "object" && a !== null ?
|
|
109
|
+
return typeof a == "object" && a !== null ? Ce({
|
|
110
110
|
rootState: a,
|
|
111
111
|
localState: void 0,
|
|
112
112
|
rootSetState: n ? (r) => {
|
|
@@ -121,17 +121,17 @@ function Ie({
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ze() {
|
|
125
125
|
var e;
|
|
126
126
|
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const et = () => {
|
|
129
129
|
var i;
|
|
130
|
-
if (!
|
|
130
|
+
if (!Ze())
|
|
131
131
|
return !1;
|
|
132
132
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
133
133
|
return e && t && !n ? (J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
134
|
-
},
|
|
134
|
+
}, tt = (e) => (L() || et(), fe(e)), W = class W {
|
|
135
135
|
static getCacheKey(t) {
|
|
136
136
|
return JSON.stringify({
|
|
137
137
|
...t,
|
|
@@ -149,8 +149,8 @@ const tt = () => {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
|
|
153
|
-
let
|
|
152
|
+
ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
|
|
153
|
+
let F = W;
|
|
154
154
|
function H({
|
|
155
155
|
code: e,
|
|
156
156
|
context: t,
|
|
@@ -159,31 +159,31 @@ function H({
|
|
|
159
159
|
rootSetState: o,
|
|
160
160
|
event: a,
|
|
161
161
|
isExpression: r = !0,
|
|
162
|
-
enableCache:
|
|
162
|
+
enableCache: c
|
|
163
163
|
}) {
|
|
164
164
|
if (e === "")
|
|
165
165
|
return;
|
|
166
166
|
const s = {
|
|
167
|
-
code:
|
|
167
|
+
code: Xe(e, {
|
|
168
168
|
isExpression: r
|
|
169
169
|
}),
|
|
170
|
-
builder:
|
|
170
|
+
builder: Ge(),
|
|
171
171
|
context: t,
|
|
172
172
|
event: a,
|
|
173
173
|
rootSetState: o,
|
|
174
174
|
rootState: i,
|
|
175
175
|
localState: n
|
|
176
176
|
};
|
|
177
|
-
if (
|
|
178
|
-
const d =
|
|
177
|
+
if (c) {
|
|
178
|
+
const d = F.getCacheKey(s), m = F.getCachedValue(d);
|
|
179
179
|
if (m)
|
|
180
180
|
return m.value;
|
|
181
181
|
}
|
|
182
182
|
try {
|
|
183
|
-
const d =
|
|
184
|
-
if (
|
|
185
|
-
const m =
|
|
186
|
-
|
|
183
|
+
const d = tt(s);
|
|
184
|
+
if (c) {
|
|
185
|
+
const m = F.getCacheKey(s);
|
|
186
|
+
F.setCachedValue(m, d);
|
|
187
187
|
}
|
|
188
188
|
return d;
|
|
189
189
|
} catch (d) {
|
|
@@ -193,13 +193,13 @@ function H({
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const nt = (e, t, n) => {
|
|
197
197
|
if (Object(e) !== e)
|
|
198
198
|
return e;
|
|
199
199
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
200
200
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
201
201
|
};
|
|
202
|
-
const
|
|
202
|
+
const it = ({
|
|
203
203
|
block: e,
|
|
204
204
|
context: t,
|
|
205
205
|
localState: n,
|
|
@@ -208,7 +208,7 @@ const ot = ({
|
|
|
208
208
|
}) => {
|
|
209
209
|
if (!e.bindings)
|
|
210
210
|
return e;
|
|
211
|
-
const a =
|
|
211
|
+
const a = ie(e), r = {
|
|
212
212
|
...a,
|
|
213
213
|
properties: {
|
|
214
214
|
...a.properties
|
|
@@ -217,8 +217,8 @@ const ot = ({
|
|
|
217
217
|
...a.actions
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
|
-
for (const
|
|
221
|
-
const s = e.bindings[
|
|
220
|
+
for (const c in e.bindings) {
|
|
221
|
+
const s = e.bindings[c], d = H({
|
|
222
222
|
code: s,
|
|
223
223
|
localState: n,
|
|
224
224
|
rootState: i,
|
|
@@ -226,7 +226,7 @@ const ot = ({
|
|
|
226
226
|
context: t,
|
|
227
227
|
enableCache: !0
|
|
228
228
|
});
|
|
229
|
-
|
|
229
|
+
nt(r, c, d);
|
|
230
230
|
}
|
|
231
231
|
return r;
|
|
232
232
|
};
|
|
@@ -239,7 +239,7 @@ function Y({
|
|
|
239
239
|
rootSetState: a
|
|
240
240
|
}) {
|
|
241
241
|
const r = e;
|
|
242
|
-
return n ?
|
|
242
|
+
return n ? it({
|
|
243
243
|
block: r,
|
|
244
244
|
localState: i,
|
|
245
245
|
rootState: o,
|
|
@@ -247,36 +247,36 @@ function Y({
|
|
|
247
247
|
context: t
|
|
248
248
|
}) : r;
|
|
249
249
|
}
|
|
250
|
-
const
|
|
250
|
+
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", we = (e) => Object.entries(e).map(([n, i]) => {
|
|
251
251
|
if (typeof i == "string")
|
|
252
|
-
return `${
|
|
253
|
-
}).filter(z),
|
|
252
|
+
return `${re(n)}: ${i};`;
|
|
253
|
+
}).filter(z), ot = (e) => we(e).join(`
|
|
254
254
|
`), _ = ({
|
|
255
255
|
mediaQuery: e,
|
|
256
256
|
className: t,
|
|
257
257
|
styles: n
|
|
258
258
|
}) => {
|
|
259
259
|
const i = `.${t} {
|
|
260
|
-
${
|
|
260
|
+
${ot(n)}
|
|
261
261
|
}`;
|
|
262
262
|
return e ? `${e} {
|
|
263
263
|
${i}
|
|
264
264
|
}` : i;
|
|
265
265
|
};
|
|
266
|
-
function
|
|
266
|
+
function at({
|
|
267
267
|
style: e
|
|
268
268
|
}) {
|
|
269
269
|
return e;
|
|
270
270
|
}
|
|
271
|
-
const
|
|
271
|
+
const rt = ({
|
|
272
272
|
block: e,
|
|
273
273
|
context: t
|
|
274
|
-
}) =>
|
|
274
|
+
}) => Ie(at({
|
|
275
275
|
style: e.style || {},
|
|
276
276
|
context: t,
|
|
277
277
|
block: e
|
|
278
278
|
}));
|
|
279
|
-
function
|
|
279
|
+
function Ie(e) {
|
|
280
280
|
switch (M) {
|
|
281
281
|
case "svelte":
|
|
282
282
|
case "vue":
|
|
@@ -312,7 +312,7 @@ const ct = ({
|
|
|
312
312
|
console.warn(`
|
|
313
313
|
Could not find a registered component named "${i}".
|
|
314
314
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
315
|
-
},
|
|
315
|
+
}, lt = ({
|
|
316
316
|
block: e,
|
|
317
317
|
context: t
|
|
318
318
|
}) => {
|
|
@@ -346,23 +346,27 @@ const ct = ({
|
|
|
346
346
|
},
|
|
347
347
|
block: i
|
|
348
348
|
}));
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
} : {}
|
|
364
|
-
|
|
365
|
-
|
|
349
|
+
}, st = (e, t) => {
|
|
350
|
+
var n;
|
|
351
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
352
|
+
builderLinkComponent: t
|
|
353
|
+
} : {};
|
|
354
|
+
}, dt = (e, t) => {
|
|
355
|
+
var n;
|
|
356
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
357
|
+
builderComponents: t
|
|
358
|
+
} : {};
|
|
359
|
+
}, ut = (e, t) => {
|
|
360
|
+
var n;
|
|
361
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
362
|
+
builderBlock: t
|
|
363
|
+
} : {};
|
|
364
|
+
}, mt = (e, t) => {
|
|
365
|
+
var n;
|
|
366
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
367
|
+
builderContext: t
|
|
368
|
+
} : {};
|
|
369
|
+
}, Te = {
|
|
366
370
|
small: {
|
|
367
371
|
min: 320,
|
|
368
372
|
default: 321,
|
|
@@ -378,11 +382,11 @@ const ct = ({
|
|
|
378
382
|
default: 991,
|
|
379
383
|
max: 1200
|
|
380
384
|
}
|
|
381
|
-
},
|
|
385
|
+
}, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
|
|
382
386
|
small: e,
|
|
383
387
|
medium: t
|
|
384
388
|
}) => {
|
|
385
|
-
const n =
|
|
389
|
+
const n = ie(Te);
|
|
386
390
|
if (!e || !t)
|
|
387
391
|
return n;
|
|
388
392
|
const i = Math.floor(e / 2);
|
|
@@ -405,16 +409,17 @@ const ct = ({
|
|
|
405
409
|
default: a + 1
|
|
406
410
|
}, n;
|
|
407
411
|
};
|
|
408
|
-
function
|
|
409
|
-
return /* @__PURE__ */
|
|
412
|
+
function Q(e) {
|
|
413
|
+
return /* @__PURE__ */ l(
|
|
410
414
|
"style",
|
|
411
415
|
{
|
|
412
416
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
413
|
-
"data-id": e.id
|
|
417
|
+
"data-id": e.id,
|
|
418
|
+
nonce: e.nonce
|
|
414
419
|
}
|
|
415
420
|
);
|
|
416
421
|
}
|
|
417
|
-
function
|
|
422
|
+
function ft(e) {
|
|
418
423
|
const t = function() {
|
|
419
424
|
const o = Y({
|
|
420
425
|
block: e.block,
|
|
@@ -426,7 +431,7 @@ function ht(e) {
|
|
|
426
431
|
});
|
|
427
432
|
return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
|
|
428
433
|
}, n = function() {
|
|
429
|
-
var
|
|
434
|
+
var S, b, k;
|
|
430
435
|
const o = Y({
|
|
431
436
|
block: e.block,
|
|
432
437
|
localState: e.context.localState,
|
|
@@ -434,56 +439,63 @@ function ht(e) {
|
|
|
434
439
|
rootSetState: e.context.rootSetState,
|
|
435
440
|
context: e.context.context,
|
|
436
441
|
shouldEvaluateBindings: !0
|
|
437
|
-
}), a = o.responsiveStyles, r = e.context.content,
|
|
438
|
-
((
|
|
442
|
+
}), a = o.responsiveStyles, r = e.context.content, c = Re(
|
|
443
|
+
((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
|
|
439
444
|
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
440
445
|
if (!u)
|
|
441
446
|
return "";
|
|
442
447
|
const h = s ? _({
|
|
443
448
|
className: u,
|
|
444
449
|
styles: s
|
|
445
|
-
}) : "",
|
|
450
|
+
}) : "", p = d ? _({
|
|
446
451
|
className: u,
|
|
447
452
|
styles: d,
|
|
448
|
-
mediaQuery:
|
|
453
|
+
mediaQuery: he(
|
|
449
454
|
"medium",
|
|
450
|
-
|
|
455
|
+
c
|
|
451
456
|
)
|
|
452
|
-
}) : "",
|
|
457
|
+
}) : "", I = m ? _({
|
|
453
458
|
className: u,
|
|
454
459
|
styles: m,
|
|
455
|
-
mediaQuery:
|
|
460
|
+
mediaQuery: he(
|
|
456
461
|
"small",
|
|
457
|
-
|
|
462
|
+
c
|
|
458
463
|
)
|
|
459
|
-
}) : "",
|
|
464
|
+
}) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
|
|
460
465
|
let A = "";
|
|
461
|
-
if (
|
|
462
|
-
const
|
|
466
|
+
if (y) {
|
|
467
|
+
const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
|
|
463
468
|
A = _({
|
|
464
469
|
className: `${u}:hover`,
|
|
465
470
|
styles: {
|
|
466
|
-
...
|
|
467
|
-
transition: `all ${
|
|
468
|
-
|
|
471
|
+
...T,
|
|
472
|
+
transition: `all ${y.duration}s ${re(
|
|
473
|
+
y.easing
|
|
469
474
|
)}`,
|
|
470
|
-
transitionDelay:
|
|
475
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
471
476
|
}
|
|
472
477
|
}) || "";
|
|
473
478
|
}
|
|
474
479
|
return [
|
|
475
480
|
h,
|
|
476
|
-
|
|
477
|
-
|
|
481
|
+
p,
|
|
482
|
+
I,
|
|
478
483
|
A
|
|
479
484
|
].join(" ");
|
|
480
485
|
};
|
|
481
|
-
return /* @__PURE__ */
|
|
486
|
+
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
487
|
+
Q,
|
|
488
|
+
{
|
|
489
|
+
id: "builderio-block",
|
|
490
|
+
styles: n(),
|
|
491
|
+
nonce: e.context.nonce
|
|
492
|
+
}
|
|
493
|
+
) }) : null });
|
|
482
494
|
}
|
|
483
|
-
function
|
|
495
|
+
function ht(e) {
|
|
484
496
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
485
497
|
}
|
|
486
|
-
const gt = (e) => `on${
|
|
498
|
+
const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => H({
|
|
487
499
|
code: e,
|
|
488
500
|
context: t.context,
|
|
489
501
|
localState: t.localState,
|
|
@@ -493,7 +505,7 @@ const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => H({
|
|
|
493
505
|
isExpression: !1,
|
|
494
506
|
enableCache: !0
|
|
495
507
|
});
|
|
496
|
-
function
|
|
508
|
+
function Ee(e) {
|
|
497
509
|
var i;
|
|
498
510
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
499
511
|
for (const o in n) {
|
|
@@ -510,7 +522,7 @@ function Be(e) {
|
|
|
510
522
|
r = r.replace("on:", "");
|
|
511
523
|
break;
|
|
512
524
|
}
|
|
513
|
-
t[r] =
|
|
525
|
+
t[r] = bt(a, e);
|
|
514
526
|
}
|
|
515
527
|
return t;
|
|
516
528
|
}
|
|
@@ -531,7 +543,7 @@ function ce({
|
|
|
531
543
|
...vt(e),
|
|
532
544
|
...e.properties,
|
|
533
545
|
"builder-id": e.id,
|
|
534
|
-
style:
|
|
546
|
+
style: rt({
|
|
535
547
|
block: e,
|
|
536
548
|
context: t
|
|
537
549
|
}),
|
|
@@ -544,15 +556,15 @@ function ce({
|
|
|
544
556
|
});
|
|
545
557
|
}
|
|
546
558
|
function xt(e) {
|
|
547
|
-
return /* @__PURE__ */
|
|
548
|
-
|
|
559
|
+
return /* @__PURE__ */ l(
|
|
560
|
+
ae,
|
|
549
561
|
{
|
|
550
562
|
TagName: e.Wrapper,
|
|
551
563
|
attributes: ce({
|
|
552
564
|
block: e.block,
|
|
553
565
|
context: e.context
|
|
554
566
|
}),
|
|
555
|
-
actionAttributes:
|
|
567
|
+
actionAttributes: Ee({
|
|
556
568
|
block: e.block,
|
|
557
569
|
rootState: e.context.rootState,
|
|
558
570
|
rootSetState: e.context.rootSetState,
|
|
@@ -564,14 +576,14 @@ function xt(e) {
|
|
|
564
576
|
}
|
|
565
577
|
);
|
|
566
578
|
}
|
|
567
|
-
function
|
|
579
|
+
function St(e) {
|
|
568
580
|
function t() {
|
|
569
581
|
return e.includeBlockProps ? {
|
|
570
582
|
...ce({
|
|
571
583
|
block: e.block,
|
|
572
584
|
context: e.context
|
|
573
585
|
}),
|
|
574
|
-
...
|
|
586
|
+
...Ee({
|
|
575
587
|
block: e.block,
|
|
576
588
|
rootState: e.context.rootState,
|
|
577
589
|
rootSetState: e.context.rootSetState,
|
|
@@ -580,9 +592,9 @@ function kt(e) {
|
|
|
580
592
|
})
|
|
581
593
|
} : {};
|
|
582
594
|
}
|
|
583
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
584
596
|
}
|
|
585
|
-
const
|
|
597
|
+
const pt = ({
|
|
586
598
|
componentOptions: e,
|
|
587
599
|
builderBlock: t,
|
|
588
600
|
context: n,
|
|
@@ -591,7 +603,7 @@ const St = ({
|
|
|
591
603
|
isInteractive: a,
|
|
592
604
|
contextValue: r
|
|
593
605
|
}) => {
|
|
594
|
-
const
|
|
606
|
+
const c = {
|
|
595
607
|
...e,
|
|
596
608
|
/**
|
|
597
609
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -610,15 +622,15 @@ const St = ({
|
|
|
610
622
|
context: n,
|
|
611
623
|
wrapperProps: e,
|
|
612
624
|
includeBlockProps: o
|
|
613
|
-
} :
|
|
625
|
+
} : c;
|
|
614
626
|
};
|
|
615
627
|
function ge(e) {
|
|
616
628
|
var n;
|
|
617
|
-
const t = e.isInteractive ?
|
|
618
|
-
return /* @__PURE__ */
|
|
629
|
+
const t = e.isInteractive ? St : e.componentRef;
|
|
630
|
+
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
619
631
|
t,
|
|
620
632
|
{
|
|
621
|
-
...
|
|
633
|
+
...pt({
|
|
622
634
|
componentOptions: e.componentOptions,
|
|
623
635
|
builderBlock: e.builderBlock,
|
|
624
636
|
context: e.context,
|
|
@@ -628,8 +640,8 @@ function ge(e) {
|
|
|
628
640
|
isInteractive: e.isInteractive,
|
|
629
641
|
contextValue: e.context
|
|
630
642
|
}),
|
|
631
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */
|
|
632
|
-
|
|
643
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
|
|
644
|
+
G,
|
|
633
645
|
{
|
|
634
646
|
block: i,
|
|
635
647
|
context: e.context,
|
|
@@ -641,10 +653,10 @@ function ge(e) {
|
|
|
641
653
|
}
|
|
642
654
|
) }) : null });
|
|
643
655
|
}
|
|
644
|
-
function
|
|
656
|
+
function kt(e) {
|
|
645
657
|
const t = e.repeatContext;
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
-
|
|
658
|
+
return /* @__PURE__ */ l(
|
|
659
|
+
G,
|
|
648
660
|
{
|
|
649
661
|
block: e.block,
|
|
650
662
|
context: t,
|
|
@@ -653,7 +665,7 @@ function Ct(e) {
|
|
|
653
665
|
}
|
|
654
666
|
);
|
|
655
667
|
}
|
|
656
|
-
function
|
|
668
|
+
function G(e) {
|
|
657
669
|
var s, d, m;
|
|
658
670
|
const t = function() {
|
|
659
671
|
return ct({
|
|
@@ -662,7 +674,7 @@ function X(e) {
|
|
|
662
674
|
registeredComponents: e.registeredComponents
|
|
663
675
|
});
|
|
664
676
|
}, n = function() {
|
|
665
|
-
return
|
|
677
|
+
return lt({
|
|
666
678
|
block: e.block,
|
|
667
679
|
context: e.context
|
|
668
680
|
});
|
|
@@ -677,28 +689,28 @@ function X(e) {
|
|
|
677
689
|
shouldEvaluateBindings: !0
|
|
678
690
|
});
|
|
679
691
|
}, o = function() {
|
|
680
|
-
var
|
|
681
|
-
return e.block.tagName === "a" || ((
|
|
692
|
+
var p;
|
|
693
|
+
return e.block.tagName === "a" || ((p = i().properties) == null ? void 0 : p.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
682
694
|
}, a = function() {
|
|
683
|
-
var
|
|
684
|
-
if ((
|
|
685
|
-
return !!((
|
|
695
|
+
var I, y;
|
|
696
|
+
if ((I = e.block.repeat) != null && I.collection)
|
|
697
|
+
return !!((y = n()) != null && y.length);
|
|
686
698
|
const h = "hide" in i() ? i().hide : !1;
|
|
687
699
|
return ("show" in i() ? i().show : !0) && !h;
|
|
688
700
|
}, r = function() {
|
|
689
|
-
var
|
|
690
|
-
return !((
|
|
691
|
-
},
|
|
692
|
-
var h,
|
|
701
|
+
var p, I;
|
|
702
|
+
return !((p = t()) != null && p.component) && !n() ? (I = i().children) != null ? I : [] : [];
|
|
703
|
+
}, c = function() {
|
|
704
|
+
var h, p, I, y;
|
|
693
705
|
return {
|
|
694
706
|
blockChildren: (h = i().children) != null ? h : [],
|
|
695
|
-
componentRef: (
|
|
707
|
+
componentRef: (p = t()) == null ? void 0 : p.component,
|
|
696
708
|
componentOptions: {
|
|
697
|
-
...
|
|
698
|
-
...
|
|
699
|
-
...
|
|
700
|
-
...
|
|
701
|
-
...
|
|
709
|
+
...Je(i()),
|
|
710
|
+
...ut(t(), i()),
|
|
711
|
+
...mt(t(), e.context),
|
|
712
|
+
...st(t(), e.linkComponent),
|
|
713
|
+
...dt(
|
|
702
714
|
t(),
|
|
703
715
|
e.registeredComponents
|
|
704
716
|
)
|
|
@@ -707,27 +719,27 @@ function X(e) {
|
|
|
707
719
|
linkComponent: e.linkComponent,
|
|
708
720
|
registeredComponents: e.registeredComponents,
|
|
709
721
|
builderBlock: i(),
|
|
710
|
-
includeBlockProps: ((
|
|
711
|
-
isInteractive: !((
|
|
722
|
+
includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
|
|
723
|
+
isInteractive: !((y = t()) != null && y.isRSC)
|
|
712
724
|
};
|
|
713
725
|
};
|
|
714
|
-
return /* @__PURE__ */
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
(s = t()) != null && s.noWrap ? /* @__PURE__ */
|
|
726
|
+
return /* @__PURE__ */ l(w, { children: a() ? /* @__PURE__ */ E(w, { children: [
|
|
727
|
+
/* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
|
|
728
|
+
(s = t()) != null && s.noWrap ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
717
729
|
ge,
|
|
718
730
|
{
|
|
719
|
-
componentRef:
|
|
720
|
-
componentOptions:
|
|
721
|
-
blockChildren:
|
|
722
|
-
context:
|
|
723
|
-
registeredComponents:
|
|
724
|
-
linkComponent:
|
|
725
|
-
builderBlock:
|
|
726
|
-
includeBlockProps:
|
|
727
|
-
isInteractive:
|
|
731
|
+
componentRef: c().componentRef,
|
|
732
|
+
componentOptions: c().componentOptions,
|
|
733
|
+
blockChildren: c().blockChildren,
|
|
734
|
+
context: c().context,
|
|
735
|
+
registeredComponents: c().registeredComponents,
|
|
736
|
+
linkComponent: c().linkComponent,
|
|
737
|
+
builderBlock: c().builderBlock,
|
|
738
|
+
includeBlockProps: c().includeBlockProps,
|
|
739
|
+
isInteractive: c().isInteractive
|
|
728
740
|
}
|
|
729
|
-
) }) : /* @__PURE__ */
|
|
730
|
-
|
|
741
|
+
) }) : /* @__PURE__ */ l(w, { children: n() ? /* @__PURE__ */ l(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
|
|
742
|
+
kt,
|
|
731
743
|
{
|
|
732
744
|
repeatContext: u.context,
|
|
733
745
|
block: u.block,
|
|
@@ -735,29 +747,29 @@ function X(e) {
|
|
|
735
747
|
linkComponent: e.linkComponent
|
|
736
748
|
},
|
|
737
749
|
h
|
|
738
|
-
)) }) : /* @__PURE__ */
|
|
750
|
+
)) }) : /* @__PURE__ */ E(
|
|
739
751
|
xt,
|
|
740
752
|
{
|
|
741
753
|
Wrapper: o(),
|
|
742
754
|
block: i(),
|
|
743
755
|
context: e.context,
|
|
744
756
|
children: [
|
|
745
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ l(
|
|
746
758
|
ge,
|
|
747
759
|
{
|
|
748
|
-
componentRef:
|
|
749
|
-
componentOptions:
|
|
750
|
-
blockChildren:
|
|
751
|
-
context:
|
|
752
|
-
registeredComponents:
|
|
753
|
-
linkComponent:
|
|
754
|
-
builderBlock:
|
|
755
|
-
includeBlockProps:
|
|
756
|
-
isInteractive:
|
|
760
|
+
componentRef: c().componentRef,
|
|
761
|
+
componentOptions: c().componentOptions,
|
|
762
|
+
blockChildren: c().blockChildren,
|
|
763
|
+
context: c().context,
|
|
764
|
+
registeredComponents: c().registeredComponents,
|
|
765
|
+
linkComponent: c().linkComponent,
|
|
766
|
+
builderBlock: c().builderBlock,
|
|
767
|
+
includeBlockProps: c().includeBlockProps,
|
|
768
|
+
isInteractive: c().isInteractive
|
|
757
769
|
}
|
|
758
770
|
),
|
|
759
|
-
(d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */
|
|
760
|
-
|
|
771
|
+
(d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ l(
|
|
772
|
+
G,
|
|
761
773
|
{
|
|
762
774
|
block: u,
|
|
763
775
|
registeredComponents: e.registeredComponents,
|
|
@@ -771,7 +783,7 @@ function X(e) {
|
|
|
771
783
|
) })
|
|
772
784
|
] }) : null });
|
|
773
785
|
}
|
|
774
|
-
function
|
|
786
|
+
function Ct(e) {
|
|
775
787
|
function t() {
|
|
776
788
|
var o;
|
|
777
789
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -802,8 +814,8 @@ function It(e) {
|
|
|
802
814
|
"*"
|
|
803
815
|
));
|
|
804
816
|
}
|
|
805
|
-
return /* @__PURE__ */
|
|
806
|
-
/* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
818
|
+
/* @__PURE__ */ l(
|
|
807
819
|
e.BlocksWrapper,
|
|
808
820
|
{
|
|
809
821
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -817,17 +829,17 @@ function It(e) {
|
|
|
817
829
|
children: e.children
|
|
818
830
|
}
|
|
819
831
|
),
|
|
820
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
821
833
|
display: flex;
|
|
822
834
|
flex-direction: column;
|
|
823
835
|
align-items: stretch;
|
|
824
836
|
}` })
|
|
825
837
|
] });
|
|
826
838
|
}
|
|
827
|
-
function
|
|
839
|
+
function le(e) {
|
|
828
840
|
var t, n, i;
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
|
|
841
|
+
return /* @__PURE__ */ l(
|
|
842
|
+
Ct,
|
|
831
843
|
{
|
|
832
844
|
blocks: e.blocks,
|
|
833
845
|
parent: e.parent,
|
|
@@ -835,8 +847,8 @@ function se(e) {
|
|
|
835
847
|
styleProp: e.styleProp,
|
|
836
848
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
837
849
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
838
|
-
children: e.blocks ? /* @__PURE__ */
|
|
839
|
-
|
|
850
|
+
children: e.blocks ? /* @__PURE__ */ l(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
851
|
+
G,
|
|
840
852
|
{
|
|
841
853
|
block: o,
|
|
842
854
|
linkComponent: e.linkComponent,
|
|
@@ -849,67 +861,67 @@ function se(e) {
|
|
|
849
861
|
);
|
|
850
862
|
}
|
|
851
863
|
const wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
852
|
-
function
|
|
853
|
-
var
|
|
854
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(
|
|
855
|
-
return
|
|
856
|
-
}, a = function(
|
|
857
|
-
var
|
|
858
|
-
return ((
|
|
859
|
-
}, r = function(
|
|
860
|
-
const
|
|
861
|
-
return `calc(${
|
|
862
|
-
},
|
|
863
|
-
stackedStyle:
|
|
864
|
-
desktopStyle:
|
|
864
|
+
function It(e) {
|
|
865
|
+
var y, A;
|
|
866
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
|
|
867
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
868
|
+
}, a = function(b) {
|
|
869
|
+
var k;
|
|
870
|
+
return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
|
|
871
|
+
}, r = function(b) {
|
|
872
|
+
const k = a(b), T = t * (n.length - 1) * (k / 100);
|
|
873
|
+
return `calc(${k}% - ${T}px)`;
|
|
874
|
+
}, c = function({
|
|
875
|
+
stackedStyle: b,
|
|
876
|
+
desktopStyle: k
|
|
865
877
|
}) {
|
|
866
|
-
return i === "tablet" ?
|
|
878
|
+
return i === "tablet" ? b : k;
|
|
867
879
|
}, s = function({
|
|
868
|
-
stackedStyle:
|
|
869
|
-
desktopStyle:
|
|
880
|
+
stackedStyle: b,
|
|
881
|
+
desktopStyle: k
|
|
870
882
|
}) {
|
|
871
|
-
return i === "never" ?
|
|
883
|
+
return i === "never" ? k : b;
|
|
872
884
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
873
885
|
return {
|
|
874
886
|
"--flex-dir": d,
|
|
875
|
-
"--flex-dir-tablet":
|
|
887
|
+
"--flex-dir-tablet": c({
|
|
876
888
|
stackedStyle: d,
|
|
877
889
|
desktopStyle: "row"
|
|
878
890
|
})
|
|
879
891
|
};
|
|
880
|
-
}, u = function(
|
|
881
|
-
const
|
|
892
|
+
}, u = function(b) {
|
|
893
|
+
const k = b === 0 ? 0 : t, T = r(b), B = `${k}px`, O = "100%", D = 0;
|
|
882
894
|
return {
|
|
883
895
|
...{
|
|
884
896
|
display: "flex",
|
|
885
897
|
flexDirection: "column",
|
|
886
898
|
alignItems: "stretch"
|
|
887
899
|
},
|
|
888
|
-
width:
|
|
889
|
-
["marginLeft"]:
|
|
900
|
+
width: T,
|
|
901
|
+
["marginLeft"]: B,
|
|
890
902
|
"--column-width-mobile": s({
|
|
891
903
|
stackedStyle: O,
|
|
892
|
-
desktopStyle:
|
|
904
|
+
desktopStyle: T
|
|
893
905
|
}),
|
|
894
906
|
"--column-margin-left-mobile": s({
|
|
895
907
|
stackedStyle: D,
|
|
896
|
-
desktopStyle:
|
|
908
|
+
desktopStyle: B
|
|
897
909
|
}),
|
|
898
|
-
"--column-width-tablet":
|
|
910
|
+
"--column-width-tablet": c({
|
|
899
911
|
stackedStyle: O,
|
|
900
|
-
desktopStyle:
|
|
912
|
+
desktopStyle: T
|
|
901
913
|
}),
|
|
902
|
-
"--column-margin-left-tablet":
|
|
914
|
+
"--column-margin-left-tablet": c({
|
|
903
915
|
stackedStyle: D,
|
|
904
|
-
desktopStyle:
|
|
916
|
+
desktopStyle: B
|
|
905
917
|
})
|
|
906
918
|
};
|
|
907
|
-
}, h = function(
|
|
908
|
-
var
|
|
909
|
-
return
|
|
910
|
-
((
|
|
911
|
-
)[
|
|
912
|
-
},
|
|
919
|
+
}, h = function(b) {
|
|
920
|
+
var T, B;
|
|
921
|
+
return Re(
|
|
922
|
+
((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
|
|
923
|
+
)[b].max;
|
|
924
|
+
}, p = function() {
|
|
913
925
|
return `
|
|
914
926
|
@media (max-width: ${h("medium")}px) {
|
|
915
927
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -935,33 +947,40 @@ function Tt(e) {
|
|
|
935
947
|
}
|
|
936
948
|
},
|
|
937
949
|
`;
|
|
938
|
-
},
|
|
950
|
+
}, I = function(b, k) {
|
|
939
951
|
return {
|
|
940
|
-
...
|
|
941
|
-
href:
|
|
952
|
+
...b.link ? {
|
|
953
|
+
href: b.link
|
|
942
954
|
} : {},
|
|
943
955
|
[j()]: "builder-column",
|
|
944
|
-
style:
|
|
956
|
+
style: Ie(u(k))
|
|
945
957
|
};
|
|
946
958
|
};
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
960
|
+
/* @__PURE__ */ E(
|
|
949
961
|
"div",
|
|
950
962
|
{
|
|
951
|
-
className: wt((
|
|
963
|
+
className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-c89348d2",
|
|
952
964
|
style: m(),
|
|
953
965
|
children: [
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
|
|
956
|
-
re,
|
|
966
|
+
/* @__PURE__ */ l(
|
|
967
|
+
Q,
|
|
957
968
|
{
|
|
958
|
-
|
|
969
|
+
id: "builderio-columns",
|
|
970
|
+
styles: p(),
|
|
971
|
+
nonce: e.builderContext.nonce
|
|
972
|
+
}
|
|
973
|
+
),
|
|
974
|
+
(A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ l(
|
|
975
|
+
ae,
|
|
976
|
+
{
|
|
977
|
+
TagName: o(S),
|
|
959
978
|
actionAttributes: {},
|
|
960
|
-
attributes:
|
|
961
|
-
children: /* @__PURE__ */
|
|
962
|
-
|
|
979
|
+
attributes: I(S, b),
|
|
980
|
+
children: /* @__PURE__ */ l(
|
|
981
|
+
le,
|
|
963
982
|
{
|
|
964
|
-
path: `component.options.columns.${
|
|
983
|
+
path: `component.options.columns.${b}.blocks`,
|
|
965
984
|
parent: e.builderBlock.id,
|
|
966
985
|
styleProp: {
|
|
967
986
|
flexGrow: "1"
|
|
@@ -969,56 +988,56 @@ function Tt(e) {
|
|
|
969
988
|
context: e.builderContext,
|
|
970
989
|
registeredComponents: e.builderComponents,
|
|
971
990
|
linkComponent: e.builderLinkComponent,
|
|
972
|
-
blocks:
|
|
991
|
+
blocks: S.blocks
|
|
973
992
|
}
|
|
974
993
|
)
|
|
975
994
|
},
|
|
976
|
-
|
|
995
|
+
b
|
|
977
996
|
))
|
|
978
997
|
]
|
|
979
998
|
}
|
|
980
999
|
),
|
|
981
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ l("style", { children: `.div-c89348d2 {
|
|
982
1001
|
display: flex;
|
|
983
1002
|
line-height: normal;
|
|
984
1003
|
}` })
|
|
985
1004
|
] });
|
|
986
1005
|
}
|
|
987
|
-
function
|
|
988
|
-
return /* @__PURE__ */
|
|
1006
|
+
function Tt(e) {
|
|
1007
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
989
1008
|
}
|
|
990
|
-
function
|
|
1009
|
+
function be(e) {
|
|
991
1010
|
return e.replace(/http(s)?:/, "");
|
|
992
1011
|
}
|
|
993
|
-
function
|
|
1012
|
+
function Rt(e = "", t, n) {
|
|
994
1013
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
995
1014
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
996
1015
|
}
|
|
997
|
-
function
|
|
1016
|
+
function Et(e, t) {
|
|
998
1017
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
999
1018
|
return e;
|
|
1000
1019
|
if (t === "master")
|
|
1001
|
-
return
|
|
1020
|
+
return be(e);
|
|
1002
1021
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1003
1022
|
if (n) {
|
|
1004
1023
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1005
|
-
return
|
|
1024
|
+
return be(`${i[0]}_${a}${o}`);
|
|
1006
1025
|
}
|
|
1007
1026
|
return null;
|
|
1008
1027
|
}
|
|
1009
|
-
function
|
|
1028
|
+
function te(e) {
|
|
1010
1029
|
if (!e)
|
|
1011
1030
|
return e;
|
|
1012
1031
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1013
1032
|
if (e.match(/builder\.io/)) {
|
|
1014
1033
|
let n = e;
|
|
1015
1034
|
const i = Number(e.split("?width=")[1]);
|
|
1016
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1035
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1017
1036
|
}
|
|
1018
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1037
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Et(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1019
1038
|
}
|
|
1020
|
-
function
|
|
1021
|
-
var o, a, r,
|
|
1039
|
+
function Pt(e) {
|
|
1040
|
+
var o, a, r, c, s, d;
|
|
1022
1041
|
function t() {
|
|
1023
1042
|
var h;
|
|
1024
1043
|
const u = e.image || e.src;
|
|
@@ -1028,10 +1047,10 @@ function Et(e) {
|
|
|
1028
1047
|
return e.srcset;
|
|
1029
1048
|
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1030
1049
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1031
|
-
return console.debug("Removed given srcset"),
|
|
1050
|
+
return console.debug("Removed given srcset"), te(u);
|
|
1032
1051
|
} else if (e.image && !e.srcset)
|
|
1033
|
-
return
|
|
1034
|
-
return
|
|
1052
|
+
return te(u);
|
|
1053
|
+
return te(u);
|
|
1035
1054
|
}
|
|
1036
1055
|
function n() {
|
|
1037
1056
|
var m;
|
|
@@ -1047,11 +1066,11 @@ function Et(e) {
|
|
|
1047
1066
|
};
|
|
1048
1067
|
return e.aspectRatio ? m : void 0;
|
|
1049
1068
|
}
|
|
1050
|
-
return /* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1053
|
-
n() ? /* @__PURE__ */
|
|
1054
|
-
/* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
1070
|
+
/* @__PURE__ */ E(w, { children: [
|
|
1071
|
+
/* @__PURE__ */ E("picture", { children: [
|
|
1072
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1073
|
+
/* @__PURE__ */ l(
|
|
1055
1074
|
"img",
|
|
1056
1075
|
{
|
|
1057
1076
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1070,7 +1089,7 @@ function Et(e) {
|
|
|
1070
1089
|
}
|
|
1071
1090
|
)
|
|
1072
1091
|
] }),
|
|
1073
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1092
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1074
1093
|
"div",
|
|
1075
1094
|
{
|
|
1076
1095
|
className: "builder-image-sizer div-ac3dff4a",
|
|
@@ -1079,10 +1098,10 @@ function Et(e) {
|
|
|
1079
1098
|
}
|
|
1080
1099
|
}
|
|
1081
1100
|
) : null,
|
|
1082
|
-
(
|
|
1083
|
-
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */
|
|
1101
|
+
(c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
|
|
1102
|
+
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1084
1103
|
] }),
|
|
1085
|
-
/* @__PURE__ */
|
|
1104
|
+
/* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
|
|
1086
1105
|
opacity: 1;
|
|
1087
1106
|
transition: opacity 0.2s ease-in-out;
|
|
1088
1107
|
}.div-ac3dff4a {
|
|
@@ -1101,8 +1120,8 @@ function Et(e) {
|
|
|
1101
1120
|
}` })
|
|
1102
1121
|
] });
|
|
1103
1122
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return /* @__PURE__ */
|
|
1123
|
+
function Bt(e) {
|
|
1124
|
+
return /* @__PURE__ */ l(
|
|
1106
1125
|
"section",
|
|
1107
1126
|
{
|
|
1108
1127
|
...e.attributes,
|
|
@@ -1122,7 +1141,7 @@ function Wt(e) {
|
|
|
1122
1141
|
}
|
|
1123
1142
|
);
|
|
1124
1143
|
}
|
|
1125
|
-
const
|
|
1144
|
+
const Wt = {
|
|
1126
1145
|
name: "Core:Button",
|
|
1127
1146
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1128
1147
|
defaultStyles: {
|
|
@@ -1156,12 +1175,9 @@ const Nt = {
|
|
|
1156
1175
|
static: !0,
|
|
1157
1176
|
noWrap: !0,
|
|
1158
1177
|
shouldReceiveBuilderProps: {
|
|
1159
|
-
builderBlock: !1,
|
|
1160
|
-
builderContext: !1,
|
|
1161
|
-
builderComponents: !1,
|
|
1162
1178
|
builderLinkComponent: !0
|
|
1163
1179
|
}
|
|
1164
|
-
},
|
|
1180
|
+
}, Nt = {
|
|
1165
1181
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1166
1182
|
name: "Columns",
|
|
1167
1183
|
isRSC: !0,
|
|
@@ -1340,7 +1356,7 @@ const Nt = {
|
|
|
1340
1356
|
});
|
|
1341
1357
|
}
|
|
1342
1358
|
const n = e.get("columns");
|
|
1343
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1359
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
|
|
1344
1360
|
}
|
|
1345
1361
|
}, {
|
|
1346
1362
|
name: "space",
|
|
@@ -1368,19 +1384,13 @@ const Nt = {
|
|
|
1368
1384
|
builderComponents: !0,
|
|
1369
1385
|
builderLinkComponent: !0
|
|
1370
1386
|
}
|
|
1371
|
-
},
|
|
1372
|
-
shouldReceiveBuilderProps: {
|
|
1373
|
-
builderBlock: !1,
|
|
1374
|
-
builderContext: !1,
|
|
1375
|
-
builderComponents: !1,
|
|
1376
|
-
builderLinkComponent: !1
|
|
1377
|
-
},
|
|
1387
|
+
}, At = {
|
|
1378
1388
|
name: "Fragment",
|
|
1379
1389
|
static: !0,
|
|
1380
1390
|
hidden: !0,
|
|
1381
1391
|
canHaveChildren: !0,
|
|
1382
1392
|
noWrap: !0
|
|
1383
|
-
},
|
|
1393
|
+
}, Vt = {
|
|
1384
1394
|
name: "Image",
|
|
1385
1395
|
static: !0,
|
|
1386
1396
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1400,7 +1410,7 @@ const Nt = {
|
|
|
1400
1410
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1401
1411
|
onChange: (e) => {
|
|
1402
1412
|
e.delete("srcset"), e.delete("noWebp");
|
|
1403
|
-
function n(r,
|
|
1413
|
+
function n(r, c = 6e4) {
|
|
1404
1414
|
return new Promise((s, d) => {
|
|
1405
1415
|
const m = document.createElement("img");
|
|
1406
1416
|
let u = !1;
|
|
@@ -1410,7 +1420,7 @@ const Nt = {
|
|
|
1410
1420
|
console.warn("Image load failed", h.error), d(h.error);
|
|
1411
1421
|
}), m.src = r, setTimeout(() => {
|
|
1412
1422
|
u || d(new Error("Image load timed out"));
|
|
1413
|
-
},
|
|
1423
|
+
}, c);
|
|
1414
1424
|
});
|
|
1415
1425
|
}
|
|
1416
1426
|
function i(r) {
|
|
@@ -1421,8 +1431,8 @@ const Nt = {
|
|
|
1421
1431
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1422
1432
|
}), o && (!a || a === 0.7041))
|
|
1423
1433
|
return n(o).then((r) => {
|
|
1424
|
-
const
|
|
1425
|
-
e.get("image") === o && (!
|
|
1434
|
+
const c = e.get("aspectRatio");
|
|
1435
|
+
e.get("image") === o && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1426
1436
|
});
|
|
1427
1437
|
}
|
|
1428
1438
|
}, {
|
|
@@ -1486,18 +1496,9 @@ const Nt = {
|
|
|
1486
1496
|
defaultValue: 0.7041
|
|
1487
1497
|
}],
|
|
1488
1498
|
shouldReceiveBuilderProps: {
|
|
1489
|
-
builderBlock: !0
|
|
1490
|
-
builderContext: !1,
|
|
1491
|
-
builderComponents: !1,
|
|
1492
|
-
builderLinkComponent: !1
|
|
1499
|
+
builderBlock: !0
|
|
1493
1500
|
}
|
|
1494
|
-
},
|
|
1495
|
-
shouldReceiveBuilderProps: {
|
|
1496
|
-
builderBlock: !1,
|
|
1497
|
-
builderContext: !1,
|
|
1498
|
-
builderComponents: !1,
|
|
1499
|
-
builderLinkComponent: !1
|
|
1500
|
-
},
|
|
1501
|
+
}, $t = {
|
|
1501
1502
|
name: "Core:Section",
|
|
1502
1503
|
static: !0,
|
|
1503
1504
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1550,15 +1551,12 @@ const Nt = {
|
|
|
1550
1551
|
defaultValue: "children"
|
|
1551
1552
|
}],
|
|
1552
1553
|
shouldReceiveBuilderProps: {
|
|
1553
|
-
|
|
1554
|
-
builderContext: !0,
|
|
1555
|
-
builderComponents: !1,
|
|
1556
|
-
builderLinkComponent: !1
|
|
1554
|
+
builderContext: !0
|
|
1557
1555
|
}
|
|
1558
1556
|
};
|
|
1559
|
-
function
|
|
1557
|
+
function Lt(e) {
|
|
1560
1558
|
var t, n, i;
|
|
1561
|
-
return /* @__PURE__ */
|
|
1559
|
+
return /* @__PURE__ */ l(
|
|
1562
1560
|
"div",
|
|
1563
1561
|
{
|
|
1564
1562
|
style: {
|
|
@@ -1567,8 +1565,8 @@ function Ot(e) {
|
|
|
1567
1565
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1568
1566
|
"builder-slot": e.name
|
|
1569
1567
|
},
|
|
1570
|
-
children: /* @__PURE__ */
|
|
1571
|
-
|
|
1568
|
+
children: /* @__PURE__ */ l(
|
|
1569
|
+
le,
|
|
1572
1570
|
{
|
|
1573
1571
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1574
1572
|
path: `symbol.data.${e.name}`,
|
|
@@ -1579,7 +1577,7 @@ function Ot(e) {
|
|
|
1579
1577
|
}
|
|
1580
1578
|
);
|
|
1581
1579
|
}
|
|
1582
|
-
const
|
|
1580
|
+
const Ot = {
|
|
1583
1581
|
name: "Symbol",
|
|
1584
1582
|
noWrap: !0,
|
|
1585
1583
|
static: !0,
|
|
@@ -1618,12 +1616,9 @@ const Dt = {
|
|
|
1618
1616
|
builderComponents: !0,
|
|
1619
1617
|
builderLinkComponent: !0
|
|
1620
1618
|
}
|
|
1621
|
-
},
|
|
1619
|
+
}, Dt = {
|
|
1622
1620
|
shouldReceiveBuilderProps: {
|
|
1623
|
-
builderBlock: !1
|
|
1624
|
-
builderContext: !1,
|
|
1625
|
-
builderComponents: !1,
|
|
1626
|
-
builderLinkComponent: !1
|
|
1621
|
+
builderBlock: !1
|
|
1627
1622
|
},
|
|
1628
1623
|
name: "Text",
|
|
1629
1624
|
static: !0,
|
|
@@ -1643,9 +1638,9 @@ const Dt = {
|
|
|
1643
1638
|
textAlign: "center"
|
|
1644
1639
|
}
|
|
1645
1640
|
};
|
|
1646
|
-
function
|
|
1641
|
+
function jt(e) {
|
|
1647
1642
|
var t;
|
|
1648
|
-
return /* @__PURE__ */
|
|
1643
|
+
return /* @__PURE__ */ l(
|
|
1649
1644
|
"div",
|
|
1650
1645
|
{
|
|
1651
1646
|
className: "builder-text",
|
|
@@ -1656,13 +1651,7 @@ function Ht(e) {
|
|
|
1656
1651
|
}
|
|
1657
1652
|
);
|
|
1658
1653
|
}
|
|
1659
|
-
const
|
|
1660
|
-
shouldReceiveBuilderProps: {
|
|
1661
|
-
builderBlock: !1,
|
|
1662
|
-
builderContext: !1,
|
|
1663
|
-
builderComponents: !1,
|
|
1664
|
-
builderLinkComponent: !1
|
|
1665
|
-
},
|
|
1654
|
+
const Ht = {
|
|
1666
1655
|
name: "Custom Code",
|
|
1667
1656
|
static: !0,
|
|
1668
1657
|
requiredPermissions: ["editCode"],
|
|
@@ -1685,11 +1674,11 @@ const Mt = {
|
|
|
1685
1674
|
advanced: !0
|
|
1686
1675
|
}]
|
|
1687
1676
|
};
|
|
1688
|
-
function
|
|
1689
|
-
const t =
|
|
1690
|
-
return
|
|
1691
|
-
var
|
|
1692
|
-
if (!((
|
|
1677
|
+
function Mt(e) {
|
|
1678
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1679
|
+
return R(() => {
|
|
1680
|
+
var c;
|
|
1681
|
+
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
1693
1682
|
return;
|
|
1694
1683
|
const r = t.current.getElementsByTagName("script");
|
|
1695
1684
|
for (let s = 0; s < r.length; s++) {
|
|
@@ -1714,7 +1703,7 @@ function Ut(e) {
|
|
|
1714
1703
|
}
|
|
1715
1704
|
}
|
|
1716
1705
|
}
|
|
1717
|
-
}, []), /* @__PURE__ */
|
|
1706
|
+
}, []), /* @__PURE__ */ l(
|
|
1718
1707
|
"div",
|
|
1719
1708
|
{
|
|
1720
1709
|
ref: t,
|
|
@@ -1723,13 +1712,7 @@ function Ut(e) {
|
|
|
1723
1712
|
}
|
|
1724
1713
|
);
|
|
1725
1714
|
}
|
|
1726
|
-
const
|
|
1727
|
-
shouldReceiveBuilderProps: {
|
|
1728
|
-
builderBlock: !1,
|
|
1729
|
-
builderContext: !1,
|
|
1730
|
-
builderComponents: !1,
|
|
1731
|
-
builderLinkComponent: !1
|
|
1732
|
-
},
|
|
1715
|
+
const Ut = {
|
|
1733
1716
|
name: "Embed",
|
|
1734
1717
|
static: !0,
|
|
1735
1718
|
inputs: [{
|
|
@@ -1744,9 +1727,9 @@ const _t = {
|
|
|
1744
1727
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1745
1728
|
hideFromUI: !0
|
|
1746
1729
|
}]
|
|
1747
|
-
},
|
|
1748
|
-
function
|
|
1749
|
-
const t =
|
|
1730
|
+
}, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
|
|
1731
|
+
function zt(e) {
|
|
1732
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, c] = N(() => !1);
|
|
1750
1733
|
function s() {
|
|
1751
1734
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1752
1735
|
return;
|
|
@@ -1757,7 +1740,7 @@ function qt(e) {
|
|
|
1757
1740
|
n.push(u.src);
|
|
1758
1741
|
const h = document.createElement("script");
|
|
1759
1742
|
h.async = !0, h.src = u.src, document.head.appendChild(h);
|
|
1760
|
-
} else if (
|
|
1743
|
+
} else if (Kt(u) && !o.includes(u.innerText))
|
|
1761
1744
|
try {
|
|
1762
1745
|
o.push(u.innerText), new Function(u.innerText)();
|
|
1763
1746
|
} catch (h) {
|
|
@@ -1765,9 +1748,9 @@ function qt(e) {
|
|
|
1765
1748
|
}
|
|
1766
1749
|
}
|
|
1767
1750
|
}
|
|
1768
|
-
return
|
|
1769
|
-
t.current && !r && (
|
|
1770
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
1751
|
+
return R(() => {
|
|
1752
|
+
t.current && !r && (c(!0), s());
|
|
1753
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
1771
1754
|
"div",
|
|
1772
1755
|
{
|
|
1773
1756
|
className: "builder-embed",
|
|
@@ -1776,13 +1759,7 @@ function qt(e) {
|
|
|
1776
1759
|
}
|
|
1777
1760
|
);
|
|
1778
1761
|
}
|
|
1779
|
-
const
|
|
1780
|
-
shouldReceiveBuilderProps: {
|
|
1781
|
-
builderBlock: !1,
|
|
1782
|
-
builderContext: !1,
|
|
1783
|
-
builderComponents: !1,
|
|
1784
|
-
builderLinkComponent: !1
|
|
1785
|
-
},
|
|
1762
|
+
const qt = {
|
|
1786
1763
|
// friendlyName?
|
|
1787
1764
|
name: "Raw:Img",
|
|
1788
1765
|
hideFromInsertMenu: !0,
|
|
@@ -1797,8 +1774,8 @@ const Yt = {
|
|
|
1797
1774
|
noWrap: !0,
|
|
1798
1775
|
static: !0
|
|
1799
1776
|
};
|
|
1800
|
-
function
|
|
1801
|
-
return /* @__PURE__ */
|
|
1777
|
+
function Yt(e) {
|
|
1778
|
+
return /* @__PURE__ */ l(
|
|
1802
1779
|
"img",
|
|
1803
1780
|
{
|
|
1804
1781
|
style: {
|
|
@@ -1812,7 +1789,7 @@ function Jt(e) {
|
|
|
1812
1789
|
V() && e.imgSrc || "default-key"
|
|
1813
1790
|
);
|
|
1814
1791
|
}
|
|
1815
|
-
const
|
|
1792
|
+
const Jt = {
|
|
1816
1793
|
name: "Video",
|
|
1817
1794
|
canHaveChildren: !0,
|
|
1818
1795
|
defaultStyles: {
|
|
@@ -1894,14 +1871,11 @@ const Qt = {
|
|
|
1894
1871
|
advanced: !0
|
|
1895
1872
|
}],
|
|
1896
1873
|
shouldReceiveBuilderProps: {
|
|
1897
|
-
builderBlock: !0
|
|
1898
|
-
builderContext: !1,
|
|
1899
|
-
builderComponents: !1,
|
|
1900
|
-
builderLinkComponent: !1
|
|
1874
|
+
builderBlock: !0
|
|
1901
1875
|
}
|
|
1902
1876
|
};
|
|
1903
|
-
function
|
|
1904
|
-
var i, o, a, r,
|
|
1877
|
+
function Qt(e) {
|
|
1878
|
+
var i, o, a, r, c, s, d;
|
|
1905
1879
|
function t() {
|
|
1906
1880
|
return {
|
|
1907
1881
|
...e.autoPlay === !0 ? {
|
|
@@ -1926,14 +1900,14 @@ function Gt(e) {
|
|
|
1926
1900
|
...t()
|
|
1927
1901
|
};
|
|
1928
1902
|
}
|
|
1929
|
-
return /* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ E(
|
|
1930
1904
|
"div",
|
|
1931
1905
|
{
|
|
1932
1906
|
style: {
|
|
1933
1907
|
position: "relative"
|
|
1934
1908
|
},
|
|
1935
1909
|
children: [
|
|
1936
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ l(
|
|
1937
1911
|
"video",
|
|
1938
1912
|
{
|
|
1939
1913
|
className: "builder-video",
|
|
@@ -1955,10 +1929,10 @@ function Gt(e) {
|
|
|
1955
1929
|
},
|
|
1956
1930
|
src: e.video || "no-src",
|
|
1957
1931
|
poster: e.posterImage,
|
|
1958
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
1932
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
1959
1933
|
}
|
|
1960
1934
|
),
|
|
1961
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
1935
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
1962
1936
|
"div",
|
|
1963
1937
|
{
|
|
1964
1938
|
style: {
|
|
@@ -1969,7 +1943,7 @@ function Gt(e) {
|
|
|
1969
1943
|
}
|
|
1970
1944
|
}
|
|
1971
1945
|
) : null,
|
|
1972
|
-
(
|
|
1946
|
+
(c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1973
1947
|
"div",
|
|
1974
1948
|
{
|
|
1975
1949
|
style: {
|
|
@@ -1980,7 +1954,7 @@ function Gt(e) {
|
|
|
1980
1954
|
children: e.children
|
|
1981
1955
|
}
|
|
1982
1956
|
) : null,
|
|
1983
|
-
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */
|
|
1957
|
+
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
1984
1958
|
"div",
|
|
1985
1959
|
{
|
|
1986
1960
|
style: {
|
|
@@ -2001,43 +1975,43 @@ function Gt(e) {
|
|
|
2001
1975
|
}
|
|
2002
1976
|
);
|
|
2003
1977
|
}
|
|
2004
|
-
const
|
|
2005
|
-
component:
|
|
2006
|
-
...
|
|
1978
|
+
const Gt = () => [{
|
|
1979
|
+
component: Mt,
|
|
1980
|
+
...Ht
|
|
2007
1981
|
}, {
|
|
2008
|
-
component:
|
|
2009
|
-
...
|
|
1982
|
+
component: zt,
|
|
1983
|
+
...Ut
|
|
2010
1984
|
}, {
|
|
2011
|
-
component:
|
|
2012
|
-
...
|
|
1985
|
+
component: Yt,
|
|
1986
|
+
...qt
|
|
2013
1987
|
}, {
|
|
2014
|
-
component:
|
|
2015
|
-
...
|
|
1988
|
+
component: Qt,
|
|
1989
|
+
...Jt
|
|
2016
1990
|
}], ye = () => [{
|
|
2017
|
-
component:
|
|
1991
|
+
component: Ye,
|
|
1992
|
+
...Wt
|
|
1993
|
+
}, {
|
|
1994
|
+
component: It,
|
|
2018
1995
|
...Nt
|
|
2019
1996
|
}, {
|
|
2020
1997
|
component: Tt,
|
|
2021
1998
|
...At
|
|
2022
1999
|
}, {
|
|
2023
|
-
component:
|
|
2000
|
+
component: Pt,
|
|
2024
2001
|
...Vt
|
|
2025
2002
|
}, {
|
|
2026
|
-
component:
|
|
2003
|
+
component: Bt,
|
|
2027
2004
|
...$t
|
|
2028
2005
|
}, {
|
|
2029
|
-
component:
|
|
2030
|
-
...Lt
|
|
2031
|
-
}, {
|
|
2032
|
-
component: Ot,
|
|
2006
|
+
component: Lt,
|
|
2033
2007
|
...Ft
|
|
2034
2008
|
}, {
|
|
2035
|
-
component:
|
|
2036
|
-
...
|
|
2009
|
+
component: Rn,
|
|
2010
|
+
...Ot
|
|
2037
2011
|
}, {
|
|
2038
|
-
component:
|
|
2039
|
-
...
|
|
2040
|
-
}, ...
|
|
2012
|
+
component: jt,
|
|
2013
|
+
...Dt
|
|
2014
|
+
}, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2041
2015
|
function getAndSetVariantId() {
|
|
2042
2016
|
function setCookie(name, value, days) {
|
|
2043
2017
|
let expires = '';
|
|
@@ -2093,7 +2067,7 @@ const Xt = () => [{
|
|
|
2093
2067
|
}).join('');
|
|
2094
2068
|
styleEl.innerHTML = newStyleStr;
|
|
2095
2069
|
}
|
|
2096
|
-
}`,
|
|
2070
|
+
}`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2097
2071
|
if (!navigator.cookieEnabled) {
|
|
2098
2072
|
return;
|
|
2099
2073
|
}
|
|
@@ -2127,35 +2101,36 @@ const Xt = () => [{
|
|
|
2127
2101
|
thisScriptEl?.remove();
|
|
2128
2102
|
}
|
|
2129
2103
|
return;
|
|
2130
|
-
}`,
|
|
2104
|
+
}`, Pe = "builderIoAbTest", Be = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2131
2105
|
...t,
|
|
2132
2106
|
testVariationId: t.id,
|
|
2133
2107
|
id: e == null ? void 0 : e.id
|
|
2134
|
-
})),
|
|
2108
|
+
})), en = ({
|
|
2135
2109
|
canTrack: e,
|
|
2136
2110
|
content: t
|
|
2137
|
-
}) => !(!(K(t).length > 0) || !e ||
|
|
2138
|
-
window.${
|
|
2139
|
-
window.${
|
|
2140
|
-
`,
|
|
2141
|
-
window.${
|
|
2142
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2143
|
-
)`,
|
|
2111
|
+
}) => !(!(K(t).length > 0) || !e || L()), tn = (e) => e === "react" || e === "reactNative", We = tn(M), nn = () => `
|
|
2112
|
+
window.${Pe} = ${Xt}
|
|
2113
|
+
window.${Be} = ${Zt}
|
|
2114
|
+
`, on = (e, t) => `
|
|
2115
|
+
window.${Pe}(
|
|
2116
|
+
"${t}",${JSON.stringify(e)}, ${We}
|
|
2117
|
+
)`, an = ({
|
|
2144
2118
|
contentId: e,
|
|
2145
2119
|
variationId: t
|
|
2146
|
-
}) => `window.${
|
|
2147
|
-
"${t}", "${e}", ${
|
|
2120
|
+
}) => `window.${Be}(
|
|
2121
|
+
"${t}", "${e}", ${We}
|
|
2148
2122
|
)`;
|
|
2149
|
-
function
|
|
2150
|
-
return /* @__PURE__ */
|
|
2123
|
+
function ne(e) {
|
|
2124
|
+
return /* @__PURE__ */ l(
|
|
2151
2125
|
"script",
|
|
2152
2126
|
{
|
|
2153
2127
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2154
|
-
"data-id": e.id
|
|
2128
|
+
"data-id": e.id,
|
|
2129
|
+
nonce: e.nonce || ""
|
|
2155
2130
|
}
|
|
2156
2131
|
);
|
|
2157
2132
|
}
|
|
2158
|
-
const
|
|
2133
|
+
const rn = _e({
|
|
2159
2134
|
content: null,
|
|
2160
2135
|
context: {},
|
|
2161
2136
|
localState: void 0,
|
|
@@ -2167,7 +2142,8 @@ const ln = Ke({
|
|
|
2167
2142
|
componentInfos: {},
|
|
2168
2143
|
inheritedStyles: {},
|
|
2169
2144
|
BlocksWrapper: "div",
|
|
2170
|
-
BlocksWrapperProps: {}
|
|
2145
|
+
BlocksWrapperProps: {},
|
|
2146
|
+
nonce: ""
|
|
2171
2147
|
});
|
|
2172
2148
|
function ve(e) {
|
|
2173
2149
|
return Math.round(e * 1e3) / 1e3;
|
|
@@ -2183,7 +2159,7 @@ const cn = (e, t, n = !0) => {
|
|
|
2183
2159
|
return i;
|
|
2184
2160
|
} while (i = i.parentElement);
|
|
2185
2161
|
return null;
|
|
2186
|
-
},
|
|
2162
|
+
}, ln = (e) => cn(e, (t) => {
|
|
2187
2163
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2188
2164
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2189
2165
|
}), xe = ({
|
|
@@ -2195,8 +2171,8 @@ const cn = (e, t, n = !0) => {
|
|
|
2195
2171
|
x: a,
|
|
2196
2172
|
y: r
|
|
2197
2173
|
};
|
|
2198
|
-
},
|
|
2199
|
-
const t = e.target, n = t &&
|
|
2174
|
+
}, sn = (e) => {
|
|
2175
|
+
const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2200
2176
|
return {
|
|
2201
2177
|
targetBuilderElement: i || void 0,
|
|
2202
2178
|
metadata: {
|
|
@@ -2212,13 +2188,13 @@ const cn = (e, t, n = !0) => {
|
|
|
2212
2188
|
}
|
|
2213
2189
|
};
|
|
2214
2190
|
};
|
|
2215
|
-
async function
|
|
2191
|
+
async function dn({
|
|
2216
2192
|
key: e,
|
|
2217
2193
|
value: t
|
|
2218
2194
|
}) {
|
|
2219
2195
|
return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2220
2196
|
}
|
|
2221
|
-
function
|
|
2197
|
+
function Se(e, ...t) {
|
|
2222
2198
|
const n = Object(e);
|
|
2223
2199
|
for (let i = 1; i < arguments.length; i++) {
|
|
2224
2200
|
const o = arguments[i];
|
|
@@ -2228,31 +2204,31 @@ function ke(e, ...t) {
|
|
|
2228
2204
|
}
|
|
2229
2205
|
return n;
|
|
2230
2206
|
}
|
|
2231
|
-
function
|
|
2207
|
+
function un(e) {
|
|
2232
2208
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2233
2209
|
}
|
|
2234
|
-
function
|
|
2235
|
-
const n =
|
|
2236
|
-
for (const
|
|
2210
|
+
function mn(e, t) {
|
|
2211
|
+
const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
2212
|
+
for (const c of r)
|
|
2237
2213
|
for (const s of n)
|
|
2238
|
-
s in
|
|
2214
|
+
s in c || (c[s] = i[s]);
|
|
2239
2215
|
}
|
|
2240
|
-
function
|
|
2216
|
+
function fn(e) {
|
|
2241
2217
|
const t = [];
|
|
2242
2218
|
for (const n of e.steps)
|
|
2243
2219
|
for (const i in n.styles)
|
|
2244
2220
|
t.indexOf(i) === -1 && t.push(i);
|
|
2245
2221
|
return t;
|
|
2246
2222
|
}
|
|
2247
|
-
function
|
|
2223
|
+
function hn(e) {
|
|
2248
2224
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2249
2225
|
if (!t.length) {
|
|
2250
|
-
|
|
2226
|
+
un(e.elementId || e.id || "");
|
|
2251
2227
|
return;
|
|
2252
2228
|
}
|
|
2253
2229
|
Array.from(t).forEach((n) => {
|
|
2254
|
-
|
|
2255
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2230
|
+
mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2231
|
+
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Se(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2256
2232
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2257
2233
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2258
2234
|
});
|
|
@@ -2270,21 +2246,21 @@ font-display: fallback;
|
|
|
2270
2246
|
font-weight: 400;
|
|
2271
2247
|
}
|
|
2272
2248
|
`.trim()), e.files)
|
|
2273
|
-
for (const
|
|
2274
|
-
if (!(String(Number(
|
|
2249
|
+
for (const c in e.files) {
|
|
2250
|
+
if (!(String(Number(c)) === c))
|
|
2275
2251
|
continue;
|
|
2276
|
-
const d = e.files[
|
|
2252
|
+
const d = e.files[c];
|
|
2277
2253
|
d && d !== i && (o += `
|
|
2278
2254
|
@font-face {
|
|
2279
2255
|
font-family: "${t}";
|
|
2280
2256
|
src: url('${d}') format('woff2');
|
|
2281
2257
|
font-display: fallback;
|
|
2282
|
-
font-weight: ${
|
|
2258
|
+
font-weight: ${c};
|
|
2283
2259
|
}
|
|
2284
2260
|
`.trim());
|
|
2285
2261
|
}
|
|
2286
2262
|
return o;
|
|
2287
|
-
},
|
|
2263
|
+
}, bn = ({
|
|
2288
2264
|
customFonts: e
|
|
2289
2265
|
}) => {
|
|
2290
2266
|
var t;
|
|
@@ -2309,38 +2285,38 @@ font-weight: ${l};
|
|
|
2309
2285
|
text-align: inherit;
|
|
2310
2286
|
font-family: inherit;
|
|
2311
2287
|
}
|
|
2312
|
-
`, xn = (e) => e ? "" : vn,
|
|
2313
|
-
function
|
|
2314
|
-
var
|
|
2315
|
-
const t =
|
|
2316
|
-
function n(
|
|
2317
|
-
var
|
|
2288
|
+
`, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
|
|
2289
|
+
function pn(e) {
|
|
2290
|
+
var B, O, D, X, Z, se, de;
|
|
2291
|
+
const t = oe(null);
|
|
2292
|
+
function n(g) {
|
|
2293
|
+
var v, x;
|
|
2318
2294
|
const f = {
|
|
2319
2295
|
...e.builderContextSignal.rootState,
|
|
2320
|
-
...
|
|
2296
|
+
...g
|
|
2321
2297
|
};
|
|
2322
|
-
e.builderContextSignal.rootSetState ? (
|
|
2298
|
+
e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, f) : e.builderContextSignal.rootState = f;
|
|
2323
2299
|
}
|
|
2324
|
-
function i(
|
|
2325
|
-
var
|
|
2300
|
+
function i(g) {
|
|
2301
|
+
var v, x, C, P, U;
|
|
2326
2302
|
const f = {
|
|
2327
2303
|
...e.builderContextSignal.content,
|
|
2328
|
-
...
|
|
2304
|
+
...g,
|
|
2329
2305
|
data: {
|
|
2330
|
-
...(
|
|
2331
|
-
...
|
|
2306
|
+
...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
|
|
2307
|
+
...g == null ? void 0 : g.data
|
|
2332
2308
|
},
|
|
2333
2309
|
meta: {
|
|
2334
|
-
...(
|
|
2335
|
-
...
|
|
2336
|
-
breakpoints: ((
|
|
2310
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
2311
|
+
...g == null ? void 0 : g.meta,
|
|
2312
|
+
breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((U = (P = e.builderContextSignal.content) == null ? void 0 : P.meta) == null ? void 0 : U.breakpoints)
|
|
2337
2313
|
}
|
|
2338
2314
|
};
|
|
2339
|
-
|
|
2315
|
+
dn({
|
|
2340
2316
|
value: f,
|
|
2341
2317
|
key: f.id
|
|
2342
2318
|
}).then(() => {
|
|
2343
|
-
|
|
2319
|
+
T.refresh();
|
|
2344
2320
|
});
|
|
2345
2321
|
}
|
|
2346
2322
|
function o() {
|
|
@@ -2352,34 +2328,34 @@ function Sn(e) {
|
|
|
2352
2328
|
const [a, r] = N(
|
|
2353
2329
|
() => e.contentWrapper || "div"
|
|
2354
2330
|
);
|
|
2355
|
-
function
|
|
2356
|
-
return
|
|
2331
|
+
function c(g) {
|
|
2332
|
+
return Oe({
|
|
2357
2333
|
model: e.model,
|
|
2358
2334
|
trustedHosts: e.trustedHosts,
|
|
2359
2335
|
callbacks: {
|
|
2360
2336
|
configureSdk: (f) => {
|
|
2361
|
-
var
|
|
2362
|
-
const { breakpoints:
|
|
2363
|
-
!
|
|
2337
|
+
var C;
|
|
2338
|
+
const { breakpoints: v, contentId: x } = f;
|
|
2339
|
+
!x || x !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || v && i({
|
|
2364
2340
|
meta: {
|
|
2365
|
-
breakpoints:
|
|
2341
|
+
breakpoints: v
|
|
2366
2342
|
}
|
|
2367
2343
|
});
|
|
2368
2344
|
},
|
|
2369
2345
|
animation: (f) => {
|
|
2370
|
-
|
|
2346
|
+
hn(f);
|
|
2371
2347
|
},
|
|
2372
2348
|
contentUpdate: (f) => {
|
|
2373
2349
|
i(f);
|
|
2374
2350
|
}
|
|
2375
2351
|
}
|
|
2376
|
-
})(
|
|
2352
|
+
})(g);
|
|
2377
2353
|
}
|
|
2378
2354
|
function s() {
|
|
2379
|
-
var f,
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
code:
|
|
2355
|
+
var f, v;
|
|
2356
|
+
const g = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.jsCode;
|
|
2357
|
+
g && H({
|
|
2358
|
+
code: g,
|
|
2383
2359
|
context: e.context || {},
|
|
2384
2360
|
localState: void 0,
|
|
2385
2361
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2390,35 +2366,35 @@ function Sn(e) {
|
|
|
2390
2366
|
enableCache: !1
|
|
2391
2367
|
});
|
|
2392
2368
|
}
|
|
2393
|
-
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [
|
|
2394
|
-
function
|
|
2395
|
-
var f,
|
|
2369
|
+
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [p, I] = N(() => !1);
|
|
2370
|
+
function y(g) {
|
|
2371
|
+
var f, v;
|
|
2396
2372
|
if (e.builderContextSignal.content) {
|
|
2397
|
-
const
|
|
2398
|
-
|
|
2373
|
+
const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
2374
|
+
ue({
|
|
2399
2375
|
type: "click",
|
|
2400
2376
|
canTrack: q(e.canTrack),
|
|
2401
|
-
contentId:
|
|
2377
|
+
contentId: C,
|
|
2402
2378
|
apiKey: e.apiKey,
|
|
2403
|
-
variationId:
|
|
2404
|
-
...
|
|
2405
|
-
unique: !
|
|
2379
|
+
variationId: x !== C ? x : void 0,
|
|
2380
|
+
...sn(g),
|
|
2381
|
+
unique: !p
|
|
2406
2382
|
});
|
|
2407
2383
|
}
|
|
2408
|
-
|
|
2384
|
+
p || I(!0);
|
|
2409
2385
|
}
|
|
2410
2386
|
function A() {
|
|
2411
|
-
var f,
|
|
2412
|
-
const
|
|
2413
|
-
Object.entries(
|
|
2414
|
-
if (!
|
|
2387
|
+
var f, v, x;
|
|
2388
|
+
const g = (x = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.httpRequests) != null ? x : {};
|
|
2389
|
+
Object.entries(g).forEach(([C, P]) => {
|
|
2390
|
+
if (!P || u[C] || d[C] && !V())
|
|
2415
2391
|
return;
|
|
2416
|
-
u[
|
|
2417
|
-
const U =
|
|
2392
|
+
u[C] = !0;
|
|
2393
|
+
const U = P.replace(
|
|
2418
2394
|
/{{([^}]+)}}/g,
|
|
2419
|
-
($,
|
|
2395
|
+
($, Ne) => String(
|
|
2420
2396
|
H({
|
|
2421
|
-
code:
|
|
2397
|
+
code: Ne,
|
|
2422
2398
|
context: e.context || {},
|
|
2423
2399
|
localState: void 0,
|
|
2424
2400
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2427,24 +2403,24 @@ function Sn(e) {
|
|
|
2427
2403
|
})
|
|
2428
2404
|
)
|
|
2429
2405
|
);
|
|
2430
|
-
|
|
2406
|
+
De(U).then(($) => $.json()).then(($) => {
|
|
2431
2407
|
n({
|
|
2432
|
-
[
|
|
2433
|
-
}), d[
|
|
2408
|
+
[C]: $
|
|
2409
|
+
}), d[C] = !0;
|
|
2434
2410
|
}).catch(($) => {
|
|
2435
|
-
console.error("error fetching dynamic data",
|
|
2411
|
+
console.error("error fetching dynamic data", P, $);
|
|
2436
2412
|
}).finally(() => {
|
|
2437
|
-
u[
|
|
2413
|
+
u[C] = !1;
|
|
2438
2414
|
});
|
|
2439
2415
|
});
|
|
2440
2416
|
}
|
|
2441
|
-
function
|
|
2417
|
+
function S() {
|
|
2442
2418
|
V() && window.dispatchEvent(
|
|
2443
2419
|
new CustomEvent(
|
|
2444
2420
|
"builder:component:stateChange",
|
|
2445
2421
|
{
|
|
2446
2422
|
detail: {
|
|
2447
|
-
state:
|
|
2423
|
+
state: ie(e.builderContextSignal.rootState),
|
|
2448
2424
|
ref: {
|
|
2449
2425
|
name: e.model
|
|
2450
2426
|
}
|
|
@@ -2453,8 +2429,8 @@ function Sn(e) {
|
|
|
2453
2429
|
)
|
|
2454
2430
|
);
|
|
2455
2431
|
}
|
|
2456
|
-
function g
|
|
2457
|
-
window.addEventListener("message",
|
|
2432
|
+
function b(g) {
|
|
2433
|
+
window.addEventListener("message", c), je(), He({
|
|
2458
2434
|
...e.locale ? {
|
|
2459
2435
|
locale: e.locale
|
|
2460
2436
|
} : {},
|
|
@@ -2467,125 +2443,132 @@ function Sn(e) {
|
|
|
2467
2443
|
}), Object.values(
|
|
2468
2444
|
e.builderContextSignal.componentInfos
|
|
2469
2445
|
).forEach((f) => {
|
|
2470
|
-
var
|
|
2471
|
-
const
|
|
2472
|
-
(
|
|
2446
|
+
var x;
|
|
2447
|
+
const v = Me(f);
|
|
2448
|
+
(x = window.parent) == null || x.postMessage(v, "*");
|
|
2473
2449
|
}), window.addEventListener(
|
|
2474
2450
|
"builder:component:stateChangeListenerActivated",
|
|
2475
|
-
|
|
2451
|
+
S
|
|
2476
2452
|
);
|
|
2477
2453
|
}
|
|
2478
|
-
function
|
|
2479
|
-
const f = new URL(location.href).searchParams,
|
|
2480
|
-
`builder.overrides.${
|
|
2481
|
-
),
|
|
2482
|
-
|
|
2454
|
+
function k(g) {
|
|
2455
|
+
const f = new URL(location.href).searchParams, v = f.get("builder.preview"), x = f.get(
|
|
2456
|
+
`builder.overrides.${v}`
|
|
2457
|
+
), C = f.get("apiKey") || f.get("builder.space");
|
|
2458
|
+
v === e.model && C === e.apiKey && (!e.content || x === e.content.id) && ke({
|
|
2483
2459
|
model: e.model,
|
|
2484
2460
|
apiKey: e.apiKey,
|
|
2485
2461
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2486
|
-
}).then((
|
|
2487
|
-
|
|
2462
|
+
}).then((P) => {
|
|
2463
|
+
P && i(P);
|
|
2488
2464
|
});
|
|
2489
2465
|
}
|
|
2490
|
-
const
|
|
2491
|
-
return
|
|
2492
|
-
var
|
|
2493
|
-
return (
|
|
2466
|
+
const T = Ke();
|
|
2467
|
+
return R(() => {
|
|
2468
|
+
var g;
|
|
2469
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2494
2470
|
"initeditingbldr",
|
|
2495
|
-
|
|
2471
|
+
b
|
|
2496
2472
|
), () => {
|
|
2497
2473
|
var f;
|
|
2498
2474
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2499
2475
|
"initeditingbldr",
|
|
2500
|
-
|
|
2476
|
+
b
|
|
2501
2477
|
);
|
|
2502
2478
|
};
|
|
2503
|
-
}, []),
|
|
2504
|
-
var
|
|
2505
|
-
return (
|
|
2479
|
+
}, []), R(() => {
|
|
2480
|
+
var g;
|
|
2481
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2506
2482
|
"initpreviewingbldr",
|
|
2507
|
-
|
|
2483
|
+
k
|
|
2508
2484
|
), () => {
|
|
2509
2485
|
var f;
|
|
2510
2486
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2511
2487
|
"initpreviewingbldr",
|
|
2512
|
-
|
|
2488
|
+
k
|
|
2513
2489
|
);
|
|
2514
2490
|
};
|
|
2515
|
-
}, []),
|
|
2516
|
-
var
|
|
2517
|
-
if (
|
|
2491
|
+
}, []), R(() => {
|
|
2492
|
+
var g, f;
|
|
2493
|
+
if (L()) {
|
|
2518
2494
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2519
|
-
const
|
|
2520
|
-
|
|
2495
|
+
const x = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, P = e.apiKey;
|
|
2496
|
+
ue({
|
|
2521
2497
|
type: "impression",
|
|
2522
2498
|
canTrack: !0,
|
|
2523
|
-
contentId:
|
|
2524
|
-
apiKey:
|
|
2525
|
-
variationId:
|
|
2499
|
+
contentId: C,
|
|
2500
|
+
apiKey: P,
|
|
2501
|
+
variationId: x !== C ? x : void 0
|
|
2526
2502
|
});
|
|
2527
2503
|
}
|
|
2528
|
-
|
|
2504
|
+
Le() && V();
|
|
2529
2505
|
}
|
|
2530
|
-
}, []),
|
|
2506
|
+
}, []), R(() => {
|
|
2531
2507
|
e.apiKey || J.error(
|
|
2532
2508
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2533
|
-
), s(), A(),
|
|
2534
|
-
}, []),
|
|
2535
|
-
}, [e.content]),
|
|
2509
|
+
), s(), A(), S();
|
|
2510
|
+
}, []), R(() => {
|
|
2511
|
+
}, [e.content]), R(() => {
|
|
2536
2512
|
s();
|
|
2537
|
-
}, [(O = (
|
|
2513
|
+
}, [(O = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : O.jsCode]), R(() => {
|
|
2538
2514
|
A();
|
|
2539
|
-
}, [(
|
|
2540
|
-
|
|
2541
|
-
}, [e.builderContextSignal.rootState]),
|
|
2515
|
+
}, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2516
|
+
S();
|
|
2517
|
+
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2542
2518
|
e.data && n(e.data);
|
|
2543
|
-
}, [e.data]),
|
|
2519
|
+
}, [e.data]), R(() => {
|
|
2544
2520
|
e.locale && n({
|
|
2545
2521
|
locale: e.locale
|
|
2546
2522
|
});
|
|
2547
|
-
}, [e.locale]),
|
|
2548
|
-
|
|
2523
|
+
}, [e.locale]), R(() => () => {
|
|
2524
|
+
L() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
2549
2525
|
"builder:component:stateChangeListenerActivated",
|
|
2550
|
-
|
|
2526
|
+
S
|
|
2551
2527
|
));
|
|
2552
|
-
}, []), /* @__PURE__ */
|
|
2528
|
+
}, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
2553
2529
|
a,
|
|
2554
2530
|
{
|
|
2555
2531
|
ref: t,
|
|
2556
|
-
onClick: (
|
|
2557
|
-
"builder-content-id": (
|
|
2532
|
+
onClick: (g) => y(g),
|
|
2533
|
+
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2558
2534
|
"builder-model": e.model,
|
|
2559
2535
|
...o(),
|
|
2560
2536
|
...e.contentWrapperProps,
|
|
2561
|
-
className:
|
|
2562
|
-
((
|
|
2537
|
+
className: Sn(
|
|
2538
|
+
((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
|
|
2563
2539
|
),
|
|
2564
2540
|
children: e.children
|
|
2565
2541
|
}
|
|
2566
2542
|
) : null });
|
|
2567
2543
|
}
|
|
2568
|
-
function
|
|
2544
|
+
function kn(e) {
|
|
2569
2545
|
const t = `
|
|
2570
2546
|
${yn({
|
|
2571
2547
|
cssCode: e.cssCode,
|
|
2572
2548
|
contentId: e.contentId
|
|
2573
2549
|
})}
|
|
2574
|
-
${
|
|
2550
|
+
${bn({
|
|
2575
2551
|
customFonts: e.customFonts
|
|
2576
2552
|
})}
|
|
2577
2553
|
${xn(e.isNestedRender)}
|
|
2578
2554
|
`.trim();
|
|
2579
|
-
return /* @__PURE__ */
|
|
2555
|
+
return /* @__PURE__ */ l(
|
|
2556
|
+
Q,
|
|
2557
|
+
{
|
|
2558
|
+
id: "builderio-content",
|
|
2559
|
+
styles: t,
|
|
2560
|
+
nonce: e.nonce
|
|
2561
|
+
}
|
|
2562
|
+
);
|
|
2580
2563
|
}
|
|
2581
|
-
const
|
|
2564
|
+
const Cn = ({
|
|
2582
2565
|
content: e,
|
|
2583
2566
|
data: t,
|
|
2584
2567
|
locale: n
|
|
2585
2568
|
}) => {
|
|
2586
|
-
var a, r,
|
|
2569
|
+
var a, r, c;
|
|
2587
2570
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
2588
|
-
return (
|
|
2571
|
+
return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
|
|
2589
2572
|
s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
|
|
2590
2573
|
}), {
|
|
2591
2574
|
...i,
|
|
@@ -2606,9 +2589,9 @@ const In = ({
|
|
|
2606
2589
|
},
|
|
2607
2590
|
meta: e == null ? void 0 : e.meta
|
|
2608
2591
|
} : void 0;
|
|
2609
|
-
function
|
|
2610
|
-
var o, a, r,
|
|
2611
|
-
const t =
|
|
2592
|
+
function pe(e) {
|
|
2593
|
+
var o, a, r, c, s, d, m, u, h;
|
|
2594
|
+
const t = an({
|
|
2612
2595
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2613
2596
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2614
2597
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2617,11 +2600,11 @@ function Se(e) {
|
|
|
2617
2600
|
...ye(),
|
|
2618
2601
|
...e.customComponents || []
|
|
2619
2602
|
].reduce(
|
|
2620
|
-
(
|
|
2621
|
-
...
|
|
2622
|
-
[
|
|
2623
|
-
component:
|
|
2624
|
-
...
|
|
2603
|
+
(p, { component: I, ...y }) => ({
|
|
2604
|
+
...p,
|
|
2605
|
+
[y.name]: {
|
|
2606
|
+
component: I,
|
|
2607
|
+
...me(y)
|
|
2625
2608
|
}
|
|
2626
2609
|
}),
|
|
2627
2610
|
{}
|
|
@@ -2631,7 +2614,7 @@ function Se(e) {
|
|
|
2631
2614
|
data: e.data
|
|
2632
2615
|
}),
|
|
2633
2616
|
localState: void 0,
|
|
2634
|
-
rootState:
|
|
2617
|
+
rootState: Cn({
|
|
2635
2618
|
content: e.content,
|
|
2636
2619
|
data: e.data,
|
|
2637
2620
|
locale: e.locale
|
|
@@ -2645,19 +2628,21 @@ function Se(e) {
|
|
|
2645
2628
|
...ye(),
|
|
2646
2629
|
...e.customComponents || []
|
|
2647
2630
|
].reduce(
|
|
2648
|
-
(
|
|
2649
|
-
...
|
|
2650
|
-
[
|
|
2631
|
+
(p, { component: I, ...y }) => ({
|
|
2632
|
+
...p,
|
|
2633
|
+
[y.name]: me(y)
|
|
2651
2634
|
}),
|
|
2652
2635
|
{}
|
|
2653
2636
|
),
|
|
2654
2637
|
inheritedStyles: {},
|
|
2655
2638
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2656
|
-
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2639
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2640
|
+
nonce: e.nonce || ""
|
|
2657
2641
|
};
|
|
2658
|
-
return /* @__PURE__ */
|
|
2659
|
-
|
|
2642
|
+
return /* @__PURE__ */ E(
|
|
2643
|
+
pn,
|
|
2660
2644
|
{
|
|
2645
|
+
nonce: e.nonce,
|
|
2661
2646
|
content: e.content,
|
|
2662
2647
|
data: e.data,
|
|
2663
2648
|
model: e.model,
|
|
@@ -2672,24 +2657,26 @@ function Se(e) {
|
|
|
2672
2657
|
contentWrapperProps: e.contentWrapperProps,
|
|
2673
2658
|
trustedHosts: e.trustedHosts,
|
|
2674
2659
|
children: [
|
|
2675
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
2676
|
-
|
|
2660
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
2661
|
+
ne,
|
|
2677
2662
|
{
|
|
2678
2663
|
id: "builderio-variant-visibility",
|
|
2679
|
-
scriptStr: t
|
|
2664
|
+
scriptStr: t,
|
|
2665
|
+
nonce: e.nonce || ""
|
|
2680
2666
|
}
|
|
2681
2667
|
) : null,
|
|
2682
|
-
/* @__PURE__ */
|
|
2683
|
-
|
|
2668
|
+
/* @__PURE__ */ l(
|
|
2669
|
+
kn,
|
|
2684
2670
|
{
|
|
2671
|
+
nonce: e.nonce || "",
|
|
2685
2672
|
isNestedRender: e.isNestedRender,
|
|
2686
2673
|
contentId: (r = i.content) == null ? void 0 : r.id,
|
|
2687
|
-
cssCode: (s = (
|
|
2674
|
+
cssCode: (s = (c = i.content) == null ? void 0 : c.data) == null ? void 0 : s.cssCode,
|
|
2688
2675
|
customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
|
|
2689
2676
|
}
|
|
2690
2677
|
),
|
|
2691
|
-
/* @__PURE__ */
|
|
2692
|
-
|
|
2678
|
+
/* @__PURE__ */ l(
|
|
2679
|
+
le,
|
|
2693
2680
|
{
|
|
2694
2681
|
blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
|
|
2695
2682
|
context: i,
|
|
@@ -2701,59 +2688,63 @@ function Se(e) {
|
|
|
2701
2688
|
}
|
|
2702
2689
|
);
|
|
2703
2690
|
}
|
|
2704
|
-
function
|
|
2691
|
+
function In(e) {
|
|
2705
2692
|
var a;
|
|
2706
|
-
const t =
|
|
2693
|
+
const t = en({
|
|
2707
2694
|
canTrack: q(e.canTrack),
|
|
2708
2695
|
content: e.content
|
|
2709
2696
|
}), n = function() {
|
|
2710
|
-
var
|
|
2711
|
-
return
|
|
2697
|
+
var c;
|
|
2698
|
+
return on(
|
|
2712
2699
|
K(e.content).map((s) => ({
|
|
2713
2700
|
id: s.testVariationId,
|
|
2714
2701
|
testRatio: s.testRatio
|
|
2715
2702
|
})),
|
|
2716
|
-
((
|
|
2703
|
+
((c = e.content) == null ? void 0 : c.id) || ""
|
|
2717
2704
|
);
|
|
2718
2705
|
}, i = function() {
|
|
2719
|
-
return K(e.content).map((
|
|
2706
|
+
return K(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
|
|
2720
2707
|
}, o = function() {
|
|
2721
|
-
var
|
|
2708
|
+
var c;
|
|
2722
2709
|
return t ? {
|
|
2723
2710
|
...e.content,
|
|
2724
|
-
testVariationId: (
|
|
2725
|
-
} :
|
|
2711
|
+
testVariationId: (c = e.content) == null ? void 0 : c.id
|
|
2712
|
+
} : Ue({
|
|
2726
2713
|
item: e.content,
|
|
2727
2714
|
canTrack: q(e.canTrack)
|
|
2728
2715
|
});
|
|
2729
2716
|
};
|
|
2730
|
-
return /* @__PURE__ */
|
|
2731
|
-
!e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */
|
|
2732
|
-
|
|
2717
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
2718
|
+
!e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ l(
|
|
2719
|
+
ne,
|
|
2733
2720
|
{
|
|
2734
2721
|
id: "builderio-init-variants-fns",
|
|
2735
|
-
scriptStr:
|
|
2722
|
+
scriptStr: nn(),
|
|
2723
|
+
nonce: e.nonce || ""
|
|
2736
2724
|
}
|
|
2737
2725
|
) : null,
|
|
2738
|
-
t ? /* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */
|
|
2740
|
-
|
|
2726
|
+
t ? /* @__PURE__ */ E(w, { children: [
|
|
2727
|
+
/* @__PURE__ */ l(
|
|
2728
|
+
Q,
|
|
2741
2729
|
{
|
|
2742
2730
|
id: "builderio-variants",
|
|
2743
|
-
styles: i()
|
|
2731
|
+
styles: i(),
|
|
2732
|
+
nonce: e.nonce || ""
|
|
2744
2733
|
}
|
|
2745
2734
|
),
|
|
2746
|
-
/* @__PURE__ */
|
|
2747
|
-
|
|
2735
|
+
/* @__PURE__ */ l(
|
|
2736
|
+
ne,
|
|
2748
2737
|
{
|
|
2749
2738
|
id: "builderio-variants-visibility",
|
|
2750
|
-
scriptStr: n()
|
|
2739
|
+
scriptStr: n(),
|
|
2740
|
+
nonce: e.nonce || ""
|
|
2751
2741
|
}
|
|
2752
2742
|
),
|
|
2753
|
-
(a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */
|
|
2754
|
-
|
|
2743
|
+
(a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
2744
|
+
pe,
|
|
2755
2745
|
{
|
|
2756
2746
|
isNestedRender: e.isNestedRender,
|
|
2747
|
+
nonce: e.nonce,
|
|
2757
2748
|
content: r,
|
|
2758
2749
|
showContent: !1,
|
|
2759
2750
|
model: e.model,
|
|
@@ -2776,9 +2767,10 @@ function Tn(e) {
|
|
|
2776
2767
|
r.testVariationId
|
|
2777
2768
|
))
|
|
2778
2769
|
] }) : null,
|
|
2779
|
-
/* @__PURE__ */
|
|
2780
|
-
|
|
2770
|
+
/* @__PURE__ */ l(
|
|
2771
|
+
pe,
|
|
2781
2772
|
{
|
|
2773
|
+
nonce: e.nonce,
|
|
2782
2774
|
isNestedRender: e.isNestedRender,
|
|
2783
2775
|
content: o(),
|
|
2784
2776
|
showContent: !0,
|
|
@@ -2802,13 +2794,13 @@ function Tn(e) {
|
|
|
2802
2794
|
)
|
|
2803
2795
|
] });
|
|
2804
2796
|
}
|
|
2805
|
-
const
|
|
2797
|
+
const Tn = async ({
|
|
2806
2798
|
builderContextValue: e,
|
|
2807
2799
|
symbol: t
|
|
2808
2800
|
}) => {
|
|
2809
2801
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2810
2802
|
(e != null && e.apiKey))
|
|
2811
|
-
return
|
|
2803
|
+
return ke({
|
|
2812
2804
|
model: t.model,
|
|
2813
2805
|
apiKey: e.apiKey,
|
|
2814
2806
|
apiVersion: e.apiVersion,
|
|
@@ -2821,8 +2813,8 @@ const Rn = async ({
|
|
|
2821
2813
|
J.error("Could not fetch symbol content: ", n);
|
|
2822
2814
|
});
|
|
2823
2815
|
};
|
|
2824
|
-
async function
|
|
2825
|
-
var a, r,
|
|
2816
|
+
async function Rn(e) {
|
|
2817
|
+
var a, r, c, s, d;
|
|
2826
2818
|
const t = function() {
|
|
2827
2819
|
return "div";
|
|
2828
2820
|
}, n = function() {
|
|
@@ -2835,13 +2827,14 @@ async function Pn(e) {
|
|
|
2835
2827
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
2836
2828
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2837
2829
|
].filter(Boolean).join(" ");
|
|
2838
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
2830
|
+
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
|
|
2839
2831
|
symbol: e.symbol,
|
|
2840
2832
|
builderContextValue: e.builderContext
|
|
2841
2833
|
});
|
|
2842
|
-
return /* @__PURE__ */
|
|
2843
|
-
|
|
2834
|
+
return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
2835
|
+
In,
|
|
2844
2836
|
{
|
|
2837
|
+
nonce: e.builderContext.nonce,
|
|
2845
2838
|
isNestedRender: !0,
|
|
2846
2839
|
apiVersion: e.builderContext.apiVersion,
|
|
2847
2840
|
apiKey: e.builderContext.apiKey,
|
|
@@ -2851,7 +2844,7 @@ async function Pn(e) {
|
|
|
2851
2844
|
},
|
|
2852
2845
|
customComponents: Object.values(e.builderComponents),
|
|
2853
2846
|
data: {
|
|
2854
|
-
...(
|
|
2847
|
+
...(c = e.symbol) == null ? void 0 : c.data,
|
|
2855
2848
|
...e.builderContext.localState,
|
|
2856
2849
|
...(s = o == null ? void 0 : o.data) == null ? void 0 : s.state
|
|
2857
2850
|
},
|
|
@@ -2865,15 +2858,15 @@ async function Pn(e) {
|
|
|
2865
2858
|
) });
|
|
2866
2859
|
}
|
|
2867
2860
|
export {
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2861
|
+
le as Blocks,
|
|
2862
|
+
rn as BuilderContext,
|
|
2863
|
+
Ye as Button,
|
|
2864
|
+
It as Columns,
|
|
2865
|
+
In as Content,
|
|
2866
|
+
Tt as Fragment,
|
|
2867
|
+
Pt as Image,
|
|
2868
|
+
Bt as Section,
|
|
2869
|
+
Rn as Symbol,
|
|
2870
|
+
jt as Text,
|
|
2871
|
+
Qt as Video
|
|
2879
2872
|
};
|