@builder.io/sdk-react-nextjs 0.15.2 → 0.16.0
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 +24 -24
- package/lib/browser/blocks-exports.mjs +451 -492
- 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-7f981733.js → server-entry-86458005.js} +1 -1
- package/lib/browser/{server-entry-f64a4c2d.cjs → server-entry-d8d62ced.cjs} +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 +770 -811
- 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-7f981733.js → server-entry-86458005.js} +1 -1
- package/lib/edge/{server-entry-f64a4c2d.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +24 -24
- package/lib/node/blocks-exports.mjs +442 -483
- 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-3f0a39c5.js → node-runtime-423addf8.js} +1 -1
- package/lib/node/{node-runtime-6f522a33.cjs → node-runtime-6421aefe.cjs} +1 -1
- package/lib/node/{server-entry-46bde4f0.js → server-entry-1644208f.js} +1 -1
- package/lib/node/{server-entry-68c26de0.cjs → server-entry-6f84d0f2.cjs} +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/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as c, Fragment as
|
|
6
|
-
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { useRef as
|
|
9
|
-
import { useRouter as
|
|
2
|
+
var Ne = Object.defineProperty;
|
|
3
|
+
var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ee = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as c, Fragment as I, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as xe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-1644208f.js";
|
|
7
|
+
import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-423addf8.js";
|
|
8
|
+
import { useRef as oe, useState as N, useEffect as R, createContext as qe } from "react";
|
|
9
|
+
import { useRouter as Ye } from "next/navigation";
|
|
10
10
|
import "lru-cache";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */ c(
|
|
11
|
+
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
12
|
+
function ae(e) {
|
|
13
|
+
return /* @__PURE__ */ c(I, { children: Qe(e.TagName) ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const D = () => {
|
|
16
16
|
switch (H) {
|
|
17
17
|
case "react":
|
|
18
18
|
case "reactNative":
|
|
@@ -26,11 +26,11 @@ const j = () => {
|
|
|
26
26
|
return "class";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function Ge(e) {
|
|
30
30
|
function t() {
|
|
31
31
|
return {
|
|
32
32
|
...e.attributes,
|
|
33
|
-
[
|
|
33
|
+
[D()]: `${e.link ? "" : "builder-button"} ${e.attributes[D()] || ""}`,
|
|
34
34
|
...e.link ? {
|
|
35
35
|
href: e.link,
|
|
36
36
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -41,7 +41,7 @@ function Xe(e) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
return /* @__PURE__ */ c(
|
|
44
|
-
|
|
44
|
+
ae,
|
|
45
45
|
{
|
|
46
46
|
attributes: t(),
|
|
47
47
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -50,14 +50,14 @@ function Xe(e) {
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Xe(e) {
|
|
54
54
|
var t;
|
|
55
55
|
return {
|
|
56
56
|
...(t = e.component) == null ? void 0 : t.options,
|
|
57
57
|
...e.options
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const Ze = ({
|
|
61
61
|
code: e,
|
|
62
62
|
builder: t,
|
|
63
63
|
context: n,
|
|
@@ -66,11 +66,11 @@ const et = ({
|
|
|
66
66
|
rootSetState: a,
|
|
67
67
|
rootState: l
|
|
68
68
|
}) => {
|
|
69
|
-
const r =
|
|
69
|
+
const r = Me({
|
|
70
70
|
builder: t,
|
|
71
71
|
context: n,
|
|
72
72
|
event: i,
|
|
73
|
-
state:
|
|
73
|
+
state: ke({
|
|
74
74
|
rootState: l,
|
|
75
75
|
localState: o,
|
|
76
76
|
rootSetState: a
|
|
@@ -78,7 +78,7 @@ const et = ({
|
|
|
78
78
|
});
|
|
79
79
|
return new Function(...r.map(([s]) => s), e)(...r.map(([, s]) => s));
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function ke({
|
|
82
82
|
rootState: e,
|
|
83
83
|
localState: t,
|
|
84
84
|
rootSetState: n
|
|
@@ -88,7 +88,7 @@ function Ce({
|
|
|
88
88
|
if (t && o in t)
|
|
89
89
|
return t[o];
|
|
90
90
|
const a = i[o];
|
|
91
|
-
return typeof a == "object" && a !== null ?
|
|
91
|
+
return typeof a == "object" && a !== null ? ke({
|
|
92
92
|
rootState: a,
|
|
93
93
|
localState: void 0,
|
|
94
94
|
rootSetState: n ? (l) => {
|
|
@@ -103,17 +103,17 @@ function Ce({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function et() {
|
|
107
107
|
var e;
|
|
108
108
|
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const tt = () => {
|
|
111
111
|
var i;
|
|
112
|
-
if (!
|
|
112
|
+
if (!et())
|
|
113
113
|
return !1;
|
|
114
114
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
115
115
|
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;
|
|
116
|
-
},
|
|
116
|
+
}, nt = (e) => z() || tt() ? Ze(e) : Ue(e), W = class W {
|
|
117
117
|
static getCacheKey(t) {
|
|
118
118
|
return JSON.stringify({
|
|
119
119
|
...t,
|
|
@@ -131,8 +131,8 @@ const nt = () => {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
|
|
135
|
-
let
|
|
134
|
+
ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
|
|
135
|
+
let F = W;
|
|
136
136
|
function O({
|
|
137
137
|
code: e,
|
|
138
138
|
context: t,
|
|
@@ -146,10 +146,10 @@ function O({
|
|
|
146
146
|
if (e === "")
|
|
147
147
|
return;
|
|
148
148
|
const s = {
|
|
149
|
-
code:
|
|
149
|
+
code: _e(e, {
|
|
150
150
|
isExpression: l
|
|
151
151
|
}),
|
|
152
|
-
builder:
|
|
152
|
+
builder: Ke(),
|
|
153
153
|
context: t,
|
|
154
154
|
event: a,
|
|
155
155
|
rootSetState: o,
|
|
@@ -157,15 +157,15 @@ function O({
|
|
|
157
157
|
localState: n
|
|
158
158
|
};
|
|
159
159
|
if (r) {
|
|
160
|
-
const d =
|
|
160
|
+
const d = F.getCacheKey(s), m = F.getCachedValue(d);
|
|
161
161
|
if (m)
|
|
162
162
|
return m.value;
|
|
163
163
|
}
|
|
164
164
|
try {
|
|
165
|
-
const d =
|
|
165
|
+
const d = nt(s);
|
|
166
166
|
if (r) {
|
|
167
|
-
const m =
|
|
168
|
-
|
|
167
|
+
const m = F.getCacheKey(s);
|
|
168
|
+
F.setCachedValue(m, d);
|
|
169
169
|
}
|
|
170
170
|
return d;
|
|
171
171
|
} catch (d) {
|
|
@@ -175,7 +175,7 @@ function O({
|
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const it = ({
|
|
179
179
|
block: e,
|
|
180
180
|
context: t,
|
|
181
181
|
localState: n,
|
|
@@ -184,7 +184,7 @@ const ot = ({
|
|
|
184
184
|
}) => {
|
|
185
185
|
if (!e.bindings)
|
|
186
186
|
return e;
|
|
187
|
-
const a =
|
|
187
|
+
const a = ie(e), l = {
|
|
188
188
|
...a,
|
|
189
189
|
properties: {
|
|
190
190
|
...a.properties
|
|
@@ -202,7 +202,7 @@ const ot = ({
|
|
|
202
202
|
context: t,
|
|
203
203
|
enableCache: !0
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
ze(l, r, d);
|
|
206
206
|
}
|
|
207
207
|
return l;
|
|
208
208
|
};
|
|
@@ -215,7 +215,7 @@ function Y({
|
|
|
215
215
|
rootSetState: a
|
|
216
216
|
}) {
|
|
217
217
|
const l = e;
|
|
218
|
-
return n ?
|
|
218
|
+
return n ? it({
|
|
219
219
|
block: l,
|
|
220
220
|
localState: i,
|
|
221
221
|
rootState: o,
|
|
@@ -223,42 +223,42 @@ function Y({
|
|
|
223
223
|
context: t
|
|
224
224
|
}) : l;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ce = (e) => Object.entries(e).map(([n, i]) => {
|
|
227
227
|
if (typeof i == "string")
|
|
228
|
-
return `${
|
|
229
|
-
}).filter(K),
|
|
228
|
+
return `${re(n)}: ${i};`;
|
|
229
|
+
}).filter(K), ot = (e) => Ce(e).join(`
|
|
230
230
|
`), U = ({
|
|
231
231
|
mediaQuery: e,
|
|
232
232
|
className: t,
|
|
233
233
|
styles: n
|
|
234
234
|
}) => {
|
|
235
235
|
const i = `.${t} {
|
|
236
|
-
${
|
|
236
|
+
${ot(n)}
|
|
237
237
|
}`;
|
|
238
238
|
return e ? `${e} {
|
|
239
239
|
${i}
|
|
240
240
|
}` : i;
|
|
241
241
|
};
|
|
242
|
-
function
|
|
242
|
+
function at({
|
|
243
243
|
style: e
|
|
244
244
|
}) {
|
|
245
245
|
return e;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const rt = ({
|
|
248
248
|
block: e,
|
|
249
249
|
context: t
|
|
250
|
-
}) =>
|
|
250
|
+
}) => Ie(at({
|
|
251
251
|
style: e.style || {},
|
|
252
252
|
context: t,
|
|
253
253
|
block: e
|
|
254
254
|
}));
|
|
255
|
-
function
|
|
255
|
+
function Ie(e) {
|
|
256
256
|
switch (H) {
|
|
257
257
|
case "svelte":
|
|
258
258
|
case "vue":
|
|
259
259
|
case "solid":
|
|
260
260
|
case "angular":
|
|
261
|
-
return
|
|
261
|
+
return Ce(e).join(" ");
|
|
262
262
|
case "qwik":
|
|
263
263
|
case "reactNative":
|
|
264
264
|
case "react":
|
|
@@ -266,7 +266,7 @@ function we(e) {
|
|
|
266
266
|
return e;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const lt = ({
|
|
270
270
|
block: e,
|
|
271
271
|
context: t,
|
|
272
272
|
registeredComponents: n
|
|
@@ -288,7 +288,7 @@ const ct = ({
|
|
|
288
288
|
console.warn(`
|
|
289
289
|
Could not find a registered component named "${i}".
|
|
290
290
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
291
|
-
},
|
|
291
|
+
}, ct = ({
|
|
292
292
|
block: e,
|
|
293
293
|
context: t
|
|
294
294
|
}) => {
|
|
@@ -322,23 +322,27 @@ const ct = ({
|
|
|
322
322
|
},
|
|
323
323
|
block: i
|
|
324
324
|
}));
|
|
325
|
-
},
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
} : {}
|
|
340
|
-
|
|
341
|
-
|
|
325
|
+
}, st = (e, t) => {
|
|
326
|
+
var n;
|
|
327
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
328
|
+
builderLinkComponent: t
|
|
329
|
+
} : {};
|
|
330
|
+
}, dt = (e, t) => {
|
|
331
|
+
var n;
|
|
332
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
333
|
+
builderComponents: t
|
|
334
|
+
} : {};
|
|
335
|
+
}, ut = (e, t) => {
|
|
336
|
+
var n;
|
|
337
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
338
|
+
builderBlock: t
|
|
339
|
+
} : {};
|
|
340
|
+
}, mt = (e, t) => {
|
|
341
|
+
var n;
|
|
342
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
343
|
+
builderContext: t
|
|
344
|
+
} : {};
|
|
345
|
+
}, we = {
|
|
342
346
|
small: {
|
|
343
347
|
min: 320,
|
|
344
348
|
default: 321,
|
|
@@ -354,11 +358,11 @@ const ct = ({
|
|
|
354
358
|
default: 991,
|
|
355
359
|
max: 1200
|
|
356
360
|
}
|
|
357
|
-
},
|
|
361
|
+
}, fe = (e, t = we) => `@media (max-width: ${t[e].max}px)`, Te = ({
|
|
358
362
|
small: e,
|
|
359
363
|
medium: t
|
|
360
364
|
}) => {
|
|
361
|
-
const n =
|
|
365
|
+
const n = ie(we);
|
|
362
366
|
if (!e || !t)
|
|
363
367
|
return n;
|
|
364
368
|
const i = Math.floor(e / 2);
|
|
@@ -381,7 +385,7 @@ const ct = ({
|
|
|
381
385
|
default: a + 1
|
|
382
386
|
}, n;
|
|
383
387
|
};
|
|
384
|
-
function
|
|
388
|
+
function Q(e) {
|
|
385
389
|
return /* @__PURE__ */ c(
|
|
386
390
|
"style",
|
|
387
391
|
{
|
|
@@ -390,7 +394,7 @@ function G(e) {
|
|
|
390
394
|
}
|
|
391
395
|
);
|
|
392
396
|
}
|
|
393
|
-
function
|
|
397
|
+
function ft(e) {
|
|
394
398
|
const t = function() {
|
|
395
399
|
const o = Y({
|
|
396
400
|
block: e.block,
|
|
@@ -402,7 +406,7 @@ function ht(e) {
|
|
|
402
406
|
});
|
|
403
407
|
return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
|
|
404
408
|
}, n = function() {
|
|
405
|
-
var
|
|
409
|
+
var S, b, k;
|
|
406
410
|
const o = Y({
|
|
407
411
|
block: e.block,
|
|
408
412
|
localState: e.context.localState,
|
|
@@ -410,56 +414,56 @@ function ht(e) {
|
|
|
410
414
|
rootSetState: e.context.rootSetState,
|
|
411
415
|
context: e.context.context,
|
|
412
416
|
shouldEvaluateBindings: !0
|
|
413
|
-
}), a = o.responsiveStyles, l = e.context.content, r =
|
|
414
|
-
((
|
|
417
|
+
}), a = o.responsiveStyles, l = e.context.content, r = Te(
|
|
418
|
+
((S = l == null ? void 0 : l.meta) == null ? void 0 : S.breakpoints) || {}
|
|
415
419
|
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
416
420
|
if (!u)
|
|
417
421
|
return "";
|
|
418
422
|
const h = s ? U({
|
|
419
423
|
className: u,
|
|
420
424
|
styles: s
|
|
421
|
-
}) : "",
|
|
425
|
+
}) : "", x = d ? U({
|
|
422
426
|
className: u,
|
|
423
427
|
styles: d,
|
|
424
|
-
mediaQuery:
|
|
428
|
+
mediaQuery: fe(
|
|
425
429
|
"medium",
|
|
426
430
|
r
|
|
427
431
|
)
|
|
428
432
|
}) : "", w = m ? U({
|
|
429
433
|
className: u,
|
|
430
434
|
styles: m,
|
|
431
|
-
mediaQuery:
|
|
435
|
+
mediaQuery: fe(
|
|
432
436
|
"small",
|
|
433
437
|
r
|
|
434
438
|
)
|
|
435
|
-
}) : "",
|
|
439
|
+
}) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
|
|
436
440
|
let A = "";
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
441
|
+
if (y) {
|
|
442
|
+
const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
|
|
439
443
|
A = U({
|
|
440
444
|
className: `${u}:hover`,
|
|
441
445
|
styles: {
|
|
442
|
-
...
|
|
443
|
-
transition: `all ${
|
|
444
|
-
|
|
446
|
+
...T,
|
|
447
|
+
transition: `all ${y.duration}s ${re(
|
|
448
|
+
y.easing
|
|
445
449
|
)}`,
|
|
446
|
-
transitionDelay:
|
|
450
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
447
451
|
}
|
|
448
452
|
}) || "";
|
|
449
453
|
}
|
|
450
454
|
return [
|
|
451
455
|
h,
|
|
452
|
-
|
|
456
|
+
x,
|
|
453
457
|
w,
|
|
454
458
|
A
|
|
455
459
|
].join(" ");
|
|
456
460
|
};
|
|
457
|
-
return /* @__PURE__ */ c(
|
|
461
|
+
return /* @__PURE__ */ c(I, { children: n() && t() ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
|
|
458
462
|
}
|
|
459
|
-
function
|
|
463
|
+
function ht(e) {
|
|
460
464
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
461
465
|
}
|
|
462
|
-
const gt = (e) => `on${
|
|
466
|
+
const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => O({
|
|
463
467
|
code: e,
|
|
464
468
|
context: t.context,
|
|
465
469
|
localState: t.localState,
|
|
@@ -469,7 +473,7 @@ const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => O({
|
|
|
469
473
|
isExpression: !1,
|
|
470
474
|
enableCache: !0
|
|
471
475
|
});
|
|
472
|
-
function
|
|
476
|
+
function Re(e) {
|
|
473
477
|
var i;
|
|
474
478
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
475
479
|
for (const o in n) {
|
|
@@ -486,7 +490,7 @@ function Pe(e) {
|
|
|
486
490
|
l = l.replace("on:", "");
|
|
487
491
|
break;
|
|
488
492
|
}
|
|
489
|
-
t[l] =
|
|
493
|
+
t[l] = bt(a, e);
|
|
490
494
|
}
|
|
491
495
|
return t;
|
|
492
496
|
}
|
|
@@ -495,23 +499,23 @@ function yt({
|
|
|
495
499
|
}) {
|
|
496
500
|
return e;
|
|
497
501
|
}
|
|
498
|
-
const
|
|
502
|
+
const pt = (e) => ({
|
|
499
503
|
href: e.href
|
|
500
504
|
});
|
|
501
|
-
function
|
|
505
|
+
function le({
|
|
502
506
|
block: e,
|
|
503
507
|
context: t
|
|
504
508
|
}) {
|
|
505
509
|
var i;
|
|
506
510
|
const n = {
|
|
507
|
-
...
|
|
511
|
+
...pt(e),
|
|
508
512
|
...e.properties,
|
|
509
513
|
"builder-id": e.id,
|
|
510
|
-
style:
|
|
514
|
+
style: rt({
|
|
511
515
|
block: e,
|
|
512
516
|
context: t
|
|
513
517
|
}),
|
|
514
|
-
[
|
|
518
|
+
[D()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
515
519
|
};
|
|
516
520
|
return yt({
|
|
517
521
|
properties: n,
|
|
@@ -519,16 +523,16 @@ function ce({
|
|
|
519
523
|
block: e
|
|
520
524
|
});
|
|
521
525
|
}
|
|
522
|
-
function
|
|
526
|
+
function vt(e) {
|
|
523
527
|
return /* @__PURE__ */ c(
|
|
524
|
-
|
|
528
|
+
ae,
|
|
525
529
|
{
|
|
526
530
|
TagName: e.Wrapper,
|
|
527
|
-
attributes:
|
|
531
|
+
attributes: le({
|
|
528
532
|
block: e.block,
|
|
529
533
|
context: e.context
|
|
530
534
|
}),
|
|
531
|
-
actionAttributes:
|
|
535
|
+
actionAttributes: Re({
|
|
532
536
|
block: e.block,
|
|
533
537
|
rootState: e.context.rootState,
|
|
534
538
|
rootSetState: e.context.rootSetState,
|
|
@@ -540,14 +544,14 @@ function xt(e) {
|
|
|
540
544
|
}
|
|
541
545
|
);
|
|
542
546
|
}
|
|
543
|
-
function
|
|
547
|
+
function St(e) {
|
|
544
548
|
function t() {
|
|
545
549
|
return e.includeBlockProps ? {
|
|
546
|
-
...
|
|
550
|
+
...le({
|
|
547
551
|
block: e.block,
|
|
548
552
|
context: e.context
|
|
549
553
|
}),
|
|
550
|
-
...
|
|
554
|
+
...Re({
|
|
551
555
|
block: e.block,
|
|
552
556
|
rootState: e.context.rootState,
|
|
553
557
|
rootSetState: e.context.rootSetState,
|
|
@@ -558,7 +562,7 @@ function kt(e) {
|
|
|
558
562
|
}
|
|
559
563
|
return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
560
564
|
}
|
|
561
|
-
const
|
|
565
|
+
const xt = ({
|
|
562
566
|
componentOptions: e,
|
|
563
567
|
builderBlock: t,
|
|
564
568
|
context: n,
|
|
@@ -574,7 +578,7 @@ const St = ({
|
|
|
574
578
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
575
579
|
*/
|
|
576
580
|
...o ? {
|
|
577
|
-
attributes:
|
|
581
|
+
attributes: le({
|
|
578
582
|
block: t,
|
|
579
583
|
context: l
|
|
580
584
|
})
|
|
@@ -588,13 +592,13 @@ const St = ({
|
|
|
588
592
|
includeBlockProps: o
|
|
589
593
|
} : r;
|
|
590
594
|
};
|
|
591
|
-
function
|
|
595
|
+
function he(e) {
|
|
592
596
|
var n;
|
|
593
|
-
const t = e.isInteractive ?
|
|
594
|
-
return /* @__PURE__ */ c(
|
|
597
|
+
const t = e.isInteractive ? St : e.componentRef;
|
|
598
|
+
return /* @__PURE__ */ c(I, { children: e.componentRef ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
|
|
595
599
|
t,
|
|
596
600
|
{
|
|
597
|
-
...
|
|
601
|
+
...xt({
|
|
598
602
|
componentOptions: e.componentOptions,
|
|
599
603
|
builderBlock: e.builderBlock,
|
|
600
604
|
context: e.context,
|
|
@@ -605,7 +609,7 @@ function be(e) {
|
|
|
605
609
|
contextValue: e.context
|
|
606
610
|
}),
|
|
607
611
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
|
|
608
|
-
|
|
612
|
+
G,
|
|
609
613
|
{
|
|
610
614
|
block: i,
|
|
611
615
|
context: e.context,
|
|
@@ -617,10 +621,10 @@ function be(e) {
|
|
|
617
621
|
}
|
|
618
622
|
) }) : null });
|
|
619
623
|
}
|
|
620
|
-
function
|
|
624
|
+
function kt(e) {
|
|
621
625
|
const t = e.repeatContext;
|
|
622
626
|
return /* @__PURE__ */ c(
|
|
623
|
-
|
|
627
|
+
G,
|
|
624
628
|
{
|
|
625
629
|
block: e.block,
|
|
626
630
|
context: t,
|
|
@@ -629,16 +633,16 @@ function Ct(e) {
|
|
|
629
633
|
}
|
|
630
634
|
);
|
|
631
635
|
}
|
|
632
|
-
function
|
|
636
|
+
function G(e) {
|
|
633
637
|
var s, d, m;
|
|
634
638
|
const t = function() {
|
|
635
|
-
return
|
|
639
|
+
return lt({
|
|
636
640
|
block: e.block,
|
|
637
641
|
context: e.context,
|
|
638
642
|
registeredComponents: e.registeredComponents
|
|
639
643
|
});
|
|
640
644
|
}, n = function() {
|
|
641
|
-
return
|
|
645
|
+
return ct({
|
|
642
646
|
block: e.block,
|
|
643
647
|
context: e.context
|
|
644
648
|
});
|
|
@@ -653,28 +657,28 @@ function X(e) {
|
|
|
653
657
|
shouldEvaluateBindings: !0
|
|
654
658
|
});
|
|
655
659
|
}, o = function() {
|
|
656
|
-
var
|
|
657
|
-
return e.block.tagName === "a" || ((
|
|
660
|
+
var x;
|
|
661
|
+
return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
658
662
|
}, a = function() {
|
|
659
|
-
var w,
|
|
663
|
+
var w, y;
|
|
660
664
|
if ((w = e.block.repeat) != null && w.collection)
|
|
661
|
-
return !!((
|
|
665
|
+
return !!((y = n()) != null && y.length);
|
|
662
666
|
const h = "hide" in i() ? i().hide : !1;
|
|
663
667
|
return ("show" in i() ? i().show : !0) && !h;
|
|
664
668
|
}, l = function() {
|
|
665
|
-
var
|
|
666
|
-
return !((
|
|
669
|
+
var x, w;
|
|
670
|
+
return !((x = t()) != null && x.component) && !n() ? (w = i().children) != null ? w : [] : [];
|
|
667
671
|
}, r = function() {
|
|
668
|
-
var h,
|
|
672
|
+
var h, x, w, y;
|
|
669
673
|
return {
|
|
670
674
|
blockChildren: (h = i().children) != null ? h : [],
|
|
671
|
-
componentRef: (
|
|
675
|
+
componentRef: (x = t()) == null ? void 0 : x.component,
|
|
672
676
|
componentOptions: {
|
|
673
|
-
...
|
|
674
|
-
...
|
|
675
|
-
...
|
|
676
|
-
...
|
|
677
|
-
...
|
|
677
|
+
...Xe(i()),
|
|
678
|
+
...ut(t(), i()),
|
|
679
|
+
...mt(t(), e.context),
|
|
680
|
+
...st(t(), e.linkComponent),
|
|
681
|
+
...dt(
|
|
678
682
|
t(),
|
|
679
683
|
e.registeredComponents
|
|
680
684
|
)
|
|
@@ -684,13 +688,13 @@ function X(e) {
|
|
|
684
688
|
registeredComponents: e.registeredComponents,
|
|
685
689
|
builderBlock: i(),
|
|
686
690
|
includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
|
|
687
|
-
isInteractive: !((
|
|
691
|
+
isInteractive: !((y = t()) != null && y.isRSC)
|
|
688
692
|
};
|
|
689
693
|
};
|
|
690
|
-
return /* @__PURE__ */ c(
|
|
691
|
-
/* @__PURE__ */ c(
|
|
692
|
-
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(
|
|
693
|
-
|
|
694
|
+
return /* @__PURE__ */ c(I, { children: a() ? /* @__PURE__ */ P(I, { children: [
|
|
695
|
+
/* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
|
|
696
|
+
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
|
|
697
|
+
he,
|
|
694
698
|
{
|
|
695
699
|
componentRef: r().componentRef,
|
|
696
700
|
componentOptions: r().componentOptions,
|
|
@@ -702,8 +706,8 @@ function X(e) {
|
|
|
702
706
|
includeBlockProps: r().includeBlockProps,
|
|
703
707
|
isInteractive: r().isInteractive
|
|
704
708
|
}
|
|
705
|
-
) }) : /* @__PURE__ */ c(
|
|
706
|
-
|
|
709
|
+
) }) : /* @__PURE__ */ c(I, { children: n() ? /* @__PURE__ */ c(I, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
|
|
710
|
+
kt,
|
|
707
711
|
{
|
|
708
712
|
repeatContext: u.context,
|
|
709
713
|
block: u.block,
|
|
@@ -712,14 +716,14 @@ function X(e) {
|
|
|
712
716
|
},
|
|
713
717
|
h
|
|
714
718
|
)) }) : /* @__PURE__ */ P(
|
|
715
|
-
|
|
719
|
+
vt,
|
|
716
720
|
{
|
|
717
721
|
Wrapper: o(),
|
|
718
722
|
block: i(),
|
|
719
723
|
context: e.context,
|
|
720
724
|
children: [
|
|
721
725
|
/* @__PURE__ */ c(
|
|
722
|
-
|
|
726
|
+
he,
|
|
723
727
|
{
|
|
724
728
|
componentRef: r().componentRef,
|
|
725
729
|
componentOptions: r().componentOptions,
|
|
@@ -733,7 +737,7 @@ function X(e) {
|
|
|
733
737
|
}
|
|
734
738
|
),
|
|
735
739
|
(d = l()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
|
|
736
|
-
|
|
740
|
+
G,
|
|
737
741
|
{
|
|
738
742
|
block: u,
|
|
739
743
|
registeredComponents: e.registeredComponents,
|
|
@@ -747,7 +751,7 @@ function X(e) {
|
|
|
747
751
|
) })
|
|
748
752
|
] }) : null });
|
|
749
753
|
}
|
|
750
|
-
function
|
|
754
|
+
function Ct(e) {
|
|
751
755
|
function t() {
|
|
752
756
|
var o;
|
|
753
757
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -778,7 +782,7 @@ function It(e) {
|
|
|
778
782
|
"*"
|
|
779
783
|
));
|
|
780
784
|
}
|
|
781
|
-
return /* @__PURE__ */ P(
|
|
785
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
782
786
|
/* @__PURE__ */ c(
|
|
783
787
|
e.BlocksWrapper,
|
|
784
788
|
{
|
|
@@ -800,10 +804,10 @@ function It(e) {
|
|
|
800
804
|
}` })
|
|
801
805
|
] });
|
|
802
806
|
}
|
|
803
|
-
function
|
|
807
|
+
function ce(e) {
|
|
804
808
|
var t, n, i;
|
|
805
809
|
return /* @__PURE__ */ c(
|
|
806
|
-
|
|
810
|
+
Ct,
|
|
807
811
|
{
|
|
808
812
|
blocks: e.blocks,
|
|
809
813
|
parent: e.parent,
|
|
@@ -811,8 +815,8 @@ function se(e) {
|
|
|
811
815
|
styleProp: e.styleProp,
|
|
812
816
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
813
817
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
814
|
-
children: e.blocks ? /* @__PURE__ */ c(
|
|
815
|
-
|
|
818
|
+
children: e.blocks ? /* @__PURE__ */ c(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
|
|
819
|
+
G,
|
|
816
820
|
{
|
|
817
821
|
block: o,
|
|
818
822
|
linkComponent: e.linkComponent,
|
|
@@ -824,27 +828,27 @@ function se(e) {
|
|
|
824
828
|
}
|
|
825
829
|
);
|
|
826
830
|
}
|
|
827
|
-
const
|
|
828
|
-
function
|
|
829
|
-
var
|
|
830
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(
|
|
831
|
-
return
|
|
832
|
-
}, a = function(
|
|
833
|
-
var
|
|
834
|
-
return ((
|
|
835
|
-
}, l = function(
|
|
836
|
-
const
|
|
837
|
-
return `calc(${
|
|
831
|
+
const It = (e) => `builder-columns ${e}-breakpoints`;
|
|
832
|
+
function wt(e) {
|
|
833
|
+
var y, A;
|
|
834
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
|
|
835
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
836
|
+
}, a = function(b) {
|
|
837
|
+
var k;
|
|
838
|
+
return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
|
|
839
|
+
}, l = function(b) {
|
|
840
|
+
const k = a(b), T = t * (n.length - 1) * (k / 100);
|
|
841
|
+
return `calc(${k}% - ${T}px)`;
|
|
838
842
|
}, r = function({
|
|
839
|
-
stackedStyle:
|
|
840
|
-
desktopStyle:
|
|
843
|
+
stackedStyle: b,
|
|
844
|
+
desktopStyle: k
|
|
841
845
|
}) {
|
|
842
|
-
return i === "tablet" ?
|
|
846
|
+
return i === "tablet" ? b : k;
|
|
843
847
|
}, s = function({
|
|
844
|
-
stackedStyle:
|
|
845
|
-
desktopStyle:
|
|
848
|
+
stackedStyle: b,
|
|
849
|
+
desktopStyle: k
|
|
846
850
|
}) {
|
|
847
|
-
return i === "never" ?
|
|
851
|
+
return i === "never" ? k : b;
|
|
848
852
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
849
853
|
return {
|
|
850
854
|
"--flex-dir": d,
|
|
@@ -853,39 +857,39 @@ function Tt(e) {
|
|
|
853
857
|
desktopStyle: "row"
|
|
854
858
|
})
|
|
855
859
|
};
|
|
856
|
-
}, u = function(
|
|
857
|
-
const
|
|
860
|
+
}, u = function(b) {
|
|
861
|
+
const k = b === 0 ? 0 : t, T = l(b), B = `${k}px`, L = "100%", j = 0;
|
|
858
862
|
return {
|
|
859
863
|
...{
|
|
860
864
|
display: "flex",
|
|
861
865
|
flexDirection: "column",
|
|
862
866
|
alignItems: "stretch"
|
|
863
867
|
},
|
|
864
|
-
width:
|
|
865
|
-
["marginLeft"]:
|
|
868
|
+
width: T,
|
|
869
|
+
["marginLeft"]: B,
|
|
866
870
|
"--column-width-mobile": s({
|
|
867
|
-
stackedStyle:
|
|
868
|
-
desktopStyle:
|
|
871
|
+
stackedStyle: L,
|
|
872
|
+
desktopStyle: T
|
|
869
873
|
}),
|
|
870
874
|
"--column-margin-left-mobile": s({
|
|
871
|
-
stackedStyle:
|
|
872
|
-
desktopStyle:
|
|
875
|
+
stackedStyle: j,
|
|
876
|
+
desktopStyle: B
|
|
873
877
|
}),
|
|
874
878
|
"--column-width-tablet": r({
|
|
875
|
-
stackedStyle:
|
|
876
|
-
desktopStyle:
|
|
879
|
+
stackedStyle: L,
|
|
880
|
+
desktopStyle: T
|
|
877
881
|
}),
|
|
878
882
|
"--column-margin-left-tablet": r({
|
|
879
|
-
stackedStyle:
|
|
880
|
-
desktopStyle:
|
|
883
|
+
stackedStyle: j,
|
|
884
|
+
desktopStyle: B
|
|
881
885
|
})
|
|
882
886
|
};
|
|
883
|
-
}, h = function(
|
|
884
|
-
var
|
|
885
|
-
return
|
|
886
|
-
((
|
|
887
|
-
)[
|
|
888
|
-
},
|
|
887
|
+
}, h = function(b) {
|
|
888
|
+
var T, B;
|
|
889
|
+
return Te(
|
|
890
|
+
((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
|
|
891
|
+
)[b].max;
|
|
892
|
+
}, x = function() {
|
|
889
893
|
return `
|
|
890
894
|
@media (max-width: ${h("medium")}px) {
|
|
891
895
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -911,33 +915,33 @@ function Tt(e) {
|
|
|
911
915
|
}
|
|
912
916
|
},
|
|
913
917
|
`;
|
|
914
|
-
}, w = function(
|
|
918
|
+
}, w = function(b, k) {
|
|
915
919
|
return {
|
|
916
|
-
...
|
|
917
|
-
href:
|
|
920
|
+
...b.link ? {
|
|
921
|
+
href: b.link
|
|
918
922
|
} : {},
|
|
919
|
-
[
|
|
920
|
-
style:
|
|
923
|
+
[D()]: "builder-column",
|
|
924
|
+
style: Ie(u(k))
|
|
921
925
|
};
|
|
922
926
|
};
|
|
923
|
-
return /* @__PURE__ */ P(
|
|
927
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
924
928
|
/* @__PURE__ */ P(
|
|
925
929
|
"div",
|
|
926
930
|
{
|
|
927
|
-
className:
|
|
931
|
+
className: It((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
|
|
928
932
|
style: m(),
|
|
929
933
|
children: [
|
|
930
|
-
/* @__PURE__ */ c(
|
|
931
|
-
(A = e.columns) == null ? void 0 : A.map((
|
|
932
|
-
|
|
934
|
+
/* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
|
|
935
|
+
(A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
|
|
936
|
+
ae,
|
|
933
937
|
{
|
|
934
|
-
TagName: o(
|
|
938
|
+
TagName: o(S),
|
|
935
939
|
actionAttributes: {},
|
|
936
|
-
attributes: w(
|
|
940
|
+
attributes: w(S, b),
|
|
937
941
|
children: /* @__PURE__ */ c(
|
|
938
|
-
|
|
942
|
+
ce,
|
|
939
943
|
{
|
|
940
|
-
path: `component.options.columns.${
|
|
944
|
+
path: `component.options.columns.${b}.blocks`,
|
|
941
945
|
parent: e.builderBlock.id,
|
|
942
946
|
styleProp: {
|
|
943
947
|
flexGrow: "1"
|
|
@@ -945,32 +949,32 @@ function Tt(e) {
|
|
|
945
949
|
context: e.builderContext,
|
|
946
950
|
registeredComponents: e.builderComponents,
|
|
947
951
|
linkComponent: e.builderLinkComponent,
|
|
948
|
-
blocks:
|
|
952
|
+
blocks: S.blocks
|
|
949
953
|
}
|
|
950
954
|
)
|
|
951
955
|
},
|
|
952
|
-
|
|
956
|
+
b
|
|
953
957
|
))
|
|
954
958
|
]
|
|
955
959
|
}
|
|
956
960
|
),
|
|
957
|
-
/* @__PURE__ */ c("style", { children: `.div-
|
|
961
|
+
/* @__PURE__ */ c("style", { children: `.div-1de99da7 {
|
|
958
962
|
display: flex;
|
|
959
963
|
line-height: normal;
|
|
960
964
|
}` })
|
|
961
965
|
] });
|
|
962
966
|
}
|
|
963
|
-
function
|
|
967
|
+
function Tt(e) {
|
|
964
968
|
return /* @__PURE__ */ c("span", { children: e.children });
|
|
965
969
|
}
|
|
966
970
|
function ge(e) {
|
|
967
971
|
return e.replace(/http(s)?:/, "");
|
|
968
972
|
}
|
|
969
|
-
function
|
|
973
|
+
function Rt(e = "", t, n) {
|
|
970
974
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
971
975
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
972
976
|
}
|
|
973
|
-
function
|
|
977
|
+
function Pt(e, t) {
|
|
974
978
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
975
979
|
return e;
|
|
976
980
|
if (t === "master")
|
|
@@ -982,16 +986,16 @@ function Bt(e, t) {
|
|
|
982
986
|
}
|
|
983
987
|
return null;
|
|
984
988
|
}
|
|
985
|
-
function
|
|
989
|
+
function te(e) {
|
|
986
990
|
if (!e)
|
|
987
991
|
return e;
|
|
988
992
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
989
993
|
if (e.match(/builder\.io/)) {
|
|
990
994
|
let n = e;
|
|
991
995
|
const i = Number(e.split("?width=")[1]);
|
|
992
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
996
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
993
997
|
}
|
|
994
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
998
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
995
999
|
}
|
|
996
1000
|
function Et(e) {
|
|
997
1001
|
var o, a, l, r, s, d;
|
|
@@ -1004,10 +1008,10 @@ function Et(e) {
|
|
|
1004
1008
|
return e.srcset;
|
|
1005
1009
|
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1006
1010
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1007
|
-
return console.debug("Removed given srcset"),
|
|
1011
|
+
return console.debug("Removed given srcset"), te(u);
|
|
1008
1012
|
} else if (e.image && !e.srcset)
|
|
1009
|
-
return
|
|
1010
|
-
return
|
|
1013
|
+
return te(u);
|
|
1014
|
+
return te(u);
|
|
1011
1015
|
}
|
|
1012
1016
|
function n() {
|
|
1013
1017
|
var m;
|
|
@@ -1023,8 +1027,8 @@ function Et(e) {
|
|
|
1023
1027
|
};
|
|
1024
1028
|
return e.aspectRatio ? m : void 0;
|
|
1025
1029
|
}
|
|
1026
|
-
return /* @__PURE__ */ P(
|
|
1027
|
-
/* @__PURE__ */ P(
|
|
1030
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
1031
|
+
/* @__PURE__ */ P(I, { children: [
|
|
1028
1032
|
/* @__PURE__ */ P("picture", { children: [
|
|
1029
1033
|
n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1030
1034
|
/* @__PURE__ */ c(
|
|
@@ -1055,7 +1059,7 @@ function Et(e) {
|
|
|
1055
1059
|
}
|
|
1056
1060
|
}
|
|
1057
1061
|
) : null,
|
|
1058
|
-
(r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(
|
|
1062
|
+
(r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(I, { children: e.children }) : null,
|
|
1059
1063
|
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ c("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1060
1064
|
] }),
|
|
1061
1065
|
/* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
|
|
@@ -1077,7 +1081,7 @@ function Et(e) {
|
|
|
1077
1081
|
}` })
|
|
1078
1082
|
] });
|
|
1079
1083
|
}
|
|
1080
|
-
function
|
|
1084
|
+
function Bt(e) {
|
|
1081
1085
|
return /* @__PURE__ */ c(
|
|
1082
1086
|
"section",
|
|
1083
1087
|
{
|
|
@@ -1098,7 +1102,7 @@ function Wt(e) {
|
|
|
1098
1102
|
}
|
|
1099
1103
|
);
|
|
1100
1104
|
}
|
|
1101
|
-
const
|
|
1105
|
+
const Wt = {
|
|
1102
1106
|
name: "Core:Button",
|
|
1103
1107
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1104
1108
|
defaultStyles: {
|
|
@@ -1132,12 +1136,9 @@ const Nt = {
|
|
|
1132
1136
|
static: !0,
|
|
1133
1137
|
noWrap: !0,
|
|
1134
1138
|
shouldReceiveBuilderProps: {
|
|
1135
|
-
builderBlock: !1,
|
|
1136
|
-
builderContext: !1,
|
|
1137
|
-
builderComponents: !1,
|
|
1138
1139
|
builderLinkComponent: !0
|
|
1139
1140
|
}
|
|
1140
|
-
},
|
|
1141
|
+
}, Nt = {
|
|
1141
1142
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1142
1143
|
name: "Columns",
|
|
1143
1144
|
isRSC: !0,
|
|
@@ -1344,19 +1345,13 @@ const Nt = {
|
|
|
1344
1345
|
builderComponents: !0,
|
|
1345
1346
|
builderLinkComponent: !0
|
|
1346
1347
|
}
|
|
1347
|
-
},
|
|
1348
|
-
shouldReceiveBuilderProps: {
|
|
1349
|
-
builderBlock: !1,
|
|
1350
|
-
builderContext: !1,
|
|
1351
|
-
builderComponents: !1,
|
|
1352
|
-
builderLinkComponent: !1
|
|
1353
|
-
},
|
|
1348
|
+
}, At = {
|
|
1354
1349
|
name: "Fragment",
|
|
1355
1350
|
static: !0,
|
|
1356
1351
|
hidden: !0,
|
|
1357
1352
|
canHaveChildren: !0,
|
|
1358
1353
|
noWrap: !0
|
|
1359
|
-
},
|
|
1354
|
+
}, Vt = {
|
|
1360
1355
|
name: "Image",
|
|
1361
1356
|
static: !0,
|
|
1362
1357
|
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",
|
|
@@ -1462,18 +1457,9 @@ const Nt = {
|
|
|
1462
1457
|
defaultValue: 0.7041
|
|
1463
1458
|
}],
|
|
1464
1459
|
shouldReceiveBuilderProps: {
|
|
1465
|
-
builderBlock: !0
|
|
1466
|
-
builderContext: !1,
|
|
1467
|
-
builderComponents: !1,
|
|
1468
|
-
builderLinkComponent: !1
|
|
1460
|
+
builderBlock: !0
|
|
1469
1461
|
}
|
|
1470
|
-
},
|
|
1471
|
-
shouldReceiveBuilderProps: {
|
|
1472
|
-
builderBlock: !1,
|
|
1473
|
-
builderContext: !1,
|
|
1474
|
-
builderComponents: !1,
|
|
1475
|
-
builderLinkComponent: !1
|
|
1476
|
-
},
|
|
1462
|
+
}, $t = {
|
|
1477
1463
|
name: "Core:Section",
|
|
1478
1464
|
static: !0,
|
|
1479
1465
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1526,13 +1512,10 @@ const Nt = {
|
|
|
1526
1512
|
defaultValue: "children"
|
|
1527
1513
|
}],
|
|
1528
1514
|
shouldReceiveBuilderProps: {
|
|
1529
|
-
|
|
1530
|
-
builderContext: !0,
|
|
1531
|
-
builderComponents: !1,
|
|
1532
|
-
builderLinkComponent: !1
|
|
1515
|
+
builderContext: !0
|
|
1533
1516
|
}
|
|
1534
1517
|
};
|
|
1535
|
-
function
|
|
1518
|
+
function Lt(e) {
|
|
1536
1519
|
var t, n, i;
|
|
1537
1520
|
return /* @__PURE__ */ c(
|
|
1538
1521
|
"div",
|
|
@@ -1544,7 +1527,7 @@ function Dt(e) {
|
|
|
1544
1527
|
"builder-slot": e.name
|
|
1545
1528
|
},
|
|
1546
1529
|
children: /* @__PURE__ */ c(
|
|
1547
|
-
|
|
1530
|
+
ce,
|
|
1548
1531
|
{
|
|
1549
1532
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1550
1533
|
path: `symbol.data.${e.name}`,
|
|
@@ -1594,12 +1577,9 @@ const jt = {
|
|
|
1594
1577
|
builderComponents: !0,
|
|
1595
1578
|
builderLinkComponent: !0
|
|
1596
1579
|
}
|
|
1597
|
-
},
|
|
1580
|
+
}, Dt = {
|
|
1598
1581
|
shouldReceiveBuilderProps: {
|
|
1599
|
-
builderBlock: !1
|
|
1600
|
-
builderContext: !1,
|
|
1601
|
-
builderComponents: !1,
|
|
1602
|
-
builderLinkComponent: !1
|
|
1582
|
+
builderBlock: !1
|
|
1603
1583
|
},
|
|
1604
1584
|
name: "Text",
|
|
1605
1585
|
static: !0,
|
|
@@ -1619,7 +1599,7 @@ const jt = {
|
|
|
1619
1599
|
textAlign: "center"
|
|
1620
1600
|
}
|
|
1621
1601
|
};
|
|
1622
|
-
function
|
|
1602
|
+
function Ot(e) {
|
|
1623
1603
|
var t;
|
|
1624
1604
|
return /* @__PURE__ */ c(
|
|
1625
1605
|
"div",
|
|
@@ -1632,13 +1612,7 @@ function Ht(e) {
|
|
|
1632
1612
|
}
|
|
1633
1613
|
);
|
|
1634
1614
|
}
|
|
1635
|
-
const
|
|
1636
|
-
shouldReceiveBuilderProps: {
|
|
1637
|
-
builderBlock: !1,
|
|
1638
|
-
builderContext: !1,
|
|
1639
|
-
builderComponents: !1,
|
|
1640
|
-
builderLinkComponent: !1
|
|
1641
|
-
},
|
|
1615
|
+
const Ht = {
|
|
1642
1616
|
name: "Custom Code",
|
|
1643
1617
|
static: !0,
|
|
1644
1618
|
requiredPermissions: ["editCode"],
|
|
@@ -1661,9 +1635,9 @@ const Mt = {
|
|
|
1661
1635
|
advanced: !0
|
|
1662
1636
|
}]
|
|
1663
1637
|
};
|
|
1664
|
-
function
|
|
1665
|
-
const t =
|
|
1666
|
-
return
|
|
1638
|
+
function Mt(e) {
|
|
1639
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1640
|
+
return R(() => {
|
|
1667
1641
|
var r;
|
|
1668
1642
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
1669
1643
|
return;
|
|
@@ -1699,13 +1673,7 @@ function Ut(e) {
|
|
|
1699
1673
|
}
|
|
1700
1674
|
);
|
|
1701
1675
|
}
|
|
1702
|
-
const
|
|
1703
|
-
shouldReceiveBuilderProps: {
|
|
1704
|
-
builderBlock: !1,
|
|
1705
|
-
builderContext: !1,
|
|
1706
|
-
builderComponents: !1,
|
|
1707
|
-
builderLinkComponent: !1
|
|
1708
|
-
},
|
|
1676
|
+
const Ut = {
|
|
1709
1677
|
name: "Embed",
|
|
1710
1678
|
static: !0,
|
|
1711
1679
|
inputs: [{
|
|
@@ -1720,9 +1688,9 @@ const _t = {
|
|
|
1720
1688
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1721
1689
|
hideFromUI: !0
|
|
1722
1690
|
}]
|
|
1723
|
-
},
|
|
1724
|
-
function
|
|
1725
|
-
const t =
|
|
1691
|
+
}, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
|
|
1692
|
+
function zt(e) {
|
|
1693
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [l, r] = N(() => !1);
|
|
1726
1694
|
function s() {
|
|
1727
1695
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1728
1696
|
return;
|
|
@@ -1733,7 +1701,7 @@ function qt(e) {
|
|
|
1733
1701
|
n.push(u.src);
|
|
1734
1702
|
const h = document.createElement("script");
|
|
1735
1703
|
h.async = !0, h.src = u.src, document.head.appendChild(h);
|
|
1736
|
-
} else if (
|
|
1704
|
+
} else if (Kt(u) && !o.includes(u.innerText))
|
|
1737
1705
|
try {
|
|
1738
1706
|
o.push(u.innerText), new Function(u.innerText)();
|
|
1739
1707
|
} catch (h) {
|
|
@@ -1741,7 +1709,7 @@ function qt(e) {
|
|
|
1741
1709
|
}
|
|
1742
1710
|
}
|
|
1743
1711
|
}
|
|
1744
|
-
return
|
|
1712
|
+
return R(() => {
|
|
1745
1713
|
t.current && !l && (r(!0), s());
|
|
1746
1714
|
}, [t.current, l]), /* @__PURE__ */ c(
|
|
1747
1715
|
"div",
|
|
@@ -1752,13 +1720,7 @@ function qt(e) {
|
|
|
1752
1720
|
}
|
|
1753
1721
|
);
|
|
1754
1722
|
}
|
|
1755
|
-
const
|
|
1756
|
-
shouldReceiveBuilderProps: {
|
|
1757
|
-
builderBlock: !1,
|
|
1758
|
-
builderContext: !1,
|
|
1759
|
-
builderComponents: !1,
|
|
1760
|
-
builderLinkComponent: !1
|
|
1761
|
-
},
|
|
1723
|
+
const qt = {
|
|
1762
1724
|
// friendlyName?
|
|
1763
1725
|
name: "Raw:Img",
|
|
1764
1726
|
hideFromInsertMenu: !0,
|
|
@@ -1773,7 +1735,7 @@ const Yt = {
|
|
|
1773
1735
|
noWrap: !0,
|
|
1774
1736
|
static: !0
|
|
1775
1737
|
};
|
|
1776
|
-
function
|
|
1738
|
+
function Yt(e) {
|
|
1777
1739
|
return /* @__PURE__ */ c(
|
|
1778
1740
|
"img",
|
|
1779
1741
|
{
|
|
@@ -1788,7 +1750,7 @@ function Jt(e) {
|
|
|
1788
1750
|
V() && e.imgSrc || "default-key"
|
|
1789
1751
|
);
|
|
1790
1752
|
}
|
|
1791
|
-
const
|
|
1753
|
+
const Jt = {
|
|
1792
1754
|
name: "Video",
|
|
1793
1755
|
canHaveChildren: !0,
|
|
1794
1756
|
defaultStyles: {
|
|
@@ -1870,13 +1832,10 @@ const Qt = {
|
|
|
1870
1832
|
advanced: !0
|
|
1871
1833
|
}],
|
|
1872
1834
|
shouldReceiveBuilderProps: {
|
|
1873
|
-
builderBlock: !0
|
|
1874
|
-
builderContext: !1,
|
|
1875
|
-
builderComponents: !1,
|
|
1876
|
-
builderLinkComponent: !1
|
|
1835
|
+
builderBlock: !0
|
|
1877
1836
|
}
|
|
1878
1837
|
};
|
|
1879
|
-
function
|
|
1838
|
+
function Qt(e) {
|
|
1880
1839
|
var i, o, a, l, r, s, d;
|
|
1881
1840
|
function t() {
|
|
1882
1841
|
return {
|
|
@@ -1977,43 +1936,43 @@ function Gt(e) {
|
|
|
1977
1936
|
}
|
|
1978
1937
|
);
|
|
1979
1938
|
}
|
|
1980
|
-
const
|
|
1981
|
-
component:
|
|
1982
|
-
...
|
|
1939
|
+
const Gt = () => [{
|
|
1940
|
+
component: Mt,
|
|
1941
|
+
...Ht
|
|
1942
|
+
}, {
|
|
1943
|
+
component: zt,
|
|
1944
|
+
...Ut
|
|
1983
1945
|
}, {
|
|
1984
|
-
component:
|
|
1985
|
-
...
|
|
1946
|
+
component: Yt,
|
|
1947
|
+
...qt
|
|
1986
1948
|
}, {
|
|
1987
|
-
component:
|
|
1988
|
-
...
|
|
1949
|
+
component: Qt,
|
|
1950
|
+
...Jt
|
|
1951
|
+
}], be = () => [{
|
|
1952
|
+
component: Ge,
|
|
1953
|
+
...Wt
|
|
1989
1954
|
}, {
|
|
1990
|
-
component:
|
|
1991
|
-
...Qt
|
|
1992
|
-
}], pe = () => [{
|
|
1993
|
-
component: Xe,
|
|
1955
|
+
component: wt,
|
|
1994
1956
|
...Nt
|
|
1995
1957
|
}, {
|
|
1996
1958
|
component: Tt,
|
|
1997
1959
|
...At
|
|
1998
1960
|
}, {
|
|
1999
|
-
component:
|
|
1961
|
+
component: Et,
|
|
2000
1962
|
...Vt
|
|
2001
1963
|
}, {
|
|
2002
|
-
component:
|
|
1964
|
+
component: Bt,
|
|
2003
1965
|
...$t
|
|
2004
1966
|
}, {
|
|
2005
|
-
component:
|
|
2006
|
-
...Lt
|
|
2007
|
-
}, {
|
|
2008
|
-
component: Dt,
|
|
1967
|
+
component: Lt,
|
|
2009
1968
|
...Ft
|
|
2010
1969
|
}, {
|
|
2011
|
-
component:
|
|
1970
|
+
component: Rn,
|
|
2012
1971
|
...jt
|
|
2013
1972
|
}, {
|
|
2014
|
-
component:
|
|
2015
|
-
...
|
|
2016
|
-
}, ...
|
|
1973
|
+
component: Ot,
|
|
1974
|
+
...Dt
|
|
1975
|
+
}, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2017
1976
|
function getAndSetVariantId() {
|
|
2018
1977
|
function setCookie(name, value, days) {
|
|
2019
1978
|
let expires = '';
|
|
@@ -2069,7 +2028,7 @@ const Xt = () => [{
|
|
|
2069
2028
|
}).join('');
|
|
2070
2029
|
styleEl.innerHTML = newStyleStr;
|
|
2071
2030
|
}
|
|
2072
|
-
}`,
|
|
2031
|
+
}`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2073
2032
|
if (!navigator.cookieEnabled) {
|
|
2074
2033
|
return;
|
|
2075
2034
|
}
|
|
@@ -2103,26 +2062,26 @@ const Xt = () => [{
|
|
|
2103
2062
|
thisScriptEl?.remove();
|
|
2104
2063
|
}
|
|
2105
2064
|
return;
|
|
2106
|
-
}`,
|
|
2065
|
+
}`, Pe = "builderIoAbTest", Ee = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2107
2066
|
...t,
|
|
2108
2067
|
testVariationId: t.id,
|
|
2109
2068
|
id: e == null ? void 0 : e.id
|
|
2110
|
-
})),
|
|
2069
|
+
})), en = ({
|
|
2111
2070
|
canTrack: e,
|
|
2112
2071
|
content: t
|
|
2113
|
-
}) => !(!(_(t).length > 0) || !e || z()),
|
|
2114
|
-
window.${
|
|
2115
|
-
window.${Ee} = ${
|
|
2116
|
-
`,
|
|
2117
|
-
window.${
|
|
2118
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2119
|
-
)`,
|
|
2072
|
+
}) => !(!(_(t).length > 0) || !e || z()), tn = (e) => e === "react" || e === "reactNative", Be = tn(H), nn = () => `
|
|
2073
|
+
window.${Pe} = ${Xt}
|
|
2074
|
+
window.${Ee} = ${Zt}
|
|
2075
|
+
`, on = (e, t) => `
|
|
2076
|
+
window.${Pe}(
|
|
2077
|
+
"${t}",${JSON.stringify(e)}, ${Be}
|
|
2078
|
+
)`, an = ({
|
|
2120
2079
|
contentId: e,
|
|
2121
2080
|
variationId: t
|
|
2122
2081
|
}) => `window.${Ee}(
|
|
2123
|
-
"${t}", "${e}", ${
|
|
2082
|
+
"${t}", "${e}", ${Be}
|
|
2124
2083
|
)`;
|
|
2125
|
-
function
|
|
2084
|
+
function ne(e) {
|
|
2126
2085
|
return /* @__PURE__ */ c(
|
|
2127
2086
|
"script",
|
|
2128
2087
|
{
|
|
@@ -2131,7 +2090,7 @@ function ie(e) {
|
|
|
2131
2090
|
}
|
|
2132
2091
|
);
|
|
2133
2092
|
}
|
|
2134
|
-
const
|
|
2093
|
+
const rn = qe({
|
|
2135
2094
|
content: null,
|
|
2136
2095
|
context: {},
|
|
2137
2096
|
localState: void 0,
|
|
@@ -2148,7 +2107,7 @@ const ln = Ye({
|
|
|
2148
2107
|
function ye(e) {
|
|
2149
2108
|
return Math.round(e * 1e3) / 1e3;
|
|
2150
2109
|
}
|
|
2151
|
-
const
|
|
2110
|
+
const ln = (e, t, n = !0) => {
|
|
2152
2111
|
if (!(e instanceof HTMLElement))
|
|
2153
2112
|
return null;
|
|
2154
2113
|
let i = n ? e : e.parentElement;
|
|
@@ -2159,10 +2118,10 @@ const cn = (e, t, n = !0) => {
|
|
|
2159
2118
|
return i;
|
|
2160
2119
|
} while (i = i.parentElement);
|
|
2161
2120
|
return null;
|
|
2162
|
-
},
|
|
2121
|
+
}, cn = (e) => ln(e, (t) => {
|
|
2163
2122
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2164
2123
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2165
|
-
}),
|
|
2124
|
+
}), pe = ({
|
|
2166
2125
|
event: e,
|
|
2167
2126
|
target: t
|
|
2168
2127
|
}) => {
|
|
@@ -2171,16 +2130,16 @@ const cn = (e, t, n = !0) => {
|
|
|
2171
2130
|
x: a,
|
|
2172
2131
|
y: l
|
|
2173
2132
|
};
|
|
2174
|
-
},
|
|
2175
|
-
const t = e.target, n = t &&
|
|
2133
|
+
}, sn = (e) => {
|
|
2134
|
+
const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2176
2135
|
return {
|
|
2177
2136
|
targetBuilderElement: i || void 0,
|
|
2178
2137
|
metadata: {
|
|
2179
|
-
targetOffset: t ?
|
|
2138
|
+
targetOffset: t ? pe({
|
|
2180
2139
|
event: e,
|
|
2181
2140
|
target: t
|
|
2182
2141
|
}) : void 0,
|
|
2183
|
-
builderTargetOffset: n ?
|
|
2142
|
+
builderTargetOffset: n ? pe({
|
|
2184
2143
|
event: e,
|
|
2185
2144
|
target: n
|
|
2186
2145
|
}) : void 0,
|
|
@@ -2188,13 +2147,13 @@ const cn = (e, t, n = !0) => {
|
|
|
2188
2147
|
}
|
|
2189
2148
|
};
|
|
2190
2149
|
};
|
|
2191
|
-
async function
|
|
2150
|
+
async function dn({
|
|
2192
2151
|
key: e,
|
|
2193
2152
|
value: t
|
|
2194
2153
|
}) {
|
|
2195
|
-
return
|
|
2154
|
+
return Ve(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2196
2155
|
}
|
|
2197
|
-
function
|
|
2156
|
+
function ve(e, ...t) {
|
|
2198
2157
|
const n = Object(e);
|
|
2199
2158
|
for (let i = 1; i < arguments.length; i++) {
|
|
2200
2159
|
const o = arguments[i];
|
|
@@ -2204,31 +2163,31 @@ function xe(e, ...t) {
|
|
|
2204
2163
|
}
|
|
2205
2164
|
return n;
|
|
2206
2165
|
}
|
|
2207
|
-
function
|
|
2166
|
+
function un(e) {
|
|
2208
2167
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2209
2168
|
}
|
|
2210
|
-
function
|
|
2211
|
-
const n =
|
|
2169
|
+
function mn(e, t) {
|
|
2170
|
+
const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, l = [o, a];
|
|
2212
2171
|
for (const r of l)
|
|
2213
2172
|
for (const s of n)
|
|
2214
2173
|
s in r || (r[s] = i[s]);
|
|
2215
2174
|
}
|
|
2216
|
-
function
|
|
2175
|
+
function fn(e) {
|
|
2217
2176
|
const t = [];
|
|
2218
2177
|
for (const n of e.steps)
|
|
2219
2178
|
for (const i in n.styles)
|
|
2220
2179
|
t.indexOf(i) === -1 && t.push(i);
|
|
2221
2180
|
return t;
|
|
2222
2181
|
}
|
|
2223
|
-
function
|
|
2182
|
+
function hn(e) {
|
|
2224
2183
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2225
2184
|
if (!t.length) {
|
|
2226
|
-
|
|
2185
|
+
un(e.elementId || e.id || "");
|
|
2227
2186
|
return;
|
|
2228
2187
|
}
|
|
2229
2188
|
Array.from(t).forEach((n) => {
|
|
2230
|
-
|
|
2231
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2189
|
+
mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ve(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2190
|
+
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ve(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2232
2191
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2233
2192
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2234
2193
|
});
|
|
@@ -2260,7 +2219,7 @@ font-weight: ${r};
|
|
|
2260
2219
|
`.trim());
|
|
2261
2220
|
}
|
|
2262
2221
|
return o;
|
|
2263
|
-
},
|
|
2222
|
+
}, bn = ({
|
|
2264
2223
|
customFonts: e
|
|
2265
2224
|
}) => {
|
|
2266
2225
|
var t;
|
|
@@ -2268,7 +2227,7 @@ font-weight: ${r};
|
|
|
2268
2227
|
}, yn = ({
|
|
2269
2228
|
cssCode: e,
|
|
2270
2229
|
contentId: t
|
|
2271
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2230
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
|
|
2272
2231
|
.builder-button {
|
|
2273
2232
|
all: unset;
|
|
2274
2233
|
}
|
|
@@ -2285,38 +2244,38 @@ font-weight: ${r};
|
|
|
2285
2244
|
text-align: inherit;
|
|
2286
2245
|
font-family: inherit;
|
|
2287
2246
|
}
|
|
2288
|
-
`,
|
|
2289
|
-
function
|
|
2290
|
-
var
|
|
2291
|
-
const t =
|
|
2292
|
-
function n(
|
|
2293
|
-
var
|
|
2247
|
+
`, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
|
|
2248
|
+
function xn(e) {
|
|
2249
|
+
var B, L, j, X, Z, se, de;
|
|
2250
|
+
const t = oe(null);
|
|
2251
|
+
function n(g) {
|
|
2252
|
+
var p, v;
|
|
2294
2253
|
const f = {
|
|
2295
2254
|
...e.builderContextSignal.rootState,
|
|
2296
|
-
...
|
|
2255
|
+
...g
|
|
2297
2256
|
};
|
|
2298
|
-
e.builderContextSignal.rootSetState ? (v = (
|
|
2257
|
+
e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
|
|
2299
2258
|
}
|
|
2300
|
-
function i(
|
|
2301
|
-
var
|
|
2259
|
+
function i(g) {
|
|
2260
|
+
var p, v, C, E, M;
|
|
2302
2261
|
const f = {
|
|
2303
2262
|
...e.builderContextSignal.content,
|
|
2304
|
-
...
|
|
2263
|
+
...g,
|
|
2305
2264
|
data: {
|
|
2306
|
-
...(
|
|
2307
|
-
...
|
|
2265
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
|
|
2266
|
+
...g == null ? void 0 : g.data
|
|
2308
2267
|
},
|
|
2309
2268
|
meta: {
|
|
2310
2269
|
...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
|
|
2311
|
-
...
|
|
2312
|
-
breakpoints: ((
|
|
2270
|
+
...g == null ? void 0 : g.meta,
|
|
2271
|
+
breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((M = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : M.breakpoints)
|
|
2313
2272
|
}
|
|
2314
2273
|
};
|
|
2315
|
-
|
|
2274
|
+
dn({
|
|
2316
2275
|
value: f,
|
|
2317
2276
|
key: f.id
|
|
2318
2277
|
}).then(() => {
|
|
2319
|
-
|
|
2278
|
+
T.refresh();
|
|
2320
2279
|
});
|
|
2321
2280
|
}
|
|
2322
2281
|
function o() {
|
|
@@ -2328,34 +2287,34 @@ function Sn(e) {
|
|
|
2328
2287
|
const [a, l] = N(
|
|
2329
2288
|
() => e.contentWrapper || "div"
|
|
2330
2289
|
);
|
|
2331
|
-
function r(
|
|
2290
|
+
function r(g) {
|
|
2332
2291
|
return Fe({
|
|
2333
2292
|
model: e.model,
|
|
2334
2293
|
trustedHosts: e.trustedHosts,
|
|
2335
2294
|
callbacks: {
|
|
2336
2295
|
configureSdk: (f) => {
|
|
2337
|
-
var
|
|
2338
|
-
const { breakpoints:
|
|
2339
|
-
!v || v !== ((
|
|
2296
|
+
var C;
|
|
2297
|
+
const { breakpoints: p, contentId: v } = f;
|
|
2298
|
+
!v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
|
|
2340
2299
|
meta: {
|
|
2341
|
-
breakpoints:
|
|
2300
|
+
breakpoints: p
|
|
2342
2301
|
}
|
|
2343
2302
|
});
|
|
2344
2303
|
},
|
|
2345
2304
|
animation: (f) => {
|
|
2346
|
-
|
|
2305
|
+
hn(f);
|
|
2347
2306
|
},
|
|
2348
2307
|
contentUpdate: (f) => {
|
|
2349
2308
|
i(f);
|
|
2350
2309
|
}
|
|
2351
2310
|
}
|
|
2352
|
-
})(
|
|
2311
|
+
})(g);
|
|
2353
2312
|
}
|
|
2354
2313
|
function s() {
|
|
2355
|
-
var f,
|
|
2356
|
-
const
|
|
2357
|
-
|
|
2358
|
-
code:
|
|
2314
|
+
var f, p;
|
|
2315
|
+
const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
|
|
2316
|
+
g && O({
|
|
2317
|
+
code: g,
|
|
2359
2318
|
context: e.context || {},
|
|
2360
2319
|
localState: void 0,
|
|
2361
2320
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2366,35 +2325,35 @@ function Sn(e) {
|
|
|
2366
2325
|
enableCache: !1
|
|
2367
2326
|
});
|
|
2368
2327
|
}
|
|
2369
|
-
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [
|
|
2370
|
-
function
|
|
2371
|
-
var f,
|
|
2328
|
+
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, w] = N(() => !1);
|
|
2329
|
+
function y(g) {
|
|
2330
|
+
var f, p;
|
|
2372
2331
|
if (e.builderContextSignal.content) {
|
|
2373
|
-
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId,
|
|
2374
|
-
|
|
2332
|
+
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
2333
|
+
ue({
|
|
2375
2334
|
type: "click",
|
|
2376
2335
|
canTrack: q(e.canTrack),
|
|
2377
|
-
contentId:
|
|
2336
|
+
contentId: C,
|
|
2378
2337
|
apiKey: e.apiKey,
|
|
2379
|
-
variationId: v !==
|
|
2380
|
-
...
|
|
2381
|
-
unique: !
|
|
2338
|
+
variationId: v !== C ? v : void 0,
|
|
2339
|
+
...sn(g),
|
|
2340
|
+
unique: !x
|
|
2382
2341
|
});
|
|
2383
2342
|
}
|
|
2384
|
-
|
|
2343
|
+
x || w(!0);
|
|
2385
2344
|
}
|
|
2386
2345
|
function A() {
|
|
2387
|
-
var f,
|
|
2388
|
-
const
|
|
2389
|
-
Object.entries(
|
|
2390
|
-
if (!
|
|
2346
|
+
var f, p, v;
|
|
2347
|
+
const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
|
|
2348
|
+
Object.entries(g).forEach(([C, E]) => {
|
|
2349
|
+
if (!E || u[C] || d[C] && !V())
|
|
2391
2350
|
return;
|
|
2392
|
-
u[
|
|
2393
|
-
const M =
|
|
2351
|
+
u[C] = !0;
|
|
2352
|
+
const M = E.replace(
|
|
2394
2353
|
/{{([^}]+)}}/g,
|
|
2395
|
-
($,
|
|
2354
|
+
($, We) => String(
|
|
2396
2355
|
O({
|
|
2397
|
-
code:
|
|
2356
|
+
code: We,
|
|
2398
2357
|
context: e.context || {},
|
|
2399
2358
|
localState: void 0,
|
|
2400
2359
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2403,24 +2362,24 @@ function Sn(e) {
|
|
|
2403
2362
|
})
|
|
2404
2363
|
)
|
|
2405
2364
|
);
|
|
2406
|
-
|
|
2365
|
+
Le(M).then(($) => $.json()).then(($) => {
|
|
2407
2366
|
n({
|
|
2408
|
-
[
|
|
2409
|
-
}), d[
|
|
2367
|
+
[C]: $
|
|
2368
|
+
}), d[C] = !0;
|
|
2410
2369
|
}).catch(($) => {
|
|
2411
|
-
console.error("error fetching dynamic data",
|
|
2370
|
+
console.error("error fetching dynamic data", E, $);
|
|
2412
2371
|
}).finally(() => {
|
|
2413
|
-
u[
|
|
2372
|
+
u[C] = !1;
|
|
2414
2373
|
});
|
|
2415
2374
|
});
|
|
2416
2375
|
}
|
|
2417
|
-
function
|
|
2376
|
+
function S() {
|
|
2418
2377
|
V() && window.dispatchEvent(
|
|
2419
2378
|
new CustomEvent(
|
|
2420
2379
|
"builder:component:stateChange",
|
|
2421
2380
|
{
|
|
2422
2381
|
detail: {
|
|
2423
|
-
state:
|
|
2382
|
+
state: ie(e.builderContextSignal.rootState),
|
|
2424
2383
|
ref: {
|
|
2425
2384
|
name: e.model
|
|
2426
2385
|
}
|
|
@@ -2429,8 +2388,8 @@ function Sn(e) {
|
|
|
2429
2388
|
)
|
|
2430
2389
|
);
|
|
2431
2390
|
}
|
|
2432
|
-
function g
|
|
2433
|
-
window.addEventListener("message", r), je(),
|
|
2391
|
+
function b(g) {
|
|
2392
|
+
window.addEventListener("message", r), je(), De({
|
|
2434
2393
|
...e.locale ? {
|
|
2435
2394
|
locale: e.locale
|
|
2436
2395
|
} : {},
|
|
@@ -2444,117 +2403,117 @@ function Sn(e) {
|
|
|
2444
2403
|
e.builderContextSignal.componentInfos
|
|
2445
2404
|
).forEach((f) => {
|
|
2446
2405
|
var v;
|
|
2447
|
-
const
|
|
2448
|
-
(v = window.parent) == null || v.postMessage(
|
|
2406
|
+
const p = Oe(f);
|
|
2407
|
+
(v = window.parent) == null || v.postMessage(p, "*");
|
|
2449
2408
|
}), window.addEventListener(
|
|
2450
2409
|
"builder:component:stateChangeListenerActivated",
|
|
2451
|
-
|
|
2410
|
+
S
|
|
2452
2411
|
);
|
|
2453
2412
|
}
|
|
2454
|
-
function
|
|
2455
|
-
const f = new URL(location.href).searchParams,
|
|
2456
|
-
`builder.overrides.${
|
|
2457
|
-
),
|
|
2458
|
-
|
|
2413
|
+
function k(g) {
|
|
2414
|
+
const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
|
|
2415
|
+
`builder.overrides.${p}`
|
|
2416
|
+
), C = f.get("apiKey") || f.get("builder.space");
|
|
2417
|
+
p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && xe({
|
|
2459
2418
|
model: e.model,
|
|
2460
2419
|
apiKey: e.apiKey,
|
|
2461
2420
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2462
|
-
}).then((
|
|
2463
|
-
|
|
2421
|
+
}).then((E) => {
|
|
2422
|
+
E && i(E);
|
|
2464
2423
|
});
|
|
2465
2424
|
}
|
|
2466
|
-
const
|
|
2467
|
-
return
|
|
2468
|
-
var
|
|
2469
|
-
return (
|
|
2425
|
+
const T = Ye();
|
|
2426
|
+
return R(() => {
|
|
2427
|
+
var g;
|
|
2428
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2470
2429
|
"initeditingbldr",
|
|
2471
|
-
|
|
2430
|
+
b
|
|
2472
2431
|
), () => {
|
|
2473
2432
|
var f;
|
|
2474
2433
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2475
2434
|
"initeditingbldr",
|
|
2476
|
-
|
|
2435
|
+
b
|
|
2477
2436
|
);
|
|
2478
2437
|
};
|
|
2479
|
-
}, []),
|
|
2480
|
-
var
|
|
2481
|
-
return (
|
|
2438
|
+
}, []), R(() => {
|
|
2439
|
+
var g;
|
|
2440
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2482
2441
|
"initpreviewingbldr",
|
|
2483
|
-
|
|
2442
|
+
k
|
|
2484
2443
|
), () => {
|
|
2485
2444
|
var f;
|
|
2486
2445
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2487
2446
|
"initpreviewingbldr",
|
|
2488
|
-
|
|
2447
|
+
k
|
|
2489
2448
|
);
|
|
2490
2449
|
};
|
|
2491
|
-
}, []),
|
|
2492
|
-
var
|
|
2450
|
+
}, []), R(() => {
|
|
2451
|
+
var g, f;
|
|
2493
2452
|
if (z()) {
|
|
2494
2453
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2495
|
-
const v = (
|
|
2496
|
-
|
|
2454
|
+
const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, E = e.apiKey;
|
|
2455
|
+
ue({
|
|
2497
2456
|
type: "impression",
|
|
2498
2457
|
canTrack: !0,
|
|
2499
|
-
contentId:
|
|
2500
|
-
apiKey:
|
|
2501
|
-
variationId: v !==
|
|
2458
|
+
contentId: C,
|
|
2459
|
+
apiKey: E,
|
|
2460
|
+
variationId: v !== C ? v : void 0
|
|
2502
2461
|
});
|
|
2503
2462
|
}
|
|
2504
|
-
|
|
2463
|
+
$e() && V();
|
|
2505
2464
|
}
|
|
2506
|
-
}, []),
|
|
2465
|
+
}, []), R(() => {
|
|
2507
2466
|
e.apiKey || J.error(
|
|
2508
2467
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2509
|
-
), s(), A(),
|
|
2510
|
-
}, []),
|
|
2511
|
-
}, [e.content]),
|
|
2468
|
+
), s(), A(), S();
|
|
2469
|
+
}, []), R(() => {
|
|
2470
|
+
}, [e.content]), R(() => {
|
|
2512
2471
|
s();
|
|
2513
|
-
}, [(
|
|
2472
|
+
}, [(L = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : L.jsCode]), R(() => {
|
|
2514
2473
|
A();
|
|
2515
|
-
}, [(
|
|
2516
|
-
|
|
2517
|
-
}, [e.builderContextSignal.rootState]),
|
|
2474
|
+
}, [(X = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2475
|
+
S();
|
|
2476
|
+
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2518
2477
|
e.data && n(e.data);
|
|
2519
|
-
}, [e.data]),
|
|
2478
|
+
}, [e.data]), R(() => {
|
|
2520
2479
|
e.locale && n({
|
|
2521
2480
|
locale: e.locale
|
|
2522
2481
|
});
|
|
2523
|
-
}, [e.locale]),
|
|
2482
|
+
}, [e.locale]), R(() => () => {
|
|
2524
2483
|
z() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
2525
2484
|
"builder:component:stateChangeListenerActivated",
|
|
2526
|
-
|
|
2485
|
+
S
|
|
2527
2486
|
));
|
|
2528
|
-
}, []), /* @__PURE__ */ c(
|
|
2487
|
+
}, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
|
|
2529
2488
|
a,
|
|
2530
2489
|
{
|
|
2531
2490
|
ref: t,
|
|
2532
|
-
onClick: (
|
|
2533
|
-
"builder-content-id": (
|
|
2491
|
+
onClick: (g) => y(g),
|
|
2492
|
+
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2534
2493
|
"builder-model": e.model,
|
|
2535
2494
|
...o(),
|
|
2536
2495
|
...e.contentWrapperProps,
|
|
2537
|
-
className:
|
|
2538
|
-
((
|
|
2496
|
+
className: Sn(
|
|
2497
|
+
((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
|
|
2539
2498
|
),
|
|
2540
2499
|
children: e.children
|
|
2541
2500
|
}
|
|
2542
2501
|
) : null });
|
|
2543
2502
|
}
|
|
2544
|
-
function
|
|
2503
|
+
function kn(e) {
|
|
2545
2504
|
const t = `
|
|
2546
2505
|
${yn({
|
|
2547
2506
|
cssCode: e.cssCode,
|
|
2548
2507
|
contentId: e.contentId
|
|
2549
2508
|
})}
|
|
2550
|
-
${
|
|
2509
|
+
${bn({
|
|
2551
2510
|
customFonts: e.customFonts
|
|
2552
2511
|
})}
|
|
2553
|
-
${
|
|
2512
|
+
${vn(e.isNestedRender)}
|
|
2554
2513
|
`.trim();
|
|
2555
|
-
return /* @__PURE__ */ c(
|
|
2514
|
+
return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
|
|
2556
2515
|
}
|
|
2557
|
-
const
|
|
2516
|
+
const Cn = ({
|
|
2558
2517
|
content: e,
|
|
2559
2518
|
data: t,
|
|
2560
2519
|
locale: n
|
|
@@ -2571,7 +2530,7 @@ const In = ({
|
|
|
2571
2530
|
locale: n
|
|
2572
2531
|
} : {}
|
|
2573
2532
|
};
|
|
2574
|
-
},
|
|
2533
|
+
}, In = ({
|
|
2575
2534
|
content: e,
|
|
2576
2535
|
data: t
|
|
2577
2536
|
}) => e ? {
|
|
@@ -2582,32 +2541,32 @@ const In = ({
|
|
|
2582
2541
|
},
|
|
2583
2542
|
meta: e == null ? void 0 : e.meta
|
|
2584
2543
|
} : void 0;
|
|
2585
|
-
function
|
|
2544
|
+
function Se(e) {
|
|
2586
2545
|
var o, a, l, r, s, d, m, u, h;
|
|
2587
|
-
const t =
|
|
2546
|
+
const t = an({
|
|
2588
2547
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2589
2548
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2590
2549
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2591
2550
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2592
2551
|
}), n = [
|
|
2593
|
-
...
|
|
2552
|
+
...be(),
|
|
2594
2553
|
...e.customComponents || []
|
|
2595
2554
|
].reduce(
|
|
2596
|
-
(
|
|
2597
|
-
...
|
|
2598
|
-
[
|
|
2555
|
+
(x, { component: w, ...y }) => ({
|
|
2556
|
+
...x,
|
|
2557
|
+
[y.name]: {
|
|
2599
2558
|
component: w,
|
|
2600
|
-
...
|
|
2559
|
+
...me(y)
|
|
2601
2560
|
}
|
|
2602
2561
|
}),
|
|
2603
2562
|
{}
|
|
2604
2563
|
), i = {
|
|
2605
|
-
content:
|
|
2564
|
+
content: In({
|
|
2606
2565
|
content: e.content,
|
|
2607
2566
|
data: e.data
|
|
2608
2567
|
}),
|
|
2609
2568
|
localState: void 0,
|
|
2610
|
-
rootState:
|
|
2569
|
+
rootState: Cn({
|
|
2611
2570
|
content: e.content,
|
|
2612
2571
|
data: e.data,
|
|
2613
2572
|
locale: e.locale
|
|
@@ -2618,12 +2577,12 @@ function ke(e) {
|
|
|
2618
2577
|
apiKey: e.apiKey,
|
|
2619
2578
|
apiVersion: e.apiVersion,
|
|
2620
2579
|
componentInfos: [
|
|
2621
|
-
...
|
|
2580
|
+
...be(),
|
|
2622
2581
|
...e.customComponents || []
|
|
2623
2582
|
].reduce(
|
|
2624
|
-
(
|
|
2625
|
-
...
|
|
2626
|
-
[
|
|
2583
|
+
(x, { component: w, ...y }) => ({
|
|
2584
|
+
...x,
|
|
2585
|
+
[y.name]: me(y)
|
|
2627
2586
|
}),
|
|
2628
2587
|
{}
|
|
2629
2588
|
),
|
|
@@ -2632,7 +2591,7 @@ function ke(e) {
|
|
|
2632
2591
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2633
2592
|
};
|
|
2634
2593
|
return /* @__PURE__ */ P(
|
|
2635
|
-
|
|
2594
|
+
xn,
|
|
2636
2595
|
{
|
|
2637
2596
|
content: e.content,
|
|
2638
2597
|
data: e.data,
|
|
@@ -2649,14 +2608,14 @@ function ke(e) {
|
|
|
2649
2608
|
trustedHosts: e.trustedHosts,
|
|
2650
2609
|
children: [
|
|
2651
2610
|
e.isSsrAbTest ? /* @__PURE__ */ c(
|
|
2652
|
-
|
|
2611
|
+
ne,
|
|
2653
2612
|
{
|
|
2654
2613
|
id: "builderio-variant-visibility",
|
|
2655
2614
|
scriptStr: t
|
|
2656
2615
|
}
|
|
2657
2616
|
) : null,
|
|
2658
2617
|
/* @__PURE__ */ c(
|
|
2659
|
-
|
|
2618
|
+
kn,
|
|
2660
2619
|
{
|
|
2661
2620
|
isNestedRender: e.isNestedRender,
|
|
2662
2621
|
contentId: (l = i.content) == null ? void 0 : l.id,
|
|
@@ -2665,7 +2624,7 @@ function ke(e) {
|
|
|
2665
2624
|
}
|
|
2666
2625
|
),
|
|
2667
2626
|
/* @__PURE__ */ c(
|
|
2668
|
-
|
|
2627
|
+
ce,
|
|
2669
2628
|
{
|
|
2670
2629
|
blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
|
|
2671
2630
|
context: i,
|
|
@@ -2677,14 +2636,14 @@ function ke(e) {
|
|
|
2677
2636
|
}
|
|
2678
2637
|
);
|
|
2679
2638
|
}
|
|
2680
|
-
function
|
|
2639
|
+
function wn(e) {
|
|
2681
2640
|
var a;
|
|
2682
|
-
const t =
|
|
2641
|
+
const t = en({
|
|
2683
2642
|
canTrack: q(e.canTrack),
|
|
2684
2643
|
content: e.content
|
|
2685
2644
|
}), n = function() {
|
|
2686
2645
|
var r;
|
|
2687
|
-
return
|
|
2646
|
+
return on(
|
|
2688
2647
|
_(e.content).map((s) => ({
|
|
2689
2648
|
id: s.testVariationId,
|
|
2690
2649
|
testRatio: s.testRatio
|
|
@@ -2698,36 +2657,36 @@ function Tn(e) {
|
|
|
2698
2657
|
return t ? {
|
|
2699
2658
|
...e.content,
|
|
2700
2659
|
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
2701
|
-
} :
|
|
2660
|
+
} : He({
|
|
2702
2661
|
item: e.content,
|
|
2703
2662
|
canTrack: q(e.canTrack)
|
|
2704
2663
|
});
|
|
2705
2664
|
};
|
|
2706
|
-
return /* @__PURE__ */ P(
|
|
2665
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
2707
2666
|
!e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ c(
|
|
2708
|
-
|
|
2667
|
+
ne,
|
|
2709
2668
|
{
|
|
2710
2669
|
id: "builderio-init-variants-fns",
|
|
2711
|
-
scriptStr:
|
|
2670
|
+
scriptStr: nn()
|
|
2712
2671
|
}
|
|
2713
2672
|
) : null,
|
|
2714
|
-
t ? /* @__PURE__ */ P(
|
|
2673
|
+
t ? /* @__PURE__ */ P(I, { children: [
|
|
2715
2674
|
/* @__PURE__ */ c(
|
|
2716
|
-
|
|
2675
|
+
Q,
|
|
2717
2676
|
{
|
|
2718
2677
|
id: "builderio-variants",
|
|
2719
2678
|
styles: i()
|
|
2720
2679
|
}
|
|
2721
2680
|
),
|
|
2722
2681
|
/* @__PURE__ */ c(
|
|
2723
|
-
|
|
2682
|
+
ne,
|
|
2724
2683
|
{
|
|
2725
2684
|
id: "builderio-variants-visibility",
|
|
2726
2685
|
scriptStr: n()
|
|
2727
2686
|
}
|
|
2728
2687
|
),
|
|
2729
2688
|
(a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ c(
|
|
2730
|
-
|
|
2689
|
+
Se,
|
|
2731
2690
|
{
|
|
2732
2691
|
isNestedRender: e.isNestedRender,
|
|
2733
2692
|
content: l,
|
|
@@ -2753,7 +2712,7 @@ function Tn(e) {
|
|
|
2753
2712
|
))
|
|
2754
2713
|
] }) : null,
|
|
2755
2714
|
/* @__PURE__ */ c(
|
|
2756
|
-
|
|
2715
|
+
Se,
|
|
2757
2716
|
{
|
|
2758
2717
|
isNestedRender: e.isNestedRender,
|
|
2759
2718
|
content: o(),
|
|
@@ -2778,13 +2737,13 @@ function Tn(e) {
|
|
|
2778
2737
|
)
|
|
2779
2738
|
] });
|
|
2780
2739
|
}
|
|
2781
|
-
const
|
|
2740
|
+
const Tn = async ({
|
|
2782
2741
|
builderContextValue: e,
|
|
2783
2742
|
symbol: t
|
|
2784
2743
|
}) => {
|
|
2785
2744
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2786
2745
|
(e != null && e.apiKey))
|
|
2787
|
-
return
|
|
2746
|
+
return xe({
|
|
2788
2747
|
model: t.model,
|
|
2789
2748
|
apiKey: e.apiKey,
|
|
2790
2749
|
apiVersion: e.apiVersion,
|
|
@@ -2797,7 +2756,7 @@ const Rn = async ({
|
|
|
2797
2756
|
J.error("Could not fetch symbol content: ", n);
|
|
2798
2757
|
});
|
|
2799
2758
|
};
|
|
2800
|
-
async function
|
|
2759
|
+
async function Rn(e) {
|
|
2801
2760
|
var a, l, r, s, d;
|
|
2802
2761
|
const t = function() {
|
|
2803
2762
|
return "div";
|
|
@@ -2806,17 +2765,17 @@ async function Pn(e) {
|
|
|
2806
2765
|
}, i = function() {
|
|
2807
2766
|
var u, h;
|
|
2808
2767
|
return [
|
|
2809
|
-
e.attributes[
|
|
2768
|
+
e.attributes[D()],
|
|
2810
2769
|
"builder-symbol",
|
|
2811
2770
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
2812
2771
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2813
2772
|
].filter(Boolean).join(" ");
|
|
2814
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
2773
|
+
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
|
|
2815
2774
|
symbol: e.symbol,
|
|
2816
2775
|
builderContextValue: e.builderContext
|
|
2817
2776
|
});
|
|
2818
2777
|
return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
|
|
2819
|
-
|
|
2778
|
+
wn,
|
|
2820
2779
|
{
|
|
2821
2780
|
isNestedRender: !0,
|
|
2822
2781
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2841,15 +2800,15 @@ async function Pn(e) {
|
|
|
2841
2800
|
) });
|
|
2842
2801
|
}
|
|
2843
2802
|
export {
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2803
|
+
ce as Blocks,
|
|
2804
|
+
rn as BuilderContext,
|
|
2805
|
+
Ge as Button,
|
|
2806
|
+
wt as Columns,
|
|
2807
|
+
wn as Content,
|
|
2808
|
+
Tt as Fragment,
|
|
2850
2809
|
Et as Image,
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2810
|
+
Bt as Section,
|
|
2811
|
+
Rn as Symbol,
|
|
2812
|
+
Ot as Text,
|
|
2813
|
+
Qt as Video
|
|
2855
2814
|
};
|